@1337exp/taoui 5.49.1 → 5.49.2
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 +8 -0
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/dist/index.js +45 -35
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/references/components.md +1392 -1392
- package/skills/taoui/references/patterns.md +241 -211
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.49.2
|
|
4
|
+
|
|
5
|
+
Nothing to migrate. A segmented control whose captions fit looks and measures as before; one that did not fit used to lose its last words, and now wraps them.
|
|
6
|
+
|
|
7
|
+
- **`TaoSegmented`: a caption that does not fit is no longer cut off.** When the track hits `max-width: 100%` (a narrow column, a long Russian caption beside a short one) the options give way: the label wraps to a second line, then ends in an ellipsis, and the option shows the full text as a native `title` on hover (set only while it is cut). With room, an option keeps its natural width, as before (`flex: 0 1 auto`, it was `0 0 auto`); the face fills the option, so the focus ring is as tall as a two-line neighbour. The `block` ellipsis rule never matched (it looked for the label as a child of the track, where it is a great-grandchild) and is gone: `block` gets the same wrapping.
|
|
8
|
+
- **A safety net, not a layout.** Two lines are for the unforeseen (a language, a font, a narrow container); a caption that does not fit by design belongs in a shorter word, `TaoRadioGroup` or `TaoSelect`. The showcase section «When the captions do not fit» shows it.
|
|
9
|
+
- **The Guide explains why: a new pattern «A segmented switch: short captions».** A do and a don't side by side, the rule (2 to 5 options, one word or a short noun phrase each, the explanation in the `legend`, sentences go to `TaoRadioGroup`) and the reason, from Apple's Human Interface Guidelines (about five segments on iPhone, segments of similar size, nouns) and the GitLab Pajamas design system (2 or 3 options, never over 5, a one-word label). Also in `skills/taoui/references/patterns.md` for assistants (`npm run skill`).
|
|
10
|
+
|
|
3
11
|
## 5.49.1
|
|
4
12
|
|
|
5
13
|
Nothing to migrate. To make a key selectable again (a page of documentation that wants it copied): `.my-doc .tao-kbd { user-select: text; }`.
|
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
- **TaoChecklist** — checkboxes with one model (the checked values): `select-all` with a mixed state, a `counter` «3 of 5», `strike` for a to-do list (a look only, the checkbox tells the state), `description` per item. A fieldset: in a `TaoFormField` the group takes the label and the error
|
|
95
95
|
- **TaoSwitch** — boolean toggle (`role="switch"`)
|
|
96
96
|
- **TaoRadio** / **TaoRadioGroup** — classic radios: longer labels, can stack vertically
|
|
97
|
-
- **TaoSegmented** / **TaoSegmentedOption** — compact exclusive choice among 2–5 short options. Not tabs
|
|
97
|
+
- **TaoSegmented** / **TaoSegmentedOption** — compact exclusive choice among 2–5 short options. Not tabs. A caption that does not fit wraps to a second line, then ends in an ellipsis (the full text is the hover `title`)
|
|
98
98
|
- **TaoSelect** — dropdown with keyboard, same chrome as Input. `size` (`small` / `medium` / `large`, same scale as Button). Clear via “Clear” in the list or Delete; `clearable="false"` turns clearing off, `#clear` replaces the row content
|
|
99
99
|
- **TaoPresetInput** — a field with presets, as in an editor (font size, zoom): a compact input, a block of two arrows and a narrow pop-up. The arrows walk the `options` (`default: true` marks what an empty field means, «Auto»; `loop` joins the ends), a number typed by hand is a value too (`custom`); Tab applies and goes on
|
|
100
100
|
- **TaoCombobox** — Select with a field: type to filter, `allow-create` writes a custom value into `v-model`, `create` lets the parent append the list. Takes the same `size`, `clearable` and `#clear` as `TaoSelect`
|
package/README.ru.md
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
- **TaoChecklist** — чекбоксы с одной моделью (отмеченные значения): `select-all` с промежуточным состоянием, `counter` «3 из 5», `strike` для списка дел (только вид, состояние говорит чекбокс), `description` у пункта. Это fieldset: в `TaoFormField` группа берёт подпись и ошибку
|
|
95
95
|
- **TaoSwitch** — переключатель для булевых настроек (`role="switch"`)
|
|
96
96
|
- **TaoRadio** / **TaoRadioGroup** — классические радиокнопки: длинные подписи, можно столбиком
|
|
97
|
-
- **TaoSegmented** / **TaoSegmentedOption** — компактный выбор из 2–5 коротких вариантов. Не
|
|
97
|
+
- **TaoSegmented** / **TaoSegmentedOption** — компактный выбор из 2–5 коротких вариантов. Не вкладки. Подпись, которая не влезла, переносится на вторую строку и кончается многоточием (полный текст — в `title` при наведении)
|
|
98
98
|
- **TaoSelect** — выпадающий список с клавиатурой, тот же визуал, что у Input. `size` (`small` / `medium` / `large`, та же шкала, что у Button). Сброс — «Очистить» в списке или Delete; `clearable="false"` отключает сброс, слот `#clear` заменяет содержимое строки
|
|
99
99
|
- **TaoPresetInput** — поле с заготовками, как в редакторе (размер шрифта, масштаб): компактное поле, блок из двух стрелок и узкое окно. Стрелки ходят по `options` (`default: true` — что значит пустое поле, «Авто»; `loop` замыкает концы), число, набранное руками, тоже значение (`custom`); Tab применяет и идёт дальше
|
|
100
100
|
- **TaoCombobox** — Select с полем: фильтр по вводу, `allow-create` пишет своё в `v-model`, `create` — чтобы родитель дополнил список. Те же `size`, `clearable` и `#clear`, что у `TaoSelect`
|
package/dist/index.js
CHANGED
|
@@ -1430,7 +1430,7 @@ const _hoisted_6$p = {
|
|
|
1430
1430
|
key: 0,
|
|
1431
1431
|
class: "tao-card__title"
|
|
1432
1432
|
};
|
|
1433
|
-
const _hoisted_7$
|
|
1433
|
+
const _hoisted_7$j = {
|
|
1434
1434
|
key: 1,
|
|
1435
1435
|
class: "tao-card__sub"
|
|
1436
1436
|
};
|
|
@@ -1521,7 +1521,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
1521
1521
|
has("title") ? (openBlock(), createElementBlock("h2", _hoisted_6$p, [
|
|
1522
1522
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
1523
1523
|
])) : createCommentVNode("", true),
|
|
1524
|
-
has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
1524
|
+
has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$j, [
|
|
1525
1525
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1526
1526
|
])) : createCommentVNode("", true)
|
|
1527
1527
|
])) : createCommentVNode("", true),
|
|
@@ -1736,7 +1736,7 @@ const _hoisted_3$N = ["id"];
|
|
|
1736
1736
|
const _hoisted_4$G = { key: 1 };
|
|
1737
1737
|
const _hoisted_5$u = ["aria-label"];
|
|
1738
1738
|
const _hoisted_6$o = { "aria-hidden": "true" };
|
|
1739
|
-
const _hoisted_7$
|
|
1739
|
+
const _hoisted_7$i = { class: "tao-modal__content" };
|
|
1740
1740
|
const _hoisted_8$d = {
|
|
1741
1741
|
key: 1,
|
|
1742
1742
|
class: "tao-modal__footer"
|
|
@@ -1848,7 +1848,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1848
1848
|
])
|
|
1849
1849
|
], 8, _hoisted_5$u)) : createCommentVNode("", true)
|
|
1850
1850
|
])) : createCommentVNode("", true),
|
|
1851
|
-
createElementVNode("div", _hoisted_7$
|
|
1851
|
+
createElementVNode("div", _hoisted_7$i, [
|
|
1852
1852
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1853
1853
|
]),
|
|
1854
1854
|
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_8$d, [
|
|
@@ -2512,7 +2512,7 @@ const _hoisted_5$t = {
|
|
|
2512
2512
|
class: "tao-slider__marks"
|
|
2513
2513
|
};
|
|
2514
2514
|
const _hoisted_6$n = ["disabled", "onClick"];
|
|
2515
|
-
const _hoisted_7$
|
|
2515
|
+
const _hoisted_7$h = {
|
|
2516
2516
|
key: 0,
|
|
2517
2517
|
class: "tao-slider__mark-label"
|
|
2518
2518
|
};
|
|
@@ -2911,7 +2911,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2911
2911
|
onClick: ($event) => onMarkClick(mark)
|
|
2912
2912
|
}, [
|
|
2913
2913
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
|
|
2914
|
-
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
2914
|
+
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$h, [
|
|
2915
2915
|
renderSlot(_ctx.$slots, "mark", {
|
|
2916
2916
|
mark,
|
|
2917
2917
|
active: unref(isMarkActive)(mark.value, values.value)
|
|
@@ -3951,7 +3951,7 @@ const _hoisted_3$J = ["aria-labelledby", "aria-describedby"];
|
|
|
3951
3951
|
const _hoisted_4$D = ["id"];
|
|
3952
3952
|
const _hoisted_5$s = ["id"];
|
|
3953
3953
|
const _hoisted_6$m = { class: "tao-tour__footer" };
|
|
3954
|
-
const _hoisted_7$
|
|
3954
|
+
const _hoisted_7$g = {
|
|
3955
3955
|
key: 0,
|
|
3956
3956
|
class: "tao-tour__progress"
|
|
3957
3957
|
};
|
|
@@ -4167,7 +4167,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4167
4167
|
}, toDisplayString(__props.step.text), 9, _hoisted_5$s)) : createCommentVNode("", true)
|
|
4168
4168
|
]),
|
|
4169
4169
|
createElementVNode("div", _hoisted_6$m, [
|
|
4170
|
-
__props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4170
|
+
__props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$g, [
|
|
4171
4171
|
createElementVNode("span", _hoisted_8$c, [
|
|
4172
4172
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dots.value, (i) => {
|
|
4173
4173
|
return openBlock(), createElementBlock("i", {
|
|
@@ -5524,7 +5524,7 @@ const _hoisted_5$q = {
|
|
|
5524
5524
|
class: "tao-file-drop__list"
|
|
5525
5525
|
};
|
|
5526
5526
|
const _hoisted_6$k = { class: "tao-file-drop__name" };
|
|
5527
|
-
const _hoisted_7$
|
|
5527
|
+
const _hoisted_7$f = { class: "tao-file-drop__meta" };
|
|
5528
5528
|
const _hoisted_8$b = ["aria-label", "onClick"];
|
|
5529
5529
|
const _hoisted_9$8 = { "aria-hidden": "true" };
|
|
5530
5530
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
@@ -5688,7 +5688,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5688
5688
|
class: "tao-file-drop__file"
|
|
5689
5689
|
}, [
|
|
5690
5690
|
createElementVNode("span", _hoisted_6$k, toDisplayString(file.name), 1),
|
|
5691
|
-
createElementVNode("span", _hoisted_7$
|
|
5691
|
+
createElementVNode("span", _hoisted_7$f, toDisplayString(sizeLabel(file.size)), 1),
|
|
5692
5692
|
createElementVNode("button", {
|
|
5693
5693
|
type: "button",
|
|
5694
5694
|
class: "tao-file-drop__remove",
|
|
@@ -7269,7 +7269,7 @@ const _hoisted_6$i = {
|
|
|
7269
7269
|
class: "tao-donut__legend",
|
|
7270
7270
|
"aria-hidden": "true"
|
|
7271
7271
|
};
|
|
7272
|
-
const _hoisted_7$
|
|
7272
|
+
const _hoisted_7$e = { class: "tao-donut__name" };
|
|
7273
7273
|
const _hoisted_8$a = { class: "tao-donut__share" };
|
|
7274
7274
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
7275
7275
|
...{ name: "TaoDonut" },
|
|
@@ -7367,7 +7367,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
7367
7367
|
class: normalizeClass(["tao-donut__swatch", unref(toneClass)(arc.tone)]),
|
|
7368
7368
|
style: normalizeStyle({ background: arc.stroke })
|
|
7369
7369
|
}, null, 6),
|
|
7370
|
-
createElementVNode("span", _hoisted_7$
|
|
7370
|
+
createElementVNode("span", _hoisted_7$e, toDisplayString(arc.label), 1),
|
|
7371
7371
|
createElementVNode("span", _hoisted_8$a, toDisplayString(percent(arc.share)), 1)
|
|
7372
7372
|
]);
|
|
7373
7373
|
}), 128))
|
|
@@ -7389,7 +7389,7 @@ const _hoisted_3$t = {
|
|
|
7389
7389
|
const _hoisted_4$s = ["data-r", "data-c", "tabindex", "onPointerenter", "onFocus"];
|
|
7390
7390
|
const _hoisted_5$m = { class: "tao-sr-only" };
|
|
7391
7391
|
const _hoisted_6$h = { class: "tao-heatmap__tip-where" };
|
|
7392
|
-
const _hoisted_7$
|
|
7392
|
+
const _hoisted_7$d = { class: "tao-heatmap__tip-value" };
|
|
7393
7393
|
const _hoisted_8$9 = {
|
|
7394
7394
|
key: 1,
|
|
7395
7395
|
class: "tao-heatmap__legend",
|
|
@@ -7607,7 +7607,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
7607
7607
|
}, [
|
|
7608
7608
|
renderSlot(_ctx.$slots, "tip", normalizeProps(guardReactiveProps(tip.value)), () => [
|
|
7609
7609
|
createElementVNode("span", _hoisted_6$h, toDisplayString(tip.value.row) + ", " + toDisplayString(tip.value.col), 1),
|
|
7610
|
-
createElementVNode("strong", _hoisted_7$
|
|
7610
|
+
createElementVNode("strong", _hoisted_7$d, toDisplayString(tip.value.text), 1)
|
|
7611
7611
|
], true)
|
|
7612
7612
|
], 6)) : createCommentVNode("", true),
|
|
7613
7613
|
createElementVNode("div", {
|
|
@@ -7652,7 +7652,7 @@ const _hoisted_6$g = {
|
|
|
7652
7652
|
class: "tao-nav__icon",
|
|
7653
7653
|
"aria-hidden": "true"
|
|
7654
7654
|
};
|
|
7655
|
-
const _hoisted_7$
|
|
7655
|
+
const _hoisted_7$c = { class: "tao-nav__label" };
|
|
7656
7656
|
const _hoisted_8$8 = ["aria-hidden"];
|
|
7657
7657
|
const _hoisted_9$7 = {
|
|
7658
7658
|
key: 0,
|
|
@@ -7766,7 +7766,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
7766
7766
|
size: 20
|
|
7767
7767
|
}, null, 8, ["name"])
|
|
7768
7768
|
])) : createCommentVNode("", true),
|
|
7769
|
-
createElementVNode("span", _hoisted_7$
|
|
7769
|
+
createElementVNode("span", _hoisted_7$c, [
|
|
7770
7770
|
renderSlot(_ctx.$slots, "label", {
|
|
7771
7771
|
item,
|
|
7772
7772
|
active: item.id === __props.modelValue
|
|
@@ -7887,7 +7887,7 @@ const _hoisted_6$f = {
|
|
|
7887
7887
|
class: "tao-tree__icon",
|
|
7888
7888
|
"aria-hidden": "true"
|
|
7889
7889
|
};
|
|
7890
|
-
const _hoisted_7$
|
|
7890
|
+
const _hoisted_7$b = { class: "tao-tree__label" };
|
|
7891
7891
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
7892
7892
|
...{ name: "TaoTree" },
|
|
7893
7893
|
__name: "TaoTree",
|
|
@@ -8176,7 +8176,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8176
8176
|
}, null, 8, ["name"])
|
|
8177
8177
|
], true)
|
|
8178
8178
|
])) : createCommentVNode("", true),
|
|
8179
|
-
createElementVNode("span", _hoisted_7$
|
|
8179
|
+
createElementVNode("span", _hoisted_7$b, [
|
|
8180
8180
|
renderSlot(_ctx.$slots, "label", mergeProps({ ref_for: true }, slotProps(row)), () => [
|
|
8181
8181
|
createTextVNode(toDisplayString(row.node.label), 1)
|
|
8182
8182
|
], true)
|
|
@@ -8211,7 +8211,7 @@ const _hoisted_4$p = {
|
|
|
8211
8211
|
};
|
|
8212
8212
|
const _hoisted_5$j = { class: "tao-checklist__text" };
|
|
8213
8213
|
const _hoisted_6$e = { class: "tao-checklist__label" };
|
|
8214
|
-
const _hoisted_7$
|
|
8214
|
+
const _hoisted_7$a = {
|
|
8215
8215
|
key: 0,
|
|
8216
8216
|
class: "tao-checklist__description"
|
|
8217
8217
|
};
|
|
@@ -8315,7 +8315,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8315
8315
|
checked: checked2.value.has(item.value)
|
|
8316
8316
|
}, () => [
|
|
8317
8317
|
createElementVNode("span", _hoisted_6$e, toDisplayString(item.label), 1),
|
|
8318
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
8318
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_7$a, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
8319
8319
|
], true)
|
|
8320
8320
|
])
|
|
8321
8321
|
]),
|
|
@@ -8347,7 +8347,7 @@ const _hoisted_3$p = {
|
|
|
8347
8347
|
const _hoisted_4$o = { class: "tao-timeline__body" };
|
|
8348
8348
|
const _hoisted_5$i = ["datetime"];
|
|
8349
8349
|
const _hoisted_6$d = { class: "tao-timeline__title" };
|
|
8350
|
-
const _hoisted_7$
|
|
8350
|
+
const _hoisted_7$9 = {
|
|
8351
8351
|
key: 1,
|
|
8352
8352
|
class: "tao-timeline__description"
|
|
8353
8353
|
};
|
|
@@ -8401,7 +8401,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
8401
8401
|
createTextVNode(toDisplayString(item.title), 1)
|
|
8402
8402
|
], true)
|
|
8403
8403
|
]),
|
|
8404
|
-
item.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
8404
|
+
item.description ? (openBlock(), createElementBlock("p", _hoisted_7$9, toDisplayString(item.description), 1)) : createCommentVNode("", true),
|
|
8405
8405
|
renderSlot(_ctx.$slots, "content", mergeProps({ ref_for: true }, slotProps(item, index)), void 0, true)
|
|
8406
8406
|
])
|
|
8407
8407
|
], 10, _hoisted_1$z);
|
|
@@ -9358,8 +9358,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9358
9358
|
};
|
|
9359
9359
|
}
|
|
9360
9360
|
});
|
|
9361
|
-
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
9362
|
-
const _hoisted_1$t = ["for"];
|
|
9361
|
+
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-61796a77"]]);
|
|
9362
|
+
const _hoisted_1$t = ["for", "title"];
|
|
9363
9363
|
const _hoisted_2$q = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
9364
9364
|
const _hoisted_3$m = { class: "tao-segmented-option__face" };
|
|
9365
9365
|
const _hoisted_4$l = {
|
|
@@ -9368,14 +9368,10 @@ const _hoisted_4$l = {
|
|
|
9368
9368
|
"aria-hidden": "true"
|
|
9369
9369
|
};
|
|
9370
9370
|
const _hoisted_5$g = {
|
|
9371
|
-
key: 1,
|
|
9372
|
-
class: "tao-segmented-option__label"
|
|
9373
|
-
};
|
|
9374
|
-
const _hoisted_6$c = {
|
|
9375
9371
|
key: 2,
|
|
9376
9372
|
class: "tao-segmented-option__sr"
|
|
9377
9373
|
};
|
|
9378
|
-
const
|
|
9374
|
+
const _hoisted_6$c = {
|
|
9379
9375
|
key: 3,
|
|
9380
9376
|
class: "tao-segmented-option__count"
|
|
9381
9377
|
};
|
|
@@ -9420,6 +9416,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9420
9416
|
}
|
|
9421
9417
|
return String(props.count);
|
|
9422
9418
|
});
|
|
9419
|
+
const labelRef = ref(null);
|
|
9420
|
+
const clippedTitle = ref(void 0);
|
|
9421
|
+
function syncTitle() {
|
|
9422
|
+
const el = labelRef.value;
|
|
9423
|
+
const cut = Boolean(el) && (el.scrollHeight > el.clientHeight + 1 || el.scrollWidth > el.clientWidth + 1);
|
|
9424
|
+
clippedTitle.value = cut ? (el.textContent ?? "").trim() || void 0 : void 0;
|
|
9425
|
+
}
|
|
9423
9426
|
function onChange() {
|
|
9424
9427
|
if (isDisabled.value) {
|
|
9425
9428
|
return;
|
|
@@ -9438,7 +9441,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9438
9441
|
"tao-segmented-option--disabled": props.disabled,
|
|
9439
9442
|
"tao-segmented-option--icon-only": isIconOnly.value
|
|
9440
9443
|
}]),
|
|
9441
|
-
for: unref(localId)
|
|
9444
|
+
for: unref(localId),
|
|
9445
|
+
title: clippedTitle.value,
|
|
9446
|
+
onMouseenter: syncTitle
|
|
9442
9447
|
}, [
|
|
9443
9448
|
createElementVNode("input", {
|
|
9444
9449
|
id: unref(localId),
|
|
@@ -9457,18 +9462,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9457
9462
|
createVNode(TaoIcon, { name: __props.icon }, null, 8, ["name"])
|
|
9458
9463
|
], true)
|
|
9459
9464
|
])) : createCommentVNode("", true),
|
|
9460
|
-
hasLabel.value ? (openBlock(), createElementBlock("span",
|
|
9465
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", {
|
|
9466
|
+
key: 1,
|
|
9467
|
+
ref_key: "labelRef",
|
|
9468
|
+
ref: labelRef,
|
|
9469
|
+
class: "tao-segmented-option__label"
|
|
9470
|
+
}, [
|
|
9461
9471
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
9462
9472
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
9463
9473
|
], true)
|
|
9464
|
-
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span",
|
|
9465
|
-
countLabel.value ? (openBlock(), createElementBlock("span",
|
|
9474
|
+
], 512)) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_5$g, toDisplayString(__props.ariaLabel), 1)) : createCommentVNode("", true),
|
|
9475
|
+
countLabel.value ? (openBlock(), createElementBlock("span", _hoisted_6$c, toDisplayString(countLabel.value), 1)) : createCommentVNode("", true)
|
|
9466
9476
|
])
|
|
9467
|
-
],
|
|
9477
|
+
], 42, _hoisted_1$t);
|
|
9468
9478
|
};
|
|
9469
9479
|
}
|
|
9470
9480
|
});
|
|
9471
|
-
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
9481
|
+
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-cc110f40"]]);
|
|
9472
9482
|
const _hoisted_1$s = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
|
|
9473
9483
|
const _hoisted_2$p = { class: "tao-color-picker__strips" };
|
|
9474
9484
|
const _hoisted_3$l = { class: "tao-color-picker__row tao-size-small" };
|