@1337exp/taoui 5.26.0 → 5.27.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 CHANGED
@@ -1,10 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.27.1
4
+
5
+ Nothing to migrate.
6
+
7
+ - **confirm(): a button no longer jumps a pixel under the pointer.** A confirm with a message (the danger one, for example) stood on a fraction of a pixel: its text had fractional line heights (16 x 1.3, 14 x 1.45), so the panel was 143.09px high, and centred in a box where the room left over was odd it started at 351.45. A button on such a fraction is drawn one way at first and snapped to whole pixels when it is repainted under the pointer, so it moved down a little. The line heights are whole pixels at the default sizes now (16 x 1.25 = 20, 14 x 1.5 = 21), and a centred panel with an odd room left over gets a margin of 1px, which moves it by half a pixel onto a whole one (`centringNudge`, when the confirm opens and when the window is resized). No layer is forced (a `will-change` made the text blurry). `TaoModal` had the same fault in a window of the other parity (its panel started at 314.5, and with it the close button, the text and the footer button): its title was `line-height: normal`, which is fractional, and the panel was not nudged. The title is as high as the close button now (24px at the default size) and a centred `TaoModal` is nudged the same way. The nudge is one composable, `useWholePixelPanel` (it also looks again when the content changes size), used by both. `showcase/lab/subpixel.html` measures this for `confirm()`, `TaoModal`, `TaoDrawer`, `toast()` and `TaoTooltip`.
8
+ - **Floating panels start on whole pixels.** The position of every panel placed by `useFloating` (Tooltip, Popover, Select, Combobox, Date, DropdownMenu, the tip of TaoCopy…) came from the anchor and the size of the panel and was often a fraction: a tooltip centred over a button with an odd width stood on a half pixel. Text and buttons on a fraction are drawn one way at first and snapped to whole pixels when they are repainted, so a button in a popover could jump when the pointer came to it. `computePosition` rounds `top` and `left` (after the flip and the clamp into the window), and the arrow is worked out from the rounded position, so it still points at the middle of the anchor. `showcase/lab/subpixel.html` now also measures `TaoPopover` and `TaoSelect`.
9
+ - **TaoCounter: a digit no longer jumps a pixel when it starts to roll.** A digit became a layer of its own only when its `transform` and `blur` began, and the text was then redrawn on whole pixels: in Chromium it moved a little to the left at the start (and back at the end). The digit is a layer from the start now (`will-change`), so it is drawn the same before, during and after. The geometry was never off: the cells and the centre of the text stay put to a hundredth of a pixel.
10
+
11
+ ## 5.27.0
12
+
13
+ Nothing to migrate; the defaults do not change (a plain string in a locale works as before).
14
+
15
+ - **Plural forms in locale texts.** A text that depends on a number may now be written as forms, `{ one, few, many, other }` (as `Intl.PluralRules` names the categories; only `other` is required, a missing form falls back to it), chosen by the number (`count`, or `n`) and the `code` of the locale. A plain string is still accepted and is the same for every number, so nobody has to write forms. The built-in texts that count have them now, in English and Russian: the badge of `TaoAvatar` ("1 notification", "2 уведомления", "5 уведомлений") and the jump buttons of `TaoPagination`. `formatTaoText(text, values, code?)` is exported for your own texts; the types are `TaoText` and `TaoPluralForms`.
16
+ - **`detectTaoLanguage(supported, { fallback?, requested? })`.** The one of your languages that the user would like most, by `navigator.languages` (a server passes `requested`, e.g. `parseAcceptLanguage(header)`); `ru-RU` fits `ru`, `en` is answered by `en-GB`. It only answers: it does not set the language and does not remember it (`saved ?? detectTaoLanguage(['en', 'ru'])`). `matchTaoLanguage(requested, supported, fallback?)` is the pure core.
17
+ - **TaoColorInput: an empty value says it is not set.** For an optional colour (`''`) the field showed an empty frame. Now it says "Not set" (`placeholder`, the text comes from the locale: `colorPicker.placeholder`, "Не задан" in Russian) in a muted voice, the swatch is crossed out, and a screen reader hears it ("Choose color: Not set"). With `clearable` the colour can be taken away again: a Clear row at the foot of the palette, after a divider, as in Select (`colorPicker.clearText` in the locale; it is always there and disabled while there is nothing to clear, so nobody has to guess it exists) and Delete / Backspace on the field; it gives `''`.
18
+ - **Scrollbars: four hooks and a class.** `--tao-scrollbar-size` (5px by default, so the thin scrollbar stays; the rule used `max-width`, which could never make it thicker than the browser's own 15px, now it is `width`), `--tao-scrollbar-thumb` (the accent), `--tao-scrollbar-track` (transparent) and `--tao-scrollbar-width` (`thin` | `auto` | `none`, for Firefox). Set them on `:root`, on a block or on a component; the colours are read where the scroll is, so a block with another theme gets its own accent. The class `tao-native-scrollbars` on `<html>`, or on any block, gives the browser's own scrollbars back for everything inside it. Firefox, which has no `::-webkit-scrollbar`, now gets the same look through `scrollbar-width` and `scrollbar-color` (only there: Chrome 121+ understands them too and would ignore the rules above): a thin scrollbar with the accent thumb, like the other browsers; `tao-native-scrollbars` or `--tao-scrollbar-width: auto` turns it off. The showcase has a panel with sliders under «Layers and theming».
19
+ - **Showcase: the keys of the locale are browsable.** The sections of the locale are buttons: one shows its keys in English and Russian, built from the real `localeEn` / `localeRu`, so the page cannot differ from the library; a template to translate can be copied. New there: plural forms and the language of the user, both live. `showcase/lab/rtl.html` is a probe of the same components left to right and right to left (the status of RTL is in the README of the lab).
20
+
3
21
  ## 5.26.0
4
22
 
5
23
  Nothing to migrate; the defaults do not change.
6
24
 
7
25
  - **TaoLoader `variant="diamonds"`.** Four diamonds on two axes, which flow into each other. On each axis a hollow diamond crosses to a filled one; the filled one shrinks as it comes (from half way) and is gone when the hollow one lands; the new filled one grows at the place the hollow one left, before the old one is quite gone; then it goes back the other way. The second axis is the same pair turned a quarter and a fifth of the cycle behind, so the two pass the middle one after the other. Sized, toned and named like the other looks (`size`, `tone`, `color`, `label`), hidden from a screen reader as a picture; under reduced motion it stands and breathes. `showcase/lab/` is a bench for working on such an animation frame by frame (not part of the package).
26
+ - **Showcase: a «Localization» section.** The same components with no text given by hand in three columns, each with a language of its own (`provideTaoLocale`): English, Russian and a third made of a few German keys on top of English (its `code` `de-DE` makes the date read the German way). How to set it (`app.use`, `setTaoLocale`, a subtree), your own language, a prop that wins, what is translated (every section of the locale with its count of texts), and what to know (`<html lang>`, no plural forms).
8
27
 
9
28
  ## 5.25.0
10
29
 
package/README.md CHANGED
@@ -331,6 +331,12 @@ function onLanguageChange(lang) {
331
331
 
332
332
  Without the plugin (individual components) `setTaoLocale()` is the only call you need.
333
333
 
334
+ Scrollbars are thin (5px) with the accent thumb. To change them, set `--tao-scrollbar-size`, `--tao-scrollbar-thumb`, `--tao-scrollbar-track` (and `--tao-scrollbar-width` for Firefox) on the page or on a block; the class `tao-native-scrollbars` on `<html>` or on a block gives the browser's own back. A panel with sliders is in the showcase, under «Layers and theming».
335
+
336
+ Which language to start with: `detectTaoLanguage(['en', 'ru'])` answers with the one of your languages that the browser prefers (`ru-RU` fits `ru`), for example `saved ?? detectTaoLanguage(['en', 'ru'])`; on a server pass the wishes of the request: `{ requested: parseAcceptLanguage(header) }`.
337
+
338
+ A text that depends on a number may be plural forms (`{ one, few, many, other }`, chosen by the plural rules of the locale `code`); a plain string still works and is the same for every number.
339
+
334
340
  ### Upgrading to 5.0
335
341
 
336
342
  5.0 deletes every name that 2.0 deprecated (plus the `error` tone alias), see [MIGRATION-5.md](MIGRATION-5.md) for the table old → new.
package/README.ru.md CHANGED
@@ -331,6 +331,12 @@ function onLanguageChange(lang) {
331
331
 
332
332
  Без плагина (отдельные компоненты) достаточно одного вызова `setTaoLocale()`.
333
333
 
334
+ Полосы прокрутки тонкие (5px) с акцентным бегунком. Чтобы изменить, задайте `--tao-scrollbar-size`, `--tao-scrollbar-thumb`, `--tao-scrollbar-track` (и `--tao-scrollbar-width` для Firefox) на странице или на блоке; класс `tao-native-scrollbars` на `<html>` или на блоке возвращает родные. Панель с ползунками есть в шоукейсе, в разделе «Слои и темизация».
335
+
336
+ С какого языка начать: `detectTaoLanguage(['en', 'ru'])` отвечает тем из ваших языков, который предпочитает браузер (`ru-RU` подходит к `ru`), например `saved ?? detectTaoLanguage(['en', 'ru'])`; на сервере передайте пожелания запроса: `{ requested: parseAcceptLanguage(header) }`.
337
+
338
+ Текст, зависящий от числа, может быть формами множественного числа (`{ one, few, many, other }`, выбираются правилами языка из `code` локали); обычная строка по-прежнему работает и одна на любое число.
339
+
334
340
  ### Переход на 5.0
335
341
 
336
342
  5.0 удаляет все имена, которые устарели в 2.0 (и алиас тона `error`), таблица «старое → новое» в [MIGRATION-5.md](MIGRATION-5.md).
package/dist/index.d.ts CHANGED
@@ -1968,8 +1968,8 @@ onChange?: ((value: string | number | null) => any) | undefined;
1968
1968
  disabled: boolean;
1969
1969
  error: boolean;
1970
1970
  modelValue: string | number | null;
1971
- options: TaoSelectOption[];
1972
1971
  clearable: boolean;
1972
+ options: TaoSelectOption[];
1973
1973
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1974
1974
 
1975
1975
  declare const __VLS_component_52: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_54<__VLS_TypePropsToRuntimeProps_59<{
@@ -2045,8 +2045,8 @@ disabled: boolean;
2045
2045
  error: boolean;
2046
2046
  variant: "outline" | "filled" | "plain";
2047
2047
  modelValue: string | number | null;
2048
- options: TaoSelectOption[];
2049
2048
  clearable: boolean;
2049
+ options: TaoSelectOption[];
2050
2050
  allowCreate: boolean;
2051
2051
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2052
2052
 
@@ -2734,8 +2734,8 @@ nextLabel?: string;
2734
2734
  /** `{page}` — номер страницы. */
2735
2735
  pageLabel?: string;
2736
2736
  /** `{n}` — сколько страниц перескакивает «…». */
2737
- jumpPrevLabel?: string;
2738
- jumpNextLabel?: string;
2737
+ jumpPrevLabel?: TaoText;
2738
+ jumpNextLabel?: TaoText;
2739
2739
  goToText?: string;
2740
2740
  goToLabel?: string;
2741
2741
  /**
@@ -2783,8 +2783,8 @@ nextLabel?: string;
2783
2783
  /** `{page}` — номер страницы. */
2784
2784
  pageLabel?: string;
2785
2785
  /** `{n}` — сколько страниц перескакивает «…». */
2786
- jumpPrevLabel?: string;
2787
- jumpNextLabel?: string;
2786
+ jumpPrevLabel?: TaoText;
2787
+ jumpNextLabel?: TaoText;
2788
2788
  goToText?: string;
2789
2789
  goToLabel?: string;
2790
2790
  /**
@@ -6097,6 +6097,22 @@ declare type DeepPartial<T> = T extends string | unknown[] ? T : {
6097
6097
  [K in keyof T]?: DeepPartial<T[K]>;
6098
6098
  };
6099
6099
 
6100
+ /**
6101
+ * The language of the user, one of `supported`: `detectTaoLanguage(['en', 'ru'])`. In a browser it reads `navigator.languages`; where
6102
+ * there is none (a server) it answers `fallback`, unless you pass `requested`. It only answers: it does not change the language of the
6103
+ * components (`setTaoLocale` does) and does not remember anything. Typical use: `saved ?? detectTaoLanguage(['en', 'ru'])`.
6104
+ * Язык пользователя, один из `supported`. В браузере читает `navigator.languages`; где его нет (сервер), отвечает `fallback`, если не
6105
+ * передать `requested`. Только отвечает: язык компонентов не меняет (это делает `setTaoLocale`) и ничего не запоминает.
6106
+ */
6107
+ export declare function detectTaoLanguage(supported: readonly string[], options?: DetectTaoLanguageOptions): string;
6108
+
6109
+ declare interface DetectTaoLanguageOptions {
6110
+ /** What to answer when nothing matches; the first of `supported` by default. / Что ответить, если ничего не подошло. */
6111
+ fallback?: string;
6112
+ /** The wishes, instead of `navigator.languages`: for the server, or for a language you got yourself. / Пожелания вместо `navigator.languages`. */
6113
+ requested?: readonly string[];
6114
+ }
6115
+
6100
6116
  export declare function formatTaoDateIso(parts: TaoDateParts): string;
6101
6117
 
6102
6118
  export declare function formatTaoDateLabel(iso: string, locale?: string): string;
@@ -6109,6 +6125,16 @@ export declare function formatTaoDateRangeLabel(start: string, end: string, loca
6109
6125
  */
6110
6126
  export declare function formatTaoDateShort(iso: string, locale?: string): string;
6111
6127
 
6128
+ /**
6129
+ * Puts the values into a text: `'Слайд {n} из {count}'` + `{ n: 1, count: 5 }`. A text may also be plural forms: the form is
6130
+ * chosen by the number `count` (or `n`) in `values` and the plural rules of `code` (the language of the locale in effect by
6131
+ * default). A plain string is used as it is for every number.
6132
+ * Подставляет значения в текст. Текст может быть и формами множественного числа: форма выбирается по числу `count`
6133
+ * (или `n`) в `values` и правилам множественного числа языка `code` (по умолчанию язык действующей локали).
6134
+ * Обычная строка берётся как есть для любого числа.
6135
+ */
6136
+ export declare function formatTaoText(template: TaoText, values: Record<string, string | number>, code?: string): string;
6137
+
6112
6138
  /** HSL в RGB (0…255, целые). */
6113
6139
  export declare function hslToRgb(h: number, s: number, l: number): {
6114
6140
  r: number;
@@ -6141,6 +6167,22 @@ export declare const localeEn: TaoLocale;
6141
6167
  /** Default locale. / Локаль по умолчанию. */
6142
6168
  export declare const localeRu: TaoLocale;
6143
6169
 
6170
+ /**
6171
+ * Picks, out of the languages your app has, the one the user would like most. The user's wishes are
6172
+ * `navigator.languages` (the browser) or a list you give (the `Accept-Language` of a request, on the server). A tag matches
6173
+ * a supported one exactly (`ru-RU` and `ru-ru`), or by its language (`ru-RU` asks for `ru`; `en` is answered by `en-GB`).
6174
+ * Выбирает из языков вашего приложения тот, что пользователь хотел бы больше всего. Пожелания пользователя — это
6175
+ * `navigator.languages` (браузер) или список, который вы дадите (`Accept-Language` запроса на сервере). Тег подходит
6176
+ * поддерживаемому точно (`ru-RU` и `ru-ru`) или по языку (`ru-RU` просит `ru`; на `en` отвечает `en-GB`).
6177
+ */
6178
+ /**
6179
+ * The best of `supported` for the wishes in `requested` (most wanted first), or `fallback` (the first of `supported` by
6180
+ * default). Pure: the same wishes always give the same answer, on the server too.
6181
+ * Лучший из `supported` для пожеланий `requested` (самое желаемое первым) либо `fallback` (по умолчанию первый из
6182
+ * `supported`). Чистая: одни и те же пожелания всегда дают один ответ, и на сервере тоже.
6183
+ */
6184
+ export declare function matchTaoLanguage(requested: readonly string[], supported: readonly string[], fallback?: string): string;
6185
+
6144
6186
  declare function measure(): void;
6145
6187
 
6146
6188
  /**
@@ -6159,6 +6201,12 @@ declare interface NodeSlot {
6159
6201
  /** Нормализует строку из поля ввода к `#rrggbb` / `#rrggbbaa`; не цвет: null. */
6160
6202
  export declare function normalizeHex(input: string, alpha?: boolean): string | null;
6161
6203
 
6204
+ /**
6205
+ * The tags of an `Accept-Language` header, the most wanted first (`ru-RU,ru;q=0.9,en;q=0.8`); `*` and `q=0` are left out.
6206
+ * Теги заголовка `Accept-Language`, самый желаемый первым; `*` и `q=0` отбрасываются.
6207
+ */
6208
+ export declare function parseAcceptLanguage(header: string | null | undefined): string[];
6209
+
6162
6210
  /**
6163
6211
  * Разбирает цвет из строки: `#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`, `rgb(255 136 0)`, `rgba(255, 136, 0, 0.5)`,
6164
6212
  * `rgb(255 136 0 / 50%)`, `hsl(30 100% 50%)`, `hsla(30, 100%, 50%, 0.5)`. Не цвет: null.
@@ -6555,7 +6603,7 @@ dot?: boolean | TaoAvatarDot;
6555
6603
  count?: number | string;
6556
6604
  fallbackLabel?: string;
6557
6605
  /** `{count}` — число в бейдже. */
6558
- notificationsLabel?: string;
6606
+ notificationsLabel?: TaoText;
6559
6607
  dotLabels?: Partial<Record<TaoAvatarDot, string>>;
6560
6608
  }>, {
6561
6609
  src: string;
@@ -6580,7 +6628,7 @@ dot?: boolean | TaoAvatarDot;
6580
6628
  count?: number | string;
6581
6629
  fallbackLabel?: string;
6582
6630
  /** `{count}` — число в бейдже. */
6583
- notificationsLabel?: string;
6631
+ notificationsLabel?: TaoText;
6584
6632
  dotLabels?: Partial<Record<TaoAvatarDot, string>>;
6585
6633
  }>, {
6586
6634
  src: string;
@@ -6593,10 +6641,10 @@ dotLabels: () => {};
6593
6641
  }>>> & Readonly<{}>, {
6594
6642
  name: string;
6595
6643
  size: TaoSize;
6644
+ count: number | string;
6596
6645
  src: string;
6597
6646
  alt: string;
6598
6647
  dot: boolean | TaoAvatarDot;
6599
- count: number | string;
6600
6648
  dotLabels: Partial<Record<TaoAvatarDot, string>>;
6601
6649
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6602
6650
 
@@ -6688,6 +6736,12 @@ placement?: TaoPlacement;
6688
6736
  /** Without it the size of ancestors. / Без него — размер предков. */
6689
6737
  size?: TaoSize;
6690
6738
  chooseLabel?: string;
6739
+ /** What the field says while the value is empty (an optional colour that is not set). / Что говорит поле, пока значение пустое (необязательный цвет не задан). */
6740
+ placeholder?: string;
6741
+ /** The colour can be taken away again: a Clear button under the palette, and Delete / Backspace on the field. Gives `''`. / Цвет можно убрать: кнопка «Очистить» под палитрой и Delete / Backspace на поле. Отдаёт `''`. */
6742
+ clearable?: boolean;
6743
+ /** Text of the clear button. / Текст кнопки очистки. */
6744
+ clearText?: string;
6691
6745
  }>, {
6692
6746
  alpha: boolean;
6693
6747
  modes: () => string[];
@@ -6695,6 +6749,7 @@ eyedropper: boolean;
6695
6749
  disabled: boolean;
6696
6750
  error: boolean;
6697
6751
  placement: string;
6752
+ clearable: boolean;
6698
6753
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6699
6754
  change: (hex: string) => void;
6700
6755
  "update:modelValue": (hex: string) => void;
@@ -6717,6 +6772,12 @@ placement?: TaoPlacement;
6717
6772
  /** Without it the size of ancestors. / Без него — размер предков. */
6718
6773
  size?: TaoSize;
6719
6774
  chooseLabel?: string;
6775
+ /** What the field says while the value is empty (an optional colour that is not set). / Что говорит поле, пока значение пустое (необязательный цвет не задан). */
6776
+ placeholder?: string;
6777
+ /** The colour can be taken away again: a Clear button under the palette, and Delete / Backspace on the field. Gives `''`. / Цвет можно убрать: кнопка «Очистить» под палитрой и Delete / Backspace на поле. Отдаёт `''`. */
6778
+ clearable?: boolean;
6779
+ /** Text of the clear button. / Текст кнопки очистки. */
6780
+ clearText?: string;
6720
6781
  }>, {
6721
6782
  alpha: boolean;
6722
6783
  modes: () => string[];
@@ -6724,6 +6785,7 @@ eyedropper: boolean;
6724
6785
  disabled: boolean;
6725
6786
  error: boolean;
6726
6787
  placement: string;
6788
+ clearable: boolean;
6727
6789
  }>>> & Readonly<{
6728
6790
  onChange?: ((hex: string) => any) | undefined;
6729
6791
  "onUpdate:modelValue"?: ((hex: string) => any) | undefined;
@@ -6735,6 +6797,7 @@ placement: TaoPlacement;
6735
6797
  alpha: boolean;
6736
6798
  modes: readonly ColorMode[];
6737
6799
  eyedropper: boolean;
6800
+ clearable: boolean;
6738
6801
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6739
6802
 
6740
6803
  export declare const TaoColorPicker: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_53<__VLS_TypePropsToRuntimeProps_58<{
@@ -7057,13 +7120,6 @@ inline: boolean;
7057
7120
  decorative: boolean;
7058
7121
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
7059
7122
 
7060
- /**
7061
- * Every built-in text of the library. Keys repeat prop names: `locale.select.placeholder`
7062
- * is the default of TaoSelect `placeholder`; a prop passed by hand always wins.
7063
- *
7064
- * Все встроенные тексты библиотеки. Ключи повторяют имена пропсов: `locale.select.placeholder` —
7065
- * значение по умолчанию для `placeholder` у TaoSelect; переданный руками проп всегда главнее.
7066
- */
7067
7123
  export declare interface TaoLocale {
7068
7124
  /** BCP 47 tag for dates (Intl), e.g. `ru-RU`, `en-US`. / Тег языка для дат. */
7069
7125
  code: string;
@@ -7080,8 +7136,8 @@ export declare interface TaoLocale {
7080
7136
  };
7081
7137
  avatar: {
7082
7138
  fallbackLabel: string;
7083
- /** `{count}` — the number in the badge. / число в бейдже. */
7084
- notificationsLabel: string;
7139
+ /** `{count}` — the number in the badge. A string or plural forms. / число в бейдже. Строка или формы числа. */
7140
+ notificationsLabel: TaoText;
7085
7141
  dotLabels: Record<'success' | 'danger' | 'warning' | 'info' | 'neutral', string>;
7086
7142
  };
7087
7143
  breadcrumb: {
@@ -7205,9 +7261,9 @@ export declare interface TaoLocale {
7205
7261
  nextLabel: string;
7206
7262
  /** `{page}`. */
7207
7263
  pageLabel: string;
7208
- /** `{n}` — pages skipped by «…». / сколько страниц перескакивает «…». */
7209
- jumpPrevLabel: string;
7210
- jumpNextLabel: string;
7264
+ /** `{n}` — pages skipped by «…». A string or plural forms. / сколько страниц перескакивает «…». Строка или формы числа. */
7265
+ jumpPrevLabel: TaoText;
7266
+ jumpNextLabel: TaoText;
7211
7267
  /** The text before the page field. / Текст перед полем страницы. */
7212
7268
  goToText: string;
7213
7269
  /** `{count}` — the number of pages. / число страниц. */
@@ -7253,6 +7309,10 @@ export declare interface TaoLocale {
7253
7309
  eyedropperLabel: string;
7254
7310
  /** Trigger of TaoColorInput. / Кнопка TaoColorInput. */
7255
7311
  chooseLabel: string;
7312
+ /** What the field of TaoColorInput says while it has no colour (an empty value). / Что говорит поле TaoColorInput, пока цвета нет (пустое значение). */
7313
+ placeholder: string;
7314
+ /** The button that empties an optional colour (`clearable`). / Кнопка, очищающая необязательный цвет (`clearable`). */
7315
+ clearText: string;
7256
7316
  };
7257
7317
  scrubber: {
7258
7318
  playLabel: string;
@@ -7610,6 +7670,28 @@ errorText: string;
7610
7670
  */
7611
7671
  export declare type TaoPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
7612
7672
 
7673
+ /**
7674
+ * Every built-in text of the library. Keys repeat prop names: `locale.select.placeholder`
7675
+ * is the default of TaoSelect `placeholder`; a prop passed by hand always wins.
7676
+ *
7677
+ * Все встроенные тексты библиотеки. Ключи повторяют имена пропсов: `locale.select.placeholder` —
7678
+ * значение по умолчанию для `placeholder` у TaoSelect; переданный руками проп всегда главнее.
7679
+ */
7680
+ /**
7681
+ * A text that depends on a number: one form per plural category of the language (`one`, `few`, `many`, `other`…,
7682
+ * as `Intl.PluralRules` names them). Only `other` is required; a form that is missing falls back to it.
7683
+ * Текст, зависящий от числа: по форме на каждую категорию множественного числа языка (`one`, `few`, `many`, `other`…,
7684
+ * как их называет `Intl.PluralRules`). Обязательна только `other`; недостающая форма заменяется ею.
7685
+ */
7686
+ export declare interface TaoPluralForms {
7687
+ other: string;
7688
+ zero?: string;
7689
+ one?: string;
7690
+ two?: string;
7691
+ few?: string;
7692
+ many?: string;
7693
+ }
7694
+
7613
7695
  export declare const TaoPopover: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, ReturnType<typeof __VLS_template_12>>;
7614
7696
 
7615
7697
  export declare const TaoProgress: __VLS_WithTemplateSlots_32<typeof __VLS_component_32, ReturnType<typeof __VLS_template_32>>;
@@ -7901,6 +7983,9 @@ export declare const TaoTabs: __VLS_WithTemplateSlots_9<typeof __VLS_component_9
7901
7983
 
7902
7984
  export declare const TaoTag: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, ReturnType<typeof __VLS_template_27>>;
7903
7985
 
7986
+ /** A text: a plain string (the same for every number) or plural forms. / Текст: просто строка (одна на любое число) или формы множественного числа. */
7987
+ export declare type TaoText = string | TaoPluralForms;
7988
+
7904
7989
  export declare const TaoTextarea: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_30<__VLS_TypePropsToRuntimeProps_32<{
7905
7990
  placeholder?: string;
7906
7991
  spellcheck?: boolean;
@@ -8034,12 +8119,12 @@ onFocus?: ((...args: any[]) => any) | undefined;
8034
8119
  onKeydown?: ((...args: any[]) => any) | undefined;
8035
8120
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8036
8121
  }>, {
8122
+ count: boolean;
8037
8123
  disabled: boolean;
8038
8124
  placeholder: string;
8039
8125
  error: boolean;
8040
8126
  resize: boolean;
8041
8127
  variant: TaoTextareaVariant;
8042
- count: boolean;
8043
8128
  modelValue: string;
8044
8129
  align: "start" | "center" | "end";
8045
8130
  autocomplete: string;