@ousi-ui/vue 0.7.4 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +1579 -43
- package/dist/index.mjs +15177 -9959
- 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,12 @@ 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
|
+
* When unset, the app-wide `swipeToClose` decides, which is true unless the app turns it off. */
|
|
5350
|
+
swipeToClose?: boolean;
|
|
4691
5351
|
/** Show the built-in close button. */
|
|
4692
5352
|
showCloseButton?: boolean;
|
|
4693
5353
|
/** Title text in the header. */
|
|
@@ -4760,6 +5420,13 @@ export declare const dropdownSeparatorTheme = "my-1 ml-[3%] h-px w-[94%] bg-ousi
|
|
|
4760
5420
|
|
|
4761
5421
|
declare type DropdownShadow = 'sm' | 'md' | 'lg' | 'xl';
|
|
4762
5422
|
|
|
5423
|
+
/**
|
|
5424
|
+
* Opens the editor on a file and resolves with the result, or with null if the user cancels. What
|
|
5425
|
+
* cannot be edited (a PDF, a GIF, an animation) resolves at once, as it is: made to be passed to the
|
|
5426
|
+
* `transform` of OFileUpload.
|
|
5427
|
+
*/
|
|
5428
|
+
declare function edit(file: File, options?: ImageEditorEditOptions): Promise<File | null>;
|
|
5429
|
+
|
|
4763
5430
|
export declare const elasticSliderBarTheme: (props?: ({
|
|
4764
5431
|
color?: "success" | "warning" | "primary" | "secondary" | "danger" | null | undefined;
|
|
4765
5432
|
active?: boolean | null | undefined;
|
|
@@ -4814,56 +5481,105 @@ declare function exportCSV(options?: {
|
|
|
4814
5481
|
includeHidden?: boolean;
|
|
4815
5482
|
}): void;
|
|
4816
5483
|
|
|
5484
|
+
/** The picture as it stands, written within the output settings. */
|
|
5485
|
+
declare function exportFile(): Promise<File>;
|
|
5486
|
+
|
|
4817
5487
|
export declare const fileUploadAreaTheme: (props?: ({
|
|
4818
5488
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4819
|
-
|
|
5489
|
+
state?: "invalid" | "disabled" | "active" | "idle" | null | undefined;
|
|
4820
5490
|
shadow?: "none" | "xs" | "sm" | "md" | null | undefined;
|
|
4821
5491
|
animated?: boolean | null | undefined;
|
|
4822
5492
|
} & ClassProp) | undefined) => string;
|
|
4823
5493
|
|
|
5494
|
+
/** Settings of the built-in editor, as in OImageEditorDialog. `maxSize` defaults to the component's. */
|
|
5495
|
+
export declare type FileUploadEditorOptions = Pick<ImageEditorDialogProps, 'title' | 'aspectRatio' | 'aspectRatios' | 'shape' | 'maxSize' | 'maxDimension' | 'type' | 'quality' | 'hideOutputSettings'>;
|
|
5496
|
+
|
|
4824
5497
|
export declare interface FileUploadEmits {
|
|
4825
5498
|
'update:modelValue': [files: File[]];
|
|
4826
5499
|
'change': [files: File[]];
|
|
4827
|
-
/** A file was rejected. Without a listener the message shows under the
|
|
5500
|
+
/** A file was rejected. Without a listener the message shows under the control. */
|
|
4828
5501
|
'error': [message: string];
|
|
4829
|
-
/** A file
|
|
5502
|
+
/** A new file left the list, removed or replaced by an edit. If it was uploading, abort here. */
|
|
4830
5503
|
'remove': [file: File];
|
|
4831
|
-
/** The retry button of a file whose
|
|
5504
|
+
/** The retry button of a file whose upload failed. */
|
|
4832
5505
|
'retry': [file: File];
|
|
5506
|
+
/** The name of a file was clicked. Listening to it turns every name into a button. */
|
|
5507
|
+
'open': [file: File | FileUploadUploadedFile];
|
|
5508
|
+
/** How many files are being transformed or waiting for approval: hold your submit while over 0. */
|
|
5509
|
+
'pendingChange': [count: number];
|
|
5510
|
+
/** `transform` threw. The user sees that the file could not be processed; the cause is here. */
|
|
5511
|
+
'transformError': [error: unknown, file: File];
|
|
5512
|
+
/** A new file was edited and took the place of the previous one. `remove` fires for that one. */
|
|
5513
|
+
'edited': [file: File, previous: File];
|
|
5514
|
+
/**
|
|
5515
|
+
* An uploaded image was edited. Nothing changes in the list: upload `file`, replace the record and
|
|
5516
|
+
* update `uploadedFiles` when your server has it. Listening to it shows their Edit button.
|
|
5517
|
+
*/
|
|
5518
|
+
'editUploaded': [uploaded: FileUploadUploadedFile, file: File];
|
|
5519
|
+
'update:uploadedFiles': [files: FileUploadUploadedFile[]];
|
|
5520
|
+
/** An uploaded file was taken off the list: delete it on the server from here. */
|
|
5521
|
+
'removeUploaded': [file: FileUploadUploadedFile];
|
|
4833
5522
|
}
|
|
4834
5523
|
|
|
4835
|
-
|
|
5524
|
+
/** Sends one file. Resolve when the server has it; throw when it fails. */
|
|
5525
|
+
export declare type FileUploader<T> = (file: File, request: FileUploadRequest) => Promise<T>;
|
|
5526
|
+
|
|
5527
|
+
/** The family of a file, which picks the drawing of its icon. */
|
|
5528
|
+
export declare type FileUploadFileKind = 'doc' | 'pdf' | 'sheet' | 'slides' | 'image' | 'video' | 'audio' | 'archive' | 'code' | 'file';
|
|
5529
|
+
|
|
5530
|
+
/** A row of the list. Its actions wrap under the name only when the list is very narrow. */
|
|
5531
|
+
export declare const fileUploadFileTheme: (props?: ({
|
|
4836
5532
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4837
5533
|
} & ClassProp) | undefined) => string;
|
|
4838
5534
|
|
|
4839
|
-
export declare const fileUploadHintTheme = "
|
|
5535
|
+
export declare const fileUploadHintTheme = "block text-xs text-ousi-muted text-pretty";
|
|
4840
5536
|
|
|
5537
|
+
/** The box of the illustration of the drop area. */
|
|
4841
5538
|
export declare const fileUploadIconTheme: (props?: ({
|
|
4842
5539
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4843
5540
|
active?: boolean | null | undefined;
|
|
5541
|
+
disabled?: boolean | null | undefined;
|
|
4844
5542
|
} & ClassProp) | undefined) => string;
|
|
4845
5543
|
|
|
4846
5544
|
export declare const fileUploadInlineTheme: (props?: ({
|
|
4847
5545
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4848
|
-
|
|
5546
|
+
state?: "invalid" | "disabled" | "active" | "idle" | null | undefined;
|
|
4849
5547
|
shadow?: "none" | "xs" | "sm" | "md" | null | undefined;
|
|
4850
5548
|
animated?: boolean | null | undefined;
|
|
4851
5549
|
} & ClassProp) | undefined) => string;
|
|
4852
5550
|
|
|
5551
|
+
export declare type FileUploadPaste = 'self' | 'page' | 'none';
|
|
5552
|
+
|
|
5553
|
+
export declare type FileUploadPreview = 'contain' | 'cover' | 'none';
|
|
5554
|
+
|
|
4853
5555
|
export declare interface FileUploadProps {
|
|
4854
5556
|
/** Selected files (v-model). Optional: without it the component keeps its own list. */
|
|
4855
5557
|
modelValue?: File[];
|
|
4856
|
-
/**
|
|
5558
|
+
/** Files already on the server (v-model:uploaded-files), listed before the new ones. */
|
|
5559
|
+
uploadedFiles?: FileUploadUploadedFile[];
|
|
5560
|
+
/** Label shown above the control. */
|
|
5561
|
+
label?: string;
|
|
5562
|
+
/** Help text shown below the control. */
|
|
5563
|
+
description?: string;
|
|
5564
|
+
/** Error message: activates the error state. */
|
|
5565
|
+
errorMessage?: string;
|
|
5566
|
+
/** Name of the native file input, also used to match form context errors. */
|
|
5567
|
+
name?: string;
|
|
5568
|
+
/** Whether a file is required. An uploaded file counts. */
|
|
5569
|
+
required?: boolean;
|
|
5570
|
+
/** Accepted file types (e.g. "image/*,.pdf"). Also shown in the hint. */
|
|
4857
5571
|
accept?: string;
|
|
4858
5572
|
/** Allow multiple files. */
|
|
4859
5573
|
multiple?: boolean;
|
|
4860
|
-
/** Max file size in bytes. Also shown
|
|
5574
|
+
/** Max file size in bytes. Also shown in the hint. */
|
|
4861
5575
|
maxSize?: number;
|
|
4862
|
-
/** Max number of files. */
|
|
5576
|
+
/** Max number of files, counting the uploaded ones. */
|
|
4863
5577
|
maxFiles?: number;
|
|
5578
|
+
/** Opens the camera on phones: 'user' for the front one, 'environment' for the back one. */
|
|
5579
|
+
capture?: 'user' | 'environment';
|
|
4864
5580
|
/** Size of the component. */
|
|
4865
5581
|
size?: FileUploadSize;
|
|
4866
|
-
/** Disable
|
|
5582
|
+
/** Disable adding, retrying and removing. Files can still be opened. */
|
|
4867
5583
|
disabled?: boolean;
|
|
4868
5584
|
/** Visual variant. */
|
|
4869
5585
|
variant?: FileUploadVariant;
|
|
@@ -4871,9 +5587,39 @@ export declare interface FileUploadProps {
|
|
|
4871
5587
|
shadow?: FileUploadShadow;
|
|
4872
5588
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
4873
5589
|
animated?: boolean;
|
|
4874
|
-
/**
|
|
5590
|
+
/** Main text of the drop area, or the label of the button in the button variant. */
|
|
5591
|
+
text?: string;
|
|
5592
|
+
/** Replaces the line with the accepted formats and the max size. */
|
|
5593
|
+
hint?: string;
|
|
5594
|
+
/** Upload state of each new file, for progress or an error with a retry button. */
|
|
4875
5595
|
fileStatus?: (file: File) => FileUploadStatus | undefined;
|
|
4876
|
-
/**
|
|
5596
|
+
/**
|
|
5597
|
+
* How images show in the list, for new files and uploaded ones: 'contain' (default) the whole
|
|
5598
|
+
* image, 'cover' filling the box and cropping what does not fit, 'none' always the icon.
|
|
5599
|
+
*/
|
|
5600
|
+
preview?: FileUploadPreview;
|
|
5601
|
+
/**
|
|
5602
|
+
* Runs on each picked file after the type check and before the size check, one file at a time.
|
|
5603
|
+
* The file enters v-model only once it is done.
|
|
5604
|
+
*/
|
|
5605
|
+
transform?: FileUploadTransform;
|
|
5606
|
+
/** Ask the user before adding a file that `transform` changed. */
|
|
5607
|
+
confirmTransform?: boolean;
|
|
5608
|
+
/**
|
|
5609
|
+
* Adds an Edit button to the images of the list, which opens the built-in editor. Uploaded images
|
|
5610
|
+
* get it too when they have a `url` and you listen to `editUploaded`.
|
|
5611
|
+
*/
|
|
5612
|
+
editable?: boolean;
|
|
5613
|
+
/** Settings of that editor: shape, ratios, output size and format. */
|
|
5614
|
+
editorOptions?: FileUploadEditorOptions;
|
|
5615
|
+
/**
|
|
5616
|
+
* Add files with ⌘V / Ctrl+V: 'self' (default) while the pointer is over the component or focus is
|
|
5617
|
+
* inside, 'page' wherever the paste happens, 'none' never.
|
|
5618
|
+
*/
|
|
5619
|
+
paste?: FileUploadPaste;
|
|
5620
|
+
/** Hide the illustration or icon of the control. */
|
|
5621
|
+
hideIcon?: boolean;
|
|
5622
|
+
/** Hide the list of files, for apps that show their own. */
|
|
4877
5623
|
hideFileList?: boolean;
|
|
4878
5624
|
/** Hide the line with the accepted formats and the max size. */
|
|
4879
5625
|
hideHint?: boolean;
|
|
@@ -4881,24 +5627,103 @@ export declare interface FileUploadProps {
|
|
|
4881
5627
|
class?: string;
|
|
4882
5628
|
}
|
|
4883
5629
|
|
|
4884
|
-
|
|
5630
|
+
/** What your upload function gets along with the file. */
|
|
5631
|
+
export declare interface FileUploadRequest {
|
|
5632
|
+
/** Report how much has been sent, from 0 to 100. */
|
|
5633
|
+
onProgress: (percent: number) => void;
|
|
5634
|
+
/** Aborted when the file leaves the list or the component unmounts. Pass it to fetch or axios. */
|
|
5635
|
+
signal: AbortSignal;
|
|
5636
|
+
}
|
|
5637
|
+
|
|
5638
|
+
export declare type FileUploadShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
4885
5639
|
|
|
4886
5640
|
export declare type FileUploadSize = 'sm' | 'md' | 'lg';
|
|
4887
5641
|
|
|
4888
|
-
|
|
5642
|
+
export declare interface FileUploadSlots {
|
|
5643
|
+
/** Replaces the illustration (area) or the icon (inline and button). */
|
|
5644
|
+
icon?: (props: {
|
|
5645
|
+
active: boolean;
|
|
5646
|
+
disabled: boolean;
|
|
5647
|
+
}) => unknown;
|
|
5648
|
+
/** Main text of the control. */
|
|
5649
|
+
text?: (props: {
|
|
5650
|
+
active: boolean;
|
|
5651
|
+
}) => unknown;
|
|
5652
|
+
/** The line with the accepted formats and the max size. */
|
|
5653
|
+
hint?: () => unknown;
|
|
5654
|
+
/** The icon or thumbnail of a row. */
|
|
5655
|
+
'file-icon'?: (props: {
|
|
5656
|
+
file: File | FileUploadUploadedFile;
|
|
5657
|
+
kind: FileUploadFileKind;
|
|
5658
|
+
previewUrl: string | undefined;
|
|
5659
|
+
}) => unknown;
|
|
5660
|
+
/** Replaces the buttons that approve a transformed file. */
|
|
5661
|
+
review?: (props: {
|
|
5662
|
+
original: File;
|
|
5663
|
+
result: File;
|
|
5664
|
+
/** False when the original breaks `maxSize`. */
|
|
5665
|
+
canKeepOriginal: boolean;
|
|
5666
|
+
accept: () => void;
|
|
5667
|
+
keepOriginal: () => void;
|
|
5668
|
+
discard: () => void;
|
|
5669
|
+
/** Opens the comparison of both images; undefined for other files. */
|
|
5670
|
+
compare: (() => void) | undefined;
|
|
5671
|
+
}) => unknown;
|
|
5672
|
+
/** Extra actions of a row, before retry and remove. */
|
|
5673
|
+
'file-actions'?: (props: {
|
|
5674
|
+
file: File | FileUploadUploadedFile;
|
|
5675
|
+
state: FileUploadState;
|
|
5676
|
+
}) => unknown;
|
|
5677
|
+
}
|
|
5678
|
+
|
|
5679
|
+
export declare type FileUploadState = 'idle' | 'uploading' | 'done' | 'error';
|
|
5680
|
+
|
|
5681
|
+
/** What the app reports for a file it is sending. */
|
|
4889
5682
|
export declare interface FileUploadStatus {
|
|
5683
|
+
/**
|
|
5684
|
+
* Without it the state follows the rest: `error` means failed, a `progress` under 100 means
|
|
5685
|
+
* uploading and 100 means done. `{ state: 'uploading' }` alone shows a bar with no percentage.
|
|
5686
|
+
*/
|
|
5687
|
+
state?: FileUploadState;
|
|
5688
|
+
/** From 0 to 100. */
|
|
4890
5689
|
progress?: number;
|
|
5690
|
+
/** Why the upload failed. */
|
|
4891
5691
|
error?: string;
|
|
4892
5692
|
}
|
|
4893
5693
|
|
|
4894
5694
|
export declare const fileUploadTextTheme: (props?: ({
|
|
4895
5695
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5696
|
+
disabled?: boolean | null | undefined;
|
|
4896
5697
|
} & ClassProp) | undefined) => string;
|
|
4897
5698
|
|
|
4898
|
-
|
|
5699
|
+
/**
|
|
5700
|
+
* Processes a picked file before it is added: compress, crop, convert. Resolve with the file to add,
|
|
5701
|
+
* or with null to drop it. Abort whatever you opened when the signal does.
|
|
5702
|
+
*/
|
|
5703
|
+
export declare type FileUploadTransform = (file: File, context: {
|
|
5704
|
+
signal: AbortSignal;
|
|
5705
|
+
}) => File | null | Promise<File | null>;
|
|
5706
|
+
|
|
5707
|
+
/** A file that is already on the server, such as the attachments of a record being edited. */
|
|
5708
|
+
export declare interface FileUploadUploadedFile {
|
|
5709
|
+
id?: string | number;
|
|
5710
|
+
name: string;
|
|
5711
|
+
/** In bytes. */
|
|
5712
|
+
size?: number;
|
|
5713
|
+
/** MIME type. The extension of the name is enough to pick the icon. */
|
|
5714
|
+
type?: string;
|
|
5715
|
+
/** Turns the name into a link that opens in a new tab. */
|
|
5716
|
+
url?: string;
|
|
5717
|
+
/** Image shown in place of the icon. */
|
|
5718
|
+
previewUrl?: string;
|
|
5719
|
+
}
|
|
5720
|
+
|
|
5721
|
+
export declare type FileUploadVariant = 'area' | 'inline' | 'button';
|
|
4899
5722
|
|
|
4900
5723
|
declare function fire(): void;
|
|
4901
5724
|
|
|
5725
|
+
declare function flip(axis: 'horizontal' | 'vertical'): void;
|
|
5726
|
+
|
|
4902
5727
|
declare function focusKey(key: string): void;
|
|
4903
5728
|
|
|
4904
5729
|
export declare function formatDateValue(value: DateFieldValue, pattern: string): string;
|
|
@@ -5042,6 +5867,12 @@ export declare function getFirstDayOfWeekForLocale(locale: string): WeekDay;
|
|
|
5042
5867
|
*/
|
|
5043
5868
|
export declare function getHour12ForLocale(locale: string): boolean;
|
|
5044
5869
|
|
|
5870
|
+
declare function goTo(step: number): void;
|
|
5871
|
+
|
|
5872
|
+
declare function goTo_2(key: string | null): void;
|
|
5873
|
+
|
|
5874
|
+
declare function goTo_3(index: number): void;
|
|
5875
|
+
|
|
5045
5876
|
export declare type GradientTextPreset = 'aurora' | 'sunset' | 'ocean' | 'candy' | 'neon';
|
|
5046
5877
|
|
|
5047
5878
|
export declare interface GradientTextProps {
|
|
@@ -5201,6 +6032,73 @@ export declare const imageCompareTheme: (props?: ({
|
|
|
5201
6032
|
shadow?: "none" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
5202
6033
|
} & ClassProp) | undefined) => string;
|
|
5203
6034
|
|
|
6035
|
+
export declare interface ImageEditorDialogEmits {
|
|
6036
|
+
'update:open': [open: boolean];
|
|
6037
|
+
/** Saved while opened with `open`. With `edit()` the file is what the promise resolves with. */
|
|
6038
|
+
'save': [file: File];
|
|
6039
|
+
'cancel': [];
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
export declare interface ImageEditorDialogProps extends ImageEditorProps {
|
|
6043
|
+
/** Open state (v-model:open). Not needed when you use `edit()`. */
|
|
6044
|
+
open?: boolean;
|
|
6045
|
+
/** Heading of the dialog. */
|
|
6046
|
+
title?: string;
|
|
6047
|
+
}
|
|
6048
|
+
|
|
6049
|
+
export declare interface ImageEditorEditOptions {
|
|
6050
|
+
/** Cancels the edit: the promise resolves with null. */
|
|
6051
|
+
signal?: AbortSignal;
|
|
6052
|
+
/** The picture before earlier changes: the dialog offers to start from it again. */
|
|
6053
|
+
original?: File;
|
|
6054
|
+
/**
|
|
6055
|
+
* Saving without touching anything resolves with the very file that came in. Without it the output
|
|
6056
|
+
* settings and the shape still apply, as a first edit needs.
|
|
6057
|
+
*/
|
|
6058
|
+
keepUntouched?: boolean;
|
|
6059
|
+
}
|
|
6060
|
+
|
|
6061
|
+
export declare interface ImageEditorEmits {
|
|
6062
|
+
/** The picture is open and can be edited. */
|
|
6063
|
+
'ready': [];
|
|
6064
|
+
/** The picture could not be opened or written. */
|
|
6065
|
+
'error': [error: unknown];
|
|
6066
|
+
}
|
|
6067
|
+
|
|
6068
|
+
/** What the editor writes out. Every setting is optional. */
|
|
6069
|
+
export declare type ImageEditorOutput = Pick<ImageEditorProps, 'maxSize' | 'maxDimension' | 'type' | 'quality'>;
|
|
6070
|
+
|
|
6071
|
+
export declare interface ImageEditorProps {
|
|
6072
|
+
/** The picture: a file, a blob or a URL. Another origin needs CORS. */
|
|
6073
|
+
src?: File | Blob | string;
|
|
6074
|
+
/** Fixes the shape of the crop (width / height) and hides the choice. */
|
|
6075
|
+
aspectRatio?: number;
|
|
6076
|
+
/** Shapes to choose from when it is not fixed. */
|
|
6077
|
+
aspectRatios?: ImageEditorRatio[];
|
|
6078
|
+
/** 'circle' draws a round, square crop, for avatars. The file written is square. */
|
|
6079
|
+
shape?: ImageEditorShape;
|
|
6080
|
+
/** Weight to reach, in bytes. */
|
|
6081
|
+
maxSize?: number;
|
|
6082
|
+
/** Longest side of the result, in pixels. */
|
|
6083
|
+
maxDimension?: number;
|
|
6084
|
+
/** Output format. Without it the format of the picture is kept when possible. */
|
|
6085
|
+
type?: CompressImageType;
|
|
6086
|
+
/** Quality, from 0 to 1. Defaults to 0.9. */
|
|
6087
|
+
quality?: number;
|
|
6088
|
+
/** Hide the size, format and quality settings. */
|
|
6089
|
+
hideOutputSettings?: boolean;
|
|
6090
|
+
/** Additional CSS classes. */
|
|
6091
|
+
class?: string;
|
|
6092
|
+
}
|
|
6093
|
+
|
|
6094
|
+
export declare interface ImageEditorRatio {
|
|
6095
|
+
label: string;
|
|
6096
|
+
/** Width divided by height; without it the crop is free. */
|
|
6097
|
+
value?: number;
|
|
6098
|
+
}
|
|
6099
|
+
|
|
6100
|
+
export declare type ImageEditorShape = 'rect' | 'circle';
|
|
6101
|
+
|
|
5204
6102
|
export declare interface InfiniteScrollEmits {
|
|
5205
6103
|
'load-more': [];
|
|
5206
6104
|
}
|
|
@@ -5354,6 +6252,8 @@ export declare interface InputProps {
|
|
|
5354
6252
|
required?: boolean;
|
|
5355
6253
|
/** Show a clear button when there is a value. */
|
|
5356
6254
|
clearable?: boolean;
|
|
6255
|
+
/** With `type="password"`, a button that shows what was typed and hides it again. */
|
|
6256
|
+
revealable?: boolean;
|
|
5357
6257
|
/** Show a loading spinner in the end slot. */
|
|
5358
6258
|
loading?: boolean;
|
|
5359
6259
|
/** Renders the wrapper as a different element or component. */
|
|
@@ -5366,6 +6266,9 @@ declare type InputShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
|
5366
6266
|
|
|
5367
6267
|
export declare function install(app: App, options?: OusiUIPluginOptions): void;
|
|
5368
6268
|
|
|
6269
|
+
/** Animated PNG and WebP files would come out of a canvas as a still picture. */
|
|
6270
|
+
export declare function isAnimatedImage(file: File): Promise<boolean>;
|
|
6271
|
+
|
|
5369
6272
|
export declare const kbdAbbrTheme = "flex items-center justify-center no-underline";
|
|
5370
6273
|
|
|
5371
6274
|
export declare const kbdContentTheme = "flex items-center justify-center";
|
|
@@ -5400,6 +6303,91 @@ export declare const labelTheme: (props?: ({
|
|
|
5400
6303
|
invalid?: boolean | null | undefined;
|
|
5401
6304
|
} & ClassProp) | undefined) => string;
|
|
5402
6305
|
|
|
6306
|
+
export declare const lightboxBackdropTheme = "absolute inset-0 bg-[var(--lightbox-backdrop,rgb(8_8_10_/_0.95))]";
|
|
6307
|
+
|
|
6308
|
+
export declare const lightboxButtonTheme: string;
|
|
6309
|
+
|
|
6310
|
+
export declare interface LightboxEmits {
|
|
6311
|
+
'update:modelValue': [open: boolean];
|
|
6312
|
+
'update:index': [index: number];
|
|
6313
|
+
'close': [];
|
|
6314
|
+
/** A picture did not load. */
|
|
6315
|
+
'error': [image: LightboxImage, index: number];
|
|
6316
|
+
}
|
|
6317
|
+
|
|
6318
|
+
export declare interface LightboxImage {
|
|
6319
|
+
/** Unique key. Falls back to the address. */
|
|
6320
|
+
id?: string | number;
|
|
6321
|
+
src: string;
|
|
6322
|
+
/** What the picture shows, for screen readers. */
|
|
6323
|
+
alt?: string;
|
|
6324
|
+
/** Shown under it. */
|
|
6325
|
+
caption?: string;
|
|
6326
|
+
/** A small version for the strip of thumbnails. Falls back to `src`. */
|
|
6327
|
+
thumbnail?: string;
|
|
6328
|
+
/** File name for the download button. */
|
|
6329
|
+
downloadName?: string;
|
|
6330
|
+
}
|
|
6331
|
+
|
|
6332
|
+
export declare interface LightboxProps {
|
|
6333
|
+
/** The pictures, or just their addresses. */
|
|
6334
|
+
images: (LightboxImage | string)[];
|
|
6335
|
+
/** Whether it is open (v-model). Optional: the `trigger` slot and `open()` work without it. */
|
|
6336
|
+
modelValue?: boolean;
|
|
6337
|
+
/** The picture on show, from 0 (v-model:index). */
|
|
6338
|
+
index?: number;
|
|
6339
|
+
/** From the last picture on to the first, and back. */
|
|
6340
|
+
loop?: boolean;
|
|
6341
|
+
/** A strip to jump between pictures, when there is more than one. */
|
|
6342
|
+
thumbnails?: boolean;
|
|
6343
|
+
/** "2 of 5". */
|
|
6344
|
+
showCounter?: boolean;
|
|
6345
|
+
zoomable?: boolean;
|
|
6346
|
+
/** The most a picture can be enlarged. */
|
|
6347
|
+
maxZoom?: number;
|
|
6348
|
+
/** A button that downloads the picture. From another site the browser opens it instead. */
|
|
6349
|
+
downloadable?: boolean;
|
|
6350
|
+
/** A tap or click beside the picture closes it. */
|
|
6351
|
+
closeOnBackdrop?: boolean;
|
|
6352
|
+
/** Dragging a picture downwards closes it. */
|
|
6353
|
+
swipeToClose?: boolean;
|
|
6354
|
+
/** Accessible name of the viewer. */
|
|
6355
|
+
label?: string;
|
|
6356
|
+
animated?: boolean;
|
|
6357
|
+
/** Additional CSS classes on the viewer. Its background follows `--lightbox-backdrop`. */
|
|
6358
|
+
class?: string;
|
|
6359
|
+
}
|
|
6360
|
+
|
|
6361
|
+
export declare interface LightboxSlotContext {
|
|
6362
|
+
image: LightboxImage;
|
|
6363
|
+
index: number;
|
|
6364
|
+
total: number;
|
|
6365
|
+
/** 1 at its normal size. */
|
|
6366
|
+
zoom: number;
|
|
6367
|
+
close: () => void;
|
|
6368
|
+
}
|
|
6369
|
+
|
|
6370
|
+
export declare interface LightboxSlots {
|
|
6371
|
+
/** Drawn where the component is placed: what opens the viewer. */
|
|
6372
|
+
trigger?: (props: {
|
|
6373
|
+
open: (index?: number) => void;
|
|
6374
|
+
}) => unknown;
|
|
6375
|
+
/** Under the picture. Replaces its caption. */
|
|
6376
|
+
caption?: (props: LightboxSlotContext) => unknown;
|
|
6377
|
+
/** More buttons in the bar, such as share or delete. */
|
|
6378
|
+
actions?: (props: LightboxSlotContext) => unknown;
|
|
6379
|
+
/** In place of a picture that did not load. */
|
|
6380
|
+
error?: (props: LightboxSlotContext) => unknown;
|
|
6381
|
+
'close-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6382
|
+
'previous-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6383
|
+
'next-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6384
|
+
'zoom-in-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6385
|
+
'zoom-out-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6386
|
+
'download-icon'?: (props: LightboxSlotContext) => unknown;
|
|
6387
|
+
}
|
|
6388
|
+
|
|
6389
|
+
export declare const lightboxThumbnailTheme: string;
|
|
6390
|
+
|
|
5403
6391
|
export declare const listboxTheme = "p-1.5 outline-none";
|
|
5404
6392
|
|
|
5405
6393
|
export declare interface MagneticButtonEmits {
|
|
@@ -5458,8 +6446,17 @@ export declare const meterLabelTheme = "w-fit text-sm font-medium text-ousi-fore
|
|
|
5458
6446
|
export declare const meterOutputTheme = "text-sm font-medium tabular-nums text-ousi-foreground [grid-area:output]";
|
|
5459
6447
|
|
|
5460
6448
|
export declare interface MeterProps {
|
|
5461
|
-
/** Current value
|
|
5462
|
-
value
|
|
6449
|
+
/** Current value. Required unless `segments` is given. */
|
|
6450
|
+
value?: number;
|
|
6451
|
+
/** Several amounts on one bar, in order: what takes up a quota, say. They replace `value` and
|
|
6452
|
+
* `color`. If they add up to more than the range, the bar is shared among them. */
|
|
6453
|
+
segments?: MeterSegment[];
|
|
6454
|
+
/** Space between segments, in px, curved around the round end of the next one. 0 joins them. */
|
|
6455
|
+
gap?: number;
|
|
6456
|
+
/** Segments touch, with no space between them. */
|
|
6457
|
+
joined?: boolean;
|
|
6458
|
+
/** With `segments`: list under the bar what each one is and how much. */
|
|
6459
|
+
showLegend?: boolean;
|
|
5463
6460
|
/** Minimum value. Default: 0. */
|
|
5464
6461
|
minValue?: number;
|
|
5465
6462
|
/** Maximum value. Default: 100. */
|
|
@@ -5488,6 +6485,16 @@ export declare interface MeterProps {
|
|
|
5488
6485
|
class?: string;
|
|
5489
6486
|
}
|
|
5490
6487
|
|
|
6488
|
+
export declare interface MeterSegment {
|
|
6489
|
+
/** Unique key. Falls back to the label. */
|
|
6490
|
+
id?: string;
|
|
6491
|
+
label: string;
|
|
6492
|
+
/** An amount, on the same scale as `maxValue`. */
|
|
6493
|
+
value: number;
|
|
6494
|
+
/** Token name or any CSS color. Defaults to the chart palette. */
|
|
6495
|
+
color?: string;
|
|
6496
|
+
}
|
|
6497
|
+
|
|
5491
6498
|
export declare type MeterSize = 'sm' | 'md' | 'lg';
|
|
5492
6499
|
|
|
5493
6500
|
export declare const meterTheme: (props?: ({
|
|
@@ -5500,6 +6507,8 @@ export declare const meterTrackTheme: (props?: ({
|
|
|
5500
6507
|
|
|
5501
6508
|
declare function next(): void;
|
|
5502
6509
|
|
|
6510
|
+
declare function next_2(): void;
|
|
6511
|
+
|
|
5503
6512
|
export declare const numberFieldDecrementTheme: string;
|
|
5504
6513
|
|
|
5505
6514
|
export declare const numberFieldDescriptionTheme = "text-xs text-ousi-muted";
|
|
@@ -5647,6 +6656,8 @@ export declare const OButtonGroupSeparator: DefineComponent< {}, {}, {}, {},
|
|
|
5647
6656
|
|
|
5648
6657
|
export declare const OCalendar: __VLS_WithTemplateSlots_41<typeof __VLS_component_41, __VLS_TemplateResult_41["slots"]>;
|
|
5649
6658
|
|
|
6659
|
+
export declare const OCandlestickChart: __VLS_WithTemplateSlots_83<typeof __VLS_component_83, __VLS_TemplateResult_83["slots"]>;
|
|
6660
|
+
|
|
5650
6661
|
export declare const OCard: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
5651
6662
|
|
|
5652
6663
|
export declare const OCardContent: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
@@ -5675,9 +6686,9 @@ y: number;
|
|
|
5675
6686
|
"onWindow-change"?: ((secs: number) => any) | undefined;
|
|
5676
6687
|
}>, {
|
|
5677
6688
|
fill: boolean;
|
|
6689
|
+
mode: "line" | "candle";
|
|
5678
6690
|
color: string;
|
|
5679
6691
|
padding: ChartPadding;
|
|
5680
|
-
mode: "line" | "candle";
|
|
5681
6692
|
cursor: string;
|
|
5682
6693
|
grid: boolean;
|
|
5683
6694
|
pulse: boolean;
|
|
@@ -5771,6 +6782,7 @@ readonly disabled?: boolean | undefined;
|
|
|
5771
6782
|
readonly readonly?: boolean | undefined;
|
|
5772
6783
|
readonly required?: boolean | undefined;
|
|
5773
6784
|
readonly clearable?: boolean | undefined;
|
|
6785
|
+
readonly revealable?: boolean | undefined;
|
|
5774
6786
|
readonly loading?: boolean | undefined;
|
|
5775
6787
|
readonly as?: (string | Component) | undefined;
|
|
5776
6788
|
readonly class?: string | undefined;
|
|
@@ -5820,6 +6832,7 @@ animated: boolean;
|
|
|
5820
6832
|
required: boolean;
|
|
5821
6833
|
readonly: boolean;
|
|
5822
6834
|
clearable: boolean;
|
|
6835
|
+
revealable: boolean;
|
|
5823
6836
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
5824
6837
|
beforeCreate?: (() => void) | (() => void)[];
|
|
5825
6838
|
created?: (() => void) | (() => void)[];
|
|
@@ -5851,13 +6864,14 @@ animated: boolean;
|
|
|
5851
6864
|
required: boolean;
|
|
5852
6865
|
readonly: boolean;
|
|
5853
6866
|
clearable: boolean;
|
|
6867
|
+
revealable: boolean;
|
|
5854
6868
|
}> & Omit<Readonly<InputProps> & Readonly<{
|
|
5855
6869
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
5856
6870
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
5857
6871
|
onChange?: ((value: string | number) => any) | undefined;
|
|
5858
6872
|
onClear?: (() => any) | undefined;
|
|
5859
6873
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
5860
|
-
}>, "focus" | "blur" | ("variant" | "size" | "shadow" | "disabled" | "loading" | "type" | "animated" | "required" | "readonly" | "clearable")> & ShallowUnwrapRef< {
|
|
6874
|
+
}>, "focus" | "blur" | ("variant" | "size" | "shadow" | "disabled" | "loading" | "type" | "animated" | "required" | "readonly" | "clearable" | "revealable")> & ShallowUnwrapRef< {
|
|
5861
6875
|
focus(options?: FocusOptions): void;
|
|
5862
6876
|
blur(): void;
|
|
5863
6877
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -6073,6 +7087,115 @@ showDivider: boolean;
|
|
|
6073
7087
|
containerRef: HTMLDivElement;
|
|
6074
7088
|
}, HTMLDivElement>;
|
|
6075
7089
|
|
|
7090
|
+
export declare const OImageEditor: DefineComponent<ImageEditorProps, {
|
|
7091
|
+
export: typeof exportFile;
|
|
7092
|
+
reset: typeof reset;
|
|
7093
|
+
rotate: typeof rotate;
|
|
7094
|
+
flip: typeof flip;
|
|
7095
|
+
/** True once the user has changed something. */
|
|
7096
|
+
dirty: Ref<boolean, boolean>;
|
|
7097
|
+
/** True once the picture is open. */
|
|
7098
|
+
ready: ComputedRef<boolean>;
|
|
7099
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7100
|
+
error: (error: unknown) => any;
|
|
7101
|
+
ready: () => any;
|
|
7102
|
+
}, string, PublicProps, Readonly<ImageEditorProps> & Readonly<{
|
|
7103
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
7104
|
+
onReady?: (() => any) | undefined;
|
|
7105
|
+
}>, {
|
|
7106
|
+
type: CompressImageType;
|
|
7107
|
+
shape: ImageEditorShape;
|
|
7108
|
+
src: File | Blob | string;
|
|
7109
|
+
aspectRatio: number;
|
|
7110
|
+
quality: number;
|
|
7111
|
+
maxSize: number;
|
|
7112
|
+
maxDimension: number;
|
|
7113
|
+
aspectRatios: ImageEditorRatio[];
|
|
7114
|
+
hideOutputSettings: boolean;
|
|
7115
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
7116
|
+
stage: HTMLDivElement;
|
|
7117
|
+
frame: HTMLDivElement;
|
|
7118
|
+
}, HTMLDivElement>;
|
|
7119
|
+
|
|
7120
|
+
export declare const OImageEditorDialog: DefineComponent<ImageEditorDialogProps, {
|
|
7121
|
+
edit: typeof edit;
|
|
7122
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7123
|
+
cancel: () => any;
|
|
7124
|
+
save: (file: File) => any;
|
|
7125
|
+
"update:open": (open: boolean) => any;
|
|
7126
|
+
}, string, PublicProps, Readonly<ImageEditorDialogProps> & Readonly<{
|
|
7127
|
+
onCancel?: (() => any) | undefined;
|
|
7128
|
+
onSave?: ((file: File) => any) | undefined;
|
|
7129
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
7130
|
+
}>, {
|
|
7131
|
+
title: string;
|
|
7132
|
+
type: CompressImageType;
|
|
7133
|
+
shape: ImageEditorShape;
|
|
7134
|
+
src: File | Blob | string;
|
|
7135
|
+
aspectRatio: number;
|
|
7136
|
+
quality: number;
|
|
7137
|
+
open: boolean;
|
|
7138
|
+
maxSize: number;
|
|
7139
|
+
maxDimension: number;
|
|
7140
|
+
aspectRatios: ImageEditorRatio[];
|
|
7141
|
+
hideOutputSettings: boolean;
|
|
7142
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
7143
|
+
editor: CreateComponentPublicInstanceWithMixins<Readonly<ImageEditorProps> & Readonly<{
|
|
7144
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
7145
|
+
onReady?: (() => any) | undefined;
|
|
7146
|
+
}>, {
|
|
7147
|
+
export: () => Promise<File>;
|
|
7148
|
+
reset: () => void;
|
|
7149
|
+
rotate: (clockwise?: boolean) => void;
|
|
7150
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
7151
|
+
dirty: Ref<boolean, boolean>;
|
|
7152
|
+
ready: ComputedRef<boolean>;
|
|
7153
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7154
|
+
error: (error: unknown) => any;
|
|
7155
|
+
ready: () => any;
|
|
7156
|
+
}, PublicProps, {
|
|
7157
|
+
type: CompressImageType;
|
|
7158
|
+
shape: ImageEditorShape;
|
|
7159
|
+
src: File | Blob | string;
|
|
7160
|
+
aspectRatio: number;
|
|
7161
|
+
quality: number;
|
|
7162
|
+
maxSize: number;
|
|
7163
|
+
maxDimension: number;
|
|
7164
|
+
aspectRatios: ImageEditorRatio[];
|
|
7165
|
+
hideOutputSettings: boolean;
|
|
7166
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7167
|
+
stage: HTMLDivElement;
|
|
7168
|
+
frame: HTMLDivElement;
|
|
7169
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
7170
|
+
P: {};
|
|
7171
|
+
B: {};
|
|
7172
|
+
D: {};
|
|
7173
|
+
C: {};
|
|
7174
|
+
M: {};
|
|
7175
|
+
Defaults: {};
|
|
7176
|
+
}, Readonly<ImageEditorProps> & Readonly<{
|
|
7177
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
7178
|
+
onReady?: (() => any) | undefined;
|
|
7179
|
+
}>, {
|
|
7180
|
+
export: () => Promise<File>;
|
|
7181
|
+
reset: () => void;
|
|
7182
|
+
rotate: (clockwise?: boolean) => void;
|
|
7183
|
+
flip: (axis: "horizontal" | "vertical") => void;
|
|
7184
|
+
dirty: Ref<boolean, boolean>;
|
|
7185
|
+
ready: ComputedRef<boolean>;
|
|
7186
|
+
}, {}, {}, {}, {
|
|
7187
|
+
type: CompressImageType;
|
|
7188
|
+
shape: ImageEditorShape;
|
|
7189
|
+
src: File | Blob | string;
|
|
7190
|
+
aspectRatio: number;
|
|
7191
|
+
quality: number;
|
|
7192
|
+
maxSize: number;
|
|
7193
|
+
maxDimension: number;
|
|
7194
|
+
aspectRatios: ImageEditorRatio[];
|
|
7195
|
+
hideOutputSettings: boolean;
|
|
7196
|
+
}> | null;
|
|
7197
|
+
}, any>;
|
|
7198
|
+
|
|
6076
7199
|
export declare const OInfiniteScroll: __VLS_WithTemplateSlots_79<typeof __VLS_component_79, __VLS_TemplateResult_79["slots"]>;
|
|
6077
7200
|
|
|
6078
7201
|
export declare const OInput: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
@@ -6113,6 +7236,8 @@ containerRef: HTMLDivElement;
|
|
|
6113
7236
|
|
|
6114
7237
|
export declare const OKbd: __VLS_WithTemplateSlots_56<typeof __VLS_component_56, __VLS_TemplateResult_56["slots"]>;
|
|
6115
7238
|
|
|
7239
|
+
export declare const OLightbox: __VLS_WithTemplateSlots_85<typeof __VLS_component_85, __VLS_TemplateResult_85["slots"]>;
|
|
7240
|
+
|
|
6116
7241
|
export declare const OMagneticButton: __VLS_WithTemplateSlots_65<typeof __VLS_component_65, __VLS_TemplateResult_65["slots"]>;
|
|
6117
7242
|
|
|
6118
7243
|
export declare const OMarquee: __VLS_WithTemplateSlots_71<typeof __VLS_component_71, __VLS_TemplateResult_71["slots"]>;
|
|
@@ -6121,9 +7246,12 @@ export declare const OMeter: DefineComponent<MeterProps, {}, {}, {}, {}, Compone
|
|
|
6121
7246
|
size: MeterSize;
|
|
6122
7247
|
disabled: boolean;
|
|
6123
7248
|
color: MeterColor;
|
|
7249
|
+
gap: number;
|
|
6124
7250
|
minValue: number;
|
|
6125
7251
|
maxValue: number;
|
|
6126
7252
|
showValueLabel: boolean;
|
|
7253
|
+
showLegend: boolean;
|
|
7254
|
+
joined: boolean;
|
|
6127
7255
|
autoColor: boolean;
|
|
6128
7256
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6129
7257
|
|
|
@@ -6135,6 +7263,8 @@ declare function open_2(): void;
|
|
|
6135
7263
|
|
|
6136
7264
|
declare function open_3(): void;
|
|
6137
7265
|
|
|
7266
|
+
declare function open_4(at?: number): void;
|
|
7267
|
+
|
|
6138
7268
|
export declare const OPopover: __VLS_WithTemplateSlots_34<typeof __VLS_component_34, __VLS_TemplateResult_34["slots"]>;
|
|
6139
7269
|
|
|
6140
7270
|
export declare const OProgressBar: DefineComponent<ProgressBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
@@ -6210,6 +7340,8 @@ export declare const OSeparator: __VLS_WithTemplateSlots_35<typeof __VLS_compone
|
|
|
6210
7340
|
|
|
6211
7341
|
export declare const OSkeleton: __VLS_WithTemplateSlots_36<typeof __VLS_component_36, __VLS_TemplateResult_36["slots"]>;
|
|
6212
7342
|
|
|
7343
|
+
export declare const OSlideButton: __VLS_WithTemplateSlots_80<typeof __VLS_component_80, __VLS_TemplateResult_80["slots"]>;
|
|
7344
|
+
|
|
6213
7345
|
export declare const OSlider: DefineComponent<SliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
6214
7346
|
change: (value: SliderValue) => any;
|
|
6215
7347
|
"update:modelValue": (value: SliderValue) => any;
|
|
@@ -6240,6 +7372,8 @@ export declare const OStatus: __VLS_WithTemplateSlots_5<typeof __VLS_component_5
|
|
|
6240
7372
|
|
|
6241
7373
|
export declare const OStepper: __VLS_WithTemplateSlots_74<typeof __VLS_component_74, __VLS_TemplateResult_74["slots"]>;
|
|
6242
7374
|
|
|
7375
|
+
export declare const OSunburst: __VLS_WithTemplateSlots_84<typeof __VLS_component_84, __VLS_TemplateResult_84["slots"]>;
|
|
7376
|
+
|
|
6243
7377
|
export declare const OSwitch: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
|
|
6244
7378
|
|
|
6245
7379
|
export declare const OTable: __VLS_WithTemplateSlots_59<typeof __VLS_component_59, __VLS_TemplateResult_59["slots"]>;
|
|
@@ -6334,6 +7468,8 @@ maxVisible: number;
|
|
|
6334
7468
|
|
|
6335
7469
|
export declare const OTooltip: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
6336
7470
|
|
|
7471
|
+
export declare const OTour: __VLS_WithTemplateSlots_81<typeof __VLS_component_81, __VLS_TemplateResult_81["slots"]>;
|
|
7472
|
+
|
|
6337
7473
|
export declare interface OtpGroup {
|
|
6338
7474
|
slots: number;
|
|
6339
7475
|
}
|
|
@@ -6411,6 +7547,8 @@ export declare interface OusiConfig {
|
|
|
6411
7547
|
backdrop: Ref<OverlayBackdrop>;
|
|
6412
7548
|
/** Required OSelect and OAutocomplete fields with exactly one option pick it. Defaults to false. */
|
|
6413
7549
|
autoSelectSingle: Ref<boolean>;
|
|
7550
|
+
/** Swipe to close for drawers that don't say. Defaults to true. */
|
|
7551
|
+
swipeToClose: Ref<boolean>;
|
|
6414
7552
|
}
|
|
6415
7553
|
|
|
6416
7554
|
export declare interface OusiConfigInit {
|
|
@@ -6420,6 +7558,7 @@ export declare interface OusiConfigInit {
|
|
|
6420
7558
|
dir?: 'ltr' | 'rtl';
|
|
6421
7559
|
backdrop?: OverlayBackdrop;
|
|
6422
7560
|
autoSelectSingle?: boolean;
|
|
7561
|
+
swipeToClose?: boolean;
|
|
6423
7562
|
}
|
|
6424
7563
|
|
|
6425
7564
|
/** Texts the components render on their own: placeholders, buttons and accessible names. */
|
|
@@ -6428,6 +7567,15 @@ export declare interface OusiMessages {
|
|
|
6428
7567
|
options: string;
|
|
6429
7568
|
clear: string;
|
|
6430
7569
|
clearInput: string;
|
|
7570
|
+
showPassword: string;
|
|
7571
|
+
slideToConfirm: string;
|
|
7572
|
+
confirmed: string;
|
|
7573
|
+
tourNext: string;
|
|
7574
|
+
tourBack: string;
|
|
7575
|
+
tourDone: string;
|
|
7576
|
+
tourClose: string;
|
|
7577
|
+
/** `{step}` and `{total}` are replaced. */
|
|
7578
|
+
tourProgress: string;
|
|
6431
7579
|
cancel: string;
|
|
6432
7580
|
ok: string;
|
|
6433
7581
|
loading: string;
|
|
@@ -6501,14 +7649,76 @@ export declare interface OusiMessages {
|
|
|
6501
7649
|
images: string;
|
|
6502
7650
|
videos: string;
|
|
6503
7651
|
audio: string;
|
|
7652
|
+
browseFilesMultiple: string;
|
|
6504
7653
|
removeFile: string;
|
|
7654
|
+
cancelUpload: string;
|
|
6505
7655
|
retryUpload: string;
|
|
6506
7656
|
uploadFailed: string;
|
|
7657
|
+
uploading: string;
|
|
7658
|
+
fileUploaded: string;
|
|
6507
7659
|
fileTypeRejected: string;
|
|
6508
7660
|
fileTooLarge: string;
|
|
6509
7661
|
tooManyFiles: string;
|
|
7662
|
+
maxFilesHint: string;
|
|
7663
|
+
duplicateFile: string;
|
|
7664
|
+
processing: string;
|
|
7665
|
+
processingFailed: string;
|
|
7666
|
+
couldNotReduce: string;
|
|
7667
|
+
wasSize: string;
|
|
7668
|
+
awaitingApproval: string;
|
|
7669
|
+
useNewVersion: string;
|
|
7670
|
+
keepOriginal: string;
|
|
7671
|
+
originalTooLarge: string;
|
|
7672
|
+
compare: string;
|
|
7673
|
+
compareTitle: string;
|
|
7674
|
+
originalVersion: string;
|
|
7675
|
+
newVersion: string;
|
|
7676
|
+
actualSize: string;
|
|
7677
|
+
discardFile: string;
|
|
7678
|
+
pendingFiles: string;
|
|
7679
|
+
/** Image editor. `{size}` is replaced. */
|
|
7680
|
+
editImage: string;
|
|
7681
|
+
cropArea: string;
|
|
7682
|
+
cropHint: string;
|
|
7683
|
+
aspectRatio: string;
|
|
7684
|
+
freeRatio: string;
|
|
7685
|
+
rotateLeft: string;
|
|
7686
|
+
rotateRight: string;
|
|
7687
|
+
flipHorizontal: string;
|
|
7688
|
+
flipVertical: string;
|
|
7689
|
+
zoom: string;
|
|
7690
|
+
resetEdit: string;
|
|
7691
|
+
maxSide: string;
|
|
7692
|
+
fullSize: string;
|
|
7693
|
+
outputFormat: string;
|
|
7694
|
+
automaticFormat: string;
|
|
7695
|
+
quality: string;
|
|
7696
|
+
calculating: string;
|
|
7697
|
+
stillOverLimit: string;
|
|
7698
|
+
cannotOpenImage: string;
|
|
7699
|
+
save: string;
|
|
7700
|
+
startFromOriginal: string;
|
|
7701
|
+
editFile: string;
|
|
7702
|
+
editFailed: string;
|
|
6510
7703
|
noResults: string;
|
|
6511
7704
|
typeToSearch: string;
|
|
7705
|
+
/** `{value}` is replaced in these, `{values}` in `selectedValues`. */
|
|
7706
|
+
removeValue: string;
|
|
7707
|
+
addValue: string;
|
|
7708
|
+
valueAdded: string;
|
|
7709
|
+
valueRemoved: string;
|
|
7710
|
+
selectedValues: string;
|
|
7711
|
+
lightbox: string;
|
|
7712
|
+
lightboxClose: string;
|
|
7713
|
+
zoomIn: string;
|
|
7714
|
+
zoomOut: string;
|
|
7715
|
+
download: string;
|
|
7716
|
+
/** `{index}` and `{total}` are replaced. */
|
|
7717
|
+
imagePosition: string;
|
|
7718
|
+
imageFailed: string;
|
|
7719
|
+
chooseImage: string;
|
|
7720
|
+
/** `{index}` is replaced. */
|
|
7721
|
+
showImage: string;
|
|
6512
7722
|
moreTabs: string;
|
|
6513
7723
|
}
|
|
6514
7724
|
|
|
@@ -6546,6 +7756,8 @@ export declare interface OusiUIPluginOptions extends OusiConfigInit {
|
|
|
6546
7756
|
*/
|
|
6547
7757
|
export declare type OverlayBackdrop = 'opaque' | 'subtle' | 'blur' | 'glass' | 'transparent';
|
|
6548
7758
|
|
|
7759
|
+
export declare const OWaterfallChart: __VLS_WithTemplateSlots_82<typeof __VLS_component_82, __VLS_TemplateResult_82["slots"]>;
|
|
7760
|
+
|
|
6549
7761
|
export declare const paginationContentTheme = "flex items-center gap-1 self-start sm:self-center";
|
|
6550
7762
|
|
|
6551
7763
|
export declare const paginationEllipsisTheme: (props?: ({
|
|
@@ -6644,6 +7856,8 @@ export declare const popoverTriggerTheme = "inline-flex";
|
|
|
6644
7856
|
|
|
6645
7857
|
declare function prev(): void;
|
|
6646
7858
|
|
|
7859
|
+
declare function prev_2(): void;
|
|
7860
|
+
|
|
6647
7861
|
export declare type ProgressBarColor = 'default' | 'accent' | 'success' | 'warning' | 'danger';
|
|
6648
7862
|
|
|
6649
7863
|
export declare const progressBarColors: Record<string, string>;
|
|
@@ -6899,6 +8113,10 @@ export declare const ratingTheme: (props?: ({
|
|
|
6899
8113
|
/** Clear cached children for a node and re-fetch. */
|
|
6900
8114
|
declare function reload(key: string): Promise<void>;
|
|
6901
8115
|
|
|
8116
|
+
declare function reset(): void;
|
|
8117
|
+
|
|
8118
|
+
declare function reset_2(): void;
|
|
8119
|
+
|
|
6902
8120
|
export declare type ResizableDirection = 'horizontal' | 'vertical';
|
|
6903
8121
|
|
|
6904
8122
|
export declare interface ResizableEmits {
|
|
@@ -6919,6 +8137,8 @@ export declare interface ResizableProps {
|
|
|
6919
8137
|
|
|
6920
8138
|
export declare const resizableTheme = "flex w-full h-full overflow-hidden";
|
|
6921
8139
|
|
|
8140
|
+
declare function rotate(clockwise?: boolean): void;
|
|
8141
|
+
|
|
6922
8142
|
/** Focus keys look like `node:2` or `link:5`. */
|
|
6923
8143
|
export declare type SankeyFocus = string;
|
|
6924
8144
|
|
|
@@ -7105,8 +8325,13 @@ export declare interface SegmentedGaugeProps {
|
|
|
7105
8325
|
strokeWidth?: number;
|
|
7106
8326
|
/** Total angle of the gauge in degrees. 360 draws a full ring. */
|
|
7107
8327
|
sweep?: number;
|
|
7108
|
-
/**
|
|
8328
|
+
/**
|
|
8329
|
+
* Space between segments, in degrees: a curve of even width around the round end of the next one.
|
|
8330
|
+
* 0 joins them.
|
|
8331
|
+
*/
|
|
7109
8332
|
gap?: number;
|
|
8333
|
+
/** Segments touch, with no space between them. */
|
|
8334
|
+
joined?: boolean;
|
|
7110
8335
|
interactive?: boolean;
|
|
7111
8336
|
/** Highlighted segment index. Supports v-model:focused. */
|
|
7112
8337
|
focused?: number | null;
|
|
@@ -7248,6 +8473,82 @@ export declare interface SkeletonProps {
|
|
|
7248
8473
|
|
|
7249
8474
|
declare type SkeletonShadow = 'none' | 'xs' | 'sm';
|
|
7250
8475
|
|
|
8476
|
+
export declare interface SlideButtonEmits {
|
|
8477
|
+
'update:modelValue': [value: boolean];
|
|
8478
|
+
'confirm': [];
|
|
8479
|
+
}
|
|
8480
|
+
|
|
8481
|
+
export declare const slideButtonFillTheme: (props?: ({
|
|
8482
|
+
variant?: "success" | "primary" | "danger" | null | undefined;
|
|
8483
|
+
} & ClassProp) | undefined) => string;
|
|
8484
|
+
|
|
8485
|
+
export declare interface SlideButtonProps {
|
|
8486
|
+
/** Whether it has been slid to the end (v-model). Set it to false to send the thumb back, as
|
|
8487
|
+
* when the action fails. Optional: it keeps its own state. */
|
|
8488
|
+
modelValue?: boolean;
|
|
8489
|
+
/** What sliding will do. Also its accessible name. Defaults to "Slide to confirm". */
|
|
8490
|
+
label?: string;
|
|
8491
|
+
/** Shown once confirmed. Defaults to "Confirmed". */
|
|
8492
|
+
confirmedLabel?: string;
|
|
8493
|
+
/** Shown while `loading`. Defaults to `label`. */
|
|
8494
|
+
loadingLabel?: string;
|
|
8495
|
+
/** Colour of the thumb and of the confirmed track. */
|
|
8496
|
+
variant?: SlideButtonVariant;
|
|
8497
|
+
size?: SlideButtonSize;
|
|
8498
|
+
/** How far along it must be let go to confirm, from 0.5 to 1. */
|
|
8499
|
+
threshold?: number;
|
|
8500
|
+
/** A spinner in the thumb while the confirmed action runs. */
|
|
8501
|
+
loading?: boolean;
|
|
8502
|
+
disabled?: boolean;
|
|
8503
|
+
fullWidth?: boolean;
|
|
8504
|
+
shadow?: SlideButtonShadow;
|
|
8505
|
+
/** Vibration on confirming. Off unless set. */
|
|
8506
|
+
haptic?: HapticInput;
|
|
8507
|
+
/** Additional CSS classes. Its shape follows `--slide-radius`, its height `--slide-h`. */
|
|
8508
|
+
class?: string;
|
|
8509
|
+
}
|
|
8510
|
+
|
|
8511
|
+
export declare type SlideButtonShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
8512
|
+
|
|
8513
|
+
export declare type SlideButtonSize = 'sm' | 'md' | 'lg';
|
|
8514
|
+
|
|
8515
|
+
export declare interface SlideButtonSlotContext {
|
|
8516
|
+
/** From 0, at the start, to 1, at the end. */
|
|
8517
|
+
progress: number;
|
|
8518
|
+
confirmed: boolean;
|
|
8519
|
+
loading: boolean;
|
|
8520
|
+
}
|
|
8521
|
+
|
|
8522
|
+
/** One slot for the icon and one for the text of each state: replacing one leaves the rest. */
|
|
8523
|
+
export declare interface SlideButtonSlots {
|
|
8524
|
+
/** Icon in the thumb before confirming. Replaces the arrow. */
|
|
8525
|
+
icon?: (props: SlideButtonSlotContext) => unknown;
|
|
8526
|
+
/** Icon while `loading`. Replaces the spinner. */
|
|
8527
|
+
'loading-icon'?: (props: SlideButtonSlotContext) => unknown;
|
|
8528
|
+
/** Icon once confirmed. Replaces the check. */
|
|
8529
|
+
'confirmed-icon'?: (props: SlideButtonSlotContext) => unknown;
|
|
8530
|
+
/** Text on the track before confirming. Replaces `label`. */
|
|
8531
|
+
label?: (props: SlideButtonSlotContext) => unknown;
|
|
8532
|
+
/** Text while `loading`. Without it: `loadingLabel`, or else what shows before confirming. */
|
|
8533
|
+
'loading-label'?: (props: SlideButtonSlotContext) => unknown;
|
|
8534
|
+
/** Text once confirmed. Without it: `confirmedLabel`. */
|
|
8535
|
+
'confirmed-label'?: (props: SlideButtonSlotContext) => unknown;
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8538
|
+
export declare const slideButtonTheme: (props?: ({
|
|
8539
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8540
|
+
fullWidth?: boolean | null | undefined;
|
|
8541
|
+
disabled?: boolean | null | undefined;
|
|
8542
|
+
shadow?: "none" | "xs" | "sm" | "md" | null | undefined;
|
|
8543
|
+
} & ClassProp) | undefined) => string;
|
|
8544
|
+
|
|
8545
|
+
export declare const slideButtonThumbTheme: (props?: ({
|
|
8546
|
+
variant?: "success" | "primary" | "danger" | null | undefined;
|
|
8547
|
+
grab?: boolean | null | undefined;
|
|
8548
|
+
} & ClassProp) | undefined) => string;
|
|
8549
|
+
|
|
8550
|
+
export declare type SlideButtonVariant = 'primary' | 'success' | 'danger';
|
|
8551
|
+
|
|
7251
8552
|
export declare type SliderColor = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
|
|
7252
8553
|
|
|
7253
8554
|
export declare interface SliderEmits {
|
|
@@ -7430,6 +8731,65 @@ export declare const stepperTheme = "flex gap-2";
|
|
|
7430
8731
|
|
|
7431
8732
|
declare type StepState = 'completed' | 'active' | 'upcoming';
|
|
7432
8733
|
|
|
8734
|
+
/** A sector with its derived values. Passed to slots and events. */
|
|
8735
|
+
export declare interface SunburstItem {
|
|
8736
|
+
/** `2` for the third top-level node, `2.0` for its first child. */
|
|
8737
|
+
key: string;
|
|
8738
|
+
name: string;
|
|
8739
|
+
value: number;
|
|
8740
|
+
/** Share of what is in view (0-100, one decimal). */
|
|
8741
|
+
percent: number;
|
|
8742
|
+
/** 1 for the ring next to the centre. */
|
|
8743
|
+
depth: number;
|
|
8744
|
+
/** Name of the parent, if it has one. */
|
|
8745
|
+
parent: string | null;
|
|
8746
|
+
color: string;
|
|
8747
|
+
formatted: string;
|
|
8748
|
+
hasChildren: boolean;
|
|
8749
|
+
}
|
|
8750
|
+
|
|
8751
|
+
/** The same shape as a treemap's, so the same data draws either. */
|
|
8752
|
+
export declare type SunburstNode = TreemapNode;
|
|
8753
|
+
|
|
8754
|
+
export declare interface SunburstProps {
|
|
8755
|
+
data: SunburstNode[];
|
|
8756
|
+
/** Diameter in px. It shrinks to fit. */
|
|
8757
|
+
size?: number;
|
|
8758
|
+
/** How many rings to draw at once. */
|
|
8759
|
+
levels?: number;
|
|
8760
|
+
/** Size of the hole as a share of the radius, from 0.2 to 0.8. */
|
|
8761
|
+
innerRadius?: number;
|
|
8762
|
+
/** Space between sectors and between rings, in viewBox units (0-100 scale). */
|
|
8763
|
+
gap?: number;
|
|
8764
|
+
/** Roundness of the sectors' corners, in viewBox units. 0 makes them sharp. */
|
|
8765
|
+
cornerRadius?: number;
|
|
8766
|
+
/** Write names on the sectors with room for them. */
|
|
8767
|
+
showLabels?: boolean;
|
|
8768
|
+
/** Clicking a sector with children brings it to the centre; the centre goes back. */
|
|
8769
|
+
zoomable?: boolean;
|
|
8770
|
+
/** Key of the node at the centre, or null for the whole (v-model:zoom). Optional. */
|
|
8771
|
+
zoom?: string | null;
|
|
8772
|
+
/** Name of the whole, shown in the centre. */
|
|
8773
|
+
rootLabel?: string;
|
|
8774
|
+
formatValue?: (value: number) => string;
|
|
8775
|
+
interactive?: boolean;
|
|
8776
|
+
/** Highlighted sector. Optional: the chart tracks hover by itself; bind v-model:focused to read or drive it. */
|
|
8777
|
+
focused?: string | null;
|
|
8778
|
+
animated?: boolean;
|
|
8779
|
+
label?: string;
|
|
8780
|
+
class?: string;
|
|
8781
|
+
}
|
|
8782
|
+
|
|
8783
|
+
export declare interface SunburstSlots {
|
|
8784
|
+
/** The centre. */
|
|
8785
|
+
default?: (props: {
|
|
8786
|
+
total: number;
|
|
8787
|
+
formattedTotal: string;
|
|
8788
|
+
focusedItem: SunburstItem | null;
|
|
8789
|
+
current: SunburstItem | null;
|
|
8790
|
+
}) => unknown;
|
|
8791
|
+
}
|
|
8792
|
+
|
|
7433
8793
|
export declare const switchContentTheme = "flex flex-col gap-0";
|
|
7434
8794
|
|
|
7435
8795
|
export declare const switchDescriptionTheme = "text-sm text-ousi-muted select-none";
|
|
@@ -8236,6 +9596,75 @@ export declare const tooltipTheme: (props?: ({
|
|
|
8236
9596
|
|
|
8237
9597
|
export declare const tooltipTriggerTheme: string;
|
|
8238
9598
|
|
|
9599
|
+
export declare const tourCardTheme: (props?: ({
|
|
9600
|
+
shadow?: "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
9601
|
+
} & ClassProp) | undefined) => string;
|
|
9602
|
+
|
|
9603
|
+
export declare interface TourEmits {
|
|
9604
|
+
'update:modelValue': [open: boolean];
|
|
9605
|
+
'update:step': [step: number];
|
|
9606
|
+
/** The last step was completed. */
|
|
9607
|
+
'finish': [];
|
|
9608
|
+
/** Left before the end, at this step. */
|
|
9609
|
+
'skip': [step: number];
|
|
9610
|
+
}
|
|
9611
|
+
|
|
9612
|
+
export declare type TourPlacement = Placement;
|
|
9613
|
+
|
|
9614
|
+
export declare interface TourProps {
|
|
9615
|
+
steps: TourStep[];
|
|
9616
|
+
/** Whether the tour is running (v-model). */
|
|
9617
|
+
modelValue?: boolean;
|
|
9618
|
+
/** The current step, from 0 (v-model:step). Optional: uncontrolled, every run starts at the first. */
|
|
9619
|
+
step?: number;
|
|
9620
|
+
/** Space between the target and the edge of the highlight, in px. */
|
|
9621
|
+
padding?: number;
|
|
9622
|
+
/** Show where the tour is: a dot per step and "2 of 5". */
|
|
9623
|
+
showProgress?: boolean;
|
|
9624
|
+
/** Show the button that leaves the tour. */
|
|
9625
|
+
showCloseButton?: boolean;
|
|
9626
|
+
/** Leave the tour with Escape. */
|
|
9627
|
+
closeOnEscape?: boolean;
|
|
9628
|
+
shadow?: TourShadow;
|
|
9629
|
+
/** Additional CSS classes on the card. The highlight's corners follow `--tour-radius`. */
|
|
9630
|
+
class?: string;
|
|
9631
|
+
}
|
|
9632
|
+
|
|
9633
|
+
export declare type TourShadow = 'md' | 'lg' | 'xl' | '2xl';
|
|
9634
|
+
|
|
9635
|
+
export declare interface TourSlotContext {
|
|
9636
|
+
step: TourStep;
|
|
9637
|
+
index: number;
|
|
9638
|
+
total: number;
|
|
9639
|
+
next: () => void;
|
|
9640
|
+
prev: () => void;
|
|
9641
|
+
close: () => void;
|
|
9642
|
+
}
|
|
9643
|
+
|
|
9644
|
+
export declare interface TourSlots {
|
|
9645
|
+
/** More content under the description. */
|
|
9646
|
+
default?: (props: TourSlotContext) => unknown;
|
|
9647
|
+
/** Replaces the progress and the buttons. */
|
|
9648
|
+
footer?: (props: TourSlotContext) => unknown;
|
|
9649
|
+
}
|
|
9650
|
+
|
|
9651
|
+
/** The cut-out: its own shadow, as large as the screen, is the scrim around it. */
|
|
9652
|
+
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";
|
|
9653
|
+
|
|
9654
|
+
export declare interface TourStep {
|
|
9655
|
+
/** Unique key. Falls back to the position. */
|
|
9656
|
+
id?: string;
|
|
9657
|
+
/** The part of the page this step is about: a CSS selector, an element or a function returning
|
|
9658
|
+
* one. Without it, or if it cannot be found, the step shows in the middle of the screen. */
|
|
9659
|
+
target?: string | Element | (() => Element | null | undefined);
|
|
9660
|
+
title: string;
|
|
9661
|
+
description?: string;
|
|
9662
|
+
/** Preferred side of the target. It flips when there is no room. */
|
|
9663
|
+
placement?: TourPlacement;
|
|
9664
|
+
/** Lets the highlighted part be used during this step, with pointer and keyboard. */
|
|
9665
|
+
interactive?: boolean;
|
|
9666
|
+
}
|
|
9667
|
+
|
|
8239
9668
|
/** A tile with its derived values. Passed to slots and events. */
|
|
8240
9669
|
export declare interface TreemapItem {
|
|
8241
9670
|
/** `2` for a top-level node, `2.1` for its second child. */
|
|
@@ -8397,6 +9826,44 @@ export declare interface TypewriterProps {
|
|
|
8397
9826
|
|
|
8398
9827
|
export declare const typewriterTheme = "inline";
|
|
8399
9828
|
|
|
9829
|
+
/**
|
|
9830
|
+
* The upload side of OFileUpload: queue, progress, errors, retry and cancel.
|
|
9831
|
+
*
|
|
9832
|
+
* const { files, statusOf, retry } = useFileUpload((file, { onProgress, signal }) => send(file))
|
|
9833
|
+
* <OFileUpload v-model="files" :file-status="statusOf" multiple @retry="retry" />
|
|
9834
|
+
*/
|
|
9835
|
+
export declare function useFileUpload<T = unknown>(upload: FileUploader<T>, options?: UseFileUploadOptions<T>): UseFileUploadReturn<T>;
|
|
9836
|
+
|
|
9837
|
+
export declare interface UseFileUploadOptions<T> {
|
|
9838
|
+
/** Files sent at the same time; the rest wait their turn. Defaults to 3. */
|
|
9839
|
+
concurrency?: number;
|
|
9840
|
+
onSuccess?: (file: File, result: T) => void;
|
|
9841
|
+
/** An upload failed. A cancelled one is not a failure. */
|
|
9842
|
+
onError?: (file: File, error: unknown) => void;
|
|
9843
|
+
/**
|
|
9844
|
+
* The message of a failed row. Without it, or when it returns nothing, the row shows the translated
|
|
9845
|
+
* "Upload failed", so that technical errors never reach the user by accident.
|
|
9846
|
+
*/
|
|
9847
|
+
errorMessage?: (error: unknown, file: File) => string | undefined;
|
|
9848
|
+
}
|
|
9849
|
+
|
|
9850
|
+
export declare interface UseFileUploadReturn<T> {
|
|
9851
|
+
/** Bind with v-model: a file that enters is uploaded, one that leaves is aborted. */
|
|
9852
|
+
files: Ref<File[]>;
|
|
9853
|
+
/** Bind to `file-status`. */
|
|
9854
|
+
statusOf: (file: File) => FileUploadStatus | undefined;
|
|
9855
|
+
/** What the upload function resolved with. */
|
|
9856
|
+
resultOf: (file: File) => T | undefined;
|
|
9857
|
+
/** True while any file is waiting or being sent: disable your submit button with it. */
|
|
9858
|
+
isUploading: ComputedRef<boolean>;
|
|
9859
|
+
/** Bind to `@retry`. */
|
|
9860
|
+
retry: (file: File) => void;
|
|
9861
|
+
/** Aborts a file and takes it off the list. */
|
|
9862
|
+
cancel: (file: File) => void;
|
|
9863
|
+
/** Aborts everything and empties the list. */
|
|
9864
|
+
clear: () => void;
|
|
9865
|
+
}
|
|
9866
|
+
|
|
8400
9867
|
export declare function useFormContext(): FormContext | undefined;
|
|
8401
9868
|
|
|
8402
9869
|
/**
|
|
@@ -8476,6 +9943,75 @@ declare const vTooltip: ObjectDirective<HTMLElement, TooltipDirectiveBinding | u
|
|
|
8476
9943
|
export { vTooltip as tooltipDirective }
|
|
8477
9944
|
export { vTooltip }
|
|
8478
9945
|
|
|
9946
|
+
/** A bar with its derived values. Passed to slots and events. */
|
|
9947
|
+
export declare interface WaterfallBar {
|
|
9948
|
+
key: string;
|
|
9949
|
+
index: number;
|
|
9950
|
+
label: string;
|
|
9951
|
+
kind: WaterfallKind;
|
|
9952
|
+
/** The change, or the total for a total. */
|
|
9953
|
+
value: number;
|
|
9954
|
+
/** The running total before and after. A total starts at 0. */
|
|
9955
|
+
start: number;
|
|
9956
|
+
end: number;
|
|
9957
|
+
color: string;
|
|
9958
|
+
/** The change with its sign, or the total. */
|
|
9959
|
+
formatted: string;
|
|
9960
|
+
/** The running total after this bar. */
|
|
9961
|
+
formattedEnd: string;
|
|
9962
|
+
}
|
|
9963
|
+
|
|
9964
|
+
export declare interface WaterfallChartProps {
|
|
9965
|
+
data: WaterfallDatum[];
|
|
9966
|
+
/** Chart height in px. Width is fluid. */
|
|
9967
|
+
height?: number;
|
|
9968
|
+
/** Corner radius of the bars, in px. */
|
|
9969
|
+
barRadius?: number;
|
|
9970
|
+
/** Space between bars as a share of each slot, from 0 to 0.9. */
|
|
9971
|
+
barGap?: number;
|
|
9972
|
+
increaseColor?: string;
|
|
9973
|
+
decreaseColor?: string;
|
|
9974
|
+
totalColor?: string;
|
|
9975
|
+
/** Dashed lines carrying the level from each bar to the next. */
|
|
9976
|
+
connectors?: boolean;
|
|
9977
|
+
/** Write each value above its bar, where there is room. */
|
|
9978
|
+
showValues?: boolean;
|
|
9979
|
+
grid?: boolean;
|
|
9980
|
+
showXAxis?: boolean;
|
|
9981
|
+
showYAxis?: boolean;
|
|
9982
|
+
formatValue?: (value: number) => string;
|
|
9983
|
+
/** Words for the tooltip and screen readers: the running total. */
|
|
9984
|
+
totalLabel?: string;
|
|
9985
|
+
interactive?: boolean;
|
|
9986
|
+
tooltip?: boolean;
|
|
9987
|
+
/** Highlighted bar. Optional: the chart tracks hover by itself; bind v-model:focused to read or drive it. */
|
|
9988
|
+
focused?: number | null;
|
|
9989
|
+
animated?: boolean;
|
|
9990
|
+
label?: string;
|
|
9991
|
+
class?: string;
|
|
9992
|
+
}
|
|
9993
|
+
|
|
9994
|
+
export declare interface WaterfallChartSlots {
|
|
9995
|
+
tooltip?: (props: {
|
|
9996
|
+
bar: WaterfallBar;
|
|
9997
|
+
}) => unknown;
|
|
9998
|
+
}
|
|
9999
|
+
|
|
10000
|
+
export declare interface WaterfallDatum {
|
|
10001
|
+
/** Unique key. Falls back to the label. */
|
|
10002
|
+
id?: string;
|
|
10003
|
+
label: string;
|
|
10004
|
+
/** The change to the running total, positive or negative. */
|
|
10005
|
+
value?: number;
|
|
10006
|
+
/** A bar from zero showing where things stand. With a `value`, it sets the running total to it,
|
|
10007
|
+
* as an opening balance does; without one, it shows what the changes have added up to. */
|
|
10008
|
+
total?: boolean;
|
|
10009
|
+
/** Token name or any CSS color, instead of the colour of its kind. */
|
|
10010
|
+
color?: string;
|
|
10011
|
+
}
|
|
10012
|
+
|
|
10013
|
+
export declare type WaterfallKind = 'increase' | 'decrease' | 'total';
|
|
10014
|
+
|
|
8479
10015
|
export declare type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
8480
10016
|
|
|
8481
10017
|
export { }
|