@1337exp/taoui 5.20.0 → 5.22.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,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.22.0
4
+
5
+ Nothing to migrate; the defaults do not change.
6
+
7
+ - **`TaoPinCode` `bordered`.** `:bordered="false"` is a light style: the cells have a soft fill and no frame at all (the border stays in the box, so the cells do not jump). A state is told by the fill and the digit instead: a tint of the accent on the focus, of danger on an error, of success on a result.
8
+ - **`TaoPinCode`: an error paints the digits red**, as a success always painted them green (`--tao-color-danger-text`).
9
+ - **`TaoDrawer`: the pull of a sheet no longer selects the title.** While the sheet is in the hand the panel has `user-select: none`, and it is given back at the end.
10
+ - **`TaoDrawer`: a pointer that vanishes lets go.** The blur of the window, a tab that goes to the background, `pagehide` and a taken capture (`lostpointercapture`) end the pull as a cancel: the sheet settles back and does not close, and the next pull starts clean. The same guard `TaoCarousel` has had.
11
+
12
+ ## 5.21.0
13
+
14
+ Nothing to migrate; the defaults do not change.
15
+
16
+ - **`TaoMarquee` `decorative`: a line that is only a picture.** For a marquee used as a design feature, in the background. A ghost: `aria-hidden` and `inert` (not a tab stop, nothing to select, no reaction to a cursor or a tap), `pointer-events: none`, and it runs round without a pause, like a looped GIF. Under «reduce motion» it stands still and is clipped, it does not wrap. Use it only for text nobody needs to read: the stop that WCAG 2.2.2 asks of moving content does not apply to pure decoration, and a screen reader will not see it.
17
+ - **`TaoMarquee` `roundPause`.** The rest at the start of every round can be turned off for any line (`:round-pause="false"`): the round is one line plus the gap and the loop has no seam. Not set, it follows `decorative` (no rest) and an ordinary line keeps its rest.
18
+
19
+ ## 5.20.1
20
+
21
+ Nothing to migrate; the defaults do not change.
22
+
23
+ - **`TaoMarquee`: `pauseOnHover="false"` is a background line now.** The prop was there, but a line used as a design feature still stopped for a tap and could be selected while it ran. With `pauseOnHover` off a cursor or a finger passing by does not stop it, and the running text has `user-select: none`. Focus still stops it and a running line stays a tab stop, so the keyboard keeps its way to stop moving content (WCAG 2.2.2). The showcase has a background line.
24
+ - Showcase: the numbers promised by the palettes sit under the palette lab, with the other colour blocks of the section.
25
+
3
26
  ## 5.20.0
4
27
 
5
28
  Nothing to migrate; the library does not change.
package/README.md CHANGED
@@ -55,7 +55,7 @@
55
55
  - **TaoButton** — `variant`: `primary` / `secondary` / `ghost` / `text`; `tone` colours any of them (accent by default, neutral, success, danger, warning, info). `v-model:pressed` makes it a toggle (`aria-pressed`); `shortcut="N"` shows the key at the end of the button (`aria-keyshortcuts`; listening to it is the app's job)
56
56
  - **TaoCard** — card with media / header / title / footer slots and a `#corner` (a tag, a menu button). `#media` can be a photo or `TaoCarousel`; `closable` adds a cross and the `close` event. `flush` is a tile (no padding/shadow, fills the cell); `#overlay` is a scrim on the media; `stripe="top | left | bottom"` with `stripeTone` (a tone or the palette `gradient`) draws a coloured stripe the corners clip
57
57
  - **TaoCopy** — clipboard icon. After a click, a “Copied” tooltip; if the trigger is gone, the tooltip is too
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`
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`, `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)
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
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
@@ -94,7 +94,7 @@
94
94
  - **TaoInputNumber** — number with min/max/step and ± on the right. Empty value is `null`. `@commit` fires once when an edit is finished (blur, Enter, ±, arrow), unlike `v-model`, which updates on every keystroke
95
95
  - **TaoQuantity** — cart quantity: `− | field | +`, integers, stock; minus at the minimum can remove the row
96
96
  - **TaoTextarea** — autosizing multiline. `maxlength` caps input, `count` shows “entered / max”. `variant`: `bar` (default) / `outline` (frame like Input) / `filled` / `plain`; `readonly`; `align`; `blurOnEnter`
97
- - **TaoPinCode** — N cells. By default a click clears the cell and everything to the right (`clear-on="focus"`); `clear-on="input"` replaces the digit only when typing. `format="#-##-##"` draws visual separators (not part of the value; a paste in that shape or as a clean code is split into cells). The last cell blurs and emits `complete`; `status="success | error"` (set after `complete`) glows or shakes the cells and says it to a screen reader
97
+ - **TaoPinCode** — N cells. By default a click clears the cell and everything to the right (`clear-on="focus"`); `clear-on="input"` replaces the digit only when typing. `format="#-##-##"` draws visual separators (not part of the value; a paste in that shape or as a clean code is split into cells). The last cell blurs and emits `complete`; `status="success | error"` (set after `complete`) glows or shakes the cells and says it to a screen reader; `bordered="false"` is a light style with no frame
98
98
  - **TaoSlider** / **TaoRangeSlider** — one thumb (`v-model` is a number) or two (`[from, to]`, `minGap`). Mouse, touch, arrows. `marks` (ticks, numbers, `{ value, label }`), `discrete` for stepped scales, `vertical`, `flat`, `format`; `variant="thin"` is a thin track for seek / volume
99
99
  - **TaoColorPicker** — saturation / brightness square, hue and opacity strips, swatches, eyedropper (where the browser has `EyeDropper`), HEX / RGB / HSL input modes. `v-model` is a hex string; `colorModel()` adapts your own colour storage
100
100
  - **TaoColorInput** — a field with a swatch and the hex text; the picker opens in a popover
package/README.ru.md CHANGED
@@ -55,7 +55,7 @@
55
55
  - **TaoButton** — кнопка. `variant`: `primary` / `secondary` / `ghost` / `text`; `tone` красит любой из них (по умолчанию акцент, neutral, success, danger, warning, info). `v-model:pressed` делает её переключателем (`aria-pressed`); `shortcut="N"` показывает клавишу в конце кнопки (`aria-keyshortcuts`; слушать её — дело приложения)
56
56
  - **TaoCard** — карточка со слотами media / header / title / footer и `#corner` (тег, кнопка меню). В `#media` — фото или `TaoCarousel`; `closable` добавляет крестик и событие `close`. `flush` — плитка без padding/тени на всю ячейку; `#overlay` — scrim на media; `stripe="top | left | bottom"` со `stripeTone` (тон или `gradient` палитры) рисует цветную полосу, которую обрезают углы
57
57
  - **TaoCopy** — иконка копирования в буфер. После клика сверху тултип «Скопировано»; если кнопку убрали — тултип тоже
58
- - **TaoMarquee** — одна строка без переносов: не помещается — бежит по кругу с гаснущими краями и паузой в начале каждого круга, помещается — стоит. Останавливается при наведении, фокусе и тапе (WCAG 2.2.2); при «уменьшить движение» переносится; скринридер читает один раз. `text` или строчное содержимое в слоте, `speed`, `gap`, `fade` (левое затухание занимает столько места слева от текста: дайте родителю такой padding), `paused`
58
+ - **TaoMarquee** — одна строка без переносов: не помещается — бежит по кругу с гаснущими краями и паузой в начале каждого круга, помещается — стоит. Останавливается при наведении, фокусе и тапе (WCAG 2.2.2); при «уменьшить движение» переносится; скринридер читает один раз. `text` или строчное содержимое в слоте, `speed`, `gap`, `fade` (левое затухание занимает столько места слева от текста: дайте родителю такой padding), `paused`, `pauseOnHover`, `roundPause` (`false`: без паузы в начале круга), `decorative` (призрак для строки-фона: скрыта от скринридера, не остановка Tab, не реагирует на курсор и тап, не выделяется, без пауз между кругами)
59
59
  - **TaoInput** — поле ввода с поддержкой v-model, валидации и слотов `#prefix` / `#suffix` (иконка или текст внутри рамки); `variant` `outline` / `filled` / `plain` (без рамки: пункт списка в правке; его берут и `TaoInputNumber`, `TaoCombobox`, `TaoTextarea`)
60
60
  - **TaoInputGroup** — склейка снаружи: `#before` | поле | `#after` (протокол, единица, кнопка)
61
61
  - **TaoModal** — модальное окно с анимацией и слотами; `fullscreen` (или `fullscreen="narrow"`: страница на телефоне, окно на компьютере); `surface="grain"` / `"glass"`, класс и атрибуты — на панели окна; прокручивается содержимое под шапкой и подвалом, которые на месте
@@ -94,7 +94,7 @@
94
94
  - **TaoInputNumber** — число с min/max/step и кнопками ± справа. Пустое значение — `null`. `@commit` срабатывает один раз, когда правка закончена (blur, Enter, ±, стрелка), в отличие от `v-model`, который обновляется на каждую клавишу
95
95
  - **TaoQuantity** — количество в корзине: `− | поле | +`, целые штуки, сток, минус на минимуме может убрать строку
96
96
  - **TaoTextarea** — многострочное поле с авто-высотой. `maxlength` ограничивает ввод, `count` показывает «введено / максимум». `variant`: `bar` (по умолчанию) / `outline` (рамка как у Input) / `filled` / `plain`; `readonly`; `align`; `blurOnEnter`
97
- - **TaoPinCode** — пин-код из N полей. По умолчанию клик стирает ячейку и все справа (`clear-on="focus"`); `clear-on="input"` заменяет цифру только при вводе. `format="#-##-##"` рисует визуальные разделители (в значение не входят; вставка в таком виде или чистым кодом раскладывается по ячейкам). Последняя ячейка снимает фокус и эмитит `complete`; `status="success | error"` (после `complete`) подсвечивает или встряхивает ячейки и говорит об этом скринридеру
97
+ - **TaoPinCode** — пин-код из N полей. По умолчанию клик стирает ячейку и все справа (`clear-on="focus"`); `clear-on="input"` заменяет цифру только при вводе. `format="#-##-##"` рисует визуальные разделители (в значение не входят; вставка в таком виде или чистым кодом раскладывается по ячейкам). Последняя ячейка снимает фокус и эмитит `complete`; `status="success | error"` (после `complete`) подсвечивает или встряхивает ячейки и говорит об этом скринридеру; `bordered="false"` — лёгкий стиль без рамки
98
98
  - **TaoSlider** / **TaoRangeSlider** — один бегунок (`v-model` — число) или два (`[от, до]`, `minGap`). Мышь, тач, стрелки. `marks` (деления, числа, `{ value, label }`), `discrete` для ступенчатых шкал, `vertical`, `flat`, `format`; `variant="thin"` — тонкий трек для seek / громкости
99
99
  - **TaoColorPicker** — квадрат насыщенности и яркости, полосы тона и прозрачности, образцы, пипетка (где есть `EyeDropper`), режимы ввода HEX / RGB / HSL. `v-model` — строка hex; `colorModel()` подключает ваше собственное хранилище цвета
100
100
  - **TaoColorInput** — поле с образцом и hex-текстом; палитра открывается в поповере
package/dist/index.d.ts CHANGED
@@ -1520,7 +1520,33 @@ gap?: number;
1520
1520
  * родителю нужно столько места слева (его padding), иначе бегущий текст покажется за его краем. 0 — без затухания.
1521
1521
  */
1522
1522
  fade?: number;
1523
+ /**
1524
+ * Stops under the pointer, and a tap stops and starts it. Turn it off when the line is a background (a design
1525
+ * feature): a cursor or a finger passing by does not stop it, and its text cannot be selected (a line that runs
1526
+ * away from a selection is no text to copy). Focus still stops it, and it is still a tab stop while it runs.
1527
+ * Останавливается под курсором, а тап останавливает и запускает. Выключите, когда строка — фон (приём дизайна):
1528
+ * мимо идущий курсор или палец её не останавливает, а текст не выделяется (убегающую строку не скопировать).
1529
+ * Фокус всё равно останавливает, и пока строка бежит, она остаётся остановкой Tab.
1530
+ */
1523
1531
  pauseOnHover?: boolean;
1532
+ /**
1533
+ * A pause at the start of every round, to read the beginning. Off, the line runs round without a stop, like a
1534
+ * looped picture. Without it set, a decorative line has no pause and an ordinary one has.
1535
+ * Пауза в начале каждого круга, чтобы прочитать начало. Выключенная — строка бежит по кругу без остановок, как
1536
+ * зацикленная картинка. Если не задана: у декоративной строки паузы нет, у обычной есть.
1537
+ */
1538
+ roundPause?: boolean;
1539
+ /**
1540
+ * A line that is only decoration (a background, a design feature) and carries no meaning: a ghost. Hidden from a
1541
+ * screen reader, not a tab stop, nothing under a cursor or a finger reacts, the text cannot be selected, and it
1542
+ * runs round without a pause. Only for text nobody needs to read: the stop that WCAG 2.2.2 asks of moving content
1543
+ * does not apply to pure decoration. With «reduce motion» it stands still and is clipped, it does not wrap.
1544
+ * Строка-декор (фон, приём дизайна) без смысла: призрак. Скрыта от скринридера, не остановка Tab, курсор и палец
1545
+ * для неё пустое место, текст не выделяется, бежит по кругу без пауз. Только для текста, который никому не нужно
1546
+ * читать: остановка, которую WCAG 2.2.2 требует от движения, чистому декору не нужна. При «уменьшить движение» стоит
1547
+ * и обрезана, не переносится.
1548
+ */
1549
+ decorative?: boolean;
1524
1550
  /** Stopped by the app. / Остановлена приложением. */
1525
1551
  paused?: boolean;
1526
1552
  }>, {
@@ -1529,6 +1555,8 @@ speed: number;
1529
1555
  gap: number;
1530
1556
  fade: number;
1531
1557
  pauseOnHover: boolean;
1558
+ roundPause: undefined;
1559
+ decorative: boolean;
1532
1560
  paused: boolean;
1533
1561
  }>>, {
1534
1562
  /** Measures again (after the content changed in a way the marquee cannot see). / Перемерить. */
@@ -1548,7 +1576,33 @@ gap?: number;
1548
1576
  * родителю нужно столько места слева (его padding), иначе бегущий текст покажется за его краем. 0 — без затухания.
1549
1577
  */
1550
1578
  fade?: number;
1579
+ /**
1580
+ * Stops under the pointer, and a tap stops and starts it. Turn it off when the line is a background (a design
1581
+ * feature): a cursor or a finger passing by does not stop it, and its text cannot be selected (a line that runs
1582
+ * away from a selection is no text to copy). Focus still stops it, and it is still a tab stop while it runs.
1583
+ * Останавливается под курсором, а тап останавливает и запускает. Выключите, когда строка — фон (приём дизайна):
1584
+ * мимо идущий курсор или палец её не останавливает, а текст не выделяется (убегающую строку не скопировать).
1585
+ * Фокус всё равно останавливает, и пока строка бежит, она остаётся остановкой Tab.
1586
+ */
1551
1587
  pauseOnHover?: boolean;
1588
+ /**
1589
+ * A pause at the start of every round, to read the beginning. Off, the line runs round without a stop, like a
1590
+ * looped picture. Without it set, a decorative line has no pause and an ordinary one has.
1591
+ * Пауза в начале каждого круга, чтобы прочитать начало. Выключенная — строка бежит по кругу без остановок, как
1592
+ * зацикленная картинка. Если не задана: у декоративной строки паузы нет, у обычной есть.
1593
+ */
1594
+ roundPause?: boolean;
1595
+ /**
1596
+ * A line that is only decoration (a background, a design feature) and carries no meaning: a ghost. Hidden from a
1597
+ * screen reader, not a tab stop, nothing under a cursor or a finger reacts, the text cannot be selected, and it
1598
+ * runs round without a pause. Only for text nobody needs to read: the stop that WCAG 2.2.2 asks of moving content
1599
+ * does not apply to pure decoration. With «reduce motion» it stands still and is clipped, it does not wrap.
1600
+ * Строка-декор (фон, приём дизайна) без смысла: призрак. Скрыта от скринридера, не остановка Tab, курсор и палец
1601
+ * для неё пустое место, текст не выделяется, бежит по кругу без пауз. Только для текста, который никому не нужно
1602
+ * читать: остановка, которую WCAG 2.2.2 требует от движения, чистому декору не нужна. При «уменьшить движение» стоит
1603
+ * и обрезана, не переносится.
1604
+ */
1605
+ decorative?: boolean;
1552
1606
  /** Stopped by the app. / Остановлена приложением. */
1553
1607
  paused?: boolean;
1554
1608
  }>, {
@@ -1557,6 +1611,8 @@ speed: number;
1557
1611
  gap: number;
1558
1612
  fade: number;
1559
1613
  pauseOnHover: boolean;
1614
+ roundPause: undefined;
1615
+ decorative: boolean;
1560
1616
  paused: boolean;
1561
1617
  }>>> & Readonly<{}>, {
1562
1618
  text: string;
@@ -1565,6 +1621,8 @@ gap: number;
1565
1621
  paused: boolean;
1566
1622
  fade: number;
1567
1623
  pauseOnHover: boolean;
1624
+ roundPause: boolean;
1625
+ decorative: boolean;
1568
1626
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1569
1627
 
1570
1628
  declare const __VLS_component_46: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_46<__VLS_TypePropsToRuntimeProps_50<{
@@ -7072,6 +7130,13 @@ placeholder?: string;
7072
7130
  disabled?: boolean;
7073
7131
  /** Red frame. The message goes to TaoFormField `error`. / Красная рамка. Текст ошибки — в `error` у TaoFormField. */
7074
7132
  error?: boolean;
7133
+ /**
7134
+ * The frame of the cells. `false` is the light style: a soft fill and no frame at all; the focus, an error and a result
7135
+ * are told by a tint of the fill and, for the last two, by the colour of the digit.
7136
+ * Рамка ячеек. `false` — лёгкий стиль: мягкая заливка и никакой рамки; фокус, ошибку и результат говорят оттенок
7137
+ * заливки и, у последних двух, цвет цифры.
7138
+ */
7139
+ bordered?: boolean;
7075
7140
  /** Cell size; without it — the size of ancestors. / Размер ячеек; без него — размер предков. */
7076
7141
  size?: TaoSize;
7077
7142
  modelValue?: string;
@@ -7093,6 +7158,7 @@ masked: boolean;
7093
7158
  placeholder: string;
7094
7159
  disabled: boolean;
7095
7160
  error: boolean;
7161
+ bordered: boolean;
7096
7162
  modelValue: string;
7097
7163
  numbersOnly: boolean;
7098
7164
  clearOn: string;
@@ -7124,6 +7190,13 @@ placeholder?: string;
7124
7190
  disabled?: boolean;
7125
7191
  /** Red frame. The message goes to TaoFormField `error`. / Красная рамка. Текст ошибки — в `error` у TaoFormField. */
7126
7192
  error?: boolean;
7193
+ /**
7194
+ * The frame of the cells. `false` is the light style: a soft fill and no frame at all; the focus, an error and a result
7195
+ * are told by a tint of the fill and, for the last two, by the colour of the digit.
7196
+ * Рамка ячеек. `false` — лёгкий стиль: мягкая заливка и никакой рамки; фокус, ошибку и результат говорят оттенок
7197
+ * заливки и, у последних двух, цвет цифры.
7198
+ */
7199
+ bordered?: boolean;
7127
7200
  /** Cell size; without it — the size of ancestors. / Размер ячеек; без него — размер предков. */
7128
7201
  size?: TaoSize;
7129
7202
  modelValue?: string;
@@ -7145,6 +7218,7 @@ masked: boolean;
7145
7218
  placeholder: string;
7146
7219
  disabled: boolean;
7147
7220
  error: boolean;
7221
+ bordered: boolean;
7148
7222
  modelValue: string;
7149
7223
  numbersOnly: boolean;
7150
7224
  clearOn: string;
@@ -7164,6 +7238,7 @@ placeholder: string;
7164
7238
  error: boolean;
7165
7239
  modelValue: string;
7166
7240
  successText: string;
7241
+ bordered: boolean;
7167
7242
  masked: boolean;
7168
7243
  numbersOnly: boolean;
7169
7244
  clearOn: "focus" | "input";
package/dist/index.js CHANGED
@@ -6668,7 +6668,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
6668
6668
  }
6669
6669
  });
6670
6670
  const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-48847c47"]]);
6671
- const _hoisted_1$u = ["tabindex"];
6671
+ const _hoisted_1$u = ["tabindex", "aria-hidden", "inert"];
6672
6672
  const _hoisted_2$r = { class: "tao-marquee__item" };
6673
6673
  const _hoisted_3$n = {
6674
6674
  key: 0,
@@ -6685,6 +6685,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6685
6685
  gap: { default: 48 },
6686
6686
  fade: { default: 22 },
6687
6687
  pauseOnHover: { type: Boolean, default: true },
6688
+ roundPause: { type: Boolean, default: void 0 },
6689
+ decorative: { type: Boolean, default: false },
6688
6690
  paused: { type: Boolean, default: false }
6689
6691
  },
6690
6692
  setup(__props, { expose: __expose }) {
@@ -6700,7 +6702,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6700
6702
  let motionQuery = null;
6701
6703
  const overflowing = computed(() => itemWidth.value > boxWidth.value + 1);
6702
6704
  const running = computed(() => overflowing.value && !reduce.value);
6703
- const wrapping = computed(() => overflowing.value && reduce.value);
6705
+ const wrapping = computed(() => overflowing.value && reduce.value && !props.decorative);
6706
+ const restAtStart = computed(() => props.roundPause ?? !props.decorative);
6704
6707
  const stopped = computed(() => props.paused || tapped.value);
6705
6708
  const trackStyle = computed(() => {
6706
6709
  const shift = itemWidth.value + props.gap;
@@ -6722,7 +6725,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6722
6725
  reduce.value = Boolean(motionQuery?.matches);
6723
6726
  }
6724
6727
  function onPointerUp(event) {
6725
- if (running.value && event.pointerType !== "mouse") {
6728
+ if (!props.decorative && props.pauseOnHover && running.value && event.pointerType !== "mouse") {
6726
6729
  tapped.value = !tapped.value;
6727
6730
  }
6728
6731
  }
@@ -6761,10 +6764,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6761
6764
  "tao-marquee--run": running.value,
6762
6765
  "tao-marquee--wrap": wrapping.value,
6763
6766
  "tao-marquee--stopped": stopped.value,
6764
- "tao-marquee--hover-pause": __props.pauseOnHover
6767
+ "tao-marquee--hover-pause": __props.pauseOnHover && !__props.decorative,
6768
+ "tao-marquee--seamless": !restAtStart.value,
6769
+ "tao-marquee--ghost": __props.decorative
6765
6770
  }]),
6766
6771
  style: normalizeStyle({ "--_fade": `${__props.fade}px` }),
6767
- tabindex: running.value ? 0 : void 0,
6772
+ tabindex: running.value && !__props.decorative ? 0 : void 0,
6773
+ "aria-hidden": __props.decorative ? "true" : void 0,
6774
+ inert: __props.decorative || void 0,
6768
6775
  onPointerup: onPointerUp
6769
6776
  }, [
6770
6777
  createElementVNode("span", {
@@ -6797,7 +6804,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6797
6804
  };
6798
6805
  }
6799
6806
  });
6800
- const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-baa9520c"]]);
6807
+ const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-300f470a"]]);
6801
6808
  const PIN_CELL = "#";
6802
6809
  function parsePinFormat(format) {
6803
6810
  const mask = [...format];
@@ -6859,6 +6866,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
6859
6866
  placeholder: { default: "" },
6860
6867
  disabled: { type: Boolean, default: false },
6861
6868
  error: { type: Boolean, default: false },
6869
+ bordered: { type: Boolean, default: true },
6862
6870
  size: {},
6863
6871
  modelValue: { default: "" },
6864
6872
  numbersOnly: { type: Boolean, default: false },
@@ -7065,6 +7073,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7065
7073
  unref(sizeClass)(__props.size),
7066
7074
  {
7067
7075
  "tao-pin-code--disabled": __props.disabled,
7076
+ "tao-pin-code--plain": !__props.bordered,
7068
7077
  "tao-pin-code--success": __props.status === "success",
7069
7078
  "tao-pin-code--shake": playing.value === "error",
7070
7079
  "tao-pin-code--glow": playing.value === "success"
@@ -7110,7 +7119,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7110
7119
  };
7111
7120
  }
7112
7121
  });
7113
- const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-383c8197"]]);
7122
+ const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-bb653baa"]]);
7114
7123
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
7115
7124
  ...{ name: "TaoLink" },
7116
7125
  __name: "TaoLink",
@@ -10768,6 +10777,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10768
10777
  }
10769
10778
  drag = { pointerId: event.pointerId, startY: event.clientY, moved: false, offset: 0, samples: [{ t: event.timeStamp, y: event.clientY }] };
10770
10779
  capture(event.pointerId, true);
10780
+ if (panelRef.value) {
10781
+ panelRef.value.style.userSelect = "none";
10782
+ }
10771
10783
  }
10772
10784
  function onPointerMove(event) {
10773
10785
  if (!drag || event.pointerId !== drag.pointerId) {
@@ -10786,17 +10798,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10786
10798
  setSheet(drag.offset, false);
10787
10799
  }
10788
10800
  async function onPointerEnd(event) {
10801
+ if (drag && event.pointerId === drag.pointerId) {
10802
+ await endDrag(event.type === "pointerup", event.pointerId);
10803
+ }
10804
+ }
10805
+ function abortDrag() {
10806
+ if (drag) {
10807
+ void endDrag(false, drag.pointerId);
10808
+ }
10809
+ }
10810
+ function onHidden() {
10811
+ if (document.hidden) {
10812
+ abortDrag();
10813
+ }
10814
+ }
10815
+ async function endDrag(released, pointerId) {
10789
10816
  const current2 = drag;
10790
- if (!current2 || event.pointerId !== current2.pointerId) {
10817
+ if (!current2) {
10791
10818
  return;
10792
10819
  }
10793
10820
  drag = null;
10794
- capture(event.pointerId, false);
10821
+ capture(pointerId, false);
10822
+ if (panelRef.value) {
10823
+ panelRef.value.style.userSelect = "";
10824
+ }
10795
10825
  if (!current2.moved) {
10796
10826
  return;
10797
10827
  }
10798
10828
  const height = panelRef.value?.offsetHeight ?? 0;
10799
- if (event.type === "pointerup" && shouldDismissSheet(current2.offset, height, releaseVelocity(current2.samples))) {
10829
+ if (released && shouldDismissSheet(current2.offset, height, releaseVelocity(current2.samples))) {
10800
10830
  setSheet(height, true);
10801
10831
  close();
10802
10832
  await nextTick();
@@ -10821,6 +10851,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10821
10851
  trapTab(event, panelRef.value);
10822
10852
  }
10823
10853
  }
10854
+ onMounted(() => {
10855
+ window.addEventListener("blur", abortDrag);
10856
+ window.addEventListener("pagehide", abortDrag);
10857
+ document.addEventListener("visibilitychange", onHidden);
10858
+ });
10859
+ onBeforeUnmount(() => {
10860
+ window.removeEventListener("blur", abortDrag);
10861
+ window.removeEventListener("pagehide", abortDrag);
10862
+ document.removeEventListener("visibilitychange", onHidden);
10863
+ });
10824
10864
  useLayer(() => props.modelValue, { lockScroll: true, restoreFocus: true, onEscape: close });
10825
10865
  watch(
10826
10866
  () => props.modelValue,
@@ -10859,7 +10899,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10859
10899
  onPointerdown: onPointerDown,
10860
10900
  onPointermove: onPointerMove,
10861
10901
  onPointerup: onPointerEnd,
10862
- onPointercancel: onPointerEnd
10902
+ onPointercancel: onPointerEnd,
10903
+ onLostpointercapture: abortDrag
10863
10904
  }), [
10864
10905
  __props.side === "bottom" ? (openBlock(), createElementBlock("span", _hoisted_2$7)) : createCommentVNode("", true),
10865
10906
  _ctx.$slots.header || __props.title || showCloseButton.value ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
@@ -10899,7 +10940,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
10899
10940
  };
10900
10941
  }
10901
10942
  });
10902
- const TaoDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-11b7fda2"]]);
10943
+ const TaoDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a108b5eb"]]);
10903
10944
  const _hoisted_1$7 = ["title"];
10904
10945
  const _hoisted_2$6 = { class: "tao-avatar__face" };
10905
10946
  const _hoisted_3$5 = ["src", "alt"];