scripting-cli 1.0.4 → 1.0.5
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/dist/build.js +65 -14
- package/dist/config/webpack.config.js +82 -79
- package/dist/createApp.js +66 -64
- package/dist/index.js +0 -1
- package/dist/startDevServer.js +3 -2
- package/package.json +1 -1
- package/public/scripting.d.ts +791 -711
- package/src/build.ts +72 -21
- package/src/config/webpack.config.ts +87 -84
- package/src/createApp.ts +73 -66
- package/src/index.ts +0 -1
- package/src/startDevServer.ts +4 -1
package/public/scripting.d.ts
CHANGED
|
@@ -100,7 +100,15 @@ type Color = string | {
|
|
|
100
100
|
g: number;
|
|
101
101
|
b: number;
|
|
102
102
|
/**
|
|
103
|
-
|
|
103
|
+
*alpha, 0 ~ 255
|
|
104
|
+
*/
|
|
105
|
+
a: number;
|
|
106
|
+
} | {
|
|
107
|
+
r: number;
|
|
108
|
+
g: number;
|
|
109
|
+
b: number;
|
|
110
|
+
/**
|
|
111
|
+
* opacity, 0 ~ 1
|
|
104
112
|
*/
|
|
105
113
|
o: number;
|
|
106
114
|
} | {
|
|
@@ -711,14 +719,18 @@ declare function RouterProvider({ router }: {
|
|
|
711
719
|
router: Router;
|
|
712
720
|
}): JSX.Element;
|
|
713
721
|
|
|
722
|
+
type Orientation = 'portrait' | 'landscape';
|
|
723
|
+
type ThemeMode = 'light' | 'dark';
|
|
724
|
+
type DeviceOrientation = 'portraitUp' | 'landscapeLeft' | 'portraitDown' | 'landscapeRight';
|
|
714
725
|
type MediaQueryData = {
|
|
715
726
|
size: {
|
|
716
727
|
width: number;
|
|
717
728
|
height: number;
|
|
718
729
|
};
|
|
730
|
+
orientation: Orientation;
|
|
719
731
|
devicePixelRatio: number;
|
|
720
732
|
textScaleFactor: number;
|
|
721
|
-
platformBrightness:
|
|
733
|
+
platformBrightness: ThemeMode;
|
|
722
734
|
padding: {
|
|
723
735
|
left: number;
|
|
724
736
|
right: number;
|
|
@@ -762,7 +774,7 @@ type ScriptingDeviceInfo = {
|
|
|
762
774
|
};
|
|
763
775
|
type ThemeState = {
|
|
764
776
|
isDarkMode: boolean;
|
|
765
|
-
themeMode:
|
|
777
|
+
themeMode: ThemeMode;
|
|
766
778
|
};
|
|
767
779
|
type LocaleState = {
|
|
768
780
|
locale: string;
|
|
@@ -771,7 +783,6 @@ type ShareResultStatus = 'success' | 'dismissed' | 'unavailable';
|
|
|
771
783
|
type AppLifeCycleState = 'resumed' | 'inactive' | 'paused' | 'detached' | 'hidden';
|
|
772
784
|
|
|
773
785
|
declare const isApiEnabled: boolean;
|
|
774
|
-
declare function addAppEvent<T extends Function>(type: string, handler: T): void;
|
|
775
786
|
|
|
776
787
|
declare function useByTheme<T>({ dark, light }: {
|
|
777
788
|
dark: T;
|
|
@@ -780,22 +791,21 @@ declare function useByTheme<T>({ dark, light }: {
|
|
|
780
791
|
|
|
781
792
|
declare function useLocale(): string;
|
|
782
793
|
|
|
783
|
-
declare function useThemeState():
|
|
784
|
-
isDarkMode: boolean;
|
|
785
|
-
themeMode: "dark" | "light";
|
|
786
|
-
};
|
|
794
|
+
declare function useThemeState(): ThemeState;
|
|
787
795
|
|
|
788
796
|
declare function useMediaQuery(): MediaQueryData;
|
|
789
797
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
798
|
+
declare class EventEmitter<R> {
|
|
799
|
+
private event;
|
|
800
|
+
constructor(event: string);
|
|
801
|
+
on(listener: (data: R) => void): void;
|
|
802
|
+
off(listener: (data: R) => void): void;
|
|
803
|
+
}
|
|
804
|
+
declare const AppEvent: {
|
|
805
|
+
AppLifeCycleStateChanged: EventEmitter<AppLifeCycleState>;
|
|
806
|
+
MediaQueryDataChanged: EventEmitter<MediaQueryData>;
|
|
807
|
+
LocaleChanged: EventEmitter<LocaleState>;
|
|
808
|
+
AppDispose: EventEmitter<void>;
|
|
799
809
|
};
|
|
800
810
|
|
|
801
811
|
type FileMode = 'read' | 'write' | 'writeOnly' | 'append' | 'writeOnlyAppend';
|
|
@@ -957,755 +967,364 @@ declare namespace index {
|
|
|
957
967
|
export { type index_Encoding as Encoding, type index_FileMode as FileMode, type index_FileStat as FileStat, type index_FileSystemCommonEventDetails as FileSystemCommonEventDetails, type index_FileSystemCreateEventDetails as FileSystemCreateEventDetails, type index_FileSystemDeleteEventDetails as FileSystemDeleteEventDetails, index_FileSystemEvent as FileSystemEvent, type index_FileSystemEventDetails as FileSystemEventDetails, type index_FileSystemModifyEventDetails as FileSystemModifyEventDetails, type index_FileSystemMoveEventDetails as FileSystemMoveEventDetails, index_copyFile as copyFile, index_createDirectory as createDirectory, index_createLink as createLink, index_documentsDirectory as documentsDirectory, index_exists as exists, index_isDirectory as isDirectory, index_isFile as isFile, index_readAsBytes as readAsBytes, index_readAsString as readAsString, index_readDirectory as readDirectory, remove$1 as remove, index_rename as rename, index_temporaryDirectory as temporaryDirectory, index_watch as watch, index_writeAsBytes as writeAsBytes, index_writeAsString as writeAsString };
|
|
958
968
|
}
|
|
959
969
|
|
|
960
|
-
declare function
|
|
961
|
-
|
|
962
|
-
declare const Device: {
|
|
963
|
-
readonly isIOS: boolean;
|
|
964
|
-
readonly isAndroid: boolean;
|
|
965
|
-
readonly brand: string;
|
|
966
|
-
readonly model: string;
|
|
967
|
-
readonly locale: string;
|
|
968
|
-
readonly systemLocale: string;
|
|
969
|
-
readonly systemLocales: string[];
|
|
970
|
-
readonly systemLanguageTag: string;
|
|
971
|
-
readonly sysmtemLanguageCode: string;
|
|
972
|
-
readonly systemCountryCode: string | undefined;
|
|
973
|
-
readonly systemScriptCode: string | undefined;
|
|
974
|
-
hapticFeedback: typeof hapticFeedback;
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* Share base64 image
|
|
979
|
-
* @param options
|
|
980
|
-
* @param options.image base64 format, e.g. data:image/png;base64,xxxxx...
|
|
981
|
-
* @param options.text Share text content
|
|
982
|
-
* @param options.subject Share subject
|
|
983
|
-
*/
|
|
984
|
-
declare function shareBase64Image(options: {
|
|
985
|
-
image: string;
|
|
986
|
-
text?: string;
|
|
987
|
-
subject?: string;
|
|
988
|
-
}): Promise<{
|
|
989
|
-
status: ShareResultStatus;
|
|
990
|
-
}>;
|
|
970
|
+
declare function getBatteryLevel(): Promise<number>;
|
|
991
971
|
|
|
992
972
|
/**
|
|
993
|
-
*
|
|
994
|
-
* @param options
|
|
995
|
-
* @param options.files Files path
|
|
996
|
-
* @param options.text Share text content
|
|
997
|
-
* @param options.subject Share subject
|
|
973
|
+
* Indicates the current battery state.
|
|
998
974
|
*/
|
|
999
|
-
declare
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
975
|
+
declare enum BatteryState {
|
|
976
|
+
/**
|
|
977
|
+
* The battery is fully charged.
|
|
978
|
+
*/
|
|
979
|
+
full = 0,
|
|
980
|
+
/**
|
|
981
|
+
* The battery is currently charging.
|
|
982
|
+
*/
|
|
983
|
+
charging = 1,
|
|
984
|
+
/**
|
|
985
|
+
* Device is connected to external power source, but not charging the battery.
|
|
986
|
+
*
|
|
987
|
+
* Usually happens when device has charge limit enabled and this limit is reached.
|
|
988
|
+
* Also, battery might be in this state if connected power source isn't powerful enough to charge the battery.
|
|
989
|
+
*
|
|
990
|
+
* Available on Android, MacOS and Linux platforms only.
|
|
991
|
+
*/
|
|
992
|
+
connectedNotCharging = 2,
|
|
993
|
+
/**
|
|
994
|
+
* The battery is currently losing energy.
|
|
995
|
+
*/
|
|
996
|
+
discharging = 3,
|
|
997
|
+
/**
|
|
998
|
+
* The state of the battery is unknown.
|
|
999
|
+
*/
|
|
1000
|
+
unknown = 4
|
|
1001
|
+
}
|
|
1002
|
+
declare function getBatteryState(): Promise<BatteryState>;
|
|
1006
1003
|
|
|
1007
|
-
|
|
1008
|
-
* Share text
|
|
1009
|
-
* @param options
|
|
1010
|
-
* @param options.text Share text content
|
|
1011
|
-
* @param options.subject Share subject
|
|
1012
|
-
*/
|
|
1013
|
-
declare function shareText(options: {
|
|
1014
|
-
text: string;
|
|
1015
|
-
subject?: string;
|
|
1016
|
-
}): Promise<{
|
|
1017
|
-
status: ShareResultStatus;
|
|
1018
|
-
}>;
|
|
1004
|
+
declare function hapticFeedback(type: 'heavyImpact' | 'lightImpact' | 'mediumImpact' | 'selectionClick'): void;
|
|
1019
1005
|
|
|
1020
|
-
declare
|
|
1021
|
-
shareText: typeof shareText;
|
|
1022
|
-
shareBase64Image: typeof shareBase64Image;
|
|
1023
|
-
shareFiles: typeof shareFiles;
|
|
1024
|
-
};
|
|
1006
|
+
declare function onBatteryStateChanged(listener: (state: BatteryState) => void): () => void;
|
|
1025
1007
|
|
|
1026
|
-
|
|
1027
|
-
* Copy text to clipboard.
|
|
1028
|
-
* @param text Text content
|
|
1029
|
-
* @returns
|
|
1030
|
-
*/
|
|
1031
|
-
declare function copyText(text: string): Promise<boolean>;
|
|
1008
|
+
declare function setLocale(locale: string): void;
|
|
1032
1009
|
|
|
1033
|
-
|
|
1034
|
-
* Get text form clipboard.
|
|
1035
|
-
* @returns
|
|
1036
|
-
*/
|
|
1037
|
-
declare function getClipboardText(): Promise<string | null>;
|
|
1010
|
+
declare function setPreferredOrientation(orientations: DeviceOrientation[]): void;
|
|
1038
1011
|
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1012
|
+
type AnimatedAlignProps = {
|
|
1013
|
+
alignment: Alignment;
|
|
1014
|
+
duration: number;
|
|
1015
|
+
heightFactor?: number;
|
|
1016
|
+
widthFactor?: number;
|
|
1017
|
+
curve?: Curve;
|
|
1018
|
+
onEnd?: () => void;
|
|
1019
|
+
children?: VirtualNode;
|
|
1042
1020
|
};
|
|
1021
|
+
declare const AnimatedAlign: FunctionComponent<AnimatedAlignProps>;
|
|
1043
1022
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
* @param options.buttonLabel 按钮文案(可选)
|
|
1055
|
-
*/
|
|
1056
|
-
declare function showAlert(options: {
|
|
1057
|
-
content: string;
|
|
1058
|
-
title?: string;
|
|
1059
|
-
buttonLabel?: string;
|
|
1060
|
-
}): Promise<void>;
|
|
1061
|
-
|
|
1062
|
-
type VstarBottomSheetOptions = {
|
|
1063
|
-
/** 标题 */
|
|
1064
|
-
title?: string;
|
|
1065
|
-
/** 是否显示取消按钮,默认不显示 */
|
|
1066
|
-
cancelButton?: boolean;
|
|
1067
|
-
/** 是否可往下拖动关闭,默认可以 */
|
|
1068
|
-
dragDownDissmisible?: boolean;
|
|
1069
|
-
/** action选项 */
|
|
1070
|
-
actions: {
|
|
1071
|
-
/** 文本内容 */
|
|
1072
|
-
label: string;
|
|
1073
|
-
/** 是否选中 */
|
|
1074
|
-
selected?: boolean;
|
|
1075
|
-
}[];
|
|
1023
|
+
type ContainerProps = BoxDecoration & BoxConstraints & {
|
|
1024
|
+
children?: VirtualNode;
|
|
1025
|
+
width?: number | 'infinity';
|
|
1026
|
+
height?: number | 'infinity';
|
|
1027
|
+
/** 设置数值则left,top,right,bottom都生效 */
|
|
1028
|
+
margin?: EdgeInsets | number;
|
|
1029
|
+
/** 设置数值则left,top,right,bottom都生效 */
|
|
1030
|
+
padding?: EdgeInsets | number;
|
|
1031
|
+
alignment?: Alignment;
|
|
1032
|
+
clipBehavior?: Clip;
|
|
1076
1033
|
};
|
|
1077
|
-
|
|
1078
|
-
* 展示bottom sheet 弹窗,类似iOS的选项功能
|
|
1079
|
-
* @param options
|
|
1080
|
-
* @param options.title 标题(可选)
|
|
1081
|
-
* @param options.cancelButton 是否展示取消按钮,默认展示(可选)
|
|
1082
|
-
* @param options.dragDownDissmisible 是否可以下拉关闭弹窗,默认可以(可选)
|
|
1083
|
-
* @param options.actions 选项列表
|
|
1084
|
-
* @param options.actions.label 选项文本
|
|
1085
|
-
* @param options.actions.selected 是否选中,设置为true改选项展示选中状态(可选)
|
|
1086
|
-
* @returns 点击某个选项后返回其下标,取消的话返回null
|
|
1087
|
-
*/
|
|
1088
|
-
declare function showBottomSheet({ title, cancelButton, dragDownDissmisible, actions, }: VstarBottomSheetOptions): Promise<number | null>;
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* 展示Confirm弹窗
|
|
1092
|
-
* @param options
|
|
1093
|
-
* @param options.content 提示内容
|
|
1094
|
-
* @param options.title 提示标题(可选)
|
|
1095
|
-
* @param options.cancelLabel 取消按钮文案(可选)
|
|
1096
|
-
* @param options.confirmLabel 确认按钮文案(可选)
|
|
1097
|
-
* @returns 返回true或false的promise
|
|
1098
|
-
*/
|
|
1099
|
-
declare function showConfirm(options: {
|
|
1100
|
-
content: string;
|
|
1101
|
-
title?: string;
|
|
1102
|
-
cancelLabel?: string;
|
|
1103
|
-
confirmLabel?: string;
|
|
1104
|
-
}): Promise<boolean>;
|
|
1105
|
-
|
|
1106
|
-
declare function showLoading(options: {
|
|
1107
|
-
message?: string;
|
|
1108
|
-
color?: string;
|
|
1109
|
-
}): void;
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* 展示提醒弹窗
|
|
1113
|
-
* @param options
|
|
1114
|
-
* @param options.title 标题
|
|
1115
|
-
* @param options.obscureText 是否使用晦涩文本模式,用于密码之类(可选)
|
|
1116
|
-
* @param options.hintText 提示placeholder文案(可选)
|
|
1117
|
-
* @param options.cancelLabel 取消按钮文案(可选)
|
|
1118
|
-
* @param options.confirmLabel 确认按钮文案(可选)
|
|
1119
|
-
* @returns 用户输入确认后返回字符串,用户取消后返回null
|
|
1120
|
-
*/
|
|
1121
|
-
declare function showPrompt(options: {
|
|
1122
|
-
title: string;
|
|
1123
|
-
obscureText?: boolean;
|
|
1124
|
-
hintText?: string;
|
|
1125
|
-
cancelLabel?: string;
|
|
1126
|
-
confirmLabel?: string;
|
|
1127
|
-
}): Promise<string | null>;
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* 展示Toast弹窗
|
|
1131
|
-
* @param options
|
|
1132
|
-
* @param options.content toast消息
|
|
1133
|
-
* @param options.duration 展示时间(可选),单位毫秒,默认2000毫秒(2秒)
|
|
1134
|
-
*/
|
|
1135
|
-
declare function showToast(options: {
|
|
1136
|
-
content: string;
|
|
1137
|
-
duration?: number;
|
|
1138
|
-
}): Promise<void>;
|
|
1034
|
+
declare const Container: FunctionComponent<ContainerProps>;
|
|
1139
1035
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
showPrompt: typeof showPrompt;
|
|
1145
|
-
showConfirm: typeof showConfirm;
|
|
1146
|
-
showToast: typeof showToast;
|
|
1147
|
-
showBottomSheet: typeof showBottomSheet;
|
|
1036
|
+
type AnimatedContainerProps = ContainerProps & {
|
|
1037
|
+
duration: number;
|
|
1038
|
+
curve?: Curve;
|
|
1039
|
+
onEnd?: () => void;
|
|
1148
1040
|
};
|
|
1041
|
+
declare const AnimatedContainer: FunctionComponent<AnimatedContainerProps>;
|
|
1149
1042
|
|
|
1150
|
-
type
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
requestFullMetadata?: boolean;
|
|
1043
|
+
type AnimatedOpacityProps = {
|
|
1044
|
+
opacity: number;
|
|
1045
|
+
duration: number;
|
|
1046
|
+
curve?: Curve;
|
|
1047
|
+
onEnd?: () => void;
|
|
1048
|
+
alwaysIncludeSemantics?: boolean;
|
|
1049
|
+
children?: VirtualNode;
|
|
1158
1050
|
};
|
|
1159
|
-
declare
|
|
1160
|
-
declare function pickMultipleImage(options?: PickFileOptions): Promise<string[]>;
|
|
1161
|
-
|
|
1162
|
-
declare function pickMedia(options?: PickFileOptions): Promise<string | null>;
|
|
1163
|
-
declare function pickMultipleMedia(options?: PickFileOptions): Promise<string[]>;
|
|
1051
|
+
declare const AnimatedOpacity: FunctionComponent<AnimatedOpacityProps>;
|
|
1164
1052
|
|
|
1165
|
-
type
|
|
1166
|
-
|
|
1053
|
+
type AnimatedPaddingProps = {
|
|
1054
|
+
padding: EdgeInsets | number;
|
|
1055
|
+
duration: number;
|
|
1056
|
+
curve?: Curve;
|
|
1057
|
+
onEnd?: () => void;
|
|
1058
|
+
children?: VirtualNode;
|
|
1167
1059
|
};
|
|
1168
|
-
declare
|
|
1060
|
+
declare const AnimatedPadding: FunctionComponent<AnimatedPaddingProps>;
|
|
1169
1061
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1062
|
+
type AnimatedPositionedProps = {
|
|
1063
|
+
left?: number;
|
|
1064
|
+
right?: number;
|
|
1065
|
+
top?: number;
|
|
1066
|
+
bottom?: number;
|
|
1067
|
+
width?: number;
|
|
1068
|
+
height?: number;
|
|
1069
|
+
curve?: Curve;
|
|
1070
|
+
onEnd?: () => void;
|
|
1071
|
+
duration: number;
|
|
1072
|
+
children: VirtualNode;
|
|
1176
1073
|
};
|
|
1074
|
+
declare const AnimatedPositioned: FunctionComponent<AnimatedPositionedProps>;
|
|
1177
1075
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
quality?: number;
|
|
1187
|
-
name?: string;
|
|
1188
|
-
}): Promise<boolean>;
|
|
1189
|
-
saveNetworkImage(options: {
|
|
1190
|
-
url: string;
|
|
1191
|
-
quality?: number;
|
|
1192
|
-
name?: string;
|
|
1193
|
-
}): Promise<boolean>;
|
|
1076
|
+
type AnimatedRotationProps = {
|
|
1077
|
+
turns: number;
|
|
1078
|
+
duration: number;
|
|
1079
|
+
alignment?: Alignment;
|
|
1080
|
+
curve?: Curve;
|
|
1081
|
+
filterQuality?: FilterQuality;
|
|
1082
|
+
onEnd?: () => void;
|
|
1083
|
+
children?: VirtualNode;
|
|
1194
1084
|
};
|
|
1085
|
+
declare const AnimatedRotation: FunctionComponent<AnimatedRotationProps>;
|
|
1195
1086
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1087
|
+
type AnimatedScaleProps = {
|
|
1088
|
+
scale: number;
|
|
1089
|
+
duration: number;
|
|
1090
|
+
curve?: Curve;
|
|
1091
|
+
alignment?: Alignment;
|
|
1092
|
+
filterQuality?: FilterQuality;
|
|
1093
|
+
onEnd?: () => void;
|
|
1094
|
+
children?: VirtualNode;
|
|
1203
1095
|
};
|
|
1096
|
+
declare const AnimatedScale: FunctionComponent<AnimatedScaleProps>;
|
|
1204
1097
|
|
|
1205
|
-
type
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1098
|
+
type AnimatedSizeProps = {
|
|
1099
|
+
alignment?: Alignment;
|
|
1100
|
+
duration: number;
|
|
1101
|
+
reverseDuration?: number;
|
|
1102
|
+
curve?: Curve;
|
|
1103
|
+
clipBehavior?: Clip;
|
|
1104
|
+
children?: VirtualNode;
|
|
1212
1105
|
};
|
|
1213
|
-
|
|
1214
|
-
declare function getPermissionStatus(type: PermissionType): Promise<PermissionStatus>;
|
|
1215
|
-
declare function requestPermission(type: PermissionType): Promise<PermissionStatus>;
|
|
1216
|
-
|
|
1217
|
-
declare function launchUrl(url: string): Promise<boolean>;
|
|
1218
|
-
|
|
1219
|
-
declare function openScriptingApp<T>(options: {
|
|
1220
|
-
url: string;
|
|
1221
|
-
params?: {
|
|
1222
|
-
[key: string]: any;
|
|
1223
|
-
};
|
|
1224
|
-
}): Promise<T | null>;
|
|
1106
|
+
declare const AnimatedSize: FunctionComponent<AnimatedSizeProps>;
|
|
1225
1107
|
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1108
|
+
type AnimatedSlideProps = {
|
|
1109
|
+
/**
|
|
1110
|
+
* The target offset.
|
|
1111
|
+
* The child will be translated horizontally by width * x and vertically by height * y
|
|
1112
|
+
*/
|
|
1113
|
+
offset: Offset;
|
|
1114
|
+
duration: number;
|
|
1115
|
+
curve?: Curve;
|
|
1116
|
+
onEnd?: () => void;
|
|
1117
|
+
children?: VirtualNode;
|
|
1229
1118
|
};
|
|
1119
|
+
declare const AnimatedSlide: FunctionComponent<AnimatedSlideProps>;
|
|
1230
1120
|
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1121
|
+
type AnimationValue = number | Offset | RelativeRect | BoxDecoration;
|
|
1122
|
+
type TweenType = 'double' | 'Offset' | 'RelativeRect' | 'BoxDecoration';
|
|
1123
|
+
type Tween<T extends AnimationValue> = {
|
|
1124
|
+
begin: T;
|
|
1125
|
+
end: T;
|
|
1126
|
+
curve?: Curve;
|
|
1127
|
+
reverseCurve?: Curve;
|
|
1128
|
+
};
|
|
1129
|
+
type TweenSequenceItem<T extends AnimationValue> = {
|
|
1130
|
+
begin: T;
|
|
1131
|
+
end: T;
|
|
1132
|
+
curve?: Curve;
|
|
1240
1133
|
/**
|
|
1241
|
-
*
|
|
1134
|
+
* 0 - 100
|
|
1242
1135
|
*/
|
|
1243
|
-
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1136
|
+
weight: number;
|
|
1137
|
+
};
|
|
1138
|
+
type TweenSequenceConstantItem<T extends AnimationValue> = {
|
|
1139
|
+
value: T;
|
|
1140
|
+
curve?: Curve;
|
|
1141
|
+
/**
|
|
1142
|
+
* 0 - 100
|
|
1143
|
+
*/
|
|
1144
|
+
weight: number;
|
|
1145
|
+
};
|
|
1146
|
+
type TweenSequence<T extends AnimationValue> = Array<TweenSequenceItem<T> | TweenSequenceConstantItem<T>>;
|
|
1147
|
+
type AnimationInitalOptions<T extends AnimationValue> = Tween<T> | TweenSequence<T>;
|
|
1148
|
+
type AnimationStatus = 'dismissed' | 'forward' | 'reverse' | 'completed';
|
|
1149
|
+
type AnimationStatusListener = (status: AnimationStatus) => void;
|
|
1150
|
+
type AnimationControllerIntialOptions = {
|
|
1151
|
+
value?: number;
|
|
1152
|
+
duration?: number;
|
|
1153
|
+
reverseDuration?: number;
|
|
1154
|
+
lowerBound?: number;
|
|
1155
|
+
upperBound?: number;
|
|
1156
|
+
auto?: 'forward' | 'repeat' | 'reverseRepeat';
|
|
1251
1157
|
};
|
|
1252
1158
|
|
|
1253
|
-
declare
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
}): Promise<number[] | null>;
|
|
1263
|
-
|
|
1264
|
-
declare function loadFont(options: {
|
|
1265
|
-
family: string;
|
|
1266
|
-
urls: string[];
|
|
1267
|
-
type?: 'otf' | 'ttf';
|
|
1268
|
-
}): Promise<boolean>;
|
|
1269
|
-
|
|
1270
|
-
declare function loadJson<T>(options: {
|
|
1271
|
-
url: string;
|
|
1272
|
-
noCache?: boolean;
|
|
1273
|
-
timeout?: number;
|
|
1274
|
-
debugLabel?: string;
|
|
1275
|
-
headers?: {
|
|
1276
|
-
[key: string]: any;
|
|
1277
|
-
};
|
|
1278
|
-
queryParameters?: {
|
|
1279
|
-
[key: string]: any;
|
|
1280
|
-
};
|
|
1281
|
-
cancelToken?: CancelToken;
|
|
1282
|
-
}): Promise<T | null>;
|
|
1159
|
+
declare class _AnimationBase {
|
|
1160
|
+
private _statusListeners;
|
|
1161
|
+
addStatusListener(listener: AnimationStatusListener): this;
|
|
1162
|
+
removeStatusListener(listener: AnimationStatusListener): this;
|
|
1163
|
+
removeAllStatusListener(): this;
|
|
1164
|
+
private __triggerStatusListener__;
|
|
1165
|
+
protected _checkCallInEffect(methodName: string): void;
|
|
1166
|
+
protected _checkCallInRenderLoop(methodName: string): void;
|
|
1167
|
+
}
|
|
1283
1168
|
|
|
1284
|
-
declare
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1169
|
+
declare class Animation<T extends AnimationValue> extends _AnimationBase {
|
|
1170
|
+
readonly key: string;
|
|
1171
|
+
readonly controllerKey: string;
|
|
1172
|
+
readonly tickerProviderKey: string;
|
|
1173
|
+
readonly options: AnimationInitalOptions<T>;
|
|
1174
|
+
readonly isSequence: boolean;
|
|
1175
|
+
constructor(key: string, controllerKey: string, tickerProviderKey: string, options: AnimationInitalOptions<T>, isSequence: boolean);
|
|
1176
|
+
private _getTweenType;
|
|
1177
|
+
readonly type: TweenType;
|
|
1178
|
+
toJson(): {
|
|
1179
|
+
animationKey: string;
|
|
1180
|
+
controllerKey: string;
|
|
1181
|
+
tickerProviderKey: string;
|
|
1291
1182
|
};
|
|
1292
|
-
|
|
1293
|
-
|
|
1183
|
+
toTweenJson(): {
|
|
1184
|
+
begin: T;
|
|
1185
|
+
end: T;
|
|
1186
|
+
curve?: Curve | undefined;
|
|
1187
|
+
reverseCurve?: Curve | undefined;
|
|
1188
|
+
animationKey: string;
|
|
1189
|
+
controllerKey: string;
|
|
1190
|
+
tickerProviderKey: string;
|
|
1191
|
+
type: TweenType;
|
|
1294
1192
|
};
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
data?: any;
|
|
1302
|
-
isFormData?: boolean;
|
|
1303
|
-
contentType?: string;
|
|
1304
|
-
responseType?: 'json' | 'plain' | 'bytes';
|
|
1305
|
-
sendTimeout?: number;
|
|
1306
|
-
receiveTimeout?: number;
|
|
1307
|
-
connectTimeout?: number;
|
|
1308
|
-
cancelToken?: CancelToken;
|
|
1309
|
-
queryParameters?: {
|
|
1310
|
-
[key: string]: any;
|
|
1193
|
+
toTweenSequenceJson(): {
|
|
1194
|
+
animationKey: string;
|
|
1195
|
+
controllerKey: string;
|
|
1196
|
+
tickerProviderKey: string;
|
|
1197
|
+
type: TweenType;
|
|
1198
|
+
options: TweenSequence<T>;
|
|
1311
1199
|
};
|
|
1312
|
-
|
|
1313
|
-
debugLabel?: string;
|
|
1314
|
-
};
|
|
1315
|
-
declare function fetch<T>(options: RequestOptions): Promise<T>;
|
|
1200
|
+
}
|
|
1316
1201
|
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
toJson(): {
|
|
1337
|
-
type: string;
|
|
1338
|
-
value: string | number[];
|
|
1339
|
-
filename: string | undefined;
|
|
1340
|
-
headers: {
|
|
1341
|
-
[key: string]: string[];
|
|
1342
|
-
} | undefined;
|
|
1343
|
-
};
|
|
1344
|
-
}
|
|
1345
|
-
declare class FormData {
|
|
1346
|
-
private _fields;
|
|
1347
|
-
constructor();
|
|
1348
|
-
static fromMap(map: {
|
|
1349
|
-
[name: string]: string | string[] | MultipartFile | MultipartFile[];
|
|
1350
|
-
}): FormData;
|
|
1351
|
-
static getValue(formData: FormData): {
|
|
1352
|
-
[name: string]: any;
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
/**
|
|
1356
|
-
* Example:
|
|
1357
|
-
* ```ts
|
|
1358
|
-
* postFormData({
|
|
1359
|
-
* url: 'https://example.com/api/upload-avatar',
|
|
1360
|
-
* data: FormData.fromMap({
|
|
1361
|
-
* file: MultipartFile.fromFile('/xx/file/path', {
|
|
1362
|
-
* filename: 'avatar.png'
|
|
1363
|
-
* }),
|
|
1364
|
-
* destDir: '/avatar'
|
|
1365
|
-
* })
|
|
1366
|
-
* })
|
|
1367
|
-
* ```
|
|
1368
|
-
*/
|
|
1369
|
-
declare function postFormData<T>(options: RequestOptions & {
|
|
1370
|
-
data: FormData;
|
|
1371
|
-
}): Promise<T>;
|
|
1372
|
-
|
|
1373
|
-
declare const Request: {
|
|
1374
|
-
loadString: typeof loadString;
|
|
1375
|
-
loadJson: typeof loadJson;
|
|
1376
|
-
loadBytes: typeof loadBytes;
|
|
1377
|
-
loadFont: typeof loadFont;
|
|
1378
|
-
postFormData: typeof postFormData;
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
type SocketIOOptions = {};
|
|
1382
|
-
|
|
1383
|
-
declare class SocketIO {
|
|
1384
|
-
private key;
|
|
1385
|
-
url: string;
|
|
1386
|
-
private _eventMap;
|
|
1387
|
-
constructor(key: string, url: string);
|
|
1388
|
-
connect(): void;
|
|
1389
|
-
isConnected(): Promise<boolean | null>;
|
|
1390
|
-
on<T>(event: string, callback: (data: T) => void): void;
|
|
1391
|
-
once<T>(event: string, callback: (data: T) => void): void;
|
|
1392
|
-
off<T>(event: string, callback: (data: T) => void): void;
|
|
1393
|
-
emit(event: string, data?: any): void;
|
|
1394
|
-
emitWithAck(event: string, data?: any): Promise<unknown>;
|
|
1395
|
-
close(): void;
|
|
1396
|
-
dispose(): void;
|
|
1397
|
-
static open(url: string, options?: SocketIOOptions): Promise<SocketIO>;
|
|
1202
|
+
declare class AnimationController extends _AnimationBase {
|
|
1203
|
+
readonly key: string;
|
|
1204
|
+
readonly tickerProviderKey: string;
|
|
1205
|
+
constructor(key: string, tickerProviderKey: string);
|
|
1206
|
+
private _animtions;
|
|
1207
|
+
forward(from?: number): Promise<boolean>;
|
|
1208
|
+
reverse(from?: number): Promise<boolean>;
|
|
1209
|
+
animateTo(target: number, duration?: number): Promise<boolean>;
|
|
1210
|
+
repeat(options?: {
|
|
1211
|
+
min?: number;
|
|
1212
|
+
max?: number;
|
|
1213
|
+
period?: number;
|
|
1214
|
+
reverse?: boolean;
|
|
1215
|
+
}): Promise<boolean>;
|
|
1216
|
+
reset(): Promise<boolean>;
|
|
1217
|
+
stop(canceled?: boolean): Promise<boolean>;
|
|
1218
|
+
useTween<T extends AnimationValue>(options: Tween<T>): Animation<T>;
|
|
1219
|
+
useTweenSequence<T extends AnimationValue>(options: TweenSequence<T>): Animation<T>;
|
|
1220
|
+
private _createAnimation;
|
|
1398
1221
|
}
|
|
1399
1222
|
|
|
1400
|
-
|
|
1401
|
-
alignment: Alignment;
|
|
1402
|
-
duration: number;
|
|
1403
|
-
heightFactor?: number;
|
|
1404
|
-
widthFactor?: number;
|
|
1405
|
-
curve?: Curve;
|
|
1406
|
-
onEnd?: () => void;
|
|
1407
|
-
children?: VirtualNode;
|
|
1408
|
-
};
|
|
1409
|
-
declare const AnimatedAlign: FunctionComponent<AnimatedAlignProps>;
|
|
1223
|
+
declare function useAnimationController(options?: AnimationControllerIntialOptions): AnimationController;
|
|
1410
1224
|
|
|
1411
|
-
type
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
margin?: EdgeInsets | number;
|
|
1417
|
-
/** 设置数值则left,top,right,bottom都生效 */
|
|
1418
|
-
padding?: EdgeInsets | number;
|
|
1419
|
-
alignment?: Alignment;
|
|
1420
|
-
clipBehavior?: Clip;
|
|
1225
|
+
type CupertinoActionSheetProps = {
|
|
1226
|
+
title?: VirtualNode;
|
|
1227
|
+
message?: VirtualNode;
|
|
1228
|
+
actions?: VirtualNode[];
|
|
1229
|
+
cancelButton?: VirtualNode;
|
|
1421
1230
|
};
|
|
1422
|
-
declare const
|
|
1231
|
+
declare const CupertinoActionSheet: FunctionComponent<CupertinoActionSheetProps>;
|
|
1423
1232
|
|
|
1424
|
-
type
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1233
|
+
type CupertinoActionSheetActionProps = {
|
|
1234
|
+
isDefaultAction?: boolean;
|
|
1235
|
+
isDestructiveAction?: boolean;
|
|
1236
|
+
onPressed: () => void;
|
|
1237
|
+
children: VirtualNode;
|
|
1428
1238
|
};
|
|
1429
|
-
declare const
|
|
1239
|
+
declare const CupertinoActionSheetAction: FunctionComponent<CupertinoActionSheetActionProps>;
|
|
1430
1240
|
|
|
1431
|
-
type
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
alwaysIncludeSemantics?: boolean;
|
|
1437
|
-
children?: VirtualNode;
|
|
1241
|
+
type CupertinoActivityIndicatorProps = {
|
|
1242
|
+
color?: Color;
|
|
1243
|
+
animating?: boolean;
|
|
1244
|
+
radius?: number;
|
|
1245
|
+
partiallyRevealed?: boolean;
|
|
1438
1246
|
};
|
|
1439
|
-
declare const
|
|
1247
|
+
declare const CupertinoActivityIndicator: FunctionComponent<CupertinoActivityIndicatorProps>;
|
|
1440
1248
|
|
|
1441
|
-
type
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1249
|
+
type CupertinoAlertDialogProps = {
|
|
1250
|
+
title?: VirtualNode;
|
|
1251
|
+
content?: VirtualNode;
|
|
1252
|
+
actions?: VirtualNode[];
|
|
1253
|
+
insetAnimationDuration?: number;
|
|
1254
|
+
insetAnimationCurve?: Curve;
|
|
1447
1255
|
};
|
|
1448
|
-
declare const
|
|
1256
|
+
declare const CupertinoAlertDialog: FunctionComponent<CupertinoAlertDialogProps>;
|
|
1449
1257
|
|
|
1450
|
-
type
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1258
|
+
type CupertinoButtonProps = {
|
|
1259
|
+
filled?: boolean;
|
|
1260
|
+
padding?: number | EdgeInsets;
|
|
1261
|
+
color?: Color;
|
|
1262
|
+
disabledColor?: Color;
|
|
1263
|
+
minSize?: number;
|
|
1264
|
+
pressedOpacity?: number;
|
|
1265
|
+
borderRadius?: BorderRadius;
|
|
1266
|
+
alignment?: Alignment;
|
|
1267
|
+
onPressed?: () => void;
|
|
1460
1268
|
children: VirtualNode;
|
|
1461
1269
|
};
|
|
1462
|
-
declare const
|
|
1270
|
+
declare const CupertinoButton: FunctionComponent<CupertinoButtonProps>;
|
|
1463
1271
|
|
|
1464
|
-
type
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
curve?: Curve;
|
|
1469
|
-
filterQuality?: FilterQuality;
|
|
1470
|
-
onEnd?: () => void;
|
|
1471
|
-
children?: VirtualNode;
|
|
1272
|
+
type CupertinoColors = Record<"white" | "black" | "lightBackgroundGray" | "extraLightBackgroundGray" | "darkBackgroundGray" | "inactiveGray" | "systemBlue" | "systemGreen" | "systemMint" | "systemIndigo" | "systemOrange" | "systemPink" | "systemBrown" | "systemPurple" | "systemRed" | "systemTeal" | "systemCyan" | "systemYellow" | "systemGrey" | "systemGrey2" | "systemGrey3" | "systemGrey4" | "systemGrey5" | "systemGrey6" | "label" | "secondaryLabel" | "tertiaryLabel" | "quaternaryLabel" | "systemFill" | "secondarySystemFill" | "tertiarySystemFill" | "quaternarySystemFill" | "placeholderText" | "systemBackground" | "secondarySystemBackground" | "tertiarySystemBackground" | "systemGroupedBackground" | "secondarySystemGroupedBackground" | "tertiarySystemGroupedBackground" | "separator" | "opaqueSeparator" | "link" | "activeBlue" | "activeGreen" | "activeOrange" | "destructiveRed", Color>;
|
|
1273
|
+
declare const CupertinoColorsWithBrightness: {
|
|
1274
|
+
light: CupertinoColors;
|
|
1275
|
+
dark: CupertinoColors;
|
|
1472
1276
|
};
|
|
1473
|
-
declare
|
|
1277
|
+
declare function useCupertinoColors(): CupertinoColors;
|
|
1474
1278
|
|
|
1475
|
-
type
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
alignment?: Alignment;
|
|
1480
|
-
filterQuality?: FilterQuality;
|
|
1481
|
-
onEnd?: () => void;
|
|
1482
|
-
children?: VirtualNode;
|
|
1279
|
+
type CupertinoContextMenuProps = {
|
|
1280
|
+
enableHapticFeedback?: boolean;
|
|
1281
|
+
actions: VirtualNode[];
|
|
1282
|
+
children: VirtualNode;
|
|
1483
1283
|
};
|
|
1484
|
-
declare const
|
|
1284
|
+
declare const CupertinoContextMenu: FunctionComponent<CupertinoContextMenuProps>;
|
|
1485
1285
|
|
|
1486
|
-
type AnimatedSizeProps = {
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1286
|
+
type CupertinoIcons = "left_chevron" | "right_chevron" | "share" | "share_solid" | "book" | "book_solid" | "bookmark" | "bookmark_solid" | "info" | "reply" | "conversation_bubble" | "profile_circled" | "plus_circled" | "minus_circled" | "flag" | "search" | "check_mark" | "check_mark_circled" | "check_mark_circled_solid" | "circle" | "circle_filled" | "back" | "forward" | "home" | "shopping_cart" | "ellipsis" | "phone" | "phone_solid" | "down_arrow" | "up_arrow" | "battery_charging" | "battery_empty" | "battery_full" | "battery_75_percent" | "battery_25_percent" | "bluetooth" | "restart" | "reply_all" | "reply_thick_solid" | "share_up" | "shuffle" | "shuffle_medium" | "shuffle_thick" | "photo_camera" | "photo_camera_solid" | "video_camera" | "video_camera_solid" | "switch_camera" | "switch_camera_solid" | "collections" | "collections_solid" | "folder" | "folder_solid" | "folder_open" | "delete" | "delete_solid" | "delete_simple" | "pen" | "pencil" | "create" | "create_solid" | "refresh" | "refresh_circled" | "refresh_circled_solid" | "refresh_thin" | "refresh_thick" | "refresh_bold" | "clear_thick" | "clear_thick_circled" | "clear" | "clear_circled" | "clear_circled_solid" | "add" | "add_circled" | "add_circled_solid" | "gear" | "gear_solid" | "gear_big" | "settings" | "settings_solid" | "music_note" | "double_music_note" | "play_arrow" | "play_arrow_solid" | "pause" | "pause_solid" | "loop" | "loop_thick" | "volume_down" | "volume_mute" | "volume_off" | "volume_up" | "fullscreen" | "fullscreen_exit" | "mic_off" | "mic" | "mic_solid" | "clock" | "clock_solid" | "time" | "time_solid" | "padlock" | "padlock_solid" | "eye" | "eye_solid" | "person" | "person_solid" | "person_add" | "person_add_solid" | "group" | "group_solid" | "mail" | "mail_solid" | "location" | "location_solid" | "tag" | "tag_solid" | "tags" | "tags_solid" | "bus" | "car" | "car_detailed" | "train_style_one" | "train_style_two" | "paw" | "paw_solid" | "game_controller" | "game_controller_solid" | "lab_flask" | "lab_flask_solid" | "heart" | "heart_solid" | "bell" | "bell_solid" | "news" | "news_solid" | "brightness" | "brightness_solid" | "airplane" | "alarm" | "alarm_fill" | "alt" | "ant" | "ant_circle" | "ant_circle_fill" | "ant_fill" | "antenna_radiowaves_left_right" | "app" | "app_badge" | "app_badge_fill" | "app_fill" | "archivebox" | "archivebox_fill" | "arrow_2_circlepath" | "arrow_2_circlepath_circle" | "arrow_2_circlepath_circle_fill" | "arrow_2_squarepath" | "arrow_3_trianglepath" | "arrow_branch" | "arrow_clockwise" | "arrow_clockwise_circle" | "arrow_clockwise_circle_fill" | "arrow_counterclockwise" | "arrow_counterclockwise_circle" | "arrow_counterclockwise_circle_fill" | "arrow_down" | "arrow_down_circle" | "arrow_down_circle_fill" | "arrow_down_doc" | "arrow_down_doc_fill" | "arrow_down_left" | "arrow_down_left_circle" | "arrow_down_left_circle_fill" | "arrow_down_left_square" | "arrow_down_left_square_fill" | "arrow_down_right" | "arrow_down_right_arrow_up_left" | "arrow_down_right_circle" | "arrow_down_right_circle_fill" | "arrow_down_right_square" | "arrow_down_right_square_fill" | "arrow_down_square" | "arrow_down_square_fill" | "arrow_down_to_line" | "arrow_down_to_line_alt" | "arrow_left" | "arrow_left_circle" | "arrow_left_circle_fill" | "arrow_left_right" | "arrow_left_right_circle" | "arrow_left_right_circle_fill" | "arrow_left_right_square" | "arrow_left_right_square_fill" | "arrow_left_square" | "arrow_left_square_fill" | "arrow_left_to_line" | "arrow_left_to_line_alt" | "arrow_merge" | "arrow_right" | "arrow_right_arrow_left" | "arrow_right_arrow_left_circle" | "arrow_right_arrow_left_circle_fill" | "arrow_right_arrow_left_square" | "arrow_right_arrow_left_square_fill" | "arrow_right_circle" | "arrow_right_circle_fill" | "arrow_right_square" | "arrow_right_square_fill" | "arrow_right_to_line" | "arrow_right_to_line_alt" | "arrow_swap" | "arrow_turn_down_left" | "arrow_turn_down_right" | "arrow_turn_left_down" | "arrow_turn_left_up" | "arrow_turn_right_down" | "arrow_turn_right_up" | "arrow_turn_up_left" | "arrow_turn_up_right" | "arrow_up" | "arrow_up_arrow_down" | "arrow_up_arrow_down_circle" | "arrow_up_arrow_down_circle_fill" | "arrow_up_arrow_down_square" | "arrow_up_arrow_down_square_fill" | "arrow_up_bin" | "arrow_up_bin_fill" | "arrow_up_circle" | "arrow_up_circle_fill" | "arrow_up_doc" | "arrow_up_doc_fill" | "arrow_up_down" | "arrow_up_down_circle" | "arrow_up_down_circle_fill" | "arrow_up_down_square" | "arrow_up_down_square_fill" | "arrow_up_left" | "arrow_up_left_arrow_down_right" | "arrow_up_left_circle" | "arrow_up_left_circle_fill" | "arrow_up_left_square" | "arrow_up_left_square_fill" | "arrow_up_right" | "arrow_up_right_circle" | "arrow_up_right_circle_fill" | "arrow_up_right_diamond" | "arrow_up_right_diamond_fill" | "arrow_up_right_square" | "arrow_up_right_square_fill" | "arrow_up_square" | "arrow_up_square_fill" | "arrow_up_to_line" | "arrow_up_to_line_alt" | "arrow_uturn_down" | "arrow_uturn_down_circle" | "arrow_uturn_down_circle_fill" | "arrow_uturn_down_square" | "arrow_uturn_down_square_fill" | "arrow_uturn_left" | "arrow_uturn_left_circle" | "arrow_uturn_left_circle_fill" | "arrow_uturn_left_square" | "arrow_uturn_left_square_fill" | "arrow_uturn_right" | "arrow_uturn_right_circle" | "arrow_uturn_right_circle_fill" | "arrow_uturn_right_square" | "arrow_uturn_right_square_fill" | "arrow_uturn_up" | "arrow_uturn_up_circle" | "arrow_uturn_up_circle_fill" | "arrow_uturn_up_square" | "arrow_uturn_up_square_fill" | "arrowshape_turn_up_left" | "arrowshape_turn_up_left_2" | "arrowshape_turn_up_left_2_fill" | "arrowshape_turn_up_left_circle" | "arrowshape_turn_up_left_circle_fill" | "arrowshape_turn_up_left_fill" | "arrowshape_turn_up_right" | "arrowshape_turn_up_right_circle" | "arrowshape_turn_up_right_circle_fill" | "arrowshape_turn_up_right_fill" | "arrowtriangle_down" | "arrowtriangle_down_circle" | "arrowtriangle_down_circle_fill" | "arrowtriangle_down_fill" | "arrowtriangle_down_square" | "arrowtriangle_down_square_fill" | "arrowtriangle_left" | "arrowtriangle_left_circle" | "arrowtriangle_left_circle_fill" | "arrowtriangle_left_fill" | "arrowtriangle_left_square" | "arrowtriangle_left_square_fill" | "arrowtriangle_right" | "arrowtriangle_right_circle" | "arrowtriangle_right_circle_fill" | "arrowtriangle_right_fill" | "arrowtriangle_right_square" | "arrowtriangle_right_square_fill" | "arrowtriangle_up" | "arrowtriangle_up_circle" | "arrowtriangle_up_circle_fill" | "arrowtriangle_up_fill" | "arrowtriangle_up_square" | "arrowtriangle_up_square_fill" | "asterisk_circle" | "asterisk_circle_fill" | "at" | "at_badge_minus" | "at_badge_plus" | "at_circle" | "at_circle_fill" | "backward" | "backward_end" | "backward_end_alt" | "backward_end_alt_fill" | "backward_end_fill" | "backward_fill" | "badge_plus_radiowaves_right" | "bag" | "bag_badge_minus" | "bag_badge_plus" | "bag_fill" | "bag_fill_badge_minus" | "bag_fill_badge_plus" | "bandage" | "bandage_fill" | "barcode" | "barcode_viewfinder" | "bars" | "battery_0" | "battery_100" | "battery_25" | "bed_double" | "bed_double_fill" | "bell_circle" | "bell_circle_fill" | "bell_fill" | "bell_slash" | "bell_slash_fill" | "bin_xmark" | "bin_xmark_fill" | "bitcoin" | "bitcoin_circle" | "bitcoin_circle_fill" | "bold" | "bold_italic_underline" | "bold_underline" | "bolt" | "bolt_badge_a" | "bolt_badge_a_fill" | "bolt_circle" | "bolt_circle_fill" | "bolt_fill" | "bolt_horizontal" | "bolt_horizontal_circle" | "bolt_horizontal_circle_fill" | "bolt_horizontal_fill" | "bolt_slash" | "bolt_slash_fill" | "book_circle" | "book_circle_fill" | "book_fill" | "bookmark_fill" | "briefcase" | "briefcase_fill" | "bubble_left" | "bubble_left_bubble_right" | "bubble_left_bubble_right_fill" | "bubble_left_fill" | "bubble_middle_bottom" | "bubble_middle_bottom_fill" | "bubble_middle_top" | "bubble_middle_top_fill" | "bubble_right" | "bubble_right_fill" | "building_2_fill" | "burn" | "burst" | "burst_fill" | "calendar" | "calendar_badge_minus" | "calendar_badge_plus" | "calendar_circle" | "calendar_circle_fill" | "calendar_today" | "camera" | "camera_circle" | "camera_circle_fill" | "camera_fill" | "camera_on_rectangle" | "camera_on_rectangle_fill" | "camera_rotate" | "camera_rotate_fill" | "camera_viewfinder" | "capslock" | "capslock_fill" | "capsule" | "capsule_fill" | "captions_bubble" | "captions_bubble_fill" | "car_fill" | "cart" | "cart_badge_minus" | "cart_badge_plus" | "cart_fill" | "cart_fill_badge_minus" | "cart_fill_badge_plus" | "chart_bar" | "chart_bar_alt_fill" | "chart_bar_circle" | "chart_bar_circle_fill" | "chart_bar_fill" | "chart_bar_square" | "chart_bar_square_fill" | "chart_pie" | "chart_pie_fill" | "chat_bubble" | "chat_bubble_2" | "chat_bubble_2_fill" | "chat_bubble_fill" | "chat_bubble_text" | "chat_bubble_text_fill" | "checkmark" | "checkmark_alt" | "checkmark_alt_circle" | "checkmark_alt_circle_fill" | "checkmark_circle" | "checkmark_circle_fill" | "checkmark_rectangle" | "checkmark_rectangle_fill" | "checkmark_seal" | "checkmark_seal_fill" | "checkmark_shield" | "checkmark_shield_fill" | "checkmark_square" | "checkmark_square_fill" | "chevron_back" | "chevron_compact_down" | "chevron_compact_left" | "chevron_compact_right" | "chevron_compact_up" | "chevron_down" | "chevron_down_circle" | "chevron_down_circle_fill" | "chevron_down_square" | "chevron_down_square_fill" | "chevron_forward" | "chevron_left" | "chevron_left_2" | "chevron_left_circle" | "chevron_left_circle_fill" | "chevron_left_slash_chevron_right" | "chevron_left_square" | "chevron_left_square_fill" | "chevron_right" | "chevron_right_2" | "chevron_right_circle" | "chevron_right_circle_fill" | "chevron_right_square" | "chevron_right_square_fill" | "chevron_up" | "chevron_up_chevron_down" | "chevron_up_circle" | "chevron_up_circle_fill" | "chevron_up_square" | "chevron_up_square_fill" | "circle_bottomthird_split" | "circle_fill" | "circle_grid_3x3" | "circle_grid_3x3_fill" | "circle_grid_hex" | "circle_grid_hex_fill" | "circle_lefthalf_fill" | "circle_righthalf_fill" | "clear_fill" | "clock_fill" | "cloud" | "cloud_bolt" | "cloud_bolt_fill" | "cloud_bolt_rain" | "cloud_bolt_rain_fill" | "cloud_download" | "cloud_download_fill" | "cloud_drizzle" | "cloud_drizzle_fill" | "cloud_fill" | "cloud_fog" | "cloud_fog_fill" | "cloud_hail" | "cloud_hail_fill" | "cloud_heavyrain" | "cloud_heavyrain_fill" | "cloud_moon" | "cloud_moon_bolt" | "cloud_moon_bolt_fill" | "cloud_moon_fill" | "cloud_moon_rain" | "cloud_moon_rain_fill" | "cloud_rain" | "cloud_rain_fill" | "cloud_sleet" | "cloud_sleet_fill" | "cloud_snow" | "cloud_snow_fill" | "cloud_sun" | "cloud_sun_bolt" | "cloud_sun_bolt_fill" | "cloud_sun_fill" | "cloud_sun_rain" | "cloud_sun_rain_fill" | "cloud_upload" | "cloud_upload_fill" | "color_filter" | "color_filter_fill" | "command" | "compass" | "compass_fill" | "control" | "creditcard" | "creditcard_fill" | "crop" | "crop_rotate" | "cube" | "cube_box" | "cube_box_fill" | "cube_fill" | "cursor_rays" | "decrease_indent" | "decrease_quotelevel" | "delete_left" | "delete_left_fill" | "delete_right" | "delete_right_fill" | "desktopcomputer" | "device_desktop" | "device_laptop" | "device_phone_landscape" | "device_phone_portrait" | "dial" | "dial_fill" | "divide" | "divide_circle" | "divide_circle_fill" | "divide_square" | "divide_square_fill" | "doc" | "doc_append" | "doc_chart" | "doc_chart_fill" | "doc_checkmark" | "doc_checkmark_fill" | "doc_circle" | "doc_circle_fill" | "doc_fill" | "doc_on_clipboard" | "doc_on_clipboard_fill" | "doc_on_doc" | "doc_on_doc_fill" | "doc_person" | "doc_person_fill" | "doc_plaintext" | "doc_richtext" | "doc_text" | "doc_text_fill" | "doc_text_search" | "doc_text_viewfinder" | "dot_radiowaves_left_right" | "dot_radiowaves_right" | "dot_square" | "dot_square_fill" | "download_circle" | "download_circle_fill" | "drop" | "drop_fill" | "drop_triangle" | "drop_triangle_fill" | "ear" | "eject" | "eject_fill" | "ellipses_bubble" | "ellipses_bubble_fill" | "ellipsis_circle" | "ellipsis_circle_fill" | "ellipsis_vertical" | "ellipsis_vertical_circle" | "ellipsis_vertical_circle_fill" | "envelope" | "envelope_badge" | "envelope_badge_fill" | "envelope_circle" | "envelope_circle_fill" | "envelope_fill" | "envelope_open" | "envelope_open_fill" | "equal" | "equal_circle" | "equal_circle_fill" | "equal_square" | "equal_square_fill" | "escape" | "exclamationmark" | "exclamationmark_bubble" | "exclamationmark_bubble_fill" | "exclamationmark_circle" | "exclamationmark_circle_fill" | "exclamationmark_octagon" | "exclamationmark_octagon_fill" | "exclamationmark_shield" | "exclamationmark_shield_fill" | "exclamationmark_square" | "exclamationmark_square_fill" | "exclamationmark_triangle" | "exclamationmark_triangle_fill" | "eye_fill" | "eye_slash" | "eye_slash_fill" | "eyedropper" | "eyedropper_full" | "eyedropper_halffull" | "eyeglasses" | "f_cursive" | "f_cursive_circle" | "f_cursive_circle_fill" | "film" | "film_fill" | "flag_circle" | "flag_circle_fill" | "flag_fill" | "flag_slash" | "flag_slash_fill" | "flame" | "flame_fill" | "floppy_disk" | "flowchart" | "flowchart_fill" | "folder_badge_minus" | "folder_badge_person_crop" | "folder_badge_plus" | "folder_circle" | "folder_circle_fill" | "folder_fill" | "folder_fill_badge_minus" | "folder_fill_badge_person_crop" | "folder_fill_badge_plus" | "forward_end" | "forward_end_alt" | "forward_end_alt_fill" | "forward_end_fill" | "forward_fill" | "function" | "fx" | "gamecontroller" | "gamecontroller_alt_fill" | "gamecontroller_fill" | "gauge" | "gauge_badge_minus" | "gauge_badge_plus" | "gear_alt" | "gear_alt_fill" | "gift" | "gift_alt" | "gift_alt_fill" | "gift_fill" | "globe" | "gobackward" | "gobackward_10" | "gobackward_15" | "gobackward_30" | "gobackward_45" | "gobackward_60" | "gobackward_75" | "gobackward_90" | "gobackward_minus" | "goforward" | "goforward_10" | "goforward_15" | "goforward_30" | "goforward_45" | "goforward_60" | "goforward_75" | "goforward_90" | "goforward_plus" | "graph_circle" | "graph_circle_fill" | "graph_square" | "graph_square_fill" | "greaterthan" | "greaterthan_circle" | "greaterthan_circle_fill" | "greaterthan_square" | "greaterthan_square_fill" | "grid" | "grid_circle" | "grid_circle_fill" | "guitars" | "hammer" | "hammer_fill" | "hand_draw" | "hand_draw_fill" | "hand_point_left" | "hand_point_left_fill" | "hand_point_right" | "hand_point_right_fill" | "hand_raised" | "hand_raised_fill" | "hand_raised_slash" | "hand_raised_slash_fill" | "hand_thumbsdown" | "hand_thumbsdown_fill" | "hand_thumbsup" | "hand_thumbsup_fill" | "hare" | "hare_fill" | "headphones" | "heart_circle" | "heart_circle_fill" | "heart_fill" | "heart_slash" | "heart_slash_circle" | "heart_slash_circle_fill" | "heart_slash_fill" | "helm" | "hexagon" | "hexagon_fill" | "hifispeaker" | "hifispeaker_fill" | "hourglass" | "hourglass_bottomhalf_fill" | "hourglass_tophalf_fill" | "house" | "house_alt" | "house_alt_fill" | "house_fill" | "hurricane" | "increase_indent" | "increase_quotelevel" | "infinite" | "info_circle" | "info_circle_fill" | "italic" | "keyboard" | "keyboard_chevron_compact_down" | "largecircle_fill_circle" | "lasso" | "layers" | "layers_alt" | "layers_alt_fill" | "layers_fill" | "leaf_arrow_circlepath" | "lessthan" | "lessthan_circle" | "lessthan_circle_fill" | "lessthan_square" | "lessthan_square_fill" | "light_max" | "light_min" | "lightbulb" | "lightbulb_fill" | "lightbulb_slash" | "lightbulb_slash_fill" | "line_horizontal_3" | "line_horizontal_3_decrease" | "line_horizontal_3_decrease_circle" | "line_horizontal_3_decrease_circle_fill" | "link" | "link_circle" | "link_circle_fill" | "list_bullet" | "list_bullet_below_rectangle" | "list_bullet_indent" | "list_dash" | "list_number" | "list_number_rtl" | "location_circle" | "location_circle_fill" | "location_fill" | "location_north" | "location_north_fill" | "location_north_line" | "location_north_line_fill" | "location_slash" | "location_slash_fill" | "lock" | "lock_circle" | "lock_circle_fill" | "lock_fill" | "lock_open" | "lock_open_fill" | "lock_rotation" | "lock_rotation_open" | "lock_shield" | "lock_shield_fill" | "lock_slash" | "lock_slash_fill" | "macwindow" | "map" | "map_fill" | "map_pin" | "map_pin_ellipse" | "map_pin_slash" | "memories" | "memories_badge_minus" | "memories_badge_plus" | "metronome" | "mic_circle" | "mic_circle_fill" | "mic_fill" | "mic_slash" | "mic_slash_fill" | "minus" | "minus_circle" | "minus_circle_fill" | "minus_rectangle" | "minus_rectangle_fill" | "minus_slash_plus" | "minus_square" | "minus_square_fill" | "money_dollar" | "money_dollar_circle" | "money_dollar_circle_fill" | "money_euro" | "money_euro_circle" | "money_euro_circle_fill" | "money_pound" | "money_pound_circle" | "money_pound_circle_fill" | "money_rubl" | "money_rubl_circle" | "money_rubl_circle_fill" | "money_yen" | "money_yen_circle" | "money_yen_circle_fill" | "moon" | "moon_circle" | "moon_circle_fill" | "moon_fill" | "moon_stars" | "moon_stars_fill" | "moon_zzz" | "moon_zzz_fill" | "move" | "multiply" | "multiply_circle" | "multiply_circle_fill" | "multiply_square" | "multiply_square_fill" | "music_albums" | "music_albums_fill" | "music_house" | "music_house_fill" | "music_mic" | "music_note_2" | "music_note_list" | "nosign" | "number" | "number_circle" | "number_circle_fill" | "number_square" | "number_square_fill" | "option" | "paintbrush" | "paintbrush_fill" | "pano" | "pano_fill" | "paperclip" | "paperplane" | "paperplane_fill" | "paragraph" | "pause_circle" | "pause_circle_fill" | "pause_fill" | "pause_rectangle" | "pause_rectangle_fill" | "pencil_circle" | "pencil_circle_fill" | "pencil_ellipsis_rectangle" | "pencil_outline" | "pencil_slash" | "percent" | "person_2" | "person_2_alt" | "person_2_fill" | "person_2_square_stack" | "person_2_square_stack_fill" | "person_3" | "person_3_fill" | "person_alt" | "person_alt_circle" | "person_alt_circle_fill" | "person_badge_minus" | "person_badge_minus_fill" | "person_badge_plus" | "person_badge_plus_fill" | "person_circle" | "person_circle_fill" | "person_crop_circle" | "person_crop_circle_badge_checkmark" | "person_crop_circle_badge_exclam" | "person_crop_circle_badge_minus" | "person_crop_circle_badge_plus" | "person_crop_circle_badge_xmark" | "person_crop_circle_fill" | "person_crop_circle_fill_badge_checkmark" | "person_crop_circle_fill_badge_exclam" | "person_crop_circle_fill_badge_minus" | "person_crop_circle_fill_badge_plus" | "person_crop_circle_fill_badge_xmark" | "person_crop_rectangle" | "person_crop_rectangle_fill" | "person_crop_square" | "person_crop_square_fill" | "person_fill" | "personalhotspot" | "perspective" | "phone_arrow_down_left" | "phone_arrow_right" | "phone_arrow_up_right" | "phone_badge_plus" | "phone_circle" | "phone_circle_fill" | "phone_down" | "phone_down_circle" | "phone_down_circle_fill" | "phone_down_fill" | "phone_fill" | "phone_fill_arrow_down_left" | "phone_fill_arrow_right" | "phone_fill_arrow_up_right" | "phone_fill_badge_plus" | "photo" | "photo_fill" | "photo_fill_on_rectangle_fill" | "photo_on_rectangle" | "piano" | "pin" | "pin_fill" | "pin_slash" | "pin_slash_fill" | "placemark" | "placemark_fill" | "play" | "play_circle" | "play_circle_fill" | "play_fill" | "play_rectangle" | "play_rectangle_fill" | "playpause" | "playpause_fill" | "plus" | "plus_app" | "plus_app_fill" | "plus_bubble" | "plus_bubble_fill" | "plus_circle" | "plus_circle_fill" | "plus_rectangle" | "plus_rectangle_fill" | "plus_rectangle_fill_on_rectangle_fill" | "plus_rectangle_on_rectangle" | "plus_slash_minus" | "plus_square" | "plus_square_fill" | "plus_square_fill_on_square_fill" | "plus_square_on_square" | "plusminus" | "plusminus_circle" | "plusminus_circle_fill" | "power" | "printer" | "printer_fill" | "projective" | "purchased" | "purchased_circle" | "purchased_circle_fill" | "qrcode" | "qrcode_viewfinder" | "question" | "question_circle" | "question_circle_fill" | "question_diamond" | "question_diamond_fill" | "question_square" | "question_square_fill" | "quote_bubble" | "quote_bubble_fill" | "radiowaves_left" | "radiowaves_right" | "rays" | "recordingtape" | "rectangle" | "rectangle_3_offgrid" | "rectangle_3_offgrid_fill" | "rectangle_arrow_up_right_arrow_down_left" | "rectangle_arrow_up_right_arrow_down_left_slash" | "rectangle_badge_checkmark" | "rectangle_badge_xmark" | "rectangle_compress_vertical" | "rectangle_dock" | "rectangle_expand_vertical" | "rectangle_fill" | "rectangle_fill_badge_checkmark" | "rectangle_fill_badge_xmark" | "rectangle_fill_on_rectangle_angled_fill" | "rectangle_fill_on_rectangle_fill" | "rectangle_grid_1x2" | "rectangle_grid_1x2_fill" | "rectangle_grid_2x2" | "rectangle_grid_2x2_fill" | "rectangle_grid_3x2" | "rectangle_grid_3x2_fill" | "rectangle_on_rectangle" | "rectangle_on_rectangle_angled" | "rectangle_paperclip" | "rectangle_split_3x1" | "rectangle_split_3x1_fill" | "rectangle_split_3x3" | "rectangle_split_3x3_fill" | "rectangle_stack" | "rectangle_stack_badge_minus" | "rectangle_stack_badge_person_crop" | "rectangle_stack_badge_plus" | "rectangle_stack_fill" | "rectangle_stack_fill_badge_minus" | "rectangle_stack_fill_badge_person_crop" | "rectangle_stack_fill_badge_plus" | "rectangle_stack_person_crop" | "rectangle_stack_person_crop_fill" | "repeat" | "repeat_1" | "resize" | "resize_h" | "resize_v" | "return_icon" | "rhombus" | "rhombus_fill" | "rocket" | "rocket_fill" | "rosette" | "rotate_left" | "rotate_left_fill" | "rotate_right" | "rotate_right_fill" | "scissors" | "scissors_alt" | "scope" | "scribble" | "search_circle" | "search_circle_fill" | "selection_pin_in_out" | "shield" | "shield_fill" | "shield_lefthalf_fill" | "shield_slash" | "shield_slash_fill" | "shift" | "shift_fill" | "sidebar_left" | "sidebar_right" | "signature" | "skew" | "slash_circle" | "slash_circle_fill" | "slider_horizontal_3" | "slider_horizontal_below_rectangle" | "slowmo" | "smallcircle_circle" | "smallcircle_circle_fill" | "smallcircle_fill_circle" | "smallcircle_fill_circle_fill" | "smiley" | "smiley_fill" | "smoke" | "smoke_fill" | "snow" | "sort_down" | "sort_down_circle" | "sort_down_circle_fill" | "sort_up" | "sort_up_circle" | "sort_up_circle_fill" | "sparkles" | "speaker" | "speaker_1" | "speaker_1_fill" | "speaker_2" | "speaker_2_fill" | "speaker_3" | "speaker_3_fill" | "speaker_fill" | "speaker_slash" | "speaker_slash_fill" | "speaker_slash_fill_rtl" | "speaker_slash_rtl" | "speaker_zzz" | "speaker_zzz_fill" | "speaker_zzz_fill_rtl" | "speaker_zzz_rtl" | "speedometer" | "sportscourt" | "sportscourt_fill" | "square" | "square_arrow_down" | "square_arrow_down_fill" | "square_arrow_down_on_square" | "square_arrow_down_on_square_fill" | "square_arrow_left" | "square_arrow_left_fill" | "square_arrow_right" | "square_arrow_right_fill" | "square_arrow_up" | "square_arrow_up_fill" | "square_arrow_up_on_square" | "square_arrow_up_on_square_fill" | "square_favorites" | "square_favorites_alt" | "square_favorites_alt_fill" | "square_favorites_fill" | "square_fill" | "square_fill_line_vertical_square" | "square_fill_line_vertical_square_fill" | "square_fill_on_circle_fill" | "square_fill_on_square_fill" | "square_grid_2x2" | "square_grid_2x2_fill" | "square_grid_3x2" | "square_grid_3x2_fill" | "square_grid_4x3_fill" | "square_lefthalf_fill" | "square_line_vertical_square" | "square_line_vertical_square_fill" | "square_list" | "square_list_fill" | "square_on_circle" | "square_on_square" | "square_pencil" | "square_pencil_fill" | "square_righthalf_fill" | "square_split_1x2" | "square_split_1x2_fill" | "square_split_2x1" | "square_split_2x1_fill" | "square_split_2x2" | "square_split_2x2_fill" | "square_stack" | "square_stack_3d_down_dottedline" | "square_stack_3d_down_right" | "square_stack_3d_down_right_fill" | "square_stack_3d_up" | "square_stack_3d_up_fill" | "square_stack_3d_up_slash" | "square_stack_3d_up_slash_fill" | "square_stack_fill" | "squares_below_rectangle" | "star" | "star_circle" | "star_circle_fill" | "star_fill" | "star_lefthalf_fill" | "star_slash" | "star_slash_fill" | "staroflife" | "staroflife_fill" | "stop" | "stop_circle" | "stop_circle_fill" | "stop_fill" | "stopwatch" | "stopwatch_fill" | "strikethrough" | "suit_club" | "suit_club_fill" | "suit_diamond" | "suit_diamond_fill" | "suit_heart" | "suit_heart_fill" | "suit_spade" | "suit_spade_fill" | "sum" | "sun_dust" | "sun_dust_fill" | "sun_haze" | "sun_haze_fill" | "sun_max" | "sun_max_fill" | "sun_min" | "sun_min_fill" | "sunrise" | "sunrise_fill" | "sunset" | "sunset_fill" | "t_bubble" | "t_bubble_fill" | "table" | "table_badge_more" | "table_badge_more_fill" | "table_fill" | "tag_circle" | "tag_circle_fill" | "tag_fill" | "text_aligncenter" | "text_alignleft" | "text_alignright" | "text_append" | "text_badge_checkmark" | "text_badge_minus" | "text_badge_plus" | "text_badge_star" | "text_badge_xmark" | "text_bubble" | "text_bubble_fill" | "text_cursor" | "text_insert" | "text_justify" | "text_justifyleft" | "text_justifyright" | "text_quote" | "textbox" | "textformat" | "textformat_123" | "textformat_abc" | "textformat_abc_dottedunderline" | "textformat_alt" | "textformat_size" | "textformat_subscript" | "textformat_superscript" | "thermometer" | "thermometer_snowflake" | "thermometer_sun" | "ticket" | "ticket_fill" | "tickets" | "tickets_fill" | "timelapse" | "timer" | "timer_fill" | "today" | "today_fill" | "tornado" | "tortoise" | "tortoise_fill" | "tram_fill" | "trash" | "trash_circle" | "trash_circle_fill" | "trash_fill" | "trash_slash" | "trash_slash_fill" | "tray" | "tray_2" | "tray_2_fill" | "tray_arrow_down" | "tray_arrow_down_fill" | "tray_arrow_up" | "tray_arrow_up_fill" | "tray_fill" | "tray_full" | "tray_full_fill" | "tree" | "triangle" | "triangle_fill" | "triangle_lefthalf_fill" | "triangle_righthalf_fill" | "tropicalstorm" | "tuningfork" | "tv" | "tv_circle" | "tv_circle_fill" | "tv_fill" | "tv_music_note" | "tv_music_note_fill" | "uiwindow_split_2x1" | "umbrella" | "umbrella_fill" | "underline" | "upload_circle" | "upload_circle_fill" | "videocam" | "videocam_circle" | "videocam_circle_fill" | "videocam_fill" | "view_2d" | "view_3d" | "viewfinder" | "viewfinder_circle" | "viewfinder_circle_fill" | "wand_rays" | "wand_rays_inverse" | "wand_stars" | "wand_stars_inverse" | "waveform" | "waveform_circle" | "waveform_circle_fill" | "waveform_path" | "waveform_path_badge_minus" | "waveform_path_badge_plus" | "waveform_path_ecg" | "wifi" | "wifi_exclamationmark" | "wifi_slash" | "wind" | "wind_snow" | "wrench" | "wrench_fill" | "xmark" | "xmark_circle" | "xmark_circle_fill" | "xmark_octagon" | "xmark_octagon_fill" | "xmark_rectangle" | "xmark_rectangle_fill" | "xmark_seal" | "xmark_seal_fill" | "xmark_shield" | "xmark_shield_fill" | "xmark_square" | "xmark_square_fill" | "zoom_in" | "zoom_out" | "zzz";
|
|
1287
|
+
|
|
1288
|
+
type CupertinoContextMenuActionProps = {
|
|
1289
|
+
isDefaultAction?: boolean;
|
|
1290
|
+
isDestructiveAction?: boolean;
|
|
1291
|
+
onPressed?: () => void;
|
|
1292
|
+
trailingIcon?: CupertinoIcons;
|
|
1293
|
+
children: VirtualNode;
|
|
1493
1294
|
};
|
|
1494
|
-
declare const
|
|
1295
|
+
declare const CupertinoContextMenuAction: FunctionComponent<CupertinoContextMenuActionProps>;
|
|
1495
1296
|
|
|
1496
|
-
type
|
|
1297
|
+
type CupertinoDatePickerMode = 'date' | 'dateAndTime' | 'monthYear' | 'time';
|
|
1298
|
+
type DatePickerDateOrder =
|
|
1299
|
+
/**
|
|
1300
|
+
* Order of the columns, from left to right: day, month, year.
|
|
1301
|
+
*
|
|
1302
|
+
* Example: 12 | March | 1996.
|
|
1303
|
+
*/
|
|
1304
|
+
'dmy'
|
|
1305
|
+
/**
|
|
1306
|
+
* Order of the columns, from left to right: month, day, year.
|
|
1307
|
+
*
|
|
1308
|
+
* Example: March | 12 | 1996.
|
|
1309
|
+
*/
|
|
1310
|
+
| 'mdy'
|
|
1311
|
+
/**
|
|
1312
|
+
* Order of the columns, from left to right: year, month, day.
|
|
1313
|
+
*
|
|
1314
|
+
* Example: 1996 | March | 12.
|
|
1315
|
+
*/
|
|
1316
|
+
| 'ymd'
|
|
1317
|
+
/**
|
|
1318
|
+
* Order of the columns, from left to right: year, day, month.
|
|
1319
|
+
*
|
|
1320
|
+
* Example: 1996 | 12 | March.
|
|
1321
|
+
*/
|
|
1322
|
+
| 'ydm';
|
|
1323
|
+
type CupertinoDatePickerProps = {
|
|
1324
|
+
mode?: CupertinoDatePickerMode;
|
|
1325
|
+
onDateTimeChanged?: (timestamp: number) => void;
|
|
1497
1326
|
/**
|
|
1498
|
-
*
|
|
1499
|
-
* The child will be translated horizontally by width * x and vertically by height * y
|
|
1500
|
-
*/
|
|
1501
|
-
offset: Offset;
|
|
1502
|
-
duration: number;
|
|
1503
|
-
curve?: Curve;
|
|
1504
|
-
onEnd?: () => void;
|
|
1505
|
-
children?: VirtualNode;
|
|
1506
|
-
};
|
|
1507
|
-
declare const AnimatedSlide: FunctionComponent<AnimatedSlideProps>;
|
|
1508
|
-
|
|
1509
|
-
type AnimationValue = number | Offset | RelativeRect | BoxDecoration;
|
|
1510
|
-
type TweenType = 'double' | 'Offset' | 'RelativeRect' | 'BoxDecoration';
|
|
1511
|
-
type Tween<T extends AnimationValue> = {
|
|
1512
|
-
begin: T;
|
|
1513
|
-
end: T;
|
|
1514
|
-
curve?: Curve;
|
|
1515
|
-
reverseCurve?: Curve;
|
|
1516
|
-
};
|
|
1517
|
-
type TweenSequenceItem<T extends AnimationValue> = {
|
|
1518
|
-
begin: T;
|
|
1519
|
-
end: T;
|
|
1520
|
-
curve?: Curve;
|
|
1521
|
-
/**
|
|
1522
|
-
* 0 - 100
|
|
1523
|
-
*/
|
|
1524
|
-
weight: number;
|
|
1525
|
-
};
|
|
1526
|
-
type TweenSequenceConstantItem<T extends AnimationValue> = {
|
|
1527
|
-
value: T;
|
|
1528
|
-
curve?: Curve;
|
|
1529
|
-
/**
|
|
1530
|
-
* 0 - 100
|
|
1531
|
-
*/
|
|
1532
|
-
weight: number;
|
|
1533
|
-
};
|
|
1534
|
-
type TweenSequence<T extends AnimationValue> = Array<TweenSequenceItem<T> | TweenSequenceConstantItem<T>>;
|
|
1535
|
-
type AnimationInitalOptions<T extends AnimationValue> = Tween<T> | TweenSequence<T>;
|
|
1536
|
-
type AnimationStatus = 'dismissed' | 'forward' | 'reverse' | 'completed';
|
|
1537
|
-
type AnimationStatusListener = (status: AnimationStatus) => void;
|
|
1538
|
-
type AnimationControllerIntialOptions = {
|
|
1539
|
-
value?: number;
|
|
1540
|
-
duration?: number;
|
|
1541
|
-
reverseDuration?: number;
|
|
1542
|
-
lowerBound?: number;
|
|
1543
|
-
upperBound?: number;
|
|
1544
|
-
auto?: 'forward' | 'repeat' | 'reverseRepeat';
|
|
1545
|
-
};
|
|
1546
|
-
|
|
1547
|
-
declare class _AnimationBase {
|
|
1548
|
-
private _statusListeners;
|
|
1549
|
-
addStatusListener(listener: AnimationStatusListener): this;
|
|
1550
|
-
removeStatusListener(listener: AnimationStatusListener): this;
|
|
1551
|
-
removeAllStatusListener(): this;
|
|
1552
|
-
private __triggerStatusListener__;
|
|
1553
|
-
protected _checkCallInEffect(methodName: string): void;
|
|
1554
|
-
protected _checkCallInRenderLoop(methodName: string): void;
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
declare class Animation<T extends AnimationValue> extends _AnimationBase {
|
|
1558
|
-
readonly key: string;
|
|
1559
|
-
readonly controllerKey: string;
|
|
1560
|
-
readonly tickerProviderKey: string;
|
|
1561
|
-
readonly options: AnimationInitalOptions<T>;
|
|
1562
|
-
readonly isSequence: boolean;
|
|
1563
|
-
constructor(key: string, controllerKey: string, tickerProviderKey: string, options: AnimationInitalOptions<T>, isSequence: boolean);
|
|
1564
|
-
private _getTweenType;
|
|
1565
|
-
readonly type: TweenType;
|
|
1566
|
-
toJson(): {
|
|
1567
|
-
animationKey: string;
|
|
1568
|
-
controllerKey: string;
|
|
1569
|
-
tickerProviderKey: string;
|
|
1570
|
-
};
|
|
1571
|
-
toTweenJson(): {
|
|
1572
|
-
begin: T;
|
|
1573
|
-
end: T;
|
|
1574
|
-
curve?: Curve | undefined;
|
|
1575
|
-
reverseCurve?: Curve | undefined;
|
|
1576
|
-
animationKey: string;
|
|
1577
|
-
controllerKey: string;
|
|
1578
|
-
tickerProviderKey: string;
|
|
1579
|
-
type: TweenType;
|
|
1580
|
-
};
|
|
1581
|
-
toTweenSequenceJson(): {
|
|
1582
|
-
animationKey: string;
|
|
1583
|
-
controllerKey: string;
|
|
1584
|
-
tickerProviderKey: string;
|
|
1585
|
-
type: TweenType;
|
|
1586
|
-
options: TweenSequence<T>;
|
|
1587
|
-
};
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
declare class AnimationController extends _AnimationBase {
|
|
1591
|
-
readonly key: string;
|
|
1592
|
-
readonly tickerProviderKey: string;
|
|
1593
|
-
constructor(key: string, tickerProviderKey: string);
|
|
1594
|
-
private _animtions;
|
|
1595
|
-
forward(from?: number): Promise<boolean>;
|
|
1596
|
-
reverse(from?: number): Promise<boolean>;
|
|
1597
|
-
animateTo(target: number, duration?: number): Promise<boolean>;
|
|
1598
|
-
repeat(options?: {
|
|
1599
|
-
min?: number;
|
|
1600
|
-
max?: number;
|
|
1601
|
-
period?: number;
|
|
1602
|
-
reverse?: boolean;
|
|
1603
|
-
}): Promise<boolean>;
|
|
1604
|
-
reset(): Promise<boolean>;
|
|
1605
|
-
stop(canceled?: boolean): Promise<boolean>;
|
|
1606
|
-
useTween<T extends AnimationValue>(options: Tween<T>): Animation<T>;
|
|
1607
|
-
useTweenSequence<T extends AnimationValue>(options: TweenSequence<T>): Animation<T>;
|
|
1608
|
-
private _createAnimation;
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
declare function useAnimationController(options?: AnimationControllerIntialOptions): AnimationController;
|
|
1612
|
-
|
|
1613
|
-
type CupertinoActionSheetProps = {
|
|
1614
|
-
title?: VirtualNode;
|
|
1615
|
-
message?: VirtualNode;
|
|
1616
|
-
actions?: VirtualNode[];
|
|
1617
|
-
cancelButton?: VirtualNode;
|
|
1618
|
-
};
|
|
1619
|
-
declare const CupertinoActionSheet: FunctionComponent<CupertinoActionSheetProps>;
|
|
1620
|
-
|
|
1621
|
-
type CupertinoActionSheetActionProps = {
|
|
1622
|
-
isDefaultAction?: boolean;
|
|
1623
|
-
isDestructiveAction?: boolean;
|
|
1624
|
-
onPressed: () => void;
|
|
1625
|
-
children: VirtualNode;
|
|
1626
|
-
};
|
|
1627
|
-
declare const CupertinoActionSheetAction: FunctionComponent<CupertinoActionSheetActionProps>;
|
|
1628
|
-
|
|
1629
|
-
type CupertinoActivityIndicatorProps = {
|
|
1630
|
-
color?: Color;
|
|
1631
|
-
animating?: boolean;
|
|
1632
|
-
radius?: number;
|
|
1633
|
-
partiallyRevealed?: boolean;
|
|
1634
|
-
};
|
|
1635
|
-
declare const CupertinoActivityIndicator: FunctionComponent<CupertinoActivityIndicatorProps>;
|
|
1636
|
-
|
|
1637
|
-
type CupertinoAlertDialogProps = {
|
|
1638
|
-
title?: VirtualNode;
|
|
1639
|
-
content?: VirtualNode;
|
|
1640
|
-
actions?: VirtualNode[];
|
|
1641
|
-
insetAnimationDuration?: number;
|
|
1642
|
-
insetAnimationCurve?: Curve;
|
|
1643
|
-
};
|
|
1644
|
-
declare const CupertinoAlertDialog: FunctionComponent<CupertinoAlertDialogProps>;
|
|
1645
|
-
|
|
1646
|
-
type CupertinoButtonProps = {
|
|
1647
|
-
filled?: boolean;
|
|
1648
|
-
padding?: number | EdgeInsets;
|
|
1649
|
-
color?: Color;
|
|
1650
|
-
disabledColor?: Color;
|
|
1651
|
-
minSize?: number;
|
|
1652
|
-
pressedOpacity?: number;
|
|
1653
|
-
borderRadius?: BorderRadius;
|
|
1654
|
-
alignment?: Alignment;
|
|
1655
|
-
onPressed?: () => void;
|
|
1656
|
-
children: VirtualNode;
|
|
1657
|
-
};
|
|
1658
|
-
declare const CupertinoButton: FunctionComponent<CupertinoButtonProps>;
|
|
1659
|
-
|
|
1660
|
-
type CupertinoContextMenuProps = {
|
|
1661
|
-
enableHapticFeedback?: boolean;
|
|
1662
|
-
actions: VirtualNode[];
|
|
1663
|
-
children: VirtualNode;
|
|
1664
|
-
};
|
|
1665
|
-
declare const CupertinoContextMenu: FunctionComponent<CupertinoContextMenuProps>;
|
|
1666
|
-
|
|
1667
|
-
type CupertinoIcons = "left_chevron" | "right_chevron" | "share" | "share_solid" | "book" | "book_solid" | "bookmark" | "bookmark_solid" | "info" | "reply" | "conversation_bubble" | "profile_circled" | "plus_circled" | "minus_circled" | "flag" | "search" | "check_mark" | "check_mark_circled" | "check_mark_circled_solid" | "circle" | "circle_filled" | "back" | "forward" | "home" | "shopping_cart" | "ellipsis" | "phone" | "phone_solid" | "down_arrow" | "up_arrow" | "battery_charging" | "battery_empty" | "battery_full" | "battery_75_percent" | "battery_25_percent" | "bluetooth" | "restart" | "reply_all" | "reply_thick_solid" | "share_up" | "shuffle" | "shuffle_medium" | "shuffle_thick" | "photo_camera" | "photo_camera_solid" | "video_camera" | "video_camera_solid" | "switch_camera" | "switch_camera_solid" | "collections" | "collections_solid" | "folder" | "folder_solid" | "folder_open" | "delete" | "delete_solid" | "delete_simple" | "pen" | "pencil" | "create" | "create_solid" | "refresh" | "refresh_circled" | "refresh_circled_solid" | "refresh_thin" | "refresh_thick" | "refresh_bold" | "clear_thick" | "clear_thick_circled" | "clear" | "clear_circled" | "clear_circled_solid" | "add" | "add_circled" | "add_circled_solid" | "gear" | "gear_solid" | "gear_big" | "settings" | "settings_solid" | "music_note" | "double_music_note" | "play_arrow" | "play_arrow_solid" | "pause" | "pause_solid" | "loop" | "loop_thick" | "volume_down" | "volume_mute" | "volume_off" | "volume_up" | "fullscreen" | "fullscreen_exit" | "mic_off" | "mic" | "mic_solid" | "clock" | "clock_solid" | "time" | "time_solid" | "padlock" | "padlock_solid" | "eye" | "eye_solid" | "person" | "person_solid" | "person_add" | "person_add_solid" | "group" | "group_solid" | "mail" | "mail_solid" | "location" | "location_solid" | "tag" | "tag_solid" | "tags" | "tags_solid" | "bus" | "car" | "car_detailed" | "train_style_one" | "train_style_two" | "paw" | "paw_solid" | "game_controller" | "game_controller_solid" | "lab_flask" | "lab_flask_solid" | "heart" | "heart_solid" | "bell" | "bell_solid" | "news" | "news_solid" | "brightness" | "brightness_solid" | "airplane" | "alarm" | "alarm_fill" | "alt" | "ant" | "ant_circle" | "ant_circle_fill" | "ant_fill" | "antenna_radiowaves_left_right" | "app" | "app_badge" | "app_badge_fill" | "app_fill" | "archivebox" | "archivebox_fill" | "arrow_2_circlepath" | "arrow_2_circlepath_circle" | "arrow_2_circlepath_circle_fill" | "arrow_2_squarepath" | "arrow_3_trianglepath" | "arrow_branch" | "arrow_clockwise" | "arrow_clockwise_circle" | "arrow_clockwise_circle_fill" | "arrow_counterclockwise" | "arrow_counterclockwise_circle" | "arrow_counterclockwise_circle_fill" | "arrow_down" | "arrow_down_circle" | "arrow_down_circle_fill" | "arrow_down_doc" | "arrow_down_doc_fill" | "arrow_down_left" | "arrow_down_left_circle" | "arrow_down_left_circle_fill" | "arrow_down_left_square" | "arrow_down_left_square_fill" | "arrow_down_right" | "arrow_down_right_arrow_up_left" | "arrow_down_right_circle" | "arrow_down_right_circle_fill" | "arrow_down_right_square" | "arrow_down_right_square_fill" | "arrow_down_square" | "arrow_down_square_fill" | "arrow_down_to_line" | "arrow_down_to_line_alt" | "arrow_left" | "arrow_left_circle" | "arrow_left_circle_fill" | "arrow_left_right" | "arrow_left_right_circle" | "arrow_left_right_circle_fill" | "arrow_left_right_square" | "arrow_left_right_square_fill" | "arrow_left_square" | "arrow_left_square_fill" | "arrow_left_to_line" | "arrow_left_to_line_alt" | "arrow_merge" | "arrow_right" | "arrow_right_arrow_left" | "arrow_right_arrow_left_circle" | "arrow_right_arrow_left_circle_fill" | "arrow_right_arrow_left_square" | "arrow_right_arrow_left_square_fill" | "arrow_right_circle" | "arrow_right_circle_fill" | "arrow_right_square" | "arrow_right_square_fill" | "arrow_right_to_line" | "arrow_right_to_line_alt" | "arrow_swap" | "arrow_turn_down_left" | "arrow_turn_down_right" | "arrow_turn_left_down" | "arrow_turn_left_up" | "arrow_turn_right_down" | "arrow_turn_right_up" | "arrow_turn_up_left" | "arrow_turn_up_right" | "arrow_up" | "arrow_up_arrow_down" | "arrow_up_arrow_down_circle" | "arrow_up_arrow_down_circle_fill" | "arrow_up_arrow_down_square" | "arrow_up_arrow_down_square_fill" | "arrow_up_bin" | "arrow_up_bin_fill" | "arrow_up_circle" | "arrow_up_circle_fill" | "arrow_up_doc" | "arrow_up_doc_fill" | "arrow_up_down" | "arrow_up_down_circle" | "arrow_up_down_circle_fill" | "arrow_up_down_square" | "arrow_up_down_square_fill" | "arrow_up_left" | "arrow_up_left_arrow_down_right" | "arrow_up_left_circle" | "arrow_up_left_circle_fill" | "arrow_up_left_square" | "arrow_up_left_square_fill" | "arrow_up_right" | "arrow_up_right_circle" | "arrow_up_right_circle_fill" | "arrow_up_right_diamond" | "arrow_up_right_diamond_fill" | "arrow_up_right_square" | "arrow_up_right_square_fill" | "arrow_up_square" | "arrow_up_square_fill" | "arrow_up_to_line" | "arrow_up_to_line_alt" | "arrow_uturn_down" | "arrow_uturn_down_circle" | "arrow_uturn_down_circle_fill" | "arrow_uturn_down_square" | "arrow_uturn_down_square_fill" | "arrow_uturn_left" | "arrow_uturn_left_circle" | "arrow_uturn_left_circle_fill" | "arrow_uturn_left_square" | "arrow_uturn_left_square_fill" | "arrow_uturn_right" | "arrow_uturn_right_circle" | "arrow_uturn_right_circle_fill" | "arrow_uturn_right_square" | "arrow_uturn_right_square_fill" | "arrow_uturn_up" | "arrow_uturn_up_circle" | "arrow_uturn_up_circle_fill" | "arrow_uturn_up_square" | "arrow_uturn_up_square_fill" | "arrowshape_turn_up_left" | "arrowshape_turn_up_left_2" | "arrowshape_turn_up_left_2_fill" | "arrowshape_turn_up_left_circle" | "arrowshape_turn_up_left_circle_fill" | "arrowshape_turn_up_left_fill" | "arrowshape_turn_up_right" | "arrowshape_turn_up_right_circle" | "arrowshape_turn_up_right_circle_fill" | "arrowshape_turn_up_right_fill" | "arrowtriangle_down" | "arrowtriangle_down_circle" | "arrowtriangle_down_circle_fill" | "arrowtriangle_down_fill" | "arrowtriangle_down_square" | "arrowtriangle_down_square_fill" | "arrowtriangle_left" | "arrowtriangle_left_circle" | "arrowtriangle_left_circle_fill" | "arrowtriangle_left_fill" | "arrowtriangle_left_square" | "arrowtriangle_left_square_fill" | "arrowtriangle_right" | "arrowtriangle_right_circle" | "arrowtriangle_right_circle_fill" | "arrowtriangle_right_fill" | "arrowtriangle_right_square" | "arrowtriangle_right_square_fill" | "arrowtriangle_up" | "arrowtriangle_up_circle" | "arrowtriangle_up_circle_fill" | "arrowtriangle_up_fill" | "arrowtriangle_up_square" | "arrowtriangle_up_square_fill" | "asterisk_circle" | "asterisk_circle_fill" | "at" | "at_badge_minus" | "at_badge_plus" | "at_circle" | "at_circle_fill" | "backward" | "backward_end" | "backward_end_alt" | "backward_end_alt_fill" | "backward_end_fill" | "backward_fill" | "badge_plus_radiowaves_right" | "bag" | "bag_badge_minus" | "bag_badge_plus" | "bag_fill" | "bag_fill_badge_minus" | "bag_fill_badge_plus" | "bandage" | "bandage_fill" | "barcode" | "barcode_viewfinder" | "bars" | "battery_0" | "battery_100" | "battery_25" | "bed_double" | "bed_double_fill" | "bell_circle" | "bell_circle_fill" | "bell_fill" | "bell_slash" | "bell_slash_fill" | "bin_xmark" | "bin_xmark_fill" | "bitcoin" | "bitcoin_circle" | "bitcoin_circle_fill" | "bold" | "bold_italic_underline" | "bold_underline" | "bolt" | "bolt_badge_a" | "bolt_badge_a_fill" | "bolt_circle" | "bolt_circle_fill" | "bolt_fill" | "bolt_horizontal" | "bolt_horizontal_circle" | "bolt_horizontal_circle_fill" | "bolt_horizontal_fill" | "bolt_slash" | "bolt_slash_fill" | "book_circle" | "book_circle_fill" | "book_fill" | "bookmark_fill" | "briefcase" | "briefcase_fill" | "bubble_left" | "bubble_left_bubble_right" | "bubble_left_bubble_right_fill" | "bubble_left_fill" | "bubble_middle_bottom" | "bubble_middle_bottom_fill" | "bubble_middle_top" | "bubble_middle_top_fill" | "bubble_right" | "bubble_right_fill" | "building_2_fill" | "burn" | "burst" | "burst_fill" | "calendar" | "calendar_badge_minus" | "calendar_badge_plus" | "calendar_circle" | "calendar_circle_fill" | "calendar_today" | "camera" | "camera_circle" | "camera_circle_fill" | "camera_fill" | "camera_on_rectangle" | "camera_on_rectangle_fill" | "camera_rotate" | "camera_rotate_fill" | "camera_viewfinder" | "capslock" | "capslock_fill" | "capsule" | "capsule_fill" | "captions_bubble" | "captions_bubble_fill" | "car_fill" | "cart" | "cart_badge_minus" | "cart_badge_plus" | "cart_fill" | "cart_fill_badge_minus" | "cart_fill_badge_plus" | "chart_bar" | "chart_bar_alt_fill" | "chart_bar_circle" | "chart_bar_circle_fill" | "chart_bar_fill" | "chart_bar_square" | "chart_bar_square_fill" | "chart_pie" | "chart_pie_fill" | "chat_bubble" | "chat_bubble_2" | "chat_bubble_2_fill" | "chat_bubble_fill" | "chat_bubble_text" | "chat_bubble_text_fill" | "checkmark" | "checkmark_alt" | "checkmark_alt_circle" | "checkmark_alt_circle_fill" | "checkmark_circle" | "checkmark_circle_fill" | "checkmark_rectangle" | "checkmark_rectangle_fill" | "checkmark_seal" | "checkmark_seal_fill" | "checkmark_shield" | "checkmark_shield_fill" | "checkmark_square" | "checkmark_square_fill" | "chevron_back" | "chevron_compact_down" | "chevron_compact_left" | "chevron_compact_right" | "chevron_compact_up" | "chevron_down" | "chevron_down_circle" | "chevron_down_circle_fill" | "chevron_down_square" | "chevron_down_square_fill" | "chevron_forward" | "chevron_left" | "chevron_left_2" | "chevron_left_circle" | "chevron_left_circle_fill" | "chevron_left_slash_chevron_right" | "chevron_left_square" | "chevron_left_square_fill" | "chevron_right" | "chevron_right_2" | "chevron_right_circle" | "chevron_right_circle_fill" | "chevron_right_square" | "chevron_right_square_fill" | "chevron_up" | "chevron_up_chevron_down" | "chevron_up_circle" | "chevron_up_circle_fill" | "chevron_up_square" | "chevron_up_square_fill" | "circle_bottomthird_split" | "circle_fill" | "circle_grid_3x3" | "circle_grid_3x3_fill" | "circle_grid_hex" | "circle_grid_hex_fill" | "circle_lefthalf_fill" | "circle_righthalf_fill" | "clear_fill" | "clock_fill" | "cloud" | "cloud_bolt" | "cloud_bolt_fill" | "cloud_bolt_rain" | "cloud_bolt_rain_fill" | "cloud_download" | "cloud_download_fill" | "cloud_drizzle" | "cloud_drizzle_fill" | "cloud_fill" | "cloud_fog" | "cloud_fog_fill" | "cloud_hail" | "cloud_hail_fill" | "cloud_heavyrain" | "cloud_heavyrain_fill" | "cloud_moon" | "cloud_moon_bolt" | "cloud_moon_bolt_fill" | "cloud_moon_fill" | "cloud_moon_rain" | "cloud_moon_rain_fill" | "cloud_rain" | "cloud_rain_fill" | "cloud_sleet" | "cloud_sleet_fill" | "cloud_snow" | "cloud_snow_fill" | "cloud_sun" | "cloud_sun_bolt" | "cloud_sun_bolt_fill" | "cloud_sun_fill" | "cloud_sun_rain" | "cloud_sun_rain_fill" | "cloud_upload" | "cloud_upload_fill" | "color_filter" | "color_filter_fill" | "command" | "compass" | "compass_fill" | "control" | "creditcard" | "creditcard_fill" | "crop" | "crop_rotate" | "cube" | "cube_box" | "cube_box_fill" | "cube_fill" | "cursor_rays" | "decrease_indent" | "decrease_quotelevel" | "delete_left" | "delete_left_fill" | "delete_right" | "delete_right_fill" | "desktopcomputer" | "device_desktop" | "device_laptop" | "device_phone_landscape" | "device_phone_portrait" | "dial" | "dial_fill" | "divide" | "divide_circle" | "divide_circle_fill" | "divide_square" | "divide_square_fill" | "doc" | "doc_append" | "doc_chart" | "doc_chart_fill" | "doc_checkmark" | "doc_checkmark_fill" | "doc_circle" | "doc_circle_fill" | "doc_fill" | "doc_on_clipboard" | "doc_on_clipboard_fill" | "doc_on_doc" | "doc_on_doc_fill" | "doc_person" | "doc_person_fill" | "doc_plaintext" | "doc_richtext" | "doc_text" | "doc_text_fill" | "doc_text_search" | "doc_text_viewfinder" | "dot_radiowaves_left_right" | "dot_radiowaves_right" | "dot_square" | "dot_square_fill" | "download_circle" | "download_circle_fill" | "drop" | "drop_fill" | "drop_triangle" | "drop_triangle_fill" | "ear" | "eject" | "eject_fill" | "ellipses_bubble" | "ellipses_bubble_fill" | "ellipsis_circle" | "ellipsis_circle_fill" | "ellipsis_vertical" | "ellipsis_vertical_circle" | "ellipsis_vertical_circle_fill" | "envelope" | "envelope_badge" | "envelope_badge_fill" | "envelope_circle" | "envelope_circle_fill" | "envelope_fill" | "envelope_open" | "envelope_open_fill" | "equal" | "equal_circle" | "equal_circle_fill" | "equal_square" | "equal_square_fill" | "escape" | "exclamationmark" | "exclamationmark_bubble" | "exclamationmark_bubble_fill" | "exclamationmark_circle" | "exclamationmark_circle_fill" | "exclamationmark_octagon" | "exclamationmark_octagon_fill" | "exclamationmark_shield" | "exclamationmark_shield_fill" | "exclamationmark_square" | "exclamationmark_square_fill" | "exclamationmark_triangle" | "exclamationmark_triangle_fill" | "eye_fill" | "eye_slash" | "eye_slash_fill" | "eyedropper" | "eyedropper_full" | "eyedropper_halffull" | "eyeglasses" | "f_cursive" | "f_cursive_circle" | "f_cursive_circle_fill" | "film" | "film_fill" | "flag_circle" | "flag_circle_fill" | "flag_fill" | "flag_slash" | "flag_slash_fill" | "flame" | "flame_fill" | "floppy_disk" | "flowchart" | "flowchart_fill" | "folder_badge_minus" | "folder_badge_person_crop" | "folder_badge_plus" | "folder_circle" | "folder_circle_fill" | "folder_fill" | "folder_fill_badge_minus" | "folder_fill_badge_person_crop" | "folder_fill_badge_plus" | "forward_end" | "forward_end_alt" | "forward_end_alt_fill" | "forward_end_fill" | "forward_fill" | "function" | "fx" | "gamecontroller" | "gamecontroller_alt_fill" | "gamecontroller_fill" | "gauge" | "gauge_badge_minus" | "gauge_badge_plus" | "gear_alt" | "gear_alt_fill" | "gift" | "gift_alt" | "gift_alt_fill" | "gift_fill" | "globe" | "gobackward" | "gobackward_10" | "gobackward_15" | "gobackward_30" | "gobackward_45" | "gobackward_60" | "gobackward_75" | "gobackward_90" | "gobackward_minus" | "goforward" | "goforward_10" | "goforward_15" | "goforward_30" | "goforward_45" | "goforward_60" | "goforward_75" | "goforward_90" | "goforward_plus" | "graph_circle" | "graph_circle_fill" | "graph_square" | "graph_square_fill" | "greaterthan" | "greaterthan_circle" | "greaterthan_circle_fill" | "greaterthan_square" | "greaterthan_square_fill" | "grid" | "grid_circle" | "grid_circle_fill" | "guitars" | "hammer" | "hammer_fill" | "hand_draw" | "hand_draw_fill" | "hand_point_left" | "hand_point_left_fill" | "hand_point_right" | "hand_point_right_fill" | "hand_raised" | "hand_raised_fill" | "hand_raised_slash" | "hand_raised_slash_fill" | "hand_thumbsdown" | "hand_thumbsdown_fill" | "hand_thumbsup" | "hand_thumbsup_fill" | "hare" | "hare_fill" | "headphones" | "heart_circle" | "heart_circle_fill" | "heart_fill" | "heart_slash" | "heart_slash_circle" | "heart_slash_circle_fill" | "heart_slash_fill" | "helm" | "hexagon" | "hexagon_fill" | "hifispeaker" | "hifispeaker_fill" | "hourglass" | "hourglass_bottomhalf_fill" | "hourglass_tophalf_fill" | "house" | "house_alt" | "house_alt_fill" | "house_fill" | "hurricane" | "increase_indent" | "increase_quotelevel" | "infinite" | "info_circle" | "info_circle_fill" | "italic" | "keyboard" | "keyboard_chevron_compact_down" | "largecircle_fill_circle" | "lasso" | "layers" | "layers_alt" | "layers_alt_fill" | "layers_fill" | "leaf_arrow_circlepath" | "lessthan" | "lessthan_circle" | "lessthan_circle_fill" | "lessthan_square" | "lessthan_square_fill" | "light_max" | "light_min" | "lightbulb" | "lightbulb_fill" | "lightbulb_slash" | "lightbulb_slash_fill" | "line_horizontal_3" | "line_horizontal_3_decrease" | "line_horizontal_3_decrease_circle" | "line_horizontal_3_decrease_circle_fill" | "link" | "link_circle" | "link_circle_fill" | "list_bullet" | "list_bullet_below_rectangle" | "list_bullet_indent" | "list_dash" | "list_number" | "list_number_rtl" | "location_circle" | "location_circle_fill" | "location_fill" | "location_north" | "location_north_fill" | "location_north_line" | "location_north_line_fill" | "location_slash" | "location_slash_fill" | "lock" | "lock_circle" | "lock_circle_fill" | "lock_fill" | "lock_open" | "lock_open_fill" | "lock_rotation" | "lock_rotation_open" | "lock_shield" | "lock_shield_fill" | "lock_slash" | "lock_slash_fill" | "macwindow" | "map" | "map_fill" | "map_pin" | "map_pin_ellipse" | "map_pin_slash" | "memories" | "memories_badge_minus" | "memories_badge_plus" | "metronome" | "mic_circle" | "mic_circle_fill" | "mic_fill" | "mic_slash" | "mic_slash_fill" | "minus" | "minus_circle" | "minus_circle_fill" | "minus_rectangle" | "minus_rectangle_fill" | "minus_slash_plus" | "minus_square" | "minus_square_fill" | "money_dollar" | "money_dollar_circle" | "money_dollar_circle_fill" | "money_euro" | "money_euro_circle" | "money_euro_circle_fill" | "money_pound" | "money_pound_circle" | "money_pound_circle_fill" | "money_rubl" | "money_rubl_circle" | "money_rubl_circle_fill" | "money_yen" | "money_yen_circle" | "money_yen_circle_fill" | "moon" | "moon_circle" | "moon_circle_fill" | "moon_fill" | "moon_stars" | "moon_stars_fill" | "moon_zzz" | "moon_zzz_fill" | "move" | "multiply" | "multiply_circle" | "multiply_circle_fill" | "multiply_square" | "multiply_square_fill" | "music_albums" | "music_albums_fill" | "music_house" | "music_house_fill" | "music_mic" | "music_note_2" | "music_note_list" | "nosign" | "number" | "number_circle" | "number_circle_fill" | "number_square" | "number_square_fill" | "option" | "paintbrush" | "paintbrush_fill" | "pano" | "pano_fill" | "paperclip" | "paperplane" | "paperplane_fill" | "paragraph" | "pause_circle" | "pause_circle_fill" | "pause_fill" | "pause_rectangle" | "pause_rectangle_fill" | "pencil_circle" | "pencil_circle_fill" | "pencil_ellipsis_rectangle" | "pencil_outline" | "pencil_slash" | "percent" | "person_2" | "person_2_alt" | "person_2_fill" | "person_2_square_stack" | "person_2_square_stack_fill" | "person_3" | "person_3_fill" | "person_alt" | "person_alt_circle" | "person_alt_circle_fill" | "person_badge_minus" | "person_badge_minus_fill" | "person_badge_plus" | "person_badge_plus_fill" | "person_circle" | "person_circle_fill" | "person_crop_circle" | "person_crop_circle_badge_checkmark" | "person_crop_circle_badge_exclam" | "person_crop_circle_badge_minus" | "person_crop_circle_badge_plus" | "person_crop_circle_badge_xmark" | "person_crop_circle_fill" | "person_crop_circle_fill_badge_checkmark" | "person_crop_circle_fill_badge_exclam" | "person_crop_circle_fill_badge_minus" | "person_crop_circle_fill_badge_plus" | "person_crop_circle_fill_badge_xmark" | "person_crop_rectangle" | "person_crop_rectangle_fill" | "person_crop_square" | "person_crop_square_fill" | "person_fill" | "personalhotspot" | "perspective" | "phone_arrow_down_left" | "phone_arrow_right" | "phone_arrow_up_right" | "phone_badge_plus" | "phone_circle" | "phone_circle_fill" | "phone_down" | "phone_down_circle" | "phone_down_circle_fill" | "phone_down_fill" | "phone_fill" | "phone_fill_arrow_down_left" | "phone_fill_arrow_right" | "phone_fill_arrow_up_right" | "phone_fill_badge_plus" | "photo" | "photo_fill" | "photo_fill_on_rectangle_fill" | "photo_on_rectangle" | "piano" | "pin" | "pin_fill" | "pin_slash" | "pin_slash_fill" | "placemark" | "placemark_fill" | "play" | "play_circle" | "play_circle_fill" | "play_fill" | "play_rectangle" | "play_rectangle_fill" | "playpause" | "playpause_fill" | "plus" | "plus_app" | "plus_app_fill" | "plus_bubble" | "plus_bubble_fill" | "plus_circle" | "plus_circle_fill" | "plus_rectangle" | "plus_rectangle_fill" | "plus_rectangle_fill_on_rectangle_fill" | "plus_rectangle_on_rectangle" | "plus_slash_minus" | "plus_square" | "plus_square_fill" | "plus_square_fill_on_square_fill" | "plus_square_on_square" | "plusminus" | "plusminus_circle" | "plusminus_circle_fill" | "power" | "printer" | "printer_fill" | "projective" | "purchased" | "purchased_circle" | "purchased_circle_fill" | "qrcode" | "qrcode_viewfinder" | "question" | "question_circle" | "question_circle_fill" | "question_diamond" | "question_diamond_fill" | "question_square" | "question_square_fill" | "quote_bubble" | "quote_bubble_fill" | "radiowaves_left" | "radiowaves_right" | "rays" | "recordingtape" | "rectangle" | "rectangle_3_offgrid" | "rectangle_3_offgrid_fill" | "rectangle_arrow_up_right_arrow_down_left" | "rectangle_arrow_up_right_arrow_down_left_slash" | "rectangle_badge_checkmark" | "rectangle_badge_xmark" | "rectangle_compress_vertical" | "rectangle_dock" | "rectangle_expand_vertical" | "rectangle_fill" | "rectangle_fill_badge_checkmark" | "rectangle_fill_badge_xmark" | "rectangle_fill_on_rectangle_angled_fill" | "rectangle_fill_on_rectangle_fill" | "rectangle_grid_1x2" | "rectangle_grid_1x2_fill" | "rectangle_grid_2x2" | "rectangle_grid_2x2_fill" | "rectangle_grid_3x2" | "rectangle_grid_3x2_fill" | "rectangle_on_rectangle" | "rectangle_on_rectangle_angled" | "rectangle_paperclip" | "rectangle_split_3x1" | "rectangle_split_3x1_fill" | "rectangle_split_3x3" | "rectangle_split_3x3_fill" | "rectangle_stack" | "rectangle_stack_badge_minus" | "rectangle_stack_badge_person_crop" | "rectangle_stack_badge_plus" | "rectangle_stack_fill" | "rectangle_stack_fill_badge_minus" | "rectangle_stack_fill_badge_person_crop" | "rectangle_stack_fill_badge_plus" | "rectangle_stack_person_crop" | "rectangle_stack_person_crop_fill" | "repeat" | "repeat_1" | "resize" | "resize_h" | "resize_v" | "return_icon" | "rhombus" | "rhombus_fill" | "rocket" | "rocket_fill" | "rosette" | "rotate_left" | "rotate_left_fill" | "rotate_right" | "rotate_right_fill" | "scissors" | "scissors_alt" | "scope" | "scribble" | "search_circle" | "search_circle_fill" | "selection_pin_in_out" | "shield" | "shield_fill" | "shield_lefthalf_fill" | "shield_slash" | "shield_slash_fill" | "shift" | "shift_fill" | "sidebar_left" | "sidebar_right" | "signature" | "skew" | "slash_circle" | "slash_circle_fill" | "slider_horizontal_3" | "slider_horizontal_below_rectangle" | "slowmo" | "smallcircle_circle" | "smallcircle_circle_fill" | "smallcircle_fill_circle" | "smallcircle_fill_circle_fill" | "smiley" | "smiley_fill" | "smoke" | "smoke_fill" | "snow" | "sort_down" | "sort_down_circle" | "sort_down_circle_fill" | "sort_up" | "sort_up_circle" | "sort_up_circle_fill" | "sparkles" | "speaker" | "speaker_1" | "speaker_1_fill" | "speaker_2" | "speaker_2_fill" | "speaker_3" | "speaker_3_fill" | "speaker_fill" | "speaker_slash" | "speaker_slash_fill" | "speaker_slash_fill_rtl" | "speaker_slash_rtl" | "speaker_zzz" | "speaker_zzz_fill" | "speaker_zzz_fill_rtl" | "speaker_zzz_rtl" | "speedometer" | "sportscourt" | "sportscourt_fill" | "square" | "square_arrow_down" | "square_arrow_down_fill" | "square_arrow_down_on_square" | "square_arrow_down_on_square_fill" | "square_arrow_left" | "square_arrow_left_fill" | "square_arrow_right" | "square_arrow_right_fill" | "square_arrow_up" | "square_arrow_up_fill" | "square_arrow_up_on_square" | "square_arrow_up_on_square_fill" | "square_favorites" | "square_favorites_alt" | "square_favorites_alt_fill" | "square_favorites_fill" | "square_fill" | "square_fill_line_vertical_square" | "square_fill_line_vertical_square_fill" | "square_fill_on_circle_fill" | "square_fill_on_square_fill" | "square_grid_2x2" | "square_grid_2x2_fill" | "square_grid_3x2" | "square_grid_3x2_fill" | "square_grid_4x3_fill" | "square_lefthalf_fill" | "square_line_vertical_square" | "square_line_vertical_square_fill" | "square_list" | "square_list_fill" | "square_on_circle" | "square_on_square" | "square_pencil" | "square_pencil_fill" | "square_righthalf_fill" | "square_split_1x2" | "square_split_1x2_fill" | "square_split_2x1" | "square_split_2x1_fill" | "square_split_2x2" | "square_split_2x2_fill" | "square_stack" | "square_stack_3d_down_dottedline" | "square_stack_3d_down_right" | "square_stack_3d_down_right_fill" | "square_stack_3d_up" | "square_stack_3d_up_fill" | "square_stack_3d_up_slash" | "square_stack_3d_up_slash_fill" | "square_stack_fill" | "squares_below_rectangle" | "star" | "star_circle" | "star_circle_fill" | "star_fill" | "star_lefthalf_fill" | "star_slash" | "star_slash_fill" | "staroflife" | "staroflife_fill" | "stop" | "stop_circle" | "stop_circle_fill" | "stop_fill" | "stopwatch" | "stopwatch_fill" | "strikethrough" | "suit_club" | "suit_club_fill" | "suit_diamond" | "suit_diamond_fill" | "suit_heart" | "suit_heart_fill" | "suit_spade" | "suit_spade_fill" | "sum" | "sun_dust" | "sun_dust_fill" | "sun_haze" | "sun_haze_fill" | "sun_max" | "sun_max_fill" | "sun_min" | "sun_min_fill" | "sunrise" | "sunrise_fill" | "sunset" | "sunset_fill" | "t_bubble" | "t_bubble_fill" | "table" | "table_badge_more" | "table_badge_more_fill" | "table_fill" | "tag_circle" | "tag_circle_fill" | "tag_fill" | "text_aligncenter" | "text_alignleft" | "text_alignright" | "text_append" | "text_badge_checkmark" | "text_badge_minus" | "text_badge_plus" | "text_badge_star" | "text_badge_xmark" | "text_bubble" | "text_bubble_fill" | "text_cursor" | "text_insert" | "text_justify" | "text_justifyleft" | "text_justifyright" | "text_quote" | "textbox" | "textformat" | "textformat_123" | "textformat_abc" | "textformat_abc_dottedunderline" | "textformat_alt" | "textformat_size" | "textformat_subscript" | "textformat_superscript" | "thermometer" | "thermometer_snowflake" | "thermometer_sun" | "ticket" | "ticket_fill" | "tickets" | "tickets_fill" | "timelapse" | "timer" | "timer_fill" | "today" | "today_fill" | "tornado" | "tortoise" | "tortoise_fill" | "tram_fill" | "trash" | "trash_circle" | "trash_circle_fill" | "trash_fill" | "trash_slash" | "trash_slash_fill" | "tray" | "tray_2" | "tray_2_fill" | "tray_arrow_down" | "tray_arrow_down_fill" | "tray_arrow_up" | "tray_arrow_up_fill" | "tray_fill" | "tray_full" | "tray_full_fill" | "tree" | "triangle" | "triangle_fill" | "triangle_lefthalf_fill" | "triangle_righthalf_fill" | "tropicalstorm" | "tuningfork" | "tv" | "tv_circle" | "tv_circle_fill" | "tv_fill" | "tv_music_note" | "tv_music_note_fill" | "uiwindow_split_2x1" | "umbrella" | "umbrella_fill" | "underline" | "upload_circle" | "upload_circle_fill" | "videocam" | "videocam_circle" | "videocam_circle_fill" | "videocam_fill" | "view_2d" | "view_3d" | "viewfinder" | "viewfinder_circle" | "viewfinder_circle_fill" | "wand_rays" | "wand_rays_inverse" | "wand_stars" | "wand_stars_inverse" | "waveform" | "waveform_circle" | "waveform_circle_fill" | "waveform_path" | "waveform_path_badge_minus" | "waveform_path_badge_plus" | "waveform_path_ecg" | "wifi" | "wifi_exclamationmark" | "wifi_slash" | "wind" | "wind_snow" | "wrench" | "wrench_fill" | "xmark" | "xmark_circle" | "xmark_circle_fill" | "xmark_octagon" | "xmark_octagon_fill" | "xmark_rectangle" | "xmark_rectangle_fill" | "xmark_seal" | "xmark_seal_fill" | "xmark_shield" | "xmark_shield_fill" | "xmark_square" | "xmark_square_fill" | "zoom_in" | "zoom_out" | "zzz";
|
|
1668
|
-
|
|
1669
|
-
type CupertinoContextMenuActionProps = {
|
|
1670
|
-
isDefaultAction?: boolean;
|
|
1671
|
-
isDestructiveAction?: boolean;
|
|
1672
|
-
onPressed?: () => void;
|
|
1673
|
-
trailingIcon?: CupertinoIcons;
|
|
1674
|
-
children: VirtualNode;
|
|
1675
|
-
};
|
|
1676
|
-
declare const CupertinoContextMenuAction: FunctionComponent<CupertinoContextMenuActionProps>;
|
|
1677
|
-
|
|
1678
|
-
type CupertinoDatePickerMode = 'date' | 'dateAndTime' | 'monthYear' | 'time';
|
|
1679
|
-
type DatePickerDateOrder =
|
|
1680
|
-
/**
|
|
1681
|
-
* Order of the columns, from left to right: day, month, year.
|
|
1682
|
-
*
|
|
1683
|
-
* Example: 12 | March | 1996.
|
|
1684
|
-
*/
|
|
1685
|
-
'dmy'
|
|
1686
|
-
/**
|
|
1687
|
-
* Order of the columns, from left to right: month, day, year.
|
|
1688
|
-
*
|
|
1689
|
-
* Example: March | 12 | 1996.
|
|
1690
|
-
*/
|
|
1691
|
-
| 'mdy'
|
|
1692
|
-
/**
|
|
1693
|
-
* Order of the columns, from left to right: year, month, day.
|
|
1694
|
-
*
|
|
1695
|
-
* Example: 1996 | March | 12.
|
|
1696
|
-
*/
|
|
1697
|
-
| 'ymd'
|
|
1698
|
-
/**
|
|
1699
|
-
* Order of the columns, from left to right: year, day, month.
|
|
1700
|
-
*
|
|
1701
|
-
* Example: 1996 | 12 | March.
|
|
1702
|
-
*/
|
|
1703
|
-
| 'ydm';
|
|
1704
|
-
type CupertinoDatePickerProps = {
|
|
1705
|
-
mode?: CupertinoDatePickerMode;
|
|
1706
|
-
onDateTimeChanged?: (timestamp: number) => void;
|
|
1707
|
-
/**
|
|
1708
|
-
* timestamp
|
|
1327
|
+
* timestamp
|
|
1709
1328
|
*/
|
|
1710
1329
|
initialDateTime?: number;
|
|
1711
1330
|
/**
|
|
@@ -3084,11 +2703,11 @@ declare class WebViewController {
|
|
|
3084
2703
|
readonly key: string;
|
|
3085
2704
|
constructor(key: string);
|
|
3086
2705
|
/**
|
|
3087
|
-
*
|
|
2706
|
+
* Load by url
|
|
3088
2707
|
*/
|
|
3089
2708
|
loadUrl(url: string): void;
|
|
3090
2709
|
/**
|
|
3091
|
-
*
|
|
2710
|
+
* Load string data
|
|
3092
2711
|
*/
|
|
3093
2712
|
loadData(data: string, options?: {
|
|
3094
2713
|
mimeType?: string;
|
|
@@ -3170,6 +2789,467 @@ type WrapProps = {
|
|
|
3170
2789
|
};
|
|
3171
2790
|
declare const Wrap: FunctionComponent<WrapProps>;
|
|
3172
2791
|
|
|
2792
|
+
type SystemUIOverlayStyle = {
|
|
2793
|
+
systemNavigationBarColor?: Color;
|
|
2794
|
+
systemNavigationBarDividerColor?: Color;
|
|
2795
|
+
statusBarColor?: Color;
|
|
2796
|
+
systemNavigationBarIconBrightness?: Brightness;
|
|
2797
|
+
statusBarBrightness?: Brightness;
|
|
2798
|
+
statusBarIconBrightness?: Brightness;
|
|
2799
|
+
systemNavigationBarContrastEnforced?: boolean;
|
|
2800
|
+
systemStatusBarContrastEnforced?: boolean;
|
|
2801
|
+
};
|
|
2802
|
+
declare function setSystemUIOverlayStyle(brightness: Brightness): void;
|
|
2803
|
+
declare function setCustomSystemUIOverlayStyle(style: SystemUIOverlayStyle): void;
|
|
2804
|
+
|
|
2805
|
+
declare function setThemeMode(themeMode: ThemeMode): void;
|
|
2806
|
+
|
|
2807
|
+
declare const Device: {
|
|
2808
|
+
readonly isIOS: boolean;
|
|
2809
|
+
readonly isAndroid: boolean;
|
|
2810
|
+
readonly brand: string;
|
|
2811
|
+
readonly model: string;
|
|
2812
|
+
readonly locale: string;
|
|
2813
|
+
readonly systemLocale: string;
|
|
2814
|
+
readonly systemLocales: string[];
|
|
2815
|
+
readonly systemLanguageTag: string;
|
|
2816
|
+
readonly sysmtemLanguageCode: string;
|
|
2817
|
+
readonly systemCountryCode: string | undefined;
|
|
2818
|
+
readonly systemScriptCode: string | undefined;
|
|
2819
|
+
hapticFeedback: typeof hapticFeedback;
|
|
2820
|
+
getBatteryLevel: typeof getBatteryLevel;
|
|
2821
|
+
getBatteryState: typeof getBatteryState;
|
|
2822
|
+
onBatteryStateChanged: typeof onBatteryStateChanged;
|
|
2823
|
+
setLocale: typeof setLocale;
|
|
2824
|
+
setThemeMode: typeof setThemeMode;
|
|
2825
|
+
setPreferredOrientation: typeof setPreferredOrientation;
|
|
2826
|
+
setSystemUIOverlayStyle: typeof setSystemUIOverlayStyle;
|
|
2827
|
+
setCustomSystemUIOverlayStyle: typeof setCustomSystemUIOverlayStyle;
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
/**
|
|
2831
|
+
* Share base64 image
|
|
2832
|
+
* @param options
|
|
2833
|
+
* @param options.image base64 format, e.g. data:image/png;base64,xxxxx...
|
|
2834
|
+
* @param options.text Share text content
|
|
2835
|
+
* @param options.subject Share subject
|
|
2836
|
+
*/
|
|
2837
|
+
declare function shareBase64Image(options: {
|
|
2838
|
+
image: string;
|
|
2839
|
+
text?: string;
|
|
2840
|
+
subject?: string;
|
|
2841
|
+
}): Promise<{
|
|
2842
|
+
status: ShareResultStatus;
|
|
2843
|
+
}>;
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* Share files
|
|
2847
|
+
* @param options
|
|
2848
|
+
* @param options.files Files path
|
|
2849
|
+
* @param options.text Share text content
|
|
2850
|
+
* @param options.subject Share subject
|
|
2851
|
+
*/
|
|
2852
|
+
declare function shareFiles(options: {
|
|
2853
|
+
files: string[];
|
|
2854
|
+
text: string;
|
|
2855
|
+
subject?: string;
|
|
2856
|
+
}): Promise<{
|
|
2857
|
+
status: ShareResultStatus;
|
|
2858
|
+
}>;
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* Share text
|
|
2862
|
+
* @param options
|
|
2863
|
+
* @param options.text Share text content
|
|
2864
|
+
* @param options.subject Share subject
|
|
2865
|
+
*/
|
|
2866
|
+
declare function shareText(options: {
|
|
2867
|
+
text: string;
|
|
2868
|
+
subject?: string;
|
|
2869
|
+
}): Promise<{
|
|
2870
|
+
status: ShareResultStatus;
|
|
2871
|
+
}>;
|
|
2872
|
+
|
|
2873
|
+
declare const Share: {
|
|
2874
|
+
shareText: typeof shareText;
|
|
2875
|
+
shareBase64Image: typeof shareBase64Image;
|
|
2876
|
+
shareFiles: typeof shareFiles;
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Copy text to clipboard.
|
|
2881
|
+
* @param text Text content
|
|
2882
|
+
* @returns
|
|
2883
|
+
*/
|
|
2884
|
+
declare function copyText(text: string): Promise<boolean>;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* Get text form clipboard.
|
|
2888
|
+
* @returns
|
|
2889
|
+
*/
|
|
2890
|
+
declare function getText(): Promise<string | null>;
|
|
2891
|
+
|
|
2892
|
+
declare const Clipboard: {
|
|
2893
|
+
copyText: typeof copyText;
|
|
2894
|
+
getText: typeof getText;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* 关闭全屏loading
|
|
2899
|
+
*/
|
|
2900
|
+
declare function hideLoading(): void;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* 打开Alert弹窗
|
|
2904
|
+
* @param options
|
|
2905
|
+
* @param options.content 弹窗内容
|
|
2906
|
+
* @param options.title 弹窗标题(可选)
|
|
2907
|
+
* @param options.buttonLabel 按钮文案(可选)
|
|
2908
|
+
*/
|
|
2909
|
+
declare function showAlert(options: {
|
|
2910
|
+
content: string;
|
|
2911
|
+
title?: string;
|
|
2912
|
+
buttonLabel?: string;
|
|
2913
|
+
}): Promise<void>;
|
|
2914
|
+
|
|
2915
|
+
type VstarBottomSheetOptions = {
|
|
2916
|
+
/** 标题 */
|
|
2917
|
+
title?: string;
|
|
2918
|
+
/** 是否显示取消按钮,默认不显示 */
|
|
2919
|
+
cancelButton?: boolean;
|
|
2920
|
+
/** 是否可往下拖动关闭,默认可以 */
|
|
2921
|
+
dragDownDissmisible?: boolean;
|
|
2922
|
+
/** action选项 */
|
|
2923
|
+
actions: {
|
|
2924
|
+
/** 文本内容 */
|
|
2925
|
+
label: string;
|
|
2926
|
+
/** 是否选中 */
|
|
2927
|
+
selected?: boolean;
|
|
2928
|
+
}[];
|
|
2929
|
+
};
|
|
2930
|
+
/**
|
|
2931
|
+
* 展示bottom sheet 弹窗,类似iOS的选项功能
|
|
2932
|
+
* @param options
|
|
2933
|
+
* @param options.title 标题(可选)
|
|
2934
|
+
* @param options.cancelButton 是否展示取消按钮,默认展示(可选)
|
|
2935
|
+
* @param options.dragDownDissmisible 是否可以下拉关闭弹窗,默认可以(可选)
|
|
2936
|
+
* @param options.actions 选项列表
|
|
2937
|
+
* @param options.actions.label 选项文本
|
|
2938
|
+
* @param options.actions.selected 是否选中,设置为true改选项展示选中状态(可选)
|
|
2939
|
+
* @returns 点击某个选项后返回其下标,取消的话返回null
|
|
2940
|
+
*/
|
|
2941
|
+
declare function showBottomSheet({ title, cancelButton, dragDownDissmisible, actions, }: VstarBottomSheetOptions): Promise<number | null>;
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* 展示Confirm弹窗
|
|
2945
|
+
* @param options
|
|
2946
|
+
* @param options.content 提示内容
|
|
2947
|
+
* @param options.title 提示标题(可选)
|
|
2948
|
+
* @param options.cancelLabel 取消按钮文案(可选)
|
|
2949
|
+
* @param options.confirmLabel 确认按钮文案(可选)
|
|
2950
|
+
* @returns 返回true或false的promise
|
|
2951
|
+
*/
|
|
2952
|
+
declare function showConfirm(options: {
|
|
2953
|
+
content: string;
|
|
2954
|
+
title?: string;
|
|
2955
|
+
cancelLabel?: string;
|
|
2956
|
+
confirmLabel?: string;
|
|
2957
|
+
}): Promise<boolean>;
|
|
2958
|
+
|
|
2959
|
+
declare function showLoading(options: {
|
|
2960
|
+
message?: string;
|
|
2961
|
+
color?: string;
|
|
2962
|
+
}): void;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* 展示提醒弹窗
|
|
2966
|
+
* @param options
|
|
2967
|
+
* @param options.title 标题
|
|
2968
|
+
* @param options.obscureText 是否使用晦涩文本模式,用于密码之类(可选)
|
|
2969
|
+
* @param options.hintText 提示placeholder文案(可选)
|
|
2970
|
+
* @param options.cancelLabel 取消按钮文案(可选)
|
|
2971
|
+
* @param options.confirmLabel 确认按钮文案(可选)
|
|
2972
|
+
* @returns 用户输入确认后返回字符串,用户取消后返回null
|
|
2973
|
+
*/
|
|
2974
|
+
declare function showPrompt(options: {
|
|
2975
|
+
title: string;
|
|
2976
|
+
obscureText?: boolean;
|
|
2977
|
+
hintText?: string;
|
|
2978
|
+
cancelLabel?: string;
|
|
2979
|
+
confirmLabel?: string;
|
|
2980
|
+
}): Promise<string | null>;
|
|
2981
|
+
|
|
2982
|
+
/**
|
|
2983
|
+
* 展示Toast弹窗
|
|
2984
|
+
* @param options
|
|
2985
|
+
* @param options.content toast消息
|
|
2986
|
+
* @param options.duration 展示时间(可选),单位毫秒,默认2000毫秒(2秒)
|
|
2987
|
+
*/
|
|
2988
|
+
declare function showToast(options: {
|
|
2989
|
+
content: string;
|
|
2990
|
+
duration?: number;
|
|
2991
|
+
}): Promise<void>;
|
|
2992
|
+
|
|
2993
|
+
declare const Dialog: {
|
|
2994
|
+
showLoading: typeof showLoading;
|
|
2995
|
+
hideLoading: typeof hideLoading;
|
|
2996
|
+
showAlert: typeof showAlert;
|
|
2997
|
+
showPrompt: typeof showPrompt;
|
|
2998
|
+
showConfirm: typeof showConfirm;
|
|
2999
|
+
showToast: typeof showToast;
|
|
3000
|
+
showBottomSheet: typeof showBottomSheet;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
type PickFileOptions = {
|
|
3004
|
+
maxWidth?: number;
|
|
3005
|
+
maxHeight?: number;
|
|
3006
|
+
/**
|
|
3007
|
+
* 1 - 100
|
|
3008
|
+
*/
|
|
3009
|
+
imageQuality?: number;
|
|
3010
|
+
requestFullMetadata?: boolean;
|
|
3011
|
+
};
|
|
3012
|
+
declare function pickImage(options?: PickFileOptions): Promise<string | null>;
|
|
3013
|
+
declare function pickMultipleImage(options?: PickFileOptions): Promise<string[]>;
|
|
3014
|
+
|
|
3015
|
+
declare function pickMedia(options?: PickFileOptions): Promise<string | null>;
|
|
3016
|
+
declare function pickMultipleMedia(options?: PickFileOptions): Promise<string[]>;
|
|
3017
|
+
|
|
3018
|
+
type TakePhotoOptions = PickFileOptions & {
|
|
3019
|
+
preferredCameraDevice?: 'front' | 'rear';
|
|
3020
|
+
};
|
|
3021
|
+
declare function takePhoto(options?: TakePhotoOptions): Promise<string | null>;
|
|
3022
|
+
|
|
3023
|
+
declare const ImageGallery: {
|
|
3024
|
+
pickImage: typeof pickImage;
|
|
3025
|
+
pickMultipleImage: typeof pickMultipleImage;
|
|
3026
|
+
pickMedia: typeof pickMedia;
|
|
3027
|
+
pickMultipleMedia: typeof pickMultipleMedia;
|
|
3028
|
+
takePhoto: typeof takePhoto;
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
declare const ImageSaver: {
|
|
3032
|
+
saveBytesImage(options: {
|
|
3033
|
+
image: ArrayBuffer;
|
|
3034
|
+
quality?: number;
|
|
3035
|
+
name?: string;
|
|
3036
|
+
}): Promise<boolean>;
|
|
3037
|
+
saveBase64Image(options: {
|
|
3038
|
+
image: string;
|
|
3039
|
+
quality?: number;
|
|
3040
|
+
name?: string;
|
|
3041
|
+
}): Promise<boolean>;
|
|
3042
|
+
saveNetworkImage(options: {
|
|
3043
|
+
url: string;
|
|
3044
|
+
quality?: number;
|
|
3045
|
+
name?: string;
|
|
3046
|
+
}): Promise<boolean>;
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
declare function set<T>(key: string, value: T): Promise<boolean>;
|
|
3050
|
+
declare function get<T>(key: string): Promise<T | null>;
|
|
3051
|
+
declare function remove(key: string): Promise<boolean>;
|
|
3052
|
+
declare const Storage: {
|
|
3053
|
+
set: typeof set;
|
|
3054
|
+
get: typeof get;
|
|
3055
|
+
remove: typeof remove;
|
|
3056
|
+
};
|
|
3057
|
+
|
|
3058
|
+
type PermissionStatus = {
|
|
3059
|
+
isDenied: boolean;
|
|
3060
|
+
isGranted: boolean;
|
|
3061
|
+
isLimited: boolean;
|
|
3062
|
+
isPermanentlyDenied: boolean;
|
|
3063
|
+
isProvisional: boolean;
|
|
3064
|
+
isRestricted: boolean;
|
|
3065
|
+
};
|
|
3066
|
+
type PermissionType = 'accessMediaLocation' | 'accessNotificationPolicy' | 'activityRecognition' | 'appTrackingTransparency' | 'audio' | 'bluetoothAdvertise' | 'bluetoothConnect' | 'bluetoothScan' | 'calendarFullAccess' | 'calendarWriteOnly' | 'camera' | 'contacts' | 'criticalAlerts' | 'ignoreBatteryOptimizations' | 'manageExternalStorage' | 'mediaLibrary' | 'microphone' | 'nearbyWifiDevices' | 'notification' | 'photos' | 'photosAddOnly' | 'reminders' | 'requestInstallPackages' | 'scheduleExactAlarm' | 'sensors' | 'sensorsAlways' | 'sms' | 'speech' | 'storage' | 'systemAlertWindow';
|
|
3067
|
+
declare function getPermissionStatus(type: PermissionType): Promise<PermissionStatus>;
|
|
3068
|
+
declare function requestPermission(type: PermissionType): Promise<PermissionStatus>;
|
|
3069
|
+
|
|
3070
|
+
declare function launchUrl(url: string): Promise<boolean>;
|
|
3071
|
+
|
|
3072
|
+
declare function openScriptingApp<T>(options: {
|
|
3073
|
+
url: string;
|
|
3074
|
+
params?: {
|
|
3075
|
+
[key: string]: any;
|
|
3076
|
+
};
|
|
3077
|
+
}): Promise<T | null>;
|
|
3078
|
+
|
|
3079
|
+
declare const Navigation: {
|
|
3080
|
+
launchUrl: typeof launchUrl;
|
|
3081
|
+
openScriptingApp: typeof openScriptingApp;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
/**
|
|
3085
|
+
* 取消请求的token
|
|
3086
|
+
*
|
|
3087
|
+
* 同一个token可以用于多个请求
|
|
3088
|
+
*/
|
|
3089
|
+
declare class CancelToken {
|
|
3090
|
+
readonly token: string;
|
|
3091
|
+
private _isCancelled;
|
|
3092
|
+
get isCancelled(): boolean;
|
|
3093
|
+
/**
|
|
3094
|
+
* 调用cancel方法后所有请求都会被取消
|
|
3095
|
+
*/
|
|
3096
|
+
cancel(): void;
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* 网络请求 CancelToken
|
|
3100
|
+
*/
|
|
3101
|
+
declare function useCancelToken(): {
|
|
3102
|
+
get: () => CancelToken | undefined;
|
|
3103
|
+
create: () => CancelToken;
|
|
3104
|
+
};
|
|
3105
|
+
|
|
3106
|
+
declare function loadBytes(options: {
|
|
3107
|
+
url: string;
|
|
3108
|
+
noCache?: boolean;
|
|
3109
|
+
timeout?: number;
|
|
3110
|
+
debugLabel?: string;
|
|
3111
|
+
headers?: {
|
|
3112
|
+
[key: string]: any;
|
|
3113
|
+
};
|
|
3114
|
+
cancelToken?: CancelToken;
|
|
3115
|
+
}): Promise<number[] | null>;
|
|
3116
|
+
|
|
3117
|
+
declare function loadFont(options: {
|
|
3118
|
+
family: string;
|
|
3119
|
+
urls: string[];
|
|
3120
|
+
type?: 'otf' | 'ttf';
|
|
3121
|
+
}): Promise<boolean>;
|
|
3122
|
+
|
|
3123
|
+
declare function loadJson<T>(options: {
|
|
3124
|
+
url: string;
|
|
3125
|
+
noCache?: boolean;
|
|
3126
|
+
timeout?: number;
|
|
3127
|
+
debugLabel?: string;
|
|
3128
|
+
headers?: {
|
|
3129
|
+
[key: string]: any;
|
|
3130
|
+
};
|
|
3131
|
+
queryParameters?: {
|
|
3132
|
+
[key: string]: any;
|
|
3133
|
+
};
|
|
3134
|
+
cancelToken?: CancelToken;
|
|
3135
|
+
}): Promise<T | null>;
|
|
3136
|
+
|
|
3137
|
+
declare function loadString<T>(options: {
|
|
3138
|
+
url: string;
|
|
3139
|
+
noCache?: boolean;
|
|
3140
|
+
timeout?: number;
|
|
3141
|
+
debugLabel?: string;
|
|
3142
|
+
headers?: {
|
|
3143
|
+
[key: string]: any;
|
|
3144
|
+
};
|
|
3145
|
+
queryParameters?: {
|
|
3146
|
+
[key: string]: any;
|
|
3147
|
+
};
|
|
3148
|
+
cancelToken?: CancelToken;
|
|
3149
|
+
}): Promise<T | null>;
|
|
3150
|
+
|
|
3151
|
+
type RequestOptions = {
|
|
3152
|
+
url: string;
|
|
3153
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'PATCH';
|
|
3154
|
+
data?: any;
|
|
3155
|
+
isFormData?: boolean;
|
|
3156
|
+
contentType?: string;
|
|
3157
|
+
responseType?: 'json' | 'plain' | 'bytes';
|
|
3158
|
+
sendTimeout?: number;
|
|
3159
|
+
receiveTimeout?: number;
|
|
3160
|
+
connectTimeout?: number;
|
|
3161
|
+
cancelToken?: CancelToken;
|
|
3162
|
+
queryParameters?: {
|
|
3163
|
+
[key: string]: any;
|
|
3164
|
+
};
|
|
3165
|
+
preserveHeaderCase?: boolean;
|
|
3166
|
+
debugLabel?: string;
|
|
3167
|
+
};
|
|
3168
|
+
declare function fetch<T>(options: RequestOptions): Promise<T>;
|
|
3169
|
+
|
|
3170
|
+
type MultipartFileOptions = {
|
|
3171
|
+
filename?: string;
|
|
3172
|
+
headers?: {
|
|
3173
|
+
[key: string]: string[];
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
declare class MultipartFile {
|
|
3177
|
+
type: string;
|
|
3178
|
+
value: string | number[];
|
|
3179
|
+
filename?: string | undefined;
|
|
3180
|
+
headers?: {
|
|
3181
|
+
[key: string]: string[];
|
|
3182
|
+
} | undefined;
|
|
3183
|
+
static fromBytes(bytes: number[], options?: MultipartFileOptions): MultipartFile;
|
|
3184
|
+
static fromFile(filePath: string, options?: MultipartFileOptions): MultipartFile;
|
|
3185
|
+
static fromString(string: string, options?: MultipartFileOptions): MultipartFile;
|
|
3186
|
+
constructor(type: string, value: string | number[], filename?: string | undefined, headers?: {
|
|
3187
|
+
[key: string]: string[];
|
|
3188
|
+
} | undefined);
|
|
3189
|
+
toJson(): {
|
|
3190
|
+
type: string;
|
|
3191
|
+
value: string | number[];
|
|
3192
|
+
filename: string | undefined;
|
|
3193
|
+
headers: {
|
|
3194
|
+
[key: string]: string[];
|
|
3195
|
+
} | undefined;
|
|
3196
|
+
};
|
|
3197
|
+
}
|
|
3198
|
+
declare class FormData {
|
|
3199
|
+
private _fields;
|
|
3200
|
+
constructor();
|
|
3201
|
+
static fromMap(map: {
|
|
3202
|
+
[name: string]: string | string[] | MultipartFile | MultipartFile[];
|
|
3203
|
+
}): FormData;
|
|
3204
|
+
static getValue(formData: FormData): {
|
|
3205
|
+
[name: string]: any;
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
/**
|
|
3209
|
+
* Example:
|
|
3210
|
+
* ```ts
|
|
3211
|
+
* postFormData({
|
|
3212
|
+
* url: 'https://example.com/api/upload-avatar',
|
|
3213
|
+
* data: FormData.fromMap({
|
|
3214
|
+
* file: MultipartFile.fromFile('/xx/file/path', {
|
|
3215
|
+
* filename: 'avatar.png'
|
|
3216
|
+
* }),
|
|
3217
|
+
* destDir: '/avatar'
|
|
3218
|
+
* })
|
|
3219
|
+
* })
|
|
3220
|
+
* ```
|
|
3221
|
+
*/
|
|
3222
|
+
declare function postFormData<T>(options: RequestOptions & {
|
|
3223
|
+
data: FormData;
|
|
3224
|
+
}): Promise<T>;
|
|
3225
|
+
|
|
3226
|
+
declare const Request: {
|
|
3227
|
+
loadString: typeof loadString;
|
|
3228
|
+
loadJson: typeof loadJson;
|
|
3229
|
+
loadBytes: typeof loadBytes;
|
|
3230
|
+
loadFont: typeof loadFont;
|
|
3231
|
+
postFormData: typeof postFormData;
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
type SocketIOOptions = {};
|
|
3235
|
+
|
|
3236
|
+
declare class SocketIO {
|
|
3237
|
+
private key;
|
|
3238
|
+
url: string;
|
|
3239
|
+
private _eventMap;
|
|
3240
|
+
constructor(key: string, url: string);
|
|
3241
|
+
connect(): void;
|
|
3242
|
+
isConnected(): Promise<boolean | null>;
|
|
3243
|
+
on<T>(event: string, callback: (data: T) => void): void;
|
|
3244
|
+
once<T>(event: string, callback: (data: T) => void): void;
|
|
3245
|
+
off<T>(event: string, callback: (data: T) => void): void;
|
|
3246
|
+
emit(event: string, data?: any): void;
|
|
3247
|
+
emitWithAck(event: string, data?: any): Promise<unknown>;
|
|
3248
|
+
close(): void;
|
|
3249
|
+
dispose(): void;
|
|
3250
|
+
static open(url: string, options?: SocketIOOptions): Promise<SocketIO>;
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3173
3253
|
declare global {
|
|
3174
3254
|
const console: {
|
|
3175
3255
|
log: (...args: any[]) => void;
|
|
@@ -3187,5 +3267,5 @@ declare global {
|
|
|
3187
3267
|
}
|
|
3188
3268
|
}
|
|
3189
3269
|
|
|
3190
|
-
export { AbsorbPointer, type AbsorbPointerProps, type AixsDirection, type Alignment, AnimatedAlign, type AnimatedAlignProps, AnimatedContainer, type AnimatedContainerProps, AnimatedOpacity, type AnimatedOpacityProps, AnimatedPadding, type AnimatedPaddingProps, AnimatedPositioned, type AnimatedPositionedProps, AnimatedRotation, type AnimatedRotationProps, AnimatedScale, type AnimatedScaleProps, AnimatedSize, type AnimatedSizeProps, AnimatedSlide, type AnimatedSlideProps, type AnimationControllerIntialOptions, type AnimationInitalOptions, type AnimationStatus, type AnimationStatusListener, type AnimationValue, type AppLifeCycleState, AspectRatio, type AspectRatioProps, AutoSizeText, type AutoSizeTextProps, type Axis, BackdropFilter, type BackdropFilterProps, Baseline, type BaselineProps, type BlendMode, type BlurStyle, type BorderRadius, type BorderSide, BottomNavigationBarItem, type BottomNavigationBarItemProps, type BoxConstraints, type BoxDecoration, type BoxFit, type BoxShadow, type Brightness, CSSFilter, type CSSFilterMatrix, CSSFilterPresets, type CSSFilterPresetsEffect, type CSSFilterPresetsProps, type CSSFilterProps, CancelToken, Center, type CenterProps, ChildrenRule, CircularProgressIndicator, type CircularProgressIndicatorProps, type Clip, ClipOval, type ClipOvalProps, ClipRRect, type ClipRRectProps, ClipRect, type ClipRectProps, Clipboard, type Color, Column, type ColumnProps, type ComponentCallback, type ComponentEffect, type ComponentMemo, type ComponentProps, CompositedTransformFollower, type CompositedTransformFollowerProps, CompositedTransformTarget, type CompositedTransformTargetProps, ConstrainedBox, type ConstrainedBoxProps, type Consumer, type ConsumerProps, Container, type ContainerProps, type Context, type CrossAxisAlignment, CupertinoActionSheet, CupertinoActionSheetAction, type CupertinoActionSheetActionProps, type CupertinoActionSheetProps, CupertinoActivityIndicator, type CupertinoActivityIndicatorProps, CupertinoAlertDialog, type CupertinoAlertDialogProps, CupertinoButton, type CupertinoButtonProps, CupertinoContextMenu, CupertinoContextMenuAction, type CupertinoContextMenuActionProps, type CupertinoContextMenuProps, CupertinoDatePicker, type CupertinoDatePickerMode, type CupertinoDatePickerProps, CupertinoDialogAction, type CupertinoDialogActionProps, type CupertinoDialogRoute, CupertinoFormRow, type CupertinoFormRowProps, CupertinoFormSection, type CupertinoFormSectionProps, type CupertinoIcons, CupertinoListSection, type CupertinoListSectionProps, CupertinoListTile, CupertinoListTileChevron, type CupertinoListTileProps, type CupertinoModalPopupRoute, CupertinoNavigationBar, CupertinoNavigationBarBackButton, type CupertinoNavigationBarBackButtonProps, type CupertinoNavigationBarProps, type CupertinoPageRoute, CupertinoPageScaffold, type CupertinoPageScaffoldProps, CupertinoPicker, CupertinoPickerDefaultSelectionOverlay, type CupertinoPickerDefaultSelectionOverlayProps, type CupertinoPickerProps, CupertinoScrollerBar, type CupertinoScrollerBarProps, CupertinoSearchTextField, type CupertinoSearchTextFieldProps, CupertinoSegmentedControl, type CupertinoSegmentedControlProps, CupertinoSlider, type CupertinoSliderProps, CupertinoSlidingSegmentedControl, type CupertinoSlidingSegmentedControlProps, CupertinoSliverNavigationBar, type CupertinoSliverNavigationBarProps, CupertinoSliverRefreshControl, type CupertinoSliverRefreshControlProps, CupertinoSwitch, type CupertinoSwitchProps, CupertinoTabBar, type CupertinoTabBarProps, CupertinoTextField, type CupertinoTextFieldProps, CupertinoTimerPicker, type CupertinoTimerPickerMode, type CupertinoTimerPickerProps, type Curve, CustomScrollView, type CustomScrollViewProps, type DatePickerDateOrder, DefaultTabController, type DefaultTabControllerProps, DefaultTextStyle, type DefaultTextStyleProps, Device, Dialog, type DialogRoute, type DismissDirection, Dismissable, type DismissableProps, type Dispatch, DottedBorder, type DottedBorderProps, DottedLine, type DottedLineProps, type DragDownDetails, type DragEndDetails, type DragUpdateDetails, type EdgeInsets, type EdgeInsetsDirectional, type EffectCallback, type EffectDestructor, type EventPosition, Expanded, type ExpandedProps,
|
|
3270
|
+
export { AbsorbPointer, type AbsorbPointerProps, type AixsDirection, type Alignment, AnimatedAlign, type AnimatedAlignProps, AnimatedContainer, type AnimatedContainerProps, AnimatedOpacity, type AnimatedOpacityProps, AnimatedPadding, type AnimatedPaddingProps, AnimatedPositioned, type AnimatedPositionedProps, AnimatedRotation, type AnimatedRotationProps, AnimatedScale, type AnimatedScaleProps, AnimatedSize, type AnimatedSizeProps, AnimatedSlide, type AnimatedSlideProps, type AnimationControllerIntialOptions, type AnimationInitalOptions, type AnimationStatus, type AnimationStatusListener, type AnimationValue, AppEvent, type AppLifeCycleState, AspectRatio, type AspectRatioProps, AutoSizeText, type AutoSizeTextProps, type Axis, BackdropFilter, type BackdropFilterProps, Baseline, type BaselineProps, BatteryState, type BlendMode, type BlurStyle, type BorderRadius, type BorderSide, BottomNavigationBarItem, type BottomNavigationBarItemProps, type BoxConstraints, type BoxDecoration, type BoxFit, type BoxShadow, type Brightness, CSSFilter, type CSSFilterMatrix, CSSFilterPresets, type CSSFilterPresetsEffect, type CSSFilterPresetsProps, type CSSFilterProps, CancelToken, Center, type CenterProps, ChildrenRule, CircularProgressIndicator, type CircularProgressIndicatorProps, type Clip, ClipOval, type ClipOvalProps, ClipRRect, type ClipRRectProps, ClipRect, type ClipRectProps, Clipboard, type Color, Column, type ColumnProps, type ComponentCallback, type ComponentEffect, type ComponentMemo, type ComponentProps, CompositedTransformFollower, type CompositedTransformFollowerProps, CompositedTransformTarget, type CompositedTransformTargetProps, ConstrainedBox, type ConstrainedBoxProps, type Consumer, type ConsumerProps, Container, type ContainerProps, type Context, type CrossAxisAlignment, CupertinoActionSheet, CupertinoActionSheetAction, type CupertinoActionSheetActionProps, type CupertinoActionSheetProps, CupertinoActivityIndicator, type CupertinoActivityIndicatorProps, CupertinoAlertDialog, type CupertinoAlertDialogProps, CupertinoButton, type CupertinoButtonProps, CupertinoColorsWithBrightness, CupertinoContextMenu, CupertinoContextMenuAction, type CupertinoContextMenuActionProps, type CupertinoContextMenuProps, CupertinoDatePicker, type CupertinoDatePickerMode, type CupertinoDatePickerProps, CupertinoDialogAction, type CupertinoDialogActionProps, type CupertinoDialogRoute, CupertinoFormRow, type CupertinoFormRowProps, CupertinoFormSection, type CupertinoFormSectionProps, type CupertinoIcons, CupertinoListSection, type CupertinoListSectionProps, CupertinoListTile, CupertinoListTileChevron, type CupertinoListTileProps, type CupertinoModalPopupRoute, CupertinoNavigationBar, CupertinoNavigationBarBackButton, type CupertinoNavigationBarBackButtonProps, type CupertinoNavigationBarProps, type CupertinoPageRoute, CupertinoPageScaffold, type CupertinoPageScaffoldProps, CupertinoPicker, CupertinoPickerDefaultSelectionOverlay, type CupertinoPickerDefaultSelectionOverlayProps, type CupertinoPickerProps, CupertinoScrollerBar, type CupertinoScrollerBarProps, CupertinoSearchTextField, type CupertinoSearchTextFieldProps, CupertinoSegmentedControl, type CupertinoSegmentedControlProps, CupertinoSlider, type CupertinoSliderProps, CupertinoSlidingSegmentedControl, type CupertinoSlidingSegmentedControlProps, CupertinoSliverNavigationBar, type CupertinoSliverNavigationBarProps, CupertinoSliverRefreshControl, type CupertinoSliverRefreshControlProps, CupertinoSwitch, type CupertinoSwitchProps, CupertinoTabBar, type CupertinoTabBarProps, CupertinoTextField, type CupertinoTextFieldProps, CupertinoTimerPicker, type CupertinoTimerPickerMode, type CupertinoTimerPickerProps, type Curve, CustomScrollView, type CustomScrollViewProps, type DatePickerDateOrder, DefaultTabController, type DefaultTabControllerProps, DefaultTextStyle, type DefaultTextStyleProps, Device, type DeviceOrientation, Dialog, type DialogRoute, type DismissDirection, Dismissable, type DismissableProps, type Dispatch, DottedBorder, type DottedBorderProps, DottedLine, type DottedLineProps, type DragDownDetails, type DragEndDetails, type DragUpdateDetails, type EdgeInsets, type EdgeInsetsDirectional, type EffectCallback, type EffectDestructor, type EventPosition, Expanded, type ExpandedProps, type FilterQuality, FittedBox, type FittedBoxProps, type FontStyle, type FontWeight, FormData, type FunctionComponent, GestureDetector, type GestureDetectorProps, Gif, type GifProps, type GridDelegateWithFixedCrossAxisCount, type GridDelegateWithMaxCrossAxisExtent, GridView, type GridViewCommonProps, type GridViewFixedCrossAxisCountProps, type GridViewMaxCrossAxisExtentProps, type GridViewProps, Hero, type HeroProps, Icon, type IconProps, IgnorePointer, type IgnorePointerProps, Image, type ImageByteFormat, type ImageFilter, type ImageFilterBlur, type ImageFilterCompose, type ImageFilterDilate, type ImageFilterErode, type ImageFilterMaxtrix, ImageGallery, type ImageProps, type ImageRepeat, ImageSaver, type IndexRouteObject, IndexedStack, type IndexedStackProps, InkWell, type InkWellProps, type InternalWidgetRender, type IntervalCurve, IntrinsicHeight, type IntrinsicHeightProps, IntrinsicWidth, type IntrinsicWidthProps, type KeyProps, LayerLink, type LinearGradient, LinearProgressIndicator, type LinearProgressIndicatorProps, ListView, type ListViewProps, type LocaleState, type MainAxisAlignment, type MainAxisSize, Material, type MaterialPageRoute, type MaterialProps, type MediaQueryData, type ModalBottomSheetRoute, MultipartFile, type MutableRefObject, Navigation, Navigator, type NavigatorProps, type NavigatorRef, NestedScrollView, type NestedScrollViewProps, NetworkImage, type NetworkImageProps, type NormalCurve, type NormalRouteObject, type Offset, Opacity, type OpacityProps, type Orientation, type OtherwiseRouteObject, type OverScrollNotification, OverflowBox, type OverflowBoxProps, Overlay, type OverlayProps, type OverlayVisibilityMode, Padding, type PaddingProps, type PageInfo, type PageParamsUpdateEvent, type PagePopEvent, type PagePopResultEvent, type PagePushEvent, type PageRoute, PageView, type PageViewProps, type PaintRect, type PaintSize, type PermissionStatus, type PermissionType, PopScope, type PopScopeProps, Positioned, type PositionedProps, type Provider, type ProviderProps, type PushNamedRouteOptions, type PushRouteOptions, QrImage, type QrImageProps, type RadialGradient, type Reducer, type ReducerAction, type ReducerState, type RefObject, type RefProps, RefreshIndicator, type RefreshIndicatorProps, type RelativeRect, type RenderNode, type RenderObject, type RenderObjectShowOnScreenOptions, ReorderableListView, type ReorderableListViewProps, RepaintBoundary, type RepaintBoundaryProps, type RepaintBoundaryRef, Request, type RequestOptions, RichText, type RichTextProps, RotatedBox, type RotatedBoxProps, type RouteObject, type RouteParams, Router, RouterProvider, Row, type RowProps, SafeArea, type SafeAreaProps, type ScaleEndDetails, type ScaleStartDetails, type ScaleUpdateDetails, type ScriptingDeviceInfo, type ScrollEndNotification, type ScrollMetrics, type ScrollNotification, ScrollNotificationListener, type ScrollNotificationListenerProps, type ScrollOrientation, type ScrollPhysics, type ScrollStartNotification, type ScrollUpdateNotification, type ScrollViewKeyboardDismissBehavior, Scrollbar, type ScrollbarProps, type SetStateAction, Share, type ShareResultStatus, SingleChildScrollView, type SingleChildScrollViewProps, SizedBox, type SizedBoxProps, SliverFillRemaining, type SliverFillRemainingProps, SliverFixedHeightPersistentHeader, type SliverFixedHeightPersistentHeaderProps, SliverToBoxAdapter, type SliverToBoxAdapterProps, SocketIO, Spacer, type SpacerProps, Stack, type StackFit, type StackProps, type StateInitializer, StickyHeader, type StickyHeaderProps, Storage, StringSvg, type StringSvgProps, type StrokeCap, type StrutStyle, Svg, type SvgProps, Swiper, SwiperPagination, type SwiperPaginationProps, type SwiperProps, Switch, type SwitchProps, type SystemUIOverlayStyle, type TabAlignment, TabBar, type TabBarIndicatorSize, type TabBarProps, TabBarView, type TabBarViewProps, TabController, TabControllerConsumer, TabControllerContext, type TabControllerProps, TabControllerProvider, type TabControllerRef, type TabControllerRenderNode, type TapDownDetails, type TapUpDetails, Text, type TextAlign, type TextBaseLine, type TextDecoration, type TextDecorationStyle, type TextDirection, TextField, type TextFieldProps, type TextHeightBehavior, type TextInputType, type TextLeadingDistribution, type TextOverflow, type TextProps, TextSpan, type TextSpanProps, type TextStyle, type TextWidthBasis, type ThemeMode, type ThemeState, Ticker, TickerManager, TickerManagerConsumer, TickerManagerProvider, type TickerManagerProviderProps, type TickerManagerRef, type TileMode, TransformRotate, type TransformRotateProps, TransformScale, type TransformScaleProps, TransformTranslate, type TransformTranslateProps, type Tween, type TweenSequence, type TweenSequenceConstantItem, type TweenSequenceItem, type TweenType, type TypedParams, UnconstrainedBox, type UnconstrainedBoxProps, type UserScrollNotification, type Velocity, type VerticalDirection, type VirtualNode, WebView, WebViewController, type WebViewProps, type WebViewSettings, Wrap, type WrapAlignment, type WrapCrossAlignment, type WrapProps, type WrappedRouter, createContext, createElement, fetch, index as fs, getPermissionStatus, isApiEnabled, requestPermission, runApp, useAnimationController, useByTheme, useCallback, useCancelToken, useContext, useCupertinoColors, useEffect, useLayerLink, useLocale, useMediaQuery, useMemo, useNavigator, useReducer, useRef, useRouteParams, useRouter, useSelector, useState, useTabController, useThemeState, useTickerManager };
|
|
3191
3271
|
export as namespace Scripting;
|