@1337exp/taoui 5.31.0 → 5.32.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/CHANGELOG.md +18 -0
- package/README.md +5 -4
- package/README.ru.md +5 -4
- package/dist/index.d.ts +231 -56
- package/dist/index.js +863 -489
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +6 -3
- package/skills/taoui/references/components.md +28 -4
- package/skills/taoui/references/patterns.md +210 -163
- package/src/styles/contexts/tone.css +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -276,54 +276,75 @@ tip: boolean;
|
|
|
276
276
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
277
277
|
|
|
278
278
|
declare const __VLS_component_16: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToRuntimeProps_16<{
|
|
279
|
-
/** The mode, `v-model
|
|
280
|
-
modelValue?:
|
|
279
|
+
/** The mode, `v-model` (`'system'` too with `system`). Without it the button reads the mode of `<html>` and follows it. / Режим, `v-model` (с `system` ещё и `'system'`). Без него кнопка читает режим `<html>` и следует за ним. */
|
|
280
|
+
modelValue?: TaoModeChoice;
|
|
281
281
|
/** Write the mode to `<html>` (`data-tao-mode`). Turn it off to do it yourself from `v-model`. / Писать режим в `<html>`. Выключите, чтобы делать это самим из `v-model`. */
|
|
282
282
|
apply?: boolean;
|
|
283
|
+
/** A third state, «system»: the page follows the operating system. The click goes system → light → dark; the icon shows the state it is in (a monitor for the system). / Третье состояние, «системная»: страница идёт за операционной системой. Клик: системная → светлая → тёмная; иконка показывает текущее состояние (монитор для системной). */
|
|
284
|
+
system?: boolean;
|
|
283
285
|
size?: TaoSize;
|
|
284
286
|
variant?: "primary" | "secondary" | "ghost" | "text";
|
|
285
|
-
/**
|
|
287
|
+
/** The colour of the button, as for `TaoButton`. `neutral` by default: a switch is a quiet tool, the accent is not for it. / Цвет кнопки, как у `TaoButton`. По умолчанию `neutral`: переключатель — тихий инструмент, акцент не для него. */
|
|
288
|
+
tone?: TaoToneName;
|
|
289
|
+
/** aria-label while a click leads to the light theme. / aria-label, пока клик ведёт к светлой теме. */
|
|
286
290
|
toLightLabel?: string;
|
|
287
|
-
/** aria-label while the
|
|
291
|
+
/** aria-label while a click leads to the dark theme. / aria-label, пока клик ведёт к тёмной теме. */
|
|
288
292
|
toDarkLabel?: string;
|
|
293
|
+
/** aria-label while a click leads to the system theme (`system`). / aria-label, пока клик ведёт к системной теме (`system`). */
|
|
294
|
+
toSystemLabel?: string;
|
|
289
295
|
}>, {
|
|
290
296
|
modelValue: undefined;
|
|
291
297
|
apply: boolean;
|
|
298
|
+
system: boolean;
|
|
292
299
|
size: undefined;
|
|
293
300
|
variant: string;
|
|
301
|
+
tone: string;
|
|
294
302
|
toLightLabel: undefined;
|
|
295
303
|
toDarkLabel: undefined;
|
|
304
|
+
toSystemLabel: undefined;
|
|
296
305
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
297
|
-
change: (mode:
|
|
298
|
-
"update:modelValue": (mode:
|
|
306
|
+
change: (mode: TaoModeChoice) => void;
|
|
307
|
+
"update:modelValue": (mode: TaoModeChoice) => void;
|
|
299
308
|
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToRuntimeProps_16<{
|
|
300
|
-
/** The mode, `v-model
|
|
301
|
-
modelValue?:
|
|
309
|
+
/** The mode, `v-model` (`'system'` too with `system`). Without it the button reads the mode of `<html>` and follows it. / Режим, `v-model` (с `system` ещё и `'system'`). Без него кнопка читает режим `<html>` и следует за ним. */
|
|
310
|
+
modelValue?: TaoModeChoice;
|
|
302
311
|
/** Write the mode to `<html>` (`data-tao-mode`). Turn it off to do it yourself from `v-model`. / Писать режим в `<html>`. Выключите, чтобы делать это самим из `v-model`. */
|
|
303
312
|
apply?: boolean;
|
|
313
|
+
/** A third state, «system»: the page follows the operating system. The click goes system → light → dark; the icon shows the state it is in (a monitor for the system). / Третье состояние, «системная»: страница идёт за операционной системой. Клик: системная → светлая → тёмная; иконка показывает текущее состояние (монитор для системной). */
|
|
314
|
+
system?: boolean;
|
|
304
315
|
size?: TaoSize;
|
|
305
316
|
variant?: "primary" | "secondary" | "ghost" | "text";
|
|
306
|
-
/**
|
|
317
|
+
/** The colour of the button, as for `TaoButton`. `neutral` by default: a switch is a quiet tool, the accent is not for it. / Цвет кнопки, как у `TaoButton`. По умолчанию `neutral`: переключатель — тихий инструмент, акцент не для него. */
|
|
318
|
+
tone?: TaoToneName;
|
|
319
|
+
/** aria-label while a click leads to the light theme. / aria-label, пока клик ведёт к светлой теме. */
|
|
307
320
|
toLightLabel?: string;
|
|
308
|
-
/** aria-label while the
|
|
321
|
+
/** aria-label while a click leads to the dark theme. / aria-label, пока клик ведёт к тёмной теме. */
|
|
309
322
|
toDarkLabel?: string;
|
|
323
|
+
/** aria-label while a click leads to the system theme (`system`). / aria-label, пока клик ведёт к системной теме (`system`). */
|
|
324
|
+
toSystemLabel?: string;
|
|
310
325
|
}>, {
|
|
311
326
|
modelValue: undefined;
|
|
312
327
|
apply: boolean;
|
|
328
|
+
system: boolean;
|
|
313
329
|
size: undefined;
|
|
314
330
|
variant: string;
|
|
331
|
+
tone: string;
|
|
315
332
|
toLightLabel: undefined;
|
|
316
333
|
toDarkLabel: undefined;
|
|
334
|
+
toSystemLabel: undefined;
|
|
317
335
|
}>>> & Readonly<{
|
|
318
|
-
onChange?: ((mode:
|
|
319
|
-
"onUpdate:modelValue"?: ((mode:
|
|
336
|
+
onChange?: ((mode: TaoModeChoice) => any) | undefined;
|
|
337
|
+
"onUpdate:modelValue"?: ((mode: TaoModeChoice) => any) | undefined;
|
|
320
338
|
}>, {
|
|
321
339
|
size: TaoSize;
|
|
340
|
+
tone: TaoToneName;
|
|
322
341
|
variant: "primary" | "secondary" | "ghost" | "text";
|
|
323
|
-
modelValue:
|
|
342
|
+
modelValue: TaoModeChoice;
|
|
343
|
+
system: boolean;
|
|
324
344
|
apply: boolean;
|
|
325
345
|
toLightLabel: string;
|
|
326
346
|
toDarkLabel: string;
|
|
347
|
+
toSystemLabel: string;
|
|
327
348
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
328
349
|
|
|
329
350
|
declare const __VLS_component_17: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToRuntimeProps_17<Props_6>, {
|
|
@@ -2100,7 +2121,7 @@ options: TaoSelectOption[];
|
|
|
2100
2121
|
allowCreate: boolean;
|
|
2101
2122
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2102
2123
|
|
|
2103
|
-
declare const __VLS_component_54: DefineComponent<ExtractPropTypes<
|
|
2124
|
+
declare const __VLS_component_54: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_57<__VLS_TypePropsToRuntimeProps_62<{
|
|
2104
2125
|
/** `single`: `v-model` is `YYYY-MM-DD`; `range`: `{ start, end }`. / `single` — строка `YYYY-MM-DD`; `range` — `{ start, end }`. */
|
|
2105
2126
|
mode?: "single" | "range";
|
|
2106
2127
|
modelValue?: string | TaoDateRangeValue | null;
|
|
@@ -2122,7 +2143,7 @@ focus: () => Promise<void>;
|
|
|
2122
2143
|
view: () => void;
|
|
2123
2144
|
change: (value: string | TaoDateRangeValue | null) => void;
|
|
2124
2145
|
"update:modelValue": (value: string | TaoDateRangeValue | null) => void;
|
|
2125
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2146
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_57<__VLS_TypePropsToRuntimeProps_62<{
|
|
2126
2147
|
/** `single`: `v-model` is `YYYY-MM-DD`; `range`: `{ start, end }`. / `single` — строка `YYYY-MM-DD`; `range` — `{ start, end }`. */
|
|
2127
2148
|
mode?: "single" | "range";
|
|
2128
2149
|
modelValue?: string | TaoDateRangeValue | null;
|
|
@@ -2149,7 +2170,7 @@ modelValue: string | TaoDateRangeValue | null;
|
|
|
2149
2170
|
min: string;
|
|
2150
2171
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2151
2172
|
|
|
2152
|
-
declare const __VLS_component_55: DefineComponent<ExtractPropTypes<
|
|
2173
|
+
declare const __VLS_component_55: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_58<__VLS_TypePropsToRuntimeProps_63<{
|
|
2153
2174
|
modelValue?: string | null;
|
|
2154
2175
|
placeholder?: string;
|
|
2155
2176
|
disabled?: boolean;
|
|
@@ -2192,7 +2213,7 @@ format: undefined;
|
|
|
2192
2213
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2193
2214
|
change: (value: string | null) => void;
|
|
2194
2215
|
"update:modelValue": (value: string | null) => void;
|
|
2195
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2216
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_58<__VLS_TypePropsToRuntimeProps_63<{
|
|
2196
2217
|
modelValue?: string | null;
|
|
2197
2218
|
placeholder?: string;
|
|
2198
2219
|
disabled?: boolean;
|
|
@@ -2249,7 +2270,7 @@ reference: string;
|
|
|
2249
2270
|
}) => string | null;
|
|
2250
2271
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2251
2272
|
|
|
2252
|
-
declare const __VLS_component_56: DefineComponent<ExtractPropTypes<
|
|
2273
|
+
declare const __VLS_component_56: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_59<__VLS_TypePropsToRuntimeProps_64<{
|
|
2253
2274
|
modelValue?: TaoDateRangeValue | null;
|
|
2254
2275
|
placeholder?: string;
|
|
2255
2276
|
disabled?: boolean;
|
|
@@ -2272,7 +2293,7 @@ max: undefined;
|
|
|
2272
2293
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2273
2294
|
change: (value: TaoDateRangeValue | null) => void;
|
|
2274
2295
|
"update:modelValue": (value: TaoDateRangeValue | null) => void;
|
|
2275
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2296
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_59<__VLS_TypePropsToRuntimeProps_64<{
|
|
2276
2297
|
modelValue?: TaoDateRangeValue | null;
|
|
2277
2298
|
placeholder?: string;
|
|
2278
2299
|
disabled?: boolean;
|
|
@@ -2303,7 +2324,7 @@ modelValue: TaoDateRangeValue | null;
|
|
|
2303
2324
|
min: string;
|
|
2304
2325
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2305
2326
|
|
|
2306
|
-
declare const __VLS_component_57: DefineComponent<ExtractPropTypes<
|
|
2327
|
+
declare const __VLS_component_57: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_60<__VLS_TypePropsToRuntimeProps_65<{
|
|
2307
2328
|
modelValue?: boolean;
|
|
2308
2329
|
label?: string;
|
|
2309
2330
|
disabled?: boolean;
|
|
@@ -2327,7 +2348,7 @@ loading: boolean;
|
|
|
2327
2348
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2328
2349
|
change: (value: boolean) => void;
|
|
2329
2350
|
"update:modelValue": (value: boolean) => void;
|
|
2330
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2351
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_60<__VLS_TypePropsToRuntimeProps_65<{
|
|
2331
2352
|
modelValue?: boolean;
|
|
2332
2353
|
label?: string;
|
|
2333
2354
|
disabled?: boolean;
|
|
@@ -2359,7 +2380,7 @@ error: boolean;
|
|
|
2359
2380
|
modelValue: boolean;
|
|
2360
2381
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2361
2382
|
|
|
2362
|
-
declare const __VLS_component_58: DefineComponent<ExtractPropTypes<
|
|
2383
|
+
declare const __VLS_component_58: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_61<__VLS_TypePropsToRuntimeProps_66<{
|
|
2363
2384
|
value: TaoRadioValue;
|
|
2364
2385
|
modelValue?: TaoRadioValue;
|
|
2365
2386
|
name?: string;
|
|
@@ -2376,7 +2397,7 @@ error: boolean;
|
|
|
2376
2397
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2377
2398
|
change: (value: TaoRadioValue) => void;
|
|
2378
2399
|
"update:modelValue": (value: TaoRadioValue) => void;
|
|
2379
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2400
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_61<__VLS_TypePropsToRuntimeProps_66<{
|
|
2380
2401
|
value: TaoRadioValue;
|
|
2381
2402
|
modelValue?: TaoRadioValue;
|
|
2382
2403
|
name?: string;
|
|
@@ -2399,7 +2420,7 @@ disabled: boolean;
|
|
|
2399
2420
|
error: boolean;
|
|
2400
2421
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2401
2422
|
|
|
2402
|
-
declare const __VLS_component_59: DefineComponent<ExtractPropTypes<
|
|
2423
|
+
declare const __VLS_component_59: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_62<__VLS_TypePropsToRuntimeProps_67<{
|
|
2403
2424
|
modelValue?: TaoRadioValue;
|
|
2404
2425
|
name?: string;
|
|
2405
2426
|
legend?: string;
|
|
@@ -2416,7 +2437,7 @@ direction: string;
|
|
|
2416
2437
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2417
2438
|
change: (value: TaoRadioValue) => void;
|
|
2418
2439
|
"update:modelValue": (value: TaoRadioValue) => void;
|
|
2419
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2440
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_62<__VLS_TypePropsToRuntimeProps_67<{
|
|
2420
2441
|
modelValue?: TaoRadioValue;
|
|
2421
2442
|
name?: string;
|
|
2422
2443
|
legend?: string;
|
|
@@ -2508,7 +2529,7 @@ allowRemove: boolean;
|
|
|
2508
2529
|
forceMaxLimit: boolean;
|
|
2509
2530
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2510
2531
|
|
|
2511
|
-
declare const __VLS_component_60: DefineComponent<ExtractPropTypes<
|
|
2532
|
+
declare const __VLS_component_60: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_68<{
|
|
2512
2533
|
modelValue?: TaoRadioValue;
|
|
2513
2534
|
name?: string;
|
|
2514
2535
|
legend?: string;
|
|
@@ -2527,7 +2548,7 @@ block: boolean;
|
|
|
2527
2548
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2528
2549
|
change: (value: TaoRadioValue) => void;
|
|
2529
2550
|
"update:modelValue": (value: TaoRadioValue) => void;
|
|
2530
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2551
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_63<__VLS_TypePropsToRuntimeProps_68<{
|
|
2531
2552
|
modelValue?: TaoRadioValue;
|
|
2532
2553
|
name?: string;
|
|
2533
2554
|
legend?: string;
|
|
@@ -2552,7 +2573,7 @@ error: boolean;
|
|
|
2552
2573
|
block: boolean;
|
|
2553
2574
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2554
2575
|
|
|
2555
|
-
declare const __VLS_component_61: DefineComponent<ExtractPropTypes<
|
|
2576
|
+
declare const __VLS_component_61: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_64<__VLS_TypePropsToRuntimeProps_69<{
|
|
2556
2577
|
value: TaoRadioValue;
|
|
2557
2578
|
modelValue?: TaoRadioValue;
|
|
2558
2579
|
name?: string;
|
|
@@ -2568,7 +2589,7 @@ disabled: boolean;
|
|
|
2568
2589
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2569
2590
|
change: (value: TaoRadioValue) => void;
|
|
2570
2591
|
"update:modelValue": (value: TaoRadioValue) => void;
|
|
2571
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2592
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_64<__VLS_TypePropsToRuntimeProps_69<{
|
|
2572
2593
|
value: TaoRadioValue;
|
|
2573
2594
|
modelValue?: TaoRadioValue;
|
|
2574
2595
|
name?: string;
|
|
@@ -2590,7 +2611,7 @@ icon: string;
|
|
|
2590
2611
|
disabled: boolean;
|
|
2591
2612
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2592
2613
|
|
|
2593
|
-
declare const __VLS_component_62: DefineComponent<ExtractPropTypes<
|
|
2614
|
+
declare const __VLS_component_62: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_70<{
|
|
2594
2615
|
/** Status color. / Цвет статуса. */
|
|
2595
2616
|
tone?: TaoTone;
|
|
2596
2617
|
title?: string;
|
|
@@ -2621,7 +2642,7 @@ bordered: undefined;
|
|
|
2621
2642
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2622
2643
|
close: () => void;
|
|
2623
2644
|
"update:collapsed": (value: boolean) => void;
|
|
2624
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2645
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_70<{
|
|
2625
2646
|
/** Status color. / Цвет статуса. */
|
|
2626
2647
|
tone?: TaoTone;
|
|
2627
2648
|
title?: string;
|
|
@@ -2662,7 +2683,7 @@ collapsed: boolean;
|
|
|
2662
2683
|
bordered: boolean;
|
|
2663
2684
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2664
2685
|
|
|
2665
|
-
declare const __VLS_component_63: DefineComponent<ExtractPropTypes<
|
|
2686
|
+
declare const __VLS_component_63: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_71<{
|
|
2666
2687
|
columns: TaoTableColumn[];
|
|
2667
2688
|
rows?: Record<string, unknown>[];
|
|
2668
2689
|
rowKey?: string | ((row: Record<string, unknown>, index: number) => string | number);
|
|
@@ -2703,7 +2724,7 @@ bordered: undefined;
|
|
|
2703
2724
|
change: (value: TaoTableSort | null) => void;
|
|
2704
2725
|
"update:sort": (value: TaoTableSort | null) => void;
|
|
2705
2726
|
"row-click": (row: Record<string, unknown>, index: number) => void;
|
|
2706
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2727
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_71<{
|
|
2707
2728
|
columns: TaoTableColumn[];
|
|
2708
2729
|
rows?: Record<string, unknown>[];
|
|
2709
2730
|
rowKey?: string | ((row: Record<string, unknown>, index: number) => string | number);
|
|
@@ -2760,7 +2781,7 @@ rowKey: string | ((row: Record<string, unknown>, index: number) => string | numb
|
|
|
2760
2781
|
striped: boolean | "odd" | "even";
|
|
2761
2782
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2762
2783
|
|
|
2763
|
-
declare const __VLS_component_64: DefineComponent<ExtractPropTypes<
|
|
2784
|
+
declare const __VLS_component_64: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_72<{
|
|
2764
2785
|
page?: number;
|
|
2765
2786
|
total?: number;
|
|
2766
2787
|
pageSize?: number;
|
|
@@ -2809,7 +2830,7 @@ pageInput: boolean;
|
|
|
2809
2830
|
change: (value: number) => void;
|
|
2810
2831
|
"update:page": (value: number) => void;
|
|
2811
2832
|
"update:pageSize": (value: number) => void;
|
|
2812
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2833
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_67<__VLS_TypePropsToRuntimeProps_72<{
|
|
2813
2834
|
page?: number;
|
|
2814
2835
|
total?: number;
|
|
2815
2836
|
pageSize?: number;
|
|
@@ -2869,13 +2890,13 @@ jump: number;
|
|
|
2869
2890
|
pageInput: boolean | number;
|
|
2870
2891
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2871
2892
|
|
|
2872
|
-
declare const __VLS_component_65: DefineComponent<ExtractPropTypes<
|
|
2893
|
+
declare const __VLS_component_65: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_73<{
|
|
2873
2894
|
title?: string;
|
|
2874
|
-
}>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2895
|
+
}>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_68<__VLS_TypePropsToRuntimeProps_73<{
|
|
2875
2896
|
title?: string;
|
|
2876
2897
|
}>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2877
2898
|
|
|
2878
|
-
declare const __VLS_component_66: DefineComponent<ExtractPropTypes<
|
|
2899
|
+
declare const __VLS_component_66: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_74<{
|
|
2879
2900
|
/** Row height; items inherit it. Without it — the size of ancestors. / Высота строк, item наследует. Без него — размер предков. */
|
|
2880
2901
|
size?: TaoSize;
|
|
2881
2902
|
/** Рамка, как у списка файлов. */
|
|
@@ -2902,7 +2923,7 @@ divided: boolean;
|
|
|
2902
2923
|
empty: boolean;
|
|
2903
2924
|
ariaLabel: string;
|
|
2904
2925
|
roving: boolean;
|
|
2905
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2926
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_69<__VLS_TypePropsToRuntimeProps_74<{
|
|
2906
2927
|
/** Row height; items inherit it. Without it — the size of ancestors. / Высота строк, item наследует. Без него — размер предков. */
|
|
2907
2928
|
size?: TaoSize;
|
|
2908
2929
|
/** Рамка, как у списка файлов. */
|
|
@@ -2937,7 +2958,7 @@ divided: boolean;
|
|
|
2937
2958
|
roving: boolean;
|
|
2938
2959
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2939
2960
|
|
|
2940
|
-
declare const __VLS_component_67: DefineComponent<ExtractPropTypes<
|
|
2961
|
+
declare const __VLS_component_67: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_75<{
|
|
2941
2962
|
title?: string;
|
|
2942
2963
|
description?: string;
|
|
2943
2964
|
selected?: boolean;
|
|
@@ -2960,7 +2981,7 @@ clickable: boolean;
|
|
|
2960
2981
|
actionAlways: boolean;
|
|
2961
2982
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2962
2983
|
click: (event: MouseEvent) => void;
|
|
2963
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
2984
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_75<{
|
|
2964
2985
|
title?: string;
|
|
2965
2986
|
description?: string;
|
|
2966
2987
|
selected?: boolean;
|
|
@@ -2993,7 +3014,7 @@ clickable: boolean;
|
|
|
2993
3014
|
actionAlways: boolean;
|
|
2994
3015
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2995
3016
|
|
|
2996
|
-
declare const __VLS_component_68: DefineComponent<ExtractPropTypes<
|
|
3017
|
+
declare const __VLS_component_68: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_77<{
|
|
2997
3018
|
modelValue: boolean;
|
|
2998
3019
|
title?: string;
|
|
2999
3020
|
/**
|
|
@@ -3046,7 +3067,7 @@ swipeThreshold: number;
|
|
|
3046
3067
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3047
3068
|
close: (...args: any[]) => void;
|
|
3048
3069
|
"update:modelValue": (...args: any[]) => void;
|
|
3049
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
3070
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_77<{
|
|
3050
3071
|
modelValue: boolean;
|
|
3051
3072
|
title?: string;
|
|
3052
3073
|
/**
|
|
@@ -3109,7 +3130,7 @@ swipeToClose: boolean;
|
|
|
3109
3130
|
swipeThreshold: number;
|
|
3110
3131
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3111
3132
|
|
|
3112
|
-
declare const __VLS_component_69: DefineComponent<ExtractPropTypes<
|
|
3133
|
+
declare const __VLS_component_69: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_76<__VLS_TypePropsToRuntimeProps_81<{
|
|
3113
3134
|
modelValue?: number;
|
|
3114
3135
|
peek?: number;
|
|
3115
3136
|
/** How many slides fit in the viewport. 5 = product strip. 1 = one card. */
|
|
@@ -3150,7 +3171,7 @@ pausable: boolean;
|
|
|
3150
3171
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3151
3172
|
change: (value: number) => void;
|
|
3152
3173
|
"update:modelValue": (value: number) => void;
|
|
3153
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
3174
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_76<__VLS_TypePropsToRuntimeProps_81<{
|
|
3154
3175
|
modelValue?: number;
|
|
3155
3176
|
peek?: number;
|
|
3156
3177
|
/** How many slides fit in the viewport. 5 = product strip. 1 = one card. */
|
|
@@ -3247,7 +3268,7 @@ overflow: boolean;
|
|
|
3247
3268
|
flush: boolean;
|
|
3248
3269
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3249
3270
|
|
|
3250
|
-
declare const __VLS_component_70: DefineComponent<ExtractPropTypes<
|
|
3271
|
+
declare const __VLS_component_70: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_77<__VLS_TypePropsToRuntimeProps_82<{
|
|
3251
3272
|
items?: TaoStageItem[];
|
|
3252
3273
|
/** `column` (default) — steps top to bottom, `row` — left to right. / `column` — сверху вниз, `row` — слева направо. */
|
|
3253
3274
|
direction?: "row" | "column";
|
|
@@ -3257,7 +3278,7 @@ statusLabels?: Partial<Record<TaoStageStatus, string>>;
|
|
|
3257
3278
|
items: () => never[];
|
|
3258
3279
|
direction: string;
|
|
3259
3280
|
statusLabels: () => {};
|
|
3260
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
3281
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_77<__VLS_TypePropsToRuntimeProps_82<{
|
|
3261
3282
|
items?: TaoStageItem[];
|
|
3262
3283
|
/** `column` (default) — steps top to bottom, `row` — left to right. / `column` — сверху вниз, `row` — слева направо. */
|
|
3263
3284
|
direction?: "row" | "column";
|
|
@@ -3489,6 +3510,8 @@ declare type __VLS_NonUndefinedable_80<T> = T extends undefined ? never : T;
|
|
|
3489
3510
|
|
|
3490
3511
|
declare type __VLS_NonUndefinedable_81<T> = T extends undefined ? never : T;
|
|
3491
3512
|
|
|
3513
|
+
declare type __VLS_NonUndefinedable_82<T> = T extends undefined ? never : T;
|
|
3514
|
+
|
|
3492
3515
|
declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
|
|
3493
3516
|
|
|
3494
3517
|
declare type __VLS_Prettify<T> = {
|
|
@@ -3787,6 +3810,10 @@ declare type __VLS_Prettify_76<T> = {
|
|
|
3787
3810
|
[K in keyof T]: T[K];
|
|
3788
3811
|
} & {};
|
|
3789
3812
|
|
|
3813
|
+
declare type __VLS_Prettify_77<T> = {
|
|
3814
|
+
[K in keyof T]: T[K];
|
|
3815
|
+
} & {};
|
|
3816
|
+
|
|
3790
3817
|
declare type __VLS_Prettify_8<T> = {
|
|
3791
3818
|
[K in keyof T]: T[K];
|
|
3792
3819
|
} & {};
|
|
@@ -3856,7 +3883,8 @@ declare function __VLS_template_15(): {
|
|
|
3856
3883
|
declare function __VLS_template_16(): {
|
|
3857
3884
|
icon?(_: {
|
|
3858
3885
|
mode: TaoMode;
|
|
3859
|
-
|
|
3886
|
+
choice: TaoModeChoice;
|
|
3887
|
+
next: TaoModeChoice;
|
|
3860
3888
|
}): any;
|
|
3861
3889
|
};
|
|
3862
3890
|
|
|
@@ -5232,6 +5260,15 @@ declare type __VLS_TypePropsToRuntimeProps_81<T> = {
|
|
|
5232
5260
|
};
|
|
5233
5261
|
};
|
|
5234
5262
|
|
|
5263
|
+
declare type __VLS_TypePropsToRuntimeProps_82<T> = {
|
|
5264
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
5265
|
+
type: PropType<__VLS_NonUndefinedable_82<T[K]>>;
|
|
5266
|
+
} : {
|
|
5267
|
+
type: PropType<T[K]>;
|
|
5268
|
+
required: true;
|
|
5269
|
+
};
|
|
5270
|
+
};
|
|
5271
|
+
|
|
5235
5272
|
declare type __VLS_TypePropsToRuntimeProps_9<T> = {
|
|
5236
5273
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
5237
5274
|
type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
|
|
@@ -5685,6 +5722,12 @@ declare type __VLS_WithDefaults_76<P, D> = {
|
|
|
5685
5722
|
}> : P[K];
|
|
5686
5723
|
};
|
|
5687
5724
|
|
|
5725
|
+
declare type __VLS_WithDefaults_77<P, D> = {
|
|
5726
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_77<P[K] & {
|
|
5727
|
+
default: D[K];
|
|
5728
|
+
}> : P[K];
|
|
5729
|
+
};
|
|
5730
|
+
|
|
5688
5731
|
declare type __VLS_WithDefaults_8<P, D> = {
|
|
5689
5732
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_8<P[K] & {
|
|
5690
5733
|
default: D[K];
|
|
@@ -6638,6 +6681,9 @@ export declare function readTaoMode(el: Element): TaoMode;
|
|
|
6638
6681
|
*/
|
|
6639
6682
|
export declare function registerTaoIcons(icons: Record<string, TaoIconDef>): void;
|
|
6640
6683
|
|
|
6684
|
+
/** A choice as the mode to put on the page. / Выбор как режим для страницы. */
|
|
6685
|
+
export declare function resolveTaoMode(choice: TaoModeChoice): TaoMode;
|
|
6686
|
+
|
|
6641
6687
|
/**
|
|
6642
6688
|
* The element a step points at, or null (no target, a selector that finds nothing, a hidden element).
|
|
6643
6689
|
* Элемент, на который указывает шаг, или null (цели нет, селектор ничего не нашёл, элемент скрыт).
|
|
@@ -6681,6 +6727,9 @@ export declare function setTaoLocale(locale: TaoLocaleOverrides, base?: TaoLocal
|
|
|
6681
6727
|
/** sRGB (0…1) в линейный цвет (0…1). */
|
|
6682
6728
|
export declare const srgbToLinear: (c: number) => number;
|
|
6683
6729
|
|
|
6730
|
+
/** The mode the system asks for now (`prefers-color-scheme`); dark where there is no `matchMedia` (SSR). / Режим, который сейчас просит система. */
|
|
6731
|
+
export declare function systemTaoMode(): TaoMode;
|
|
6732
|
+
|
|
6684
6733
|
/** The series colours, in order: `--tao-color-chart-1` … `-6`. / Цвета серий по порядку. */
|
|
6685
6734
|
export declare const TAO_CHART_COLORS = 6;
|
|
6686
6735
|
|
|
@@ -6688,7 +6737,7 @@ export declare const TaoAlert: __VLS_WithTemplateSlots_62<typeof __VLS_component
|
|
|
6688
6737
|
|
|
6689
6738
|
export declare const TaoAnimatedBorder: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, ReturnType<typeof __VLS_template_30>>;
|
|
6690
6739
|
|
|
6691
|
-
export declare const TaoAvatar: DefineComponent<ExtractPropTypes<
|
|
6740
|
+
export declare const TaoAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_73<__VLS_TypePropsToRuntimeProps_78<{
|
|
6692
6741
|
src?: string;
|
|
6693
6742
|
name?: string;
|
|
6694
6743
|
alt?: string;
|
|
@@ -6713,7 +6762,7 @@ size: string;
|
|
|
6713
6762
|
dot: boolean;
|
|
6714
6763
|
count: undefined;
|
|
6715
6764
|
dotLabels: () => {};
|
|
6716
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
6765
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_73<__VLS_TypePropsToRuntimeProps_78<{
|
|
6717
6766
|
src?: string;
|
|
6718
6767
|
name?: string;
|
|
6719
6768
|
alt?: string;
|
|
@@ -6752,10 +6801,10 @@ declare type TaoAvatarDot = TaoTone;
|
|
|
6752
6801
|
|
|
6753
6802
|
export declare const TaoBlock: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
|
|
6754
6803
|
|
|
6755
|
-
export declare const TaoBreadcrumb: DefineComponent<ExtractPropTypes<
|
|
6804
|
+
export declare const TaoBreadcrumb: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_74<__VLS_TypePropsToRuntimeProps_79<{
|
|
6756
6805
|
items: TaoBreadcrumbItem[];
|
|
6757
6806
|
ariaLabel?: string;
|
|
6758
|
-
}>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
6807
|
+
}>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_74<__VLS_TypePropsToRuntimeProps_79<{
|
|
6759
6808
|
items: TaoBreadcrumbItem[];
|
|
6760
6809
|
ariaLabel?: string;
|
|
6761
6810
|
}>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -7026,13 +7075,13 @@ export declare const TaoContextMenu: __VLS_WithTemplateSlots_48<typeof __VLS_com
|
|
|
7026
7075
|
|
|
7027
7076
|
export declare const TaoCopy: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, ReturnType<typeof __VLS_template_15>>;
|
|
7028
7077
|
|
|
7029
|
-
export declare const TaoCounter: DefineComponent<ExtractPropTypes<
|
|
7078
|
+
export declare const TaoCounter: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_75<__VLS_TypePropsToRuntimeProps_80<{
|
|
7030
7079
|
value?: number;
|
|
7031
7080
|
maxDigits?: number;
|
|
7032
7081
|
}>, {
|
|
7033
7082
|
value: number;
|
|
7034
7083
|
maxDigits: number;
|
|
7035
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
7084
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_75<__VLS_TypePropsToRuntimeProps_80<{
|
|
7036
7085
|
value?: number;
|
|
7037
7086
|
maxDigits?: number;
|
|
7038
7087
|
}>, {
|
|
@@ -7280,9 +7329,14 @@ export declare interface TaoLocale {
|
|
|
7280
7329
|
doneLabel: string;
|
|
7281
7330
|
progressLabel: string;
|
|
7282
7331
|
};
|
|
7332
|
+
presetInput: {
|
|
7333
|
+
nextLabel: string;
|
|
7334
|
+
prevLabel: string;
|
|
7335
|
+
};
|
|
7283
7336
|
themeToggle: {
|
|
7284
7337
|
toLightLabel: string;
|
|
7285
7338
|
toDarkLabel: string;
|
|
7339
|
+
toSystemLabel: string;
|
|
7286
7340
|
};
|
|
7287
7341
|
loader: {
|
|
7288
7342
|
label: string;
|
|
@@ -7573,6 +7627,14 @@ export declare const TaoModal: __VLS_WithTemplateSlots_8<typeof __VLS_component_
|
|
|
7573
7627
|
*/
|
|
7574
7628
|
export declare type TaoMode = 'dark' | 'light';
|
|
7575
7629
|
|
|
7630
|
+
/**
|
|
7631
|
+
* What a person picks: a mode, or `system` (follow the operating system). The page itself is always `dark` or `light`:
|
|
7632
|
+
* `system` is resolved to one of them.
|
|
7633
|
+
* Что выбирает человек: режим или `system` (идти за операционной системой). Сама страница всегда `dark` или `light`:
|
|
7634
|
+
* `system` сводится к одному из них.
|
|
7635
|
+
*/
|
|
7636
|
+
export declare type TaoModeChoice = TaoMode | 'system';
|
|
7637
|
+
|
|
7576
7638
|
export declare const TaoNav: __VLS_WithTemplateSlots_43<typeof __VLS_component_43, ReturnType<typeof __VLS_template_43>>;
|
|
7577
7639
|
|
|
7578
7640
|
/**
|
|
@@ -7801,6 +7863,119 @@ export declare interface TaoPluralForms {
|
|
|
7801
7863
|
|
|
7802
7864
|
export declare const TaoPopover: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, ReturnType<typeof __VLS_template_12>>;
|
|
7803
7865
|
|
|
7866
|
+
export declare const TaoPresetInput: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_56<__VLS_TypePropsToRuntimeProps_61<{
|
|
7867
|
+
/** The value, `v-model`: an option's value, or a number typed by hand (`custom`). / Значение, `v-model`: значение пункта или число, набранное руками (`custom`). */
|
|
7868
|
+
modelValue?: TaoPresetValue;
|
|
7869
|
+
/**
|
|
7870
|
+
* The presets. They are shown in this order in the pop-up, and the arrows walk them in it («up» is the next one).
|
|
7871
|
+
* The option with `default: true` is what an empty field means («Auto»): the pop-up shows it first, and the arrows
|
|
7872
|
+
* reach it after the last one.
|
|
7873
|
+
* Заготовки. В окне идут в этом порядке, и стрелки ходят по ним в нём («вверх» — следующая). Пункт с `default: true` —
|
|
7874
|
+
* то, что значит пустое поле («Авто»): окно показывает его первым, а стрелки доходят до него после последнего.
|
|
7875
|
+
*/
|
|
7876
|
+
options?: TaoPresetOption[];
|
|
7877
|
+
/** The arrows go round: past the last one the first, before the first one the last. / Стрелки идут по кругу: после последнего первый, перед первым последний. */
|
|
7878
|
+
loop?: boolean;
|
|
7879
|
+
/** A whole number that is not in the list is a value too (between `min` and `max`). Off: only the presets. / Целое число вне списка тоже значение (между `min` и `max`). Выключено: только заготовки. */
|
|
7880
|
+
custom?: boolean;
|
|
7881
|
+
min?: number;
|
|
7882
|
+
max?: number;
|
|
7883
|
+
disabled?: boolean;
|
|
7884
|
+
error?: boolean;
|
|
7885
|
+
/** Control size, same scale as TaoButton; without it the size of the ancestors. / Размер контрола, шкала как у TaoButton; без него — размер предков. */
|
|
7886
|
+
size?: TaoSize;
|
|
7887
|
+
/** `filled` — a fill, the frame shows while the field is edited; `outline` — a frame. / `filled` — заливка, рамка видна, пока поле правят; `outline` — рамка. */
|
|
7888
|
+
variant?: "filled" | "outline";
|
|
7889
|
+
/** aria-label of the arrow that goes to the next value. / aria-label стрелки к следующему значению. */
|
|
7890
|
+
nextLabel?: string;
|
|
7891
|
+
/** aria-label of the arrow that goes to the previous value. / aria-label стрелки к предыдущему значению. */
|
|
7892
|
+
prevLabel?: string;
|
|
7893
|
+
}>, {
|
|
7894
|
+
modelValue: null;
|
|
7895
|
+
options: () => never[];
|
|
7896
|
+
loop: boolean;
|
|
7897
|
+
custom: boolean;
|
|
7898
|
+
min: number;
|
|
7899
|
+
max: number;
|
|
7900
|
+
disabled: boolean;
|
|
7901
|
+
error: boolean;
|
|
7902
|
+
size: undefined;
|
|
7903
|
+
variant: string;
|
|
7904
|
+
nextLabel: undefined;
|
|
7905
|
+
prevLabel: undefined;
|
|
7906
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7907
|
+
change: (value: TaoPresetValue) => void;
|
|
7908
|
+
"update:modelValue": (value: TaoPresetValue) => void;
|
|
7909
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_56<__VLS_TypePropsToRuntimeProps_61<{
|
|
7910
|
+
/** The value, `v-model`: an option's value, or a number typed by hand (`custom`). / Значение, `v-model`: значение пункта или число, набранное руками (`custom`). */
|
|
7911
|
+
modelValue?: TaoPresetValue;
|
|
7912
|
+
/**
|
|
7913
|
+
* The presets. They are shown in this order in the pop-up, and the arrows walk them in it («up» is the next one).
|
|
7914
|
+
* The option with `default: true` is what an empty field means («Auto»): the pop-up shows it first, and the arrows
|
|
7915
|
+
* reach it after the last one.
|
|
7916
|
+
* Заготовки. В окне идут в этом порядке, и стрелки ходят по ним в нём («вверх» — следующая). Пункт с `default: true` —
|
|
7917
|
+
* то, что значит пустое поле («Авто»): окно показывает его первым, а стрелки доходят до него после последнего.
|
|
7918
|
+
*/
|
|
7919
|
+
options?: TaoPresetOption[];
|
|
7920
|
+
/** The arrows go round: past the last one the first, before the first one the last. / Стрелки идут по кругу: после последнего первый, перед первым последний. */
|
|
7921
|
+
loop?: boolean;
|
|
7922
|
+
/** A whole number that is not in the list is a value too (between `min` and `max`). Off: only the presets. / Целое число вне списка тоже значение (между `min` и `max`). Выключено: только заготовки. */
|
|
7923
|
+
custom?: boolean;
|
|
7924
|
+
min?: number;
|
|
7925
|
+
max?: number;
|
|
7926
|
+
disabled?: boolean;
|
|
7927
|
+
error?: boolean;
|
|
7928
|
+
/** Control size, same scale as TaoButton; without it the size of the ancestors. / Размер контрола, шкала как у TaoButton; без него — размер предков. */
|
|
7929
|
+
size?: TaoSize;
|
|
7930
|
+
/** `filled` — a fill, the frame shows while the field is edited; `outline` — a frame. / `filled` — заливка, рамка видна, пока поле правят; `outline` — рамка. */
|
|
7931
|
+
variant?: "filled" | "outline";
|
|
7932
|
+
/** aria-label of the arrow that goes to the next value. / aria-label стрелки к следующему значению. */
|
|
7933
|
+
nextLabel?: string;
|
|
7934
|
+
/** aria-label of the arrow that goes to the previous value. / aria-label стрелки к предыдущему значению. */
|
|
7935
|
+
prevLabel?: string;
|
|
7936
|
+
}>, {
|
|
7937
|
+
modelValue: null;
|
|
7938
|
+
options: () => never[];
|
|
7939
|
+
loop: boolean;
|
|
7940
|
+
custom: boolean;
|
|
7941
|
+
min: number;
|
|
7942
|
+
max: number;
|
|
7943
|
+
disabled: boolean;
|
|
7944
|
+
error: boolean;
|
|
7945
|
+
size: undefined;
|
|
7946
|
+
variant: string;
|
|
7947
|
+
nextLabel: undefined;
|
|
7948
|
+
prevLabel: undefined;
|
|
7949
|
+
}>>> & Readonly<{
|
|
7950
|
+
onChange?: ((value: TaoPresetValue) => any) | undefined;
|
|
7951
|
+
"onUpdate:modelValue"?: ((value: TaoPresetValue) => any) | undefined;
|
|
7952
|
+
}>, {
|
|
7953
|
+
size: TaoSize;
|
|
7954
|
+
disabled: boolean;
|
|
7955
|
+
max: number;
|
|
7956
|
+
error: boolean;
|
|
7957
|
+
variant: "filled" | "outline";
|
|
7958
|
+
modelValue: TaoPresetValue;
|
|
7959
|
+
min: number;
|
|
7960
|
+
loop: boolean;
|
|
7961
|
+
prevLabel: string;
|
|
7962
|
+
nextLabel: string;
|
|
7963
|
+
options: TaoPresetOption[];
|
|
7964
|
+
custom: boolean;
|
|
7965
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
7966
|
+
|
|
7967
|
+
/**
|
|
7968
|
+
* An option of `TaoPresetInput`. The one with `default` is what the field means when it is empty («Auto», «None»):
|
|
7969
|
+
* it is shown first in the pop-up, and the arrows reach it after the last one.
|
|
7970
|
+
* Пункт `TaoPresetInput`. Пункт с `default` — то, что поле значит, когда оно пустое («Авто», «Нет»): он показан первым в
|
|
7971
|
+
* окне, а стрелки доходят до него после последнего.
|
|
7972
|
+
*/
|
|
7973
|
+
export declare interface TaoPresetOption extends TaoSelectOption {
|
|
7974
|
+
default?: boolean;
|
|
7975
|
+
}
|
|
7976
|
+
|
|
7977
|
+
export declare type TaoPresetValue = string | number | null;
|
|
7978
|
+
|
|
7804
7979
|
export declare const TaoProgress: __VLS_WithTemplateSlots_32<typeof __VLS_component_32, ReturnType<typeof __VLS_template_32>>;
|
|
7805
7980
|
|
|
7806
7981
|
export declare const TaoQuantity: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, ReturnType<typeof __VLS_template_6>>;
|
|
@@ -7840,7 +8015,7 @@ export declare interface TaoSelectOption {
|
|
|
7840
8015
|
/** One size scale for every control. / Единая шкала размеров для всех контролов. */
|
|
7841
8016
|
export declare type TaoSize = 'small' | 'medium' | 'large';
|
|
7842
8017
|
|
|
7843
|
-
export declare const TaoSkeleton: DefineComponent<ExtractPropTypes<
|
|
8018
|
+
export declare const TaoSkeleton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_71<__VLS_TypePropsToRuntimeProps_76<{
|
|
7844
8019
|
variant?: "text" | "title" | "circle" | "rect";
|
|
7845
8020
|
lines?: number;
|
|
7846
8021
|
width?: string;
|
|
@@ -7850,7 +8025,7 @@ variant: string;
|
|
|
7850
8025
|
lines: number;
|
|
7851
8026
|
width: string;
|
|
7852
8027
|
height: string;
|
|
7853
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
8028
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_71<__VLS_TypePropsToRuntimeProps_76<{
|
|
7854
8029
|
variant?: "text" | "title" | "circle" | "rect";
|
|
7855
8030
|
lines?: number;
|
|
7856
8031
|
width?: string;
|