@1337exp/taoui 5.13.0 → 5.15.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 +19 -0
- package/README.md +5 -5
- package/README.ru.md +5 -5
- package/dist/index.d.ts +101 -0
- package/dist/index.js +114 -27
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +3 -2
- package/skills/taoui/references/components.md +7 -1
- package/src/styles/contexts/surface.css +11 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.15.0
|
|
4
|
+
|
|
5
|
+
`TaoModal` and `TaoDrawer` put your `class`, `style` and other attributes on the dialog panel now, not on the overlay or the layer around it: if you styled the overlay through a class on the component, move that rule to `.tao-modal-overlay` / `.tao-drawer`.
|
|
6
|
+
|
|
7
|
+
- **`TaoModal` scrolls its content, not itself.** The whole dialog scrolled, so the `#footer` went away with the text and an app drew its own sticky bar (in the page colour, with a dark edge round the buttons). Now the content scrolls and the header and the footer stay, as they already did in `fullscreen`. `--tao-modal-bg` is the panel colour, for a bar of your own that sticks inside.
|
|
8
|
+
- **`TaoModal` and `TaoDrawer` take `surface`:** `grain` (a film grain over a solid fill) or `glass`, as on TaoCard, TaoBlock and TaoNav; with the attributes on the panel, `class="tao-surface-grain"` works too. `--tao-drawer-bg` is the drawer panel colour.
|
|
9
|
+
- **The grain goes when more contrast is asked** (`prefers-contrast: more`): the fill stays solid and clean.
|
|
10
|
+
- **`TaoNav` `badgeTone`:** `neutral` makes the counters grey with the accent on the current item only, so the eye is not pulled round the menu; a dot (`badge: true`) stays the accent. The docs say what is what: `.tao-nav` is the whole layout (navigation and page), `.tao-nav__panel` the navigation, `.tao-nav__content` the page.
|
|
11
|
+
- **`TaoDropdownMenu` `size` and `tabbable`:** `size` makes the button a square of that control height (a compact kebab in a list row); `:tabbable="false"` takes it out of the Tab order when the row has its own menu key.
|
|
12
|
+
- Showcase: a grain modal with a long text, a compact kebab, neutral counters in the TaoNav demo.
|
|
13
|
+
|
|
14
|
+
## 5.14.0
|
|
15
|
+
|
|
16
|
+
Nothing to migrate.
|
|
17
|
+
|
|
18
|
+
- **`TaoList` `roving`.** One Tab stop for the whole list: the arrows move between the rows, Home / End to the first and the last, disabled rows are skipped, and Tab comes back to the row it left (the selected one the first time). The stop of a row is its button (`clickable`) or the row itself, with the focus ring of a clickable row. Rows added or removed are followed; a key pressed in a row's own control (an input, a menu) stays with it. An app no longer writes its own roving tabindex for a list of records.
|
|
19
|
+
- **`TaoListItem` focus ring round the whole row.** On a `clickable` row the ring was drawn on its button, inside the row's padding, so it stood off the edges while the highlight ran the full width. It goes round the row now (`:has()`; older browsers keep the ring on the button).
|
|
20
|
+
- Showcase: the «People» list is roving.
|
|
21
|
+
|
|
3
22
|
## 5.13.0
|
|
4
23
|
|
|
5
24
|
Nothing to migrate.
|
package/README.md
CHANGED
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
- **TaoMarquee** — one line that never wraps: when it does not fit it runs round with fading edges and a pause at the start of every round, when it fits it stands still. Stops on hover, on focus and on a tap (WCAG 2.2.2); wraps with «reduce motion»; a screen reader reads it once. `text` or inline content in the slot, `speed`, `gap`, `fade` (the left fade takes that much room left of the text: give the parent the padding), `paused`
|
|
59
59
|
- **TaoInput** — text field with v-model, validation, and `#prefix` / `#suffix` slots (icon or text inside the frame); `variant` `outline` / `filled` / `plain` (no frame: an item of a list being edited; `TaoInputNumber`, `TaoCombobox` and `TaoTextarea` take it too)
|
|
60
60
|
- **TaoInputGroup** — outer glue: `#before` | field | `#after` (protocol, unit, button)
|
|
61
|
-
- **TaoModal** — modal with animation and slots; `fullscreen` (or `fullscreen="narrow"`: a page on a phone, a dialog on a computer)
|
|
62
|
-
- **TaoDrawer** — side panel (filters, settings), or a bottom sheet with `side="bottom"`. Esc, backdrop click, focus trap — same as the modal
|
|
61
|
+
- **TaoModal** — modal with animation and slots; `fullscreen` (or `fullscreen="narrow"`: a page on a phone, a dialog on a computer); `surface="grain"` / `"glass"`, class and attributes on the dialog panel; the content scrolls under a header and a footer that stay
|
|
62
|
+
- **TaoDrawer** — side panel (filters, settings), or a bottom sheet with `side="bottom"`. Esc, backdrop click, focus trap — same as the modal; `surface`, class and attributes on the panel
|
|
63
63
|
- **TaoSpoiler** — disclosure. `v-model` and `aria-expanded`. Neighbours do not close each other
|
|
64
64
|
- **TaoSpoilerGroup** — accordion: `v-model` is the open panel key (`null` = all closed); spoilers take `name`. Without `v-model` the group keeps that key itself
|
|
65
65
|
- **TaoTabs** — tabbed sections
|
|
66
|
-
- **TaoNav** — navigation between the sections of an app: one list of items (`icon`, `href`, `badge`), three looks. `layout="auto"` picks by the width of TaoNav itself (container queries, no JS): a bottom bar below 600px (more than five items: «More» with a menu), a rail with icons below 840px, a side panel with labels from 840px. With the page in its slot it lays the page out: the bar sticks to the bottom (safe area kept), the side list to the top. `floating` lifts the bar into a detached pill with a shadow (the rail and the side panel stay). `indicator="line"` marks the current section with a short accent line instead of a tint. The `#action` slot is the screen's main action and moves with the navigation: round above the bar at the end side, at the top of the rail, extended with its text at the top of the side panel. `select(id, event)` lets a router take over a link. Widths: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` for the action in the side panel; `surface="glass"` lets the page show blurred through the bar; `#footer` for a small line under the items on the side
|
|
66
|
+
- **TaoNav** — navigation between the sections of an app: one list of items (`icon`, `href`, `badge`), three looks. `layout="auto"` picks by the width of TaoNav itself (container queries, no JS): a bottom bar below 600px (more than five items: «More» with a menu), a rail with icons below 840px, a side panel with labels from 840px. With the page in its slot it lays the page out: the bar sticks to the bottom (safe area kept), the side list to the top. `floating` lifts the bar into a detached pill with a shadow (the rail and the side panel stay). `indicator="line"` marks the current section with a short accent line instead of a tint. The `#action` slot is the screen's main action and moves with the navigation: round above the bar at the end side, at the top of the rail, extended with its text at the top of the side panel. `select(id, event)` lets a router take over a link. Widths: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` for the action in the side panel; `surface="glass"` lets the page show blurred through the bar; `#footer` for a small line under the items on the side; `badgeTone="neutral"` keeps the accent on the current item's counter only. `.tao-nav` is the whole layout, `.tao-nav__panel` the navigation, `.tao-nav__content` the page
|
|
67
67
|
- **TaoTooltip** — hover hint. `placement`: `top` / `bottom` / `left` / `right`, each with `-start` / `-end`; flips at the viewport edge
|
|
68
68
|
- **TaoPopover** — click panel with any slot content, Esc and outside click; `placement` as Tooltip. Not a tooltip, not an action menu
|
|
69
69
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
- **TaoHeatmap** — a value for each pair of two things (orders by weekday and hour): `values` by `rows` × `cols`, the colour by thresholds (`steps`, round numbers by default) that the legend names («500+»), the faint levels striped, a tip with the exact number. A `role="grid"` the arrows move through, a screen reader reads the row, the column and the number; it fits its container and shows the column names as often as they fit
|
|
108
108
|
- **TaoPagination** — pages with ellipsis. Clicking “…” jumps `jump` pages (5 by default). `pageSizes` adds a «Per page» choice (`v-model:page-size`); the first row on screen stays on screen
|
|
109
109
|
- **TaoEmpty** — empty list, no results, no access
|
|
110
|
-
- **TaoList** / **TaoListItem** — list row: icon, title, caption, hover action. Not Select, not a table
|
|
110
|
+
- **TaoList** / **TaoListItem** — list row: icon, title, caption, hover action. Not Select, not a table; `roving` makes it one Tab stop with the arrows between the rows
|
|
111
111
|
- **TaoTree** — files or objects as a tree: `v-model:expanded`, selection `none | single | multiple` (`v-model:selected`), checkboxes with mixed parents (`checkable`, `v-model:checked`), lazy children (`hasChildren` + `load`). ARIA tree: one tab stop, arrows, `→` / `←` in and out, Home / End, `*`, type-ahead. Slots `#icon`, `#label`, `#actions`; rows on the control tokens (size and density)
|
|
112
112
|
- **TaoStages** — stage list: `wait` / `work` / `ok` / `bad`. Not a linear stepper
|
|
113
113
|
- **TaoTimeline** — a vertical feed of events: order steps, releases, a log. `active` fills the line up to the current event (`aria-current="step"`), without it the feed is a log of the past; `tone` and `icon` per marker, `#marker` / `#title` / `#content` slots; `align="alternate"` puts events on both sides and folds into one below 480px of its own width
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
|
|
128
128
|
- **TaoLink** — `<NuxtLink>` in Nuxt, `<RouterLink>` with vue-router, otherwise a plain `<a>` — no extra setup
|
|
129
129
|
- **TaoBreadcrumb** — crumbs: the last item is the current page
|
|
130
|
-
- **TaoDropdownMenu** / **TaoMenu** — a menu from a plain data tree `items`: submenus, checkboxes, radios, separators, group labels, shortcuts to show, disabled items. Arrows, Home / End, type-ahead, `→` / `←` for submenus, Esc closes the top level first. `TaoMenu` is the panel itself, for your own shells (a menu bar, a context menu); flips at the viewport edge
|
|
130
|
+
- **TaoDropdownMenu** / **TaoMenu** — a menu from a plain data tree `items`: submenus, checkboxes, radios, separators, group labels, shortcuts to show, disabled items. Arrows, Home / End, type-ahead, `→` / `←` for submenus, Esc closes the top level first. `TaoMenu` is the panel itself, for your own shells (a menu bar, a context menu); flips at the viewport edge; `size` makes the button a compact square, `:tabbable="false"` takes it out of the Tab order
|
|
131
131
|
- **TaoMenubar** / **TaoContextMenu** — the menu bar of an editor and the menu on the right click, on `TaoMenu`. The bar is one tab stop (`role="menubar"`): `←` / `→` walk it, `↓` / Enter open, with a menu open `←` / `→` and the pointer move to the neighbour menu; an entry without `items` is a plain action. The context menu opens at the pointer (or at the element for the Menu key / Shift+F10) and wraps its content without a box of its own
|
|
132
132
|
- **TaoToolbar** / **TaoToolbarGroup** / **TaoToolbarSeparator** — a bar of tools (`role="toolbar"`): one tab stop, `←` / `→` (or `↑` / `↓` when `orientation="vertical"`) walk the items, Home / End; inside a `TaoSegmented` the arrows pick the option and go on from its edge. Groups are split by a thin line across the bar; `inset` puts a sunken pill behind a group. Toggles are `TaoButton` with `v-model:pressed`
|
|
133
133
|
- **TaoScrollTop** — floating “back to top”: `solid` / `ghost` / `text` looks, `side`, a mouse-hover `label`. Appears on reverse scroll after `boundary`
|
package/README.ru.md
CHANGED
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
- **TaoMarquee** — одна строка без переносов: не помещается — бежит по кругу с гаснущими краями и паузой в начале каждого круга, помещается — стоит. Останавливается при наведении, фокусе и тапе (WCAG 2.2.2); при «уменьшить движение» переносится; скринридер читает один раз. `text` или строчное содержимое в слоте, `speed`, `gap`, `fade` (левое затухание занимает столько места слева от текста: дайте родителю такой padding), `paused`
|
|
59
59
|
- **TaoInput** — поле ввода с поддержкой v-model, валидации и слотов `#prefix` / `#suffix` (иконка или текст внутри рамки); `variant` `outline` / `filled` / `plain` (без рамки: пункт списка в правке; его берут и `TaoInputNumber`, `TaoCombobox`, `TaoTextarea`)
|
|
60
60
|
- **TaoInputGroup** — склейка снаружи: `#before` | поле | `#after` (протокол, единица, кнопка)
|
|
61
|
-
- **TaoModal** — модальное окно с анимацией и слотами; `fullscreen` (или `fullscreen="narrow"`: страница на телефоне, окно на компьютере)
|
|
62
|
-
- **TaoDrawer** — боковая панель (фильтры, настройки) или нижний лист с `side="bottom"`. Esc, клик по фону, ловушка фокуса — как у
|
|
61
|
+
- **TaoModal** — модальное окно с анимацией и слотами; `fullscreen` (или `fullscreen="narrow"`: страница на телефоне, окно на компьютере); `surface="grain"` / `"glass"`, класс и атрибуты — на панели окна; прокручивается содержимое под шапкой и подвалом, которые на месте
|
|
62
|
+
- **TaoDrawer** — боковая панель (фильтры, настройки) или нижний лист с `side="bottom"`. Esc, клик по фону, ловушка фокуса — как у модалки; `surface`, класс и атрибуты — на панели
|
|
63
63
|
- **TaoSpoiler** — раскрывающийся блок. `v-model` и `aria-expanded`. Несколько подряд сами друг друга не закрывают
|
|
64
64
|
- **TaoSpoilerGroup** — аккордеон: `v-model` — ключ открытой панели (`null` — все закрыты), у спойлера `name`. Без `v-model` группа помнит ключ сама
|
|
65
65
|
- **TaoTabs** — вкладки для переключения между секциями контента
|
|
66
|
-
- **TaoNav** — навигация между разделами приложения: один список пунктов (`icon`, `href`, `badge`), три вида. `layout="auto"` выбирает по ширине самого TaoNav (container queries, без JS): нижняя панель до 600px (больше пяти пунктов: «Ещё» с меню), рейка с иконками до 840px, боковая панель с подписями от 840px. Со страницей в слоте раскладывает её сам: панель прилипает к низу (с учётом безопасной зоны), боковой список к верху. `floating` отрывает нижнюю панель в отдельную «пилюлю» с тенью (рейка и боковая панель не меняются). `indicator="line"` отмечает текущий раздел короткой чертой акцента вместо подложки. Слот `#action` — главное действие экрана, оно идёт за навигацией: круглое над панелью у конечного края, наверху рейки, широкое с текстом наверху боковой панели. `select(id, event)` даёт роутеру перехватить ссылку. Ширины: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` — углы действия в боковой панели; `surface="glass"` — страница размыто просвечивает сквозь панель; `#footer` — мелкая строка под пунктами
|
|
66
|
+
- **TaoNav** — навигация между разделами приложения: один список пунктов (`icon`, `href`, `badge`), три вида. `layout="auto"` выбирает по ширине самого TaoNav (container queries, без JS): нижняя панель до 600px (больше пяти пунктов: «Ещё» с меню), рейка с иконками до 840px, боковая панель с подписями от 840px. Со страницей в слоте раскладывает её сам: панель прилипает к низу (с учётом безопасной зоны), боковой список к верху. `floating` отрывает нижнюю панель в отдельную «пилюлю» с тенью (рейка и боковая панель не меняются). `indicator="line"` отмечает текущий раздел короткой чертой акцента вместо подложки. Слот `#action` — главное действие экрана, оно идёт за навигацией: круглое над панелью у конечного края, наверху рейки, широкое с текстом наверху боковой панели. `select(id, event)` даёт роутеру перехватить ссылку. Ширины: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` — углы действия в боковой панели; `surface="glass"` — страница размыто просвечивает сквозь панель; `#footer` — мелкая строка под пунктами сбоку; `badgeTone="neutral"` — акцент только у счётчика текущего пункта. `.tao-nav` — вся раскладка, `.tao-nav__panel` — навигация, `.tao-nav__content` — страница
|
|
67
67
|
- **TaoTooltip** — всплывающая подсказка при наведении. `placement`: `top` / `bottom` / `left` / `right`, у каждого `-start` / `-end`; у края экрана переворачивается
|
|
68
68
|
- **TaoPopover** — панель по клику: слот с любым контентом, Esc и клик снаружи; `placement` как у Tooltip. Не тултип и не меню действий
|
|
69
69
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
- **TaoHeatmap** — значение для каждой пары (заказы по дню недели и часу): `values` по `rows` × `cols`, цвет по порогам (`steps`, по умолчанию круглые числа), которые называет легенда («500+»), бледные уровни в полоску, подсказка с точным числом. `role="grid"`, по которому ходят стрелками; скринридер читает строку, столбец и число; занимает ширину контейнера и показывает имена столбцов так часто, как они помещаются
|
|
108
108
|
- **TaoPagination** — страницы с многоточием. Клик по «…» прыгает на `jump` страниц (5 по умолчанию). `pageSizes` добавляет выбор «На странице» (`v-model:page-size`); первая видимая строка остаётся на экране
|
|
109
109
|
- **TaoEmpty** — пустой список, нет результатов, нет прав
|
|
110
|
-
- **TaoList** / **TaoListItem** — строка списка: иконка, заголовок, подпись, действие по ховеру. Не Select и не
|
|
110
|
+
- **TaoList** / **TaoListItem** — строка списка: иконка, заголовок, подпись, действие по ховеру. Не Select и не таблица; `roving` — одна остановка Tab, стрелки ходят по строкам
|
|
111
111
|
- **TaoTree** — файлы или объекты деревом: `v-model:expanded`, выбор `none | single | multiple` (`v-model:selected`), чекбоксы с промежуточным состоянием родителя (`checkable`, `v-model:checked`), ленивая подгрузка (`hasChildren` + `load`). ARIA tree: одна остановка Tab, стрелки, `→` / `←` внутрь и наружу, Home / End, `*`, поиск по буквам. Слоты `#icon`, `#label`, `#actions`; строки на токенах контролов (размер и плотность)
|
|
112
112
|
- **TaoStages** — список стадий: `wait` / `work` / `ok` / `bad`. Не линейный степпер
|
|
113
113
|
- **TaoTimeline** — вертикальная лента событий: шаги заказа, релизы, журнал. `active` заливает линию до текущего события (`aria-current="step"`), без него лента — журнал прошедшего; `tone` и `icon` у маркера, слоты `#marker` / `#title` / `#content`; `align="alternate"` раскладывает события по обе стороны и складывается в одну уже 480px своей ширины
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
|
|
128
128
|
- **TaoLink** — `<NuxtLink>` в Nuxt, `<RouterLink>` при vue-router, иначе обычный `<a>` — без дополнительной настройки
|
|
129
129
|
- **TaoBreadcrumb** — крошки: последний пункт — текущая страница
|
|
130
|
-
- **TaoDropdownMenu** / **TaoMenu** — меню из простого дерева данных `items`: подменю, чекбоксы, радио, разделители, подписи групп, сочетания для показа, недоступные пункты. Стрелки, Home / End, быстрый поиск по букве, `→` / `←` для подменю, Esc закрывает верхний уровень первым. `TaoMenu` — сама панель для своих оболочек (полоса меню, контекстное меню); у края экрана
|
|
130
|
+
- **TaoDropdownMenu** / **TaoMenu** — меню из простого дерева данных `items`: подменю, чекбоксы, радио, разделители, подписи групп, сочетания для показа, недоступные пункты. Стрелки, Home / End, быстрый поиск по букве, `→` / `←` для подменю, Esc закрывает верхний уровень первым. `TaoMenu` — сама панель для своих оболочек (полоса меню, контекстное меню); у края экрана переворачивается; `size` делает кнопку компактным квадратом, `:tabbable="false"` убирает её из порядка Tab
|
|
131
131
|
- **TaoMenubar** / **TaoContextMenu** — полоса меню редактора и меню по правой кнопке, на `TaoMenu`. Полоса — одна остановка Tab (`role="menubar"`): `←` / `→` ходят по ней, `↓` / Enter открывают, при открытом меню `←` / `→` и указатель переходят к соседнему; пункт без `items` — обычное действие. Контекстное меню открывается у указателя (или у элемента для клавиши Menu / Shift+F10) и оборачивает содержимое без своей коробки
|
|
132
132
|
- **TaoToolbar** / **TaoToolbarGroup** / **TaoToolbarSeparator** — панель инструментов (`role="toolbar"`): одна остановка Tab, `←` / `→` (или `↑` / `↓` при `orientation="vertical"`) ходят по элементам, Home / End; внутри `TaoSegmented` стрелки выбирают вариант и идут дальше с его края. Группы делит тонкая черта поперёк панели; `inset` кладёт под группу утопленную подложку. Переключатели — `TaoButton` с `v-model:pressed`
|
|
133
133
|
- **TaoScrollTop** — плавающая кнопка «наверх»: виды `solid` / `ghost` / `text`, `side`, подпись `label` при наведении мыши. Появляется при обратном скролле после `boundary`
|
package/dist/index.d.ts
CHANGED
|
@@ -842,10 +842,26 @@ placement?: TaoPlacement;
|
|
|
842
842
|
menuLabel?: string;
|
|
843
843
|
/** Close when the page scrolls (the menu otherwise follows its button). / Закрывать при прокрутке страницы (иначе меню едет за кнопкой). */
|
|
844
844
|
closeOnScroll?: boolean;
|
|
845
|
+
/**
|
|
846
|
+
* The button becomes a square of the control height of this size (a compact kebab in a list row); without it the
|
|
847
|
+
* button keeps its padding around the icon.
|
|
848
|
+
* Кнопка становится квадратом высотой с контрол этого размера (компактный «кебаб» в строке списка); без него
|
|
849
|
+
* кнопка остаётся с отступом вокруг иконки.
|
|
850
|
+
*/
|
|
851
|
+
size?: TaoSize;
|
|
852
|
+
/**
|
|
853
|
+
* The button is a Tab stop. Turn it off when the row has its own key for the menu (a menu key, Shift+F10): the
|
|
854
|
+
* button leaves the Tab order and still opens by a click.
|
|
855
|
+
* Кнопка — остановка Tab. Выключите, когда у строки своя клавиша для меню (клавиша меню, Shift+F10): кнопка
|
|
856
|
+
* уходит из порядка Tab и по-прежнему открывается нажатием.
|
|
857
|
+
*/
|
|
858
|
+
tabbable?: boolean;
|
|
845
859
|
}>, {
|
|
846
860
|
items: () => never[];
|
|
847
861
|
placement: string;
|
|
848
862
|
closeOnScroll: boolean;
|
|
863
|
+
size: undefined;
|
|
864
|
+
tabbable: boolean;
|
|
849
865
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
850
866
|
select: (id: string) => void;
|
|
851
867
|
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_32<__VLS_TypePropsToRuntimeProps_36<{
|
|
@@ -856,16 +872,34 @@ placement?: TaoPlacement;
|
|
|
856
872
|
menuLabel?: string;
|
|
857
873
|
/** Close when the page scrolls (the menu otherwise follows its button). / Закрывать при прокрутке страницы (иначе меню едет за кнопкой). */
|
|
858
874
|
closeOnScroll?: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* The button becomes a square of the control height of this size (a compact kebab in a list row); without it the
|
|
877
|
+
* button keeps its padding around the icon.
|
|
878
|
+
* Кнопка становится квадратом высотой с контрол этого размера (компактный «кебаб» в строке списка); без него
|
|
879
|
+
* кнопка остаётся с отступом вокруг иконки.
|
|
880
|
+
*/
|
|
881
|
+
size?: TaoSize;
|
|
882
|
+
/**
|
|
883
|
+
* The button is a Tab stop. Turn it off when the row has its own key for the menu (a menu key, Shift+F10): the
|
|
884
|
+
* button leaves the Tab order and still opens by a click.
|
|
885
|
+
* Кнопка — остановка Tab. Выключите, когда у строки своя клавиша для меню (клавиша меню, Shift+F10): кнопка
|
|
886
|
+
* уходит из порядка Tab и по-прежнему открывается нажатием.
|
|
887
|
+
*/
|
|
888
|
+
tabbable?: boolean;
|
|
859
889
|
}>, {
|
|
860
890
|
items: () => never[];
|
|
861
891
|
placement: string;
|
|
862
892
|
closeOnScroll: boolean;
|
|
893
|
+
size: undefined;
|
|
894
|
+
tabbable: boolean;
|
|
863
895
|
}>>> & Readonly<{
|
|
864
896
|
onSelect?: ((id: string) => any) | undefined;
|
|
865
897
|
}>, {
|
|
898
|
+
size: TaoSize;
|
|
866
899
|
items: TaoMenuItem[];
|
|
867
900
|
placement: TaoPlacement;
|
|
868
901
|
closeOnScroll: boolean;
|
|
902
|
+
tabbable: boolean;
|
|
869
903
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
870
904
|
|
|
871
905
|
declare const __VLS_component_35: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_33<__VLS_TypePropsToRuntimeProps_37<{
|
|
@@ -1196,6 +1230,14 @@ indicator?: "pill" | "line";
|
|
|
1196
1230
|
* неё (сплошная, где размытия нет или просят меньше прозрачности), `grain` — плёночное зерно.
|
|
1197
1231
|
*/
|
|
1198
1232
|
surface?: TaoSurface;
|
|
1233
|
+
/**
|
|
1234
|
+
* The colour of the counters: `accent` on every item, or `neutral` — grey, with the accent on the current item
|
|
1235
|
+
* only, so the eye is not pulled round the menu. A dot (`badge: true`) is a sign of something new and stays
|
|
1236
|
+
* the accent.
|
|
1237
|
+
* Цвет счётчиков: `accent` у всех пунктов или `neutral` — серые, акцент только у текущего пункта, чтобы
|
|
1238
|
+
* внимание не бегало по меню. Точка (`badge: true`) — знак нового и остаётся акцентной.
|
|
1239
|
+
*/
|
|
1240
|
+
badgeTone?: "accent" | "neutral";
|
|
1199
1241
|
}>, {
|
|
1200
1242
|
modelValue: undefined;
|
|
1201
1243
|
layout: string;
|
|
@@ -1205,6 +1247,7 @@ moreLabel: undefined;
|
|
|
1205
1247
|
floating: boolean;
|
|
1206
1248
|
indicator: string;
|
|
1207
1249
|
surface: string;
|
|
1250
|
+
badgeTone: string;
|
|
1208
1251
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1209
1252
|
select: (id: string, event: Event) => void;
|
|
1210
1253
|
"update:modelValue": (id: string) => void;
|
|
@@ -1240,6 +1283,14 @@ indicator?: "pill" | "line";
|
|
|
1240
1283
|
* неё (сплошная, где размытия нет или просят меньше прозрачности), `grain` — плёночное зерно.
|
|
1241
1284
|
*/
|
|
1242
1285
|
surface?: TaoSurface;
|
|
1286
|
+
/**
|
|
1287
|
+
* The colour of the counters: `accent` on every item, or `neutral` — grey, with the accent on the current item
|
|
1288
|
+
* only, so the eye is not pulled round the menu. A dot (`badge: true`) is a sign of something new and stays
|
|
1289
|
+
* the accent.
|
|
1290
|
+
* Цвет счётчиков: `accent` у всех пунктов или `neutral` — серые, акцент только у текущего пункта, чтобы
|
|
1291
|
+
* внимание не бегало по меню. Точка (`badge: true`) — знак нового и остаётся акцентной.
|
|
1292
|
+
*/
|
|
1293
|
+
badgeTone?: "accent" | "neutral";
|
|
1243
1294
|
}>, {
|
|
1244
1295
|
modelValue: undefined;
|
|
1245
1296
|
layout: string;
|
|
@@ -1249,6 +1300,7 @@ moreLabel: undefined;
|
|
|
1249
1300
|
floating: boolean;
|
|
1250
1301
|
indicator: string;
|
|
1251
1302
|
surface: string;
|
|
1303
|
+
badgeTone: string;
|
|
1252
1304
|
}>>> & Readonly<{
|
|
1253
1305
|
onSelect?: ((id: string, event: Event) => any) | undefined;
|
|
1254
1306
|
"onUpdate:modelValue"?: ((id: string) => any) | undefined;
|
|
@@ -1261,6 +1313,7 @@ layout: TaoNavLayout;
|
|
|
1261
1313
|
maxBarItems: number;
|
|
1262
1314
|
moreLabel: string;
|
|
1263
1315
|
floating: boolean;
|
|
1316
|
+
badgeTone: "accent" | "neutral";
|
|
1264
1317
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1265
1318
|
|
|
1266
1319
|
declare const __VLS_component_42: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_42<__VLS_TypePropsToRuntimeProps_46<{
|
|
@@ -2580,11 +2633,21 @@ maxHeight?: TaoLength;
|
|
|
2580
2633
|
/** Показать `#empty` вместо строк. */
|
|
2581
2634
|
empty?: boolean;
|
|
2582
2635
|
ariaLabel?: string;
|
|
2636
|
+
/**
|
|
2637
|
+
* One Tab stop for the whole list: the arrows move between the rows, Home / End to the first and the last;
|
|
2638
|
+
* disabled rows are skipped. Tab comes back to the row it left (the selected one the first time). A row's
|
|
2639
|
+
* stop is its button (`clickable`) or the row itself.
|
|
2640
|
+
* Одна остановка Tab на весь список: стрелки ходят по строкам, Home / End — в начало и в конец; недоступные
|
|
2641
|
+
* пропускаются. Tab возвращается в строку, из которой ушёл (в первый раз — в выбранную). Остановка строки — её
|
|
2642
|
+
* кнопка (`clickable`) или сама строка.
|
|
2643
|
+
*/
|
|
2644
|
+
roving?: boolean;
|
|
2583
2645
|
}>, {
|
|
2584
2646
|
bordered: boolean;
|
|
2585
2647
|
divided: boolean;
|
|
2586
2648
|
empty: boolean;
|
|
2587
2649
|
ariaLabel: string;
|
|
2650
|
+
roving: boolean;
|
|
2588
2651
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_65<__VLS_TypePropsToRuntimeProps_70<{
|
|
2589
2652
|
/** Row height; items inherit it. Without it — the size of ancestors. / Высота строк, item наследует. Без него — размер предков. */
|
|
2590
2653
|
size?: TaoSize;
|
|
@@ -2597,16 +2660,27 @@ maxHeight?: TaoLength;
|
|
|
2597
2660
|
/** Показать `#empty` вместо строк. */
|
|
2598
2661
|
empty?: boolean;
|
|
2599
2662
|
ariaLabel?: string;
|
|
2663
|
+
/**
|
|
2664
|
+
* One Tab stop for the whole list: the arrows move between the rows, Home / End to the first and the last;
|
|
2665
|
+
* disabled rows are skipped. Tab comes back to the row it left (the selected one the first time). A row's
|
|
2666
|
+
* stop is its button (`clickable`) or the row itself.
|
|
2667
|
+
* Одна остановка Tab на весь список: стрелки ходят по строкам, Home / End — в начало и в конец; недоступные
|
|
2668
|
+
* пропускаются. Tab возвращается в строку, из которой ушёл (в первый раз — в выбранную). Остановка строки — её
|
|
2669
|
+
* кнопка (`clickable`) или сама строка.
|
|
2670
|
+
*/
|
|
2671
|
+
roving?: boolean;
|
|
2600
2672
|
}>, {
|
|
2601
2673
|
bordered: boolean;
|
|
2602
2674
|
divided: boolean;
|
|
2603
2675
|
empty: boolean;
|
|
2604
2676
|
ariaLabel: string;
|
|
2677
|
+
roving: boolean;
|
|
2605
2678
|
}>>> & Readonly<{}>, {
|
|
2606
2679
|
empty: boolean;
|
|
2607
2680
|
ariaLabel: string;
|
|
2608
2681
|
bordered: boolean;
|
|
2609
2682
|
divided: boolean;
|
|
2683
|
+
roving: boolean;
|
|
2610
2684
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2611
2685
|
|
|
2612
2686
|
declare const __VLS_component_64: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_66<__VLS_TypePropsToRuntimeProps_71<{
|
|
@@ -2675,11 +2749,19 @@ title?: string;
|
|
|
2675
2749
|
* экрана, над безопасной зоной. Телефонный способ показать параметры и форму.
|
|
2676
2750
|
*/
|
|
2677
2751
|
side?: "left" | "right" | "bottom";
|
|
2752
|
+
/**
|
|
2753
|
+
* What the panel is made of, as on TaoCard: `grain` (a film grain over a solid fill), `glass` (blurred,
|
|
2754
|
+
* translucent; solid where blur is off).
|
|
2755
|
+
* Из чего сделана панель, как у TaoCard: `grain` — плёночное зерно поверх сплошной заливки, `glass` — размытое
|
|
2756
|
+
* стекло (сплошное, где размытия нет).
|
|
2757
|
+
*/
|
|
2758
|
+
surface?: TaoSurface;
|
|
2678
2759
|
closable?: boolean;
|
|
2679
2760
|
closeLabel?: string;
|
|
2680
2761
|
}>, {
|
|
2681
2762
|
title: string;
|
|
2682
2763
|
side: string;
|
|
2764
|
+
surface: string;
|
|
2683
2765
|
closable: boolean;
|
|
2684
2766
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2685
2767
|
close: (...args: any[]) => void;
|
|
@@ -2694,17 +2776,26 @@ title?: string;
|
|
|
2694
2776
|
* экрана, над безопасной зоной. Телефонный способ показать параметры и форму.
|
|
2695
2777
|
*/
|
|
2696
2778
|
side?: "left" | "right" | "bottom";
|
|
2779
|
+
/**
|
|
2780
|
+
* What the panel is made of, as on TaoCard: `grain` (a film grain over a solid fill), `glass` (blurred,
|
|
2781
|
+
* translucent; solid where blur is off).
|
|
2782
|
+
* Из чего сделана панель, как у TaoCard: `grain` — плёночное зерно поверх сплошной заливки, `glass` — размытое
|
|
2783
|
+
* стекло (сплошное, где размытия нет).
|
|
2784
|
+
*/
|
|
2785
|
+
surface?: TaoSurface;
|
|
2697
2786
|
closable?: boolean;
|
|
2698
2787
|
closeLabel?: string;
|
|
2699
2788
|
}>, {
|
|
2700
2789
|
title: string;
|
|
2701
2790
|
side: string;
|
|
2791
|
+
surface: string;
|
|
2702
2792
|
closable: boolean;
|
|
2703
2793
|
}>>> & Readonly<{
|
|
2704
2794
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
2705
2795
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2706
2796
|
}>, {
|
|
2707
2797
|
title: string;
|
|
2798
|
+
surface: TaoSurface;
|
|
2708
2799
|
closable: boolean;
|
|
2709
2800
|
side: "left" | "right" | "bottom";
|
|
2710
2801
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -2877,6 +2968,7 @@ declare const __VLS_component_8: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
2877
2968
|
title: string;
|
|
2878
2969
|
closable: boolean;
|
|
2879
2970
|
fullscreen: boolean;
|
|
2971
|
+
surface: string;
|
|
2880
2972
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2881
2973
|
close: (...args: any[]) => void;
|
|
2882
2974
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -2884,11 +2976,13 @@ close: (...args: any[]) => void;
|
|
|
2884
2976
|
title: string;
|
|
2885
2977
|
closable: boolean;
|
|
2886
2978
|
fullscreen: boolean;
|
|
2979
|
+
surface: string;
|
|
2887
2980
|
}>>> & Readonly<{
|
|
2888
2981
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
2889
2982
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2890
2983
|
}>, {
|
|
2891
2984
|
title: string;
|
|
2985
|
+
surface: TaoSurface;
|
|
2892
2986
|
closable: boolean;
|
|
2893
2987
|
fullscreen: boolean | "narrow";
|
|
2894
2988
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -5925,6 +6019,13 @@ declare interface Props_5 {
|
|
|
5925
6019
|
* `'narrow'` — только на экране уже 600px: окно на компьютере, страница на телефоне.
|
|
5926
6020
|
*/
|
|
5927
6021
|
fullscreen?: boolean | 'narrow';
|
|
6022
|
+
/**
|
|
6023
|
+
* What the panel is made of, as on TaoCard: `grain` (a film grain over a solid fill), `glass` (blurred,
|
|
6024
|
+
* translucent; solid where blur is off).
|
|
6025
|
+
* Из чего сделана панель, как у TaoCard: `grain` — плёночное зерно поверх сплошной заливки, `glass` — размытое
|
|
6026
|
+
* стекло (сплошное, где размытия нет).
|
|
6027
|
+
*/
|
|
6028
|
+
surface?: TaoSurface;
|
|
5928
6029
|
}
|
|
5929
6030
|
|
|
5930
6031
|
declare interface Props_6 {
|