@ousi-ui/vue 0.7.4 → 0.8.0
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/LICENSE +21 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +1575 -43
- package/dist/index.mjs +15151 -9935
- package/dist/vue.css +1 -1
- package/package.json +15 -15
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ shadow: DrawerShadow;
|
|
|
147
147
|
placement: DrawerPlacement;
|
|
148
148
|
backdrop: DrawerBackdrop;
|
|
149
149
|
showHandle: boolean;
|
|
150
|
+
swipeToClose: boolean;
|
|
150
151
|
showCloseButton: boolean;
|
|
151
152
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
152
153
|
rootRef: HTMLDivElement;
|
|
@@ -339,16 +340,16 @@ blur(): void;
|
|
|
339
340
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
340
341
|
focus: (event: FocusEvent) => any;
|
|
341
342
|
blur: (event: FocusEvent) => any;
|
|
342
|
-
change: (value:
|
|
343
|
+
change: (value: any) => any;
|
|
343
344
|
clear: () => any;
|
|
344
|
-
"update:modelValue": (value:
|
|
345
|
+
"update:modelValue": (value: any) => any;
|
|
345
346
|
inputChange: (query: string) => any;
|
|
346
347
|
}, string, PublicProps, Readonly<AutocompleteProps> & Readonly<{
|
|
347
348
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
348
349
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
349
|
-
onChange?: ((value:
|
|
350
|
+
onChange?: ((value: any) => any) | undefined;
|
|
350
351
|
onClear?: (() => any) | undefined;
|
|
351
|
-
"onUpdate:modelValue"?: ((value:
|
|
352
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
352
353
|
onInputChange?: ((query: string) => any) | undefined;
|
|
353
354
|
}>, {
|
|
354
355
|
search: (query: string) => Promise<AutocompleteOption[]>;
|
|
@@ -361,6 +362,7 @@ animated: boolean;
|
|
|
361
362
|
required: boolean;
|
|
362
363
|
readonly: boolean;
|
|
363
364
|
clearable: boolean;
|
|
365
|
+
multiple: boolean;
|
|
364
366
|
autoSelectSingle: boolean;
|
|
365
367
|
scrollShadow: boolean;
|
|
366
368
|
allowCustomValue: boolean;
|
|
@@ -617,6 +619,7 @@ gap: number;
|
|
|
617
619
|
strokeWidth: number;
|
|
618
620
|
interactive: boolean;
|
|
619
621
|
sweep: number;
|
|
622
|
+
joined: boolean;
|
|
620
623
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
621
624
|
|
|
622
625
|
declare const __VLS_component_51: DefineComponent<DotMatrixProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -661,10 +664,11 @@ variant: "donut" | "pie";
|
|
|
661
664
|
size: number;
|
|
662
665
|
animated: boolean;
|
|
663
666
|
gap: number;
|
|
667
|
+
thickness: number;
|
|
664
668
|
interactive: boolean;
|
|
665
669
|
showLegend: boolean;
|
|
670
|
+
joined: boolean;
|
|
666
671
|
rounded: boolean;
|
|
667
|
-
thickness: number;
|
|
668
672
|
explode: number;
|
|
669
673
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
670
674
|
|
|
@@ -853,6 +857,7 @@ animated: boolean;
|
|
|
853
857
|
required: boolean;
|
|
854
858
|
readonly: boolean;
|
|
855
859
|
clearable: boolean;
|
|
860
|
+
revealable: boolean;
|
|
856
861
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
857
862
|
inputRef: HTMLInputElement;
|
|
858
863
|
}, any>;
|
|
@@ -1069,31 +1074,159 @@ orientation: StepperOrientation;
|
|
|
1069
1074
|
clickable: boolean;
|
|
1070
1075
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1071
1076
|
|
|
1072
|
-
declare const __VLS_component_75: DefineComponent<FileUploadProps, {
|
|
1077
|
+
declare const __VLS_component_75: DefineComponent<FileUploadProps, {
|
|
1078
|
+
focus(options?: FocusOptions): void;
|
|
1079
|
+
blur(): void;
|
|
1080
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1073
1081
|
error: (message: string) => any;
|
|
1074
1082
|
change: (files: File[]) => any;
|
|
1075
1083
|
"update:modelValue": (files: File[]) => any;
|
|
1084
|
+
open: (file: File | FileUploadUploadedFile) => any;
|
|
1076
1085
|
remove: (file: File) => any;
|
|
1077
1086
|
retry: (file: File) => any;
|
|
1087
|
+
pendingChange: (count: number) => any;
|
|
1088
|
+
transformError: (error: unknown, file: File) => any;
|
|
1089
|
+
edited: (file: File, previous: File) => any;
|
|
1090
|
+
editUploaded: (uploaded: FileUploadUploadedFile, file: File) => any;
|
|
1091
|
+
"update:uploadedFiles": (files: FileUploadUploadedFile[]) => any;
|
|
1092
|
+
removeUploaded: (file: FileUploadUploadedFile) => any;
|
|
1078
1093
|
}, string, PublicProps, Readonly<FileUploadProps> & Readonly<{
|
|
1079
1094
|
onError?: ((message: string) => any) | undefined;
|
|
1080
1095
|
onChange?: ((files: File[]) => any) | undefined;
|
|
1081
1096
|
"onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
|
|
1097
|
+
onOpen?: ((file: File | FileUploadUploadedFile) => any) | undefined;
|
|
1082
1098
|
onRemove?: ((file: File) => any) | undefined;
|
|
1083
1099
|
onRetry?: ((file: File) => any) | undefined;
|
|
1100
|
+
onPendingChange?: ((count: number) => any) | undefined;
|
|
1101
|
+
onTransformError?: ((error: unknown, file: File) => any) | undefined;
|
|
1102
|
+
onEdited?: ((file: File, previous: File) => any) | undefined;
|
|
1103
|
+
onEditUploaded?: ((uploaded: FileUploadUploadedFile, file: File) => any) | undefined;
|
|
1104
|
+
"onUpdate:uploadedFiles"?: ((files: FileUploadUploadedFile[]) => any) | undefined;
|
|
1105
|
+
onRemoveUploaded?: ((file: FileUploadUploadedFile) => any) | undefined;
|
|
1084
1106
|
}>, {
|
|
1107
|
+
paste: FileUploadPaste;
|
|
1085
1108
|
variant: FileUploadVariant;
|
|
1086
1109
|
size: FileUploadSize;
|
|
1087
1110
|
shadow: FileUploadShadow;
|
|
1088
1111
|
disabled: boolean;
|
|
1089
1112
|
animated: boolean;
|
|
1113
|
+
required: boolean;
|
|
1090
1114
|
modelValue: File[];
|
|
1091
1115
|
multiple: boolean;
|
|
1116
|
+
uploadedFiles: FileUploadUploadedFile[];
|
|
1117
|
+
preview: FileUploadPreview;
|
|
1118
|
+
confirmTransform: boolean;
|
|
1119
|
+
editable: boolean;
|
|
1120
|
+
hideIcon: boolean;
|
|
1092
1121
|
hideFileList: boolean;
|
|
1093
1122
|
hideHint: boolean;
|
|
1094
1123
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1124
|
+
rootRef: HTMLDivElement;
|
|
1095
1125
|
fileInput: HTMLInputElement;
|
|
1096
|
-
|
|
1126
|
+
editorDialog: CreateComponentPublicInstanceWithMixins<Readonly<ImageEditorDialogProps> & Readonly<{
|
|
1127
|
+
onCancel?: (() => any) | undefined;
|
|
1128
|
+
onSave?: ((file: File) => any) | undefined;
|
|
1129
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
1130
|
+
}>, {
|
|
1131
|
+
edit: (file: File, options?: ImageEditorEditOptions) => Promise<File | null>;
|
|
1132
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1133
|
+
cancel: () => any;
|
|
1134
|
+
save: (file: File) => any;
|
|
1135
|
+
"update:open": (open: boolean) => any;
|
|
1136
|
+
}, PublicProps, {
|
|
1137
|
+
title: string;
|
|
1138
|
+
type: CompressImageType;
|
|
1139
|
+
shape: ImageEditorShape;
|
|
1140
|
+
src: File | Blob | string;
|
|
1141
|
+
aspectRatio: number;
|
|
1142
|
+
quality: number;
|
|
1143
|
+
open: boolean;
|
|
1144
|
+
maxSize: number;
|
|
1145
|
+
maxDimension: number;
|
|
1146
|
+
aspectRatios: ImageEditorRatio[];
|
|
1147
|
+
hideOutputSettings: boolean;
|
|
1148
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1149
|
+
editor: CreateComponentPublicInstanceWithMixins<Readonly<ImageEditorProps> & Readonly<{
|
|
1150
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
1151
|
+
onReady?: (() => any) | undefined;
|
|
1152
|
+
}>, {
|
|
1153
|
+
export: () => Promise<File>;
|
|
1154
|
+
reset: () => void;
|
|
1155
|
+
rotate: (clockwise?: boolean) => void;
|
|
1156
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
1157
|
+
dirty: Ref<boolean, boolean>;
|
|
1158
|
+
ready: ComputedRef<boolean>;
|
|
1159
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1160
|
+
error: (error: unknown) => any;
|
|
1161
|
+
ready: () => any;
|
|
1162
|
+
}, PublicProps, {
|
|
1163
|
+
type: CompressImageType;
|
|
1164
|
+
shape: ImageEditorShape;
|
|
1165
|
+
src: File | Blob | string;
|
|
1166
|
+
aspectRatio: number;
|
|
1167
|
+
quality: number;
|
|
1168
|
+
maxSize: number;
|
|
1169
|
+
maxDimension: number;
|
|
1170
|
+
aspectRatios: ImageEditorRatio[];
|
|
1171
|
+
hideOutputSettings: boolean;
|
|
1172
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1173
|
+
stage: HTMLDivElement;
|
|
1174
|
+
frame: HTMLDivElement;
|
|
1175
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1176
|
+
P: {};
|
|
1177
|
+
B: {};
|
|
1178
|
+
D: {};
|
|
1179
|
+
C: {};
|
|
1180
|
+
M: {};
|
|
1181
|
+
Defaults: {};
|
|
1182
|
+
}, Readonly<ImageEditorProps> & Readonly<{
|
|
1183
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
1184
|
+
onReady?: (() => any) | undefined;
|
|
1185
|
+
}>, {
|
|
1186
|
+
export: () => Promise<File>;
|
|
1187
|
+
reset: () => void;
|
|
1188
|
+
rotate: (clockwise?: boolean) => void;
|
|
1189
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
1190
|
+
dirty: Ref<boolean, boolean>;
|
|
1191
|
+
ready: ComputedRef<boolean>;
|
|
1192
|
+
}, {}, {}, {}, {
|
|
1193
|
+
type: CompressImageType;
|
|
1194
|
+
shape: ImageEditorShape;
|
|
1195
|
+
src: File | Blob | string;
|
|
1196
|
+
aspectRatio: number;
|
|
1197
|
+
quality: number;
|
|
1198
|
+
maxSize: number;
|
|
1199
|
+
maxDimension: number;
|
|
1200
|
+
aspectRatios: ImageEditorRatio[];
|
|
1201
|
+
hideOutputSettings: boolean;
|
|
1202
|
+
}> | null;
|
|
1203
|
+
}, any, ComponentProvideOptions, {
|
|
1204
|
+
P: {};
|
|
1205
|
+
B: {};
|
|
1206
|
+
D: {};
|
|
1207
|
+
C: {};
|
|
1208
|
+
M: {};
|
|
1209
|
+
Defaults: {};
|
|
1210
|
+
}, Readonly<ImageEditorDialogProps> & Readonly<{
|
|
1211
|
+
onCancel?: (() => any) | undefined;
|
|
1212
|
+
onSave?: ((file: File) => any) | undefined;
|
|
1213
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
1214
|
+
}>, {
|
|
1215
|
+
edit: (file: File, options?: ImageEditorEditOptions) => Promise<File | null>;
|
|
1216
|
+
}, {}, {}, {}, {
|
|
1217
|
+
title: string;
|
|
1218
|
+
type: CompressImageType;
|
|
1219
|
+
shape: ImageEditorShape;
|
|
1220
|
+
src: File | Blob | string;
|
|
1221
|
+
aspectRatio: number;
|
|
1222
|
+
quality: number;
|
|
1223
|
+
open: boolean;
|
|
1224
|
+
maxSize: number;
|
|
1225
|
+
maxDimension: number;
|
|
1226
|
+
aspectRatios: ImageEditorRatio[];
|
|
1227
|
+
hideOutputSettings: boolean;
|
|
1228
|
+
}> | null;
|
|
1229
|
+
}, any>;
|
|
1097
1230
|
|
|
1098
1231
|
declare const __VLS_component_76: DefineComponent<BentoGridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BentoGridProps> & Readonly<{}>, {
|
|
1099
1232
|
cols: BentoGridCols;
|
|
@@ -1133,6 +1266,192 @@ declare const __VLS_component_8: DefineComponent<CardSubProps, {}, {}, {}, {}, C
|
|
|
1133
1266
|
as: string | Component;
|
|
1134
1267
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1135
1268
|
|
|
1269
|
+
declare const __VLS_component_80: DefineComponent<SlideButtonProps, {
|
|
1270
|
+
reset: typeof reset_2;
|
|
1271
|
+
focus: () => void | undefined;
|
|
1272
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1273
|
+
"update:modelValue": (value: boolean) => any;
|
|
1274
|
+
confirm: () => any;
|
|
1275
|
+
}, string, PublicProps, Readonly<SlideButtonProps> & Readonly<{
|
|
1276
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1277
|
+
onConfirm?: (() => any) | undefined;
|
|
1278
|
+
}>, {
|
|
1279
|
+
label: string;
|
|
1280
|
+
variant: SlideButtonVariant;
|
|
1281
|
+
size: SlideButtonSize;
|
|
1282
|
+
fullWidth: boolean;
|
|
1283
|
+
shadow: SlideButtonShadow;
|
|
1284
|
+
disabled: boolean;
|
|
1285
|
+
loading: boolean;
|
|
1286
|
+
haptic: HapticInput;
|
|
1287
|
+
modelValue: boolean;
|
|
1288
|
+
threshold: number;
|
|
1289
|
+
confirmedLabel: string;
|
|
1290
|
+
loadingLabel: string;
|
|
1291
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1292
|
+
track: HTMLDivElement;
|
|
1293
|
+
labelElement: HTMLSpanElement;
|
|
1294
|
+
thumb: HTMLDivElement;
|
|
1295
|
+
}, HTMLDivElement>;
|
|
1296
|
+
|
|
1297
|
+
declare const __VLS_component_81: DefineComponent<TourProps, {
|
|
1298
|
+
next: typeof next_2;
|
|
1299
|
+
prev: typeof prev_2;
|
|
1300
|
+
goTo: typeof goTo;
|
|
1301
|
+
close: typeof close_5;
|
|
1302
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1303
|
+
"update:modelValue": (open: boolean) => any;
|
|
1304
|
+
"update:step": (step: number) => any;
|
|
1305
|
+
finish: () => any;
|
|
1306
|
+
skip: (step: number) => any;
|
|
1307
|
+
}, string, PublicProps, Readonly<TourProps> & Readonly<{
|
|
1308
|
+
"onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
|
|
1309
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
1310
|
+
onFinish?: (() => any) | undefined;
|
|
1311
|
+
onSkip?: ((step: number) => any) | undefined;
|
|
1312
|
+
}>, {
|
|
1313
|
+
shadow: TourShadow;
|
|
1314
|
+
modelValue: boolean;
|
|
1315
|
+
padding: number;
|
|
1316
|
+
step: number;
|
|
1317
|
+
showCloseButton: boolean;
|
|
1318
|
+
showProgress: boolean;
|
|
1319
|
+
closeOnEscape: boolean;
|
|
1320
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1321
|
+
root: HTMLDivElement;
|
|
1322
|
+
card: HTMLDivElement;
|
|
1323
|
+
}, any>;
|
|
1324
|
+
|
|
1325
|
+
declare const __VLS_component_82: DefineComponent<WaterfallChartProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1326
|
+
"update:focused": (index: number | null) => any;
|
|
1327
|
+
"bar-enter": (bar: WaterfallBar, event: Event) => any;
|
|
1328
|
+
"bar-leave": (bar: WaterfallBar, event: Event) => any;
|
|
1329
|
+
"bar-click": (bar: WaterfallBar, event: Event) => any;
|
|
1330
|
+
}, string, PublicProps, Readonly<WaterfallChartProps> & Readonly<{
|
|
1331
|
+
"onUpdate:focused"?: ((index: number | null) => any) | undefined;
|
|
1332
|
+
"onBar-enter"?: ((bar: WaterfallBar, event: Event) => any) | undefined;
|
|
1333
|
+
"onBar-leave"?: ((bar: WaterfallBar, event: Event) => any) | undefined;
|
|
1334
|
+
"onBar-click"?: ((bar: WaterfallBar, event: Event) => any) | undefined;
|
|
1335
|
+
}>, {
|
|
1336
|
+
height: number;
|
|
1337
|
+
animated: boolean;
|
|
1338
|
+
tooltip: boolean;
|
|
1339
|
+
grid: boolean;
|
|
1340
|
+
interactive: boolean;
|
|
1341
|
+
barRadius: number;
|
|
1342
|
+
showXAxis: boolean;
|
|
1343
|
+
barGap: number;
|
|
1344
|
+
showYAxis: boolean;
|
|
1345
|
+
increaseColor: string;
|
|
1346
|
+
decreaseColor: string;
|
|
1347
|
+
totalColor: string;
|
|
1348
|
+
connectors: boolean;
|
|
1349
|
+
showValues: boolean;
|
|
1350
|
+
totalLabel: string;
|
|
1351
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1352
|
+
root: HTMLDivElement;
|
|
1353
|
+
}, HTMLDivElement>;
|
|
1354
|
+
|
|
1355
|
+
declare const __VLS_component_83: DefineComponent<CandlestickChartProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1356
|
+
"update:focused": (index: number | null) => any;
|
|
1357
|
+
"candle-enter": (candle: CandleItem, event: Event) => any;
|
|
1358
|
+
"candle-leave": (candle: CandleItem, event: Event) => any;
|
|
1359
|
+
"candle-click": (candle: CandleItem, event: Event) => any;
|
|
1360
|
+
}, string, PublicProps, Readonly<CandlestickChartProps> & Readonly<{
|
|
1361
|
+
"onUpdate:focused"?: ((index: number | null) => any) | undefined;
|
|
1362
|
+
"onCandle-enter"?: ((candle: CandleItem, event: Event) => any) | undefined;
|
|
1363
|
+
"onCandle-leave"?: ((candle: CandleItem, event: Event) => any) | undefined;
|
|
1364
|
+
"onCandle-click"?: ((candle: CandleItem, event: Event) => any) | undefined;
|
|
1365
|
+
}>, {
|
|
1366
|
+
height: number;
|
|
1367
|
+
animated: boolean;
|
|
1368
|
+
tooltip: boolean;
|
|
1369
|
+
grid: boolean;
|
|
1370
|
+
interactive: boolean;
|
|
1371
|
+
barRadius: number;
|
|
1372
|
+
showXAxis: boolean;
|
|
1373
|
+
barGap: number;
|
|
1374
|
+
showYAxis: boolean;
|
|
1375
|
+
upColor: string;
|
|
1376
|
+
downColor: string;
|
|
1377
|
+
maxBarWidth: number;
|
|
1378
|
+
showVolume: boolean;
|
|
1379
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1380
|
+
root: HTMLDivElement;
|
|
1381
|
+
}, HTMLDivElement>;
|
|
1382
|
+
|
|
1383
|
+
declare const __VLS_component_84: DefineComponent<SunburstProps, {
|
|
1384
|
+
zoomTo: typeof goTo_2;
|
|
1385
|
+
back: typeof back;
|
|
1386
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1387
|
+
"update:focused": (key: string | null) => any;
|
|
1388
|
+
"node-enter": (item: SunburstItem, event: Event) => any;
|
|
1389
|
+
"node-leave": (item: SunburstItem, event: Event) => any;
|
|
1390
|
+
"node-click": (item: SunburstItem, event: Event) => any;
|
|
1391
|
+
"update:zoom": (key: string | null) => any;
|
|
1392
|
+
}, string, PublicProps, Readonly<SunburstProps> & Readonly<{
|
|
1393
|
+
"onUpdate:focused"?: ((key: string | null) => any) | undefined;
|
|
1394
|
+
"onNode-enter"?: ((item: SunburstItem, event: Event) => any) | undefined;
|
|
1395
|
+
"onNode-leave"?: ((item: SunburstItem, event: Event) => any) | undefined;
|
|
1396
|
+
"onNode-click"?: ((item: SunburstItem, event: Event) => any) | undefined;
|
|
1397
|
+
"onUpdate:zoom"?: ((key: string | null) => any) | undefined;
|
|
1398
|
+
}>, {
|
|
1399
|
+
size: number;
|
|
1400
|
+
zoom: string | null;
|
|
1401
|
+
animated: boolean;
|
|
1402
|
+
gap: number;
|
|
1403
|
+
interactive: boolean;
|
|
1404
|
+
levels: number;
|
|
1405
|
+
showLabels: boolean;
|
|
1406
|
+
zoomable: boolean;
|
|
1407
|
+
innerRadius: number;
|
|
1408
|
+
cornerRadius: number;
|
|
1409
|
+
rootLabel: string;
|
|
1410
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1411
|
+
svg: SVGSVGElement;
|
|
1412
|
+
chart: SVGGElement;
|
|
1413
|
+
}, HTMLDivElement>;
|
|
1414
|
+
|
|
1415
|
+
declare const __VLS_component_85: DefineComponent<LightboxProps, {
|
|
1416
|
+
open: typeof open_4;
|
|
1417
|
+
close: typeof close_6;
|
|
1418
|
+
next: () => void;
|
|
1419
|
+
previous: () => void;
|
|
1420
|
+
goTo: typeof goTo_3;
|
|
1421
|
+
zoomIn: () => void;
|
|
1422
|
+
zoomOut: () => void;
|
|
1423
|
+
resetZoom: () => void;
|
|
1424
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1425
|
+
error: (image: LightboxImage, index: number) => any;
|
|
1426
|
+
close: () => any;
|
|
1427
|
+
"update:modelValue": (open: boolean) => any;
|
|
1428
|
+
"update:index": (index: number) => any;
|
|
1429
|
+
}, string, PublicProps, Readonly<LightboxProps> & Readonly<{
|
|
1430
|
+
onError?: ((image: LightboxImage, index: number) => any) | undefined;
|
|
1431
|
+
onClose?: (() => any) | undefined;
|
|
1432
|
+
"onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
|
|
1433
|
+
"onUpdate:index"?: ((index: number) => any) | undefined;
|
|
1434
|
+
}>, {
|
|
1435
|
+
animated: boolean;
|
|
1436
|
+
modelValue: boolean;
|
|
1437
|
+
loop: boolean;
|
|
1438
|
+
index: number;
|
|
1439
|
+
swipeToClose: boolean;
|
|
1440
|
+
maxZoom: number;
|
|
1441
|
+
thumbnails: boolean;
|
|
1442
|
+
showCounter: boolean;
|
|
1443
|
+
zoomable: boolean;
|
|
1444
|
+
downloadable: boolean;
|
|
1445
|
+
closeOnBackdrop: boolean;
|
|
1446
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1447
|
+
root: HTMLDivElement;
|
|
1448
|
+
dialog: HTMLDivElement;
|
|
1449
|
+
stage: HTMLDivElement;
|
|
1450
|
+
frame: HTMLDivElement;
|
|
1451
|
+
image: HTMLImageElement;
|
|
1452
|
+
strip: HTMLDivElement;
|
|
1453
|
+
}, any>;
|
|
1454
|
+
|
|
1136
1455
|
declare const __VLS_component_9: DefineComponent<CardSubProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CardSubProps> & Readonly<{}>, {
|
|
1137
1456
|
as: string | Component;
|
|
1138
1457
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1159,7 +1478,12 @@ declare type __VLS_Props_4 = {
|
|
|
1159
1478
|
class?: string;
|
|
1160
1479
|
};
|
|
1161
1480
|
|
|
1162
|
-
declare function __VLS_template():
|
|
1481
|
+
declare function __VLS_template(): {
|
|
1482
|
+
attrs: Partial<{}>;
|
|
1483
|
+
slots: Readonly<ButtonSlots> & ButtonSlots;
|
|
1484
|
+
refs: {};
|
|
1485
|
+
rootEl: any;
|
|
1486
|
+
};
|
|
1163
1487
|
|
|
1164
1488
|
declare function __VLS_template_10(): {
|
|
1165
1489
|
attrs: Partial<{}>;
|
|
@@ -1497,6 +1821,10 @@ declare function __VLS_template_38(): {
|
|
|
1497
1821
|
attrs: Partial<{}>;
|
|
1498
1822
|
slots: {
|
|
1499
1823
|
start?(_: {}): any;
|
|
1824
|
+
chip?(_: {
|
|
1825
|
+
option: AutocompleteOption;
|
|
1826
|
+
disabled: boolean;
|
|
1827
|
+
}): any;
|
|
1500
1828
|
end?(_: {}): any;
|
|
1501
1829
|
option?(_: {
|
|
1502
1830
|
option: AutocompleteOption;
|
|
@@ -2027,14 +2355,115 @@ declare function __VLS_template_74(): {
|
|
|
2027
2355
|
|
|
2028
2356
|
declare function __VLS_template_75(): {
|
|
2029
2357
|
attrs: Partial<{}>;
|
|
2030
|
-
slots:
|
|
2031
|
-
icon?(_: {}): any;
|
|
2032
|
-
text?(_: {}): any;
|
|
2033
|
-
};
|
|
2358
|
+
slots: Readonly<FileUploadSlots> & FileUploadSlots;
|
|
2034
2359
|
refs: {
|
|
2360
|
+
rootRef: HTMLDivElement;
|
|
2035
2361
|
fileInput: HTMLInputElement;
|
|
2362
|
+
editorDialog: CreateComponentPublicInstanceWithMixins<Readonly<ImageEditorDialogProps> & Readonly<{
|
|
2363
|
+
onCancel?: (() => any) | undefined;
|
|
2364
|
+
onSave?: ((file: File) => any) | undefined;
|
|
2365
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
2366
|
+
}>, {
|
|
2367
|
+
edit: (file: File, options?: ImageEditorEditOptions) => Promise<File | null>;
|
|
2368
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2369
|
+
cancel: () => any;
|
|
2370
|
+
save: (file: File) => any;
|
|
2371
|
+
"update:open": (open: boolean) => any;
|
|
2372
|
+
}, PublicProps, {
|
|
2373
|
+
title: string;
|
|
2374
|
+
type: CompressImageType;
|
|
2375
|
+
shape: ImageEditorShape;
|
|
2376
|
+
src: File | Blob | string;
|
|
2377
|
+
aspectRatio: number;
|
|
2378
|
+
quality: number;
|
|
2379
|
+
open: boolean;
|
|
2380
|
+
maxSize: number;
|
|
2381
|
+
maxDimension: number;
|
|
2382
|
+
aspectRatios: ImageEditorRatio[];
|
|
2383
|
+
hideOutputSettings: boolean;
|
|
2384
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2385
|
+
editor: CreateComponentPublicInstanceWithMixins<Readonly<ImageEditorProps> & Readonly<{
|
|
2386
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
2387
|
+
onReady?: (() => any) | undefined;
|
|
2388
|
+
}>, {
|
|
2389
|
+
export: () => Promise<File>;
|
|
2390
|
+
reset: () => void;
|
|
2391
|
+
rotate: (clockwise?: boolean) => void;
|
|
2392
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
2393
|
+
dirty: Ref<boolean, boolean>;
|
|
2394
|
+
ready: ComputedRef<boolean>;
|
|
2395
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2396
|
+
error: (error: unknown) => any;
|
|
2397
|
+
ready: () => any;
|
|
2398
|
+
}, PublicProps, {
|
|
2399
|
+
type: CompressImageType;
|
|
2400
|
+
shape: ImageEditorShape;
|
|
2401
|
+
src: File | Blob | string;
|
|
2402
|
+
aspectRatio: number;
|
|
2403
|
+
quality: number;
|
|
2404
|
+
maxSize: number;
|
|
2405
|
+
maxDimension: number;
|
|
2406
|
+
aspectRatios: ImageEditorRatio[];
|
|
2407
|
+
hideOutputSettings: boolean;
|
|
2408
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2409
|
+
stage: HTMLDivElement;
|
|
2410
|
+
frame: HTMLDivElement;
|
|
2411
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
2412
|
+
P: {};
|
|
2413
|
+
B: {};
|
|
2414
|
+
D: {};
|
|
2415
|
+
C: {};
|
|
2416
|
+
M: {};
|
|
2417
|
+
Defaults: {};
|
|
2418
|
+
}, Readonly<ImageEditorProps> & Readonly<{
|
|
2419
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
2420
|
+
onReady?: (() => any) | undefined;
|
|
2421
|
+
}>, {
|
|
2422
|
+
export: () => Promise<File>;
|
|
2423
|
+
reset: () => void;
|
|
2424
|
+
rotate: (clockwise?: boolean) => void;
|
|
2425
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
2426
|
+
dirty: Ref<boolean, boolean>;
|
|
2427
|
+
ready: ComputedRef<boolean>;
|
|
2428
|
+
}, {}, {}, {}, {
|
|
2429
|
+
type: CompressImageType;
|
|
2430
|
+
shape: ImageEditorShape;
|
|
2431
|
+
src: File | Blob | string;
|
|
2432
|
+
aspectRatio: number;
|
|
2433
|
+
quality: number;
|
|
2434
|
+
maxSize: number;
|
|
2435
|
+
maxDimension: number;
|
|
2436
|
+
aspectRatios: ImageEditorRatio[];
|
|
2437
|
+
hideOutputSettings: boolean;
|
|
2438
|
+
}> | null;
|
|
2439
|
+
}, any, ComponentProvideOptions, {
|
|
2440
|
+
P: {};
|
|
2441
|
+
B: {};
|
|
2442
|
+
D: {};
|
|
2443
|
+
C: {};
|
|
2444
|
+
M: {};
|
|
2445
|
+
Defaults: {};
|
|
2446
|
+
}, Readonly<ImageEditorDialogProps> & Readonly<{
|
|
2447
|
+
onCancel?: (() => any) | undefined;
|
|
2448
|
+
onSave?: ((file: File) => any) | undefined;
|
|
2449
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
2450
|
+
}>, {
|
|
2451
|
+
edit: (file: File, options?: ImageEditorEditOptions) => Promise<File | null>;
|
|
2452
|
+
}, {}, {}, {}, {
|
|
2453
|
+
title: string;
|
|
2454
|
+
type: CompressImageType;
|
|
2455
|
+
shape: ImageEditorShape;
|
|
2456
|
+
src: File | Blob | string;
|
|
2457
|
+
aspectRatio: number;
|
|
2458
|
+
quality: number;
|
|
2459
|
+
open: boolean;
|
|
2460
|
+
maxSize: number;
|
|
2461
|
+
maxDimension: number;
|
|
2462
|
+
aspectRatios: ImageEditorRatio[];
|
|
2463
|
+
hideOutputSettings: boolean;
|
|
2464
|
+
}> | null;
|
|
2036
2465
|
};
|
|
2037
|
-
rootEl:
|
|
2466
|
+
rootEl: any;
|
|
2038
2467
|
};
|
|
2039
2468
|
|
|
2040
2469
|
declare function __VLS_template_76(): {
|
|
@@ -2086,6 +2515,69 @@ declare function __VLS_template_8(): {
|
|
|
2086
2515
|
rootEl: any;
|
|
2087
2516
|
};
|
|
2088
2517
|
|
|
2518
|
+
declare function __VLS_template_80(): {
|
|
2519
|
+
attrs: Partial<{}>;
|
|
2520
|
+
slots: Readonly<SlideButtonSlots> & SlideButtonSlots;
|
|
2521
|
+
refs: {
|
|
2522
|
+
track: HTMLDivElement;
|
|
2523
|
+
labelElement: HTMLSpanElement;
|
|
2524
|
+
thumb: HTMLDivElement;
|
|
2525
|
+
};
|
|
2526
|
+
rootEl: HTMLDivElement;
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2529
|
+
declare function __VLS_template_81(): {
|
|
2530
|
+
attrs: Partial<{}>;
|
|
2531
|
+
slots: Readonly<TourSlots> & TourSlots;
|
|
2532
|
+
refs: {
|
|
2533
|
+
root: HTMLDivElement;
|
|
2534
|
+
card: HTMLDivElement;
|
|
2535
|
+
};
|
|
2536
|
+
rootEl: any;
|
|
2537
|
+
};
|
|
2538
|
+
|
|
2539
|
+
declare function __VLS_template_82(): {
|
|
2540
|
+
attrs: Partial<{}>;
|
|
2541
|
+
slots: Readonly<WaterfallChartSlots> & WaterfallChartSlots;
|
|
2542
|
+
refs: {
|
|
2543
|
+
root: HTMLDivElement;
|
|
2544
|
+
};
|
|
2545
|
+
rootEl: HTMLDivElement;
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
declare function __VLS_template_83(): {
|
|
2549
|
+
attrs: Partial<{}>;
|
|
2550
|
+
slots: Readonly<CandlestickChartSlots> & CandlestickChartSlots;
|
|
2551
|
+
refs: {
|
|
2552
|
+
root: HTMLDivElement;
|
|
2553
|
+
};
|
|
2554
|
+
rootEl: HTMLDivElement;
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2557
|
+
declare function __VLS_template_84(): {
|
|
2558
|
+
attrs: Partial<{}>;
|
|
2559
|
+
slots: Readonly<SunburstSlots> & SunburstSlots;
|
|
2560
|
+
refs: {
|
|
2561
|
+
svg: SVGSVGElement;
|
|
2562
|
+
chart: SVGGElement;
|
|
2563
|
+
};
|
|
2564
|
+
rootEl: HTMLDivElement;
|
|
2565
|
+
};
|
|
2566
|
+
|
|
2567
|
+
declare function __VLS_template_85(): {
|
|
2568
|
+
attrs: Partial<{}>;
|
|
2569
|
+
slots: Readonly<LightboxSlots> & LightboxSlots;
|
|
2570
|
+
refs: {
|
|
2571
|
+
root: HTMLDivElement;
|
|
2572
|
+
dialog: HTMLDivElement;
|
|
2573
|
+
stage: HTMLDivElement;
|
|
2574
|
+
frame: HTMLDivElement;
|
|
2575
|
+
image: HTMLImageElement;
|
|
2576
|
+
strip: HTMLDivElement;
|
|
2577
|
+
};
|
|
2578
|
+
rootEl: any;
|
|
2579
|
+
};
|
|
2580
|
+
|
|
2089
2581
|
declare function __VLS_template_9(): {
|
|
2090
2582
|
attrs: Partial<{}>;
|
|
2091
2583
|
slots: {
|
|
@@ -2251,6 +2743,18 @@ declare type __VLS_TemplateResult_79 = ReturnType<typeof __VLS_template_79>;
|
|
|
2251
2743
|
|
|
2252
2744
|
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
2253
2745
|
|
|
2746
|
+
declare type __VLS_TemplateResult_80 = ReturnType<typeof __VLS_template_80>;
|
|
2747
|
+
|
|
2748
|
+
declare type __VLS_TemplateResult_81 = ReturnType<typeof __VLS_template_81>;
|
|
2749
|
+
|
|
2750
|
+
declare type __VLS_TemplateResult_82 = ReturnType<typeof __VLS_template_82>;
|
|
2751
|
+
|
|
2752
|
+
declare type __VLS_TemplateResult_83 = ReturnType<typeof __VLS_template_83>;
|
|
2753
|
+
|
|
2754
|
+
declare type __VLS_TemplateResult_84 = ReturnType<typeof __VLS_template_84>;
|
|
2755
|
+
|
|
2756
|
+
declare type __VLS_TemplateResult_85 = ReturnType<typeof __VLS_template_85>;
|
|
2757
|
+
|
|
2254
2758
|
declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
|
|
2255
2759
|
|
|
2256
2760
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2721,6 +3225,42 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
|
2721
3225
|
};
|
|
2722
3226
|
};
|
|
2723
3227
|
|
|
3228
|
+
declare type __VLS_WithTemplateSlots_80<T, S> = T & {
|
|
3229
|
+
new (): {
|
|
3230
|
+
$slots: S;
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
declare type __VLS_WithTemplateSlots_81<T, S> = T & {
|
|
3235
|
+
new (): {
|
|
3236
|
+
$slots: S;
|
|
3237
|
+
};
|
|
3238
|
+
};
|
|
3239
|
+
|
|
3240
|
+
declare type __VLS_WithTemplateSlots_82<T, S> = T & {
|
|
3241
|
+
new (): {
|
|
3242
|
+
$slots: S;
|
|
3243
|
+
};
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
declare type __VLS_WithTemplateSlots_83<T, S> = T & {
|
|
3247
|
+
new (): {
|
|
3248
|
+
$slots: S;
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
|
|
3252
|
+
declare type __VLS_WithTemplateSlots_84<T, S> = T & {
|
|
3253
|
+
new (): {
|
|
3254
|
+
$slots: S;
|
|
3255
|
+
};
|
|
3256
|
+
};
|
|
3257
|
+
|
|
3258
|
+
declare type __VLS_WithTemplateSlots_85<T, S> = T & {
|
|
3259
|
+
new (): {
|
|
3260
|
+
$slots: S;
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
|
|
2724
3264
|
declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
2725
3265
|
new (): {
|
|
2726
3266
|
$slots: S;
|
|
@@ -3007,9 +3547,11 @@ export declare interface AspectRatioProps {
|
|
|
3007
3547
|
|
|
3008
3548
|
export declare const aspectRatioTheme = "relative w-full overflow-hidden";
|
|
3009
3549
|
|
|
3550
|
+
/** The values are typed loosely on purpose: `v-model` then takes a ref of one value, as it always
|
|
3551
|
+
* has, or of a list with `multiple`. */
|
|
3010
3552
|
export declare interface AutocompleteEmits {
|
|
3011
|
-
'update:modelValue': [value:
|
|
3012
|
-
'change': [value:
|
|
3553
|
+
'update:modelValue': [value: any];
|
|
3554
|
+
'change': [value: any];
|
|
3013
3555
|
'inputChange': [query: string];
|
|
3014
3556
|
'focus': [event: FocusEvent];
|
|
3015
3557
|
'blur': [event: FocusEvent];
|
|
@@ -3036,10 +3578,13 @@ export declare const autocompleteOptionTheme: (props?: ({
|
|
|
3036
3578
|
export declare const autocompletePopoverTheme: string;
|
|
3037
3579
|
|
|
3038
3580
|
export declare interface AutocompleteProps {
|
|
3039
|
-
/** Selected value (v-model). */
|
|
3040
|
-
modelValue?:
|
|
3581
|
+
/** Selected value (v-model). With `multiple`, an array in the order they were picked. */
|
|
3582
|
+
modelValue?: AutocompleteValue;
|
|
3041
3583
|
/** Default value when uncontrolled. */
|
|
3042
|
-
defaultValue?:
|
|
3584
|
+
defaultValue?: AutocompleteValue;
|
|
3585
|
+
/** Pick several: they show as chips in the field, and the list stays open. With
|
|
3586
|
+
* `allowCustomValue`, what is typed can be added too. */
|
|
3587
|
+
multiple?: boolean;
|
|
3043
3588
|
/** List of options to filter. */
|
|
3044
3589
|
options: AutocompleteOption[];
|
|
3045
3590
|
/** Placeholder text. */
|
|
@@ -3091,6 +3636,9 @@ export declare interface AutocompleteProps {
|
|
|
3091
3636
|
|
|
3092
3637
|
declare type AutocompleteShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3093
3638
|
|
|
3639
|
+
/** One value, or with `multiple` a list of them. */
|
|
3640
|
+
export declare type AutocompleteValue = string | number | (string | number)[];
|
|
3641
|
+
|
|
3094
3642
|
export declare const autocompleteWrapperTheme = "flex w-full flex-col gap-1.5";
|
|
3095
3643
|
|
|
3096
3644
|
export declare interface AvatarProps {
|
|
@@ -3127,6 +3675,8 @@ export declare const avatarTheme: (props?: ({
|
|
|
3127
3675
|
shadow?: "none" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
3128
3676
|
} & ClassProp) | undefined) => string;
|
|
3129
3677
|
|
|
3678
|
+
declare function back(): void;
|
|
3679
|
+
|
|
3130
3680
|
export declare type BadgeColor = 'default' | 'accent' | 'success' | 'warning' | 'danger';
|
|
3131
3681
|
|
|
3132
3682
|
export declare type BadgePlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
@@ -3444,6 +3994,43 @@ export declare interface CalendarProps {
|
|
|
3444
3994
|
|
|
3445
3995
|
export declare const calendarTheme = "w-72 max-w-full";
|
|
3446
3996
|
|
|
3997
|
+
export declare interface CandleDatum {
|
|
3998
|
+
/** Unique key. Falls back to the label. */
|
|
3999
|
+
id?: string;
|
|
4000
|
+
/** The period: a date, a time. */
|
|
4001
|
+
label: string;
|
|
4002
|
+
open: number;
|
|
4003
|
+
high: number;
|
|
4004
|
+
low: number;
|
|
4005
|
+
close: number;
|
|
4006
|
+
volume?: number;
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
/** A candle with its derived values. Passed to slots and events. */
|
|
4010
|
+
export declare interface CandleItem {
|
|
4011
|
+
key: string;
|
|
4012
|
+
index: number;
|
|
4013
|
+
label: string;
|
|
4014
|
+
open: number;
|
|
4015
|
+
high: number;
|
|
4016
|
+
low: number;
|
|
4017
|
+
close: number;
|
|
4018
|
+
volume?: number;
|
|
4019
|
+
/** Closed at or above where it opened. */
|
|
4020
|
+
rising: boolean;
|
|
4021
|
+
/** Close less open, and that as a share of the open (0-100, two decimals). */
|
|
4022
|
+
change: number;
|
|
4023
|
+
changePercent: number;
|
|
4024
|
+
color: string;
|
|
4025
|
+
formatted: {
|
|
4026
|
+
open: string;
|
|
4027
|
+
high: string;
|
|
4028
|
+
low: string;
|
|
4029
|
+
close: string;
|
|
4030
|
+
volume?: string;
|
|
4031
|
+
};
|
|
4032
|
+
}
|
|
4033
|
+
|
|
3447
4034
|
export declare interface CandlePoint {
|
|
3448
4035
|
time: number;
|
|
3449
4036
|
open: number;
|
|
@@ -3452,6 +4039,42 @@ export declare interface CandlePoint {
|
|
|
3452
4039
|
close: number;
|
|
3453
4040
|
}
|
|
3454
4041
|
|
|
4042
|
+
export declare interface CandlestickChartProps {
|
|
4043
|
+
data: CandleDatum[];
|
|
4044
|
+
/** Chart height in px. Width is fluid. */
|
|
4045
|
+
height?: number;
|
|
4046
|
+
upColor?: string;
|
|
4047
|
+
downColor?: string;
|
|
4048
|
+
/** Corner radius of the candle bodies, in px. */
|
|
4049
|
+
barRadius?: number;
|
|
4050
|
+
/** Space between candles as a share of each slot, from 0 to 0.9. */
|
|
4051
|
+
barGap?: number;
|
|
4052
|
+
/** The widest a candle body gets, in px, when there are few of them. */
|
|
4053
|
+
maxBarWidth?: number;
|
|
4054
|
+
/** Bars of volume along the bottom, for data that has it. */
|
|
4055
|
+
showVolume?: boolean;
|
|
4056
|
+
grid?: boolean;
|
|
4057
|
+
showXAxis?: boolean;
|
|
4058
|
+
showYAxis?: boolean;
|
|
4059
|
+
formatValue?: (value: number) => string;
|
|
4060
|
+
formatVolume?: (value: number) => string;
|
|
4061
|
+
/** Words for the tooltip and screen readers. */
|
|
4062
|
+
labels?: Partial<Record<'open' | 'high' | 'low' | 'close' | 'volume', string>>;
|
|
4063
|
+
interactive?: boolean;
|
|
4064
|
+
tooltip?: boolean;
|
|
4065
|
+
/** Highlighted candle. Optional: the chart tracks hover by itself; bind v-model:focused to read or drive it. */
|
|
4066
|
+
focused?: number | null;
|
|
4067
|
+
animated?: boolean;
|
|
4068
|
+
label?: string;
|
|
4069
|
+
class?: string;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
export declare interface CandlestickChartSlots {
|
|
4073
|
+
tooltip?: (props: {
|
|
4074
|
+
candle: CandleItem;
|
|
4075
|
+
}) => unknown;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
3455
4078
|
export declare const cardContentTheme = "flex flex-1 flex-col gap-1";
|
|
3456
4079
|
|
|
3457
4080
|
export declare const cardDescriptionTheme = "text-sm leading-5 text-ousi-muted";
|
|
@@ -3724,6 +4347,10 @@ declare function close_3(): void;
|
|
|
3724
4347
|
|
|
3725
4348
|
declare function close_4(): void;
|
|
3726
4349
|
|
|
4350
|
+
declare function close_5(): void;
|
|
4351
|
+
|
|
4352
|
+
declare function close_6(): void;
|
|
4353
|
+
|
|
3727
4354
|
/** Code scroll area. */
|
|
3728
4355
|
export declare const codeBlockBodyTheme = "overflow-x-auto font-mono text-[13px] leading-6";
|
|
3729
4356
|
|
|
@@ -4113,6 +4740,33 @@ export declare const commandPaletteTheme: (props?: ({
|
|
|
4113
4740
|
shadow?: "lg" | "xl" | "2xl" | null | undefined;
|
|
4114
4741
|
} & ClassProp) | undefined) => string;
|
|
4115
4742
|
|
|
4743
|
+
/**
|
|
4744
|
+
* Makes an image lighter in the browser: lowers the quality first, then the dimensions. Whatever it
|
|
4745
|
+
* cannot improve (a GIF, an SVG, a PDF, an animation) comes back as it was. It does its best within
|
|
4746
|
+
* `minQuality` and `minDimension`, so check `result.size` when the limit is strict.
|
|
4747
|
+
*
|
|
4748
|
+
* Writing an image again drops its metadata, such as the place and date of a photo.
|
|
4749
|
+
*/
|
|
4750
|
+
export declare function compressImage(file: File, options?: CompressImageOptions): Promise<File>;
|
|
4751
|
+
|
|
4752
|
+
export declare interface CompressImageOptions {
|
|
4753
|
+
/** Weight to reach, in bytes. */
|
|
4754
|
+
maxSize?: number;
|
|
4755
|
+
/** The longest side is brought down to this many pixels. */
|
|
4756
|
+
maxDimension?: number;
|
|
4757
|
+
/** Output format. Without it the format is kept, and changes only when the weight asks for it. */
|
|
4758
|
+
type?: CompressImageType;
|
|
4759
|
+
/** Quality of the first try, from 0 to 1. Defaults to 0.85. */
|
|
4760
|
+
quality?: number;
|
|
4761
|
+
/** Quality is not lowered past this: the image is made smaller instead. Defaults to 0.7. */
|
|
4762
|
+
minQuality?: number;
|
|
4763
|
+
/** To reach the weight the longest side is not shrunk below this, so text stays readable. Defaults to 800. */
|
|
4764
|
+
minDimension?: number;
|
|
4765
|
+
signal?: AbortSignal;
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4768
|
+
export declare type CompressImageType = 'image/jpeg' | 'image/webp' | 'image/png';
|
|
4769
|
+
|
|
4116
4770
|
export declare interface ConfettiEmits {
|
|
4117
4771
|
'complete': [];
|
|
4118
4772
|
}
|
|
@@ -4532,11 +5186,13 @@ export declare interface DonutChartProps {
|
|
|
4532
5186
|
size?: number;
|
|
4533
5187
|
/** Ring thickness in viewBox units (0-100 scale). Ignored by `pie`. */
|
|
4534
5188
|
thickness?: number;
|
|
4535
|
-
/**
|
|
5189
|
+
/** Space between segments, in degrees. With round ends it is a curve of even width. 0 joins them. */
|
|
4536
5190
|
gap?: number;
|
|
4537
|
-
/** Round
|
|
5191
|
+
/** Round ends, each fitted around the next. Defaults to true; false cuts them straight. Not for pies. */
|
|
4538
5192
|
rounded?: boolean;
|
|
4539
|
-
/**
|
|
5193
|
+
/** Segments touch, with no space between them. */
|
|
5194
|
+
joined?: boolean;
|
|
5195
|
+
/** How far the hovered segment moves outward, in viewBox units. A joined ring with round ends stays whole. */
|
|
4540
5196
|
explode?: number;
|
|
4541
5197
|
/** Show a legend under the chart: swatch, label and share. */
|
|
4542
5198
|
showLegend?: boolean;
|
|
@@ -4686,8 +5342,11 @@ export declare interface DrawerProps {
|
|
|
4686
5342
|
* lg 36rem, xl 42rem, 2xl 56rem, never wider than 85% of the viewport; full takes the
|
|
4687
5343
|
* viewport but a 4rem strip (2rem on phones), for documents. Defaults to 'sm'. */
|
|
4688
5344
|
size?: DrawerSize;
|
|
4689
|
-
/** Show
|
|
5345
|
+
/** Show the handle bar. Drawers from the top and bottom have one anyway while they can be swiped. */
|
|
4690
5346
|
showHandle?: boolean;
|
|
5347
|
+
/** Close by dragging the drawer back the way it came: a mouse by the handle, a finger from
|
|
5348
|
+
* anywhere, once the content under it has nothing left to scroll. Not for floating-center. */
|
|
5349
|
+
swipeToClose?: boolean;
|
|
4691
5350
|
/** Show the built-in close button. */
|
|
4692
5351
|
showCloseButton?: boolean;
|
|
4693
5352
|
/** Title text in the header. */
|
|
@@ -4760,6 +5419,13 @@ export declare const dropdownSeparatorTheme = "my-1 ml-[3%] h-px w-[94%] bg-ousi
|
|
|
4760
5419
|
|
|
4761
5420
|
declare type DropdownShadow = 'sm' | 'md' | 'lg' | 'xl';
|
|
4762
5421
|
|
|
5422
|
+
/**
|
|
5423
|
+
* Opens the editor on a file and resolves with the result, or with null if the user cancels. What
|
|
5424
|
+
* cannot be edited (a PDF, a GIF, an animation) resolves at once, as it is: made to be passed to the
|
|
5425
|
+
* `transform` of OFileUpload.
|
|
5426
|
+
*/
|
|
5427
|
+
declare function edit(file: File, options?: ImageEditorEditOptions): Promise<File | null>;
|
|
5428
|
+
|
|
4763
5429
|
export declare const elasticSliderBarTheme: (props?: ({
|
|
4764
5430
|
color?: "success" | "warning" | "primary" | "secondary" | "danger" | null | undefined;
|
|
4765
5431
|
active?: boolean | null | undefined;
|
|
@@ -4814,56 +5480,105 @@ declare function exportCSV(options?: {
|
|
|
4814
5480
|
includeHidden?: boolean;
|
|
4815
5481
|
}): void;
|
|
4816
5482
|
|
|
5483
|
+
/** The picture as it stands, written within the output settings. */
|
|
5484
|
+
declare function exportFile(): Promise<File>;
|
|
5485
|
+
|
|
4817
5486
|
export declare const fileUploadAreaTheme: (props?: ({
|
|
4818
5487
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4819
|
-
|
|
5488
|
+
state?: "invalid" | "disabled" | "active" | "idle" | null | undefined;
|
|
4820
5489
|
shadow?: "none" | "xs" | "sm" | "md" | null | undefined;
|
|
4821
5490
|
animated?: boolean | null | undefined;
|
|
4822
5491
|
} & ClassProp) | undefined) => string;
|
|
4823
5492
|
|
|
5493
|
+
/** Settings of the built-in editor, as in OImageEditorDialog. `maxSize` defaults to the component's. */
|
|
5494
|
+
export declare type FileUploadEditorOptions = Pick<ImageEditorDialogProps, 'title' | 'aspectRatio' | 'aspectRatios' | 'shape' | 'maxSize' | 'maxDimension' | 'type' | 'quality' | 'hideOutputSettings'>;
|
|
5495
|
+
|
|
4824
5496
|
export declare interface FileUploadEmits {
|
|
4825
5497
|
'update:modelValue': [files: File[]];
|
|
4826
5498
|
'change': [files: File[]];
|
|
4827
|
-
/** A file was rejected. Without a listener the message shows under the
|
|
5499
|
+
/** A file was rejected. Without a listener the message shows under the control. */
|
|
4828
5500
|
'error': [message: string];
|
|
4829
|
-
/** A file
|
|
5501
|
+
/** A new file left the list, removed or replaced by an edit. If it was uploading, abort here. */
|
|
4830
5502
|
'remove': [file: File];
|
|
4831
|
-
/** The retry button of a file whose
|
|
5503
|
+
/** The retry button of a file whose upload failed. */
|
|
4832
5504
|
'retry': [file: File];
|
|
5505
|
+
/** The name of a file was clicked. Listening to it turns every name into a button. */
|
|
5506
|
+
'open': [file: File | FileUploadUploadedFile];
|
|
5507
|
+
/** How many files are being transformed or waiting for approval: hold your submit while over 0. */
|
|
5508
|
+
'pendingChange': [count: number];
|
|
5509
|
+
/** `transform` threw. The user sees that the file could not be processed; the cause is here. */
|
|
5510
|
+
'transformError': [error: unknown, file: File];
|
|
5511
|
+
/** A new file was edited and took the place of the previous one. `remove` fires for that one. */
|
|
5512
|
+
'edited': [file: File, previous: File];
|
|
5513
|
+
/**
|
|
5514
|
+
* An uploaded image was edited. Nothing changes in the list: upload `file`, replace the record and
|
|
5515
|
+
* update `uploadedFiles` when your server has it. Listening to it shows their Edit button.
|
|
5516
|
+
*/
|
|
5517
|
+
'editUploaded': [uploaded: FileUploadUploadedFile, file: File];
|
|
5518
|
+
'update:uploadedFiles': [files: FileUploadUploadedFile[]];
|
|
5519
|
+
/** An uploaded file was taken off the list: delete it on the server from here. */
|
|
5520
|
+
'removeUploaded': [file: FileUploadUploadedFile];
|
|
4833
5521
|
}
|
|
4834
5522
|
|
|
4835
|
-
|
|
5523
|
+
/** Sends one file. Resolve when the server has it; throw when it fails. */
|
|
5524
|
+
export declare type FileUploader<T> = (file: File, request: FileUploadRequest) => Promise<T>;
|
|
5525
|
+
|
|
5526
|
+
/** The family of a file, which picks the drawing of its icon. */
|
|
5527
|
+
export declare type FileUploadFileKind = 'doc' | 'pdf' | 'sheet' | 'slides' | 'image' | 'video' | 'audio' | 'archive' | 'code' | 'file';
|
|
5528
|
+
|
|
5529
|
+
/** A row of the list. Its actions wrap under the name only when the list is very narrow. */
|
|
5530
|
+
export declare const fileUploadFileTheme: (props?: ({
|
|
4836
5531
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4837
5532
|
} & ClassProp) | undefined) => string;
|
|
4838
5533
|
|
|
4839
|
-
export declare const fileUploadHintTheme = "
|
|
5534
|
+
export declare const fileUploadHintTheme = "block text-xs text-ousi-muted text-pretty";
|
|
4840
5535
|
|
|
5536
|
+
/** The box of the illustration of the drop area. */
|
|
4841
5537
|
export declare const fileUploadIconTheme: (props?: ({
|
|
4842
5538
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4843
5539
|
active?: boolean | null | undefined;
|
|
5540
|
+
disabled?: boolean | null | undefined;
|
|
4844
5541
|
} & ClassProp) | undefined) => string;
|
|
4845
5542
|
|
|
4846
5543
|
export declare const fileUploadInlineTheme: (props?: ({
|
|
4847
5544
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4848
|
-
|
|
5545
|
+
state?: "invalid" | "disabled" | "active" | "idle" | null | undefined;
|
|
4849
5546
|
shadow?: "none" | "xs" | "sm" | "md" | null | undefined;
|
|
4850
5547
|
animated?: boolean | null | undefined;
|
|
4851
5548
|
} & ClassProp) | undefined) => string;
|
|
4852
5549
|
|
|
5550
|
+
export declare type FileUploadPaste = 'self' | 'page' | 'none';
|
|
5551
|
+
|
|
5552
|
+
export declare type FileUploadPreview = 'contain' | 'cover' | 'none';
|
|
5553
|
+
|
|
4853
5554
|
export declare interface FileUploadProps {
|
|
4854
5555
|
/** Selected files (v-model). Optional: without it the component keeps its own list. */
|
|
4855
5556
|
modelValue?: File[];
|
|
4856
|
-
/**
|
|
5557
|
+
/** Files already on the server (v-model:uploaded-files), listed before the new ones. */
|
|
5558
|
+
uploadedFiles?: FileUploadUploadedFile[];
|
|
5559
|
+
/** Label shown above the control. */
|
|
5560
|
+
label?: string;
|
|
5561
|
+
/** Help text shown below the control. */
|
|
5562
|
+
description?: string;
|
|
5563
|
+
/** Error message: activates the error state. */
|
|
5564
|
+
errorMessage?: string;
|
|
5565
|
+
/** Name of the native file input, also used to match form context errors. */
|
|
5566
|
+
name?: string;
|
|
5567
|
+
/** Whether a file is required. An uploaded file counts. */
|
|
5568
|
+
required?: boolean;
|
|
5569
|
+
/** Accepted file types (e.g. "image/*,.pdf"). Also shown in the hint. */
|
|
4857
5570
|
accept?: string;
|
|
4858
5571
|
/** Allow multiple files. */
|
|
4859
5572
|
multiple?: boolean;
|
|
4860
|
-
/** Max file size in bytes. Also shown
|
|
5573
|
+
/** Max file size in bytes. Also shown in the hint. */
|
|
4861
5574
|
maxSize?: number;
|
|
4862
|
-
/** Max number of files. */
|
|
5575
|
+
/** Max number of files, counting the uploaded ones. */
|
|
4863
5576
|
maxFiles?: number;
|
|
5577
|
+
/** Opens the camera on phones: 'user' for the front one, 'environment' for the back one. */
|
|
5578
|
+
capture?: 'user' | 'environment';
|
|
4864
5579
|
/** Size of the component. */
|
|
4865
5580
|
size?: FileUploadSize;
|
|
4866
|
-
/** Disable
|
|
5581
|
+
/** Disable adding, retrying and removing. Files can still be opened. */
|
|
4867
5582
|
disabled?: boolean;
|
|
4868
5583
|
/** Visual variant. */
|
|
4869
5584
|
variant?: FileUploadVariant;
|
|
@@ -4871,9 +5586,39 @@ export declare interface FileUploadProps {
|
|
|
4871
5586
|
shadow?: FileUploadShadow;
|
|
4872
5587
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
4873
5588
|
animated?: boolean;
|
|
4874
|
-
/**
|
|
5589
|
+
/** Main text of the drop area, or the label of the button in the button variant. */
|
|
5590
|
+
text?: string;
|
|
5591
|
+
/** Replaces the line with the accepted formats and the max size. */
|
|
5592
|
+
hint?: string;
|
|
5593
|
+
/** Upload state of each new file, for progress or an error with a retry button. */
|
|
4875
5594
|
fileStatus?: (file: File) => FileUploadStatus | undefined;
|
|
4876
|
-
/**
|
|
5595
|
+
/**
|
|
5596
|
+
* How images show in the list, for new files and uploaded ones: 'contain' (default) the whole
|
|
5597
|
+
* image, 'cover' filling the box and cropping what does not fit, 'none' always the icon.
|
|
5598
|
+
*/
|
|
5599
|
+
preview?: FileUploadPreview;
|
|
5600
|
+
/**
|
|
5601
|
+
* Runs on each picked file after the type check and before the size check, one file at a time.
|
|
5602
|
+
* The file enters v-model only once it is done.
|
|
5603
|
+
*/
|
|
5604
|
+
transform?: FileUploadTransform;
|
|
5605
|
+
/** Ask the user before adding a file that `transform` changed. */
|
|
5606
|
+
confirmTransform?: boolean;
|
|
5607
|
+
/**
|
|
5608
|
+
* Adds an Edit button to the images of the list, which opens the built-in editor. Uploaded images
|
|
5609
|
+
* get it too when they have a `url` and you listen to `editUploaded`.
|
|
5610
|
+
*/
|
|
5611
|
+
editable?: boolean;
|
|
5612
|
+
/** Settings of that editor: shape, ratios, output size and format. */
|
|
5613
|
+
editorOptions?: FileUploadEditorOptions;
|
|
5614
|
+
/**
|
|
5615
|
+
* Add files with ⌘V / Ctrl+V: 'self' (default) while the pointer is over the component or focus is
|
|
5616
|
+
* inside, 'page' wherever the paste happens, 'none' never.
|
|
5617
|
+
*/
|
|
5618
|
+
paste?: FileUploadPaste;
|
|
5619
|
+
/** Hide the illustration or icon of the control. */
|
|
5620
|
+
hideIcon?: boolean;
|
|
5621
|
+
/** Hide the list of files, for apps that show their own. */
|
|
4877
5622
|
hideFileList?: boolean;
|
|
4878
5623
|
/** Hide the line with the accepted formats and the max size. */
|
|
4879
5624
|
hideHint?: boolean;
|
|
@@ -4881,24 +5626,103 @@ export declare interface FileUploadProps {
|
|
|
4881
5626
|
class?: string;
|
|
4882
5627
|
}
|
|
4883
5628
|
|
|
4884
|
-
|
|
5629
|
+
/** What your upload function gets along with the file. */
|
|
5630
|
+
export declare interface FileUploadRequest {
|
|
5631
|
+
/** Report how much has been sent, from 0 to 100. */
|
|
5632
|
+
onProgress: (percent: number) => void;
|
|
5633
|
+
/** Aborted when the file leaves the list or the component unmounts. Pass it to fetch or axios. */
|
|
5634
|
+
signal: AbortSignal;
|
|
5635
|
+
}
|
|
5636
|
+
|
|
5637
|
+
export declare type FileUploadShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
4885
5638
|
|
|
4886
5639
|
export declare type FileUploadSize = 'sm' | 'md' | 'lg';
|
|
4887
5640
|
|
|
4888
|
-
|
|
5641
|
+
export declare interface FileUploadSlots {
|
|
5642
|
+
/** Replaces the illustration (area) or the icon (inline and button). */
|
|
5643
|
+
icon?: (props: {
|
|
5644
|
+
active: boolean;
|
|
5645
|
+
disabled: boolean;
|
|
5646
|
+
}) => unknown;
|
|
5647
|
+
/** Main text of the control. */
|
|
5648
|
+
text?: (props: {
|
|
5649
|
+
active: boolean;
|
|
5650
|
+
}) => unknown;
|
|
5651
|
+
/** The line with the accepted formats and the max size. */
|
|
5652
|
+
hint?: () => unknown;
|
|
5653
|
+
/** The icon or thumbnail of a row. */
|
|
5654
|
+
'file-icon'?: (props: {
|
|
5655
|
+
file: File | FileUploadUploadedFile;
|
|
5656
|
+
kind: FileUploadFileKind;
|
|
5657
|
+
previewUrl: string | undefined;
|
|
5658
|
+
}) => unknown;
|
|
5659
|
+
/** Replaces the buttons that approve a transformed file. */
|
|
5660
|
+
review?: (props: {
|
|
5661
|
+
original: File;
|
|
5662
|
+
result: File;
|
|
5663
|
+
/** False when the original breaks `maxSize`. */
|
|
5664
|
+
canKeepOriginal: boolean;
|
|
5665
|
+
accept: () => void;
|
|
5666
|
+
keepOriginal: () => void;
|
|
5667
|
+
discard: () => void;
|
|
5668
|
+
/** Opens the comparison of both images; undefined for other files. */
|
|
5669
|
+
compare: (() => void) | undefined;
|
|
5670
|
+
}) => unknown;
|
|
5671
|
+
/** Extra actions of a row, before retry and remove. */
|
|
5672
|
+
'file-actions'?: (props: {
|
|
5673
|
+
file: File | FileUploadUploadedFile;
|
|
5674
|
+
state: FileUploadState;
|
|
5675
|
+
}) => unknown;
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
export declare type FileUploadState = 'idle' | 'uploading' | 'done' | 'error';
|
|
5679
|
+
|
|
5680
|
+
/** What the app reports for a file it is sending. */
|
|
4889
5681
|
export declare interface FileUploadStatus {
|
|
5682
|
+
/**
|
|
5683
|
+
* Without it the state follows the rest: `error` means failed, a `progress` under 100 means
|
|
5684
|
+
* uploading and 100 means done. `{ state: 'uploading' }` alone shows a bar with no percentage.
|
|
5685
|
+
*/
|
|
5686
|
+
state?: FileUploadState;
|
|
5687
|
+
/** From 0 to 100. */
|
|
4890
5688
|
progress?: number;
|
|
5689
|
+
/** Why the upload failed. */
|
|
4891
5690
|
error?: string;
|
|
4892
5691
|
}
|
|
4893
5692
|
|
|
4894
5693
|
export declare const fileUploadTextTheme: (props?: ({
|
|
4895
5694
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5695
|
+
disabled?: boolean | null | undefined;
|
|
4896
5696
|
} & ClassProp) | undefined) => string;
|
|
4897
5697
|
|
|
4898
|
-
|
|
5698
|
+
/**
|
|
5699
|
+
* Processes a picked file before it is added: compress, crop, convert. Resolve with the file to add,
|
|
5700
|
+
* or with null to drop it. Abort whatever you opened when the signal does.
|
|
5701
|
+
*/
|
|
5702
|
+
export declare type FileUploadTransform = (file: File, context: {
|
|
5703
|
+
signal: AbortSignal;
|
|
5704
|
+
}) => File | null | Promise<File | null>;
|
|
5705
|
+
|
|
5706
|
+
/** A file that is already on the server, such as the attachments of a record being edited. */
|
|
5707
|
+
export declare interface FileUploadUploadedFile {
|
|
5708
|
+
id?: string | number;
|
|
5709
|
+
name: string;
|
|
5710
|
+
/** In bytes. */
|
|
5711
|
+
size?: number;
|
|
5712
|
+
/** MIME type. The extension of the name is enough to pick the icon. */
|
|
5713
|
+
type?: string;
|
|
5714
|
+
/** Turns the name into a link that opens in a new tab. */
|
|
5715
|
+
url?: string;
|
|
5716
|
+
/** Image shown in place of the icon. */
|
|
5717
|
+
previewUrl?: string;
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
export declare type FileUploadVariant = 'area' | 'inline' | 'button';
|
|
4899
5721
|
|
|
4900
5722
|
declare function fire(): void;
|
|
4901
5723
|
|
|
5724
|
+
declare function flip(axis: 'horizontal' | 'vertical'): void;
|
|
5725
|
+
|
|
4902
5726
|
declare function focusKey(key: string): void;
|
|
4903
5727
|
|
|
4904
5728
|
export declare function formatDateValue(value: DateFieldValue, pattern: string): string;
|
|
@@ -5042,6 +5866,12 @@ export declare function getFirstDayOfWeekForLocale(locale: string): WeekDay;
|
|
|
5042
5866
|
*/
|
|
5043
5867
|
export declare function getHour12ForLocale(locale: string): boolean;
|
|
5044
5868
|
|
|
5869
|
+
declare function goTo(step: number): void;
|
|
5870
|
+
|
|
5871
|
+
declare function goTo_2(key: string | null): void;
|
|
5872
|
+
|
|
5873
|
+
declare function goTo_3(index: number): void;
|
|
5874
|
+
|
|
5045
5875
|
export declare type GradientTextPreset = 'aurora' | 'sunset' | 'ocean' | 'candy' | 'neon';
|
|
5046
5876
|
|
|
5047
5877
|
export declare interface GradientTextProps {
|
|
@@ -5201,6 +6031,73 @@ export declare const imageCompareTheme: (props?: ({
|
|
|
5201
6031
|
shadow?: "none" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
5202
6032
|
} & ClassProp) | undefined) => string;
|
|
5203
6033
|
|
|
6034
|
+
export declare interface ImageEditorDialogEmits {
|
|
6035
|
+
'update:open': [open: boolean];
|
|
6036
|
+
/** Saved while opened with `open`. With `edit()` the file is what the promise resolves with. */
|
|
6037
|
+
'save': [file: File];
|
|
6038
|
+
'cancel': [];
|
|
6039
|
+
}
|
|
6040
|
+
|
|
6041
|
+
export declare interface ImageEditorDialogProps extends ImageEditorProps {
|
|
6042
|
+
/** Open state (v-model:open). Not needed when you use `edit()`. */
|
|
6043
|
+
open?: boolean;
|
|
6044
|
+
/** Heading of the dialog. */
|
|
6045
|
+
title?: string;
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
export declare interface ImageEditorEditOptions {
|
|
6049
|
+
/** Cancels the edit: the promise resolves with null. */
|
|
6050
|
+
signal?: AbortSignal;
|
|
6051
|
+
/** The picture before earlier changes: the dialog offers to start from it again. */
|
|
6052
|
+
original?: File;
|
|
6053
|
+
/**
|
|
6054
|
+
* Saving without touching anything resolves with the very file that came in. Without it the output
|
|
6055
|
+
* settings and the shape still apply, as a first edit needs.
|
|
6056
|
+
*/
|
|
6057
|
+
keepUntouched?: boolean;
|
|
6058
|
+
}
|
|
6059
|
+
|
|
6060
|
+
export declare interface ImageEditorEmits {
|
|
6061
|
+
/** The picture is open and can be edited. */
|
|
6062
|
+
'ready': [];
|
|
6063
|
+
/** The picture could not be opened or written. */
|
|
6064
|
+
'error': [error: unknown];
|
|
6065
|
+
}
|
|
6066
|
+
|
|
6067
|
+
/** What the editor writes out. Every setting is optional. */
|
|
6068
|
+
export declare type ImageEditorOutput = Pick<ImageEditorProps, 'maxSize' | 'maxDimension' | 'type' | 'quality'>;
|
|
6069
|
+
|
|
6070
|
+
export declare interface ImageEditorProps {
|
|
6071
|
+
/** The picture: a file, a blob or a URL. Another origin needs CORS. */
|
|
6072
|
+
src?: File | Blob | string;
|
|
6073
|
+
/** Fixes the shape of the crop (width / height) and hides the choice. */
|
|
6074
|
+
aspectRatio?: number;
|
|
6075
|
+
/** Shapes to choose from when it is not fixed. */
|
|
6076
|
+
aspectRatios?: ImageEditorRatio[];
|
|
6077
|
+
/** 'circle' draws a round, square crop, for avatars. The file written is square. */
|
|
6078
|
+
shape?: ImageEditorShape;
|
|
6079
|
+
/** Weight to reach, in bytes. */
|
|
6080
|
+
maxSize?: number;
|
|
6081
|
+
/** Longest side of the result, in pixels. */
|
|
6082
|
+
maxDimension?: number;
|
|
6083
|
+
/** Output format. Without it the format of the picture is kept when possible. */
|
|
6084
|
+
type?: CompressImageType;
|
|
6085
|
+
/** Quality, from 0 to 1. Defaults to 0.9. */
|
|
6086
|
+
quality?: number;
|
|
6087
|
+
/** Hide the size, format and quality settings. */
|
|
6088
|
+
hideOutputSettings?: boolean;
|
|
6089
|
+
/** Additional CSS classes. */
|
|
6090
|
+
class?: string;
|
|
6091
|
+
}
|
|
6092
|
+
|
|
6093
|
+
export declare interface ImageEditorRatio {
|
|
6094
|
+
label: string;
|
|
6095
|
+
/** Width divided by height; without it the crop is free. */
|
|
6096
|
+
value?: number;
|
|
6097
|
+
}
|
|
6098
|
+
|
|
6099
|
+
export declare type ImageEditorShape = 'rect' | 'circle';
|
|
6100
|
+
|
|
5204
6101
|
export declare interface InfiniteScrollEmits {
|
|
5205
6102
|
'load-more': [];
|
|
5206
6103
|
}
|
|
@@ -5354,6 +6251,8 @@ export declare interface InputProps {
|
|
|
5354
6251
|
required?: boolean;
|
|
5355
6252
|
/** Show a clear button when there is a value. */
|
|
5356
6253
|
clearable?: boolean;
|
|
6254
|
+
/** With `type="password"`, a button that shows what was typed and hides it again. */
|
|
6255
|
+
revealable?: boolean;
|
|
5357
6256
|
/** Show a loading spinner in the end slot. */
|
|
5358
6257
|
loading?: boolean;
|
|
5359
6258
|
/** Renders the wrapper as a different element or component. */
|
|
@@ -5366,6 +6265,9 @@ declare type InputShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
|
5366
6265
|
|
|
5367
6266
|
export declare function install(app: App, options?: OusiUIPluginOptions): void;
|
|
5368
6267
|
|
|
6268
|
+
/** Animated PNG and WebP files would come out of a canvas as a still picture. */
|
|
6269
|
+
export declare function isAnimatedImage(file: File): Promise<boolean>;
|
|
6270
|
+
|
|
5369
6271
|
export declare const kbdAbbrTheme = "flex items-center justify-center no-underline";
|
|
5370
6272
|
|
|
5371
6273
|
export declare const kbdContentTheme = "flex items-center justify-center";
|
|
@@ -5400,6 +6302,91 @@ export declare const labelTheme: (props?: ({
|
|
|
5400
6302
|
invalid?: boolean | null | undefined;
|
|
5401
6303
|
} & ClassProp) | undefined) => string;
|
|
5402
6304
|
|
|
6305
|
+
export declare const lightboxBackdropTheme = "absolute inset-0 bg-[var(--lightbox-backdrop,rgb(8_8_10_/_0.95))]";
|
|
6306
|
+
|
|
6307
|
+
export declare const lightboxButtonTheme: string;
|
|
6308
|
+
|
|
6309
|
+
export declare interface LightboxEmits {
|
|
6310
|
+
'update:modelValue': [open: boolean];
|
|
6311
|
+
'update:index': [index: number];
|
|
6312
|
+
'close': [];
|
|
6313
|
+
/** A picture did not load. */
|
|
6314
|
+
'error': [image: LightboxImage, index: number];
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
export declare interface LightboxImage {
|
|
6318
|
+
/** Unique key. Falls back to the address. */
|
|
6319
|
+
id?: string | number;
|
|
6320
|
+
src: string;
|
|
6321
|
+
/** What the picture shows, for screen readers. */
|
|
6322
|
+
alt?: string;
|
|
6323
|
+
/** Shown under it. */
|
|
6324
|
+
caption?: string;
|
|
6325
|
+
/** A small version for the strip of thumbnails. Falls back to `src`. */
|
|
6326
|
+
thumbnail?: string;
|
|
6327
|
+
/** File name for the download button. */
|
|
6328
|
+
downloadName?: string;
|
|
6329
|
+
}
|
|
6330
|
+
|
|
6331
|
+
export declare interface LightboxProps {
|
|
6332
|
+
/** The pictures, or just their addresses. */
|
|
6333
|
+
images: (LightboxImage | string)[];
|
|
6334
|
+
/** Whether it is open (v-model). Optional: the `trigger` slot and `open()` work without it. */
|
|
6335
|
+
modelValue?: boolean;
|
|
6336
|
+
/** The picture on show, from 0 (v-model:index). */
|
|
6337
|
+
index?: number;
|
|
6338
|
+
/** From the last picture on to the first, and back. */
|
|
6339
|
+
loop?: boolean;
|
|
6340
|
+
/** A strip to jump between pictures, when there is more than one. */
|
|
6341
|
+
thumbnails?: boolean;
|
|
6342
|
+
/** "2 of 5". */
|
|
6343
|
+
showCounter?: boolean;
|
|
6344
|
+
zoomable?: boolean;
|
|
6345
|
+
/** The most a picture can be enlarged. */
|
|
6346
|
+
maxZoom?: number;
|
|
6347
|
+
/** A button that downloads the picture. From another site the browser opens it instead. */
|
|
6348
|
+
downloadable?: boolean;
|
|
6349
|
+
/** A tap or click beside the picture closes it. */
|
|
6350
|
+
closeOnBackdrop?: boolean;
|
|
6351
|
+
/** Dragging a picture downwards closes it. */
|
|
6352
|
+
swipeToClose?: boolean;
|
|
6353
|
+
/** Accessible name of the viewer. */
|
|
6354
|
+
label?: string;
|
|
6355
|
+
animated?: boolean;
|
|
6356
|
+
/** Additional CSS classes on the viewer. Its background follows `--lightbox-backdrop`. */
|
|
6357
|
+
class?: string;
|
|
6358
|
+
}
|
|
6359
|
+
|
|
6360
|
+
export declare interface LightboxSlotContext {
|
|
6361
|
+
image: LightboxImage;
|
|
6362
|
+
index: number;
|
|
6363
|
+
total: number;
|
|
6364
|
+
/** 1 at its normal size. */
|
|
6365
|
+
zoom: number;
|
|
6366
|
+
close: () => void;
|
|
6367
|
+
}
|
|
6368
|
+
|
|
6369
|
+
export declare interface LightboxSlots {
|
|
6370
|
+
/** Drawn where the component is placed: what opens the viewer. */
|
|
6371
|
+
trigger?: (props: {
|
|
6372
|
+
open: (index?: number) => void;
|
|
6373
|
+
}) => unknown;
|
|
6374
|
+
/** Under the picture. Replaces its caption. */
|
|
6375
|
+
caption?: (props: LightboxSlotContext) => unknown;
|
|
6376
|
+
/** More buttons in the bar, such as share or delete. */
|
|
6377
|
+
actions?: (props: LightboxSlotContext) => unknown;
|
|
6378
|
+
/** In place of a picture that did not load. */
|
|
6379
|
+
error?: (props: LightboxSlotContext) => unknown;
|
|
6380
|
+
'close-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6381
|
+
'previous-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6382
|
+
'next-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6383
|
+
'zoom-in-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6384
|
+
'zoom-out-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6385
|
+
'download-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
export declare const lightboxThumbnailTheme: string;
|
|
6389
|
+
|
|
5403
6390
|
export declare const listboxTheme = "p-1.5 outline-none";
|
|
5404
6391
|
|
|
5405
6392
|
export declare interface MagneticButtonEmits {
|
|
@@ -5458,8 +6445,17 @@ export declare const meterLabelTheme = "w-fit text-sm font-medium text-ousi-fore
|
|
|
5458
6445
|
export declare const meterOutputTheme = "text-sm font-medium tabular-nums text-ousi-foreground [grid-area:output]";
|
|
5459
6446
|
|
|
5460
6447
|
export declare interface MeterProps {
|
|
5461
|
-
/** Current value
|
|
5462
|
-
value
|
|
6448
|
+
/** Current value. Required unless `segments` is given. */
|
|
6449
|
+
value?: number;
|
|
6450
|
+
/** Several amounts on one bar, in order: what takes up a quota, say. They replace `value` and
|
|
6451
|
+
* `color`. If they add up to more than the range, the bar is shared among them. */
|
|
6452
|
+
segments?: MeterSegment[];
|
|
6453
|
+
/** Space between segments, in px, curved around the round end of the next one. 0 joins them. */
|
|
6454
|
+
gap?: number;
|
|
6455
|
+
/** Segments touch, with no space between them. */
|
|
6456
|
+
joined?: boolean;
|
|
6457
|
+
/** With `segments`: list under the bar what each one is and how much. */
|
|
6458
|
+
showLegend?: boolean;
|
|
5463
6459
|
/** Minimum value. Default: 0. */
|
|
5464
6460
|
minValue?: number;
|
|
5465
6461
|
/** Maximum value. Default: 100. */
|
|
@@ -5488,6 +6484,16 @@ export declare interface MeterProps {
|
|
|
5488
6484
|
class?: string;
|
|
5489
6485
|
}
|
|
5490
6486
|
|
|
6487
|
+
export declare interface MeterSegment {
|
|
6488
|
+
/** Unique key. Falls back to the label. */
|
|
6489
|
+
id?: string;
|
|
6490
|
+
label: string;
|
|
6491
|
+
/** An amount, on the same scale as `maxValue`. */
|
|
6492
|
+
value: number;
|
|
6493
|
+
/** Token name or any CSS color. Defaults to the chart palette. */
|
|
6494
|
+
color?: string;
|
|
6495
|
+
}
|
|
6496
|
+
|
|
5491
6497
|
export declare type MeterSize = 'sm' | 'md' | 'lg';
|
|
5492
6498
|
|
|
5493
6499
|
export declare const meterTheme: (props?: ({
|
|
@@ -5500,6 +6506,8 @@ export declare const meterTrackTheme: (props?: ({
|
|
|
5500
6506
|
|
|
5501
6507
|
declare function next(): void;
|
|
5502
6508
|
|
|
6509
|
+
declare function next_2(): void;
|
|
6510
|
+
|
|
5503
6511
|
export declare const numberFieldDecrementTheme: string;
|
|
5504
6512
|
|
|
5505
6513
|
export declare const numberFieldDescriptionTheme = "text-xs text-ousi-muted";
|
|
@@ -5647,6 +6655,8 @@ export declare const OButtonGroupSeparator: DefineComponent< {}, {}, {}, {},
|
|
|
5647
6655
|
|
|
5648
6656
|
export declare const OCalendar: __VLS_WithTemplateSlots_41<typeof __VLS_component_41, __VLS_TemplateResult_41["slots"]>;
|
|
5649
6657
|
|
|
6658
|
+
export declare const OCandlestickChart: __VLS_WithTemplateSlots_83<typeof __VLS_component_83, __VLS_TemplateResult_83["slots"]>;
|
|
6659
|
+
|
|
5650
6660
|
export declare const OCard: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
5651
6661
|
|
|
5652
6662
|
export declare const OCardContent: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
@@ -5675,9 +6685,9 @@ y: number;
|
|
|
5675
6685
|
"onWindow-change"?: ((secs: number) => any) | undefined;
|
|
5676
6686
|
}>, {
|
|
5677
6687
|
fill: boolean;
|
|
6688
|
+
mode: "line" | "candle";
|
|
5678
6689
|
color: string;
|
|
5679
6690
|
padding: ChartPadding;
|
|
5680
|
-
mode: "line" | "candle";
|
|
5681
6691
|
cursor: string;
|
|
5682
6692
|
grid: boolean;
|
|
5683
6693
|
pulse: boolean;
|
|
@@ -5771,6 +6781,7 @@ readonly disabled?: boolean | undefined;
|
|
|
5771
6781
|
readonly readonly?: boolean | undefined;
|
|
5772
6782
|
readonly required?: boolean | undefined;
|
|
5773
6783
|
readonly clearable?: boolean | undefined;
|
|
6784
|
+
readonly revealable?: boolean | undefined;
|
|
5774
6785
|
readonly loading?: boolean | undefined;
|
|
5775
6786
|
readonly as?: (string | Component) | undefined;
|
|
5776
6787
|
readonly class?: string | undefined;
|
|
@@ -5820,6 +6831,7 @@ animated: boolean;
|
|
|
5820
6831
|
required: boolean;
|
|
5821
6832
|
readonly: boolean;
|
|
5822
6833
|
clearable: boolean;
|
|
6834
|
+
revealable: boolean;
|
|
5823
6835
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
5824
6836
|
beforeCreate?: (() => void) | (() => void)[];
|
|
5825
6837
|
created?: (() => void) | (() => void)[];
|
|
@@ -5851,13 +6863,14 @@ animated: boolean;
|
|
|
5851
6863
|
required: boolean;
|
|
5852
6864
|
readonly: boolean;
|
|
5853
6865
|
clearable: boolean;
|
|
6866
|
+
revealable: boolean;
|
|
5854
6867
|
}> & Omit<Readonly<InputProps> & Readonly<{
|
|
5855
6868
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
5856
6869
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
5857
6870
|
onChange?: ((value: string | number) => any) | undefined;
|
|
5858
6871
|
onClear?: (() => any) | undefined;
|
|
5859
6872
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
5860
|
-
}>, "focus" | "blur" | ("variant" | "size" | "shadow" | "disabled" | "loading" | "type" | "animated" | "required" | "readonly" | "clearable")> & ShallowUnwrapRef< {
|
|
6873
|
+
}>, "focus" | "blur" | ("variant" | "size" | "shadow" | "disabled" | "loading" | "type" | "animated" | "required" | "readonly" | "clearable" | "revealable")> & ShallowUnwrapRef< {
|
|
5861
6874
|
focus(options?: FocusOptions): void;
|
|
5862
6875
|
blur(): void;
|
|
5863
6876
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -6073,6 +7086,115 @@ showDivider: boolean;
|
|
|
6073
7086
|
containerRef: HTMLDivElement;
|
|
6074
7087
|
}, HTMLDivElement>;
|
|
6075
7088
|
|
|
7089
|
+
export declare const OImageEditor: DefineComponent<ImageEditorProps, {
|
|
7090
|
+
export: typeof exportFile;
|
|
7091
|
+
reset: typeof reset;
|
|
7092
|
+
rotate: typeof rotate;
|
|
7093
|
+
flip: typeof flip;
|
|
7094
|
+
/** True once the user has changed something. */
|
|
7095
|
+
dirty: Ref<boolean, boolean>;
|
|
7096
|
+
/** True once the picture is open. */
|
|
7097
|
+
ready: ComputedRef<boolean>;
|
|
7098
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7099
|
+
error: (error: unknown) => any;
|
|
7100
|
+
ready: () => any;
|
|
7101
|
+
}, string, PublicProps, Readonly<ImageEditorProps> & Readonly<{
|
|
7102
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
7103
|
+
onReady?: (() => any) | undefined;
|
|
7104
|
+
}>, {
|
|
7105
|
+
type: CompressImageType;
|
|
7106
|
+
shape: ImageEditorShape;
|
|
7107
|
+
src: File | Blob | string;
|
|
7108
|
+
aspectRatio: number;
|
|
7109
|
+
quality: number;
|
|
7110
|
+
maxSize: number;
|
|
7111
|
+
maxDimension: number;
|
|
7112
|
+
aspectRatios: ImageEditorRatio[];
|
|
7113
|
+
hideOutputSettings: boolean;
|
|
7114
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
7115
|
+
stage: HTMLDivElement;
|
|
7116
|
+
frame: HTMLDivElement;
|
|
7117
|
+
}, HTMLDivElement>;
|
|
7118
|
+
|
|
7119
|
+
export declare const OImageEditorDialog: DefineComponent<ImageEditorDialogProps, {
|
|
7120
|
+
edit: typeof edit;
|
|
7121
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7122
|
+
cancel: () => any;
|
|
7123
|
+
save: (file: File) => any;
|
|
7124
|
+
"update:open": (open: boolean) => any;
|
|
7125
|
+
}, string, PublicProps, Readonly<ImageEditorDialogProps> & Readonly<{
|
|
7126
|
+
onCancel?: (() => any) | undefined;
|
|
7127
|
+
onSave?: ((file: File) => any) | undefined;
|
|
7128
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
7129
|
+
}>, {
|
|
7130
|
+
title: string;
|
|
7131
|
+
type: CompressImageType;
|
|
7132
|
+
shape: ImageEditorShape;
|
|
7133
|
+
src: File | Blob | string;
|
|
7134
|
+
aspectRatio: number;
|
|
7135
|
+
quality: number;
|
|
7136
|
+
open: boolean;
|
|
7137
|
+
maxSize: number;
|
|
7138
|
+
maxDimension: number;
|
|
7139
|
+
aspectRatios: ImageEditorRatio[];
|
|
7140
|
+
hideOutputSettings: boolean;
|
|
7141
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
7142
|
+
editor: CreateComponentPublicInstanceWithMixins<Readonly<ImageEditorProps> & Readonly<{
|
|
7143
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
7144
|
+
onReady?: (() => any) | undefined;
|
|
7145
|
+
}>, {
|
|
7146
|
+
export: () => Promise<File>;
|
|
7147
|
+
reset: () => void;
|
|
7148
|
+
rotate: (clockwise?: boolean) => void;
|
|
7149
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
7150
|
+
dirty: Ref<boolean, boolean>;
|
|
7151
|
+
ready: ComputedRef<boolean>;
|
|
7152
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7153
|
+
error: (error: unknown) => any;
|
|
7154
|
+
ready: () => any;
|
|
7155
|
+
}, PublicProps, {
|
|
7156
|
+
type: CompressImageType;
|
|
7157
|
+
shape: ImageEditorShape;
|
|
7158
|
+
src: File | Blob | string;
|
|
7159
|
+
aspectRatio: number;
|
|
7160
|
+
quality: number;
|
|
7161
|
+
maxSize: number;
|
|
7162
|
+
maxDimension: number;
|
|
7163
|
+
aspectRatios: ImageEditorRatio[];
|
|
7164
|
+
hideOutputSettings: boolean;
|
|
7165
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7166
|
+
stage: HTMLDivElement;
|
|
7167
|
+
frame: HTMLDivElement;
|
|
7168
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
7169
|
+
P: {};
|
|
7170
|
+
B: {};
|
|
7171
|
+
D: {};
|
|
7172
|
+
C: {};
|
|
7173
|
+
M: {};
|
|
7174
|
+
Defaults: {};
|
|
7175
|
+
}, Readonly<ImageEditorProps> & Readonly<{
|
|
7176
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
7177
|
+
onReady?: (() => any) | undefined;
|
|
7178
|
+
}>, {
|
|
7179
|
+
export: () => Promise<File>;
|
|
7180
|
+
reset: () => void;
|
|
7181
|
+
rotate: (clockwise?: boolean) => void;
|
|
7182
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
7183
|
+
dirty: Ref<boolean, boolean>;
|
|
7184
|
+
ready: ComputedRef<boolean>;
|
|
7185
|
+
}, {}, {}, {}, {
|
|
7186
|
+
type: CompressImageType;
|
|
7187
|
+
shape: ImageEditorShape;
|
|
7188
|
+
src: File | Blob | string;
|
|
7189
|
+
aspectRatio: number;
|
|
7190
|
+
quality: number;
|
|
7191
|
+
maxSize: number;
|
|
7192
|
+
maxDimension: number;
|
|
7193
|
+
aspectRatios: ImageEditorRatio[];
|
|
7194
|
+
hideOutputSettings: boolean;
|
|
7195
|
+
}> | null;
|
|
7196
|
+
}, any>;
|
|
7197
|
+
|
|
6076
7198
|
export declare const OInfiniteScroll: __VLS_WithTemplateSlots_79<typeof __VLS_component_79, __VLS_TemplateResult_79["slots"]>;
|
|
6077
7199
|
|
|
6078
7200
|
export declare const OInput: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
@@ -6113,6 +7235,8 @@ containerRef: HTMLDivElement;
|
|
|
6113
7235
|
|
|
6114
7236
|
export declare const OKbd: __VLS_WithTemplateSlots_56<typeof __VLS_component_56, __VLS_TemplateResult_56["slots"]>;
|
|
6115
7237
|
|
|
7238
|
+
export declare const OLightbox: __VLS_WithTemplateSlots_85<typeof __VLS_component_85, __VLS_TemplateResult_85["slots"]>;
|
|
7239
|
+
|
|
6116
7240
|
export declare const OMagneticButton: __VLS_WithTemplateSlots_65<typeof __VLS_component_65, __VLS_TemplateResult_65["slots"]>;
|
|
6117
7241
|
|
|
6118
7242
|
export declare const OMarquee: __VLS_WithTemplateSlots_71<typeof __VLS_component_71, __VLS_TemplateResult_71["slots"]>;
|
|
@@ -6121,9 +7245,12 @@ export declare const OMeter: DefineComponent<MeterProps, {}, {}, {}, {}, Compone
|
|
|
6121
7245
|
size: MeterSize;
|
|
6122
7246
|
disabled: boolean;
|
|
6123
7247
|
color: MeterColor;
|
|
7248
|
+
gap: number;
|
|
6124
7249
|
minValue: number;
|
|
6125
7250
|
maxValue: number;
|
|
6126
7251
|
showValueLabel: boolean;
|
|
7252
|
+
showLegend: boolean;
|
|
7253
|
+
joined: boolean;
|
|
6127
7254
|
autoColor: boolean;
|
|
6128
7255
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6129
7256
|
|
|
@@ -6135,6 +7262,8 @@ declare function open_2(): void;
|
|
|
6135
7262
|
|
|
6136
7263
|
declare function open_3(): void;
|
|
6137
7264
|
|
|
7265
|
+
declare function open_4(at?: number): void;
|
|
7266
|
+
|
|
6138
7267
|
export declare const OPopover: __VLS_WithTemplateSlots_34<typeof __VLS_component_34, __VLS_TemplateResult_34["slots"]>;
|
|
6139
7268
|
|
|
6140
7269
|
export declare const OProgressBar: DefineComponent<ProgressBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
@@ -6210,6 +7339,8 @@ export declare const OSeparator: __VLS_WithTemplateSlots_35<typeof __VLS_compone
|
|
|
6210
7339
|
|
|
6211
7340
|
export declare const OSkeleton: __VLS_WithTemplateSlots_36<typeof __VLS_component_36, __VLS_TemplateResult_36["slots"]>;
|
|
6212
7341
|
|
|
7342
|
+
export declare const OSlideButton: __VLS_WithTemplateSlots_80<typeof __VLS_component_80, __VLS_TemplateResult_80["slots"]>;
|
|
7343
|
+
|
|
6213
7344
|
export declare const OSlider: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
6214
7345
|
change: (value: SliderValue) => any;
|
|
6215
7346
|
"update:modelValue": (value: SliderValue) => any;
|
|
@@ -6240,6 +7371,8 @@ export declare const OStatus: __VLS_WithTemplateSlots_5<typeof __VLS_component_5
|
|
|
6240
7371
|
|
|
6241
7372
|
export declare const OStepper: __VLS_WithTemplateSlots_74<typeof __VLS_component_74, __VLS_TemplateResult_74["slots"]>;
|
|
6242
7373
|
|
|
7374
|
+
export declare const OSunburst: __VLS_WithTemplateSlots_84<typeof __VLS_component_84, __VLS_TemplateResult_84["slots"]>;
|
|
7375
|
+
|
|
6243
7376
|
export declare const OSwitch: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
|
|
6244
7377
|
|
|
6245
7378
|
export declare const OTable: __VLS_WithTemplateSlots_59<typeof __VLS_component_59, __VLS_TemplateResult_59["slots"]>;
|
|
@@ -6334,6 +7467,8 @@ maxVisible: number;
|
|
|
6334
7467
|
|
|
6335
7468
|
export declare const OTooltip: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
6336
7469
|
|
|
7470
|
+
export declare const OTour: __VLS_WithTemplateSlots_81<typeof __VLS_component_81, __VLS_TemplateResult_81["slots"]>;
|
|
7471
|
+
|
|
6337
7472
|
export declare interface OtpGroup {
|
|
6338
7473
|
slots: number;
|
|
6339
7474
|
}
|
|
@@ -6428,6 +7563,15 @@ export declare interface OusiMessages {
|
|
|
6428
7563
|
options: string;
|
|
6429
7564
|
clear: string;
|
|
6430
7565
|
clearInput: string;
|
|
7566
|
+
showPassword: string;
|
|
7567
|
+
slideToConfirm: string;
|
|
7568
|
+
confirmed: string;
|
|
7569
|
+
tourNext: string;
|
|
7570
|
+
tourBack: string;
|
|
7571
|
+
tourDone: string;
|
|
7572
|
+
tourClose: string;
|
|
7573
|
+
/** `{step}` and `{total}` are replaced. */
|
|
7574
|
+
tourProgress: string;
|
|
6431
7575
|
cancel: string;
|
|
6432
7576
|
ok: string;
|
|
6433
7577
|
loading: string;
|
|
@@ -6501,14 +7645,76 @@ export declare interface OusiMessages {
|
|
|
6501
7645
|
images: string;
|
|
6502
7646
|
videos: string;
|
|
6503
7647
|
audio: string;
|
|
7648
|
+
browseFilesMultiple: string;
|
|
6504
7649
|
removeFile: string;
|
|
7650
|
+
cancelUpload: string;
|
|
6505
7651
|
retryUpload: string;
|
|
6506
7652
|
uploadFailed: string;
|
|
7653
|
+
uploading: string;
|
|
7654
|
+
fileUploaded: string;
|
|
6507
7655
|
fileTypeRejected: string;
|
|
6508
7656
|
fileTooLarge: string;
|
|
6509
7657
|
tooManyFiles: string;
|
|
7658
|
+
maxFilesHint: string;
|
|
7659
|
+
duplicateFile: string;
|
|
7660
|
+
processing: string;
|
|
7661
|
+
processingFailed: string;
|
|
7662
|
+
couldNotReduce: string;
|
|
7663
|
+
wasSize: string;
|
|
7664
|
+
awaitingApproval: string;
|
|
7665
|
+
useNewVersion: string;
|
|
7666
|
+
keepOriginal: string;
|
|
7667
|
+
originalTooLarge: string;
|
|
7668
|
+
compare: string;
|
|
7669
|
+
compareTitle: string;
|
|
7670
|
+
originalVersion: string;
|
|
7671
|
+
newVersion: string;
|
|
7672
|
+
actualSize: string;
|
|
7673
|
+
discardFile: string;
|
|
7674
|
+
pendingFiles: string;
|
|
7675
|
+
/** Image editor. `{size}` is replaced. */
|
|
7676
|
+
editImage: string;
|
|
7677
|
+
cropArea: string;
|
|
7678
|
+
cropHint: string;
|
|
7679
|
+
aspectRatio: string;
|
|
7680
|
+
freeRatio: string;
|
|
7681
|
+
rotateLeft: string;
|
|
7682
|
+
rotateRight: string;
|
|
7683
|
+
flipHorizontal: string;
|
|
7684
|
+
flipVertical: string;
|
|
7685
|
+
zoom: string;
|
|
7686
|
+
resetEdit: string;
|
|
7687
|
+
maxSide: string;
|
|
7688
|
+
fullSize: string;
|
|
7689
|
+
outputFormat: string;
|
|
7690
|
+
automaticFormat: string;
|
|
7691
|
+
quality: string;
|
|
7692
|
+
calculating: string;
|
|
7693
|
+
stillOverLimit: string;
|
|
7694
|
+
cannotOpenImage: string;
|
|
7695
|
+
save: string;
|
|
7696
|
+
startFromOriginal: string;
|
|
7697
|
+
editFile: string;
|
|
7698
|
+
editFailed: string;
|
|
6510
7699
|
noResults: string;
|
|
6511
7700
|
typeToSearch: string;
|
|
7701
|
+
/** `{value}` is replaced in these, `{values}` in `selectedValues`. */
|
|
7702
|
+
removeValue: string;
|
|
7703
|
+
addValue: string;
|
|
7704
|
+
valueAdded: string;
|
|
7705
|
+
valueRemoved: string;
|
|
7706
|
+
selectedValues: string;
|
|
7707
|
+
lightbox: string;
|
|
7708
|
+
lightboxClose: string;
|
|
7709
|
+
zoomIn: string;
|
|
7710
|
+
zoomOut: string;
|
|
7711
|
+
download: string;
|
|
7712
|
+
/** `{index}` and `{total}` are replaced. */
|
|
7713
|
+
imagePosition: string;
|
|
7714
|
+
imageFailed: string;
|
|
7715
|
+
chooseImage: string;
|
|
7716
|
+
/** `{index}` is replaced. */
|
|
7717
|
+
showImage: string;
|
|
6512
7718
|
moreTabs: string;
|
|
6513
7719
|
}
|
|
6514
7720
|
|
|
@@ -6546,6 +7752,8 @@ export declare interface OusiUIPluginOptions extends OusiConfigInit {
|
|
|
6546
7752
|
*/
|
|
6547
7753
|
export declare type OverlayBackdrop = 'opaque' | 'subtle' | 'blur' | 'glass' | 'transparent';
|
|
6548
7754
|
|
|
7755
|
+
export declare const OWaterfallChart: __VLS_WithTemplateSlots_82<typeof __VLS_component_82, __VLS_TemplateResult_82["slots"]>;
|
|
7756
|
+
|
|
6549
7757
|
export declare const paginationContentTheme = "flex items-center gap-1 self-start sm:self-center";
|
|
6550
7758
|
|
|
6551
7759
|
export declare const paginationEllipsisTheme: (props?: ({
|
|
@@ -6644,6 +7852,8 @@ export declare const popoverTriggerTheme = "inline-flex";
|
|
|
6644
7852
|
|
|
6645
7853
|
declare function prev(): void;
|
|
6646
7854
|
|
|
7855
|
+
declare function prev_2(): void;
|
|
7856
|
+
|
|
6647
7857
|
export declare type ProgressBarColor = 'default' | 'accent' | 'success' | 'warning' | 'danger';
|
|
6648
7858
|
|
|
6649
7859
|
export declare const progressBarColors: Record<string, string>;
|
|
@@ -6899,6 +8109,10 @@ export declare const ratingTheme: (props?: ({
|
|
|
6899
8109
|
/** Clear cached children for a node and re-fetch. */
|
|
6900
8110
|
declare function reload(key: string): Promise<void>;
|
|
6901
8111
|
|
|
8112
|
+
declare function reset(): void;
|
|
8113
|
+
|
|
8114
|
+
declare function reset_2(): void;
|
|
8115
|
+
|
|
6902
8116
|
export declare type ResizableDirection = 'horizontal' | 'vertical';
|
|
6903
8117
|
|
|
6904
8118
|
export declare interface ResizableEmits {
|
|
@@ -6919,6 +8133,8 @@ export declare interface ResizableProps {
|
|
|
6919
8133
|
|
|
6920
8134
|
export declare const resizableTheme = "flex w-full h-full overflow-hidden";
|
|
6921
8135
|
|
|
8136
|
+
declare function rotate(clockwise?: boolean): void;
|
|
8137
|
+
|
|
6922
8138
|
/** Focus keys look like `node:2` or `link:5`. */
|
|
6923
8139
|
export declare type SankeyFocus = string;
|
|
6924
8140
|
|
|
@@ -7105,8 +8321,13 @@ export declare interface SegmentedGaugeProps {
|
|
|
7105
8321
|
strokeWidth?: number;
|
|
7106
8322
|
/** Total angle of the gauge in degrees. 360 draws a full ring. */
|
|
7107
8323
|
sweep?: number;
|
|
7108
|
-
/**
|
|
8324
|
+
/**
|
|
8325
|
+
* Space between segments, in degrees: a curve of even width around the round end of the next one.
|
|
8326
|
+
* 0 joins them.
|
|
8327
|
+
*/
|
|
7109
8328
|
gap?: number;
|
|
8329
|
+
/** Segments touch, with no space between them. */
|
|
8330
|
+
joined?: boolean;
|
|
7110
8331
|
interactive?: boolean;
|
|
7111
8332
|
/** Highlighted segment index. Supports v-model:focused. */
|
|
7112
8333
|
focused?: number | null;
|
|
@@ -7248,6 +8469,82 @@ export declare interface SkeletonProps {
|
|
|
7248
8469
|
|
|
7249
8470
|
declare type SkeletonShadow = 'none' | 'xs' | 'sm';
|
|
7250
8471
|
|
|
8472
|
+
export declare interface SlideButtonEmits {
|
|
8473
|
+
'update:modelValue': [value: boolean];
|
|
8474
|
+
'confirm': [];
|
|
8475
|
+
}
|
|
8476
|
+
|
|
8477
|
+
export declare const slideButtonFillTheme: (props?: ({
|
|
8478
|
+
variant?: "success" | "primary" | "danger" | null | undefined;
|
|
8479
|
+
} & ClassProp) | undefined) => string;
|
|
8480
|
+
|
|
8481
|
+
export declare interface SlideButtonProps {
|
|
8482
|
+
/** Whether it has been slid to the end (v-model). Set it to false to send the thumb back, as
|
|
8483
|
+
* when the action fails. Optional: it keeps its own state. */
|
|
8484
|
+
modelValue?: boolean;
|
|
8485
|
+
/** What sliding will do. Also its accessible name. Defaults to "Slide to confirm". */
|
|
8486
|
+
label?: string;
|
|
8487
|
+
/** Shown once confirmed. Defaults to "Confirmed". */
|
|
8488
|
+
confirmedLabel?: string;
|
|
8489
|
+
/** Shown while `loading`. Defaults to `label`. */
|
|
8490
|
+
loadingLabel?: string;
|
|
8491
|
+
/** Colour of the thumb and of the confirmed track. */
|
|
8492
|
+
variant?: SlideButtonVariant;
|
|
8493
|
+
size?: SlideButtonSize;
|
|
8494
|
+
/** How far along it must be let go to confirm, from 0.5 to 1. */
|
|
8495
|
+
threshold?: number;
|
|
8496
|
+
/** A spinner in the thumb while the confirmed action runs. */
|
|
8497
|
+
loading?: boolean;
|
|
8498
|
+
disabled?: boolean;
|
|
8499
|
+
fullWidth?: boolean;
|
|
8500
|
+
shadow?: SlideButtonShadow;
|
|
8501
|
+
/** Vibration on confirming. Off unless set. */
|
|
8502
|
+
haptic?: HapticInput;
|
|
8503
|
+
/** Additional CSS classes. Its shape follows `--slide-radius`, its height `--slide-h`. */
|
|
8504
|
+
class?: string;
|
|
8505
|
+
}
|
|
8506
|
+
|
|
8507
|
+
export declare type SlideButtonShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
8508
|
+
|
|
8509
|
+
export declare type SlideButtonSize = 'sm' | 'md' | 'lg';
|
|
8510
|
+
|
|
8511
|
+
export declare interface SlideButtonSlotContext {
|
|
8512
|
+
/** From 0, at the start, to 1, at the end. */
|
|
8513
|
+
progress: number;
|
|
8514
|
+
confirmed: boolean;
|
|
8515
|
+
loading: boolean;
|
|
8516
|
+
}
|
|
8517
|
+
|
|
8518
|
+
/** One slot for the icon and one for the text of each state: replacing one leaves the rest. */
|
|
8519
|
+
export declare interface SlideButtonSlots {
|
|
8520
|
+
/** Icon in the thumb before confirming. Replaces the arrow. */
|
|
8521
|
+
icon?: (props: SlideButtonSlotContext) => unknown;
|
|
8522
|
+
/** Icon while `loading`. Replaces the spinner. */
|
|
8523
|
+
'loading-icon'?: (props: SlideButtonSlotContext) => unknown;
|
|
8524
|
+
/** Icon once confirmed. Replaces the check. */
|
|
8525
|
+
'confirmed-icon'?: (props: SlideButtonSlotContext) => unknown;
|
|
8526
|
+
/** Text on the track before confirming. Replaces `label`. */
|
|
8527
|
+
label?: (props: SlideButtonSlotContext) => unknown;
|
|
8528
|
+
/** Text while `loading`. Without it: `loadingLabel`, or else what shows before confirming. */
|
|
8529
|
+
'loading-label'?: (props: SlideButtonSlotContext) => unknown;
|
|
8530
|
+
/** Text once confirmed. Without it: `confirmedLabel`. */
|
|
8531
|
+
'confirmed-label'?: (props: SlideButtonSlotContext) => unknown;
|
|
8532
|
+
}
|
|
8533
|
+
|
|
8534
|
+
export declare const slideButtonTheme: (props?: ({
|
|
8535
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8536
|
+
fullWidth?: boolean | null | undefined;
|
|
8537
|
+
disabled?: boolean | null | undefined;
|
|
8538
|
+
shadow?: "none" | "xs" | "sm" | "md" | null | undefined;
|
|
8539
|
+
} & ClassProp) | undefined) => string;
|
|
8540
|
+
|
|
8541
|
+
export declare const slideButtonThumbTheme: (props?: ({
|
|
8542
|
+
variant?: "success" | "primary" | "danger" | null | undefined;
|
|
8543
|
+
grab?: boolean | null | undefined;
|
|
8544
|
+
} & ClassProp) | undefined) => string;
|
|
8545
|
+
|
|
8546
|
+
export declare type SlideButtonVariant = 'primary' | 'success' | 'danger';
|
|
8547
|
+
|
|
7251
8548
|
export declare type SliderColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
|
|
7252
8549
|
|
|
7253
8550
|
export declare interface SliderEmits {
|
|
@@ -7430,6 +8727,65 @@ export declare const stepperTheme = "flex gap-2";
|
|
|
7430
8727
|
|
|
7431
8728
|
declare type StepState = 'completed' | 'active' | 'upcoming';
|
|
7432
8729
|
|
|
8730
|
+
/** A sector with its derived values. Passed to slots and events. */
|
|
8731
|
+
export declare interface SunburstItem {
|
|
8732
|
+
/** `2` for the third top-level node, `2.0` for its first child. */
|
|
8733
|
+
key: string;
|
|
8734
|
+
name: string;
|
|
8735
|
+
value: number;
|
|
8736
|
+
/** Share of what is in view (0-100, one decimal). */
|
|
8737
|
+
percent: number;
|
|
8738
|
+
/** 1 for the ring next to the centre. */
|
|
8739
|
+
depth: number;
|
|
8740
|
+
/** Name of the parent, if it has one. */
|
|
8741
|
+
parent: string | null;
|
|
8742
|
+
color: string;
|
|
8743
|
+
formatted: string;
|
|
8744
|
+
hasChildren: boolean;
|
|
8745
|
+
}
|
|
8746
|
+
|
|
8747
|
+
/** The same shape as a treemap's, so the same data draws either. */
|
|
8748
|
+
export declare type SunburstNode = TreemapNode;
|
|
8749
|
+
|
|
8750
|
+
export declare interface SunburstProps {
|
|
8751
|
+
data: SunburstNode[];
|
|
8752
|
+
/** Diameter in px. It shrinks to fit. */
|
|
8753
|
+
size?: number;
|
|
8754
|
+
/** How many rings to draw at once. */
|
|
8755
|
+
levels?: number;
|
|
8756
|
+
/** Size of the hole as a share of the radius, from 0.2 to 0.8. */
|
|
8757
|
+
innerRadius?: number;
|
|
8758
|
+
/** Space between sectors and between rings, in viewBox units (0-100 scale). */
|
|
8759
|
+
gap?: number;
|
|
8760
|
+
/** Roundness of the sectors' corners, in viewBox units. 0 makes them sharp. */
|
|
8761
|
+
cornerRadius?: number;
|
|
8762
|
+
/** Write names on the sectors with room for them. */
|
|
8763
|
+
showLabels?: boolean;
|
|
8764
|
+
/** Clicking a sector with children brings it to the centre; the centre goes back. */
|
|
8765
|
+
zoomable?: boolean;
|
|
8766
|
+
/** Key of the node at the centre, or null for the whole (v-model:zoom). Optional. */
|
|
8767
|
+
zoom?: string | null;
|
|
8768
|
+
/** Name of the whole, shown in the centre. */
|
|
8769
|
+
rootLabel?: string;
|
|
8770
|
+
formatValue?: (value: number) => string;
|
|
8771
|
+
interactive?: boolean;
|
|
8772
|
+
/** Highlighted sector. Optional: the chart tracks hover by itself; bind v-model:focused to read or drive it. */
|
|
8773
|
+
focused?: string | null;
|
|
8774
|
+
animated?: boolean;
|
|
8775
|
+
label?: string;
|
|
8776
|
+
class?: string;
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8779
|
+
export declare interface SunburstSlots {
|
|
8780
|
+
/** The centre. */
|
|
8781
|
+
default?: (props: {
|
|
8782
|
+
total: number;
|
|
8783
|
+
formattedTotal: string;
|
|
8784
|
+
focusedItem: SunburstItem | null;
|
|
8785
|
+
current: SunburstItem | null;
|
|
8786
|
+
}) => unknown;
|
|
8787
|
+
}
|
|
8788
|
+
|
|
7433
8789
|
export declare const switchContentTheme = "flex flex-col gap-0";
|
|
7434
8790
|
|
|
7435
8791
|
export declare const switchDescriptionTheme = "text-sm text-ousi-muted select-none";
|
|
@@ -8236,6 +9592,75 @@ export declare const tooltipTheme: (props?: ({
|
|
|
8236
9592
|
|
|
8237
9593
|
export declare const tooltipTriggerTheme: string;
|
|
8238
9594
|
|
|
9595
|
+
export declare const tourCardTheme: (props?: ({
|
|
9596
|
+
shadow?: "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
9597
|
+
} & ClassProp) | undefined) => string;
|
|
9598
|
+
|
|
9599
|
+
export declare interface TourEmits {
|
|
9600
|
+
'update:modelValue': [open: boolean];
|
|
9601
|
+
'update:step': [step: number];
|
|
9602
|
+
/** The last step was completed. */
|
|
9603
|
+
'finish': [];
|
|
9604
|
+
/** Left before the end, at this step. */
|
|
9605
|
+
'skip': [step: number];
|
|
9606
|
+
}
|
|
9607
|
+
|
|
9608
|
+
export declare type TourPlacement = Placement;
|
|
9609
|
+
|
|
9610
|
+
export declare interface TourProps {
|
|
9611
|
+
steps: TourStep[];
|
|
9612
|
+
/** Whether the tour is running (v-model). */
|
|
9613
|
+
modelValue?: boolean;
|
|
9614
|
+
/** The current step, from 0 (v-model:step). Optional: uncontrolled, every run starts at the first. */
|
|
9615
|
+
step?: number;
|
|
9616
|
+
/** Space between the target and the edge of the highlight, in px. */
|
|
9617
|
+
padding?: number;
|
|
9618
|
+
/** Show where the tour is: a dot per step and "2 of 5". */
|
|
9619
|
+
showProgress?: boolean;
|
|
9620
|
+
/** Show the button that leaves the tour. */
|
|
9621
|
+
showCloseButton?: boolean;
|
|
9622
|
+
/** Leave the tour with Escape. */
|
|
9623
|
+
closeOnEscape?: boolean;
|
|
9624
|
+
shadow?: TourShadow;
|
|
9625
|
+
/** Additional CSS classes on the card. The highlight's corners follow `--tour-radius`. */
|
|
9626
|
+
class?: string;
|
|
9627
|
+
}
|
|
9628
|
+
|
|
9629
|
+
export declare type TourShadow = 'md' | 'lg' | 'xl' | '2xl';
|
|
9630
|
+
|
|
9631
|
+
export declare interface TourSlotContext {
|
|
9632
|
+
step: TourStep;
|
|
9633
|
+
index: number;
|
|
9634
|
+
total: number;
|
|
9635
|
+
next: () => void;
|
|
9636
|
+
prev: () => void;
|
|
9637
|
+
close: () => void;
|
|
9638
|
+
}
|
|
9639
|
+
|
|
9640
|
+
export declare interface TourSlots {
|
|
9641
|
+
/** More content under the description. */
|
|
9642
|
+
default?: (props: TourSlotContext) => unknown;
|
|
9643
|
+
/** Replaces the progress and the buttons. */
|
|
9644
|
+
footer?: (props: TourSlotContext) => unknown;
|
|
9645
|
+
}
|
|
9646
|
+
|
|
9647
|
+
/** The cut-out: its own shadow, as large as the screen, is the scrim around it. */
|
|
9648
|
+
export declare const tourSpotlightTheme = "pointer-events-none fixed [--tour-radius:var(--ousi-radius-xl)] rounded-(--tour-radius) shadow-[0_0_0_200vmax_var(--ousi-backdrop)] outline-solid outline-[length:var(--ousi-border-width)] outline-ousi-border";
|
|
9649
|
+
|
|
9650
|
+
export declare interface TourStep {
|
|
9651
|
+
/** Unique key. Falls back to the position. */
|
|
9652
|
+
id?: string;
|
|
9653
|
+
/** The part of the page this step is about: a CSS selector, an element or a function returning
|
|
9654
|
+
* one. Without it, or if it cannot be found, the step shows in the middle of the screen. */
|
|
9655
|
+
target?: string | Element | (() => Element | null | undefined);
|
|
9656
|
+
title: string;
|
|
9657
|
+
description?: string;
|
|
9658
|
+
/** Preferred side of the target. It flips when there is no room. */
|
|
9659
|
+
placement?: TourPlacement;
|
|
9660
|
+
/** Lets the highlighted part be used during this step, with pointer and keyboard. */
|
|
9661
|
+
interactive?: boolean;
|
|
9662
|
+
}
|
|
9663
|
+
|
|
8239
9664
|
/** A tile with its derived values. Passed to slots and events. */
|
|
8240
9665
|
export declare interface TreemapItem {
|
|
8241
9666
|
/** `2` for a top-level node, `2.1` for its second child. */
|
|
@@ -8397,6 +9822,44 @@ export declare interface TypewriterProps {
|
|
|
8397
9822
|
|
|
8398
9823
|
export declare const typewriterTheme = "inline";
|
|
8399
9824
|
|
|
9825
|
+
/**
|
|
9826
|
+
* The upload side of OFileUpload: queue, progress, errors, retry and cancel.
|
|
9827
|
+
*
|
|
9828
|
+
* const { files, statusOf, retry } = useFileUpload((file, { onProgress, signal }) => send(file))
|
|
9829
|
+
* <OFileUpload v-model="files" :file-status="statusOf" multiple @retry="retry" />
|
|
9830
|
+
*/
|
|
9831
|
+
export declare function useFileUpload<T = unknown>(upload: FileUploader<T>, options?: UseFileUploadOptions<T>): UseFileUploadReturn<T>;
|
|
9832
|
+
|
|
9833
|
+
export declare interface UseFileUploadOptions<T> {
|
|
9834
|
+
/** Files sent at the same time; the rest wait their turn. Defaults to 3. */
|
|
9835
|
+
concurrency?: number;
|
|
9836
|
+
onSuccess?: (file: File, result: T) => void;
|
|
9837
|
+
/** An upload failed. A cancelled one is not a failure. */
|
|
9838
|
+
onError?: (file: File, error: unknown) => void;
|
|
9839
|
+
/**
|
|
9840
|
+
* The message of a failed row. Without it, or when it returns nothing, the row shows the translated
|
|
9841
|
+
* "Upload failed", so that technical errors never reach the user by accident.
|
|
9842
|
+
*/
|
|
9843
|
+
errorMessage?: (error: unknown, file: File) => string | undefined;
|
|
9844
|
+
}
|
|
9845
|
+
|
|
9846
|
+
export declare interface UseFileUploadReturn<T> {
|
|
9847
|
+
/** Bind with v-model: a file that enters is uploaded, one that leaves is aborted. */
|
|
9848
|
+
files: Ref<File[]>;
|
|
9849
|
+
/** Bind to `file-status`. */
|
|
9850
|
+
statusOf: (file: File) => FileUploadStatus | undefined;
|
|
9851
|
+
/** What the upload function resolved with. */
|
|
9852
|
+
resultOf: (file: File) => T | undefined;
|
|
9853
|
+
/** True while any file is waiting or being sent: disable your submit button with it. */
|
|
9854
|
+
isUploading: ComputedRef<boolean>;
|
|
9855
|
+
/** Bind to `@retry`. */
|
|
9856
|
+
retry: (file: File) => void;
|
|
9857
|
+
/** Aborts a file and takes it off the list. */
|
|
9858
|
+
cancel: (file: File) => void;
|
|
9859
|
+
/** Aborts everything and empties the list. */
|
|
9860
|
+
clear: () => void;
|
|
9861
|
+
}
|
|
9862
|
+
|
|
8400
9863
|
export declare function useFormContext(): FormContext | undefined;
|
|
8401
9864
|
|
|
8402
9865
|
/**
|
|
@@ -8476,6 +9939,75 @@ declare const vTooltip: ObjectDirective<HTMLElement, TooltipDirectiveBinding | u
|
|
|
8476
9939
|
export { vTooltip as tooltipDirective }
|
|
8477
9940
|
export { vTooltip }
|
|
8478
9941
|
|
|
9942
|
+
/** A bar with its derived values. Passed to slots and events. */
|
|
9943
|
+
export declare interface WaterfallBar {
|
|
9944
|
+
key: string;
|
|
9945
|
+
index: number;
|
|
9946
|
+
label: string;
|
|
9947
|
+
kind: WaterfallKind;
|
|
9948
|
+
/** The change, or the total for a total. */
|
|
9949
|
+
value: number;
|
|
9950
|
+
/** The running total before and after. A total starts at 0. */
|
|
9951
|
+
start: number;
|
|
9952
|
+
end: number;
|
|
9953
|
+
color: string;
|
|
9954
|
+
/** The change with its sign, or the total. */
|
|
9955
|
+
formatted: string;
|
|
9956
|
+
/** The running total after this bar. */
|
|
9957
|
+
formattedEnd: string;
|
|
9958
|
+
}
|
|
9959
|
+
|
|
9960
|
+
export declare interface WaterfallChartProps {
|
|
9961
|
+
data: WaterfallDatum[];
|
|
9962
|
+
/** Chart height in px. Width is fluid. */
|
|
9963
|
+
height?: number;
|
|
9964
|
+
/** Corner radius of the bars, in px. */
|
|
9965
|
+
barRadius?: number;
|
|
9966
|
+
/** Space between bars as a share of each slot, from 0 to 0.9. */
|
|
9967
|
+
barGap?: number;
|
|
9968
|
+
increaseColor?: string;
|
|
9969
|
+
decreaseColor?: string;
|
|
9970
|
+
totalColor?: string;
|
|
9971
|
+
/** Dashed lines carrying the level from each bar to the next. */
|
|
9972
|
+
connectors?: boolean;
|
|
9973
|
+
/** Write each value above its bar, where there is room. */
|
|
9974
|
+
showValues?: boolean;
|
|
9975
|
+
grid?: boolean;
|
|
9976
|
+
showXAxis?: boolean;
|
|
9977
|
+
showYAxis?: boolean;
|
|
9978
|
+
formatValue?: (value: number) => string;
|
|
9979
|
+
/** Words for the tooltip and screen readers: the running total. */
|
|
9980
|
+
totalLabel?: string;
|
|
9981
|
+
interactive?: boolean;
|
|
9982
|
+
tooltip?: boolean;
|
|
9983
|
+
/** Highlighted bar. Optional: the chart tracks hover by itself; bind v-model:focused to read or drive it. */
|
|
9984
|
+
focused?: number | null;
|
|
9985
|
+
animated?: boolean;
|
|
9986
|
+
label?: string;
|
|
9987
|
+
class?: string;
|
|
9988
|
+
}
|
|
9989
|
+
|
|
9990
|
+
export declare interface WaterfallChartSlots {
|
|
9991
|
+
tooltip?: (props: {
|
|
9992
|
+
bar: WaterfallBar;
|
|
9993
|
+
}) => unknown;
|
|
9994
|
+
}
|
|
9995
|
+
|
|
9996
|
+
export declare interface WaterfallDatum {
|
|
9997
|
+
/** Unique key. Falls back to the label. */
|
|
9998
|
+
id?: string;
|
|
9999
|
+
label: string;
|
|
10000
|
+
/** The change to the running total, positive or negative. */
|
|
10001
|
+
value?: number;
|
|
10002
|
+
/** A bar from zero showing where things stand. With a `value`, it sets the running total to it,
|
|
10003
|
+
* as an opening balance does; without one, it shows what the changes have added up to. */
|
|
10004
|
+
total?: boolean;
|
|
10005
|
+
/** Token name or any CSS color, instead of the colour of its kind. */
|
|
10006
|
+
color?: string;
|
|
10007
|
+
}
|
|
10008
|
+
|
|
10009
|
+
export declare type WaterfallKind = 'increase' | 'decrease' | 'total';
|
|
10010
|
+
|
|
8479
10011
|
export declare type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
8480
10012
|
|
|
8481
10013
|
export { }
|