@1337exp/taoui 5.14.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 +11 -0
- package/README.md +4 -4
- package/README.ru.md +4 -4
- package/dist/index.d.ts +80 -0
- package/dist/index.js +27 -21
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +2 -1
- package/skills/taoui/references/components.md +6 -1
- package/src/styles/contexts/surface.css +11 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 5.14.0
|
|
4
15
|
|
|
5
16
|
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
|
|
|
@@ -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
|
|
|
@@ -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<{
|
|
@@ -2696,11 +2749,19 @@ title?: string;
|
|
|
2696
2749
|
* экрана, над безопасной зоной. Телефонный способ показать параметры и форму.
|
|
2697
2750
|
*/
|
|
2698
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;
|
|
2699
2759
|
closable?: boolean;
|
|
2700
2760
|
closeLabel?: string;
|
|
2701
2761
|
}>, {
|
|
2702
2762
|
title: string;
|
|
2703
2763
|
side: string;
|
|
2764
|
+
surface: string;
|
|
2704
2765
|
closable: boolean;
|
|
2705
2766
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2706
2767
|
close: (...args: any[]) => void;
|
|
@@ -2715,17 +2776,26 @@ title?: string;
|
|
|
2715
2776
|
* экрана, над безопасной зоной. Телефонный способ показать параметры и форму.
|
|
2716
2777
|
*/
|
|
2717
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;
|
|
2718
2786
|
closable?: boolean;
|
|
2719
2787
|
closeLabel?: string;
|
|
2720
2788
|
}>, {
|
|
2721
2789
|
title: string;
|
|
2722
2790
|
side: string;
|
|
2791
|
+
surface: string;
|
|
2723
2792
|
closable: boolean;
|
|
2724
2793
|
}>>> & Readonly<{
|
|
2725
2794
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
2726
2795
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2727
2796
|
}>, {
|
|
2728
2797
|
title: string;
|
|
2798
|
+
surface: TaoSurface;
|
|
2729
2799
|
closable: boolean;
|
|
2730
2800
|
side: "left" | "right" | "bottom";
|
|
2731
2801
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -2898,6 +2968,7 @@ declare const __VLS_component_8: DefineComponent<ExtractPropTypes<__VLS_WithDefa
|
|
|
2898
2968
|
title: string;
|
|
2899
2969
|
closable: boolean;
|
|
2900
2970
|
fullscreen: boolean;
|
|
2971
|
+
surface: string;
|
|
2901
2972
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2902
2973
|
close: (...args: any[]) => void;
|
|
2903
2974
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -2905,11 +2976,13 @@ close: (...args: any[]) => void;
|
|
|
2905
2976
|
title: string;
|
|
2906
2977
|
closable: boolean;
|
|
2907
2978
|
fullscreen: boolean;
|
|
2979
|
+
surface: string;
|
|
2908
2980
|
}>>> & Readonly<{
|
|
2909
2981
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
2910
2982
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2911
2983
|
}>, {
|
|
2912
2984
|
title: string;
|
|
2985
|
+
surface: TaoSurface;
|
|
2913
2986
|
closable: boolean;
|
|
2914
2987
|
fullscreen: boolean | "narrow";
|
|
2915
2988
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -5946,6 +6019,13 @@ declare interface Props_5 {
|
|
|
5946
6019
|
* `'narrow'` — только на экране уже 600px: окно на компьютере, страница на телефоне.
|
|
5947
6020
|
*/
|
|
5948
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;
|
|
5949
6029
|
}
|
|
5950
6030
|
|
|
5951
6031
|
declare interface Props_6 {
|
package/dist/index.js
CHANGED
|
@@ -1502,14 +1502,15 @@ const _hoisted_8$b = {
|
|
|
1502
1502
|
class: "tao-modal__footer"
|
|
1503
1503
|
};
|
|
1504
1504
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
1505
|
-
...{ name: "TaoModal" },
|
|
1505
|
+
...{ name: "TaoModal", inheritAttrs: false },
|
|
1506
1506
|
__name: "TaoModal",
|
|
1507
1507
|
props: {
|
|
1508
1508
|
modelValue: { type: Boolean },
|
|
1509
1509
|
title: { default: "" },
|
|
1510
1510
|
closable: { type: Boolean, default: true },
|
|
1511
1511
|
closeLabel: {},
|
|
1512
|
-
fullscreen: { type: [Boolean, String], default: false }
|
|
1512
|
+
fullscreen: { type: [Boolean, String], default: false },
|
|
1513
|
+
surface: { default: "flat" }
|
|
1513
1514
|
},
|
|
1514
1515
|
emits: ["update:modelValue", "close"],
|
|
1515
1516
|
setup(__props, { emit: __emit }) {
|
|
@@ -1573,15 +1574,15 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1573
1574
|
onPointerup: onOverlayPointerUp,
|
|
1574
1575
|
onKeydown: onKeydown2
|
|
1575
1576
|
}, [
|
|
1576
|
-
createElementVNode("div", {
|
|
1577
|
+
createElementVNode("div", mergeProps(_ctx.$attrs, {
|
|
1577
1578
|
ref_key: "panelRef",
|
|
1578
1579
|
ref: panelRef,
|
|
1579
|
-
class: "tao-modal",
|
|
1580
|
+
class: ["tao-modal", unref(surfaceClass)(__props.surface)],
|
|
1580
1581
|
role: "dialog",
|
|
1581
1582
|
"aria-modal": "true",
|
|
1582
1583
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
1583
1584
|
tabindex: "-1"
|
|
1584
|
-
}, [
|
|
1585
|
+
}), [
|
|
1585
1586
|
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
1586
1587
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1587
1588
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
@@ -1610,7 +1611,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1610
1611
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$b, [
|
|
1611
1612
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1612
1613
|
])) : createCommentVNode("", true)
|
|
1613
|
-
],
|
|
1614
|
+
], 16, _hoisted_1$$)
|
|
1614
1615
|
], 34)) : createCommentVNode("", true)
|
|
1615
1616
|
]),
|
|
1616
1617
|
_: 3
|
|
@@ -1619,7 +1620,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1619
1620
|
};
|
|
1620
1621
|
}
|
|
1621
1622
|
});
|
|
1622
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-
|
|
1623
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-ea0d125e"]]);
|
|
1623
1624
|
const _hoisted_1$_ = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1624
1625
|
const _hoisted_2$Q = ["id", "aria-labelledby"];
|
|
1625
1626
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
@@ -4710,7 +4711,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4710
4711
|
}
|
|
4711
4712
|
});
|
|
4712
4713
|
const _hoisted_1$H = { class: "tao-dropdown-menu" };
|
|
4713
|
-
const _hoisted_2$B = ["aria-expanded", "aria-label"];
|
|
4714
|
+
const _hoisted_2$B = ["tabindex", "aria-expanded", "aria-label"];
|
|
4714
4715
|
const _hoisted_3$w = {
|
|
4715
4716
|
key: 1,
|
|
4716
4717
|
"aria-hidden": "true"
|
|
@@ -4722,7 +4723,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4722
4723
|
items: { default: () => [] },
|
|
4723
4724
|
placement: { default: "bottom-end" },
|
|
4724
4725
|
menuLabel: {},
|
|
4725
|
-
closeOnScroll: { type: Boolean, default: false }
|
|
4726
|
+
closeOnScroll: { type: Boolean, default: false },
|
|
4727
|
+
size: { default: void 0 },
|
|
4728
|
+
tabbable: { type: Boolean, default: true }
|
|
4726
4729
|
},
|
|
4727
4730
|
emits: ["select"],
|
|
4728
4731
|
setup(__props, { emit: __emit }) {
|
|
@@ -4752,7 +4755,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4752
4755
|
ref_key: "triggerRef",
|
|
4753
4756
|
ref: triggerRef,
|
|
4754
4757
|
type: "button",
|
|
4755
|
-
class: "tao-dropdown-menu__button",
|
|
4758
|
+
class: normalizeClass(["tao-dropdown-menu__button", __props.size ? [unref(sizeClass)(__props.size), "tao-dropdown-menu__button--sized"] : void 0]),
|
|
4759
|
+
tabindex: __props.tabbable ? void 0 : -1,
|
|
4756
4760
|
"aria-haspopup": "menu",
|
|
4757
4761
|
"aria-expanded": isOpen.value,
|
|
4758
4762
|
"aria-label": _ctx.$slots.button ? void 0 : unref(l10n).menuLabel,
|
|
@@ -4764,7 +4768,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4764
4768
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
4765
4769
|
], true)
|
|
4766
4770
|
]))
|
|
4767
|
-
],
|
|
4771
|
+
], 42, _hoisted_2$B),
|
|
4768
4772
|
createVNode(_sfc_main$K, {
|
|
4769
4773
|
items: __props.items,
|
|
4770
4774
|
open: isOpen.value,
|
|
@@ -4787,7 +4791,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4787
4791
|
};
|
|
4788
4792
|
}
|
|
4789
4793
|
});
|
|
4790
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
4794
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-0e71d618"]]);
|
|
4791
4795
|
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4792
4796
|
...{ name: "TaoContextMenu" },
|
|
4793
4797
|
__name: "TaoContextMenu",
|
|
@@ -5930,7 +5934,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5930
5934
|
moreLabel: { default: void 0 },
|
|
5931
5935
|
floating: { type: Boolean, default: false },
|
|
5932
5936
|
indicator: { default: "pill" },
|
|
5933
|
-
surface: { default: "flat" }
|
|
5937
|
+
surface: { default: "flat" },
|
|
5938
|
+
badgeTone: { default: "accent" }
|
|
5934
5939
|
},
|
|
5935
5940
|
emits: ["update:modelValue", "select"],
|
|
5936
5941
|
setup(__props, { emit: __emit }) {
|
|
@@ -5977,7 +5982,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5977
5982
|
}
|
|
5978
5983
|
return (_ctx, _cache) => {
|
|
5979
5984
|
return openBlock(), createElementBlock("div", {
|
|
5980
|
-
class: normalizeClass(["tao-nav", [`tao-nav--${__props.layout}`, `tao-nav--indicator-${__props.indicator}`, { "tao-nav--standalone": standalone.value, "tao-nav--floating": __props.floating }]])
|
|
5985
|
+
class: normalizeClass(["tao-nav", [`tao-nav--${__props.layout}`, `tao-nav--indicator-${__props.indicator}`, { "tao-nav--standalone": standalone.value, "tao-nav--floating": __props.floating, "tao-nav--badges-neutral": __props.badgeTone === "neutral" }]])
|
|
5981
5986
|
}, [
|
|
5982
5987
|
createElementVNode("div", _hoisted_1$y, [
|
|
5983
5988
|
createElementVNode("nav", {
|
|
@@ -6071,7 +6076,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
6071
6076
|
};
|
|
6072
6077
|
}
|
|
6073
6078
|
});
|
|
6074
|
-
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
6079
|
+
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-525f9dce"]]);
|
|
6075
6080
|
function visibleRows(nodes, expanded, children) {
|
|
6076
6081
|
const rows = [];
|
|
6077
6082
|
const walk = (list, level, parentId) => {
|
|
@@ -10658,12 +10663,13 @@ const _hoisted_9$1 = {
|
|
|
10658
10663
|
class: "tao-drawer__footer"
|
|
10659
10664
|
};
|
|
10660
10665
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
10661
|
-
...{ name: "TaoDrawer" },
|
|
10666
|
+
...{ name: "TaoDrawer", inheritAttrs: false },
|
|
10662
10667
|
__name: "TaoDrawer",
|
|
10663
10668
|
props: {
|
|
10664
10669
|
modelValue: { type: Boolean },
|
|
10665
10670
|
title: { default: "" },
|
|
10666
10671
|
side: { default: "right" },
|
|
10672
|
+
surface: { default: "flat" },
|
|
10667
10673
|
closable: { type: Boolean, default: true },
|
|
10668
10674
|
closeLabel: {}
|
|
10669
10675
|
},
|
|
@@ -10720,15 +10726,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
10720
10726
|
class: "tao-drawer__overlay",
|
|
10721
10727
|
onClick: close
|
|
10722
10728
|
}),
|
|
10723
|
-
createElementVNode("aside", {
|
|
10729
|
+
createElementVNode("aside", mergeProps(_ctx.$attrs, {
|
|
10724
10730
|
ref_key: "panelRef",
|
|
10725
10731
|
ref: panelRef,
|
|
10726
|
-
class: "tao-drawer__panel",
|
|
10732
|
+
class: ["tao-drawer__panel", unref(surfaceClass)(__props.surface)],
|
|
10727
10733
|
role: "dialog",
|
|
10728
10734
|
"aria-modal": "true",
|
|
10729
10735
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
10730
10736
|
tabindex: "-1"
|
|
10731
|
-
}, [
|
|
10737
|
+
}), [
|
|
10732
10738
|
__props.side === "bottom" ? (openBlock(), createElementBlock("span", _hoisted_2$7)) : createCommentVNode("", true),
|
|
10733
10739
|
__props.title || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
10734
10740
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
@@ -10756,7 +10762,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
10756
10762
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
10757
10763
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
10758
10764
|
])) : createCommentVNode("", true)
|
|
10759
|
-
],
|
|
10765
|
+
], 16, _hoisted_1$8)
|
|
10760
10766
|
], 34)) : createCommentVNode("", true)
|
|
10761
10767
|
]),
|
|
10762
10768
|
_: 3
|
|
@@ -10765,7 +10771,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
10765
10771
|
};
|
|
10766
10772
|
}
|
|
10767
10773
|
});
|
|
10768
|
-
const TaoDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
10774
|
+
const TaoDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-45f19c52"]]);
|
|
10769
10775
|
const _hoisted_1$7 = ["title"];
|
|
10770
10776
|
const _hoisted_2$6 = { class: "tao-avatar__face" };
|
|
10771
10777
|
const _hoisted_3$5 = ["src", "alt"];
|