@1337exp/taoui 5.11.1 → 5.13.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 +14 -0
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.js +21 -10
- 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 +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.13.0
|
|
4
|
+
|
|
5
|
+
Nothing to migrate.
|
|
6
|
+
|
|
7
|
+
- **Hidden inputs no longer stretch the page.** `TaoSwitch`, `TaoCheckbox`, `TaoRadio`, `TaoFileDrop` and `TaoPinCode` keep a visually hidden input (or a status) that is `position: absolute`, and their root was not positioned: the hidden element stood against the page, not the field, so a scrolling container did not clip it and the document grew (a long form in a `overflow: auto` block scrolled the whole page). Each root is `position: relative` now.
|
|
8
|
+
- **`TaoNav` `#footer`:** a small line under the items in the rail and the side panel (the version, «About», a link); the bar has no room for it and does not show it.
|
|
9
|
+
- Showcase: the TaoNav demo has a footer.
|
|
10
|
+
|
|
11
|
+
## 5.12.0
|
|
12
|
+
|
|
13
|
+
Nothing to migrate.
|
|
14
|
+
|
|
15
|
+
- **`TaoTextarea` `maxHeight`.** The field grew with its text up to 500px, written into the component. Now `maxHeight` sets it: a number is px, a string any CSS length (`50vh`, `20rem`), `none` — no limit; 500 stays the default. Dragging the corner stops there too. A framed field (`variant="outline"`) no longer scrolls by 2px: the height counts its border.
|
|
16
|
+
|
|
3
17
|
## 5.11.1
|
|
4
18
|
|
|
5
19
|
A fix; nothing to migrate.
|
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
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
|
|
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
|
|
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
|
|
package/README.ru.md
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
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"` — страница размыто просвечивает сквозь
|
|
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` — мелкая строка под пунктами сбоку
|
|
67
67
|
- **TaoTooltip** — всплывающая подсказка при наведении. `placement`: `top` / `bottom` / `left` / `right`, у каждого `-start` / `-end`; у края экрана переворачивается
|
|
68
68
|
- **TaoPopover** — панель по клику: слот с любым контентом, Esc и клик снаружи; `placement` как у Tooltip. Не тултип и не меню действий
|
|
69
69
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3674,6 +3674,13 @@ declare function __VLS_template_41(): Readonly<{
|
|
|
3674
3674
|
* наверху боковой панели во всю ширину с видимым текстом.
|
|
3675
3675
|
*/
|
|
3676
3676
|
action?(): unknown;
|
|
3677
|
+
/**
|
|
3678
|
+
* A small line under the items in the rail and the side panel: the version, «About», a link. The bar has no room
|
|
3679
|
+
* for it and does not show it.
|
|
3680
|
+
* Мелкая строка под пунктами в рейке и боковой панели: версия, «О приложении», ссылка. В нижней панели для неё
|
|
3681
|
+
* нет места, там её нет.
|
|
3682
|
+
*/
|
|
3683
|
+
footer?(): unknown;
|
|
3677
3684
|
}> & {
|
|
3678
3685
|
/** The page: TaoNav lays it out next to the navigation. / Страница: TaoNav раскладывает её рядом с навигацией. */
|
|
3679
3686
|
default?(): unknown;
|
|
@@ -3691,6 +3698,13 @@ declare function __VLS_template_41(): Readonly<{
|
|
|
3691
3698
|
* наверху боковой панели во всю ширину с видимым текстом.
|
|
3692
3699
|
*/
|
|
3693
3700
|
action?(): unknown;
|
|
3701
|
+
/**
|
|
3702
|
+
* A small line under the items in the rail and the side panel: the version, «About», a link. The bar has no room
|
|
3703
|
+
* for it and does not show it.
|
|
3704
|
+
* Мелкая строка под пунктами в рейке и боковой панели: версия, «О приложении», ссылка. В нижней панели для неё
|
|
3705
|
+
* нет места, там её нет.
|
|
3706
|
+
*/
|
|
3707
|
+
footer?(): unknown;
|
|
3694
3708
|
};
|
|
3695
3709
|
|
|
3696
3710
|
declare function __VLS_template_42(): Readonly<{
|
|
@@ -7287,6 +7301,13 @@ readonly?: boolean;
|
|
|
7287
7301
|
/** Spaces are not entered: neither typed nor pasted. / Пробелы не вводятся — ни с клавиатуры, ни вставкой. */
|
|
7288
7302
|
noSpace?: boolean;
|
|
7289
7303
|
rows?: number;
|
|
7304
|
+
/**
|
|
7305
|
+
* How tall the field grows with its text before it scrolls: a number is px, a string any CSS length (`50vh`,
|
|
7306
|
+
* `20rem`), `none` — no limit. Dragging the corner stops there too.
|
|
7307
|
+
* До какой высоты поле растёт с текстом, прежде чем прокручиваться: число — px, строка — любая длина CSS
|
|
7308
|
+
* (`50vh`, `20rem`), `none` — без предела. Растягивание за угол тоже останавливается на ней.
|
|
7309
|
+
*/
|
|
7310
|
+
maxHeight?: number | string;
|
|
7290
7311
|
resize?: boolean;
|
|
7291
7312
|
modelValue?: string;
|
|
7292
7313
|
/** Focus on mount. / Фокус при монтировании. */
|
|
@@ -7313,6 +7334,7 @@ disabled: boolean;
|
|
|
7313
7334
|
readonly: boolean;
|
|
7314
7335
|
noSpace: boolean;
|
|
7315
7336
|
rows: number;
|
|
7337
|
+
maxHeight: number;
|
|
7316
7338
|
resize: boolean;
|
|
7317
7339
|
modelValue: string;
|
|
7318
7340
|
autofocus: boolean;
|
|
@@ -7345,6 +7367,13 @@ readonly?: boolean;
|
|
|
7345
7367
|
/** Spaces are not entered: neither typed nor pasted. / Пробелы не вводятся — ни с клавиатуры, ни вставкой. */
|
|
7346
7368
|
noSpace?: boolean;
|
|
7347
7369
|
rows?: number;
|
|
7370
|
+
/**
|
|
7371
|
+
* How tall the field grows with its text before it scrolls: a number is px, a string any CSS length (`50vh`,
|
|
7372
|
+
* `20rem`), `none` — no limit. Dragging the corner stops there too.
|
|
7373
|
+
* До какой высоты поле растёт с текстом, прежде чем прокручиваться: число — px, строка — любая длина CSS
|
|
7374
|
+
* (`50vh`, `20rem`), `none` — без предела. Растягивание за угол тоже останавливается на ней.
|
|
7375
|
+
*/
|
|
7376
|
+
maxHeight?: number | string;
|
|
7348
7377
|
resize?: boolean;
|
|
7349
7378
|
modelValue?: string;
|
|
7350
7379
|
/** Focus on mount. / Фокус при монтировании. */
|
|
@@ -7371,6 +7400,7 @@ disabled: boolean;
|
|
|
7371
7400
|
readonly: boolean;
|
|
7372
7401
|
noSpace: boolean;
|
|
7373
7402
|
rows: number;
|
|
7403
|
+
maxHeight: number;
|
|
7374
7404
|
resize: boolean;
|
|
7375
7405
|
modelValue: string;
|
|
7376
7406
|
autofocus: boolean;
|
|
@@ -7395,6 +7425,7 @@ modelValue: string;
|
|
|
7395
7425
|
align: "start" | "center" | "end";
|
|
7396
7426
|
autocomplete: string;
|
|
7397
7427
|
rows: number;
|
|
7428
|
+
maxHeight: number | string;
|
|
7398
7429
|
maxlength: number;
|
|
7399
7430
|
spellcheck: boolean;
|
|
7400
7431
|
minlength: number;
|
package/dist/index.js
CHANGED
|
@@ -3527,7 +3527,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3527
3527
|
};
|
|
3528
3528
|
}
|
|
3529
3529
|
});
|
|
3530
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-
|
|
3530
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-55451432"]]);
|
|
3531
3531
|
const _hoisted_1$P = {
|
|
3532
3532
|
key: 0,
|
|
3533
3533
|
class: "tao-tag__prefix"
|
|
@@ -3743,6 +3743,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3743
3743
|
readonly: { type: Boolean, default: false },
|
|
3744
3744
|
noSpace: { type: Boolean, default: false },
|
|
3745
3745
|
rows: { default: 3 },
|
|
3746
|
+
maxHeight: { default: 500 },
|
|
3746
3747
|
resize: { type: Boolean, default: true },
|
|
3747
3748
|
modelValue: { default: "" },
|
|
3748
3749
|
autofocus: { type: Boolean, default: false },
|
|
@@ -3815,8 +3816,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3815
3816
|
return;
|
|
3816
3817
|
}
|
|
3817
3818
|
textarea.style.height = "auto";
|
|
3818
|
-
textarea.
|
|
3819
|
+
const borders = textarea.offsetHeight - textarea.clientHeight;
|
|
3820
|
+
textarea.style.height = `${textarea.scrollHeight + borders}px`;
|
|
3819
3821
|
}
|
|
3822
|
+
const maxHeightCss = computed(() => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight);
|
|
3820
3823
|
watch(
|
|
3821
3824
|
() => props.modelValue,
|
|
3822
3825
|
() => {
|
|
@@ -3853,6 +3856,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3853
3856
|
disabled: __props.disabled,
|
|
3854
3857
|
readonly: __props.readonly,
|
|
3855
3858
|
rows: __props.rows,
|
|
3859
|
+
style: { maxHeight: maxHeightCss.value },
|
|
3856
3860
|
value: __props.modelValue,
|
|
3857
3861
|
"aria-invalid": unref(invalid) || void 0,
|
|
3858
3862
|
"aria-describedby": describedBy.value,
|
|
@@ -3872,7 +3876,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3872
3876
|
};
|
|
3873
3877
|
}
|
|
3874
3878
|
});
|
|
3875
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-
|
|
3879
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9aaf7131"]]);
|
|
3876
3880
|
const _hoisted_1$L = ["aria-label"];
|
|
3877
3881
|
const _hoisted_2$F = { class: "tao-scroll-top__content" };
|
|
3878
3882
|
const _hoisted_3$A = {
|
|
@@ -4345,7 +4349,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
4345
4349
|
};
|
|
4346
4350
|
}
|
|
4347
4351
|
});
|
|
4348
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-
|
|
4352
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-230d5ca0"]]);
|
|
4349
4353
|
function isMenuSelectable(item) {
|
|
4350
4354
|
return item.type !== "separator" && item.type !== "label" && !item.disabled;
|
|
4351
4355
|
}
|
|
@@ -5907,6 +5911,10 @@ const _hoisted_11$3 = {
|
|
|
5907
5911
|
};
|
|
5908
5912
|
const _hoisted_12$2 = { class: "tao-nav__label" };
|
|
5909
5913
|
const _hoisted_13$1 = {
|
|
5914
|
+
key: 1,
|
|
5915
|
+
class: "tao-nav__footer"
|
|
5916
|
+
};
|
|
5917
|
+
const _hoisted_14$1 = {
|
|
5910
5918
|
key: 0,
|
|
5911
5919
|
class: "tao-nav__content"
|
|
5912
5920
|
};
|
|
@@ -6039,10 +6047,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
6039
6047
|
createElementVNode("span", _hoisted_12$2, toDisplayString(unref(l10n).moreLabel), 1)
|
|
6040
6048
|
], 10, _hoisted_10$3)
|
|
6041
6049
|
])) : createCommentVNode("", true)
|
|
6042
|
-
])
|
|
6050
|
+
]),
|
|
6051
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
6052
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
6053
|
+
])) : createCommentVNode("", true)
|
|
6043
6054
|
])
|
|
6044
6055
|
], 10, _hoisted_2$v),
|
|
6045
|
-
!standalone.value ? (openBlock(), createElementBlock("div",
|
|
6056
|
+
!standalone.value ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
6046
6057
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6047
6058
|
])) : createCommentVNode("", true)
|
|
6048
6059
|
]),
|
|
@@ -6060,7 +6071,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
6060
6071
|
};
|
|
6061
6072
|
}
|
|
6062
6073
|
});
|
|
6063
|
-
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
6074
|
+
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-93f7c67b"]]);
|
|
6064
6075
|
function visibleRows(nodes, expanded, children) {
|
|
6065
6076
|
const rows = [];
|
|
6066
6077
|
const walk = (list, level, parentId) => {
|
|
@@ -7081,7 +7092,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
7081
7092
|
};
|
|
7082
7093
|
}
|
|
7083
7094
|
});
|
|
7084
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
7095
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-383c8197"]]);
|
|
7085
7096
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
7086
7097
|
...{ name: "TaoLink" },
|
|
7087
7098
|
__name: "TaoLink",
|
|
@@ -9618,7 +9629,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9618
9629
|
};
|
|
9619
9630
|
}
|
|
9620
9631
|
});
|
|
9621
|
-
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
9632
|
+
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-06d25cc6"]]);
|
|
9622
9633
|
const radioGroupKey = Symbol("taoRadioGroup");
|
|
9623
9634
|
const _hoisted_1$h = ["for"];
|
|
9624
9635
|
const _hoisted_2$f = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-describedby"];
|
|
@@ -9697,7 +9708,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9697
9708
|
};
|
|
9698
9709
|
}
|
|
9699
9710
|
});
|
|
9700
|
-
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
9711
|
+
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-cdf15a82"]]);
|
|
9701
9712
|
const _hoisted_1$g = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
9702
9713
|
const _hoisted_2$e = {
|
|
9703
9714
|
key: 0,
|