@1337exp/taoui 5.38.2 → 5.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.39.1
4
+
5
+ Nothing to migrate; the demo and the docs of `TaoMarquee`, no change in the component.
6
+
7
+ - **The ticker of the demo no longer twitches.** The quotes of the showcase were bare text: a price that got longer or shorter moved everything after it, and the strip twitched back and forth, and the quotes had no space between them. Every quote is a block of fixed width now (the symbol, the price and the change each in a column of `ch`, `tabular-nums`, prices with a fixed count of decimals) with a gap after it. The docs of `TaoMarquee` say it: the line is as wide as its content, so live parts should have a fixed width.
8
+
9
+ ## 5.39.0
10
+
11
+ Nothing to migrate: `fill` and `reverse` are off by default, and a marquee without them runs as before. One fix: it now follows its content.
12
+
13
+ - **`TaoMarquee` follows its content.** It measured the line when the text or the gap changed and when its box was resized, but not when the content of the slot changed (a new price, a font that came late, an image): the line kept the old width, so a line that had grown stood still, or one that had shrunk ran with a hole. The hidden copy that measures the natural width is watched now (`ResizeObserver`), so nobody has to call `measure()`; it stays for the rare case.
14
+ - **`TaoMarquee` `fill`: a short line runs too.** A line that fits stood still; with `fill` it is repeated, with `gap` between the copies, until the copies cover the whole width (and one more, since the strip moves by one round), so there is never a hole in the strip. A ticker of quotes, a row of logos. A line wider than the box still has two copies as before; an empty one has nothing to repeat and stands; with «reduce motion» it stands still, as every marquee does. The extra copies are hidden from a screen reader and inert, like the second one always was.
15
+ - **`TaoMarquee` `reverse`: to the right.** The same round backwards (the pause at the start of a round goes with it).
16
+
3
17
  ## 5.38.2
4
18
 
5
19
  Nothing to migrate; a fix to the look.
package/README.md CHANGED
@@ -61,7 +61,7 @@
61
61
  - **TaoCopy** — clipboard icon. After a click, a “Copied” tooltip; if the trigger is gone, the tooltip is too
62
62
  - **TaoThemeToggle** — the light / dark switch as one icon button (a sun or a moon); reads and flips `data-tao-mode` of `<html>`, or works from `v-model`; `system` adds a third, «follow the system» state (a monitor)
63
63
  - **TaoTour** — a guided tour: the page goes dim, the target stays lit, a card with an arrow says what it is (a step without a target is a card in the middle; `interactive` lets the user press the target). It only draws: the steps come from you or from TaoUX `tour`
64
- - **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`, `pauseOnHover`, `roundPause` (`false`: no rest at the start of a round), `decorative` (a ghost for a background line: hidden from a screen reader, no tab stop, no reaction to a cursor or a tap, no selection, no pause between rounds)
64
+ - **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`, `pauseOnHover`, `roundPause` (`false`: no rest at the start of a round), `fill` (a line that fits is repeated and runs too: a ticker of quotes) and `reverse`, the content is watched (a new price measures the line again), `decorative` (a ghost for a background line: hidden from a screen reader, no tab stop, no reaction to a cursor or a tap, no selection, no pause between rounds)
65
65
  - **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)
66
66
  - **TaoInputGroup** — outer glue: `#before` | field | `#after` (protocol, unit, button)
67
67
  - **TaoCommandList** — the field and the list of the palette with no window around them, for a page, a side panel or a `TaoPopover`: the same search, keys and rows, `@select` picks and closes nothing, `autofocus`, `focus()`, `reset()`
package/README.ru.md CHANGED
@@ -61,7 +61,7 @@
61
61
  - **TaoCopy** — иконка копирования в буфер. После клика сверху тултип «Скопировано»; если кнопку убрали — тултип тоже
62
62
  - **TaoThemeToggle** — переключатель светлой / тёмной темы одной кнопкой-иконкой (солнце или луна); читает и переворачивает `data-tao-mode` у `<html>` либо работает от `v-model`; `system` добавляет третье состояние «как в системе» (монитор)
63
63
  - **TaoTour** — тур по странице: страница затемняется, цель остаётся освещённой, карточка со стрелкой говорит, что это (шаг без цели — карточка посередине; `interactive` даёт нажать на цель). Только рисует: шаги ваши или из TaoUX `tour`
64
- - **TaoMarquee** — одна строка без переносов: не помещается — бежит по кругу с гаснущими краями и паузой в начале каждого круга, помещается — стоит. Останавливается при наведении, фокусе и тапе (WCAG 2.2.2); при «уменьшить движение» переносится; скринридер читает один раз. `text` или строчное содержимое в слоте, `speed`, `gap`, `fade` (левое затухание занимает столько места слева от текста: дайте родителю такой padding), `paused`, `pauseOnHover`, `roundPause` (`false`: без паузы в начале круга), `decorative` (призрак для строки-фона: скрыта от скринридера, не остановка Tab, не реагирует на курсор и тап, не выделяется, без пауз между кругами)
64
+ - **TaoMarquee** — одна строка без переносов: не помещается — бежит по кругу с гаснущими краями и паузой в начале каждого круга, помещается — стоит. Останавливается при наведении, фокусе и тапе (WCAG 2.2.2); при «уменьшить движение» переносится; скринридер читает один раз. `text` или строчное содержимое в слоте, `speed`, `gap`, `fade` (левое затухание занимает столько места слева от текста: дайте родителю такой padding), `paused`, `pauseOnHover`, `roundPause` (`false`: без паузы в начале круга), `fill` (помещающаяся строка повторяется и тоже бежит: биржевая лента) и `reverse`, содержимое отслеживается (новая цена перемеряет строку), `decorative` (призрак для строки-фона: скрыта от скринридера, не остановка Tab, не реагирует на курсор и тап, не выделяется, без пауз между кругами)
65
65
  - **TaoInput** — поле ввода с поддержкой v-model, валидации и слотов `#prefix` / `#suffix` (иконка или текст внутри рамки); `variant` `outline` / `filled` / `plain` (без рамки: пункт списка в правке; его берут и `TaoInputNumber`, `TaoCombobox`, `TaoTextarea`)
66
66
  - **TaoInputGroup** — склейка снаружи: `#before` | поле | `#after` (протокол, единица, кнопка)
67
67
  - **TaoCommandList** — поле и список палитры без окна вокруг, для страницы, боковой панели или `TaoPopover`: тот же поиск, клавиши и строки, `@select` выбирает и ничего не закрывает, `autofocus`, `focus()`, `reset()`
package/dist/index.d.ts CHANGED
@@ -1727,6 +1727,15 @@ roundPause?: boolean;
1727
1727
  decorative?: boolean;
1728
1728
  /** Stopped by the app. / Остановлена приложением. */
1729
1729
  paused?: boolean;
1730
+ /**
1731
+ * Run also when the line fits: it is repeated, with `gap` between the copies, until the copies cover the whole
1732
+ * width, so the strip never has a hole (a ticker of quotes, a row of logos). Without it a line that fits stands still.
1733
+ * Бежать и тогда, когда строка помещается: она повторяется, с `gap` между копиями, пока копии не закроют всю ширину,
1734
+ * и в ленте не бывает дыры (биржевая лента, ряд логотипов). Без него помещающаяся строка стоит на месте.
1735
+ */
1736
+ fill?: boolean;
1737
+ /** Run to the right instead of to the left. / Бежать вправо, а не влево. */
1738
+ reverse?: boolean;
1730
1739
  }>, {
1731
1740
  text: string;
1732
1741
  speed: number;
@@ -1736,6 +1745,8 @@ pauseOnHover: boolean;
1736
1745
  roundPause: undefined;
1737
1746
  decorative: boolean;
1738
1747
  paused: boolean;
1748
+ fill: boolean;
1749
+ reverse: boolean;
1739
1750
  }>>, {
1740
1751
  /** Measures again (after the content changed in a way the marquee cannot see). / Перемерить. */
1741
1752
  measure: typeof measure;
@@ -1783,6 +1794,15 @@ roundPause?: boolean;
1783
1794
  decorative?: boolean;
1784
1795
  /** Stopped by the app. / Остановлена приложением. */
1785
1796
  paused?: boolean;
1797
+ /**
1798
+ * Run also when the line fits: it is repeated, with `gap` between the copies, until the copies cover the whole
1799
+ * width, so the strip never has a hole (a ticker of quotes, a row of logos). Without it a line that fits stands still.
1800
+ * Бежать и тогда, когда строка помещается: она повторяется, с `gap` между копиями, пока копии не закроют всю ширину,
1801
+ * и в ленте не бывает дыры (биржевая лента, ряд логотипов). Без него помещающаяся строка стоит на месте.
1802
+ */
1803
+ fill?: boolean;
1804
+ /** Run to the right instead of to the left. / Бежать вправо, а не влево. */
1805
+ reverse?: boolean;
1786
1806
  }>, {
1787
1807
  text: string;
1788
1808
  speed: number;
@@ -1792,7 +1812,11 @@ pauseOnHover: boolean;
1792
1812
  roundPause: undefined;
1793
1813
  decorative: boolean;
1794
1814
  paused: boolean;
1815
+ fill: boolean;
1816
+ reverse: boolean;
1795
1817
  }>>> & Readonly<{}>, {
1818
+ reverse: boolean;
1819
+ fill: boolean;
1796
1820
  text: string;
1797
1821
  speed: number;
1798
1822
  decorative: boolean;