bilitoolkit-ui 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
+ import { AppContext } from 'vue';
3
4
  import { AppThemeBackgroundMode } from 'bilitoolkit-types';
4
5
  import { AppThemeMode } from 'bilitoolkit-types';
5
6
  import { AppThemeState } from 'bilitoolkit-types';
@@ -20,6 +21,7 @@ import { ModelRef } from 'vue';
20
21
  import { Pinia } from 'pinia';
21
22
  import { PublicProps } from 'vue';
22
23
  import { Ref } from 'vue';
24
+ import { Resolver } from '@ybgnb/utils';
23
25
  import { ShallowRef } from 'vue';
24
26
  import { ShallowUnwrapRef } from 'vue';
25
27
  import { StoreDefinition } from 'pinia';
@@ -37,23 +39,23 @@ import { VNodeProps } from 'vue';
37
39
 
38
40
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
39
41
 
40
- declare const __VLS_component_10: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
42
+ declare const __VLS_component_10: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
41
43
  action: (action: DownloadTaskAction, task: DownloadTask) => any;
42
- }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
44
+ }, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
43
45
  onAction?: ((action: DownloadTaskAction, task: DownloadTask) => any) | undefined;
44
46
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
45
47
 
46
- declare const __VLS_component_11: DefineComponent<__VLS_Props_12, {
48
+ declare const __VLS_component_11: DefineComponent<__VLS_Props_13, {
47
49
  refresh: () => Promise<void>;
48
50
  resetAndRefresh: () => Promise<void>;
49
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {
51
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {
50
52
  pageSizes: number[];
51
53
  showDefaultActions: boolean;
52
54
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
53
55
  refList: HTMLDivElement;
54
56
  }, any>;
55
57
 
56
- declare const __VLS_component_12: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
58
+ declare const __VLS_component_12: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
57
59
 
58
60
  declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
59
61
 
@@ -64,9 +66,9 @@ ellipsis: "right" | "left";
64
66
  refContent: HTMLDivElement;
65
67
  }, HTMLDivElement>;
66
68
 
67
- declare const __VLS_component_4: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
69
+ declare const __VLS_component_4: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
68
70
 
69
- declare const __VLS_component_5: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
71
+ declare const __VLS_component_5: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
70
72
 
71
73
  declare const __VLS_component_6: DefineComponent<BiliUserCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BiliUserCardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
72
74
 
@@ -94,53 +96,61 @@ declare type __VLS_PrettifyLocal_2<T> = {
94
96
  [K in keyof T]: T[K];
95
97
  } & {};
96
98
 
99
+ declare type __VLS_PrettifyLocal_3<T> = {
100
+ [K in keyof T]: T[K];
101
+ } & {};
102
+
97
103
  declare type __VLS_Props = {
98
104
  name: string;
99
105
  };
100
106
 
101
107
  declare type __VLS_Props_10 = {
102
- task?: DownloadTask;
108
+ visible: boolean;
109
+ title?: string;
110
+ message: string;
111
+ confirmButtonText?: string;
112
+ cancelButtonText?: string;
103
113
  };
104
114
 
105
115
  declare type __VLS_Props_11 = {
106
- task: DownloadTask;
116
+ task?: DownloadTask;
107
117
  };
108
118
 
109
119
  declare type __VLS_Props_12 = {
120
+ task: DownloadTask;
121
+ };
122
+
123
+ declare type __VLS_Props_13 = {
110
124
  showDefaultActions?: boolean;
111
125
  pageSizes?: number[];
112
126
  };
113
127
 
114
- declare type __VLS_Props_13 = {
128
+ declare type __VLS_Props_14 = {
115
129
  task: DownloadTask;
116
130
  };
117
131
 
118
- declare type __VLS_Props_14 = {
132
+ declare type __VLS_Props_15 = {
119
133
  task: DownloadTask;
120
134
  resourceCount: number;
121
135
  isCompact?: boolean;
122
136
  };
123
137
 
124
- declare type __VLS_Props_15 = {
138
+ declare type __VLS_Props_16 = {
125
139
  type: DownloadResourceType;
126
140
  };
127
141
 
128
- declare type __VLS_Props_16 = {
142
+ declare type __VLS_Props_17 = {
129
143
  task: DownloadTask;
130
144
  videoCount: number;
131
145
  resourceCount: number;
132
146
  };
133
147
 
134
- declare type __VLS_Props_17 = {
135
- task: DownloadTask;
136
- };
137
-
138
148
  declare type __VLS_Props_18 = {
139
- video: DownloadVideo;
149
+ task: DownloadTask;
140
150
  };
141
151
 
142
152
  declare type __VLS_Props_19 = {
143
- part: DownloadVideoPart;
153
+ video: DownloadVideo;
144
154
  };
145
155
 
146
156
  declare type __VLS_Props_2 = {
@@ -150,54 +160,54 @@ declare type __VLS_Props_2 = {
150
160
  };
151
161
 
152
162
  declare type __VLS_Props_20 = {
163
+ part: DownloadVideoPart;
164
+ };
165
+
166
+ declare type __VLS_Props_21 = {
153
167
  stat: Omit<VideoStat, 'dislike'>;
154
168
  fields?: AvailableStat[];
155
169
  };
156
170
 
157
- declare type __VLS_Props_21 = {
171
+ declare type __VLS_Props_22 = {
158
172
  label: string;
159
173
  value: string | number;
160
174
  };
161
175
 
162
- declare type __VLS_Props_22 = {
176
+ declare type __VLS_Props_23 = {
163
177
  prefix: string;
164
178
  small?: boolean;
165
179
  };
166
180
 
167
- declare type __VLS_Props_23 = {
181
+ declare type __VLS_Props_24 = {
168
182
  content: string;
169
183
  };
170
184
 
171
185
  declare type __VLS_Props_3 = CountdownDialogProps;
172
186
 
173
- declare type __VLS_Props_4 = PageRangeDialogProps;
187
+ declare type __VLS_Props_4 = {
188
+ modelValue: boolean;
189
+ };
190
+
191
+ declare type __VLS_Props_5 = PageRangeDialogProps;
174
192
 
175
193
  /**
176
194
  * remix 图标
177
195
  * 根据应用主题自动切换图标类型
178
196
  */
179
- declare type __VLS_Props_5 = {
180
- icon: string;
181
- };
182
-
183
197
  declare type __VLS_Props_6 = {
184
198
  icon: string;
185
199
  };
186
200
 
187
201
  declare type __VLS_Props_7 = {
188
- url: string;
202
+ icon: string;
189
203
  };
190
204
 
191
205
  declare type __VLS_Props_8 = {
192
- user: Pick<UserInfoWithCookie, 'mid' | 'face' | 'name'>;
206
+ url: string;
193
207
  };
194
208
 
195
209
  declare type __VLS_Props_9 = {
196
- visible: boolean;
197
- title?: string;
198
- message: string;
199
- confirmButtonText?: string;
200
- cancelButtonText?: string;
210
+ user: Pick<UserInfoWithCookie, 'mid' | 'face' | 'name'>;
201
211
  };
202
212
 
203
213
  declare type __VLS_PublicProps = {
@@ -206,11 +216,11 @@ declare type __VLS_PublicProps = {
206
216
 
207
217
  declare type __VLS_PublicProps_2 = {
208
218
  modelValue: boolean;
209
- } & __VLS_Props_4;
219
+ } & __VLS_Props_5;
210
220
 
211
221
  declare type __VLS_PublicProps_3 = {
212
222
  modelValue: typeof visible['value'];
213
- } & __VLS_Props_10;
223
+ } & __VLS_Props_11;
214
224
 
215
225
  declare function __VLS_template(): {
216
226
  attrs: Partial<{}>;
@@ -1315,7 +1325,7 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1315
1325
 
1316
1326
  declare function addLog(msg: string): void;
1317
1327
 
1318
- declare const AppIcon_2: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
1328
+ declare const AppIcon_2: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
1319
1329
  export { AppIcon_2 as AppIcon }
1320
1330
 
1321
1331
  export declare type AppThemeCssVars = Record<string, string>;
@@ -1340,7 +1350,7 @@ export declare interface BiliUserCardProps {
1340
1350
  user: UserInfo;
1341
1351
  }
1342
1352
 
1343
- declare const BiliUserInfo_2: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1353
+ declare const BiliUserInfo_2: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1344
1354
  export { BiliUserInfo_2 as BiliUserInfo }
1345
1355
 
1346
1356
  export declare const blackColor = "#000000";
@@ -1375,10 +1385,15 @@ export declare interface CountdownDialogProps {
1375
1385
  width?: number;
1376
1386
  }
1377
1387
 
1378
- declare const DeleteConfirmDialog_2: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1388
+ declare interface DateTimeRangeResult {
1389
+ start: number;
1390
+ end: number;
1391
+ }
1392
+
1393
+ declare const DeleteConfirmDialog_2: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1379
1394
  confirm: (deleteSourceFile: boolean) => any;
1380
1395
  cancel: () => any;
1381
- }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
1396
+ }, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
1382
1397
  onConfirm?: ((deleteSourceFile: boolean) => any) | undefined;
1383
1398
  onCancel?: (() => any) | undefined;
1384
1399
  }>, {
@@ -1408,31 +1423,31 @@ export { DownloadItem_2 as DownloadItem }
1408
1423
  declare const DownloadManagePage_2: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1409
1424
  export { DownloadManagePage_2 as DownloadManagePage }
1410
1425
 
1411
- declare const DownloadProgress_2: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1426
+ declare const DownloadProgress_2: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1412
1427
  export { DownloadProgress_2 as DownloadProgress }
1413
1428
 
1414
- declare const DownloadProgressDetails_2: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1429
+ declare const DownloadProgressDetails_2: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1415
1430
  export { DownloadProgressDetails_2 as DownloadProgressDetails }
1416
1431
 
1417
- declare const DownloadResourceTag_2: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1432
+ declare const DownloadResourceTag_2: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1418
1433
  export { DownloadResourceTag_2 as DownloadResourceTag }
1419
1434
 
1420
- declare const DownloadResult_2: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1435
+ declare const DownloadResult_2: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1421
1436
  export { DownloadResult_2 as DownloadResult }
1422
1437
 
1423
- declare const DownloadStatus_2: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1438
+ declare const DownloadStatus_2: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1424
1439
  export { DownloadStatus_2 as DownloadStatus }
1425
1440
 
1426
1441
  declare type DownloadTaskAction = 'pause' | 'resume' | 'cancel' | 'delete' | 'open-folder' | 'show-details';
1427
1442
 
1428
- declare const DownloadVideoCard_2: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1443
+ declare const DownloadVideoCard_2: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1429
1444
  "open-folder": (partIndex: number) => any;
1430
- }, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
1445
+ }, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
1431
1446
  "onOpen-folder"?: ((partIndex: number) => any) | undefined;
1432
1447
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1433
1448
  export { DownloadVideoCard_2 as DownloadVideoCard }
1434
1449
 
1435
- declare const DownloadVideoPartCard_2: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1450
+ declare const DownloadVideoPartCard_2: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1436
1451
  export { DownloadVideoPartCard_2 as DownloadVideoPartCard }
1437
1452
 
1438
1453
  declare const ExternalLink_2: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
@@ -1514,7 +1529,7 @@ export declare const initTransparentColors: (primaryColor: string, vars: AppThem
1514
1529
  */
1515
1530
  export declare const isDarkTheme: (themeMode?: AppThemeMode) => Promise<boolean>;
1516
1531
 
1517
- declare const KeyValueTag_2: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1532
+ declare const KeyValueTag_2: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1518
1533
  export { KeyValueTag_2 as KeyValueTag }
1519
1534
 
1520
1535
  /**
@@ -1556,7 +1571,7 @@ logBoxRef: HTMLDivElement;
1556
1571
  }, HTMLDivElement>;
1557
1572
  export { LogPrint_2 as LogPrint }
1558
1573
 
1559
- declare const OverflowText_2: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1574
+ declare const OverflowText_2: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1560
1575
  containerRef: HTMLDivElement;
1561
1576
  textRef: HTMLSpanElement;
1562
1577
  }, any>;
@@ -1604,8 +1619,8 @@ export declare interface PageResult<D> extends PageData {
1604
1619
  data: D[];
1605
1620
  }
1606
1621
 
1607
- declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1608
- props: __VLS_PrettifyLocal_2<Pick<Partial<{}> & Omit<{
1622
+ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_3<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1623
+ props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
1609
1624
  readonly onSearch?: (() => any) | undefined;
1610
1625
  readonly onReset?: (() => any) | undefined;
1611
1626
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onReset" | "onSearch"> & PageTableProps<D, Q> & Partial<{}>> & PublicProps;
@@ -1743,6 +1758,38 @@ export declare type ProcessDialogStatus = 'loading' | 'success' | 'error';
1743
1758
  declare const QueryFormItem_2: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1744
1759
  export { QueryFormItem_2 as QueryFormItem }
1745
1760
 
1761
+ export declare const selectDateTimeRange: (options?: SelectDateTimeRangeOptions) => Promise<DateTimeRangeResult | null>;
1762
+
1763
+ declare const SelectDateTimeRange_2: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1764
+ confirm: (value: [Date, Date]) => any;
1765
+ cancel: () => any;
1766
+ "update:modelValue": (value: boolean) => any;
1767
+ }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
1768
+ onConfirm?: ((value: [Date, Date]) => any) | undefined;
1769
+ onCancel?: (() => any) | undefined;
1770
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1771
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1772
+ export { SelectDateTimeRange_2 as SelectDateTimeRange }
1773
+
1774
+ declare interface SelectDateTimeRangeOptions {
1775
+ /**
1776
+ * 初始时间范围。
1777
+ *
1778
+ * 可以传:
1779
+ * - [Date, Date]
1780
+ * - [毫秒时间戳, 毫秒时间戳]
1781
+ * - [秒级时间戳, 秒级时间戳]
1782
+ */
1783
+ defaultValue?: [Date | number, Date | number];
1784
+ /**
1785
+ * Vue appContext。
1786
+ *
1787
+ * 如果组件内部依赖全局 provide / plugin,
1788
+ * 建议传入当前 app._context。
1789
+ */
1790
+ appContext?: AppContext;
1791
+ }
1792
+
1746
1793
  declare const SelectDialog_2: <T = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1747
1794
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
1748
1795
  readonly onConfirm?: ((list: T[]) => any) | undefined;
@@ -1753,8 +1800,13 @@ declare const SelectDialog_2: <T = unknown>(__VLS_props: NonNullable<Awaited<typ
1753
1800
  expose(exposed: ShallowUnwrapRef< {}>): void;
1754
1801
  attrs: any;
1755
1802
  slots: {
1756
- item?(_: {}): any;
1757
- 'item-label'?(_: {}): any;
1803
+ list?(_: {}): any;
1804
+ item?(_: {
1805
+ item: T;
1806
+ }): any;
1807
+ 'item-label'?(_: {
1808
+ item: T;
1809
+ }): any;
1758
1810
  };
1759
1811
  emit: ((evt: "confirm", list: T[]) => void) & ((evt: "update:modelValue", value: boolean) => void);
1760
1812
  }>) => VNode & {
@@ -1818,6 +1870,8 @@ export declare function showToast({ message, type, duration, }: {
1818
1870
  duration?: number;
1819
1871
  }): void;
1820
1872
 
1873
+ export declare const showVirtualSelectDialog: <DATA = unknown, ID_KEY extends keyof DATA = keyof DATA>(options: VirtualSelectDialogProps<DATA, ID_KEY>) => Promise<DATA[] | undefined>;
1874
+
1821
1875
  /**
1822
1876
  * 显示警告提示
1823
1877
  */
@@ -2029,11 +2083,68 @@ setUser: (user: UserInfoWithCookie) => void;
2029
2083
  assertLoggedIn: () => void;
2030
2084
  }, "init" | "deleteUser" | "setUser" | "assertLoggedIn">>;
2031
2085
 
2032
- declare const VideoStatsInfo_2: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {
2086
+ declare const VideoStatsInfo_2: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {
2033
2087
  fields: AvailableStat[];
2034
2088
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2035
2089
  export { VideoStatsInfo_2 as VideoStatsInfo }
2036
2090
 
2091
+ declare const VirtualSelectDialog_2: <DATA = unknown, ID_KEY extends keyof DATA = keyof DATA>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2092
+ props: __VLS_PrettifyLocal_2<Pick<Partial<{}> & Omit<{
2093
+ readonly onConfirm?: ((list: DATA[]) => any) | undefined;
2094
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
2095
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onConfirm" | "onUpdate:modelValue"> & ({
2096
+ modelValue: boolean;
2097
+ } & VirtualSelectDialogProps<DATA, ID_KEY>) & Partial<{}>> & PublicProps;
2098
+ expose(exposed: ShallowUnwrapRef< {
2099
+ clearSelection: () => Promise<void>;
2100
+ getSelectionIds: () => Set<DATA[ID_KEY]>;
2101
+ setSelectionIds: (ids: DATA[ID_KEY][]) => Promise<void>;
2102
+ toggleAllSelection: () => Promise<void>;
2103
+ }>): void;
2104
+ attrs: any;
2105
+ slots: {
2106
+ list?(_: {}): any;
2107
+ item?(_: {
2108
+ item: DATA;
2109
+ index: number;
2110
+ }): any;
2111
+ 'prefix-icon'?(_: {
2112
+ selected: boolean;
2113
+ }): any;
2114
+ 'item-label'?(_: {
2115
+ item: DATA;
2116
+ index: number;
2117
+ }): any;
2118
+ 'footer-prepend'?(_: {
2119
+ allOptions: DATA[];
2120
+ selectOptionIds: Set<DATA[ID_KEY]>;
2121
+ }): any;
2122
+ 'footer-append'?(_: {
2123
+ allOptions: DATA[];
2124
+ selectOptionIds: Set<DATA[ID_KEY]>;
2125
+ }): any;
2126
+ };
2127
+ emit: ((evt: "confirm", list: DATA[]) => void) & ((evt: "update:modelValue", value: boolean) => void);
2128
+ }>) => VNode & {
2129
+ __ctx?: Awaited<typeof __VLS_setup>;
2130
+ };
2131
+ export { VirtualSelectDialog_2 as VirtualSelectDialog }
2132
+
2133
+ export declare interface VirtualSelectDialogProps<DATA = unknown, ID_KEY extends keyof DATA = keyof DATA> {
2134
+ title?: string;
2135
+ options: Resolver<DATA[]>;
2136
+ defaultSelectedIds?: Resolver<DATA[ID_KEY][]>;
2137
+ getDataLabel: (data: DATA) => string;
2138
+ idKey: ID_KEY;
2139
+ multiple?: boolean;
2140
+ canSelectAll?: boolean;
2141
+ confirmText?: string;
2142
+ cancelText?: string;
2143
+ noSelectionTip?: string;
2144
+ itemHeight?: number | ((data: DATA) => number);
2145
+ itemWidth?: number;
2146
+ }
2147
+
2037
2148
  declare const visible: ModelRef<boolean, string, boolean, boolean>;
2038
2149
 
2039
2150
  export declare const whiteColor = "#ffffff";