@vtj/ui 0.9.29 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  import { MenuDataItem } from '../../';
2
2
  import { MaskTab } from '../types';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
4
+ import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../../container';
5
+ import { OnCleanup } from '@vue/reactivity';
4
6
  export interface Props {
5
7
  tabs: MaskTab[];
6
8
  home: MaskTab;
@@ -20,5 +22,256 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
20
22
  onRemove?: ((tab: MaskTab) => any) | undefined;
21
23
  onRefresh?: ((tab: MaskTab) => any) | undefined;
22
24
  onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
26
+ tabsRef: ({
27
+ $: ComponentInternalInstance;
28
+ $data: {};
29
+ $props: Partial<{
30
+ padding: boolean;
31
+ tag: string;
32
+ wrap: ContainerWrap;
33
+ fit: boolean;
34
+ flex: boolean;
35
+ inline: boolean;
36
+ direction: ContainerDirection;
37
+ justify: ContainerJustifyContent;
38
+ align: ContainerAlignItems;
39
+ alignContent: ContainerAlignContent;
40
+ grow: boolean;
41
+ shrink: boolean;
42
+ alignSelf: "auto" | ContainerAlignItems;
43
+ gap: boolean;
44
+ autoPointer: boolean;
45
+ }> & Omit<{
46
+ readonly padding: boolean;
47
+ readonly tag: string;
48
+ readonly wrap: ContainerWrap;
49
+ readonly fit: boolean;
50
+ readonly flex: boolean;
51
+ readonly inline: boolean;
52
+ readonly direction: ContainerDirection;
53
+ readonly justify: ContainerJustifyContent;
54
+ readonly align: ContainerAlignItems;
55
+ readonly alignContent: ContainerAlignContent;
56
+ readonly grow: boolean;
57
+ readonly shrink: boolean;
58
+ readonly alignSelf: "auto" | ContainerAlignItems;
59
+ readonly gap: boolean;
60
+ readonly autoPointer: boolean;
61
+ readonly width?: string | number | undefined;
62
+ readonly height?: string | number | undefined;
63
+ readonly overflow?: "hidden" | "auto" | "visible" | undefined;
64
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
65
+ $attrs: {
66
+ [x: string]: unknown;
67
+ };
68
+ $refs: {
69
+ [x: string]: unknown;
70
+ } & {
71
+ elRef: unknown;
72
+ };
73
+ $slots: Readonly<{
74
+ [name: string]: Slot<any> | undefined;
75
+ }>;
76
+ $root: ComponentPublicInstance | null;
77
+ $parent: ComponentPublicInstance | null;
78
+ $host: Element | null;
79
+ $emit: (event: string, ...args: any[]) => void;
80
+ $el: any;
81
+ $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
82
+ tag: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ fit: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ width: {
91
+ type: (StringConstructor | NumberConstructor)[];
92
+ };
93
+ height: {
94
+ type: (StringConstructor | NumberConstructor)[];
95
+ };
96
+ flex: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ inline: {
101
+ type: BooleanConstructor;
102
+ };
103
+ direction: {
104
+ type: PropType<ContainerDirection>;
105
+ default: string;
106
+ };
107
+ wrap: {
108
+ type: PropType<ContainerWrap>;
109
+ default: string;
110
+ };
111
+ justify: {
112
+ type: PropType<ContainerJustifyContent>;
113
+ default: string;
114
+ };
115
+ align: {
116
+ type: PropType<ContainerAlignItems>;
117
+ default: string;
118
+ };
119
+ alignContent: {
120
+ type: PropType<ContainerAlignContent>;
121
+ default: string;
122
+ };
123
+ grow: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ shrink: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ alignSelf: {
132
+ type: PropType<"auto" | ContainerAlignItems>;
133
+ default: string;
134
+ };
135
+ overflow: {
136
+ type: PropType<"auto" | "hidden" | "visible">;
137
+ };
138
+ padding: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ gap: {
143
+ type: BooleanConstructor;
144
+ };
145
+ autoPointer: {
146
+ type: BooleanConstructor;
147
+ };
148
+ }>> & Readonly<{}>, {
149
+ $vtjEl: ComputedRef<any>;
150
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
151
+ padding: boolean;
152
+ tag: string;
153
+ wrap: ContainerWrap;
154
+ fit: boolean;
155
+ flex: boolean;
156
+ inline: boolean;
157
+ direction: ContainerDirection;
158
+ justify: ContainerJustifyContent;
159
+ align: ContainerAlignItems;
160
+ alignContent: ContainerAlignContent;
161
+ grow: boolean;
162
+ shrink: boolean;
163
+ alignSelf: "auto" | ContainerAlignItems;
164
+ gap: boolean;
165
+ autoPointer: boolean;
166
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
167
+ beforeCreate?: (() => void) | (() => void)[];
168
+ created?: (() => void) | (() => void)[];
169
+ beforeMount?: (() => void) | (() => void)[];
170
+ mounted?: (() => void) | (() => void)[];
171
+ beforeUpdate?: (() => void) | (() => void)[];
172
+ updated?: (() => void) | (() => void)[];
173
+ activated?: (() => void) | (() => void)[];
174
+ deactivated?: (() => void) | (() => void)[];
175
+ beforeDestroy?: (() => void) | (() => void)[];
176
+ beforeUnmount?: (() => void) | (() => void)[];
177
+ destroyed?: (() => void) | (() => void)[];
178
+ unmounted?: (() => void) | (() => void)[];
179
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
180
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
181
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
182
+ };
183
+ $forceUpdate: () => void;
184
+ $nextTick: nextTick;
185
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
186
+ } & Readonly<{
187
+ padding: boolean;
188
+ tag: string;
189
+ wrap: ContainerWrap;
190
+ fit: boolean;
191
+ flex: boolean;
192
+ inline: boolean;
193
+ direction: ContainerDirection;
194
+ justify: ContainerJustifyContent;
195
+ align: ContainerAlignItems;
196
+ alignContent: ContainerAlignContent;
197
+ grow: boolean;
198
+ shrink: boolean;
199
+ alignSelf: "auto" | ContainerAlignItems;
200
+ gap: boolean;
201
+ autoPointer: boolean;
202
+ }> & Omit<Readonly< ExtractPropTypes<{
203
+ tag: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ fit: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ width: {
212
+ type: (StringConstructor | NumberConstructor)[];
213
+ };
214
+ height: {
215
+ type: (StringConstructor | NumberConstructor)[];
216
+ };
217
+ flex: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ inline: {
222
+ type: BooleanConstructor;
223
+ };
224
+ direction: {
225
+ type: PropType<ContainerDirection>;
226
+ default: string;
227
+ };
228
+ wrap: {
229
+ type: PropType<ContainerWrap>;
230
+ default: string;
231
+ };
232
+ justify: {
233
+ type: PropType<ContainerJustifyContent>;
234
+ default: string;
235
+ };
236
+ align: {
237
+ type: PropType<ContainerAlignItems>;
238
+ default: string;
239
+ };
240
+ alignContent: {
241
+ type: PropType<ContainerAlignContent>;
242
+ default: string;
243
+ };
244
+ grow: {
245
+ type: BooleanConstructor;
246
+ default: boolean;
247
+ };
248
+ shrink: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ alignSelf: {
253
+ type: PropType<"auto" | ContainerAlignItems>;
254
+ default: string;
255
+ };
256
+ overflow: {
257
+ type: PropType<"auto" | "hidden" | "visible">;
258
+ };
259
+ padding: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
263
+ gap: {
264
+ type: BooleanConstructor;
265
+ };
266
+ autoPointer: {
267
+ type: BooleanConstructor;
268
+ };
269
+ }>> & Readonly<{}>, ("padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer") | "$vtjEl"> & ShallowUnwrapRef<{
270
+ $vtjEl: ComputedRef<any>;
271
+ }> & {} & ComponentCustomProperties & {} & {
272
+ $slots: {
273
+ default?(_: {}): any;
274
+ };
275
+ }) | null;
276
+ }, any>;
24
277
  export default _default;
@@ -57,6 +57,8 @@ declare function __VLS_template(): {
57
57
  };
58
58
  $refs: {
59
59
  [x: string]: unknown;
60
+ } & {
61
+ elRef: unknown;
60
62
  };
61
63
  $slots: Readonly<{
62
64
  [name: string]: Slot<any> | undefined;
@@ -346,7 +348,258 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
346
348
  fit: boolean;
347
349
  border: boolean;
348
350
  card: boolean;
349
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
351
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
352
+ bodyRef: ({
353
+ $: ComponentInternalInstance;
354
+ $data: {};
355
+ $props: Partial<{
356
+ padding: boolean;
357
+ tag: string;
358
+ wrap: ContainerWrap;
359
+ fit: boolean;
360
+ flex: boolean;
361
+ inline: boolean;
362
+ direction: ContainerDirection;
363
+ justify: ContainerJustifyContent;
364
+ align: ContainerAlignItems;
365
+ alignContent: ContainerAlignContent;
366
+ grow: boolean;
367
+ shrink: boolean;
368
+ alignSelf: "auto" | ContainerAlignItems;
369
+ gap: boolean;
370
+ autoPointer: boolean;
371
+ }> & Omit<{
372
+ readonly padding: boolean;
373
+ readonly tag: string;
374
+ readonly wrap: ContainerWrap;
375
+ readonly fit: boolean;
376
+ readonly flex: boolean;
377
+ readonly inline: boolean;
378
+ readonly direction: ContainerDirection;
379
+ readonly justify: ContainerJustifyContent;
380
+ readonly align: ContainerAlignItems;
381
+ readonly alignContent: ContainerAlignContent;
382
+ readonly grow: boolean;
383
+ readonly shrink: boolean;
384
+ readonly alignSelf: "auto" | ContainerAlignItems;
385
+ readonly gap: boolean;
386
+ readonly autoPointer: boolean;
387
+ readonly width?: string | number | undefined;
388
+ readonly height?: string | number | undefined;
389
+ readonly overflow?: "hidden" | "auto" | "visible" | undefined;
390
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
391
+ $attrs: {
392
+ [x: string]: unknown;
393
+ };
394
+ $refs: {
395
+ [x: string]: unknown;
396
+ } & {
397
+ elRef: unknown;
398
+ };
399
+ $slots: Readonly<{
400
+ [name: string]: Slot<any> | undefined;
401
+ }>;
402
+ $root: ComponentPublicInstance | null;
403
+ $parent: ComponentPublicInstance | null;
404
+ $host: Element | null;
405
+ $emit: (event: string, ...args: any[]) => void;
406
+ $el: any;
407
+ $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
408
+ tag: {
409
+ type: StringConstructor;
410
+ default: string;
411
+ };
412
+ fit: {
413
+ type: BooleanConstructor;
414
+ default: boolean;
415
+ };
416
+ width: {
417
+ type: (StringConstructor | NumberConstructor)[];
418
+ };
419
+ height: {
420
+ type: (StringConstructor | NumberConstructor)[];
421
+ };
422
+ flex: {
423
+ type: BooleanConstructor;
424
+ default: boolean;
425
+ };
426
+ inline: {
427
+ type: BooleanConstructor;
428
+ };
429
+ direction: {
430
+ type: PropType<ContainerDirection>;
431
+ default: string;
432
+ };
433
+ wrap: {
434
+ type: PropType<ContainerWrap>;
435
+ default: string;
436
+ };
437
+ justify: {
438
+ type: PropType<ContainerJustifyContent>;
439
+ default: string;
440
+ };
441
+ align: {
442
+ type: PropType<ContainerAlignItems>;
443
+ default: string;
444
+ };
445
+ alignContent: {
446
+ type: PropType<ContainerAlignContent>;
447
+ default: string;
448
+ };
449
+ grow: {
450
+ type: BooleanConstructor;
451
+ default: boolean;
452
+ };
453
+ shrink: {
454
+ type: BooleanConstructor;
455
+ default: boolean;
456
+ };
457
+ alignSelf: {
458
+ type: PropType<"auto" | ContainerAlignItems>;
459
+ default: string;
460
+ };
461
+ overflow: {
462
+ type: PropType<"auto" | "hidden" | "visible">;
463
+ };
464
+ padding: {
465
+ type: BooleanConstructor;
466
+ default: boolean;
467
+ };
468
+ gap: {
469
+ type: BooleanConstructor;
470
+ };
471
+ autoPointer: {
472
+ type: BooleanConstructor;
473
+ };
474
+ }>> & Readonly<{}>, {
475
+ $vtjEl: ComputedRef<any>;
476
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
477
+ padding: boolean;
478
+ tag: string;
479
+ wrap: ContainerWrap;
480
+ fit: boolean;
481
+ flex: boolean;
482
+ inline: boolean;
483
+ direction: ContainerDirection;
484
+ justify: ContainerJustifyContent;
485
+ align: ContainerAlignItems;
486
+ alignContent: ContainerAlignContent;
487
+ grow: boolean;
488
+ shrink: boolean;
489
+ alignSelf: "auto" | ContainerAlignItems;
490
+ gap: boolean;
491
+ autoPointer: boolean;
492
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
493
+ beforeCreate?: (() => void) | (() => void)[];
494
+ created?: (() => void) | (() => void)[];
495
+ beforeMount?: (() => void) | (() => void)[];
496
+ mounted?: (() => void) | (() => void)[];
497
+ beforeUpdate?: (() => void) | (() => void)[];
498
+ updated?: (() => void) | (() => void)[];
499
+ activated?: (() => void) | (() => void)[];
500
+ deactivated?: (() => void) | (() => void)[];
501
+ beforeDestroy?: (() => void) | (() => void)[];
502
+ beforeUnmount?: (() => void) | (() => void)[];
503
+ destroyed?: (() => void) | (() => void)[];
504
+ unmounted?: (() => void) | (() => void)[];
505
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
506
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
507
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
508
+ };
509
+ $forceUpdate: () => void;
510
+ $nextTick: nextTick;
511
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
512
+ } & Readonly<{
513
+ padding: boolean;
514
+ tag: string;
515
+ wrap: ContainerWrap;
516
+ fit: boolean;
517
+ flex: boolean;
518
+ inline: boolean;
519
+ direction: ContainerDirection;
520
+ justify: ContainerJustifyContent;
521
+ align: ContainerAlignItems;
522
+ alignContent: ContainerAlignContent;
523
+ grow: boolean;
524
+ shrink: boolean;
525
+ alignSelf: "auto" | ContainerAlignItems;
526
+ gap: boolean;
527
+ autoPointer: boolean;
528
+ }> & Omit<Readonly< ExtractPropTypes<{
529
+ tag: {
530
+ type: StringConstructor;
531
+ default: string;
532
+ };
533
+ fit: {
534
+ type: BooleanConstructor;
535
+ default: boolean;
536
+ };
537
+ width: {
538
+ type: (StringConstructor | NumberConstructor)[];
539
+ };
540
+ height: {
541
+ type: (StringConstructor | NumberConstructor)[];
542
+ };
543
+ flex: {
544
+ type: BooleanConstructor;
545
+ default: boolean;
546
+ };
547
+ inline: {
548
+ type: BooleanConstructor;
549
+ };
550
+ direction: {
551
+ type: PropType<ContainerDirection>;
552
+ default: string;
553
+ };
554
+ wrap: {
555
+ type: PropType<ContainerWrap>;
556
+ default: string;
557
+ };
558
+ justify: {
559
+ type: PropType<ContainerJustifyContent>;
560
+ default: string;
561
+ };
562
+ align: {
563
+ type: PropType<ContainerAlignItems>;
564
+ default: string;
565
+ };
566
+ alignContent: {
567
+ type: PropType<ContainerAlignContent>;
568
+ default: string;
569
+ };
570
+ grow: {
571
+ type: BooleanConstructor;
572
+ default: boolean;
573
+ };
574
+ shrink: {
575
+ type: BooleanConstructor;
576
+ default: boolean;
577
+ };
578
+ alignSelf: {
579
+ type: PropType<"auto" | ContainerAlignItems>;
580
+ default: string;
581
+ };
582
+ overflow: {
583
+ type: PropType<"auto" | "hidden" | "visible">;
584
+ };
585
+ padding: {
586
+ type: BooleanConstructor;
587
+ default: boolean;
588
+ };
589
+ gap: {
590
+ type: BooleanConstructor;
591
+ };
592
+ autoPointer: {
593
+ type: BooleanConstructor;
594
+ };
595
+ }>> & Readonly<{}>, ("padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer") | "$vtjEl"> & ShallowUnwrapRef<{
596
+ $vtjEl: ComputedRef<any>;
597
+ }> & {} & ComponentCustomProperties & {} & {
598
+ $slots: {
599
+ default?(_: {}): any;
600
+ };
601
+ }) | null;
602
+ }, any>;
350
603
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
351
604
  export default _default;
352
605
  type __VLS_WithTemplateSlots<T, S> = T & {