@1337exp/taoui 5.26.0 → 5.27.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 +11 -0
- package/README.md +6 -0
- package/README.ru.md +6 -0
- package/dist/index.d.ts +107 -22
- package/dist/index.js +164 -94
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +4 -0
- package/skills/taoui/references/components.md +2 -0
- package/src/styles/base.css +26 -8
- package/src/styles/tokens/primitives.css +10 -0
package/dist/index.js
CHANGED
|
@@ -159,7 +159,7 @@ const localeEn = {
|
|
|
159
159
|
pinCode: { successText: "The code is correct", errorText: "Wrong code", cellLabel: "Character {n} of {count}" },
|
|
160
160
|
avatar: {
|
|
161
161
|
fallbackLabel: "Avatar",
|
|
162
|
-
notificationsLabel: "{count} notifications",
|
|
162
|
+
notificationsLabel: { one: "{count} notification", other: "{count} notifications" },
|
|
163
163
|
dotLabels: {
|
|
164
164
|
success: "online",
|
|
165
165
|
danger: "busy",
|
|
@@ -228,8 +228,8 @@ const localeEn = {
|
|
|
228
228
|
prevLabel: "Previous",
|
|
229
229
|
nextLabel: "Next",
|
|
230
230
|
pageLabel: "Page {page}",
|
|
231
|
-
jumpPrevLabel: "Back {n} pages",
|
|
232
|
-
jumpNextLabel: "Forward {n} pages",
|
|
231
|
+
jumpPrevLabel: { one: "Back {n} page", other: "Back {n} pages" },
|
|
232
|
+
jumpNextLabel: { one: "Forward {n} page", other: "Forward {n} pages" },
|
|
233
233
|
goToText: "Go to",
|
|
234
234
|
goToLabel: "Go to page, 1 to {count}",
|
|
235
235
|
perPageText: "Per page",
|
|
@@ -253,7 +253,9 @@ const localeEn = {
|
|
|
253
253
|
modeLabel: "Input mode",
|
|
254
254
|
swatchesLabel: "Swatches",
|
|
255
255
|
eyedropperLabel: "Eyedropper",
|
|
256
|
-
chooseLabel: "Choose color"
|
|
256
|
+
chooseLabel: "Choose color",
|
|
257
|
+
placeholder: "Not set",
|
|
258
|
+
clearText: "Clear"
|
|
257
259
|
},
|
|
258
260
|
scrubber: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
|
|
259
261
|
toast: { closeLabel: "Close notification" }
|
|
@@ -390,7 +392,7 @@ const localeRu = {
|
|
|
390
392
|
pinCode: { successText: "Код верный", errorText: "Неверный код", cellLabel: "Символ {n} из {count}" },
|
|
391
393
|
avatar: {
|
|
392
394
|
fallbackLabel: "Аватар",
|
|
393
|
-
notificationsLabel: "{count} уведомлений",
|
|
395
|
+
notificationsLabel: { one: "{count} уведомление", few: "{count} уведомления", many: "{count} уведомлений", other: "{count} уведомления" },
|
|
394
396
|
dotLabels: {
|
|
395
397
|
success: "в сети",
|
|
396
398
|
danger: "занят",
|
|
@@ -459,8 +461,8 @@ const localeRu = {
|
|
|
459
461
|
prevLabel: "Назад",
|
|
460
462
|
nextLabel: "Вперёд",
|
|
461
463
|
pageLabel: "Страница {page}",
|
|
462
|
-
jumpPrevLabel: "Назад на {n} страниц",
|
|
463
|
-
jumpNextLabel: "Вперёд на {n} страниц",
|
|
464
|
+
jumpPrevLabel: { one: "Назад на {n} страницу", few: "Назад на {n} страницы", many: "Назад на {n} страниц", other: "Назад на {n} страницы" },
|
|
465
|
+
jumpNextLabel: { one: "Вперёд на {n} страницу", few: "Вперёд на {n} страницы", many: "Вперёд на {n} страниц", other: "Вперёд на {n} страницы" },
|
|
464
466
|
goToText: "Перейти",
|
|
465
467
|
goToLabel: "Перейти на страницу, от 1 до {count}",
|
|
466
468
|
perPageText: "На странице",
|
|
@@ -484,11 +486,37 @@ const localeRu = {
|
|
|
484
486
|
modeLabel: "Способ ввода",
|
|
485
487
|
swatchesLabel: "Образцы",
|
|
486
488
|
eyedropperLabel: "Пипетка",
|
|
487
|
-
chooseLabel: "Выбрать цвет"
|
|
489
|
+
chooseLabel: "Выбрать цвет",
|
|
490
|
+
placeholder: "Не задан",
|
|
491
|
+
clearText: "Очистить"
|
|
488
492
|
},
|
|
489
493
|
scrubber: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
|
|
490
494
|
toast: { closeLabel: "Закрыть уведомление" }
|
|
491
495
|
};
|
|
496
|
+
const language = (tag) => tag.toLowerCase().split(/[-_]/)[0] ?? "";
|
|
497
|
+
function matchTaoLanguage(requested, supported, fallback = supported[0] ?? "") {
|
|
498
|
+
for (const wish of requested) {
|
|
499
|
+
const found = supported.find((tag) => tag.toLowerCase() === wish.toLowerCase()) ?? supported.find((tag) => language(tag) === language(wish));
|
|
500
|
+
if (found) {
|
|
501
|
+
return found;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return fallback;
|
|
505
|
+
}
|
|
506
|
+
function parseAcceptLanguage(header) {
|
|
507
|
+
if (!header) {
|
|
508
|
+
return [];
|
|
509
|
+
}
|
|
510
|
+
return header.split(",").map((part, index) => {
|
|
511
|
+
const [tag = "", ...params] = part.trim().split(";");
|
|
512
|
+
const q = params.map((p) => /^\s*q\s*=\s*([\d.]+)\s*$/.exec(p)?.[1]).find((v) => v !== void 0);
|
|
513
|
+
return { tag: tag.trim(), q: q === void 0 ? 1 : Number(q), index };
|
|
514
|
+
}).filter((entry) => entry.tag && entry.tag !== "*" && entry.q > 0).sort((a, b) => b.q - a.q || a.index - b.index).map((entry) => entry.tag);
|
|
515
|
+
}
|
|
516
|
+
function detectTaoLanguage(supported, options = {}) {
|
|
517
|
+
const browser = typeof navigator !== "undefined" ? [...navigator.languages?.length ? navigator.languages : [navigator.language]] : [];
|
|
518
|
+
return matchTaoLanguage(options.requested ?? browser.filter(Boolean), supported, options.fallback);
|
|
519
|
+
}
|
|
492
520
|
const current = shallowRef(localeEn);
|
|
493
521
|
const localeKey = Symbol("taoLocale");
|
|
494
522
|
function taoLocale() {
|
|
@@ -538,8 +566,20 @@ function useLocaleText(props, section) {
|
|
|
538
566
|
return out;
|
|
539
567
|
});
|
|
540
568
|
}
|
|
541
|
-
function formatText(template, values) {
|
|
542
|
-
|
|
569
|
+
function formatText(template, values, code) {
|
|
570
|
+
const text = typeof template === "string" ? template : pluralForm(template, Number(values.count ?? values.n), code ?? current.value.code);
|
|
571
|
+
return text.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
|
|
572
|
+
}
|
|
573
|
+
function pluralForm(forms, n, code) {
|
|
574
|
+
if (!Number.isFinite(n)) {
|
|
575
|
+
return forms.other;
|
|
576
|
+
}
|
|
577
|
+
let category = "other";
|
|
578
|
+
try {
|
|
579
|
+
category = new Intl.PluralRules(code).select(n);
|
|
580
|
+
} catch {
|
|
581
|
+
}
|
|
582
|
+
return forms[category] ?? forms.other;
|
|
543
583
|
}
|
|
544
584
|
const _hoisted_1$17 = ["role", "aria-hidden"];
|
|
545
585
|
const _hoisted_2$Z = {
|
|
@@ -547,7 +587,7 @@ const _hoisted_2$Z = {
|
|
|
547
587
|
class: "tao-loader__ellipsis",
|
|
548
588
|
"aria-hidden": "true"
|
|
549
589
|
};
|
|
550
|
-
const _hoisted_3$
|
|
590
|
+
const _hoisted_3$Q = {
|
|
551
591
|
key: 1,
|
|
552
592
|
class: "tao-loader__ring",
|
|
553
593
|
"aria-hidden": "true"
|
|
@@ -609,7 +649,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
609
649
|
createElementVNode("div", null, null, -1),
|
|
610
650
|
createElementVNode("div", null, null, -1),
|
|
611
651
|
createElementVNode("div", null, null, -1)
|
|
612
|
-
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
652
|
+
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$Q)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$G, [..._cache[1] || (_cache[1] = [
|
|
613
653
|
createStaticVNode('<span class="tao-loader__axis" data-v-03f29efb><i class="tao-loader__swap-left" data-v-03f29efb></i><i class="tao-loader__swap-right" data-v-03f29efb></i><i class="tao-loader__swap-hollow" data-v-03f29efb></i></span><span class="tao-loader__axis tao-loader__axis--cross" data-v-03f29efb><i class="tao-loader__swap-left" data-v-03f29efb></i><i class="tao-loader__swap-right" data-v-03f29efb></i><i class="tao-loader__swap-hollow" data-v-03f29efb></i></span>', 2)
|
|
614
654
|
])])) : (openBlock(), createElementBlock("span", _hoisted_5$w)),
|
|
615
655
|
!__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$q, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
|
|
@@ -623,7 +663,7 @@ const _hoisted_2$Y = {
|
|
|
623
663
|
key: 2,
|
|
624
664
|
class: "tao-button__content"
|
|
625
665
|
};
|
|
626
|
-
const _hoisted_3$
|
|
666
|
+
const _hoisted_3$P = {
|
|
627
667
|
key: 4,
|
|
628
668
|
class: "tao-button__shortcut",
|
|
629
669
|
"aria-hidden": "true"
|
|
@@ -710,7 +750,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
710
750
|
class: "tao-button__icon",
|
|
711
751
|
name: __props.iconEnd
|
|
712
752
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
713
|
-
__props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_3$
|
|
753
|
+
__props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_3$P, toDisplayString(__props.shortcut), 1)) : createCommentVNode("", true)
|
|
714
754
|
], 14, _hoisted_1$16);
|
|
715
755
|
};
|
|
716
756
|
}
|
|
@@ -794,7 +834,7 @@ const _hoisted_1$15 = {
|
|
|
794
834
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
795
835
|
};
|
|
796
836
|
const _hoisted_2$X = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
797
|
-
const _hoisted_3$
|
|
837
|
+
const _hoisted_3$O = {
|
|
798
838
|
key: 1,
|
|
799
839
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
800
840
|
};
|
|
@@ -860,7 +900,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
860
900
|
onBlur: handleBlur,
|
|
861
901
|
onFocus: handleFocus
|
|
862
902
|
}), null, 16, _hoisted_2$X),
|
|
863
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
903
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$O, [
|
|
864
904
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
865
905
|
])) : createCommentVNode("", true)
|
|
866
906
|
], 2)
|
|
@@ -874,7 +914,7 @@ const _hoisted_1$14 = {
|
|
|
874
914
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
875
915
|
};
|
|
876
916
|
const _hoisted_2$W = { class: "tao-input-group__field" };
|
|
877
|
-
const _hoisted_3$
|
|
917
|
+
const _hoisted_3$N = {
|
|
878
918
|
key: 1,
|
|
879
919
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
880
920
|
};
|
|
@@ -909,7 +949,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
909
949
|
createElementVNode("div", _hoisted_2$W, [
|
|
910
950
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
911
951
|
]),
|
|
912
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
952
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$N, [
|
|
913
953
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
914
954
|
])) : createCommentVNode("", true)
|
|
915
955
|
], 34);
|
|
@@ -922,7 +962,7 @@ const _hoisted_2$V = {
|
|
|
922
962
|
key: 0,
|
|
923
963
|
class: "tao-input-number__steppers"
|
|
924
964
|
};
|
|
925
|
-
const _hoisted_3$
|
|
965
|
+
const _hoisted_3$M = ["aria-label", "disabled"];
|
|
926
966
|
const _hoisted_4$F = { "aria-hidden": "true" };
|
|
927
967
|
const _hoisted_5$v = ["aria-label", "disabled"];
|
|
928
968
|
const _hoisted_6$p = { "aria-hidden": "true" };
|
|
@@ -1100,7 +1140,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1100
1140
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1101
1141
|
], true)
|
|
1102
1142
|
])
|
|
1103
|
-
], 8, _hoisted_3$
|
|
1143
|
+
], 8, _hoisted_3$M),
|
|
1104
1144
|
createElementVNode("button", {
|
|
1105
1145
|
type: "button",
|
|
1106
1146
|
class: "tao-input-number__step",
|
|
@@ -1123,7 +1163,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1123
1163
|
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-dc5bb759"]]);
|
|
1124
1164
|
const _hoisted_1$12 = ["aria-label", "disabled"];
|
|
1125
1165
|
const _hoisted_2$U = { "aria-hidden": "true" };
|
|
1126
|
-
const _hoisted_3$
|
|
1166
|
+
const _hoisted_3$L = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
1127
1167
|
const _hoisted_4$E = ["aria-label", "disabled"];
|
|
1128
1168
|
const _hoisted_5$u = { "aria-hidden": "true" };
|
|
1129
1169
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
@@ -1291,7 +1331,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1291
1331
|
onFocus,
|
|
1292
1332
|
onBlur,
|
|
1293
1333
|
onKeydown: onKeydown2
|
|
1294
|
-
}), null, 16, _hoisted_3$
|
|
1334
|
+
}), null, 16, _hoisted_3$L),
|
|
1295
1335
|
createElementVNode("button", {
|
|
1296
1336
|
type: "button",
|
|
1297
1337
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1318,7 +1358,7 @@ const _hoisted_2$T = {
|
|
|
1318
1358
|
key: 0,
|
|
1319
1359
|
class: "tao-card__overlay"
|
|
1320
1360
|
};
|
|
1321
|
-
const _hoisted_3$
|
|
1361
|
+
const _hoisted_3$K = {
|
|
1322
1362
|
key: 1,
|
|
1323
1363
|
class: "tao-card__overlay"
|
|
1324
1364
|
};
|
|
@@ -1409,7 +1449,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1409
1449
|
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$T, [
|
|
1410
1450
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1411
1451
|
])) : createCommentVNode("", true)
|
|
1412
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1452
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$K, [
|
|
1413
1453
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1414
1454
|
])) : createCommentVNode("", true),
|
|
1415
1455
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1581,7 +1621,7 @@ const _hoisted_2$S = {
|
|
|
1581
1621
|
key: 0,
|
|
1582
1622
|
class: "tao-modal__header"
|
|
1583
1623
|
};
|
|
1584
|
-
const _hoisted_3$
|
|
1624
|
+
const _hoisted_3$J = ["id"];
|
|
1585
1625
|
const _hoisted_4$C = { key: 1 };
|
|
1586
1626
|
const _hoisted_5$s = ["aria-label"];
|
|
1587
1627
|
const _hoisted_6$n = { "aria-hidden": "true" };
|
|
@@ -1678,7 +1718,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1678
1718
|
key: 0,
|
|
1679
1719
|
id: unref(titleId),
|
|
1680
1720
|
class: "tao-modal__title"
|
|
1681
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1721
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$J)) : (openBlock(), createElementBlock("span", _hoisted_4$C))
|
|
1682
1722
|
], true),
|
|
1683
1723
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1684
1724
|
key: 0,
|
|
@@ -2337,7 +2377,7 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
|
|
|
2337
2377
|
}
|
|
2338
2378
|
const _hoisted_1$_ = ["aria-disabled"];
|
|
2339
2379
|
const _hoisted_2$Q = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
|
|
2340
|
-
const _hoisted_3$
|
|
2380
|
+
const _hoisted_3$I = {
|
|
2341
2381
|
key: 2,
|
|
2342
2382
|
class: "tao-slider__value"
|
|
2343
2383
|
};
|
|
@@ -2639,7 +2679,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2639
2679
|
], 6)) : createCommentVNode("", true)
|
|
2640
2680
|
], 64);
|
|
2641
2681
|
}), 128)),
|
|
2642
|
-
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2682
|
+
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
|
|
2643
2683
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2644
2684
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2645
2685
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
@@ -2745,7 +2785,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2745
2785
|
});
|
|
2746
2786
|
const _hoisted_1$Z = { class: "tao-scrubber__controls" };
|
|
2747
2787
|
const _hoisted_2$P = { class: "tao-scrubber__track" };
|
|
2748
|
-
const _hoisted_3$
|
|
2788
|
+
const _hoisted_3$H = {
|
|
2749
2789
|
key: 0,
|
|
2750
2790
|
class: "tao-scrubber__time"
|
|
2751
2791
|
};
|
|
@@ -2843,7 +2883,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2843
2883
|
} : void 0
|
|
2844
2884
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
2845
2885
|
]),
|
|
2846
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2886
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$H, [
|
|
2847
2887
|
renderSlot(_ctx.$slots, "time", {
|
|
2848
2888
|
time: __props.modelValue,
|
|
2849
2889
|
length: __props.length,
|
|
@@ -3186,7 +3226,7 @@ const _hoisted_2$O = {
|
|
|
3186
3226
|
key: 0,
|
|
3187
3227
|
class: "tao-spoiler__title"
|
|
3188
3228
|
};
|
|
3189
|
-
const _hoisted_3$
|
|
3229
|
+
const _hoisted_3$G = ["id"];
|
|
3190
3230
|
const _hoisted_4$A = { class: "tao-spoiler__content-inner" };
|
|
3191
3231
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3192
3232
|
...{ name: "TaoSpoiler" },
|
|
@@ -3282,7 +3322,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3282
3322
|
createElementVNode("div", _hoisted_4$A, [
|
|
3283
3323
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3284
3324
|
])
|
|
3285
|
-
], 8, _hoisted_3$
|
|
3325
|
+
], 8, _hoisted_3$G)) : createCommentVNode("", true)
|
|
3286
3326
|
]),
|
|
3287
3327
|
_: 3
|
|
3288
3328
|
})
|
|
@@ -3555,7 +3595,7 @@ const _hoisted_2$N = {
|
|
|
3555
3595
|
class: "tao-tour__dim",
|
|
3556
3596
|
"aria-hidden": "true"
|
|
3557
3597
|
};
|
|
3558
|
-
const _hoisted_3$
|
|
3598
|
+
const _hoisted_3$F = ["aria-labelledby", "aria-describedby"];
|
|
3559
3599
|
const _hoisted_4$z = ["id"];
|
|
3560
3600
|
const _hoisted_5$q = ["id"];
|
|
3561
3601
|
const _hoisted_6$l = { class: "tao-tour__footer" };
|
|
@@ -3820,7 +3860,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3820
3860
|
})
|
|
3821
3861
|
])
|
|
3822
3862
|
])
|
|
3823
|
-
], 46, _hoisted_3$
|
|
3863
|
+
], 46, _hoisted_3$F)
|
|
3824
3864
|
])) : createCommentVNode("", true)
|
|
3825
3865
|
]);
|
|
3826
3866
|
};
|
|
@@ -3990,7 +4030,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
3990
4030
|
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-d42e5e67"]]);
|
|
3991
4031
|
const _hoisted_1$S = { class: "tao-split__pane tao-split__pane--start" };
|
|
3992
4032
|
const _hoisted_2$M = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
3993
|
-
const _hoisted_3$
|
|
4033
|
+
const _hoisted_3$E = { class: "tao-split__pane tao-split__pane--end" };
|
|
3994
4034
|
const _hoisted_4$y = {
|
|
3995
4035
|
key: 0,
|
|
3996
4036
|
class: "tao-split__shield"
|
|
@@ -4316,7 +4356,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4316
4356
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4317
4357
|
}, ["prevent"]))
|
|
4318
4358
|
}, null, 40, _hoisted_2$M),
|
|
4319
|
-
createElementVNode("div", _hoisted_3$
|
|
4359
|
+
createElementVNode("div", _hoisted_3$E, [
|
|
4320
4360
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4321
4361
|
]),
|
|
4322
4362
|
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$y)) : createCommentVNode("", true)
|
|
@@ -4327,7 +4367,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4327
4367
|
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-316b0d45"]]);
|
|
4328
4368
|
const _hoisted_1$R = { class: "tao-image" };
|
|
4329
4369
|
const _hoisted_2$L = ["src", "alt", "loading"];
|
|
4330
|
-
const _hoisted_3$
|
|
4370
|
+
const _hoisted_3$D = { class: "tao-image__placeholder" };
|
|
4331
4371
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
4332
4372
|
...{ name: "TaoImage" },
|
|
4333
4373
|
__name: "TaoImage",
|
|
@@ -4372,7 +4412,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4372
4412
|
onError: handleError
|
|
4373
4413
|
}, null, 42, _hoisted_2$L)) : createCommentVNode("", true),
|
|
4374
4414
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4375
|
-
createElementVNode("div", _hoisted_3$
|
|
4415
|
+
createElementVNode("div", _hoisted_3$D, toDisplayString(__props.placeholderText), 1)
|
|
4376
4416
|
], true, 1) : createCommentVNode("", true)
|
|
4377
4417
|
]);
|
|
4378
4418
|
};
|
|
@@ -4381,7 +4421,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4381
4421
|
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-61f47c52"]]);
|
|
4382
4422
|
const _hoisted_1$Q = ["for"];
|
|
4383
4423
|
const _hoisted_2$K = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
4384
|
-
const _hoisted_3$
|
|
4424
|
+
const _hoisted_3$C = {
|
|
4385
4425
|
key: 0,
|
|
4386
4426
|
class: "tao-checkbox__label"
|
|
4387
4427
|
};
|
|
@@ -4462,7 +4502,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4462
4502
|
onChange: onInputChange
|
|
4463
4503
|
}), null, 16, _hoisted_2$K),
|
|
4464
4504
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
4465
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4505
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$C, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$x, [
|
|
4466
4506
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4467
4507
|
])),
|
|
4468
4508
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
@@ -4476,7 +4516,7 @@ const _hoisted_1$P = {
|
|
|
4476
4516
|
class: "tao-tag__prefix"
|
|
4477
4517
|
};
|
|
4478
4518
|
const _hoisted_2$J = { class: "tao-tag__text" };
|
|
4479
|
-
const _hoisted_3$
|
|
4519
|
+
const _hoisted_3$B = ["aria-label"];
|
|
4480
4520
|
const _hoisted_4$w = { "aria-hidden": "true" };
|
|
4481
4521
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
4482
4522
|
...{ name: "TaoTag" },
|
|
@@ -4538,7 +4578,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
4538
4578
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4539
4579
|
], true)
|
|
4540
4580
|
])
|
|
4541
|
-
], 8, _hoisted_3$
|
|
4581
|
+
], 8, _hoisted_3$B)) : createCommentVNode("", true)
|
|
4542
4582
|
], 6);
|
|
4543
4583
|
};
|
|
4544
4584
|
}
|
|
@@ -4549,7 +4589,7 @@ const _hoisted_2$I = {
|
|
|
4549
4589
|
key: 1,
|
|
4550
4590
|
class: "tao-divider__text"
|
|
4551
4591
|
};
|
|
4552
|
-
const _hoisted_3$
|
|
4592
|
+
const _hoisted_3$A = {
|
|
4553
4593
|
key: 2,
|
|
4554
4594
|
class: "tao-divider__line tao-divider__line--end"
|
|
4555
4595
|
};
|
|
@@ -4589,7 +4629,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4589
4629
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
4590
4630
|
], true)
|
|
4591
4631
|
])) : createCommentVNode("", true),
|
|
4592
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4632
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$A)) : createCommentVNode("", true)
|
|
4593
4633
|
], 10, _hoisted_1$O);
|
|
4594
4634
|
};
|
|
4595
4635
|
}
|
|
@@ -4822,7 +4862,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4822
4862
|
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9aaf7131"]]);
|
|
4823
4863
|
const _hoisted_1$L = ["aria-label"];
|
|
4824
4864
|
const _hoisted_2$F = { class: "tao-scroll-top__content" };
|
|
4825
|
-
const _hoisted_3$
|
|
4865
|
+
const _hoisted_3$z = {
|
|
4826
4866
|
key: 0,
|
|
4827
4867
|
class: "tao-scroll-top__text",
|
|
4828
4868
|
"aria-hidden": "true"
|
|
@@ -4923,7 +4963,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
4923
4963
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
4924
4964
|
}), [
|
|
4925
4965
|
createElementVNode("span", _hoisted_2$F, [
|
|
4926
|
-
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4966
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
4927
4967
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4928
4968
|
createVNode(TaoIcon, {
|
|
4929
4969
|
class: "tao-scroll-top__icon",
|
|
@@ -4951,7 +4991,7 @@ const _hoisted_2$E = {
|
|
|
4951
4991
|
key: 0,
|
|
4952
4992
|
class: "tao-progress__side"
|
|
4953
4993
|
};
|
|
4954
|
-
const _hoisted_3$
|
|
4994
|
+
const _hoisted_3$y = { class: "tao-progress__main" };
|
|
4955
4995
|
const _hoisted_4$v = {
|
|
4956
4996
|
key: 0,
|
|
4957
4997
|
class: "tao-progress__percentage"
|
|
@@ -5001,7 +5041,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5001
5041
|
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
5002
5042
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
5003
5043
|
])) : createCommentVNode("", true),
|
|
5004
|
-
createElementVNode("div", _hoisted_3$
|
|
5044
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
5005
5045
|
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$v, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
5006
5046
|
createElementVNode("div", {
|
|
5007
5047
|
class: "tao-progress__track",
|
|
@@ -5118,7 +5158,7 @@ function partitionByAccept(files, accept) {
|
|
|
5118
5158
|
}
|
|
5119
5159
|
const _hoisted_1$J = { class: "tao-file-drop__row" };
|
|
5120
5160
|
const _hoisted_2$D = ["aria-label"];
|
|
5121
|
-
const _hoisted_3$
|
|
5161
|
+
const _hoisted_3$x = { "aria-hidden": "true" };
|
|
5122
5162
|
const _hoisted_4$u = ["accept", "multiple"];
|
|
5123
5163
|
const _hoisted_5$o = {
|
|
5124
5164
|
key: 0,
|
|
@@ -5254,7 +5294,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5254
5294
|
"aria-label": unref(l10n).clearLabel,
|
|
5255
5295
|
onClick: requestClear
|
|
5256
5296
|
}, [
|
|
5257
|
-
createElementVNode("span", _hoisted_3$
|
|
5297
|
+
createElementVNode("span", _hoisted_3$x, [
|
|
5258
5298
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
5259
5299
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
5260
5300
|
], true)
|
|
@@ -5412,7 +5452,7 @@ const _hoisted_2$C = {
|
|
|
5412
5452
|
class: "tao-menu__separator",
|
|
5413
5453
|
role: "separator"
|
|
5414
5454
|
};
|
|
5415
|
-
const _hoisted_3$
|
|
5455
|
+
const _hoisted_3$w = {
|
|
5416
5456
|
key: 1,
|
|
5417
5457
|
class: "tao-menu__label",
|
|
5418
5458
|
role: "presentation"
|
|
@@ -5611,7 +5651,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5611
5651
|
return openBlock(), createElementBlock(Fragment, {
|
|
5612
5652
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
5613
5653
|
}, [
|
|
5614
|
-
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$C)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5654
|
+
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$C)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5615
5655
|
createElementVNode("div", {
|
|
5616
5656
|
id: itemId(index),
|
|
5617
5657
|
ref_for: true,
|
|
@@ -5671,7 +5711,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5671
5711
|
});
|
|
5672
5712
|
const _hoisted_1$H = { class: "tao-dropdown-menu" };
|
|
5673
5713
|
const _hoisted_2$B = ["tabindex", "aria-expanded", "aria-label"];
|
|
5674
|
-
const _hoisted_3$
|
|
5714
|
+
const _hoisted_3$v = {
|
|
5675
5715
|
key: 1,
|
|
5676
5716
|
"aria-hidden": "true"
|
|
5677
5717
|
};
|
|
@@ -5722,7 +5762,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5722
5762
|
onClick: toggleMenu,
|
|
5723
5763
|
onKeydown: onTriggerKeydown
|
|
5724
5764
|
}, [
|
|
5725
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5765
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
5726
5766
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5727
5767
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
5728
5768
|
], true)
|
|
@@ -6353,7 +6393,7 @@ const _hoisted_2$z = {
|
|
|
6353
6393
|
preserveAspectRatio: "none",
|
|
6354
6394
|
"aria-hidden": "true"
|
|
6355
6395
|
};
|
|
6356
|
-
const _hoisted_3$
|
|
6396
|
+
const _hoisted_3$u = ["d"];
|
|
6357
6397
|
const _hoisted_4$s = ["d"];
|
|
6358
6398
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
6359
6399
|
...{ name: "TaoSparkline" },
|
|
@@ -6392,7 +6432,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6392
6432
|
key: 0,
|
|
6393
6433
|
class: "tao-sparkline__area",
|
|
6394
6434
|
d: fill.value
|
|
6395
|
-
}, null, 8, _hoisted_3$
|
|
6435
|
+
}, null, 8, _hoisted_3$u)) : createCommentVNode("", true),
|
|
6396
6436
|
createElementVNode("path", {
|
|
6397
6437
|
class: "tao-sparkline__line",
|
|
6398
6438
|
d: line.value
|
|
@@ -6415,7 +6455,7 @@ const _hoisted_2$y = {
|
|
|
6415
6455
|
class: "tao-meter__head",
|
|
6416
6456
|
"aria-hidden": "true"
|
|
6417
6457
|
};
|
|
6418
|
-
const _hoisted_3$
|
|
6458
|
+
const _hoisted_3$t = { class: "tao-meter__label" };
|
|
6419
6459
|
const _hoisted_4$r = {
|
|
6420
6460
|
key: 0,
|
|
6421
6461
|
class: "tao-meter__value"
|
|
@@ -6456,7 +6496,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6456
6496
|
"aria-label": __props.label
|
|
6457
6497
|
}, [
|
|
6458
6498
|
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
6459
|
-
createElementVNode("span", _hoisted_3$
|
|
6499
|
+
createElementVNode("span", _hoisted_3$t, toDisplayString(__props.label), 1),
|
|
6460
6500
|
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
|
|
6461
6501
|
])) : createCommentVNode("", true),
|
|
6462
6502
|
createElementVNode("div", _hoisted_5$m, [
|
|
@@ -6472,7 +6512,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6472
6512
|
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-17e24a8e"]]);
|
|
6473
6513
|
const _hoisted_1$A = ["aria-label"];
|
|
6474
6514
|
const _hoisted_2$x = ["viewBox", "width", "height"];
|
|
6475
|
-
const _hoisted_3$
|
|
6515
|
+
const _hoisted_3$s = ["cx", "cy", "r", "stroke-width"];
|
|
6476
6516
|
const _hoisted_4$q = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
6477
6517
|
const _hoisted_5$l = {
|
|
6478
6518
|
key: 0,
|
|
@@ -6547,7 +6587,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
6547
6587
|
cy: centre.value,
|
|
6548
6588
|
r: radius.value,
|
|
6549
6589
|
"stroke-width": __props.thickness
|
|
6550
|
-
}, null, 8, _hoisted_3$
|
|
6590
|
+
}, null, 8, _hoisted_3$s),
|
|
6551
6591
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
6552
6592
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
6553
6593
|
key: arc.key,
|
|
@@ -6595,7 +6635,7 @@ const _hoisted_2$w = {
|
|
|
6595
6635
|
class: "tao-heatmap__row tao-heatmap__head",
|
|
6596
6636
|
role: "row"
|
|
6597
6637
|
};
|
|
6598
|
-
const _hoisted_3$
|
|
6638
|
+
const _hoisted_3$r = {
|
|
6599
6639
|
class: "tao-heatmap__name",
|
|
6600
6640
|
role: "rowheader"
|
|
6601
6641
|
};
|
|
@@ -6783,7 +6823,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
6783
6823
|
class: "tao-heatmap__row",
|
|
6784
6824
|
role: "row"
|
|
6785
6825
|
}, [
|
|
6786
|
-
createElementVNode("span", _hoisted_3$
|
|
6826
|
+
createElementVNode("span", _hoisted_3$r, toDisplayString(row), 1),
|
|
6787
6827
|
(openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
|
|
6788
6828
|
return openBlock(), createElementBlock("span", {
|
|
6789
6829
|
key: cell.key,
|
|
@@ -6854,7 +6894,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
6854
6894
|
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-496996ae"]]);
|
|
6855
6895
|
const _hoisted_1$y = { class: "tao-nav__shell" };
|
|
6856
6896
|
const _hoisted_2$v = ["aria-label"];
|
|
6857
|
-
const _hoisted_3$
|
|
6897
|
+
const _hoisted_3$q = { class: "tao-nav__column" };
|
|
6858
6898
|
const _hoisted_4$o = {
|
|
6859
6899
|
key: 0,
|
|
6860
6900
|
class: "tao-nav__action"
|
|
@@ -6952,7 +6992,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
6952
6992
|
class: normalizeClass(["tao-nav__panel", unref(surfaceClass)(__props.surface)]),
|
|
6953
6993
|
"aria-label": unref(l10n).ariaLabel
|
|
6954
6994
|
}, [
|
|
6955
|
-
createElementVNode("div", _hoisted_3$
|
|
6995
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
6956
6996
|
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
6957
6997
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
6958
6998
|
])) : createCommentVNode("", true),
|
|
@@ -7091,7 +7131,7 @@ function toggleCheck(node, checked2, children) {
|
|
|
7091
7131
|
}
|
|
7092
7132
|
const _hoisted_1$x = ["aria-label", "aria-multiselectable"];
|
|
7093
7133
|
const _hoisted_2$u = ["id", "tabindex", "aria-level", "aria-setsize", "aria-posinset", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled", "aria-busy", "onKeydown", "onClick", "onFocus"];
|
|
7094
|
-
const _hoisted_3$
|
|
7134
|
+
const _hoisted_3$p = ["onClick"];
|
|
7095
7135
|
const _hoisted_4$n = ["title"];
|
|
7096
7136
|
const _hoisted_5$i = ["onClick"];
|
|
7097
7137
|
const _hoisted_6$e = {
|
|
@@ -7374,7 +7414,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7374
7414
|
key: 1,
|
|
7375
7415
|
name: "tao-chevron-right"
|
|
7376
7416
|
})) : createCommentVNode("", true)
|
|
7377
|
-
], 10, _hoisted_3$
|
|
7417
|
+
], 10, _hoisted_3$p),
|
|
7378
7418
|
__props.checkable ? (openBlock(), createElementBlock("span", {
|
|
7379
7419
|
key: 0,
|
|
7380
7420
|
class: normalizeClass(["tao-tree__check", `tao-tree__check--${stateOf(row)}`]),
|
|
@@ -7415,7 +7455,7 @@ const _hoisted_2$t = {
|
|
|
7415
7455
|
key: 0,
|
|
7416
7456
|
class: "tao-checklist__legend"
|
|
7417
7457
|
};
|
|
7418
|
-
const _hoisted_3$
|
|
7458
|
+
const _hoisted_3$o = { key: 0 };
|
|
7419
7459
|
const _hoisted_4$m = {
|
|
7420
7460
|
key: 1,
|
|
7421
7461
|
class: "tao-checklist__counter",
|
|
@@ -7493,7 +7533,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7493
7533
|
"aria-labelledby": labelledBy.value
|
|
7494
7534
|
}, [
|
|
7495
7535
|
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$t, [
|
|
7496
|
-
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7536
|
+
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
7497
7537
|
__props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(unref(formatText)(unref(l10n).counterText, { checked: checkedCount.value, total: __props.items.length })), 1)) : createCommentVNode("", true)
|
|
7498
7538
|
])) : createCommentVNode("", true),
|
|
7499
7539
|
__props.selectAll ? (openBlock(), createBlock(TaoCheckbox, {
|
|
@@ -7552,7 +7592,7 @@ const _hoisted_2$s = {
|
|
|
7552
7592
|
class: "tao-timeline__rail",
|
|
7553
7593
|
"aria-hidden": "true"
|
|
7554
7594
|
};
|
|
7555
|
-
const _hoisted_3$
|
|
7595
|
+
const _hoisted_3$n = {
|
|
7556
7596
|
key: 0,
|
|
7557
7597
|
class: "tao-timeline__line"
|
|
7558
7598
|
};
|
|
@@ -7600,7 +7640,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
7600
7640
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
7601
7641
|
], true)
|
|
7602
7642
|
], 2),
|
|
7603
|
-
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7643
|
+
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$n)) : createCommentVNode("", true)
|
|
7604
7644
|
]),
|
|
7605
7645
|
createElementVNode("div", _hoisted_4$l, [
|
|
7606
7646
|
item.time ? (openBlock(), createElementBlock("time", {
|
|
@@ -7625,7 +7665,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
7625
7665
|
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-48847c47"]]);
|
|
7626
7666
|
const _hoisted_1$u = ["tabindex", "aria-hidden", "inert"];
|
|
7627
7667
|
const _hoisted_2$r = { class: "tao-marquee__item" };
|
|
7628
|
-
const _hoisted_3$
|
|
7668
|
+
const _hoisted_3$m = {
|
|
7629
7669
|
key: 0,
|
|
7630
7670
|
class: "tao-marquee__item",
|
|
7631
7671
|
"aria-hidden": "true",
|
|
@@ -7749,7 +7789,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
7749
7789
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7750
7790
|
], 64))
|
|
7751
7791
|
]),
|
|
7752
|
-
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7792
|
+
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$m, [
|
|
7753
7793
|
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7754
7794
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7755
7795
|
], 64))
|
|
@@ -7801,7 +7841,7 @@ const _hoisted_2$q = {
|
|
|
7801
7841
|
class: "tao-pin-code__separator",
|
|
7802
7842
|
"aria-hidden": "true"
|
|
7803
7843
|
};
|
|
7804
|
-
const _hoisted_3$
|
|
7844
|
+
const _hoisted_3$l = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
7805
7845
|
const _hoisted_4$k = {
|
|
7806
7846
|
key: 0,
|
|
7807
7847
|
class: "tao-pin-code__separator",
|
|
@@ -8065,7 +8105,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
8065
8105
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
8066
8106
|
onFocus: ($event) => onFocus(index),
|
|
8067
8107
|
onBlur
|
|
8068
|
-
}, null, 46, _hoisted_3$
|
|
8108
|
+
}, null, 46, _hoisted_3$l)
|
|
8069
8109
|
], 64);
|
|
8070
8110
|
}), 128)),
|
|
8071
8111
|
layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(layout.value.after), 1)) : createCommentVNode("", true),
|
|
@@ -8186,7 +8226,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
8186
8226
|
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-f0778b06"]]);
|
|
8187
8227
|
const _hoisted_1$r = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
8188
8228
|
const _hoisted_2$p = { class: "tao-select__value" };
|
|
8189
|
-
const _hoisted_3$
|
|
8229
|
+
const _hoisted_3$k = ["aria-activedescendant"];
|
|
8190
8230
|
const _hoisted_4$j = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
8191
8231
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
8192
8232
|
...{ name: "TaoSelect", inheritAttrs: false },
|
|
@@ -8381,7 +8421,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8381
8421
|
onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
|
|
8382
8422
|
}, toDisplayString(option.label), 43, _hoisted_4$j);
|
|
8383
8423
|
}), 128))
|
|
8384
|
-
], 40, _hoisted_3$
|
|
8424
|
+
], 40, _hoisted_3$k),
|
|
8385
8425
|
__props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
|
|
8386
8426
|
key: 0,
|
|
8387
8427
|
type: "button",
|
|
@@ -8539,7 +8579,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8539
8579
|
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-98154a39"]]);
|
|
8540
8580
|
const _hoisted_1$p = ["for"];
|
|
8541
8581
|
const _hoisted_2$n = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
8542
|
-
const _hoisted_3$
|
|
8582
|
+
const _hoisted_3$j = { class: "tao-segmented-option__face" };
|
|
8543
8583
|
const _hoisted_4$i = {
|
|
8544
8584
|
key: 0,
|
|
8545
8585
|
class: "tao-segmented-option__icon",
|
|
@@ -8628,7 +8668,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8628
8668
|
"aria-label": __props.ariaLabel,
|
|
8629
8669
|
onChange
|
|
8630
8670
|
}, null, 40, _hoisted_2$n),
|
|
8631
|
-
createElementVNode("span", _hoisted_3$
|
|
8671
|
+
createElementVNode("span", _hoisted_3$j, [
|
|
8632
8672
|
__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$i, [
|
|
8633
8673
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
8634
8674
|
createVNode(TaoIcon, { name: __props.icon }, null, 8, ["name"])
|
|
@@ -8648,7 +8688,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8648
8688
|
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-d2951a99"]]);
|
|
8649
8689
|
const _hoisted_1$o = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
|
|
8650
8690
|
const _hoisted_2$m = { class: "tao-color-picker__strips" };
|
|
8651
|
-
const _hoisted_3$
|
|
8691
|
+
const _hoisted_3$i = { class: "tao-color-picker__row" };
|
|
8652
8692
|
const _hoisted_4$h = { class: "tao-color-picker__preview" };
|
|
8653
8693
|
const _hoisted_5$d = {
|
|
8654
8694
|
key: 0,
|
|
@@ -8917,7 +8957,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8917
8957
|
]),
|
|
8918
8958
|
_: 1
|
|
8919
8959
|
}, 8, ["modelValue", "aria-label", "disabled"])) : createCommentVNode("", true),
|
|
8920
|
-
createElementVNode("div", _hoisted_3$
|
|
8960
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
8921
8961
|
createElementVNode("span", _hoisted_4$h, [
|
|
8922
8962
|
createElementVNode("span", {
|
|
8923
8963
|
style: normalizeStyle({ backgroundColor: hex.value })
|
|
@@ -8990,8 +9030,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8990
9030
|
});
|
|
8991
9031
|
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-54d56769"]]);
|
|
8992
9032
|
const _hoisted_1$n = ["disabled", "aria-label", "aria-expanded"];
|
|
8993
|
-
const _hoisted_2$l =
|
|
8994
|
-
const _hoisted_3$i = { class: "tao-color-input__text" };
|
|
9033
|
+
const _hoisted_2$l = ["disabled"];
|
|
8995
9034
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
8996
9035
|
...{ name: "TaoColorInput", inheritAttrs: false },
|
|
8997
9036
|
__name: "TaoColorInput",
|
|
@@ -9006,7 +9045,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9006
9045
|
error: { type: Boolean, default: false },
|
|
9007
9046
|
placement: { default: "bottom-start" },
|
|
9008
9047
|
size: {},
|
|
9009
|
-
chooseLabel: {}
|
|
9048
|
+
chooseLabel: {},
|
|
9049
|
+
placeholder: {},
|
|
9050
|
+
clearable: { type: Boolean, default: false },
|
|
9051
|
+
clearText: {}
|
|
9010
9052
|
},
|
|
9011
9053
|
emits: ["update:modelValue", "update:mode", "change"],
|
|
9012
9054
|
setup(__props, { emit: __emit }) {
|
|
@@ -9015,7 +9057,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9015
9057
|
const emit = __emit;
|
|
9016
9058
|
const l10n = useLocaleText(props, "colorPicker");
|
|
9017
9059
|
const shown = computed(() => normalizeHex(props.modelValue, props.alpha) ?? props.modelValue);
|
|
9018
|
-
const
|
|
9060
|
+
const empty = computed(() => props.modelValue === "");
|
|
9061
|
+
const text = computed(() => empty.value ? l10n.value.placeholder : shown.value);
|
|
9062
|
+
function clear() {
|
|
9063
|
+
emit("update:modelValue", "");
|
|
9064
|
+
emit("change", "");
|
|
9065
|
+
}
|
|
9066
|
+
function onKeydown2(event) {
|
|
9067
|
+
if ((event.key === "Backspace" || event.key === "Delete") && props.clearable && !empty.value && !props.disabled) {
|
|
9068
|
+
event.preventDefault();
|
|
9069
|
+
clear();
|
|
9070
|
+
}
|
|
9071
|
+
}
|
|
9072
|
+
const buttonLabel = (given) => `${typeof given === "string" && given ? given : l10n.value.chooseLabel}: ${text.value}`;
|
|
9019
9073
|
return (_ctx, _cache) => {
|
|
9020
9074
|
return openBlock(), createBlock(TaoPopover, mergeProps(unref(rootAttrs)(), {
|
|
9021
9075
|
placement: __props.placement,
|
|
@@ -9029,14 +9083,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9029
9083
|
disabled: __props.disabled,
|
|
9030
9084
|
"aria-label": buttonLabel(_ctx.$attrs["aria-label"]),
|
|
9031
9085
|
"aria-haspopup": "dialog",
|
|
9032
|
-
"aria-expanded": open
|
|
9086
|
+
"aria-expanded": open,
|
|
9087
|
+
onKeydown: onKeydown2
|
|
9033
9088
|
}), [
|
|
9034
|
-
createElementVNode("span",
|
|
9089
|
+
createElementVNode("span", {
|
|
9090
|
+
class: normalizeClass(["tao-color-input__swatch", { "tao-color-input__swatch--empty": empty.value }])
|
|
9091
|
+
}, [
|
|
9035
9092
|
createElementVNode("span", {
|
|
9036
9093
|
style: normalizeStyle({ backgroundColor: shown.value })
|
|
9037
9094
|
}, null, 4)
|
|
9038
|
-
]),
|
|
9039
|
-
createElementVNode("span",
|
|
9095
|
+
], 2),
|
|
9096
|
+
createElementVNode("span", {
|
|
9097
|
+
class: normalizeClass(["tao-color-input__text", { "tao-color-input__text--empty": empty.value }])
|
|
9098
|
+
}, toDisplayString(text.value), 3)
|
|
9040
9099
|
], 16, _hoisted_1$n)
|
|
9041
9100
|
]),
|
|
9042
9101
|
default: withCtx(() => [
|
|
@@ -9051,14 +9110,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9051
9110
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
|
|
9052
9111
|
"onUpdate:mode": _cache[1] || (_cache[1] = ($event) => emit("update:mode", $event)),
|
|
9053
9112
|
onChange: _cache[2] || (_cache[2] = ($event) => emit("change", $event))
|
|
9054
|
-
}, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"])
|
|
9113
|
+
}, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"]),
|
|
9114
|
+
__props.clearable ? (openBlock(), createElementBlock("button", {
|
|
9115
|
+
key: 0,
|
|
9116
|
+
type: "button",
|
|
9117
|
+
class: "tao-color-input__clear",
|
|
9118
|
+
disabled: empty.value,
|
|
9119
|
+
onClick: clear
|
|
9120
|
+
}, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$l)) : createCommentVNode("", true)
|
|
9055
9121
|
]),
|
|
9056
9122
|
_: 1
|
|
9057
9123
|
}, 16, ["placement", "disabled"]);
|
|
9058
9124
|
};
|
|
9059
9125
|
}
|
|
9060
9126
|
});
|
|
9061
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
9127
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-7e3f5d62"]]);
|
|
9062
9128
|
const _hoisted_1$m = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
9063
9129
|
const _hoisted_2$k = {
|
|
9064
9130
|
key: 0,
|
|
@@ -11164,7 +11230,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11164
11230
|
key: 0,
|
|
11165
11231
|
type: "button",
|
|
11166
11232
|
class: "tao-pagination__btn tao-pagination__btn--jump",
|
|
11167
|
-
"aria-label": item.id === "left" ? unref(l10n).jumpPrevLabel
|
|
11233
|
+
"aria-label": unref(formatText)(item.id === "left" ? unref(l10n).jumpPrevLabel : unref(l10n).jumpNextLabel, { n: __props.jump }, unref(appLocale).code),
|
|
11168
11234
|
disabled: __props.disabled,
|
|
11169
11235
|
onClick: ($event) => goTo(item.id === "left" ? current2.value - __props.jump : current2.value + __props.jump)
|
|
11170
11236
|
}, " … ", 8, _hoisted_9$2)) : item.type === "ellipsis" ? (openBlock(), createElementBlock("span", _hoisted_10$1, "…")) : (openBlock(), createElementBlock("button", {
|
|
@@ -11218,7 +11284,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11218
11284
|
};
|
|
11219
11285
|
}
|
|
11220
11286
|
});
|
|
11221
|
-
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
11287
|
+
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3d273f57"]]);
|
|
11222
11288
|
const _hoisted_1$c = { class: "tao-empty" };
|
|
11223
11289
|
const _hoisted_2$a = {
|
|
11224
11290
|
key: 0,
|
|
@@ -11877,7 +11943,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11877
11943
|
extra.push(props.dotLabels[dotTone.value] ?? appLocale.value.avatar.dotLabels[dotTone.value]);
|
|
11878
11944
|
}
|
|
11879
11945
|
if (badge.value) {
|
|
11880
|
-
extra.push(l10n.value.notificationsLabel
|
|
11946
|
+
extra.push(formatText(l10n.value.notificationsLabel, { count: badge.value }, appLocale.value.code));
|
|
11881
11947
|
}
|
|
11882
11948
|
return extra.length ? `${base}, ${extra.join(", ")}` : base;
|
|
11883
11949
|
});
|
|
@@ -11920,7 +11986,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11920
11986
|
};
|
|
11921
11987
|
}
|
|
11922
11988
|
});
|
|
11923
|
-
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
11989
|
+
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-83b7bf11"]]);
|
|
11924
11990
|
const _hoisted_1$6 = ["aria-label"];
|
|
11925
11991
|
const _hoisted_2$5 = { class: "tao-breadcrumb__list" };
|
|
11926
11992
|
const _hoisted_3$4 = {
|
|
@@ -13791,17 +13857,21 @@ export {
|
|
|
13791
13857
|
confirm,
|
|
13792
13858
|
contrastRatio,
|
|
13793
13859
|
TaoUI as default,
|
|
13860
|
+
detectTaoLanguage,
|
|
13794
13861
|
formatTaoDateIso,
|
|
13795
13862
|
formatTaoDateLabel,
|
|
13796
13863
|
formatTaoDateRangeLabel,
|
|
13797
13864
|
formatTaoDateShort,
|
|
13865
|
+
formatText as formatTaoText,
|
|
13798
13866
|
hslToRgb,
|
|
13799
13867
|
hsvaToRgba,
|
|
13800
13868
|
linearToSrgb,
|
|
13801
13869
|
localeEn,
|
|
13802
13870
|
localeRu,
|
|
13871
|
+
matchTaoLanguage,
|
|
13803
13872
|
menuReturnsFocus,
|
|
13804
13873
|
normalizeHex,
|
|
13874
|
+
parseAcceptLanguage,
|
|
13805
13875
|
parseColor,
|
|
13806
13876
|
parseTaoDate,
|
|
13807
13877
|
parseTaoDateInput,
|