@1337exp/taoui 5.12.0 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 5.12.0
4
12
 
5
13
  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<{
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-64c6f73a"]]);
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"
@@ -4349,7 +4349,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
4349
4349
  };
4350
4350
  }
4351
4351
  });
4352
- const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-21fc24d9"]]);
4352
+ const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-230d5ca0"]]);
4353
4353
  function isMenuSelectable(item) {
4354
4354
  return item.type !== "separator" && item.type !== "label" && !item.disabled;
4355
4355
  }
@@ -5911,6 +5911,10 @@ const _hoisted_11$3 = {
5911
5911
  };
5912
5912
  const _hoisted_12$2 = { class: "tao-nav__label" };
5913
5913
  const _hoisted_13$1 = {
5914
+ key: 1,
5915
+ class: "tao-nav__footer"
5916
+ };
5917
+ const _hoisted_14$1 = {
5914
5918
  key: 0,
5915
5919
  class: "tao-nav__content"
5916
5920
  };
@@ -6043,10 +6047,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6043
6047
  createElementVNode("span", _hoisted_12$2, toDisplayString(unref(l10n).moreLabel), 1)
6044
6048
  ], 10, _hoisted_10$3)
6045
6049
  ])) : createCommentVNode("", true)
6046
- ])
6050
+ ]),
6051
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
6052
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
6053
+ ])) : createCommentVNode("", true)
6047
6054
  ])
6048
6055
  ], 10, _hoisted_2$v),
6049
- !standalone.value ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
6056
+ !standalone.value ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
6050
6057
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
6051
6058
  ])) : createCommentVNode("", true)
6052
6059
  ]),
@@ -6064,7 +6071,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6064
6071
  };
6065
6072
  }
6066
6073
  });
6067
- const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-21852ef0"]]);
6074
+ const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-93f7c67b"]]);
6068
6075
  function visibleRows(nodes, expanded, children) {
6069
6076
  const rows = [];
6070
6077
  const walk = (list, level, parentId) => {
@@ -7085,7 +7092,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7085
7092
  };
7086
7093
  }
7087
7094
  });
7088
- const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-94bbb076"]]);
7095
+ const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-383c8197"]]);
7089
7096
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
7090
7097
  ...{ name: "TaoLink" },
7091
7098
  __name: "TaoLink",
@@ -9622,7 +9629,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
9622
9629
  };
9623
9630
  }
9624
9631
  });
9625
- const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-538eb64b"]]);
9632
+ const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-06d25cc6"]]);
9626
9633
  const radioGroupKey = Symbol("taoRadioGroup");
9627
9634
  const _hoisted_1$h = ["for"];
9628
9635
  const _hoisted_2$f = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-describedby"];
@@ -9701,7 +9708,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
9701
9708
  };
9702
9709
  }
9703
9710
  });
9704
- const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-7c95fa50"]]);
9711
+ const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-cdf15a82"]]);
9705
9712
  const _hoisted_1$g = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
9706
9713
  const _hoisted_2$e = {
9707
9714
  key: 0,