@1337exp/taoui 5.26.0 → 5.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +6 -0
- package/README.ru.md +6 -0
- package/dist/index.d.ts +107 -22
- package/dist/index.js +212 -98
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, Teleport, Transition, withCtx,
|
|
1
|
+
import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition, withCtx, Fragment, renderList, createTextVNode, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, withModifiers, onBeforeMount, resolveComponent, toRef, withDirectives, vShow, getCurrentInstance, reactive, withKeys, vModelText, TransitionGroup, onUpdated, createApp } from "vue";
|
|
2
2
|
function isDev() {
|
|
3
3
|
try {
|
|
4
4
|
return process.env.NODE_ENV !== "production";
|
|
@@ -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", {
|
|
@@ -1576,12 +1616,52 @@ function useLayer(open, options = {}) {
|
|
|
1576
1616
|
onBeforeUnmount(leave);
|
|
1577
1617
|
return { isTop: () => stack[stack.length - 1] === layer };
|
|
1578
1618
|
}
|
|
1619
|
+
function centringNudge(box, panel) {
|
|
1620
|
+
return Math.abs(Math.round(box) - Math.round(panel)) % 2 === 1 ? 1 : 0;
|
|
1621
|
+
}
|
|
1622
|
+
function useWholePixelPanel(panel, open) {
|
|
1623
|
+
let observer = null;
|
|
1624
|
+
function snap() {
|
|
1625
|
+
const el = panel.value;
|
|
1626
|
+
const box = el?.parentElement;
|
|
1627
|
+
if (!el || !box) {
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
el.style.marginTop = "";
|
|
1631
|
+
el.style.marginTop = centringNudge(box.clientHeight, el.offsetHeight) ? "1px" : "";
|
|
1632
|
+
}
|
|
1633
|
+
function stop() {
|
|
1634
|
+
observer?.disconnect();
|
|
1635
|
+
observer = null;
|
|
1636
|
+
}
|
|
1637
|
+
watch(
|
|
1638
|
+
open,
|
|
1639
|
+
async (isOpen) => {
|
|
1640
|
+
stop();
|
|
1641
|
+
if (!isOpen) {
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1644
|
+
await nextTick();
|
|
1645
|
+
snap();
|
|
1646
|
+
if (panel.value && typeof ResizeObserver !== "undefined") {
|
|
1647
|
+
observer = new ResizeObserver(snap);
|
|
1648
|
+
observer.observe(panel.value);
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1651
|
+
{ immediate: true }
|
|
1652
|
+
);
|
|
1653
|
+
onMounted(() => window.addEventListener("resize", snap));
|
|
1654
|
+
onBeforeUnmount(() => {
|
|
1655
|
+
window.removeEventListener("resize", snap);
|
|
1656
|
+
stop();
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1579
1659
|
const _hoisted_1$10 = ["aria-labelledby"];
|
|
1580
1660
|
const _hoisted_2$S = {
|
|
1581
1661
|
key: 0,
|
|
1582
1662
|
class: "tao-modal__header"
|
|
1583
1663
|
};
|
|
1584
|
-
const _hoisted_3$
|
|
1664
|
+
const _hoisted_3$J = ["id"];
|
|
1585
1665
|
const _hoisted_4$C = { key: 1 };
|
|
1586
1666
|
const _hoisted_5$s = ["aria-label"];
|
|
1587
1667
|
const _hoisted_6$n = { "aria-hidden": "true" };
|
|
@@ -1639,6 +1719,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1639
1719
|
}
|
|
1640
1720
|
pointerDownOnOverlay = false;
|
|
1641
1721
|
}
|
|
1722
|
+
useWholePixelPanel(panelRef, () => props.modelValue);
|
|
1642
1723
|
useLayer(() => props.modelValue, { lockScroll: true, restoreFocus: true, onEscape: close });
|
|
1643
1724
|
watch(
|
|
1644
1725
|
() => props.modelValue,
|
|
@@ -1678,7 +1759,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1678
1759
|
key: 0,
|
|
1679
1760
|
id: unref(titleId),
|
|
1680
1761
|
class: "tao-modal__title"
|
|
1681
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1762
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$J)) : (openBlock(), createElementBlock("span", _hoisted_4$C))
|
|
1682
1763
|
], true),
|
|
1683
1764
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1684
1765
|
key: 0,
|
|
@@ -1709,7 +1790,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1709
1790
|
};
|
|
1710
1791
|
}
|
|
1711
1792
|
});
|
|
1712
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-
|
|
1793
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-347eb7af"]]);
|
|
1713
1794
|
const _hoisted_1$$ = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1714
1795
|
const _hoisted_2$R = ["id", "aria-labelledby"];
|
|
1715
1796
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
@@ -2337,7 +2418,7 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
|
|
|
2337
2418
|
}
|
|
2338
2419
|
const _hoisted_1$_ = ["aria-disabled"];
|
|
2339
2420
|
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$
|
|
2421
|
+
const _hoisted_3$I = {
|
|
2341
2422
|
key: 2,
|
|
2342
2423
|
class: "tao-slider__value"
|
|
2343
2424
|
};
|
|
@@ -2639,7 +2720,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2639
2720
|
], 6)) : createCommentVNode("", true)
|
|
2640
2721
|
], 64);
|
|
2641
2722
|
}), 128)),
|
|
2642
|
-
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2723
|
+
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
|
|
2643
2724
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2644
2725
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2645
2726
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
@@ -2745,7 +2826,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2745
2826
|
});
|
|
2746
2827
|
const _hoisted_1$Z = { class: "tao-scrubber__controls" };
|
|
2747
2828
|
const _hoisted_2$P = { class: "tao-scrubber__track" };
|
|
2748
|
-
const _hoisted_3$
|
|
2829
|
+
const _hoisted_3$H = {
|
|
2749
2830
|
key: 0,
|
|
2750
2831
|
class: "tao-scrubber__time"
|
|
2751
2832
|
};
|
|
@@ -2843,7 +2924,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2843
2924
|
} : void 0
|
|
2844
2925
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
2845
2926
|
]),
|
|
2846
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2927
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$H, [
|
|
2847
2928
|
renderSlot(_ctx.$slots, "time", {
|
|
2848
2929
|
time: __props.modelValue,
|
|
2849
2930
|
length: __props.length,
|
|
@@ -2888,6 +2969,8 @@ function computePosition(input) {
|
|
|
2888
2969
|
}
|
|
2889
2970
|
left = Math.max(pad, Math.min(left, viewport.width - pad - size.width));
|
|
2890
2971
|
top = Math.max(pad, Math.min(top, viewport.height - pad - size.height));
|
|
2972
|
+
left = Math.round(left);
|
|
2973
|
+
top = Math.round(top);
|
|
2891
2974
|
return {
|
|
2892
2975
|
top,
|
|
2893
2976
|
left,
|
|
@@ -3186,7 +3269,7 @@ const _hoisted_2$O = {
|
|
|
3186
3269
|
key: 0,
|
|
3187
3270
|
class: "tao-spoiler__title"
|
|
3188
3271
|
};
|
|
3189
|
-
const _hoisted_3$
|
|
3272
|
+
const _hoisted_3$G = ["id"];
|
|
3190
3273
|
const _hoisted_4$A = { class: "tao-spoiler__content-inner" };
|
|
3191
3274
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3192
3275
|
...{ name: "TaoSpoiler" },
|
|
@@ -3282,7 +3365,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3282
3365
|
createElementVNode("div", _hoisted_4$A, [
|
|
3283
3366
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3284
3367
|
])
|
|
3285
|
-
], 8, _hoisted_3$
|
|
3368
|
+
], 8, _hoisted_3$G)) : createCommentVNode("", true)
|
|
3286
3369
|
]),
|
|
3287
3370
|
_: 3
|
|
3288
3371
|
})
|
|
@@ -3555,7 +3638,7 @@ const _hoisted_2$N = {
|
|
|
3555
3638
|
class: "tao-tour__dim",
|
|
3556
3639
|
"aria-hidden": "true"
|
|
3557
3640
|
};
|
|
3558
|
-
const _hoisted_3$
|
|
3641
|
+
const _hoisted_3$F = ["aria-labelledby", "aria-describedby"];
|
|
3559
3642
|
const _hoisted_4$z = ["id"];
|
|
3560
3643
|
const _hoisted_5$q = ["id"];
|
|
3561
3644
|
const _hoisted_6$l = { class: "tao-tour__footer" };
|
|
@@ -3820,7 +3903,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3820
3903
|
})
|
|
3821
3904
|
])
|
|
3822
3905
|
])
|
|
3823
|
-
], 46, _hoisted_3$
|
|
3906
|
+
], 46, _hoisted_3$F)
|
|
3824
3907
|
])) : createCommentVNode("", true)
|
|
3825
3908
|
]);
|
|
3826
3909
|
};
|
|
@@ -3990,7 +4073,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
3990
4073
|
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-d42e5e67"]]);
|
|
3991
4074
|
const _hoisted_1$S = { class: "tao-split__pane tao-split__pane--start" };
|
|
3992
4075
|
const _hoisted_2$M = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
3993
|
-
const _hoisted_3$
|
|
4076
|
+
const _hoisted_3$E = { class: "tao-split__pane tao-split__pane--end" };
|
|
3994
4077
|
const _hoisted_4$y = {
|
|
3995
4078
|
key: 0,
|
|
3996
4079
|
class: "tao-split__shield"
|
|
@@ -4316,7 +4399,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4316
4399
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4317
4400
|
}, ["prevent"]))
|
|
4318
4401
|
}, null, 40, _hoisted_2$M),
|
|
4319
|
-
createElementVNode("div", _hoisted_3$
|
|
4402
|
+
createElementVNode("div", _hoisted_3$E, [
|
|
4320
4403
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4321
4404
|
]),
|
|
4322
4405
|
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$y)) : createCommentVNode("", true)
|
|
@@ -4327,7 +4410,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4327
4410
|
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-316b0d45"]]);
|
|
4328
4411
|
const _hoisted_1$R = { class: "tao-image" };
|
|
4329
4412
|
const _hoisted_2$L = ["src", "alt", "loading"];
|
|
4330
|
-
const _hoisted_3$
|
|
4413
|
+
const _hoisted_3$D = { class: "tao-image__placeholder" };
|
|
4331
4414
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
4332
4415
|
...{ name: "TaoImage" },
|
|
4333
4416
|
__name: "TaoImage",
|
|
@@ -4372,7 +4455,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4372
4455
|
onError: handleError
|
|
4373
4456
|
}, null, 42, _hoisted_2$L)) : createCommentVNode("", true),
|
|
4374
4457
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4375
|
-
createElementVNode("div", _hoisted_3$
|
|
4458
|
+
createElementVNode("div", _hoisted_3$D, toDisplayString(__props.placeholderText), 1)
|
|
4376
4459
|
], true, 1) : createCommentVNode("", true)
|
|
4377
4460
|
]);
|
|
4378
4461
|
};
|
|
@@ -4381,7 +4464,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4381
4464
|
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-61f47c52"]]);
|
|
4382
4465
|
const _hoisted_1$Q = ["for"];
|
|
4383
4466
|
const _hoisted_2$K = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
4384
|
-
const _hoisted_3$
|
|
4467
|
+
const _hoisted_3$C = {
|
|
4385
4468
|
key: 0,
|
|
4386
4469
|
class: "tao-checkbox__label"
|
|
4387
4470
|
};
|
|
@@ -4462,7 +4545,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4462
4545
|
onChange: onInputChange
|
|
4463
4546
|
}), null, 16, _hoisted_2$K),
|
|
4464
4547
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
4465
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4548
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$C, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$x, [
|
|
4466
4549
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4467
4550
|
])),
|
|
4468
4551
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
@@ -4476,7 +4559,7 @@ const _hoisted_1$P = {
|
|
|
4476
4559
|
class: "tao-tag__prefix"
|
|
4477
4560
|
};
|
|
4478
4561
|
const _hoisted_2$J = { class: "tao-tag__text" };
|
|
4479
|
-
const _hoisted_3$
|
|
4562
|
+
const _hoisted_3$B = ["aria-label"];
|
|
4480
4563
|
const _hoisted_4$w = { "aria-hidden": "true" };
|
|
4481
4564
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
4482
4565
|
...{ name: "TaoTag" },
|
|
@@ -4538,7 +4621,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
4538
4621
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4539
4622
|
], true)
|
|
4540
4623
|
])
|
|
4541
|
-
], 8, _hoisted_3$
|
|
4624
|
+
], 8, _hoisted_3$B)) : createCommentVNode("", true)
|
|
4542
4625
|
], 6);
|
|
4543
4626
|
};
|
|
4544
4627
|
}
|
|
@@ -4549,7 +4632,7 @@ const _hoisted_2$I = {
|
|
|
4549
4632
|
key: 1,
|
|
4550
4633
|
class: "tao-divider__text"
|
|
4551
4634
|
};
|
|
4552
|
-
const _hoisted_3$
|
|
4635
|
+
const _hoisted_3$A = {
|
|
4553
4636
|
key: 2,
|
|
4554
4637
|
class: "tao-divider__line tao-divider__line--end"
|
|
4555
4638
|
};
|
|
@@ -4589,7 +4672,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4589
4672
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
4590
4673
|
], true)
|
|
4591
4674
|
])) : createCommentVNode("", true),
|
|
4592
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4675
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$A)) : createCommentVNode("", true)
|
|
4593
4676
|
], 10, _hoisted_1$O);
|
|
4594
4677
|
};
|
|
4595
4678
|
}
|
|
@@ -4822,7 +4905,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4822
4905
|
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9aaf7131"]]);
|
|
4823
4906
|
const _hoisted_1$L = ["aria-label"];
|
|
4824
4907
|
const _hoisted_2$F = { class: "tao-scroll-top__content" };
|
|
4825
|
-
const _hoisted_3$
|
|
4908
|
+
const _hoisted_3$z = {
|
|
4826
4909
|
key: 0,
|
|
4827
4910
|
class: "tao-scroll-top__text",
|
|
4828
4911
|
"aria-hidden": "true"
|
|
@@ -4923,7 +5006,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
4923
5006
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
4924
5007
|
}), [
|
|
4925
5008
|
createElementVNode("span", _hoisted_2$F, [
|
|
4926
|
-
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5009
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
4927
5010
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4928
5011
|
createVNode(TaoIcon, {
|
|
4929
5012
|
class: "tao-scroll-top__icon",
|
|
@@ -4951,7 +5034,7 @@ const _hoisted_2$E = {
|
|
|
4951
5034
|
key: 0,
|
|
4952
5035
|
class: "tao-progress__side"
|
|
4953
5036
|
};
|
|
4954
|
-
const _hoisted_3$
|
|
5037
|
+
const _hoisted_3$y = { class: "tao-progress__main" };
|
|
4955
5038
|
const _hoisted_4$v = {
|
|
4956
5039
|
key: 0,
|
|
4957
5040
|
class: "tao-progress__percentage"
|
|
@@ -5001,7 +5084,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5001
5084
|
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
5002
5085
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
5003
5086
|
])) : createCommentVNode("", true),
|
|
5004
|
-
createElementVNode("div", _hoisted_3$
|
|
5087
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
5005
5088
|
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$v, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
5006
5089
|
createElementVNode("div", {
|
|
5007
5090
|
class: "tao-progress__track",
|
|
@@ -5118,7 +5201,7 @@ function partitionByAccept(files, accept) {
|
|
|
5118
5201
|
}
|
|
5119
5202
|
const _hoisted_1$J = { class: "tao-file-drop__row" };
|
|
5120
5203
|
const _hoisted_2$D = ["aria-label"];
|
|
5121
|
-
const _hoisted_3$
|
|
5204
|
+
const _hoisted_3$x = { "aria-hidden": "true" };
|
|
5122
5205
|
const _hoisted_4$u = ["accept", "multiple"];
|
|
5123
5206
|
const _hoisted_5$o = {
|
|
5124
5207
|
key: 0,
|
|
@@ -5254,7 +5337,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5254
5337
|
"aria-label": unref(l10n).clearLabel,
|
|
5255
5338
|
onClick: requestClear
|
|
5256
5339
|
}, [
|
|
5257
|
-
createElementVNode("span", _hoisted_3$
|
|
5340
|
+
createElementVNode("span", _hoisted_3$x, [
|
|
5258
5341
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
5259
5342
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
5260
5343
|
], true)
|
|
@@ -5412,7 +5495,7 @@ const _hoisted_2$C = {
|
|
|
5412
5495
|
class: "tao-menu__separator",
|
|
5413
5496
|
role: "separator"
|
|
5414
5497
|
};
|
|
5415
|
-
const _hoisted_3$
|
|
5498
|
+
const _hoisted_3$w = {
|
|
5416
5499
|
key: 1,
|
|
5417
5500
|
class: "tao-menu__label",
|
|
5418
5501
|
role: "presentation"
|
|
@@ -5611,7 +5694,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5611
5694
|
return openBlock(), createElementBlock(Fragment, {
|
|
5612
5695
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
5613
5696
|
}, [
|
|
5614
|
-
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$C)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5697
|
+
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
5698
|
createElementVNode("div", {
|
|
5616
5699
|
id: itemId(index),
|
|
5617
5700
|
ref_for: true,
|
|
@@ -5671,7 +5754,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5671
5754
|
});
|
|
5672
5755
|
const _hoisted_1$H = { class: "tao-dropdown-menu" };
|
|
5673
5756
|
const _hoisted_2$B = ["tabindex", "aria-expanded", "aria-label"];
|
|
5674
|
-
const _hoisted_3$
|
|
5757
|
+
const _hoisted_3$v = {
|
|
5675
5758
|
key: 1,
|
|
5676
5759
|
"aria-hidden": "true"
|
|
5677
5760
|
};
|
|
@@ -5722,7 +5805,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5722
5805
|
onClick: toggleMenu,
|
|
5723
5806
|
onKeydown: onTriggerKeydown
|
|
5724
5807
|
}, [
|
|
5725
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5808
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
5726
5809
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5727
5810
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
5728
5811
|
], true)
|
|
@@ -6353,7 +6436,7 @@ const _hoisted_2$z = {
|
|
|
6353
6436
|
preserveAspectRatio: "none",
|
|
6354
6437
|
"aria-hidden": "true"
|
|
6355
6438
|
};
|
|
6356
|
-
const _hoisted_3$
|
|
6439
|
+
const _hoisted_3$u = ["d"];
|
|
6357
6440
|
const _hoisted_4$s = ["d"];
|
|
6358
6441
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
6359
6442
|
...{ name: "TaoSparkline" },
|
|
@@ -6392,7 +6475,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6392
6475
|
key: 0,
|
|
6393
6476
|
class: "tao-sparkline__area",
|
|
6394
6477
|
d: fill.value
|
|
6395
|
-
}, null, 8, _hoisted_3$
|
|
6478
|
+
}, null, 8, _hoisted_3$u)) : createCommentVNode("", true),
|
|
6396
6479
|
createElementVNode("path", {
|
|
6397
6480
|
class: "tao-sparkline__line",
|
|
6398
6481
|
d: line.value
|
|
@@ -6415,7 +6498,7 @@ const _hoisted_2$y = {
|
|
|
6415
6498
|
class: "tao-meter__head",
|
|
6416
6499
|
"aria-hidden": "true"
|
|
6417
6500
|
};
|
|
6418
|
-
const _hoisted_3$
|
|
6501
|
+
const _hoisted_3$t = { class: "tao-meter__label" };
|
|
6419
6502
|
const _hoisted_4$r = {
|
|
6420
6503
|
key: 0,
|
|
6421
6504
|
class: "tao-meter__value"
|
|
@@ -6456,7 +6539,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6456
6539
|
"aria-label": __props.label
|
|
6457
6540
|
}, [
|
|
6458
6541
|
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
6459
|
-
createElementVNode("span", _hoisted_3$
|
|
6542
|
+
createElementVNode("span", _hoisted_3$t, toDisplayString(__props.label), 1),
|
|
6460
6543
|
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
|
|
6461
6544
|
])) : createCommentVNode("", true),
|
|
6462
6545
|
createElementVNode("div", _hoisted_5$m, [
|
|
@@ -6472,7 +6555,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6472
6555
|
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-17e24a8e"]]);
|
|
6473
6556
|
const _hoisted_1$A = ["aria-label"];
|
|
6474
6557
|
const _hoisted_2$x = ["viewBox", "width", "height"];
|
|
6475
|
-
const _hoisted_3$
|
|
6558
|
+
const _hoisted_3$s = ["cx", "cy", "r", "stroke-width"];
|
|
6476
6559
|
const _hoisted_4$q = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
6477
6560
|
const _hoisted_5$l = {
|
|
6478
6561
|
key: 0,
|
|
@@ -6547,7 +6630,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
6547
6630
|
cy: centre.value,
|
|
6548
6631
|
r: radius.value,
|
|
6549
6632
|
"stroke-width": __props.thickness
|
|
6550
|
-
}, null, 8, _hoisted_3$
|
|
6633
|
+
}, null, 8, _hoisted_3$s),
|
|
6551
6634
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
6552
6635
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
6553
6636
|
key: arc.key,
|
|
@@ -6595,7 +6678,7 @@ const _hoisted_2$w = {
|
|
|
6595
6678
|
class: "tao-heatmap__row tao-heatmap__head",
|
|
6596
6679
|
role: "row"
|
|
6597
6680
|
};
|
|
6598
|
-
const _hoisted_3$
|
|
6681
|
+
const _hoisted_3$r = {
|
|
6599
6682
|
class: "tao-heatmap__name",
|
|
6600
6683
|
role: "rowheader"
|
|
6601
6684
|
};
|
|
@@ -6783,7 +6866,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
6783
6866
|
class: "tao-heatmap__row",
|
|
6784
6867
|
role: "row"
|
|
6785
6868
|
}, [
|
|
6786
|
-
createElementVNode("span", _hoisted_3$
|
|
6869
|
+
createElementVNode("span", _hoisted_3$r, toDisplayString(row), 1),
|
|
6787
6870
|
(openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
|
|
6788
6871
|
return openBlock(), createElementBlock("span", {
|
|
6789
6872
|
key: cell.key,
|
|
@@ -6854,7 +6937,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
6854
6937
|
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-496996ae"]]);
|
|
6855
6938
|
const _hoisted_1$y = { class: "tao-nav__shell" };
|
|
6856
6939
|
const _hoisted_2$v = ["aria-label"];
|
|
6857
|
-
const _hoisted_3$
|
|
6940
|
+
const _hoisted_3$q = { class: "tao-nav__column" };
|
|
6858
6941
|
const _hoisted_4$o = {
|
|
6859
6942
|
key: 0,
|
|
6860
6943
|
class: "tao-nav__action"
|
|
@@ -6952,7 +7035,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
6952
7035
|
class: normalizeClass(["tao-nav__panel", unref(surfaceClass)(__props.surface)]),
|
|
6953
7036
|
"aria-label": unref(l10n).ariaLabel
|
|
6954
7037
|
}, [
|
|
6955
|
-
createElementVNode("div", _hoisted_3$
|
|
7038
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
6956
7039
|
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
6957
7040
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
6958
7041
|
])) : createCommentVNode("", true),
|
|
@@ -7091,7 +7174,7 @@ function toggleCheck(node, checked2, children) {
|
|
|
7091
7174
|
}
|
|
7092
7175
|
const _hoisted_1$x = ["aria-label", "aria-multiselectable"];
|
|
7093
7176
|
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$
|
|
7177
|
+
const _hoisted_3$p = ["onClick"];
|
|
7095
7178
|
const _hoisted_4$n = ["title"];
|
|
7096
7179
|
const _hoisted_5$i = ["onClick"];
|
|
7097
7180
|
const _hoisted_6$e = {
|
|
@@ -7374,7 +7457,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7374
7457
|
key: 1,
|
|
7375
7458
|
name: "tao-chevron-right"
|
|
7376
7459
|
})) : createCommentVNode("", true)
|
|
7377
|
-
], 10, _hoisted_3$
|
|
7460
|
+
], 10, _hoisted_3$p),
|
|
7378
7461
|
__props.checkable ? (openBlock(), createElementBlock("span", {
|
|
7379
7462
|
key: 0,
|
|
7380
7463
|
class: normalizeClass(["tao-tree__check", `tao-tree__check--${stateOf(row)}`]),
|
|
@@ -7415,7 +7498,7 @@ const _hoisted_2$t = {
|
|
|
7415
7498
|
key: 0,
|
|
7416
7499
|
class: "tao-checklist__legend"
|
|
7417
7500
|
};
|
|
7418
|
-
const _hoisted_3$
|
|
7501
|
+
const _hoisted_3$o = { key: 0 };
|
|
7419
7502
|
const _hoisted_4$m = {
|
|
7420
7503
|
key: 1,
|
|
7421
7504
|
class: "tao-checklist__counter",
|
|
@@ -7493,7 +7576,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7493
7576
|
"aria-labelledby": labelledBy.value
|
|
7494
7577
|
}, [
|
|
7495
7578
|
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$t, [
|
|
7496
|
-
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7579
|
+
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
7497
7580
|
__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
7581
|
])) : createCommentVNode("", true),
|
|
7499
7582
|
__props.selectAll ? (openBlock(), createBlock(TaoCheckbox, {
|
|
@@ -7552,7 +7635,7 @@ const _hoisted_2$s = {
|
|
|
7552
7635
|
class: "tao-timeline__rail",
|
|
7553
7636
|
"aria-hidden": "true"
|
|
7554
7637
|
};
|
|
7555
|
-
const _hoisted_3$
|
|
7638
|
+
const _hoisted_3$n = {
|
|
7556
7639
|
key: 0,
|
|
7557
7640
|
class: "tao-timeline__line"
|
|
7558
7641
|
};
|
|
@@ -7600,7 +7683,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
7600
7683
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
7601
7684
|
], true)
|
|
7602
7685
|
], 2),
|
|
7603
|
-
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7686
|
+
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$n)) : createCommentVNode("", true)
|
|
7604
7687
|
]),
|
|
7605
7688
|
createElementVNode("div", _hoisted_4$l, [
|
|
7606
7689
|
item.time ? (openBlock(), createElementBlock("time", {
|
|
@@ -7625,7 +7708,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
7625
7708
|
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-48847c47"]]);
|
|
7626
7709
|
const _hoisted_1$u = ["tabindex", "aria-hidden", "inert"];
|
|
7627
7710
|
const _hoisted_2$r = { class: "tao-marquee__item" };
|
|
7628
|
-
const _hoisted_3$
|
|
7711
|
+
const _hoisted_3$m = {
|
|
7629
7712
|
key: 0,
|
|
7630
7713
|
class: "tao-marquee__item",
|
|
7631
7714
|
"aria-hidden": "true",
|
|
@@ -7749,7 +7832,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
7749
7832
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7750
7833
|
], 64))
|
|
7751
7834
|
]),
|
|
7752
|
-
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7835
|
+
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$m, [
|
|
7753
7836
|
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7754
7837
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7755
7838
|
], 64))
|
|
@@ -7801,7 +7884,7 @@ const _hoisted_2$q = {
|
|
|
7801
7884
|
class: "tao-pin-code__separator",
|
|
7802
7885
|
"aria-hidden": "true"
|
|
7803
7886
|
};
|
|
7804
|
-
const _hoisted_3$
|
|
7887
|
+
const _hoisted_3$l = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
7805
7888
|
const _hoisted_4$k = {
|
|
7806
7889
|
key: 0,
|
|
7807
7890
|
class: "tao-pin-code__separator",
|
|
@@ -8065,7 +8148,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
8065
8148
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
8066
8149
|
onFocus: ($event) => onFocus(index),
|
|
8067
8150
|
onBlur
|
|
8068
|
-
}, null, 46, _hoisted_3$
|
|
8151
|
+
}, null, 46, _hoisted_3$l)
|
|
8069
8152
|
], 64);
|
|
8070
8153
|
}), 128)),
|
|
8071
8154
|
layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(layout.value.after), 1)) : createCommentVNode("", true),
|
|
@@ -8186,7 +8269,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
8186
8269
|
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-f0778b06"]]);
|
|
8187
8270
|
const _hoisted_1$r = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
8188
8271
|
const _hoisted_2$p = { class: "tao-select__value" };
|
|
8189
|
-
const _hoisted_3$
|
|
8272
|
+
const _hoisted_3$k = ["aria-activedescendant"];
|
|
8190
8273
|
const _hoisted_4$j = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
8191
8274
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
8192
8275
|
...{ name: "TaoSelect", inheritAttrs: false },
|
|
@@ -8381,7 +8464,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8381
8464
|
onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
|
|
8382
8465
|
}, toDisplayString(option.label), 43, _hoisted_4$j);
|
|
8383
8466
|
}), 128))
|
|
8384
|
-
], 40, _hoisted_3$
|
|
8467
|
+
], 40, _hoisted_3$k),
|
|
8385
8468
|
__props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
|
|
8386
8469
|
key: 0,
|
|
8387
8470
|
type: "button",
|
|
@@ -8539,7 +8622,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8539
8622
|
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-98154a39"]]);
|
|
8540
8623
|
const _hoisted_1$p = ["for"];
|
|
8541
8624
|
const _hoisted_2$n = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
8542
|
-
const _hoisted_3$
|
|
8625
|
+
const _hoisted_3$j = { class: "tao-segmented-option__face" };
|
|
8543
8626
|
const _hoisted_4$i = {
|
|
8544
8627
|
key: 0,
|
|
8545
8628
|
class: "tao-segmented-option__icon",
|
|
@@ -8628,7 +8711,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8628
8711
|
"aria-label": __props.ariaLabel,
|
|
8629
8712
|
onChange
|
|
8630
8713
|
}, null, 40, _hoisted_2$n),
|
|
8631
|
-
createElementVNode("span", _hoisted_3$
|
|
8714
|
+
createElementVNode("span", _hoisted_3$j, [
|
|
8632
8715
|
__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$i, [
|
|
8633
8716
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
8634
8717
|
createVNode(TaoIcon, { name: __props.icon }, null, 8, ["name"])
|
|
@@ -8648,7 +8731,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8648
8731
|
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-d2951a99"]]);
|
|
8649
8732
|
const _hoisted_1$o = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
|
|
8650
8733
|
const _hoisted_2$m = { class: "tao-color-picker__strips" };
|
|
8651
|
-
const _hoisted_3$
|
|
8734
|
+
const _hoisted_3$i = { class: "tao-color-picker__row" };
|
|
8652
8735
|
const _hoisted_4$h = { class: "tao-color-picker__preview" };
|
|
8653
8736
|
const _hoisted_5$d = {
|
|
8654
8737
|
key: 0,
|
|
@@ -8917,7 +9000,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8917
9000
|
]),
|
|
8918
9001
|
_: 1
|
|
8919
9002
|
}, 8, ["modelValue", "aria-label", "disabled"])) : createCommentVNode("", true),
|
|
8920
|
-
createElementVNode("div", _hoisted_3$
|
|
9003
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
8921
9004
|
createElementVNode("span", _hoisted_4$h, [
|
|
8922
9005
|
createElementVNode("span", {
|
|
8923
9006
|
style: normalizeStyle({ backgroundColor: hex.value })
|
|
@@ -8990,8 +9073,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8990
9073
|
});
|
|
8991
9074
|
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-54d56769"]]);
|
|
8992
9075
|
const _hoisted_1$n = ["disabled", "aria-label", "aria-expanded"];
|
|
8993
|
-
const _hoisted_2$l =
|
|
8994
|
-
const _hoisted_3$i = { class: "tao-color-input__text" };
|
|
9076
|
+
const _hoisted_2$l = ["disabled"];
|
|
8995
9077
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
8996
9078
|
...{ name: "TaoColorInput", inheritAttrs: false },
|
|
8997
9079
|
__name: "TaoColorInput",
|
|
@@ -9006,7 +9088,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9006
9088
|
error: { type: Boolean, default: false },
|
|
9007
9089
|
placement: { default: "bottom-start" },
|
|
9008
9090
|
size: {},
|
|
9009
|
-
chooseLabel: {}
|
|
9091
|
+
chooseLabel: {},
|
|
9092
|
+
placeholder: {},
|
|
9093
|
+
clearable: { type: Boolean, default: false },
|
|
9094
|
+
clearText: {}
|
|
9010
9095
|
},
|
|
9011
9096
|
emits: ["update:modelValue", "update:mode", "change"],
|
|
9012
9097
|
setup(__props, { emit: __emit }) {
|
|
@@ -9015,7 +9100,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9015
9100
|
const emit = __emit;
|
|
9016
9101
|
const l10n = useLocaleText(props, "colorPicker");
|
|
9017
9102
|
const shown = computed(() => normalizeHex(props.modelValue, props.alpha) ?? props.modelValue);
|
|
9018
|
-
const
|
|
9103
|
+
const empty = computed(() => props.modelValue === "");
|
|
9104
|
+
const text = computed(() => empty.value ? l10n.value.placeholder : shown.value);
|
|
9105
|
+
function clear() {
|
|
9106
|
+
emit("update:modelValue", "");
|
|
9107
|
+
emit("change", "");
|
|
9108
|
+
}
|
|
9109
|
+
function onKeydown2(event) {
|
|
9110
|
+
if ((event.key === "Backspace" || event.key === "Delete") && props.clearable && !empty.value && !props.disabled) {
|
|
9111
|
+
event.preventDefault();
|
|
9112
|
+
clear();
|
|
9113
|
+
}
|
|
9114
|
+
}
|
|
9115
|
+
const buttonLabel = (given) => `${typeof given === "string" && given ? given : l10n.value.chooseLabel}: ${text.value}`;
|
|
9019
9116
|
return (_ctx, _cache) => {
|
|
9020
9117
|
return openBlock(), createBlock(TaoPopover, mergeProps(unref(rootAttrs)(), {
|
|
9021
9118
|
placement: __props.placement,
|
|
@@ -9029,14 +9126,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9029
9126
|
disabled: __props.disabled,
|
|
9030
9127
|
"aria-label": buttonLabel(_ctx.$attrs["aria-label"]),
|
|
9031
9128
|
"aria-haspopup": "dialog",
|
|
9032
|
-
"aria-expanded": open
|
|
9129
|
+
"aria-expanded": open,
|
|
9130
|
+
onKeydown: onKeydown2
|
|
9033
9131
|
}), [
|
|
9034
|
-
createElementVNode("span",
|
|
9132
|
+
createElementVNode("span", {
|
|
9133
|
+
class: normalizeClass(["tao-color-input__swatch", { "tao-color-input__swatch--empty": empty.value }])
|
|
9134
|
+
}, [
|
|
9035
9135
|
createElementVNode("span", {
|
|
9036
9136
|
style: normalizeStyle({ backgroundColor: shown.value })
|
|
9037
9137
|
}, null, 4)
|
|
9038
|
-
]),
|
|
9039
|
-
createElementVNode("span",
|
|
9138
|
+
], 2),
|
|
9139
|
+
createElementVNode("span", {
|
|
9140
|
+
class: normalizeClass(["tao-color-input__text", { "tao-color-input__text--empty": empty.value }])
|
|
9141
|
+
}, toDisplayString(text.value), 3)
|
|
9040
9142
|
], 16, _hoisted_1$n)
|
|
9041
9143
|
]),
|
|
9042
9144
|
default: withCtx(() => [
|
|
@@ -9051,14 +9153,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9051
9153
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
|
|
9052
9154
|
"onUpdate:mode": _cache[1] || (_cache[1] = ($event) => emit("update:mode", $event)),
|
|
9053
9155
|
onChange: _cache[2] || (_cache[2] = ($event) => emit("change", $event))
|
|
9054
|
-
}, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"])
|
|
9156
|
+
}, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"]),
|
|
9157
|
+
__props.clearable ? (openBlock(), createElementBlock("button", {
|
|
9158
|
+
key: 0,
|
|
9159
|
+
type: "button",
|
|
9160
|
+
class: "tao-color-input__clear",
|
|
9161
|
+
disabled: empty.value,
|
|
9162
|
+
onClick: clear
|
|
9163
|
+
}, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$l)) : createCommentVNode("", true)
|
|
9055
9164
|
]),
|
|
9056
9165
|
_: 1
|
|
9057
9166
|
}, 16, ["placement", "disabled"]);
|
|
9058
9167
|
};
|
|
9059
9168
|
}
|
|
9060
9169
|
});
|
|
9061
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
9170
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-7e3f5d62"]]);
|
|
9062
9171
|
const _hoisted_1$m = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
9063
9172
|
const _hoisted_2$k = {
|
|
9064
9173
|
key: 0,
|
|
@@ -11164,7 +11273,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11164
11273
|
key: 0,
|
|
11165
11274
|
type: "button",
|
|
11166
11275
|
class: "tao-pagination__btn tao-pagination__btn--jump",
|
|
11167
|
-
"aria-label": item.id === "left" ? unref(l10n).jumpPrevLabel
|
|
11276
|
+
"aria-label": unref(formatText)(item.id === "left" ? unref(l10n).jumpPrevLabel : unref(l10n).jumpNextLabel, { n: __props.jump }, unref(appLocale).code),
|
|
11168
11277
|
disabled: __props.disabled,
|
|
11169
11278
|
onClick: ($event) => goTo(item.id === "left" ? current2.value - __props.jump : current2.value + __props.jump)
|
|
11170
11279
|
}, " … ", 8, _hoisted_9$2)) : item.type === "ellipsis" ? (openBlock(), createElementBlock("span", _hoisted_10$1, "…")) : (openBlock(), createElementBlock("button", {
|
|
@@ -11218,7 +11327,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11218
11327
|
};
|
|
11219
11328
|
}
|
|
11220
11329
|
});
|
|
11221
|
-
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
11330
|
+
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3d273f57"]]);
|
|
11222
11331
|
const _hoisted_1$c = { class: "tao-empty" };
|
|
11223
11332
|
const _hoisted_2$a = {
|
|
11224
11333
|
key: 0,
|
|
@@ -11877,7 +11986,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11877
11986
|
extra.push(props.dotLabels[dotTone.value] ?? appLocale.value.avatar.dotLabels[dotTone.value]);
|
|
11878
11987
|
}
|
|
11879
11988
|
if (badge.value) {
|
|
11880
|
-
extra.push(l10n.value.notificationsLabel
|
|
11989
|
+
extra.push(formatText(l10n.value.notificationsLabel, { count: badge.value }, appLocale.value.code));
|
|
11881
11990
|
}
|
|
11882
11991
|
return extra.length ? `${base}, ${extra.join(", ")}` : base;
|
|
11883
11992
|
});
|
|
@@ -11920,7 +12029,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11920
12029
|
};
|
|
11921
12030
|
}
|
|
11922
12031
|
});
|
|
11923
|
-
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
12032
|
+
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-83b7bf11"]]);
|
|
11924
12033
|
const _hoisted_1$6 = ["aria-label"];
|
|
11925
12034
|
const _hoisted_2$5 = { class: "tao-breadcrumb__list" };
|
|
11926
12035
|
const _hoisted_3$4 = {
|
|
@@ -12116,7 +12225,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12116
12225
|
};
|
|
12117
12226
|
}
|
|
12118
12227
|
});
|
|
12119
|
-
const TaoCounter = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
12228
|
+
const TaoCounter = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-69fa7f4b"]]);
|
|
12120
12229
|
const GLIDE_TIME = 325;
|
|
12121
12230
|
const FLICK_SPEED = 0.3;
|
|
12122
12231
|
function glideTarget(from, velocity, pitch, max) {
|
|
@@ -13042,6 +13151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13042
13151
|
unregisterConfirmHost();
|
|
13043
13152
|
});
|
|
13044
13153
|
useLayer(() => Boolean(currentConfirm.value), { lockScroll: true, restoreFocus: true, onEscape: () => answer(false) });
|
|
13154
|
+
useWholePixelPanel(panelRef, () => Boolean(currentConfirm.value));
|
|
13045
13155
|
watch(
|
|
13046
13156
|
() => currentConfirm.value?.id,
|
|
13047
13157
|
async (id) => {
|
|
@@ -13136,7 +13246,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13136
13246
|
};
|
|
13137
13247
|
}
|
|
13138
13248
|
});
|
|
13139
|
-
const TaoConfirmHost = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
13249
|
+
const TaoConfirmHost = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3af3ec95"]]);
|
|
13140
13250
|
const TYPE_TIMEOUT = {
|
|
13141
13251
|
success: 3e3,
|
|
13142
13252
|
danger: 5e3,
|
|
@@ -13791,17 +13901,21 @@ export {
|
|
|
13791
13901
|
confirm,
|
|
13792
13902
|
contrastRatio,
|
|
13793
13903
|
TaoUI as default,
|
|
13904
|
+
detectTaoLanguage,
|
|
13794
13905
|
formatTaoDateIso,
|
|
13795
13906
|
formatTaoDateLabel,
|
|
13796
13907
|
formatTaoDateRangeLabel,
|
|
13797
13908
|
formatTaoDateShort,
|
|
13909
|
+
formatText as formatTaoText,
|
|
13798
13910
|
hslToRgb,
|
|
13799
13911
|
hsvaToRgba,
|
|
13800
13912
|
linearToSrgb,
|
|
13801
13913
|
localeEn,
|
|
13802
13914
|
localeRu,
|
|
13915
|
+
matchTaoLanguage,
|
|
13803
13916
|
menuReturnsFocus,
|
|
13804
13917
|
normalizeHex,
|
|
13918
|
+
parseAcceptLanguage,
|
|
13805
13919
|
parseColor,
|
|
13806
13920
|
parseTaoDate,
|
|
13807
13921
|
parseTaoDateInput,
|