@1337exp/taoui 5.21.0 → 5.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +14 -5
- package/README.ru.md +14 -5
- package/dist/index.d.ts +187 -7
- package/dist/index.js +1419 -1232
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +3 -0
- package/skills/taoui/references/components.md +18 -3
- package/src/styles/contexts/frames.css +35 -0
- package/src/styles/index.css +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -202,11 +202,14 @@ defaultOpen?: boolean;
|
|
|
202
202
|
modelValue?: boolean;
|
|
203
203
|
/** Ключ панели в `TaoSpoilerGroup`. Без группы не используется. */
|
|
204
204
|
name?: string | number;
|
|
205
|
+
/** The outer frame; not set, it follows the frames context (`.tao-frames-soft`); `false`: the header fill alone sets the panel off. / Внешняя рамка; не задан — идёт за контекстом рамок; `false`: панель выделяет одна заливка шапки. */
|
|
206
|
+
bordered?: boolean;
|
|
205
207
|
}>, {
|
|
206
208
|
title: string;
|
|
207
209
|
defaultOpen: boolean;
|
|
208
210
|
modelValue: undefined;
|
|
209
211
|
name: undefined;
|
|
212
|
+
bordered: undefined;
|
|
210
213
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
211
214
|
change: (value: boolean) => void;
|
|
212
215
|
"update:modelValue": (value: boolean) => void;
|
|
@@ -216,17 +219,21 @@ defaultOpen?: boolean;
|
|
|
216
219
|
modelValue?: boolean;
|
|
217
220
|
/** Ключ панели в `TaoSpoilerGroup`. Без группы не используется. */
|
|
218
221
|
name?: string | number;
|
|
222
|
+
/** The outer frame; not set, it follows the frames context (`.tao-frames-soft`); `false`: the header fill alone sets the panel off. / Внешняя рамка; не задан — идёт за контекстом рамок; `false`: панель выделяет одна заливка шапки. */
|
|
223
|
+
bordered?: boolean;
|
|
219
224
|
}>, {
|
|
220
225
|
title: string;
|
|
221
226
|
defaultOpen: boolean;
|
|
222
227
|
modelValue: undefined;
|
|
223
228
|
name: undefined;
|
|
229
|
+
bordered: undefined;
|
|
224
230
|
}>>> & Readonly<{
|
|
225
231
|
onChange?: ((value: boolean) => any) | undefined;
|
|
226
232
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
227
233
|
}>, {
|
|
228
234
|
name: string | number;
|
|
229
235
|
title: string;
|
|
236
|
+
bordered: boolean;
|
|
230
237
|
modelValue: boolean;
|
|
231
238
|
defaultOpen: boolean;
|
|
232
239
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -963,10 +970,13 @@ size?: TaoSize;
|
|
|
963
970
|
ariaLabel?: string;
|
|
964
971
|
/** Close an open menu when the page scrolls (otherwise it follows its entry). / Закрывать меню при прокрутке (иначе оно едет за пунктом). */
|
|
965
972
|
closeOnScroll?: boolean;
|
|
973
|
+
/** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
|
|
974
|
+
bordered?: boolean;
|
|
966
975
|
}>, {
|
|
967
976
|
size: undefined;
|
|
968
977
|
ariaLabel: undefined;
|
|
969
978
|
closeOnScroll: boolean;
|
|
979
|
+
bordered: undefined;
|
|
970
980
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
971
981
|
select: (id: string) => void;
|
|
972
982
|
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_34<__VLS_TypePropsToRuntimeProps_38<{
|
|
@@ -978,14 +988,18 @@ size?: TaoSize;
|
|
|
978
988
|
ariaLabel?: string;
|
|
979
989
|
/** Close an open menu when the page scrolls (otherwise it follows its entry). / Закрывать меню при прокрутке (иначе оно едет за пунктом). */
|
|
980
990
|
closeOnScroll?: boolean;
|
|
991
|
+
/** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
|
|
992
|
+
bordered?: boolean;
|
|
981
993
|
}>, {
|
|
982
994
|
size: undefined;
|
|
983
995
|
ariaLabel: undefined;
|
|
984
996
|
closeOnScroll: boolean;
|
|
997
|
+
bordered: undefined;
|
|
985
998
|
}>>> & Readonly<{
|
|
986
999
|
onSelect?: ((id: string) => any) | undefined;
|
|
987
1000
|
}>, {
|
|
988
1001
|
size: TaoSize;
|
|
1002
|
+
bordered: boolean;
|
|
989
1003
|
ariaLabel: string;
|
|
990
1004
|
closeOnScroll: boolean;
|
|
991
1005
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -999,11 +1013,14 @@ size?: TaoSize;
|
|
|
999
1013
|
orientation?: TaoToolbarOrientation;
|
|
1000
1014
|
/** `panel` — a raised bar of its own; `plain` — only the layout, for a toolbar inside a header. */
|
|
1001
1015
|
variant?: "panel" | "plain";
|
|
1016
|
+
/** The frame of a `panel`; not set, it follows the frames context (`.tao-frames-soft`). / Рамка `panel`; не задан — идёт за контекстом рамок. */
|
|
1017
|
+
bordered?: boolean;
|
|
1002
1018
|
}>, {
|
|
1003
1019
|
label: undefined;
|
|
1004
1020
|
size: undefined;
|
|
1005
1021
|
orientation: string;
|
|
1006
1022
|
variant: string;
|
|
1023
|
+
bordered: undefined;
|
|
1007
1024
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_35<__VLS_TypePropsToRuntimeProps_39<{
|
|
1008
1025
|
/** Accessible name: «Formatting», «Tools». / Доступное имя: «Форматирование», «Инструменты». */
|
|
1009
1026
|
label?: string;
|
|
@@ -1013,14 +1030,18 @@ size?: TaoSize;
|
|
|
1013
1030
|
orientation?: TaoToolbarOrientation;
|
|
1014
1031
|
/** `panel` — a raised bar of its own; `plain` — only the layout, for a toolbar inside a header. */
|
|
1015
1032
|
variant?: "panel" | "plain";
|
|
1033
|
+
/** The frame of a `panel`; not set, it follows the frames context (`.tao-frames-soft`). / Рамка `panel`; не задан — идёт за контекстом рамок. */
|
|
1034
|
+
bordered?: boolean;
|
|
1016
1035
|
}>, {
|
|
1017
1036
|
label: undefined;
|
|
1018
1037
|
size: undefined;
|
|
1019
1038
|
orientation: string;
|
|
1020
1039
|
variant: string;
|
|
1040
|
+
bordered: undefined;
|
|
1021
1041
|
}>>> & Readonly<{}>, {
|
|
1022
1042
|
size: TaoSize;
|
|
1023
1043
|
label: string;
|
|
1044
|
+
bordered: boolean;
|
|
1024
1045
|
variant: "panel" | "plain";
|
|
1025
1046
|
orientation: TaoToolbarOrientation;
|
|
1026
1047
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1617,12 +1638,12 @@ paused: boolean;
|
|
|
1617
1638
|
}>>> & Readonly<{}>, {
|
|
1618
1639
|
text: string;
|
|
1619
1640
|
speed: number;
|
|
1641
|
+
decorative: boolean;
|
|
1620
1642
|
gap: number;
|
|
1621
1643
|
paused: boolean;
|
|
1622
1644
|
fade: number;
|
|
1623
1645
|
pauseOnHover: boolean;
|
|
1624
1646
|
roundPause: boolean;
|
|
1625
|
-
decorative: boolean;
|
|
1626
1647
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1627
1648
|
|
|
1628
1649
|
declare const __VLS_component_46: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_46<__VLS_TypePropsToRuntimeProps_50<{
|
|
@@ -2362,6 +2383,11 @@ collapsible?: boolean;
|
|
|
2362
2383
|
collapsed?: boolean;
|
|
2363
2384
|
/** The toggle text when there is no title. / Текст переключателя, когда нет заголовка. */
|
|
2364
2385
|
detailsLabel?: string;
|
|
2386
|
+
/**
|
|
2387
|
+
* Not set, it follows the frames context (`.tao-frames-soft`). `false` is a light style: no frame, a stronger tint of the tone instead (the border stays in the box, so nothing moves); `true` keeps the frame.
|
|
2388
|
+
* Не задан — идёт за контекстом рамок (`.tao-frames-soft`). `false` — лёгкий стиль: рамки нет, вместо неё гуще тон заливки (рамка остаётся в боксе); `true` — рамка остаётся.
|
|
2389
|
+
*/
|
|
2390
|
+
bordered?: boolean;
|
|
2365
2391
|
}>, {
|
|
2366
2392
|
tone: string;
|
|
2367
2393
|
title: string;
|
|
@@ -2369,6 +2395,7 @@ closable: boolean;
|
|
|
2369
2395
|
collapsible: boolean;
|
|
2370
2396
|
collapsed: undefined;
|
|
2371
2397
|
detailsLabel: undefined;
|
|
2398
|
+
bordered: undefined;
|
|
2372
2399
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2373
2400
|
close: () => void;
|
|
2374
2401
|
"update:collapsed": (value: boolean) => void;
|
|
@@ -2387,6 +2414,11 @@ collapsible?: boolean;
|
|
|
2387
2414
|
collapsed?: boolean;
|
|
2388
2415
|
/** The toggle text when there is no title. / Текст переключателя, когда нет заголовка. */
|
|
2389
2416
|
detailsLabel?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Not set, it follows the frames context (`.tao-frames-soft`). `false` is a light style: no frame, a stronger tint of the tone instead (the border stays in the box, so nothing moves); `true` keeps the frame.
|
|
2419
|
+
* Не задан — идёт за контекстом рамок (`.tao-frames-soft`). `false` — лёгкий стиль: рамки нет, вместо неё гуще тон заливки (рамка остаётся в боксе); `true` — рамка остаётся.
|
|
2420
|
+
*/
|
|
2421
|
+
bordered?: boolean;
|
|
2390
2422
|
}>, {
|
|
2391
2423
|
tone: string;
|
|
2392
2424
|
title: string;
|
|
@@ -2394,6 +2426,7 @@ closable: boolean;
|
|
|
2394
2426
|
collapsible: boolean;
|
|
2395
2427
|
collapsed: undefined;
|
|
2396
2428
|
detailsLabel: undefined;
|
|
2429
|
+
bordered: undefined;
|
|
2397
2430
|
}>>> & Readonly<{
|
|
2398
2431
|
onClose?: (() => any) | undefined;
|
|
2399
2432
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
@@ -2404,6 +2437,7 @@ detailsLabel: string;
|
|
|
2404
2437
|
tone: TaoTone;
|
|
2405
2438
|
collapsible: boolean;
|
|
2406
2439
|
collapsed: boolean;
|
|
2440
|
+
bordered: boolean;
|
|
2407
2441
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2408
2442
|
|
|
2409
2443
|
declare const __VLS_component_6: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_6<{
|
|
@@ -2496,6 +2530,8 @@ maxHeight?: TaoLength;
|
|
|
2496
2530
|
clickable?: boolean;
|
|
2497
2531
|
sort?: TaoTableSort | null;
|
|
2498
2532
|
caption?: string;
|
|
2533
|
+
/** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
|
|
2534
|
+
bordered?: boolean;
|
|
2499
2535
|
}>, {
|
|
2500
2536
|
rows: () => never[];
|
|
2501
2537
|
rowKey: string;
|
|
@@ -2509,6 +2545,7 @@ maxHeight: string;
|
|
|
2509
2545
|
clickable: boolean;
|
|
2510
2546
|
sort: null;
|
|
2511
2547
|
caption: string;
|
|
2548
|
+
bordered: undefined;
|
|
2512
2549
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2513
2550
|
change: (value: TaoTableSort | null) => void;
|
|
2514
2551
|
"update:sort": (value: TaoTableSort | null) => void;
|
|
@@ -2534,6 +2571,8 @@ maxHeight?: TaoLength;
|
|
|
2534
2571
|
clickable?: boolean;
|
|
2535
2572
|
sort?: TaoTableSort | null;
|
|
2536
2573
|
caption?: string;
|
|
2574
|
+
/** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
|
|
2575
|
+
bordered?: boolean;
|
|
2537
2576
|
}>, {
|
|
2538
2577
|
rows: () => never[];
|
|
2539
2578
|
rowKey: string;
|
|
@@ -2547,6 +2586,7 @@ maxHeight: string;
|
|
|
2547
2586
|
clickable: boolean;
|
|
2548
2587
|
sort: null;
|
|
2549
2588
|
caption: string;
|
|
2589
|
+
bordered: undefined;
|
|
2550
2590
|
}>>> & Readonly<{
|
|
2551
2591
|
onChange?: ((value: TaoTableSort | null) => any) | undefined;
|
|
2552
2592
|
"onUpdate:sort"?: ((value: TaoTableSort | null) => any) | undefined;
|
|
@@ -2556,6 +2596,7 @@ sort: TaoTableSort | null;
|
|
|
2556
2596
|
caption: string;
|
|
2557
2597
|
head: boolean;
|
|
2558
2598
|
loading: boolean;
|
|
2599
|
+
bordered: boolean;
|
|
2559
2600
|
hover: boolean;
|
|
2560
2601
|
sticky: boolean;
|
|
2561
2602
|
rows: Record<string, unknown>[];
|
|
@@ -2737,8 +2778,8 @@ ariaLabel: string;
|
|
|
2737
2778
|
roving: boolean;
|
|
2738
2779
|
}>>> & Readonly<{}>, {
|
|
2739
2780
|
empty: boolean;
|
|
2740
|
-
ariaLabel: string;
|
|
2741
2781
|
bordered: boolean;
|
|
2782
|
+
ariaLabel: string;
|
|
2742
2783
|
divided: boolean;
|
|
2743
2784
|
roving: boolean;
|
|
2744
2785
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -2833,6 +2874,13 @@ showClose?: boolean;
|
|
|
2833
2874
|
* `side="bottom"`: лист тянут вниз за ручку и шапку; он закрывается, если утянут далеко или брошен, иначе возвращается. Нужен `closable`.
|
|
2834
2875
|
*/
|
|
2835
2876
|
swipeToClose?: boolean;
|
|
2877
|
+
/**
|
|
2878
|
+
* How far a pulled sheet must go to close, as a share of its height (0.05–1). Default `0.5`: a touch that only grazes it
|
|
2879
|
+
* does not close it. A fast fling needs 15% of the height at least.
|
|
2880
|
+
* Как далеко надо утянуть лист, чтобы он закрылся, долей его высоты (0,05–1). По умолчанию `0.5`: случайное касание его
|
|
2881
|
+
* не закрывает. Быстрому рывку нужно не меньше 15% высоты.
|
|
2882
|
+
*/
|
|
2883
|
+
swipeThreshold?: number;
|
|
2836
2884
|
closeLabel?: string;
|
|
2837
2885
|
}>, {
|
|
2838
2886
|
title: string;
|
|
@@ -2841,6 +2889,7 @@ surface: string;
|
|
|
2841
2889
|
closable: boolean;
|
|
2842
2890
|
showClose: boolean;
|
|
2843
2891
|
swipeToClose: boolean;
|
|
2892
|
+
swipeThreshold: number;
|
|
2844
2893
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2845
2894
|
close: (...args: any[]) => void;
|
|
2846
2895
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -2878,6 +2927,13 @@ showClose?: boolean;
|
|
|
2878
2927
|
* `side="bottom"`: лист тянут вниз за ручку и шапку; он закрывается, если утянут далеко или брошен, иначе возвращается. Нужен `closable`.
|
|
2879
2928
|
*/
|
|
2880
2929
|
swipeToClose?: boolean;
|
|
2930
|
+
/**
|
|
2931
|
+
* How far a pulled sheet must go to close, as a share of its height (0.05–1). Default `0.5`: a touch that only grazes it
|
|
2932
|
+
* does not close it. A fast fling needs 15% of the height at least.
|
|
2933
|
+
* Как далеко надо утянуть лист, чтобы он закрылся, долей его высоты (0,05–1). По умолчанию `0.5`: случайное касание его
|
|
2934
|
+
* не закрывает. Быстрому рывку нужно не меньше 15% высоты.
|
|
2935
|
+
*/
|
|
2936
|
+
swipeThreshold?: number;
|
|
2881
2937
|
closeLabel?: string;
|
|
2882
2938
|
}>, {
|
|
2883
2939
|
title: string;
|
|
@@ -2886,6 +2942,7 @@ surface: string;
|
|
|
2886
2942
|
closable: boolean;
|
|
2887
2943
|
showClose: boolean;
|
|
2888
2944
|
swipeToClose: boolean;
|
|
2945
|
+
swipeThreshold: number;
|
|
2889
2946
|
}>>> & Readonly<{
|
|
2890
2947
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
2891
2948
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2896,6 +2953,7 @@ closable: boolean;
|
|
|
2896
2953
|
side: "left" | "right" | "bottom";
|
|
2897
2954
|
showClose: boolean;
|
|
2898
2955
|
swipeToClose: boolean;
|
|
2956
|
+
swipeThreshold: number;
|
|
2899
2957
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2900
2958
|
|
|
2901
2959
|
declare const __VLS_component_66: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_77<{
|
|
@@ -3711,6 +3769,15 @@ declare function __VLS_template_31(): Readonly<{
|
|
|
3711
3769
|
mark: TaoSliderMark;
|
|
3712
3770
|
active: boolean;
|
|
3713
3771
|
}): unknown;
|
|
3772
|
+
/** The bubble beside a thumb (with `bubble`): its text; `zone` is the zone the thumb stands in. / Плашка у ручки (с `bubble`): её текст; `zone` — зона, в которой стоит ручка. */
|
|
3773
|
+
bubble?(props: {
|
|
3774
|
+
value: number;
|
|
3775
|
+
zone: {
|
|
3776
|
+
from: number;
|
|
3777
|
+
to: number;
|
|
3778
|
+
color: string;
|
|
3779
|
+
} | undefined;
|
|
3780
|
+
}): unknown;
|
|
3714
3781
|
'pre-value'?(): unknown;
|
|
3715
3782
|
'post-value'?(): unknown;
|
|
3716
3783
|
}> & {
|
|
@@ -3719,6 +3786,15 @@ declare function __VLS_template_31(): Readonly<{
|
|
|
3719
3786
|
mark: TaoSliderMark;
|
|
3720
3787
|
active: boolean;
|
|
3721
3788
|
}): unknown;
|
|
3789
|
+
/** The bubble beside a thumb (with `bubble`): its text; `zone` is the zone the thumb stands in. / Плашка у ручки (с `bubble`): её текст; `zone` — зона, в которой стоит ручка. */
|
|
3790
|
+
bubble?(props: {
|
|
3791
|
+
value: number;
|
|
3792
|
+
zone: {
|
|
3793
|
+
from: number;
|
|
3794
|
+
to: number;
|
|
3795
|
+
color: string;
|
|
3796
|
+
} | undefined;
|
|
3797
|
+
}): unknown;
|
|
3722
3798
|
'pre-value'?(): unknown;
|
|
3723
3799
|
'post-value'?(): unknown;
|
|
3724
3800
|
};
|
|
@@ -3729,6 +3805,15 @@ declare function __VLS_template_32(): Readonly<{
|
|
|
3729
3805
|
mark: TaoSliderMark;
|
|
3730
3806
|
active: boolean;
|
|
3731
3807
|
}): unknown;
|
|
3808
|
+
/** The bubble beside a thumb (with `bubble`): its text; `zone` is the zone the thumb stands in. / Плашка у ручки (с `bubble`): её текст; `zone` — зона, в которой стоит ручка. */
|
|
3809
|
+
bubble?(props: {
|
|
3810
|
+
value: number;
|
|
3811
|
+
zone: {
|
|
3812
|
+
from: number;
|
|
3813
|
+
to: number;
|
|
3814
|
+
color: string;
|
|
3815
|
+
} | undefined;
|
|
3816
|
+
}): unknown;
|
|
3732
3817
|
'pre-value'?(): unknown;
|
|
3733
3818
|
'post-value'?(): unknown;
|
|
3734
3819
|
}> & {
|
|
@@ -3737,6 +3822,15 @@ declare function __VLS_template_32(): Readonly<{
|
|
|
3737
3822
|
mark: TaoSliderMark;
|
|
3738
3823
|
active: boolean;
|
|
3739
3824
|
}): unknown;
|
|
3825
|
+
/** The bubble beside a thumb (with `bubble`): its text; `zone` is the zone the thumb stands in. / Плашка у ручки (с `bubble`): её текст; `zone` — зона, в которой стоит ручка. */
|
|
3826
|
+
bubble?(props: {
|
|
3827
|
+
value: number;
|
|
3828
|
+
zone: {
|
|
3829
|
+
from: number;
|
|
3830
|
+
to: number;
|
|
3831
|
+
color: string;
|
|
3832
|
+
} | undefined;
|
|
3833
|
+
}): unknown;
|
|
3740
3834
|
'pre-value'?(): unknown;
|
|
3741
3835
|
'post-value'?(): unknown;
|
|
3742
3836
|
};
|
|
@@ -5941,9 +6035,23 @@ declare interface Props {
|
|
|
5941
6035
|
}
|
|
5942
6036
|
|
|
5943
6037
|
declare interface Props_10 {
|
|
5944
|
-
|
|
6038
|
+
/** The look of the wait: `dots` (the four jumping dots), `ring` (a turning arc), `pulse` (a ripple). / Вид ожидания. */
|
|
6039
|
+
variant?: 'dots' | 'ring' | 'pulse';
|
|
6040
|
+
/**
|
|
6041
|
+
* The size: a number is px, `'40px'` works, or `small` / `medium` / `large` (24 / 40 / 64 px).
|
|
6042
|
+
* Without it: 80 for `dots` (as it always was), 40 for the others.
|
|
6043
|
+
* Размер: число — px, `'40px'` тоже, либо `small` / `medium` / `large` (24 / 40 / 64 px). Без него: 80 у `dots`, 40 у остальных.
|
|
6044
|
+
*/
|
|
5945
6045
|
size?: number | string;
|
|
6046
|
+
/** A colour role of the theme (default: the accent). / Роль цвета темы (по умолчанию акцент). */
|
|
6047
|
+
tone?: TaoToneName;
|
|
6048
|
+
/** Any CSS colour; wins over `tone`. `currentColor` takes the text colour around it. / Любой CSS-цвет; главнее `tone`. */
|
|
6049
|
+
color?: string;
|
|
5946
6050
|
inline?: boolean;
|
|
6051
|
+
/** What a screen reader says (default: the text of the locale). / Что скажет скринридер (по умолчанию текст локали). */
|
|
6052
|
+
label?: string;
|
|
6053
|
+
/** Only a picture: hidden from a screen reader (the wait is said elsewhere, a button says it by itself). / Только картинка: скрыт от скринридера. */
|
|
6054
|
+
decorative?: boolean;
|
|
5947
6055
|
}
|
|
5948
6056
|
|
|
5949
6057
|
declare interface Props_11 {
|
|
@@ -6710,17 +6818,29 @@ export declare const TaoList: __VLS_WithTemplateSlots_63<typeof __VLS_component_
|
|
|
6710
6818
|
export declare const TaoListItem: __VLS_WithTemplateSlots_64<typeof __VLS_component_64, ReturnType<typeof __VLS_template_64>>;
|
|
6711
6819
|
|
|
6712
6820
|
export declare const TaoLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_21<__VLS_TypePropsToRuntimeProps_23<Props_10>, {
|
|
6713
|
-
|
|
6714
|
-
size:
|
|
6821
|
+
variant: string;
|
|
6822
|
+
size: undefined;
|
|
6823
|
+
tone: undefined;
|
|
6824
|
+
color: undefined;
|
|
6715
6825
|
inline: boolean;
|
|
6826
|
+
label: undefined;
|
|
6827
|
+
decorative: boolean;
|
|
6716
6828
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_21<__VLS_TypePropsToRuntimeProps_23<Props_10>, {
|
|
6717
|
-
|
|
6718
|
-
size:
|
|
6829
|
+
variant: string;
|
|
6830
|
+
size: undefined;
|
|
6831
|
+
tone: undefined;
|
|
6832
|
+
color: undefined;
|
|
6719
6833
|
inline: boolean;
|
|
6834
|
+
label: undefined;
|
|
6835
|
+
decorative: boolean;
|
|
6720
6836
|
}>>> & Readonly<{}>, {
|
|
6721
6837
|
size: number | string;
|
|
6838
|
+
label: string;
|
|
6839
|
+
tone: TaoToneName;
|
|
6840
|
+
variant: "dots" | "ring" | "pulse";
|
|
6722
6841
|
color: string;
|
|
6723
6842
|
inline: boolean;
|
|
6843
|
+
decorative: boolean;
|
|
6724
6844
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
6725
6845
|
|
|
6726
6846
|
/**
|
|
@@ -6781,6 +6901,9 @@ export declare interface TaoLocale {
|
|
|
6781
6901
|
copyLabel: string;
|
|
6782
6902
|
successText: string;
|
|
6783
6903
|
};
|
|
6904
|
+
loader: {
|
|
6905
|
+
label: string;
|
|
6906
|
+
};
|
|
6784
6907
|
date: {
|
|
6785
6908
|
placeholder: string;
|
|
6786
6909
|
todayText: string;
|
|
@@ -7130,6 +7253,13 @@ placeholder?: string;
|
|
|
7130
7253
|
disabled?: boolean;
|
|
7131
7254
|
/** Red frame. The message goes to TaoFormField `error`. / Красная рамка. Текст ошибки — в `error` у TaoFormField. */
|
|
7132
7255
|
error?: boolean;
|
|
7256
|
+
/**
|
|
7257
|
+
* The frame of the cells. `false` is the light style: a soft fill and no frame at all; the focus, an error and a result
|
|
7258
|
+
* are told by a tint of the fill and, for the last two, by the colour of the digit.
|
|
7259
|
+
* Рамка ячеек. `false` — лёгкий стиль: мягкая заливка и никакой рамки; фокус, ошибку и результат говорят оттенок
|
|
7260
|
+
* заливки и, у последних двух, цвет цифры.
|
|
7261
|
+
*/
|
|
7262
|
+
bordered?: boolean;
|
|
7133
7263
|
/** Cell size; without it — the size of ancestors. / Размер ячеек; без него — размер предков. */
|
|
7134
7264
|
size?: TaoSize;
|
|
7135
7265
|
modelValue?: string;
|
|
@@ -7151,6 +7281,7 @@ masked: boolean;
|
|
|
7151
7281
|
placeholder: string;
|
|
7152
7282
|
disabled: boolean;
|
|
7153
7283
|
error: boolean;
|
|
7284
|
+
bordered: boolean;
|
|
7154
7285
|
modelValue: string;
|
|
7155
7286
|
numbersOnly: boolean;
|
|
7156
7287
|
clearOn: string;
|
|
@@ -7182,6 +7313,13 @@ placeholder?: string;
|
|
|
7182
7313
|
disabled?: boolean;
|
|
7183
7314
|
/** Red frame. The message goes to TaoFormField `error`. / Красная рамка. Текст ошибки — в `error` у TaoFormField. */
|
|
7184
7315
|
error?: boolean;
|
|
7316
|
+
/**
|
|
7317
|
+
* The frame of the cells. `false` is the light style: a soft fill and no frame at all; the focus, an error and a result
|
|
7318
|
+
* are told by a tint of the fill and, for the last two, by the colour of the digit.
|
|
7319
|
+
* Рамка ячеек. `false` — лёгкий стиль: мягкая заливка и никакой рамки; фокус, ошибку и результат говорят оттенок
|
|
7320
|
+
* заливки и, у последних двух, цвет цифры.
|
|
7321
|
+
*/
|
|
7322
|
+
bordered?: boolean;
|
|
7185
7323
|
/** Cell size; without it — the size of ancestors. / Размер ячеек; без него — размер предков. */
|
|
7186
7324
|
size?: TaoSize;
|
|
7187
7325
|
modelValue?: string;
|
|
@@ -7203,6 +7341,7 @@ masked: boolean;
|
|
|
7203
7341
|
placeholder: string;
|
|
7204
7342
|
disabled: boolean;
|
|
7205
7343
|
error: boolean;
|
|
7344
|
+
bordered: boolean;
|
|
7206
7345
|
modelValue: string;
|
|
7207
7346
|
numbersOnly: boolean;
|
|
7208
7347
|
clearOn: string;
|
|
@@ -7217,6 +7356,7 @@ onActive?: ((el: HTMLInputElement | null, index: number) => any) | undefined;
|
|
|
7217
7356
|
onComplete?: ((value: string) => any) | undefined;
|
|
7218
7357
|
}>, {
|
|
7219
7358
|
status: "idle" | "success" | "error";
|
|
7359
|
+
bordered: boolean;
|
|
7220
7360
|
disabled: boolean;
|
|
7221
7361
|
placeholder: string;
|
|
7222
7362
|
error: boolean;
|
|
@@ -7334,6 +7474,22 @@ declare interface TaoSliderBaseProps {
|
|
|
7334
7474
|
* Диапазон, сведённый в точку, показывает там короткий штрих.
|
|
7335
7475
|
*/
|
|
7336
7476
|
flat?: boolean;
|
|
7477
|
+
/**
|
|
7478
|
+
* Zones of the scale in colour: `{ to, tone?, color?, dot? }`, each runs to its `to`. The bar shows them dimmed, the filled
|
|
7479
|
+
* part in full colour, and the thumb takes the colour of the zone it stands in.
|
|
7480
|
+
* Зоны шкалы цветом: `{ to, tone?, color?, dot? }`, каждая идёт до своего `to`. Полоса показывает их приглушённо,
|
|
7481
|
+
* закрашенная часть полным цветом, а ручка берёт цвет зоны, в которой стоит.
|
|
7482
|
+
*/
|
|
7483
|
+
zones?: readonly TaoSliderZone[];
|
|
7484
|
+
/**
|
|
7485
|
+
* A bubble with the value beside the thumb, in the colour of its zone (the accent without zones). Off by default.
|
|
7486
|
+
* `true`: it shows while the thumb is dragged, hovered or has the keyboard focus; `'always'`: it stays. The text is the
|
|
7487
|
+
* `format` of the value, or the `#bubble` slot. Leave room for it above a horizontal bar (to the right of a vertical one).
|
|
7488
|
+
* Плашка со значением у ручки, цвета её зоны (без зон — акцент). По умолчанию выключена. `true`: видна, пока ручку тянут,
|
|
7489
|
+
* на неё наведён указатель или у неё фокус клавиатуры; `'always'`: видна всегда. Текст — `format` значения или слот `#bubble`.
|
|
7490
|
+
* Оставьте ей место над горизонтальной полосой (справа от вертикальной).
|
|
7491
|
+
*/
|
|
7492
|
+
bubble?: boolean | 'always';
|
|
7337
7493
|
/** Vertical: the maximum is at the top. / Вертикальный: максимум сверху. */
|
|
7338
7494
|
vertical?: boolean;
|
|
7339
7495
|
disabled?: boolean;
|
|
@@ -7358,6 +7514,30 @@ export declare interface TaoSliderMark {
|
|
|
7358
7514
|
/** Значение слайдера: число (одна ручка) или пара [от, до] (диапазон). */
|
|
7359
7515
|
export declare type TaoSliderValue = number | [number, number];
|
|
7360
7516
|
|
|
7517
|
+
/**
|
|
7518
|
+
* A zone of the scale: it runs from the end of the previous one to `to` (the first from `min`, the last to `max`), so zones
|
|
7519
|
+
* never overlap and leave no gap. / Зона шкалы: идёт от конца предыдущей до `to` (первая от `min`, последняя до `max`), поэтому
|
|
7520
|
+
* зоны не пересекаются и не оставляют дыр.
|
|
7521
|
+
*/
|
|
7522
|
+
export declare interface TaoSliderZone {
|
|
7523
|
+
to: number;
|
|
7524
|
+
/** A colour role of the theme (default `accent`). / Роль цвета темы (по умолчанию `accent`). */
|
|
7525
|
+
tone?: TaoSliderZoneTone;
|
|
7526
|
+
/** Any CSS colour; wins over `tone`. Its contrast is yours to keep. / Любой CSS-цвет; главнее `tone`. Контраст — на вас. */
|
|
7527
|
+
color?: string;
|
|
7528
|
+
/** A dot on the scale where the zone ends (not at `max`). / Точка на шкале там, где зона кончается (не на `max`). */
|
|
7529
|
+
dot?: boolean;
|
|
7530
|
+
/**
|
|
7531
|
+
* The zone has no colour until the value reaches it: the bar looks plain and is painted as it fills; its dot shows when
|
|
7532
|
+
* the fill gets there. / У зоны нет цвета, пока значение до неё не дошло: полоса выглядит обычной и красится по мере
|
|
7533
|
+
* заполнения; её точка видна, когда заливка дошла.
|
|
7534
|
+
*/
|
|
7535
|
+
reveal?: boolean;
|
|
7536
|
+
}
|
|
7537
|
+
|
|
7538
|
+
/** The colour roles a zone can wear. / Цветовые роли, в которые можно красить зону. */
|
|
7539
|
+
export declare type TaoSliderZoneTone = 'accent' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
7540
|
+
|
|
7361
7541
|
export declare const TaoSpace: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, ReturnType<typeof __VLS_template_18>>;
|
|
7362
7542
|
|
|
7363
7543
|
export declare const TaoSparkline: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_37<__VLS_TypePropsToRuntimeProps_41<{
|