@1337exp/taoui 5.30.2 → 5.32.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 +21 -0
- package/README.md +6 -5
- package/README.ru.md +6 -5
- package/dist/index.d.ts +276 -57
- package/dist/index.js +1293 -532
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +8 -4
- package/skills/taoui/references/components.md +1324 -1297
- package/skills/taoui/references/patterns.md +210 -163
- package/src/styles/contexts/tone.css +3 -1
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ const builtin = {
|
|
|
72
72
|
copy: { body: '<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M15 9V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7a2 2 0 002 2h3"/>' },
|
|
73
73
|
sun: { body: '<circle cx="12" cy="12" r="4.25"/><path d="M12 3.75L12 1M18.45 6.86L20.6 5.14M20.04 13.84L22.72 14.45M15.58 19.43L16.77 21.91M8.42 19.43L7.23 21.91M3.96 13.84L1.28 14.45M5.55 6.86L3.4 5.14"/>' },
|
|
74
74
|
moon: { body: '<path d="M20 14.5A8 8 0 019.5 4a8 8 0 1010.5 10.5z"/>' },
|
|
75
|
+
monitor: { body: '<rect x="2.5" y="4" width="19" height="12.5" rx="2"/><path d="M8 20.5h8M12 16.5v4"/>' },
|
|
75
76
|
calendar: { body: '<rect x="4" y="5.5" width="16" height="14.5" rx="2"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>' },
|
|
76
77
|
info: { body: '<circle cx="12" cy="12" r="9"/><path d="M12 11v5.5"/>' + dot(12, 7.8, 1.1) },
|
|
77
78
|
"alert-triangle": { body: '<path d="M12 4L2.8 19.5h18.4z"/><path d="M12 10v4.5"/>' + dot(12, 17.2, 1.1) },
|
|
@@ -109,9 +110,9 @@ function resolveTaoIcon(name) {
|
|
|
109
110
|
return name.startsWith(TAO_ICON_PREFIX) ? builtin[name.slice(TAO_ICON_PREFIX.length)] : registered[name];
|
|
110
111
|
}
|
|
111
112
|
const taoIconNames = Object.keys(builtin).map((name) => TAO_ICON_PREFIX + name);
|
|
112
|
-
const _hoisted_1$
|
|
113
|
-
const _hoisted_2$
|
|
114
|
-
const _sfc_main$
|
|
113
|
+
const _hoisted_1$19 = { class: "tao-icon" };
|
|
114
|
+
const _hoisted_2$11 = ["viewBox", "width", "height", "innerHTML"];
|
|
115
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
115
116
|
...{ name: "TaoIcon" },
|
|
116
117
|
__name: "TaoIcon",
|
|
117
118
|
props: {
|
|
@@ -131,7 +132,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
131
132
|
}
|
|
132
133
|
const box = computed(() => props.size ? `${props.size}px` : "1em");
|
|
133
134
|
return (_ctx, _cache) => {
|
|
134
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
135
|
+
return openBlock(), createElementBlock("span", _hoisted_1$19, [
|
|
135
136
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
136
137
|
def.value ? (openBlock(), createElementBlock("svg", {
|
|
137
138
|
key: 0,
|
|
@@ -147,7 +148,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
147
148
|
"aria-hidden": "true",
|
|
148
149
|
focusable: "false",
|
|
149
150
|
innerHTML: def.value.body
|
|
150
|
-
}, null, 10, _hoisted_2$
|
|
151
|
+
}, null, 10, _hoisted_2$11)) : (openBlock(), createElementBlock("i", {
|
|
151
152
|
key: 1,
|
|
152
153
|
class: normalizeClass(["tao-icon__value", [`icon-${props.name}`, { "tao-icon__value--invert": props.invert }]]),
|
|
153
154
|
style: normalizeStyle(props.size ? `font-size: ${props.size}px` : "")
|
|
@@ -164,7 +165,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
164
165
|
}
|
|
165
166
|
return target;
|
|
166
167
|
};
|
|
167
|
-
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
168
|
+
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-ef842331"]]);
|
|
168
169
|
const localeEn = {
|
|
169
170
|
code: "en-US",
|
|
170
171
|
alert: { closeLabel: "Close", detailsLabel: "Details" },
|
|
@@ -200,7 +201,8 @@ const localeEn = {
|
|
|
200
201
|
confirm: { ok: "OK", cancel: "Cancel" },
|
|
201
202
|
copy: { copyLabel: "Copy", successText: "Copied!" },
|
|
202
203
|
tour: { nextLabel: "Next", prevLabel: "Back", skipLabel: "Skip", doneLabel: "Done", progressLabel: "Step {n} of {count}" },
|
|
203
|
-
|
|
204
|
+
presetInput: { nextLabel: "Next value", prevLabel: "Previous value" },
|
|
205
|
+
themeToggle: { toLightLabel: "Switch to the light theme", toDarkLabel: "Switch to the dark theme", toSystemLabel: "Switch to the system theme" },
|
|
204
206
|
loader: { label: "Loading" },
|
|
205
207
|
date: {
|
|
206
208
|
placeholder: "Date",
|
|
@@ -235,6 +237,7 @@ const localeEn = {
|
|
|
235
237
|
inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
|
|
236
238
|
list: { emptyText: "Nothing here" },
|
|
237
239
|
modal: { closeLabel: "Close" },
|
|
240
|
+
toolbar: { overflowLabel: "More" },
|
|
238
241
|
pagination: {
|
|
239
242
|
ariaLabel: "Pagination",
|
|
240
243
|
prevLabel: "Previous",
|
|
@@ -434,7 +437,8 @@ const localeRu = {
|
|
|
434
437
|
confirm: { ok: "ОК", cancel: "Отмена" },
|
|
435
438
|
copy: { copyLabel: "Копировать", successText: "Скопировано!" },
|
|
436
439
|
tour: { nextLabel: "Далее", prevLabel: "Назад", skipLabel: "Пропустить", doneLabel: "Готово", progressLabel: "Шаг {n} из {count}" },
|
|
437
|
-
|
|
440
|
+
presetInput: { nextLabel: "Следующее значение", prevLabel: "Предыдущее значение" },
|
|
441
|
+
themeToggle: { toLightLabel: "Включить светлую тему", toDarkLabel: "Включить тёмную тему", toSystemLabel: "Включить системную тему" },
|
|
438
442
|
loader: { label: "Загрузка" },
|
|
439
443
|
date: {
|
|
440
444
|
placeholder: "Дата",
|
|
@@ -469,6 +473,7 @@ const localeRu = {
|
|
|
469
473
|
inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
|
|
470
474
|
list: { emptyText: "Ничего нет" },
|
|
471
475
|
modal: { closeLabel: "Закрыть" },
|
|
476
|
+
toolbar: { overflowLabel: "Ещё" },
|
|
472
477
|
pagination: {
|
|
473
478
|
ariaLabel: "Пагинация",
|
|
474
479
|
prevLabel: "Назад",
|
|
@@ -595,18 +600,18 @@ function pluralForm(forms, n, code) {
|
|
|
595
600
|
}
|
|
596
601
|
return forms[category] ?? forms.other;
|
|
597
602
|
}
|
|
598
|
-
const _hoisted_1$
|
|
599
|
-
const _hoisted_2$
|
|
603
|
+
const _hoisted_1$18 = ["role", "aria-hidden"];
|
|
604
|
+
const _hoisted_2$10 = {
|
|
600
605
|
key: 0,
|
|
601
606
|
class: "tao-loader__ellipsis",
|
|
602
607
|
"aria-hidden": "true"
|
|
603
608
|
};
|
|
604
|
-
const _hoisted_3$
|
|
609
|
+
const _hoisted_3$T = {
|
|
605
610
|
key: 1,
|
|
606
611
|
class: "tao-loader__ring",
|
|
607
612
|
"aria-hidden": "true"
|
|
608
613
|
};
|
|
609
|
-
const _hoisted_4$
|
|
614
|
+
const _hoisted_4$I = {
|
|
610
615
|
key: 2,
|
|
611
616
|
class: "tao-loader__swap",
|
|
612
617
|
"aria-hidden": "true"
|
|
@@ -620,7 +625,7 @@ const _hoisted_6$q = {
|
|
|
620
625
|
key: 4,
|
|
621
626
|
class: "tao-sr-only"
|
|
622
627
|
};
|
|
623
|
-
const _sfc_main$
|
|
628
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
624
629
|
...{ name: "TaoLoader" },
|
|
625
630
|
__name: "TaoLoader",
|
|
626
631
|
props: {
|
|
@@ -658,31 +663,31 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
658
663
|
role: __props.decorative ? void 0 : "status",
|
|
659
664
|
"aria-hidden": __props.decorative ? "true" : void 0
|
|
660
665
|
}, [
|
|
661
|
-
__props.variant === "dots" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
666
|
+
__props.variant === "dots" ? (openBlock(), createElementBlock("div", _hoisted_2$10, [..._cache[0] || (_cache[0] = [
|
|
662
667
|
createElementVNode("div", null, null, -1),
|
|
663
668
|
createElementVNode("div", null, null, -1),
|
|
664
669
|
createElementVNode("div", null, null, -1),
|
|
665
670
|
createElementVNode("div", null, null, -1)
|
|
666
|
-
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
671
|
+
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$T)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$I, [..._cache[1] || (_cache[1] = [
|
|
667
672
|
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)
|
|
668
673
|
])])) : (openBlock(), createElementBlock("span", _hoisted_5$w)),
|
|
669
674
|
!__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$q, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
|
|
670
|
-
], 14, _hoisted_1$
|
|
675
|
+
], 14, _hoisted_1$18);
|
|
671
676
|
};
|
|
672
677
|
}
|
|
673
678
|
});
|
|
674
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
675
|
-
const _hoisted_1$
|
|
676
|
-
const _hoisted_2
|
|
679
|
+
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-03f29efb"]]);
|
|
680
|
+
const _hoisted_1$17 = ["type", "aria-pressed", "aria-keyshortcuts", "title", "aria-busy", "disabled"];
|
|
681
|
+
const _hoisted_2$$ = {
|
|
677
682
|
key: 2,
|
|
678
683
|
class: "tao-button__content"
|
|
679
684
|
};
|
|
680
|
-
const _hoisted_3$
|
|
685
|
+
const _hoisted_3$S = {
|
|
681
686
|
key: 4,
|
|
682
687
|
class: "tao-button__shortcut",
|
|
683
688
|
"aria-hidden": "true"
|
|
684
689
|
};
|
|
685
|
-
const _sfc_main$
|
|
690
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
686
691
|
...{ name: "TaoButton" },
|
|
687
692
|
__name: "TaoButton",
|
|
688
693
|
props: {
|
|
@@ -765,7 +770,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
765
770
|
class: "tao-button__icon",
|
|
766
771
|
name: __props.icon
|
|
767
772
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
768
|
-
hasContent() ? (openBlock(), createElementBlock("span", _hoisted_2
|
|
773
|
+
hasContent() ? (openBlock(), createElementBlock("span", _hoisted_2$$, [
|
|
769
774
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
770
775
|
])) : createCommentVNode("", true),
|
|
771
776
|
__props.iconEnd ? (openBlock(), createBlock(TaoIcon, {
|
|
@@ -773,12 +778,12 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
773
778
|
class: "tao-button__icon",
|
|
774
779
|
name: __props.iconEnd
|
|
775
780
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
776
|
-
__props.shortcut && !isIconOnly() ? (openBlock(), createElementBlock("kbd", _hoisted_3$
|
|
777
|
-
], 14, _hoisted_1$
|
|
781
|
+
__props.shortcut && !isIconOnly() ? (openBlock(), createElementBlock("kbd", _hoisted_3$S, toDisplayString(__props.shortcut), 1)) : createCommentVNode("", true)
|
|
782
|
+
], 14, _hoisted_1$17);
|
|
778
783
|
};
|
|
779
784
|
}
|
|
780
785
|
});
|
|
781
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
786
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-be24f74d"]]);
|
|
782
787
|
function toCssLength(value) {
|
|
783
788
|
if (value === void 0 || value === null || value === "") {
|
|
784
789
|
return void 0;
|
|
@@ -797,7 +802,7 @@ function stripeClasses(stripe, tone = "accent") {
|
|
|
797
802
|
function surfaceClass(surface) {
|
|
798
803
|
return surface && surface !== "flat" ? `tao-surface-${surface}` : void 0;
|
|
799
804
|
}
|
|
800
|
-
const _sfc_main$
|
|
805
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
801
806
|
...{ name: "TaoBlock" },
|
|
802
807
|
__name: "TaoBlock",
|
|
803
808
|
props: {
|
|
@@ -830,7 +835,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
830
835
|
};
|
|
831
836
|
}
|
|
832
837
|
});
|
|
833
|
-
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
838
|
+
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-1fc66575"]]);
|
|
834
839
|
function useControlAttrs() {
|
|
835
840
|
const attrs = useAttrs();
|
|
836
841
|
return {
|
|
@@ -852,16 +857,16 @@ function useField(props) {
|
|
|
852
857
|
const describedBy = computed(() => field?.describedBy.value);
|
|
853
858
|
return { field, controlId, invalid, describedBy, localId };
|
|
854
859
|
}
|
|
855
|
-
const _hoisted_1$
|
|
860
|
+
const _hoisted_1$16 = {
|
|
856
861
|
key: 0,
|
|
857
862
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
858
863
|
};
|
|
859
|
-
const _hoisted_2$
|
|
860
|
-
const _hoisted_3$
|
|
864
|
+
const _hoisted_2$_ = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
865
|
+
const _hoisted_3$R = {
|
|
861
866
|
key: 1,
|
|
862
867
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
863
868
|
};
|
|
864
|
-
const _sfc_main$
|
|
869
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
865
870
|
...{ name: "TaoInput", inheritAttrs: false },
|
|
866
871
|
__name: "TaoInput",
|
|
867
872
|
props: {
|
|
@@ -909,7 +914,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
909
914
|
"tao-input-shell--suffix": has("suffix")
|
|
910
915
|
}])
|
|
911
916
|
}, [
|
|
912
|
-
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
917
|
+
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$16, [
|
|
913
918
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
914
919
|
])) : createCommentVNode("", true),
|
|
915
920
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
@@ -924,8 +929,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
924
929
|
onInput: handleInput,
|
|
925
930
|
onBlur: handleBlur,
|
|
926
931
|
onFocus: handleFocus
|
|
927
|
-
}), null, 16, _hoisted_2$
|
|
928
|
-
has("suffix") ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
932
|
+
}), null, 16, _hoisted_2$_),
|
|
933
|
+
has("suffix") ? (openBlock(), createElementBlock("span", _hoisted_3$R, [
|
|
929
934
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
930
935
|
])) : createCommentVNode("", true)
|
|
931
936
|
], 2)
|
|
@@ -933,17 +938,17 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
933
938
|
};
|
|
934
939
|
}
|
|
935
940
|
});
|
|
936
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
937
|
-
const _hoisted_1$
|
|
941
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-66bc5496"]]);
|
|
942
|
+
const _hoisted_1$15 = {
|
|
938
943
|
key: 0,
|
|
939
944
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
940
945
|
};
|
|
941
|
-
const _hoisted_2$
|
|
942
|
-
const _hoisted_3$
|
|
946
|
+
const _hoisted_2$Z = { class: "tao-input-group__field" };
|
|
947
|
+
const _hoisted_3$Q = {
|
|
943
948
|
key: 1,
|
|
944
949
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
945
950
|
};
|
|
946
|
-
const _sfc_main$
|
|
951
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
947
952
|
...{ name: "TaoInputGroup" },
|
|
948
953
|
__name: "TaoInputGroup",
|
|
949
954
|
props: {
|
|
@@ -970,30 +975,30 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
970
975
|
onFocusin: onFocusIn,
|
|
971
976
|
onFocusout: onFocusOut
|
|
972
977
|
}, [
|
|
973
|
-
has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
978
|
+
has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
974
979
|
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
975
980
|
])) : createCommentVNode("", true),
|
|
976
|
-
createElementVNode("div", _hoisted_2$
|
|
981
|
+
createElementVNode("div", _hoisted_2$Z, [
|
|
977
982
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
978
983
|
]),
|
|
979
|
-
has("after") ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
984
|
+
has("after") ? (openBlock(), createElementBlock("div", _hoisted_3$Q, [
|
|
980
985
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
981
986
|
])) : createCommentVNode("", true)
|
|
982
987
|
], 34);
|
|
983
988
|
};
|
|
984
989
|
}
|
|
985
990
|
});
|
|
986
|
-
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
987
|
-
const _hoisted_1$
|
|
988
|
-
const _hoisted_2$
|
|
991
|
+
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-d38f6b53"]]);
|
|
992
|
+
const _hoisted_1$14 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
993
|
+
const _hoisted_2$Y = {
|
|
989
994
|
key: 0,
|
|
990
995
|
class: "tao-input-number__steppers"
|
|
991
996
|
};
|
|
992
|
-
const _hoisted_3$
|
|
993
|
-
const _hoisted_4$
|
|
997
|
+
const _hoisted_3$P = ["aria-label", "disabled"];
|
|
998
|
+
const _hoisted_4$H = { "aria-hidden": "true" };
|
|
994
999
|
const _hoisted_5$v = ["aria-label", "disabled"];
|
|
995
1000
|
const _hoisted_6$p = { "aria-hidden": "true" };
|
|
996
|
-
const _sfc_main$
|
|
1001
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
997
1002
|
...{ name: "TaoInputNumber", inheritAttrs: false },
|
|
998
1003
|
__name: "TaoInputNumber",
|
|
999
1004
|
props: {
|
|
@@ -1152,8 +1157,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1152
1157
|
onFocus,
|
|
1153
1158
|
onBlur,
|
|
1154
1159
|
onKeydown: onKeydown2
|
|
1155
|
-
}), null, 16, _hoisted_1$
|
|
1156
|
-
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1160
|
+
}), null, 16, _hoisted_1$14),
|
|
1161
|
+
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$Y, [
|
|
1157
1162
|
createElementVNode("button", {
|
|
1158
1163
|
type: "button",
|
|
1159
1164
|
class: "tao-input-number__step",
|
|
@@ -1162,12 +1167,12 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1162
1167
|
disabled: __props.disabled || atMax.value,
|
|
1163
1168
|
onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
|
|
1164
1169
|
}, [
|
|
1165
|
-
createElementVNode("span", _hoisted_4$
|
|
1170
|
+
createElementVNode("span", _hoisted_4$H, [
|
|
1166
1171
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
1167
1172
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1168
1173
|
], true)
|
|
1169
1174
|
])
|
|
1170
|
-
], 8, _hoisted_3$
|
|
1175
|
+
], 8, _hoisted_3$P),
|
|
1171
1176
|
createElementVNode("button", {
|
|
1172
1177
|
type: "button",
|
|
1173
1178
|
class: "tao-input-number__step",
|
|
@@ -1187,13 +1192,13 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1187
1192
|
};
|
|
1188
1193
|
}
|
|
1189
1194
|
});
|
|
1190
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1191
|
-
const _hoisted_1$
|
|
1192
|
-
const _hoisted_2$
|
|
1193
|
-
const _hoisted_3$
|
|
1194
|
-
const _hoisted_4$
|
|
1195
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-dc5bb759"]]);
|
|
1196
|
+
const _hoisted_1$13 = ["aria-label", "disabled"];
|
|
1197
|
+
const _hoisted_2$X = { "aria-hidden": "true" };
|
|
1198
|
+
const _hoisted_3$O = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
1199
|
+
const _hoisted_4$G = ["aria-label", "disabled"];
|
|
1195
1200
|
const _hoisted_5$u = { "aria-hidden": "true" };
|
|
1196
|
-
const _sfc_main$
|
|
1201
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
1197
1202
|
...{ name: "TaoQuantity", inheritAttrs: false },
|
|
1198
1203
|
__name: "TaoQuantity",
|
|
1199
1204
|
props: {
|
|
@@ -1333,12 +1338,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1333
1338
|
disabled: minusDisabled.value,
|
|
1334
1339
|
onClick: onDec
|
|
1335
1340
|
}, [
|
|
1336
|
-
createElementVNode("span", _hoisted_2$
|
|
1341
|
+
createElementVNode("span", _hoisted_2$X, [
|
|
1337
1342
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1338
1343
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1339
1344
|
], true)
|
|
1340
1345
|
])
|
|
1341
|
-
], 8, _hoisted_1$
|
|
1346
|
+
], 8, _hoisted_1$13),
|
|
1342
1347
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
1343
1348
|
id: unref(controlId),
|
|
1344
1349
|
class: "tao-quantity__input",
|
|
@@ -1358,7 +1363,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1358
1363
|
onFocus,
|
|
1359
1364
|
onBlur,
|
|
1360
1365
|
onKeydown: onKeydown2
|
|
1361
|
-
}), null, 16, _hoisted_3$
|
|
1366
|
+
}), null, 16, _hoisted_3$O),
|
|
1362
1367
|
createElementVNode("button", {
|
|
1363
1368
|
type: "button",
|
|
1364
1369
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1371,25 +1376,25 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1371
1376
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1372
1377
|
], true)
|
|
1373
1378
|
])
|
|
1374
|
-
], 8, _hoisted_4$
|
|
1379
|
+
], 8, _hoisted_4$G)
|
|
1375
1380
|
], 16);
|
|
1376
1381
|
};
|
|
1377
1382
|
}
|
|
1378
1383
|
});
|
|
1379
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1380
|
-
const _hoisted_1$
|
|
1384
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-6453479c"]]);
|
|
1385
|
+
const _hoisted_1$12 = {
|
|
1381
1386
|
key: 0,
|
|
1382
1387
|
class: "tao-card__media"
|
|
1383
1388
|
};
|
|
1384
|
-
const _hoisted_2$
|
|
1389
|
+
const _hoisted_2$W = {
|
|
1385
1390
|
key: 0,
|
|
1386
1391
|
class: "tao-card__overlay"
|
|
1387
1392
|
};
|
|
1388
|
-
const _hoisted_3$
|
|
1393
|
+
const _hoisted_3$N = {
|
|
1389
1394
|
key: 1,
|
|
1390
1395
|
class: "tao-card__overlay"
|
|
1391
1396
|
};
|
|
1392
|
-
const _hoisted_4$
|
|
1397
|
+
const _hoisted_4$F = {
|
|
1393
1398
|
key: 0,
|
|
1394
1399
|
class: "tao-card__header"
|
|
1395
1400
|
};
|
|
@@ -1418,7 +1423,7 @@ const _hoisted_10$5 = {
|
|
|
1418
1423
|
class: "tao-card__corner"
|
|
1419
1424
|
};
|
|
1420
1425
|
const _hoisted_11$4 = ["aria-label"];
|
|
1421
|
-
const _sfc_main$
|
|
1426
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
1422
1427
|
...{ name: "TaoCard" },
|
|
1423
1428
|
__name: "TaoCard",
|
|
1424
1429
|
props: {
|
|
@@ -1472,12 +1477,12 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1472
1477
|
}]]),
|
|
1473
1478
|
style: normalizeStyle(radiusStyle.value)
|
|
1474
1479
|
}, [
|
|
1475
|
-
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1480
|
+
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
1476
1481
|
renderSlot(_ctx.$slots, "media", {}, void 0, true),
|
|
1477
|
-
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1482
|
+
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$W, [
|
|
1478
1483
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1479
1484
|
])) : createCommentVNode("", true)
|
|
1480
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1485
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$N, [
|
|
1481
1486
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1482
1487
|
])) : createCommentVNode("", true),
|
|
1483
1488
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1485,7 +1490,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1485
1490
|
class: "tao-card__content",
|
|
1486
1491
|
style: normalizeStyle(paddingStyle.value)
|
|
1487
1492
|
}, [
|
|
1488
|
-
has("header") ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1493
|
+
has("header") ? (openBlock(), createElementBlock("div", _hoisted_4$F, [
|
|
1489
1494
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
1490
1495
|
])) : createCommentVNode("", true),
|
|
1491
1496
|
has("title") || has("sub") ? (openBlock(), createElementBlock("div", _hoisted_5$t, [
|
|
@@ -1522,7 +1527,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1522
1527
|
};
|
|
1523
1528
|
}
|
|
1524
1529
|
});
|
|
1525
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1530
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-4096cfb6"]]);
|
|
1526
1531
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1527
1532
|
function getFocusable(root) {
|
|
1528
1533
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -1684,13 +1689,13 @@ function useWholePixelPanel(panel, open) {
|
|
|
1684
1689
|
stop();
|
|
1685
1690
|
});
|
|
1686
1691
|
}
|
|
1687
|
-
const _hoisted_1$
|
|
1688
|
-
const _hoisted_2$
|
|
1692
|
+
const _hoisted_1$11 = ["aria-labelledby"];
|
|
1693
|
+
const _hoisted_2$V = {
|
|
1689
1694
|
key: 0,
|
|
1690
1695
|
class: "tao-modal__header"
|
|
1691
1696
|
};
|
|
1692
|
-
const _hoisted_3$
|
|
1693
|
-
const _hoisted_4$
|
|
1697
|
+
const _hoisted_3$M = ["id"];
|
|
1698
|
+
const _hoisted_4$E = { key: 1 };
|
|
1694
1699
|
const _hoisted_5$s = ["aria-label"];
|
|
1695
1700
|
const _hoisted_6$n = { "aria-hidden": "true" };
|
|
1696
1701
|
const _hoisted_7$j = { class: "tao-modal__content" };
|
|
@@ -1698,7 +1703,7 @@ const _hoisted_8$c = {
|
|
|
1698
1703
|
key: 1,
|
|
1699
1704
|
class: "tao-modal__footer"
|
|
1700
1705
|
};
|
|
1701
|
-
const _sfc_main$
|
|
1706
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
1702
1707
|
...{ name: "TaoModal", inheritAttrs: false },
|
|
1703
1708
|
__name: "TaoModal",
|
|
1704
1709
|
props: {
|
|
@@ -1783,13 +1788,13 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1783
1788
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
1784
1789
|
tabindex: "-1"
|
|
1785
1790
|
}), [
|
|
1786
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1791
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$V, [
|
|
1787
1792
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1788
1793
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
1789
1794
|
key: 0,
|
|
1790
1795
|
id: unref(titleId),
|
|
1791
1796
|
class: "tao-modal__title"
|
|
1792
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1797
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$M)) : (openBlock(), createElementBlock("span", _hoisted_4$E))
|
|
1793
1798
|
], true),
|
|
1794
1799
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1795
1800
|
key: 0,
|
|
@@ -1811,7 +1816,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1811
1816
|
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
|
|
1812
1817
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1813
1818
|
])) : createCommentVNode("", true)
|
|
1814
|
-
], 16, _hoisted_1$
|
|
1819
|
+
], 16, _hoisted_1$11)
|
|
1815
1820
|
], 34)) : createCommentVNode("", true)
|
|
1816
1821
|
]),
|
|
1817
1822
|
_: 3
|
|
@@ -1820,10 +1825,10 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1820
1825
|
};
|
|
1821
1826
|
}
|
|
1822
1827
|
});
|
|
1823
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1824
|
-
const _hoisted_1
|
|
1825
|
-
const _hoisted_2$
|
|
1826
|
-
const _sfc_main$
|
|
1828
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-855470e7"]]);
|
|
1829
|
+
const _hoisted_1$10 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1830
|
+
const _hoisted_2$U = ["id", "aria-labelledby"];
|
|
1831
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
1827
1832
|
...{ name: "TaoTabs" },
|
|
1828
1833
|
__name: "TaoTabs",
|
|
1829
1834
|
props: {
|
|
@@ -1918,7 +1923,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1918
1923
|
}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1919
1924
|
createTextVNode(toDisplayString(tab.label), 1)
|
|
1920
1925
|
], 64))
|
|
1921
|
-
], 8, _hoisted_1
|
|
1926
|
+
], 8, _hoisted_1$10);
|
|
1922
1927
|
}), 128))
|
|
1923
1928
|
], 36),
|
|
1924
1929
|
createElementVNode("div", {
|
|
@@ -1928,12 +1933,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1928
1933
|
"aria-labelledby": tabId(__props.modelValue)
|
|
1929
1934
|
}, [
|
|
1930
1935
|
renderSlot(_ctx.$slots, "default", { activeTab: __props.modelValue }, void 0, true)
|
|
1931
|
-
], 8, _hoisted_2$
|
|
1936
|
+
], 8, _hoisted_2$U)
|
|
1932
1937
|
], 2);
|
|
1933
1938
|
};
|
|
1934
1939
|
}
|
|
1935
1940
|
});
|
|
1936
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1941
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-70811078"]]);
|
|
1937
1942
|
function listenFocusLoss(onLoss) {
|
|
1938
1943
|
function onVisibilityChange() {
|
|
1939
1944
|
if (document.hidden) {
|
|
@@ -2446,13 +2451,13 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
|
|
|
2446
2451
|
const stops = zones.map((z) => `${dimmed && z.reveal ? "transparent" : z.color} ${ratioOf(z.from, min, max) * 100}% ${ratioOf(z.to, min, max) * 100}%`);
|
|
2447
2452
|
return `linear-gradient(${vertical ? "to top" : "to right"}, ${stops.join(", ")})`;
|
|
2448
2453
|
}
|
|
2449
|
-
const _hoisted_1
|
|
2450
|
-
const _hoisted_2$
|
|
2451
|
-
const _hoisted_3$
|
|
2454
|
+
const _hoisted_1$$ = ["aria-disabled"];
|
|
2455
|
+
const _hoisted_2$T = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "aria-keyshortcuts", "onKeydown"];
|
|
2456
|
+
const _hoisted_3$L = {
|
|
2452
2457
|
key: 2,
|
|
2453
2458
|
class: "tao-slider__value"
|
|
2454
2459
|
};
|
|
2455
|
-
const _hoisted_4$
|
|
2460
|
+
const _hoisted_4$D = ["aria-label", "onKeydown"];
|
|
2456
2461
|
const _hoisted_5$r = {
|
|
2457
2462
|
key: 0,
|
|
2458
2463
|
class: "tao-slider__marks"
|
|
@@ -2462,7 +2467,7 @@ const _hoisted_7$i = {
|
|
|
2462
2467
|
key: 0,
|
|
2463
2468
|
class: "tao-slider__mark-label"
|
|
2464
2469
|
};
|
|
2465
|
-
const _sfc_main$
|
|
2470
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
2466
2471
|
...{ name: "TaoSliderBase" },
|
|
2467
2472
|
__name: "TaoSliderBase",
|
|
2468
2473
|
props: {
|
|
@@ -2792,7 +2797,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2792
2797
|
"aria-keyshortcuts": __props.editable ? "Enter F2" : void 0,
|
|
2793
2798
|
onKeydown: ($event) => onKeydown2($event, i),
|
|
2794
2799
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
2795
|
-
}, null, 46, _hoisted_2$
|
|
2800
|
+
}, null, 46, _hoisted_2$T),
|
|
2796
2801
|
__props.bubble ? (openBlock(), createElementBlock("div", {
|
|
2797
2802
|
key: 0,
|
|
2798
2803
|
class: normalizeClass(["tao-slider__bubble", { "tao-slider__bubble--auto": bubbleAuto(v) }]),
|
|
@@ -2808,7 +2813,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2808
2813
|
], 6)) : createCommentVNode("", true)
|
|
2809
2814
|
], 64);
|
|
2810
2815
|
}), 128)),
|
|
2811
|
-
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2816
|
+
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$L, [
|
|
2812
2817
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2813
2818
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2814
2819
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
@@ -2837,7 +2842,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2837
2842
|
}, ["stop"])),
|
|
2838
2843
|
onWheel: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
2839
2844
|
}, ["stop"]))
|
|
2840
|
-
}, null, 40, _hoisted_4$
|
|
2845
|
+
}, null, 40, _hoisted_4$D)), [
|
|
2841
2846
|
[vModelText, draft.value]
|
|
2842
2847
|
]) : createCommentVNode("", true)
|
|
2843
2848
|
], 34),
|
|
@@ -2868,12 +2873,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2868
2873
|
], 14, _hoisted_6$m);
|
|
2869
2874
|
}), 128))
|
|
2870
2875
|
])) : createCommentVNode("", true)
|
|
2871
|
-
], 42, _hoisted_1
|
|
2876
|
+
], 42, _hoisted_1$$);
|
|
2872
2877
|
};
|
|
2873
2878
|
}
|
|
2874
2879
|
});
|
|
2875
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2876
|
-
const _sfc_main$
|
|
2880
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-8ec84551"]]);
|
|
2881
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
2877
2882
|
...{ name: "TaoSlider" },
|
|
2878
2883
|
__name: "TaoSlider",
|
|
2879
2884
|
props: {
|
|
@@ -2941,13 +2946,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2941
2946
|
};
|
|
2942
2947
|
}
|
|
2943
2948
|
});
|
|
2944
|
-
const _hoisted_1$
|
|
2945
|
-
const _hoisted_2$
|
|
2946
|
-
const _hoisted_3$
|
|
2949
|
+
const _hoisted_1$_ = { class: "tao-scrubber__controls" };
|
|
2950
|
+
const _hoisted_2$S = { class: "tao-scrubber__track" };
|
|
2951
|
+
const _hoisted_3$K = {
|
|
2947
2952
|
key: 0,
|
|
2948
2953
|
class: "tao-scrubber__time"
|
|
2949
2954
|
};
|
|
2950
|
-
const _sfc_main$
|
|
2955
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
2951
2956
|
...{ name: "TaoScrubber" },
|
|
2952
2957
|
__name: "TaoScrubber",
|
|
2953
2958
|
props: {
|
|
@@ -2987,7 +2992,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2987
2992
|
return openBlock(), createElementBlock("div", {
|
|
2988
2993
|
class: normalizeClass(["tao-scrubber", [unref(sizeClass)(__props.size), `tao-scrubber--${__props.variant}`, { "tao-scrubber--marks-start": __props.marksSide === "start", "tao-scrubber--disabled": __props.disabled }]])
|
|
2989
2994
|
}, [
|
|
2990
|
-
createElementVNode("div", _hoisted_1$
|
|
2995
|
+
createElementVNode("div", _hoisted_1$_, [
|
|
2991
2996
|
createVNode(TaoButton, {
|
|
2992
2997
|
size: "small",
|
|
2993
2998
|
variant: "secondary",
|
|
@@ -3017,8 +3022,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
3017
3022
|
_: 1
|
|
3018
3023
|
}, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
|
|
3019
3024
|
]),
|
|
3020
|
-
createElementVNode("div", _hoisted_2$
|
|
3021
|
-
createVNode(_sfc_main$
|
|
3025
|
+
createElementVNode("div", _hoisted_2$S, [
|
|
3026
|
+
createVNode(_sfc_main$1a, {
|
|
3022
3027
|
"model-value": __props.modelValue,
|
|
3023
3028
|
min: 0,
|
|
3024
3029
|
max: __props.length,
|
|
@@ -3041,7 +3046,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
3041
3046
|
} : void 0
|
|
3042
3047
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
3043
3048
|
]),
|
|
3044
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3049
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$K, [
|
|
3045
3050
|
renderSlot(_ctx.$slots, "time", {
|
|
3046
3051
|
time: __props.modelValue,
|
|
3047
3052
|
length: __props.length,
|
|
@@ -3054,7 +3059,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
3054
3059
|
};
|
|
3055
3060
|
}
|
|
3056
3061
|
});
|
|
3057
|
-
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3062
|
+
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-517dc331"]]);
|
|
3058
3063
|
const opposite = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
3059
3064
|
function computePosition(input) {
|
|
3060
3065
|
const { anchor, size, viewport, placement = "bottom-start", gap = 4, pad = 8, flip = true } = input;
|
|
@@ -3182,7 +3187,7 @@ function useFloating(anchor, panel, open, options = {}) {
|
|
|
3182
3187
|
});
|
|
3183
3188
|
return { style, side, anchorOffset, placed, update };
|
|
3184
3189
|
}
|
|
3185
|
-
const _sfc_main$
|
|
3190
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
3186
3191
|
...{ name: "TaoTooltip" },
|
|
3187
3192
|
__name: "TaoTooltip",
|
|
3188
3193
|
props: {
|
|
@@ -3260,7 +3265,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
3260
3265
|
};
|
|
3261
3266
|
}
|
|
3262
3267
|
});
|
|
3263
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3268
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-32ae3936"]]);
|
|
3264
3269
|
const resolved = ["compact", "default", "comfortable"];
|
|
3265
3270
|
function densityClass(density) {
|
|
3266
3271
|
return density ? `tao-density-${density}` : void 0;
|
|
@@ -3300,8 +3305,8 @@ function useDismiss(open, inside, onDismiss) {
|
|
|
3300
3305
|
);
|
|
3301
3306
|
onBeforeUnmount(stop);
|
|
3302
3307
|
}
|
|
3303
|
-
const _hoisted_1$
|
|
3304
|
-
const _sfc_main$
|
|
3308
|
+
const _hoisted_1$Z = { class: "tao-popover" };
|
|
3309
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
3305
3310
|
...{ name: "TaoPopover" },
|
|
3306
3311
|
__name: "TaoPopover",
|
|
3307
3312
|
props: {
|
|
@@ -3359,7 +3364,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3359
3364
|
}
|
|
3360
3365
|
});
|
|
3361
3366
|
return (_ctx, _cache) => {
|
|
3362
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3367
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
3363
3368
|
createElementVNode("div", {
|
|
3364
3369
|
ref_key: "triggerRef",
|
|
3365
3370
|
ref: triggerRef,
|
|
@@ -3388,7 +3393,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3388
3393
|
};
|
|
3389
3394
|
}
|
|
3390
3395
|
});
|
|
3391
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3396
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-5b104664"]]);
|
|
3392
3397
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
3393
3398
|
function frameStyle(bordered) {
|
|
3394
3399
|
if (bordered === void 0 || bordered === null) {
|
|
@@ -3396,14 +3401,14 @@ function frameStyle(bordered) {
|
|
|
3396
3401
|
}
|
|
3397
3402
|
return bordered ? { "--tao-frame-alpha": "100%", "--tao-frame-tint": "0%", "--tao-frame-fill": "0%" } : { "--tao-frame-alpha": "0%", "--tao-frame-tint": "6%", "--tao-frame-fill": "100%" };
|
|
3398
3403
|
}
|
|
3399
|
-
const _hoisted_1$
|
|
3400
|
-
const _hoisted_2$
|
|
3404
|
+
const _hoisted_1$Y = ["aria-expanded", "aria-controls"];
|
|
3405
|
+
const _hoisted_2$R = {
|
|
3401
3406
|
key: 0,
|
|
3402
3407
|
class: "tao-spoiler__title"
|
|
3403
3408
|
};
|
|
3404
|
-
const _hoisted_3$
|
|
3405
|
-
const _hoisted_4$
|
|
3406
|
-
const _sfc_main$
|
|
3409
|
+
const _hoisted_3$J = ["id"];
|
|
3410
|
+
const _hoisted_4$C = { class: "tao-spoiler__content-inner" };
|
|
3411
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
3407
3412
|
...{ name: "TaoSpoiler" },
|
|
3408
3413
|
__name: "TaoSpoiler",
|
|
3409
3414
|
props: {
|
|
@@ -3477,12 +3482,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3477
3482
|
class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }]),
|
|
3478
3483
|
name: "tao-chevron-right"
|
|
3479
3484
|
}, null, 8, ["class"]),
|
|
3480
|
-
__props.title || has("title") ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3485
|
+
__props.title || has("title") ? (openBlock(), createElementBlock("span", _hoisted_2$R, [
|
|
3481
3486
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3482
3487
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
3483
3488
|
], true)
|
|
3484
3489
|
])) : createCommentVNode("", true)
|
|
3485
|
-
], 8, _hoisted_1$
|
|
3490
|
+
], 8, _hoisted_1$Y),
|
|
3486
3491
|
createVNode(Transition, {
|
|
3487
3492
|
name: "tao-spoiler-slide",
|
|
3488
3493
|
onBeforeEnter,
|
|
@@ -3496,10 +3501,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3496
3501
|
id: unref(panelId),
|
|
3497
3502
|
class: "tao-spoiler__content"
|
|
3498
3503
|
}, [
|
|
3499
|
-
createElementVNode("div", _hoisted_4$
|
|
3504
|
+
createElementVNode("div", _hoisted_4$C, [
|
|
3500
3505
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3501
3506
|
])
|
|
3502
|
-
], 8, _hoisted_3$
|
|
3507
|
+
], 8, _hoisted_3$J)) : createCommentVNode("", true)
|
|
3503
3508
|
]),
|
|
3504
3509
|
_: 3
|
|
3505
3510
|
})
|
|
@@ -3507,9 +3512,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3507
3512
|
};
|
|
3508
3513
|
}
|
|
3509
3514
|
});
|
|
3510
|
-
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3511
|
-
const _hoisted_1$
|
|
3512
|
-
const _sfc_main$
|
|
3515
|
+
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-e9a2fb77"]]);
|
|
3516
|
+
const _hoisted_1$X = { class: "tao-spoiler-group" };
|
|
3517
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3513
3518
|
...{ name: "TaoSpoilerGroup" },
|
|
3514
3519
|
__name: "TaoSpoilerGroup",
|
|
3515
3520
|
props: {
|
|
@@ -3534,15 +3539,15 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3534
3539
|
setOpen
|
|
3535
3540
|
});
|
|
3536
3541
|
return (_ctx, _cache) => {
|
|
3537
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3542
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
3538
3543
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3539
3544
|
]);
|
|
3540
3545
|
};
|
|
3541
3546
|
}
|
|
3542
3547
|
});
|
|
3543
|
-
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3544
|
-
const _hoisted_1$
|
|
3545
|
-
const _sfc_main$
|
|
3548
|
+
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-7986fd2a"]]);
|
|
3549
|
+
const _hoisted_1$W = ["aria-label"];
|
|
3550
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3546
3551
|
...{ name: "TaoCopy" },
|
|
3547
3552
|
__name: "TaoCopy",
|
|
3548
3553
|
props: {
|
|
@@ -3614,7 +3619,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3614
3619
|
name: "tao-copy",
|
|
3615
3620
|
size: 16
|
|
3616
3621
|
})
|
|
3617
|
-
], 10, _hoisted_1$
|
|
3622
|
+
], 10, _hoisted_1$W)
|
|
3618
3623
|
], true),
|
|
3619
3624
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3620
3625
|
copied.value && __props.tip && doneText.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -3630,7 +3635,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3630
3635
|
};
|
|
3631
3636
|
}
|
|
3632
3637
|
});
|
|
3633
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3638
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-e181129d"]]);
|
|
3634
3639
|
function readTaoMode(el) {
|
|
3635
3640
|
const mode = el.getAttribute("data-tao-mode");
|
|
3636
3641
|
if (mode === "light" || mode === "dark") {
|
|
@@ -3645,16 +3650,29 @@ function applyTaoMode(el, mode) {
|
|
|
3645
3650
|
el.setAttribute("data-tao-theme", mode);
|
|
3646
3651
|
}
|
|
3647
3652
|
}
|
|
3648
|
-
|
|
3653
|
+
function systemTaoMode() {
|
|
3654
|
+
if (typeof matchMedia === "undefined") {
|
|
3655
|
+
return "dark";
|
|
3656
|
+
}
|
|
3657
|
+
return matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
3658
|
+
}
|
|
3659
|
+
function resolveTaoMode(choice) {
|
|
3660
|
+
return choice === "system" ? systemTaoMode() : choice;
|
|
3661
|
+
}
|
|
3662
|
+
const CHOICE_ATTR = "data-tao-mode-choice";
|
|
3663
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
3649
3664
|
...{ name: "TaoThemeToggle" },
|
|
3650
3665
|
__name: "TaoThemeToggle",
|
|
3651
3666
|
props: {
|
|
3652
3667
|
modelValue: { default: void 0 },
|
|
3653
3668
|
apply: { type: Boolean, default: true },
|
|
3669
|
+
system: { type: Boolean, default: false },
|
|
3654
3670
|
size: { default: void 0 },
|
|
3655
3671
|
variant: { default: "ghost" },
|
|
3672
|
+
tone: { default: "neutral" },
|
|
3656
3673
|
toLightLabel: { default: void 0 },
|
|
3657
|
-
toDarkLabel: { default: void 0 }
|
|
3674
|
+
toDarkLabel: { default: void 0 },
|
|
3675
|
+
toSystemLabel: { default: void 0 }
|
|
3658
3676
|
},
|
|
3659
3677
|
emits: ["update:modelValue", "change"],
|
|
3660
3678
|
setup(__props, { emit: __emit }) {
|
|
@@ -3662,70 +3680,123 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3662
3680
|
const emit = __emit;
|
|
3663
3681
|
const l10n = useLocaleText(props, "themeToggle");
|
|
3664
3682
|
const own = ref("dark");
|
|
3665
|
-
const
|
|
3683
|
+
const systemMode = ref("dark");
|
|
3684
|
+
const choice = computed(() => {
|
|
3685
|
+
const value = props.modelValue ?? own.value;
|
|
3686
|
+
return value === "system" && !props.system ? systemMode.value : value;
|
|
3687
|
+
});
|
|
3688
|
+
const mode = computed(() => choice.value === "system" ? systemMode.value : choice.value);
|
|
3689
|
+
function readChoice(root) {
|
|
3690
|
+
const current2 = readTaoMode(root);
|
|
3691
|
+
return props.system && root.getAttribute(CHOICE_ATTR) === "system" && current2 === systemTaoMode() ? "system" : current2;
|
|
3692
|
+
}
|
|
3693
|
+
function write(value) {
|
|
3694
|
+
if (!props.apply || typeof document === "undefined") {
|
|
3695
|
+
return;
|
|
3696
|
+
}
|
|
3697
|
+
const root = document.documentElement;
|
|
3698
|
+
applyTaoMode(root, resolveTaoMode(value));
|
|
3699
|
+
if (value === "system") {
|
|
3700
|
+
root.setAttribute(CHOICE_ATTR, "system");
|
|
3701
|
+
} else {
|
|
3702
|
+
root.removeAttribute(CHOICE_ATTR);
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3666
3705
|
let observer = null;
|
|
3706
|
+
let media = null;
|
|
3707
|
+
function onSystemChange() {
|
|
3708
|
+
systemMode.value = systemTaoMode();
|
|
3709
|
+
if (choice.value === "system") {
|
|
3710
|
+
write("system");
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3667
3713
|
onMounted(() => {
|
|
3668
3714
|
const root = document.documentElement;
|
|
3715
|
+
systemMode.value = systemTaoMode();
|
|
3716
|
+
if (typeof matchMedia !== "undefined") {
|
|
3717
|
+
media = matchMedia("(prefers-color-scheme: light)");
|
|
3718
|
+
media.addEventListener("change", onSystemChange);
|
|
3719
|
+
}
|
|
3669
3720
|
if (props.modelValue === void 0) {
|
|
3670
|
-
own.value =
|
|
3721
|
+
own.value = readChoice(root);
|
|
3671
3722
|
observer = new MutationObserver(() => {
|
|
3672
3723
|
if (props.modelValue === void 0) {
|
|
3673
|
-
own.value =
|
|
3724
|
+
own.value = readChoice(root);
|
|
3725
|
+
if (props.system && own.value !== "system" && root.hasAttribute(CHOICE_ATTR)) {
|
|
3726
|
+
root.removeAttribute(CHOICE_ATTR);
|
|
3727
|
+
}
|
|
3674
3728
|
}
|
|
3675
3729
|
});
|
|
3676
3730
|
observer.observe(root, { attributes: true, attributeFilter: ["data-tao-mode", "data-tao-theme"] });
|
|
3677
|
-
} else
|
|
3678
|
-
|
|
3731
|
+
} else {
|
|
3732
|
+
write(props.modelValue);
|
|
3679
3733
|
}
|
|
3680
3734
|
});
|
|
3681
3735
|
onBeforeUnmount(() => {
|
|
3682
3736
|
observer?.disconnect();
|
|
3683
3737
|
observer = null;
|
|
3738
|
+
media?.removeEventListener("change", onSystemChange);
|
|
3739
|
+
media = null;
|
|
3684
3740
|
});
|
|
3685
3741
|
watch(
|
|
3686
3742
|
() => props.modelValue,
|
|
3687
3743
|
(value) => {
|
|
3688
|
-
if (value
|
|
3689
|
-
|
|
3744
|
+
if (value) {
|
|
3745
|
+
write(value);
|
|
3690
3746
|
}
|
|
3691
3747
|
}
|
|
3692
3748
|
);
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
if (props.apply && typeof document !== "undefined") {
|
|
3697
|
-
applyTaoMode(document.documentElement, next);
|
|
3749
|
+
const next = computed(() => {
|
|
3750
|
+
if (!props.system) {
|
|
3751
|
+
return mode.value === "dark" ? "light" : "dark";
|
|
3698
3752
|
}
|
|
3699
|
-
|
|
3700
|
-
|
|
3753
|
+
return choice.value === "system" ? "light" : choice.value === "light" ? "dark" : "system";
|
|
3754
|
+
});
|
|
3755
|
+
function toggle() {
|
|
3756
|
+
const value = next.value;
|
|
3757
|
+
own.value = value;
|
|
3758
|
+
write(value);
|
|
3759
|
+
emit("update:modelValue", value);
|
|
3760
|
+
emit("change", value);
|
|
3701
3761
|
}
|
|
3702
|
-
const icon = computed(() =>
|
|
3703
|
-
|
|
3762
|
+
const icon = computed(() => {
|
|
3763
|
+
if (props.system) {
|
|
3764
|
+
return choice.value === "system" ? "tao-monitor" : choice.value === "dark" ? "tao-moon" : "tao-sun";
|
|
3765
|
+
}
|
|
3766
|
+
return mode.value === "dark" ? "tao-sun" : "tao-moon";
|
|
3767
|
+
});
|
|
3768
|
+
const label = computed(() => {
|
|
3769
|
+
const t = l10n.value;
|
|
3770
|
+
return next.value === "system" ? t.toSystemLabel : next.value === "light" ? t.toLightLabel : t.toDarkLabel;
|
|
3771
|
+
});
|
|
3704
3772
|
return (_ctx, _cache) => {
|
|
3705
3773
|
return _ctx.$slots.icon ? (openBlock(), createBlock(TaoButton, {
|
|
3706
3774
|
key: 0,
|
|
3707
3775
|
class: "tao-theme-toggle tao-theme-toggle--custom",
|
|
3708
3776
|
size: __props.size,
|
|
3709
3777
|
variant: __props.variant,
|
|
3778
|
+
tone: __props.tone,
|
|
3710
3779
|
"aria-label": label.value,
|
|
3711
3780
|
onClick: toggle
|
|
3712
3781
|
}, {
|
|
3713
3782
|
default: withCtx(() => [
|
|
3714
3783
|
renderSlot(_ctx.$slots, "icon", {
|
|
3715
3784
|
mode: mode.value,
|
|
3716
|
-
|
|
3785
|
+
choice: choice.value,
|
|
3786
|
+
next: next.value
|
|
3717
3787
|
})
|
|
3718
3788
|
]),
|
|
3719
3789
|
_: 3
|
|
3720
|
-
}, 8, ["size", "variant", "aria-label"])) : (openBlock(), createBlock(TaoButton, {
|
|
3790
|
+
}, 8, ["size", "variant", "tone", "aria-label"])) : (openBlock(), createBlock(TaoButton, {
|
|
3721
3791
|
key: 1,
|
|
3722
3792
|
class: "tao-theme-toggle",
|
|
3723
3793
|
icon: icon.value,
|
|
3724
3794
|
size: __props.size,
|
|
3725
3795
|
variant: __props.variant,
|
|
3796
|
+
tone: __props.tone,
|
|
3726
3797
|
"aria-label": label.value,
|
|
3727
3798
|
onClick: toggle
|
|
3728
|
-
}, null, 8, ["icon", "size", "variant", "aria-label"]));
|
|
3799
|
+
}, null, 8, ["icon", "size", "variant", "tone", "aria-label"]));
|
|
3729
3800
|
};
|
|
3730
3801
|
}
|
|
3731
3802
|
});
|
|
@@ -3763,17 +3834,17 @@ function holeClipPath(hole, viewport, radius) {
|
|
|
3763
3834
|
function isInView(rect, viewport, margin = 0) {
|
|
3764
3835
|
return rect.top >= margin && rect.left >= margin && rect.top + rect.height <= viewport.height - margin && rect.left + rect.width <= viewport.width - margin;
|
|
3765
3836
|
}
|
|
3766
|
-
const _hoisted_1$
|
|
3837
|
+
const _hoisted_1$V = {
|
|
3767
3838
|
key: 0,
|
|
3768
3839
|
class: "tao-tour"
|
|
3769
3840
|
};
|
|
3770
|
-
const _hoisted_2$
|
|
3841
|
+
const _hoisted_2$Q = {
|
|
3771
3842
|
key: 1,
|
|
3772
3843
|
class: "tao-tour__dim",
|
|
3773
3844
|
"aria-hidden": "true"
|
|
3774
3845
|
};
|
|
3775
|
-
const _hoisted_3$
|
|
3776
|
-
const _hoisted_4$
|
|
3846
|
+
const _hoisted_3$I = ["aria-labelledby", "aria-describedby"];
|
|
3847
|
+
const _hoisted_4$B = ["id"];
|
|
3777
3848
|
const _hoisted_5$q = ["id"];
|
|
3778
3849
|
const _hoisted_6$l = { class: "tao-tour__footer" };
|
|
3779
3850
|
const _hoisted_7$h = {
|
|
@@ -3786,7 +3857,7 @@ const _hoisted_8$b = {
|
|
|
3786
3857
|
};
|
|
3787
3858
|
const _hoisted_9$8 = { class: "tao-tour__progress-text" };
|
|
3788
3859
|
const _hoisted_10$4 = { class: "tao-tour__actions" };
|
|
3789
|
-
const _sfc_main$
|
|
3860
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
3790
3861
|
...{ name: "TaoTour" },
|
|
3791
3862
|
__name: "TaoTour",
|
|
3792
3863
|
props: {
|
|
@@ -3946,7 +4017,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3946
4017
|
}
|
|
3947
4018
|
return (_ctx, _cache) => {
|
|
3948
4019
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3949
|
-
__props.step ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4020
|
+
__props.step ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
3950
4021
|
createElementVNode("div", {
|
|
3951
4022
|
class: "tao-tour__blocker",
|
|
3952
4023
|
style: normalizeStyle(blockerStyle.value),
|
|
@@ -3957,7 +4028,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3957
4028
|
class: "tao-tour__hole",
|
|
3958
4029
|
style: normalizeStyle(holeStyle.value),
|
|
3959
4030
|
"aria-hidden": "true"
|
|
3960
|
-
}, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4031
|
+
}, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$Q)),
|
|
3961
4032
|
createElementVNode("div", {
|
|
3962
4033
|
ref_key: "cardRef",
|
|
3963
4034
|
ref: cardRef,
|
|
@@ -3984,7 +4055,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3984
4055
|
key: 0,
|
|
3985
4056
|
id: unref(titleId),
|
|
3986
4057
|
class: "tao-tour__title"
|
|
3987
|
-
}, toDisplayString(__props.step.title), 9, _hoisted_4$
|
|
4058
|
+
}, toDisplayString(__props.step.title), 9, _hoisted_4$B)) : createCommentVNode("", true),
|
|
3988
4059
|
__props.step.text ? (openBlock(), createElementBlock("p", {
|
|
3989
4060
|
key: 1,
|
|
3990
4061
|
id: unref(textId),
|
|
@@ -4037,13 +4108,13 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4037
4108
|
})
|
|
4038
4109
|
])
|
|
4039
4110
|
])
|
|
4040
|
-
], 46, _hoisted_3$
|
|
4111
|
+
], 46, _hoisted_3$I)
|
|
4041
4112
|
])) : createCommentVNode("", true)
|
|
4042
4113
|
]);
|
|
4043
4114
|
};
|
|
4044
4115
|
}
|
|
4045
4116
|
});
|
|
4046
|
-
const _sfc_main$
|
|
4117
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4047
4118
|
...{ name: "TaoContainer" },
|
|
4048
4119
|
__name: "TaoContainer",
|
|
4049
4120
|
props: {
|
|
@@ -4062,8 +4133,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
4062
4133
|
};
|
|
4063
4134
|
}
|
|
4064
4135
|
});
|
|
4065
|
-
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4066
|
-
const _sfc_main
|
|
4136
|
+
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-a5e36052"]]);
|
|
4137
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
4067
4138
|
...{ name: "TaoFlex" },
|
|
4068
4139
|
__name: "TaoFlex",
|
|
4069
4140
|
props: {
|
|
@@ -4094,7 +4165,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4094
4165
|
};
|
|
4095
4166
|
}
|
|
4096
4167
|
});
|
|
4097
|
-
const _sfc_main
|
|
4168
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
4098
4169
|
...{ name: "TaoSpace" },
|
|
4099
4170
|
__name: "TaoSpace",
|
|
4100
4171
|
props: {
|
|
@@ -4115,7 +4186,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
4115
4186
|
};
|
|
4116
4187
|
}
|
|
4117
4188
|
});
|
|
4118
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
4189
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-d6fec8bb"]]);
|
|
4119
4190
|
const FULL_SPAN = 999;
|
|
4120
4191
|
function perSize(value, fallback, compactPlain) {
|
|
4121
4192
|
if (value === void 0 || value === null) {
|
|
@@ -4131,8 +4202,8 @@ function perSize(value, fallback, compactPlain) {
|
|
|
4131
4202
|
return { compact, medium, expanded };
|
|
4132
4203
|
}
|
|
4133
4204
|
const spanNumber = (span) => span === "full" ? FULL_SPAN : Math.max(1, Math.round(span));
|
|
4134
|
-
const _hoisted_1$
|
|
4135
|
-
const _sfc_main$
|
|
4205
|
+
const _hoisted_1$U = { class: "tao-grid__cells" };
|
|
4206
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
4136
4207
|
...{ name: "TaoGrid" },
|
|
4137
4208
|
__name: "TaoGrid",
|
|
4138
4209
|
props: {
|
|
@@ -4160,15 +4231,15 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
4160
4231
|
class: normalizeClass(["tao-grid", { "tao-grid--fixed": isFixed.value }]),
|
|
4161
4232
|
style: normalizeStyle(gridStyle.value)
|
|
4162
4233
|
}, [
|
|
4163
|
-
createElementVNode("div", _hoisted_1$
|
|
4234
|
+
createElementVNode("div", _hoisted_1$U, [
|
|
4164
4235
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4165
4236
|
])
|
|
4166
4237
|
], 6);
|
|
4167
4238
|
};
|
|
4168
4239
|
}
|
|
4169
4240
|
});
|
|
4170
|
-
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4171
|
-
const _sfc_main$
|
|
4241
|
+
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-e95541e2"]]);
|
|
4242
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
4172
4243
|
...{ name: "TaoGridItem" },
|
|
4173
4244
|
__name: "TaoGridItem",
|
|
4174
4245
|
props: {
|
|
@@ -4204,15 +4275,15 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4204
4275
|
};
|
|
4205
4276
|
}
|
|
4206
4277
|
});
|
|
4207
|
-
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4208
|
-
const _hoisted_1$
|
|
4209
|
-
const _hoisted_2$
|
|
4210
|
-
const _hoisted_3$
|
|
4211
|
-
const _hoisted_4$
|
|
4278
|
+
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-d42e5e67"]]);
|
|
4279
|
+
const _hoisted_1$T = { class: "tao-split__pane tao-split__pane--start" };
|
|
4280
|
+
const _hoisted_2$P = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
4281
|
+
const _hoisted_3$H = { class: "tao-split__pane tao-split__pane--end" };
|
|
4282
|
+
const _hoisted_4$A = {
|
|
4212
4283
|
key: 0,
|
|
4213
4284
|
class: "tao-split__shield"
|
|
4214
4285
|
};
|
|
4215
|
-
const _sfc_main$
|
|
4286
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4216
4287
|
...{ name: "TaoSplit" },
|
|
4217
4288
|
__name: "TaoSplit",
|
|
4218
4289
|
props: {
|
|
@@ -4509,7 +4580,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4509
4580
|
]]),
|
|
4510
4581
|
style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
|
|
4511
4582
|
}, [
|
|
4512
|
-
createElementVNode("div", _hoisted_1$
|
|
4583
|
+
createElementVNode("div", _hoisted_1$T, [
|
|
4513
4584
|
renderSlot(_ctx.$slots, "start", {}, void 0, true)
|
|
4514
4585
|
]),
|
|
4515
4586
|
createElementVNode("div", {
|
|
@@ -4532,20 +4603,20 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4532
4603
|
onKeydown: onKeydown2,
|
|
4533
4604
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4534
4605
|
}, ["prevent"]))
|
|
4535
|
-
}, null, 40, _hoisted_2$
|
|
4536
|
-
createElementVNode("div", _hoisted_3$
|
|
4606
|
+
}, null, 40, _hoisted_2$P),
|
|
4607
|
+
createElementVNode("div", _hoisted_3$H, [
|
|
4537
4608
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4538
4609
|
]),
|
|
4539
|
-
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4610
|
+
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$A)) : createCommentVNode("", true)
|
|
4540
4611
|
], 6);
|
|
4541
4612
|
};
|
|
4542
4613
|
}
|
|
4543
4614
|
});
|
|
4544
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4545
|
-
const _hoisted_1$
|
|
4546
|
-
const _hoisted_2$
|
|
4547
|
-
const _hoisted_3$
|
|
4548
|
-
const _sfc_main$
|
|
4615
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-316b0d45"]]);
|
|
4616
|
+
const _hoisted_1$S = { class: "tao-image" };
|
|
4617
|
+
const _hoisted_2$O = ["src", "alt", "loading"];
|
|
4618
|
+
const _hoisted_3$G = { class: "tao-image__placeholder" };
|
|
4619
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
4549
4620
|
...{ name: "TaoImage" },
|
|
4550
4621
|
__name: "TaoImage",
|
|
4551
4622
|
props: {
|
|
@@ -4576,7 +4647,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4576
4647
|
hasError.value = false;
|
|
4577
4648
|
});
|
|
4578
4649
|
return (_ctx, _cache) => {
|
|
4579
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4650
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
4580
4651
|
__props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
|
|
4581
4652
|
key: 0,
|
|
4582
4653
|
class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
|
|
@@ -4587,26 +4658,26 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4587
4658
|
draggable: "false",
|
|
4588
4659
|
onLoad: handleLoad,
|
|
4589
4660
|
onError: handleError
|
|
4590
|
-
}, null, 42, _hoisted_2$
|
|
4661
|
+
}, null, 42, _hoisted_2$O)) : createCommentVNode("", true),
|
|
4591
4662
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4592
|
-
createElementVNode("div", _hoisted_3$
|
|
4663
|
+
createElementVNode("div", _hoisted_3$G, toDisplayString(__props.placeholderText), 1)
|
|
4593
4664
|
], true, 1) : createCommentVNode("", true)
|
|
4594
4665
|
]);
|
|
4595
4666
|
};
|
|
4596
4667
|
}
|
|
4597
4668
|
});
|
|
4598
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4599
|
-
const _hoisted_1$
|
|
4600
|
-
const _hoisted_2$
|
|
4601
|
-
const _hoisted_3$
|
|
4669
|
+
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-61f47c52"]]);
|
|
4670
|
+
const _hoisted_1$R = ["for"];
|
|
4671
|
+
const _hoisted_2$N = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
4672
|
+
const _hoisted_3$F = {
|
|
4602
4673
|
key: 0,
|
|
4603
4674
|
class: "tao-checkbox__label"
|
|
4604
4675
|
};
|
|
4605
|
-
const _hoisted_4$
|
|
4676
|
+
const _hoisted_4$z = {
|
|
4606
4677
|
key: 1,
|
|
4607
4678
|
class: "tao-checkbox__label"
|
|
4608
4679
|
};
|
|
4609
|
-
const _sfc_main$
|
|
4680
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
4610
4681
|
...{ name: "TaoCheckbox", inheritAttrs: false },
|
|
4611
4682
|
__name: "TaoCheckbox",
|
|
4612
4683
|
props: {
|
|
@@ -4677,25 +4748,25 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4677
4748
|
"aria-invalid": unref(invalid) || void 0,
|
|
4678
4749
|
"aria-describedby": unref(describedBy),
|
|
4679
4750
|
onChange: onInputChange
|
|
4680
|
-
}), null, 16, _hoisted_2$
|
|
4751
|
+
}), null, 16, _hoisted_2$N),
|
|
4681
4752
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
4682
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4753
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$F, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$z, [
|
|
4683
4754
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4684
4755
|
])),
|
|
4685
4756
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
4686
|
-
], 16, _hoisted_1$
|
|
4757
|
+
], 16, _hoisted_1$R);
|
|
4687
4758
|
};
|
|
4688
4759
|
}
|
|
4689
4760
|
});
|
|
4690
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4691
|
-
const _hoisted_1$
|
|
4761
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-55451432"]]);
|
|
4762
|
+
const _hoisted_1$Q = {
|
|
4692
4763
|
key: 0,
|
|
4693
4764
|
class: "tao-tag__prefix"
|
|
4694
4765
|
};
|
|
4695
|
-
const _hoisted_2$
|
|
4696
|
-
const _hoisted_3$
|
|
4697
|
-
const _hoisted_4$
|
|
4698
|
-
const _sfc_main$
|
|
4766
|
+
const _hoisted_2$M = { class: "tao-tag__text" };
|
|
4767
|
+
const _hoisted_3$E = ["aria-label"];
|
|
4768
|
+
const _hoisted_4$y = { "aria-hidden": "true" };
|
|
4769
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
4699
4770
|
...{ name: "TaoTag" },
|
|
4700
4771
|
__name: "TaoTag",
|
|
4701
4772
|
props: {
|
|
@@ -4738,10 +4809,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4738
4809
|
]]),
|
|
4739
4810
|
style: normalizeStyle(style.value)
|
|
4740
4811
|
}, [
|
|
4741
|
-
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
4812
|
+
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$Q, [
|
|
4742
4813
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
4743
4814
|
])) : createCommentVNode("", true),
|
|
4744
|
-
createElementVNode("span", _hoisted_2$
|
|
4815
|
+
createElementVNode("span", _hoisted_2$M, [
|
|
4745
4816
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4746
4817
|
]),
|
|
4747
4818
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
@@ -4751,27 +4822,27 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4751
4822
|
"aria-label": unref(l10n).closeLabel,
|
|
4752
4823
|
onClick: withModifiers(onClose, ["stop"])
|
|
4753
4824
|
}, [
|
|
4754
|
-
createElementVNode("span", _hoisted_4$
|
|
4825
|
+
createElementVNode("span", _hoisted_4$y, [
|
|
4755
4826
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
4756
4827
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4757
4828
|
], true)
|
|
4758
4829
|
])
|
|
4759
|
-
], 8, _hoisted_3$
|
|
4830
|
+
], 8, _hoisted_3$E)) : createCommentVNode("", true)
|
|
4760
4831
|
], 6);
|
|
4761
4832
|
};
|
|
4762
4833
|
}
|
|
4763
4834
|
});
|
|
4764
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4765
|
-
const _hoisted_1$
|
|
4766
|
-
const _hoisted_2$
|
|
4835
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-0af1f161"]]);
|
|
4836
|
+
const _hoisted_1$P = ["role", "aria-hidden"];
|
|
4837
|
+
const _hoisted_2$L = {
|
|
4767
4838
|
key: 1,
|
|
4768
4839
|
class: "tao-divider__text"
|
|
4769
4840
|
};
|
|
4770
|
-
const _hoisted_3$
|
|
4841
|
+
const _hoisted_3$D = {
|
|
4771
4842
|
key: 2,
|
|
4772
4843
|
class: "tao-divider__line tao-divider__line--end"
|
|
4773
4844
|
};
|
|
4774
|
-
const _sfc_main$
|
|
4845
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
4775
4846
|
...{ name: "TaoDivider" },
|
|
4776
4847
|
__name: "TaoDivider",
|
|
4777
4848
|
props: {
|
|
@@ -4803,23 +4874,23 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
4803
4874
|
key: 0,
|
|
4804
4875
|
class: normalizeClass(["tao-divider__line", { "tao-divider__line--start": hasLabel.value }])
|
|
4805
4876
|
}, null, 2)) : createCommentVNode("", true),
|
|
4806
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
4877
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$L, [
|
|
4807
4878
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4808
4879
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
4809
4880
|
], true)
|
|
4810
4881
|
])) : createCommentVNode("", true),
|
|
4811
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4812
|
-
], 10, _hoisted_1$
|
|
4882
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$D)) : createCommentVNode("", true)
|
|
4883
|
+
], 10, _hoisted_1$P);
|
|
4813
4884
|
};
|
|
4814
4885
|
}
|
|
4815
4886
|
});
|
|
4816
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4817
|
-
const _hoisted_1$
|
|
4887
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-c4a941aa"]]);
|
|
4888
|
+
const _hoisted_1$O = {
|
|
4818
4889
|
key: 0,
|
|
4819
4890
|
class: "tao-fieldset__legend"
|
|
4820
4891
|
};
|
|
4821
|
-
const _hoisted_2$
|
|
4822
|
-
const _sfc_main$
|
|
4892
|
+
const _hoisted_2$K = { class: "tao-fieldset__body" };
|
|
4893
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
4823
4894
|
...{ name: "TaoFieldset" },
|
|
4824
4895
|
__name: "TaoFieldset",
|
|
4825
4896
|
props: {
|
|
@@ -4833,20 +4904,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4833
4904
|
return openBlock(), createElementBlock("fieldset", {
|
|
4834
4905
|
class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
|
|
4835
4906
|
}, [
|
|
4836
|
-
__props.legend || has("legend") ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
4907
|
+
__props.legend || has("legend") ? (openBlock(), createElementBlock("legend", _hoisted_1$O, [
|
|
4837
4908
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
4838
4909
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
4839
4910
|
], true)
|
|
4840
4911
|
])) : createCommentVNode("", true),
|
|
4841
|
-
createElementVNode("div", _hoisted_2$
|
|
4912
|
+
createElementVNode("div", _hoisted_2$K, [
|
|
4842
4913
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4843
4914
|
])
|
|
4844
4915
|
], 2);
|
|
4845
4916
|
};
|
|
4846
4917
|
}
|
|
4847
4918
|
});
|
|
4848
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4849
|
-
const _sfc_main$
|
|
4919
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-3ab4beaf"]]);
|
|
4920
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
4850
4921
|
...{ name: "TaoAnimatedBorder" },
|
|
4851
4922
|
__name: "TaoAnimatedBorder",
|
|
4852
4923
|
props: {
|
|
@@ -4889,10 +4960,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4889
4960
|
};
|
|
4890
4961
|
}
|
|
4891
4962
|
});
|
|
4892
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4893
|
-
const _hoisted_1$
|
|
4894
|
-
const _hoisted_2$
|
|
4895
|
-
const _sfc_main$
|
|
4963
|
+
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-86ba074e"]]);
|
|
4964
|
+
const _hoisted_1$N = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "readonly", "rows", "value", "aria-invalid", "aria-describedby"];
|
|
4965
|
+
const _hoisted_2$J = ["id"];
|
|
4966
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
4896
4967
|
...{ name: "TaoTextarea", inheritAttrs: false },
|
|
4897
4968
|
__name: "TaoTextarea",
|
|
4898
4969
|
props: {
|
|
@@ -5030,25 +5101,25 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5030
5101
|
onFocus,
|
|
5031
5102
|
onBlur,
|
|
5032
5103
|
onKeydown: onKeydown2
|
|
5033
|
-
}), null, 16, _hoisted_1$
|
|
5104
|
+
}), null, 16, _hoisted_1$N),
|
|
5034
5105
|
__props.count ? (openBlock(), createElementBlock("span", {
|
|
5035
5106
|
key: 0,
|
|
5036
5107
|
id: counterId.value,
|
|
5037
5108
|
class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
|
|
5038
|
-
}, toDisplayString(countLabel.value), 11, _hoisted_2$
|
|
5109
|
+
}, toDisplayString(countLabel.value), 11, _hoisted_2$J)) : createCommentVNode("", true)
|
|
5039
5110
|
], 16);
|
|
5040
5111
|
};
|
|
5041
5112
|
}
|
|
5042
5113
|
});
|
|
5043
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5044
|
-
const _hoisted_1$
|
|
5045
|
-
const _hoisted_2$
|
|
5046
|
-
const _hoisted_3$
|
|
5114
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-9aaf7131"]]);
|
|
5115
|
+
const _hoisted_1$M = ["aria-label"];
|
|
5116
|
+
const _hoisted_2$I = { class: "tao-scroll-top__content" };
|
|
5117
|
+
const _hoisted_3$C = {
|
|
5047
5118
|
key: 0,
|
|
5048
5119
|
class: "tao-scroll-top__text",
|
|
5049
5120
|
"aria-hidden": "true"
|
|
5050
5121
|
};
|
|
5051
|
-
const _sfc_main$
|
|
5122
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
5052
5123
|
...{ name: "TaoScrollTop", inheritAttrs: false },
|
|
5053
5124
|
__name: "TaoScrollTop",
|
|
5054
5125
|
props: {
|
|
@@ -5143,8 +5214,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5143
5214
|
"aria-label": accessibleName.value,
|
|
5144
5215
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
5145
5216
|
}), [
|
|
5146
|
-
createElementVNode("span", _hoisted_2$
|
|
5147
|
-
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5217
|
+
createElementVNode("span", _hoisted_2$I, [
|
|
5218
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$C, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
5148
5219
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5149
5220
|
createVNode(TaoIcon, {
|
|
5150
5221
|
class: "tao-scroll-top__icon",
|
|
@@ -5153,7 +5224,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5153
5224
|
})
|
|
5154
5225
|
], true)
|
|
5155
5226
|
])
|
|
5156
|
-
], 16, _hoisted_1$
|
|
5227
|
+
], 16, _hoisted_1$M),
|
|
5157
5228
|
!isText.value && caption.value ? (openBlock(), createElementBlock("span", {
|
|
5158
5229
|
key: 0,
|
|
5159
5230
|
class: normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
|
|
@@ -5166,14 +5237,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5166
5237
|
};
|
|
5167
5238
|
}
|
|
5168
5239
|
});
|
|
5169
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5170
|
-
const _hoisted_1$
|
|
5171
|
-
const _hoisted_2$
|
|
5240
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-abce6609"]]);
|
|
5241
|
+
const _hoisted_1$L = { class: "tao-progress" };
|
|
5242
|
+
const _hoisted_2$H = {
|
|
5172
5243
|
key: 0,
|
|
5173
5244
|
class: "tao-progress__side"
|
|
5174
5245
|
};
|
|
5175
|
-
const _hoisted_3$
|
|
5176
|
-
const _hoisted_4$
|
|
5246
|
+
const _hoisted_3$B = { class: "tao-progress__main" };
|
|
5247
|
+
const _hoisted_4$x = {
|
|
5177
5248
|
key: 0,
|
|
5178
5249
|
class: "tao-progress__percentage"
|
|
5179
5250
|
};
|
|
@@ -5185,7 +5256,7 @@ const _hoisted_6$k = {
|
|
|
5185
5256
|
key: 0,
|
|
5186
5257
|
class: "tao-progress__percentage"
|
|
5187
5258
|
};
|
|
5188
|
-
const _sfc_main$
|
|
5259
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
5189
5260
|
...{ name: "TaoProgress" },
|
|
5190
5261
|
__name: "TaoProgress",
|
|
5191
5262
|
props: {
|
|
@@ -5215,16 +5286,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
5215
5286
|
() => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
|
|
5216
5287
|
);
|
|
5217
5288
|
return (_ctx, _cache) => {
|
|
5218
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5289
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
5219
5290
|
createElementVNode("div", {
|
|
5220
5291
|
class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
|
|
5221
5292
|
style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
|
|
5222
5293
|
}, [
|
|
5223
|
-
has("left") ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5294
|
+
has("left") ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
|
5224
5295
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
5225
5296
|
])) : createCommentVNode("", true),
|
|
5226
|
-
createElementVNode("div", _hoisted_3$
|
|
5227
|
-
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
5297
|
+
createElementVNode("div", _hoisted_3$B, [
|
|
5298
|
+
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$x, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
5228
5299
|
createElementVNode("div", {
|
|
5229
5300
|
class: "tao-progress__track",
|
|
5230
5301
|
style: normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -5244,8 +5315,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
5244
5315
|
};
|
|
5245
5316
|
}
|
|
5246
5317
|
});
|
|
5247
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5248
|
-
const _sfc_main$
|
|
5318
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-35c69b59"]]);
|
|
5319
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
5249
5320
|
...{ name: "TaoRangeSlider" },
|
|
5250
5321
|
__name: "TaoRangeSlider",
|
|
5251
5322
|
props: {
|
|
@@ -5340,10 +5411,10 @@ function partitionByAccept(files, accept) {
|
|
|
5340
5411
|
}
|
|
5341
5412
|
return { accepted, rejected };
|
|
5342
5413
|
}
|
|
5343
|
-
const _hoisted_1$
|
|
5344
|
-
const _hoisted_2$
|
|
5345
|
-
const _hoisted_3$
|
|
5346
|
-
const _hoisted_4$
|
|
5414
|
+
const _hoisted_1$K = { class: "tao-file-drop__row" };
|
|
5415
|
+
const _hoisted_2$G = ["aria-label"];
|
|
5416
|
+
const _hoisted_3$A = { "aria-hidden": "true" };
|
|
5417
|
+
const _hoisted_4$w = ["accept", "multiple"];
|
|
5347
5418
|
const _hoisted_5$o = {
|
|
5348
5419
|
key: 0,
|
|
5349
5420
|
class: "tao-file-drop__list"
|
|
@@ -5352,7 +5423,7 @@ const _hoisted_6$j = { class: "tao-file-drop__name" };
|
|
|
5352
5423
|
const _hoisted_7$g = { class: "tao-file-drop__meta" };
|
|
5353
5424
|
const _hoisted_8$a = ["aria-label", "onClick"];
|
|
5354
5425
|
const _hoisted_9$7 = { "aria-hidden": "true" };
|
|
5355
|
-
const _sfc_main$
|
|
5426
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
5356
5427
|
...{ name: "TaoFileDrop", inheritAttrs: false },
|
|
5357
5428
|
__name: "TaoFileDrop",
|
|
5358
5429
|
props: {
|
|
@@ -5470,7 +5541,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5470
5541
|
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
5471
5542
|
class: ["tao-file-drop", unref(sizeClass)(__props.size)]
|
|
5472
5543
|
}), [
|
|
5473
|
-
createElementVNode("div", _hoisted_1$
|
|
5544
|
+
createElementVNode("div", _hoisted_1$K, [
|
|
5474
5545
|
__props.showClear && __props.modelValue.length ? (openBlock(), createElementBlock("button", {
|
|
5475
5546
|
key: 0,
|
|
5476
5547
|
type: "button",
|
|
@@ -5478,12 +5549,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5478
5549
|
"aria-label": unref(l10n).clearLabel,
|
|
5479
5550
|
onClick: requestClear
|
|
5480
5551
|
}, [
|
|
5481
|
-
createElementVNode("span", _hoisted_3$
|
|
5552
|
+
createElementVNode("span", _hoisted_3$A, [
|
|
5482
5553
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
5483
5554
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
5484
5555
|
], true)
|
|
5485
5556
|
])
|
|
5486
|
-
], 8, _hoisted_2$
|
|
5557
|
+
], 8, _hoisted_2$G)) : createCommentVNode("", true),
|
|
5487
5558
|
createElementVNode("label", {
|
|
5488
5559
|
class: normalizeClass(["tao-file-drop__zone", { "tao-file-drop__zone--dragging": isDragging.value }]),
|
|
5489
5560
|
onDragover: handleDragOver,
|
|
@@ -5503,7 +5574,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5503
5574
|
onChange: handleFileSelect,
|
|
5504
5575
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5505
5576
|
}, ["stop"]))
|
|
5506
|
-
}), null, 16, _hoisted_4$
|
|
5577
|
+
}), null, 16, _hoisted_4$w)
|
|
5507
5578
|
], 34)
|
|
5508
5579
|
]),
|
|
5509
5580
|
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$o, [
|
|
@@ -5533,7 +5604,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5533
5604
|
};
|
|
5534
5605
|
}
|
|
5535
5606
|
});
|
|
5536
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5607
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-093403e5"]]);
|
|
5537
5608
|
function isMenuSelectable(item) {
|
|
5538
5609
|
return item.type !== "separator" && item.type !== "label" && !item.disabled;
|
|
5539
5610
|
}
|
|
@@ -5619,18 +5690,18 @@ function useListNav(options) {
|
|
|
5619
5690
|
}
|
|
5620
5691
|
return { onKeydown: onKeydown2 };
|
|
5621
5692
|
}
|
|
5622
|
-
const _hoisted_1$
|
|
5623
|
-
const _hoisted_2$
|
|
5693
|
+
const _hoisted_1$J = ["aria-label", "aria-activedescendant", "data-tao-menu-root"];
|
|
5694
|
+
const _hoisted_2$F = {
|
|
5624
5695
|
key: 0,
|
|
5625
5696
|
class: "tao-menu__separator",
|
|
5626
5697
|
role: "separator"
|
|
5627
5698
|
};
|
|
5628
|
-
const _hoisted_3$
|
|
5699
|
+
const _hoisted_3$z = {
|
|
5629
5700
|
key: 1,
|
|
5630
5701
|
class: "tao-menu__label",
|
|
5631
5702
|
role: "presentation"
|
|
5632
5703
|
};
|
|
5633
|
-
const _hoisted_4$
|
|
5704
|
+
const _hoisted_4$v = ["id", "role", "aria-checked", "aria-disabled", "aria-haspopup", "aria-expanded", "aria-keyshortcuts", "onClick", "onMouseenter"];
|
|
5634
5705
|
const _hoisted_5$n = { class: "tao-menu__text" };
|
|
5635
5706
|
const _hoisted_6$i = {
|
|
5636
5707
|
key: 1,
|
|
@@ -5641,7 +5712,7 @@ const _hoisted_7$f = {
|
|
|
5641
5712
|
class: "tao-menu__arrow",
|
|
5642
5713
|
"aria-hidden": "true"
|
|
5643
5714
|
};
|
|
5644
|
-
const _sfc_main$
|
|
5715
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
5645
5716
|
...{ name: "TaoMenu" },
|
|
5646
5717
|
__name: "TaoMenu",
|
|
5647
5718
|
props: {
|
|
@@ -5824,7 +5895,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5824
5895
|
return openBlock(), createElementBlock(Fragment, {
|
|
5825
5896
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
5826
5897
|
}, [
|
|
5827
|
-
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5898
|
+
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$F)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5828
5899
|
createElementVNode("div", {
|
|
5829
5900
|
id: itemId(index),
|
|
5830
5901
|
ref_for: true,
|
|
@@ -5863,7 +5934,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5863
5934
|
]),
|
|
5864
5935
|
"shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$i, toDisplayString(item.shortcut), 1)) : createCommentVNode("", true),
|
|
5865
5936
|
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$f)) : createCommentVNode("", true)
|
|
5866
|
-
], 42, _hoisted_4$
|
|
5937
|
+
], 42, _hoisted_4$v),
|
|
5867
5938
|
"items" in item && item.items && openSub.value === index ? (openBlock(), createBlock(_component_TaoMenu, {
|
|
5868
5939
|
key: 0,
|
|
5869
5940
|
items: item.items,
|
|
@@ -5877,18 +5948,18 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5877
5948
|
], 64))
|
|
5878
5949
|
], 64);
|
|
5879
5950
|
}), 128))
|
|
5880
|
-
], 46, _hoisted_1$
|
|
5951
|
+
], 46, _hoisted_1$J)) : createCommentVNode("", true)
|
|
5881
5952
|
]);
|
|
5882
5953
|
};
|
|
5883
5954
|
}
|
|
5884
5955
|
});
|
|
5885
|
-
const _hoisted_1$
|
|
5886
|
-
const _hoisted_2$
|
|
5887
|
-
const _hoisted_3$
|
|
5956
|
+
const _hoisted_1$I = { class: "tao-dropdown-menu" };
|
|
5957
|
+
const _hoisted_2$E = ["tabindex", "aria-expanded", "aria-label"];
|
|
5958
|
+
const _hoisted_3$y = {
|
|
5888
5959
|
key: 1,
|
|
5889
5960
|
"aria-hidden": "true"
|
|
5890
5961
|
};
|
|
5891
|
-
const _sfc_main$
|
|
5962
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
5892
5963
|
...{ name: "TaoDropdownMenu" },
|
|
5893
5964
|
__name: "TaoDropdownMenu",
|
|
5894
5965
|
props: {
|
|
@@ -5922,7 +5993,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5922
5993
|
}
|
|
5923
5994
|
}
|
|
5924
5995
|
return (_ctx, _cache) => {
|
|
5925
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5996
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
5926
5997
|
createElementVNode("button", {
|
|
5927
5998
|
ref_key: "triggerRef",
|
|
5928
5999
|
ref: triggerRef,
|
|
@@ -5935,13 +6006,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5935
6006
|
onClick: toggleMenu,
|
|
5936
6007
|
onKeydown: onTriggerKeydown
|
|
5937
6008
|
}, [
|
|
5938
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
6009
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$y, [
|
|
5939
6010
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5940
6011
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
5941
6012
|
], true)
|
|
5942
6013
|
]))
|
|
5943
|
-
], 42, _hoisted_2$
|
|
5944
|
-
createVNode(_sfc_main$
|
|
6014
|
+
], 42, _hoisted_2$E),
|
|
6015
|
+
createVNode(_sfc_main$M, {
|
|
5945
6016
|
items: __props.items,
|
|
5946
6017
|
open: isOpen.value,
|
|
5947
6018
|
anchor: triggerRef.value,
|
|
@@ -5963,8 +6034,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5963
6034
|
};
|
|
5964
6035
|
}
|
|
5965
6036
|
});
|
|
5966
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5967
|
-
const _sfc_main$
|
|
6037
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-0e71d618"]]);
|
|
6038
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
5968
6039
|
...{ name: "TaoContextMenu" },
|
|
5969
6040
|
__name: "TaoContextMenu",
|
|
5970
6041
|
props: {
|
|
@@ -6017,7 +6088,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
6017
6088
|
"aria-hidden": "true",
|
|
6018
6089
|
style: normalizeStyle({ left: `${point.value.x}px`, top: `${point.value.y}px` })
|
|
6019
6090
|
}, null, 4),
|
|
6020
|
-
createVNode(_sfc_main$
|
|
6091
|
+
createVNode(_sfc_main$M, {
|
|
6021
6092
|
items: __props.items,
|
|
6022
6093
|
open: isOpen.value,
|
|
6023
6094
|
anchor: anchor.value,
|
|
@@ -6039,10 +6110,10 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
6039
6110
|
};
|
|
6040
6111
|
}
|
|
6041
6112
|
});
|
|
6042
|
-
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6043
|
-
const _hoisted_1$
|
|
6044
|
-
const _hoisted_2$
|
|
6045
|
-
const _sfc_main$
|
|
6113
|
+
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-65a7f071"]]);
|
|
6114
|
+
const _hoisted_1$H = ["aria-label"];
|
|
6115
|
+
const _hoisted_2$D = ["tabindex", "aria-haspopup", "aria-expanded", "aria-disabled", "onClick", "onKeydown", "onMouseenter", "onFocus"];
|
|
6116
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
6046
6117
|
...{ name: "TaoMenubar" },
|
|
6047
6118
|
__name: "TaoMenubar",
|
|
6048
6119
|
props: {
|
|
@@ -6172,8 +6243,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6172
6243
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
6173
6244
|
onMouseenter: ($event) => onEnter(index),
|
|
6174
6245
|
onFocus: ($event) => current2.value = index
|
|
6175
|
-
}, toDisplayString(entry.label), 43, _hoisted_2$
|
|
6176
|
-
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$
|
|
6246
|
+
}, toDisplayString(entry.label), 43, _hoisted_2$D),
|
|
6247
|
+
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$M, {
|
|
6177
6248
|
key: 0,
|
|
6178
6249
|
items: entry.items,
|
|
6179
6250
|
open: openIndex.value === index,
|
|
@@ -6195,16 +6266,47 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6195
6266
|
]), 1032, ["items", "open", "anchor", "label", "close-on-scroll"])) : createCommentVNode("", true)
|
|
6196
6267
|
], 64);
|
|
6197
6268
|
}), 128))
|
|
6198
|
-
], 14, _hoisted_1$
|
|
6269
|
+
], 14, _hoisted_1$H);
|
|
6199
6270
|
};
|
|
6200
6271
|
}
|
|
6201
6272
|
});
|
|
6202
|
-
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6273
|
+
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-446c1c49"]]);
|
|
6203
6274
|
const toolbarKey = Symbol("tao-toolbar");
|
|
6275
|
+
function planOverflow(entries, available, gap, moreWidth) {
|
|
6276
|
+
const away = /* @__PURE__ */ new Set();
|
|
6277
|
+
const widthOf = (hidden) => {
|
|
6278
|
+
let count = 0;
|
|
6279
|
+
let sum = 0;
|
|
6280
|
+
entries.forEach((entry, i) => {
|
|
6281
|
+
if (!hidden.has(i)) {
|
|
6282
|
+
count += 1;
|
|
6283
|
+
sum += entry.width;
|
|
6284
|
+
}
|
|
6285
|
+
});
|
|
6286
|
+
return sum + gap * Math.max(0, count - 1) + (hidden.size ? gap + moreWidth : 0);
|
|
6287
|
+
};
|
|
6288
|
+
if (widthOf(away) <= available) {
|
|
6289
|
+
return away;
|
|
6290
|
+
}
|
|
6291
|
+
for (let i = entries.length - 1; i >= 0; i -= 1) {
|
|
6292
|
+
const entry = entries[i];
|
|
6293
|
+
if (entry.kind !== "group" || entry.pinned) {
|
|
6294
|
+
continue;
|
|
6295
|
+
}
|
|
6296
|
+
away.add(i);
|
|
6297
|
+
if (entries[i - 1]?.kind === "separator") {
|
|
6298
|
+
away.add(i - 1);
|
|
6299
|
+
}
|
|
6300
|
+
if (widthOf(away) <= available) {
|
|
6301
|
+
break;
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
return away;
|
|
6305
|
+
}
|
|
6204
6306
|
const ITEMS = 'button, a[href], input, select, textarea, [role="button"], [data-tao-toolbar-item]';
|
|
6205
6307
|
const TEXT_INPUT = /^(text|search|email|url|tel|password|number|date|time|datetime-local|month|week)$/;
|
|
6206
6308
|
function usable(el) {
|
|
6207
|
-
if (el.disabled || el.getAttribute("aria-disabled") === "true" || el.hidden) {
|
|
6309
|
+
if (el.disabled || el.getAttribute("aria-disabled") === "true" || el.closest("[hidden], [data-tao-away]")) {
|
|
6208
6310
|
return false;
|
|
6209
6311
|
}
|
|
6210
6312
|
return !el.parentElement?.closest(ITEMS);
|
|
@@ -6252,8 +6354,11 @@ function isTextField(el) {
|
|
|
6252
6354
|
}
|
|
6253
6355
|
return el instanceof HTMLInputElement && TEXT_INPUT.test(el.type);
|
|
6254
6356
|
}
|
|
6255
|
-
const _hoisted_1$
|
|
6256
|
-
const
|
|
6357
|
+
const _hoisted_1$G = ["aria-label", "aria-orientation"];
|
|
6358
|
+
const _hoisted_2$C = ["data-tao-away"];
|
|
6359
|
+
const _hoisted_3$x = ["aria-label"];
|
|
6360
|
+
const _hoisted_4$u = ["aria-label"];
|
|
6361
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
6257
6362
|
...{ name: "TaoToolbar" },
|
|
6258
6363
|
__name: "TaoToolbar",
|
|
6259
6364
|
props: {
|
|
@@ -6261,133 +6366,480 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6261
6366
|
size: { default: void 0 },
|
|
6262
6367
|
orientation: { default: "horizontal" },
|
|
6263
6368
|
variant: { default: "panel" },
|
|
6264
|
-
bordered: { type: Boolean, default: void 0 }
|
|
6369
|
+
bordered: { type: Boolean, default: void 0 },
|
|
6370
|
+
overflow: { type: Boolean, default: false },
|
|
6371
|
+
overflowLabel: { default: void 0 }
|
|
6265
6372
|
},
|
|
6266
|
-
setup(__props) {
|
|
6373
|
+
setup(__props, { expose: __expose }) {
|
|
6267
6374
|
const props = __props;
|
|
6268
|
-
|
|
6375
|
+
const l10n = useLocaleText(props, "toolbar");
|
|
6376
|
+
const managed = computed(() => props.overflow && props.orientation === "horizontal");
|
|
6269
6377
|
const root = ref(null);
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6378
|
+
const moreHost = ref(null);
|
|
6379
|
+
const panel = ref(null);
|
|
6380
|
+
const menuEl = ref(null);
|
|
6381
|
+
function createRoving(getRoot) {
|
|
6382
|
+
let current2 = 0;
|
|
6383
|
+
function refresh() {
|
|
6384
|
+
const el = getRoot();
|
|
6385
|
+
if (!el) {
|
|
6386
|
+
return;
|
|
6387
|
+
}
|
|
6388
|
+
const stops = toolbarStops(el);
|
|
6389
|
+
current2 = Math.min(current2, Math.max(0, stops.length - 1));
|
|
6390
|
+
applyRoving(stops, current2);
|
|
6275
6391
|
}
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6392
|
+
function onFocusin(event) {
|
|
6393
|
+
const el = getRoot();
|
|
6394
|
+
if (!el) {
|
|
6395
|
+
return;
|
|
6396
|
+
}
|
|
6397
|
+
const stops = toolbarStops(el);
|
|
6398
|
+
const index = stops.findIndex((stop) => stop.els.includes(event.target));
|
|
6399
|
+
if (index !== -1 && index !== current2) {
|
|
6400
|
+
current2 = index;
|
|
6401
|
+
applyRoving(stops, current2);
|
|
6402
|
+
}
|
|
6283
6403
|
}
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6404
|
+
function onKeydown2(event) {
|
|
6405
|
+
const el = getRoot();
|
|
6406
|
+
if (!el || event.altKey || event.ctrlKey || event.metaKey || isTextField(event.target)) {
|
|
6407
|
+
return;
|
|
6408
|
+
}
|
|
6409
|
+
const vertical = props.orientation === "vertical";
|
|
6410
|
+
const next = vertical ? "ArrowDown" : "ArrowRight";
|
|
6411
|
+
const prev = vertical ? "ArrowUp" : "ArrowLeft";
|
|
6412
|
+
if (![next, prev, "Home", "End"].includes(event.key)) {
|
|
6413
|
+
return;
|
|
6414
|
+
}
|
|
6415
|
+
const stops = toolbarStops(el);
|
|
6416
|
+
const target = event.target;
|
|
6417
|
+
const index = stops.findIndex((stop2) => stop2.els.includes(target));
|
|
6418
|
+
if (index === -1) {
|
|
6419
|
+
return;
|
|
6420
|
+
}
|
|
6421
|
+
const stop = stops[index];
|
|
6422
|
+
if (isRadio(target) && (event.key === next || event.key === prev)) {
|
|
6423
|
+
const edge = event.key === next ? stop.els[stop.els.length - 1] : stop.els[0];
|
|
6424
|
+
if (target !== edge) {
|
|
6425
|
+
return;
|
|
6426
|
+
}
|
|
6427
|
+
}
|
|
6428
|
+
let to;
|
|
6429
|
+
if (event.key === "Home") {
|
|
6430
|
+
to = 0;
|
|
6431
|
+
} else if (event.key === "End") {
|
|
6432
|
+
to = stops.length - 1;
|
|
6433
|
+
} else {
|
|
6434
|
+
to = (index + (event.key === next ? 1 : -1) + stops.length) % stops.length;
|
|
6435
|
+
}
|
|
6436
|
+
event.preventDefault();
|
|
6437
|
+
current2 = to;
|
|
6438
|
+
applyRoving(stops, current2);
|
|
6439
|
+
stopTarget(stops[to]).focus();
|
|
6440
|
+
}
|
|
6441
|
+
function focusFirst() {
|
|
6442
|
+
const el = getRoot();
|
|
6443
|
+
const stops = el ? toolbarStops(el) : [];
|
|
6444
|
+
if (!stops.length) {
|
|
6445
|
+
return false;
|
|
6446
|
+
}
|
|
6447
|
+
current2 = 0;
|
|
6288
6448
|
applyRoving(stops, current2);
|
|
6449
|
+
stopTarget(stops[0]).focus({ preventScroll: true });
|
|
6450
|
+
return true;
|
|
6289
6451
|
}
|
|
6452
|
+
return { refresh, onFocusin, onKeydown: onKeydown2, focusFirst };
|
|
6290
6453
|
}
|
|
6291
|
-
|
|
6292
|
-
|
|
6454
|
+
const bar = createRoving(() => root.value);
|
|
6455
|
+
const menu = createRoving(() => menuEl.value);
|
|
6456
|
+
const units = [];
|
|
6457
|
+
const anyAway = ref(false);
|
|
6458
|
+
const open = ref(false);
|
|
6459
|
+
const panelSize = ref("medium");
|
|
6460
|
+
const panelDensity = ref("default");
|
|
6461
|
+
let moreWidth = 0;
|
|
6462
|
+
let measureQueued = false;
|
|
6463
|
+
let resizeObserver;
|
|
6464
|
+
function register(unit) {
|
|
6465
|
+
units.push(unit);
|
|
6466
|
+
schedule();
|
|
6467
|
+
return () => {
|
|
6468
|
+
units.splice(units.indexOf(unit), 1);
|
|
6469
|
+
schedule();
|
|
6470
|
+
};
|
|
6471
|
+
}
|
|
6472
|
+
provide(toolbarKey, { orientation: toRef(props, "orientation"), overflow: managed, menuEl, register });
|
|
6473
|
+
function outerWidth(el) {
|
|
6474
|
+
const rect = el.getBoundingClientRect();
|
|
6475
|
+
const style = getComputedStyle(el);
|
|
6476
|
+
return rect.width + (parseFloat(style.marginLeft) || 0) + (parseFloat(style.marginRight) || 0);
|
|
6477
|
+
}
|
|
6478
|
+
function observeUnits() {
|
|
6479
|
+
if (!resizeObserver) {
|
|
6293
6480
|
return;
|
|
6294
6481
|
}
|
|
6295
|
-
const
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6482
|
+
for (const unit of units) {
|
|
6483
|
+
const target = unit.kind === "group" ? unit.el.value?.firstElementChild : unit.el.value;
|
|
6484
|
+
if (target) {
|
|
6485
|
+
resizeObserver.observe(target);
|
|
6486
|
+
}
|
|
6300
6487
|
}
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
const
|
|
6304
|
-
if (
|
|
6488
|
+
}
|
|
6489
|
+
async function measure() {
|
|
6490
|
+
const el = root.value;
|
|
6491
|
+
if (!managed.value || !el || el.clientWidth === 0) {
|
|
6305
6492
|
return;
|
|
6306
6493
|
}
|
|
6307
|
-
const
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6494
|
+
const style = getComputedStyle(el);
|
|
6495
|
+
const gap = parseFloat(style.columnGap) || 0;
|
|
6496
|
+
const available = el.clientWidth - (parseFloat(style.paddingLeft) || 0) - (parseFloat(style.paddingRight) || 0);
|
|
6497
|
+
if (moreHost.value && !moreHost.value.hasAttribute("data-tao-away")) {
|
|
6498
|
+
moreWidth = outerWidth(moreHost.value);
|
|
6499
|
+
}
|
|
6500
|
+
const more = moreWidth || parseFloat(style.getPropertyValue("--tao-control-height")) || 36;
|
|
6501
|
+
const found = [];
|
|
6502
|
+
const entries = [];
|
|
6503
|
+
for (const child of Array.from(el.children)) {
|
|
6504
|
+
if (child === moreHost.value) {
|
|
6505
|
+
continue;
|
|
6506
|
+
}
|
|
6507
|
+
const unit = units.find((u) => u.el.value === child);
|
|
6508
|
+
if (unit) {
|
|
6509
|
+
const inner = unit.kind === "group" ? child.firstElementChild : child;
|
|
6510
|
+
if (!unit.away.value && inner instanceof HTMLElement) {
|
|
6511
|
+
unit.width = outerWidth(inner);
|
|
6512
|
+
}
|
|
6513
|
+
found.push({ unit });
|
|
6514
|
+
entries.push({ kind: unit.kind, width: unit.width, pinned: unit.pinned.value });
|
|
6515
|
+
} else {
|
|
6516
|
+
const width = outerWidth(child);
|
|
6517
|
+
if (width > 0) {
|
|
6518
|
+
found.push({});
|
|
6519
|
+
entries.push({ kind: "loose", width });
|
|
6520
|
+
}
|
|
6521
|
+
}
|
|
6522
|
+
}
|
|
6523
|
+
const plan = planOverflow(entries, available, gap, more);
|
|
6524
|
+
const active = document.activeElement;
|
|
6525
|
+
const hadFocus = Boolean(active && active !== document.body && (el.contains(active) || panel.value?.contains(active)));
|
|
6526
|
+
let order = 0;
|
|
6527
|
+
found.forEach(({ unit }, i) => {
|
|
6528
|
+
if (!unit) {
|
|
6311
6529
|
return;
|
|
6312
6530
|
}
|
|
6531
|
+
const away = plan.has(i);
|
|
6532
|
+
if (unit.away.value !== away) {
|
|
6533
|
+
unit.away.value = away;
|
|
6534
|
+
}
|
|
6535
|
+
if (away && unit.kind === "group") {
|
|
6536
|
+
unit.order.value = order;
|
|
6537
|
+
unit.first.value = order === 0;
|
|
6538
|
+
order += 1;
|
|
6539
|
+
}
|
|
6540
|
+
});
|
|
6541
|
+
if (anyAway.value !== plan.size > 0) {
|
|
6542
|
+
anyAway.value = plan.size > 0;
|
|
6313
6543
|
}
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6544
|
+
observeUnits();
|
|
6545
|
+
await nextTick();
|
|
6546
|
+
const now = document.activeElement;
|
|
6547
|
+
if (hadFocus && (!now || now === document.body || now.closest("[data-tao-away]"))) {
|
|
6548
|
+
const button = moreHost.value?.querySelector("button");
|
|
6549
|
+
if (anyAway.value && button) {
|
|
6550
|
+
button.focus({ preventScroll: true });
|
|
6551
|
+
} else {
|
|
6552
|
+
bar.focusFirst();
|
|
6553
|
+
}
|
|
6554
|
+
}
|
|
6555
|
+
bar.refresh();
|
|
6556
|
+
menu.refresh();
|
|
6557
|
+
if (moreHost.value && !moreHost.value.hasAttribute("data-tao-away") && outerWidth(moreHost.value) !== moreWidth) {
|
|
6558
|
+
schedule();
|
|
6559
|
+
}
|
|
6560
|
+
}
|
|
6561
|
+
function schedule() {
|
|
6562
|
+
if (measureQueued || typeof window === "undefined") {
|
|
6563
|
+
return;
|
|
6564
|
+
}
|
|
6565
|
+
measureQueued = true;
|
|
6566
|
+
void nextTick(() => {
|
|
6567
|
+
measureQueued = false;
|
|
6568
|
+
void measure();
|
|
6569
|
+
});
|
|
6570
|
+
}
|
|
6571
|
+
function reset() {
|
|
6572
|
+
open.value = false;
|
|
6573
|
+
for (const unit of units) {
|
|
6574
|
+
unit.away.value = false;
|
|
6575
|
+
}
|
|
6576
|
+
anyAway.value = false;
|
|
6577
|
+
}
|
|
6578
|
+
async function remeasureAll() {
|
|
6579
|
+
reset();
|
|
6580
|
+
await nextTick();
|
|
6581
|
+
void measure();
|
|
6582
|
+
}
|
|
6583
|
+
watch(managed, (on) => {
|
|
6584
|
+
if (on) {
|
|
6585
|
+
schedule();
|
|
6319
6586
|
} else {
|
|
6320
|
-
|
|
6587
|
+
reset();
|
|
6321
6588
|
}
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6589
|
+
});
|
|
6590
|
+
watch(() => props.size, () => managed.value && void remeasureAll());
|
|
6591
|
+
watch(anyAway, (any) => {
|
|
6592
|
+
if (!any) {
|
|
6593
|
+
open.value = false;
|
|
6594
|
+
}
|
|
6595
|
+
});
|
|
6596
|
+
function focusMore() {
|
|
6597
|
+
moreHost.value?.querySelector("button")?.focus();
|
|
6598
|
+
}
|
|
6599
|
+
function close() {
|
|
6600
|
+
open.value = false;
|
|
6601
|
+
}
|
|
6602
|
+
function toggle() {
|
|
6603
|
+
open.value = !open.value;
|
|
6604
|
+
}
|
|
6605
|
+
const { style: panelStyle, update } = useFloating(moreHost, panel, open, { placement: "bottom-end" });
|
|
6606
|
+
const layer = useLayer(open, {
|
|
6607
|
+
onEscape: () => {
|
|
6608
|
+
close();
|
|
6609
|
+
focusMore();
|
|
6610
|
+
}
|
|
6611
|
+
});
|
|
6612
|
+
useDismiss(
|
|
6613
|
+
open,
|
|
6614
|
+
() => [
|
|
6615
|
+
moreHost.value,
|
|
6616
|
+
panel.value,
|
|
6617
|
+
...layer.isTop() ? Array.from(document.querySelectorAll("[data-tao-keep-open]")) : [document.body]
|
|
6618
|
+
],
|
|
6619
|
+
close
|
|
6620
|
+
);
|
|
6621
|
+
watch(open, async (isOpen) => {
|
|
6622
|
+
if (!isOpen) {
|
|
6623
|
+
return;
|
|
6624
|
+
}
|
|
6625
|
+
panelSize.value = resolveSize(root.value);
|
|
6626
|
+
panelDensity.value = resolveDensity(root.value);
|
|
6627
|
+
await nextTick();
|
|
6628
|
+
await nextTick();
|
|
6629
|
+
menu.refresh();
|
|
6630
|
+
update();
|
|
6631
|
+
if (!menu.focusFirst()) {
|
|
6632
|
+
panel.value?.focus({ preventScroll: true });
|
|
6633
|
+
}
|
|
6634
|
+
});
|
|
6635
|
+
let menuObserver;
|
|
6636
|
+
watch(menuEl, (el) => {
|
|
6637
|
+
menuObserver?.disconnect();
|
|
6638
|
+
menuObserver = void 0;
|
|
6639
|
+
if (el && typeof MutationObserver !== "undefined") {
|
|
6640
|
+
menuObserver = new MutationObserver(() => menu.refresh());
|
|
6641
|
+
menuObserver.observe(el, { childList: true, subtree: true, attributeFilter: ["disabled", "aria-disabled"] });
|
|
6642
|
+
}
|
|
6643
|
+
});
|
|
6644
|
+
async function reveal(el) {
|
|
6645
|
+
if (root.value?.contains(el) && el.closest("[data-tao-away]")) {
|
|
6646
|
+
open.value = true;
|
|
6647
|
+
await nextTick();
|
|
6648
|
+
await nextTick();
|
|
6649
|
+
}
|
|
6650
|
+
return el;
|
|
6326
6651
|
}
|
|
6652
|
+
__expose({ reveal });
|
|
6653
|
+
let observer;
|
|
6327
6654
|
onMounted(() => {
|
|
6328
|
-
refresh();
|
|
6655
|
+
bar.refresh();
|
|
6329
6656
|
if (typeof MutationObserver !== "undefined" && root.value) {
|
|
6330
|
-
observer = new MutationObserver(
|
|
6657
|
+
observer = new MutationObserver(() => {
|
|
6658
|
+
bar.refresh();
|
|
6659
|
+
if (managed.value) {
|
|
6660
|
+
schedule();
|
|
6661
|
+
}
|
|
6662
|
+
});
|
|
6331
6663
|
observer.observe(root.value, { childList: true, subtree: true, attributeFilter: ["disabled", "aria-disabled"] });
|
|
6332
6664
|
}
|
|
6665
|
+
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
6666
|
+
resizeObserver = new ResizeObserver(() => schedule());
|
|
6667
|
+
resizeObserver.observe(root.value);
|
|
6668
|
+
}
|
|
6669
|
+
if (managed.value) {
|
|
6670
|
+
void measure();
|
|
6671
|
+
}
|
|
6672
|
+
});
|
|
6673
|
+
onBeforeUnmount(() => {
|
|
6674
|
+
observer?.disconnect();
|
|
6675
|
+
menuObserver?.disconnect();
|
|
6676
|
+
resizeObserver?.disconnect();
|
|
6333
6677
|
});
|
|
6334
|
-
onBeforeUnmount(() => observer?.disconnect());
|
|
6335
6678
|
return (_ctx, _cache) => {
|
|
6336
6679
|
return openBlock(), createElementBlock("div", {
|
|
6337
6680
|
ref_key: "root",
|
|
6338
6681
|
ref: root,
|
|
6339
|
-
class: normalizeClass(["tao-toolbar", [unref(sizeClass)(__props.size), `tao-toolbar--${__props.variant}`, `tao-toolbar--${__props.orientation}
|
|
6682
|
+
class: normalizeClass(["tao-toolbar", [unref(sizeClass)(__props.size), `tao-toolbar--${__props.variant}`, `tao-toolbar--${__props.orientation}`, { "tao-toolbar--overflow": managed.value }]]),
|
|
6340
6683
|
role: "toolbar",
|
|
6341
6684
|
"aria-label": __props.label,
|
|
6342
6685
|
"aria-orientation": __props.orientation,
|
|
6343
6686
|
style: normalizeStyle(unref(frameStyle)(__props.bordered)),
|
|
6344
|
-
onFocusin
|
|
6345
|
-
|
|
6687
|
+
onFocusin: _cache[2] || (_cache[2] = //@ts-ignore
|
|
6688
|
+
(...args) => unref(bar).onFocusin && unref(bar).onFocusin(...args)),
|
|
6689
|
+
onKeydown: _cache[3] || (_cache[3] = //@ts-ignore
|
|
6690
|
+
(...args) => unref(bar).onKeydown && unref(bar).onKeydown(...args))
|
|
6346
6691
|
}, [
|
|
6347
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6348
|
-
|
|
6692
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
6693
|
+
managed.value ? (openBlock(), createElementBlock("div", {
|
|
6694
|
+
key: 0,
|
|
6695
|
+
ref_key: "moreHost",
|
|
6696
|
+
ref: moreHost,
|
|
6697
|
+
class: "tao-toolbar__more",
|
|
6698
|
+
"data-tao-away": anyAway.value ? void 0 : ""
|
|
6699
|
+
}, [
|
|
6700
|
+
createVNode(TaoButton, {
|
|
6701
|
+
variant: "ghost",
|
|
6702
|
+
tone: "neutral",
|
|
6703
|
+
icon: "tao-more-vertical",
|
|
6704
|
+
"aria-label": __props.overflowLabel ?? unref(l10n).overflowLabel,
|
|
6705
|
+
"aria-haspopup": "dialog",
|
|
6706
|
+
"aria-expanded": open.value,
|
|
6707
|
+
onClick: toggle
|
|
6708
|
+
}, null, 8, ["aria-label", "aria-expanded"])
|
|
6709
|
+
], 8, _hoisted_2$C)) : createCommentVNode("", true),
|
|
6710
|
+
managed.value ? (openBlock(), createBlock(Teleport, {
|
|
6711
|
+
key: 1,
|
|
6712
|
+
to: "body"
|
|
6713
|
+
}, [
|
|
6714
|
+
open.value && anyAway.value ? (openBlock(), createElementBlock("div", {
|
|
6715
|
+
key: 0,
|
|
6716
|
+
ref_key: "panel",
|
|
6717
|
+
ref: panel,
|
|
6718
|
+
class: normalizeClass(["tao-toolbar__menu", [unref(sizeClass)(panelSize.value), unref(densityClass)(panelDensity.value)]]),
|
|
6719
|
+
role: "dialog",
|
|
6720
|
+
tabindex: "-1",
|
|
6721
|
+
"aria-label": __props.overflowLabel ?? unref(l10n).overflowLabel,
|
|
6722
|
+
style: normalizeStyle(unref(panelStyle))
|
|
6723
|
+
}, [
|
|
6724
|
+
createElementVNode("div", {
|
|
6725
|
+
ref_key: "menuEl",
|
|
6726
|
+
ref: menuEl,
|
|
6727
|
+
class: "tao-toolbar__menu-body",
|
|
6728
|
+
role: "toolbar",
|
|
6729
|
+
"aria-label": __props.overflowLabel ?? unref(l10n).overflowLabel,
|
|
6730
|
+
onFocusin: _cache[0] || (_cache[0] = //@ts-ignore
|
|
6731
|
+
(...args) => unref(menu).onFocusin && unref(menu).onFocusin(...args)),
|
|
6732
|
+
onKeydown: _cache[1] || (_cache[1] = //@ts-ignore
|
|
6733
|
+
(...args) => unref(menu).onKeydown && unref(menu).onKeydown(...args))
|
|
6734
|
+
}, null, 40, _hoisted_4$u)
|
|
6735
|
+
], 14, _hoisted_3$x)) : createCommentVNode("", true)
|
|
6736
|
+
])) : createCommentVNode("", true)
|
|
6737
|
+
], 46, _hoisted_1$G);
|
|
6349
6738
|
};
|
|
6350
6739
|
}
|
|
6351
6740
|
});
|
|
6352
|
-
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6353
|
-
const _hoisted_1$
|
|
6354
|
-
const
|
|
6355
|
-
|
|
6741
|
+
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-27fec442"]]);
|
|
6742
|
+
const _hoisted_1$F = ["aria-label"];
|
|
6743
|
+
const _hoisted_2$B = ["data-tao-away", "hidden"];
|
|
6744
|
+
const _hoisted_3$w = ["aria-label"];
|
|
6745
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
6746
|
+
...{ name: "TaoToolbarGroup", inheritAttrs: false },
|
|
6356
6747
|
__name: "TaoToolbarGroup",
|
|
6357
6748
|
props: {
|
|
6358
6749
|
label: { default: void 0 },
|
|
6359
|
-
inset: { type: Boolean, default: false }
|
|
6750
|
+
inset: { type: Boolean, default: false },
|
|
6751
|
+
pinned: { type: Boolean, default: false }
|
|
6360
6752
|
},
|
|
6361
6753
|
setup(__props) {
|
|
6754
|
+
const props = __props;
|
|
6755
|
+
const toolbar = inject(toolbarKey, null);
|
|
6756
|
+
const managed = computed(() => Boolean(toolbar?.overflow.value));
|
|
6757
|
+
const host = ref(null);
|
|
6758
|
+
const unit = {
|
|
6759
|
+
kind: "group",
|
|
6760
|
+
el: host,
|
|
6761
|
+
pinned: toRef(props, "pinned"),
|
|
6762
|
+
away: ref(false),
|
|
6763
|
+
order: ref(0),
|
|
6764
|
+
first: ref(false),
|
|
6765
|
+
width: 0
|
|
6766
|
+
};
|
|
6767
|
+
let unregister;
|
|
6768
|
+
onMounted(() => {
|
|
6769
|
+
unregister = toolbar?.register(unit);
|
|
6770
|
+
});
|
|
6771
|
+
onBeforeUnmount(() => unregister?.());
|
|
6772
|
+
const inMenu = computed(() => unit.away.value && Boolean(toolbar?.menuEl.value));
|
|
6773
|
+
const target = computed(() => toolbar?.menuEl.value ?? "body");
|
|
6362
6774
|
return (_ctx, _cache) => {
|
|
6363
|
-
return openBlock(), createElementBlock("div", {
|
|
6364
|
-
|
|
6775
|
+
return !managed.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
6776
|
+
key: 0,
|
|
6777
|
+
class: ["tao-toolbar-group", { "tao-toolbar-group--inset": __props.inset }],
|
|
6365
6778
|
role: "group",
|
|
6366
6779
|
"aria-label": __props.label
|
|
6367
|
-
}, [
|
|
6780
|
+
}, _ctx.$attrs), [
|
|
6368
6781
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6369
|
-
],
|
|
6782
|
+
], 16, _hoisted_1$F)) : (openBlock(), createElementBlock("div", {
|
|
6783
|
+
key: 1,
|
|
6784
|
+
ref_key: "host",
|
|
6785
|
+
ref: host,
|
|
6786
|
+
class: "tao-toolbar-host",
|
|
6787
|
+
"data-tao-away": unit.away.value ? "" : void 0,
|
|
6788
|
+
hidden: unit.away.value && !inMenu.value ? true : void 0
|
|
6789
|
+
}, [
|
|
6790
|
+
(openBlock(), createBlock(Teleport, {
|
|
6791
|
+
to: target.value,
|
|
6792
|
+
disabled: !inMenu.value
|
|
6793
|
+
}, [
|
|
6794
|
+
createElementVNode("div", mergeProps({
|
|
6795
|
+
class: ["tao-toolbar-group", { "tao-toolbar-group--inset": __props.inset, "tao-toolbar-group--menu": inMenu.value, "tao-toolbar-group--menu-first": inMenu.value && unit.first.value }],
|
|
6796
|
+
style: inMenu.value ? { order: unit.order.value } : void 0,
|
|
6797
|
+
role: "group",
|
|
6798
|
+
"aria-label": __props.label
|
|
6799
|
+
}, _ctx.$attrs), [
|
|
6800
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6801
|
+
], 16, _hoisted_3$w)
|
|
6802
|
+
], 8, ["to", "disabled"]))
|
|
6803
|
+
], 8, _hoisted_2$B));
|
|
6370
6804
|
};
|
|
6371
6805
|
}
|
|
6372
6806
|
});
|
|
6373
|
-
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6374
|
-
const _hoisted_1$
|
|
6375
|
-
const _sfc_main$
|
|
6807
|
+
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-61688996"]]);
|
|
6808
|
+
const _hoisted_1$E = ["aria-orientation", "data-tao-away"];
|
|
6809
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
6376
6810
|
...{ name: "TaoToolbarSeparator" },
|
|
6377
6811
|
__name: "TaoToolbarSeparator",
|
|
6378
6812
|
setup(__props) {
|
|
6379
6813
|
const toolbar = inject(toolbarKey, null);
|
|
6380
6814
|
const orientation = computed(() => toolbar?.orientation.value === "vertical" ? "horizontal" : "vertical");
|
|
6815
|
+
const el = ref(null);
|
|
6816
|
+
const unit = {
|
|
6817
|
+
kind: "separator",
|
|
6818
|
+
el,
|
|
6819
|
+
pinned: ref(false),
|
|
6820
|
+
away: ref(false),
|
|
6821
|
+
order: ref(0),
|
|
6822
|
+
first: ref(false),
|
|
6823
|
+
width: 0
|
|
6824
|
+
};
|
|
6825
|
+
let unregister;
|
|
6826
|
+
onMounted(() => {
|
|
6827
|
+
unregister = toolbar?.register(unit);
|
|
6828
|
+
});
|
|
6829
|
+
onBeforeUnmount(() => unregister?.());
|
|
6381
6830
|
return (_ctx, _cache) => {
|
|
6382
6831
|
return openBlock(), createElementBlock("div", {
|
|
6832
|
+
ref_key: "el",
|
|
6833
|
+
ref: el,
|
|
6383
6834
|
class: normalizeClass(["tao-toolbar-separator", `tao-toolbar-separator--${orientation.value}`]),
|
|
6384
6835
|
role: "separator",
|
|
6385
|
-
"aria-orientation": orientation.value
|
|
6386
|
-
|
|
6836
|
+
"aria-orientation": orientation.value,
|
|
6837
|
+
"data-tao-away": unit.away.value ? "" : void 0
|
|
6838
|
+
}, null, 10, _hoisted_1$E);
|
|
6387
6839
|
};
|
|
6388
6840
|
}
|
|
6389
6841
|
});
|
|
6390
|
-
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6842
|
+
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-3555f99a"]]);
|
|
6391
6843
|
const TAO_CHART_COLORS = 6;
|
|
6392
6844
|
const chartColorVar = (index) => `var(--tao-color-chart-${index % TAO_CHART_COLORS + 1})`;
|
|
6393
6845
|
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
@@ -6559,16 +7011,16 @@ function watchTaoChartTheme(apply, el) {
|
|
|
6559
7011
|
media?.removeEventListener("change", run);
|
|
6560
7012
|
};
|
|
6561
7013
|
}
|
|
6562
|
-
const _hoisted_1$
|
|
6563
|
-
const _hoisted_2$
|
|
7014
|
+
const _hoisted_1$D = ["role", "aria-label", "aria-hidden"];
|
|
7015
|
+
const _hoisted_2$A = {
|
|
6564
7016
|
class: "tao-sparkline__svg",
|
|
6565
7017
|
viewBox: "0 0 100 100",
|
|
6566
7018
|
preserveAspectRatio: "none",
|
|
6567
7019
|
"aria-hidden": "true"
|
|
6568
7020
|
};
|
|
6569
|
-
const _hoisted_3$
|
|
6570
|
-
const _hoisted_4$
|
|
6571
|
-
const _sfc_main$
|
|
7021
|
+
const _hoisted_3$v = ["d"];
|
|
7022
|
+
const _hoisted_4$t = ["d"];
|
|
7023
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
6572
7024
|
...{ name: "TaoSparkline" },
|
|
6573
7025
|
__name: "TaoSparkline",
|
|
6574
7026
|
props: {
|
|
@@ -6600,16 +7052,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6600
7052
|
"aria-label": __props.label,
|
|
6601
7053
|
"aria-hidden": __props.label ? void 0 : "true"
|
|
6602
7054
|
}, [
|
|
6603
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
7055
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$A, [
|
|
6604
7056
|
fill.value ? (openBlock(), createElementBlock("path", {
|
|
6605
7057
|
key: 0,
|
|
6606
7058
|
class: "tao-sparkline__area",
|
|
6607
7059
|
d: fill.value
|
|
6608
|
-
}, null, 8, _hoisted_3$
|
|
7060
|
+
}, null, 8, _hoisted_3$v)) : createCommentVNode("", true),
|
|
6609
7061
|
createElementVNode("path", {
|
|
6610
7062
|
class: "tao-sparkline__line",
|
|
6611
7063
|
d: line.value
|
|
6612
|
-
}, null, 8, _hoisted_4$
|
|
7064
|
+
}, null, 8, _hoisted_4$t)
|
|
6613
7065
|
])),
|
|
6614
7066
|
__props.dot && last.value ? (openBlock(), createElementBlock("span", {
|
|
6615
7067
|
key: 0,
|
|
@@ -6617,24 +7069,24 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6617
7069
|
style: normalizeStyle({ left: inset(last.value[0]), top: inset(last.value[1]) }),
|
|
6618
7070
|
"aria-hidden": "true"
|
|
6619
7071
|
}, null, 4)) : createCommentVNode("", true)
|
|
6620
|
-
], 14, _hoisted_1$
|
|
7072
|
+
], 14, _hoisted_1$D);
|
|
6621
7073
|
};
|
|
6622
7074
|
}
|
|
6623
7075
|
});
|
|
6624
|
-
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6625
|
-
const _hoisted_1$
|
|
6626
|
-
const _hoisted_2$
|
|
7076
|
+
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-76664226"]]);
|
|
7077
|
+
const _hoisted_1$C = ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-label"];
|
|
7078
|
+
const _hoisted_2$z = {
|
|
6627
7079
|
key: 0,
|
|
6628
7080
|
class: "tao-meter__head",
|
|
6629
7081
|
"aria-hidden": "true"
|
|
6630
7082
|
};
|
|
6631
|
-
const _hoisted_3$
|
|
6632
|
-
const _hoisted_4$
|
|
7083
|
+
const _hoisted_3$u = { class: "tao-meter__label" };
|
|
7084
|
+
const _hoisted_4$s = {
|
|
6633
7085
|
key: 0,
|
|
6634
7086
|
class: "tao-meter__value"
|
|
6635
7087
|
};
|
|
6636
7088
|
const _hoisted_5$m = { class: "tao-meter__track" };
|
|
6637
|
-
const _sfc_main$
|
|
7089
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
6638
7090
|
...{ name: "TaoMeter" },
|
|
6639
7091
|
__name: "TaoMeter",
|
|
6640
7092
|
props: {
|
|
@@ -6668,9 +7120,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6668
7120
|
"aria-valuetext": typeof __props.valueText === "string" ? __props.valueText : void 0,
|
|
6669
7121
|
"aria-label": __props.label
|
|
6670
7122
|
}, [
|
|
6671
|
-
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6672
|
-
createElementVNode("span", _hoisted_3$
|
|
6673
|
-
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
7123
|
+
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
7124
|
+
createElementVNode("span", _hoisted_3$u, toDisplayString(__props.label), 1),
|
|
7125
|
+
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$s, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
|
|
6674
7126
|
])) : createCommentVNode("", true),
|
|
6675
7127
|
createElementVNode("div", _hoisted_5$m, [
|
|
6676
7128
|
createElementVNode("div", {
|
|
@@ -6678,15 +7130,15 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6678
7130
|
style: normalizeStyle({ width: `${share.value * 100}%` })
|
|
6679
7131
|
}, null, 4)
|
|
6680
7132
|
])
|
|
6681
|
-
], 10, _hoisted_1$
|
|
7133
|
+
], 10, _hoisted_1$C);
|
|
6682
7134
|
};
|
|
6683
7135
|
}
|
|
6684
7136
|
});
|
|
6685
|
-
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6686
|
-
const _hoisted_1$
|
|
6687
|
-
const _hoisted_2$
|
|
6688
|
-
const _hoisted_3$
|
|
6689
|
-
const _hoisted_4$
|
|
7137
|
+
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-17e24a8e"]]);
|
|
7138
|
+
const _hoisted_1$B = ["aria-label"];
|
|
7139
|
+
const _hoisted_2$y = ["viewBox", "width", "height"];
|
|
7140
|
+
const _hoisted_3$t = ["cx", "cy", "r", "stroke-width"];
|
|
7141
|
+
const _hoisted_4$r = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
6690
7142
|
const _hoisted_5$l = {
|
|
6691
7143
|
key: 0,
|
|
6692
7144
|
class: "tao-donut__centre",
|
|
@@ -6699,7 +7151,7 @@ const _hoisted_6$h = {
|
|
|
6699
7151
|
};
|
|
6700
7152
|
const _hoisted_7$e = { class: "tao-donut__name" };
|
|
6701
7153
|
const _hoisted_8$9 = { class: "tao-donut__share" };
|
|
6702
|
-
const _sfc_main$
|
|
7154
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
6703
7155
|
...{ name: "TaoDonut" },
|
|
6704
7156
|
__name: "TaoDonut",
|
|
6705
7157
|
props: {
|
|
@@ -6762,7 +7214,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6762
7214
|
cy: centre.value,
|
|
6763
7215
|
r: radius.value,
|
|
6764
7216
|
"stroke-width": __props.thickness
|
|
6765
|
-
}, null, 8, _hoisted_3$
|
|
7217
|
+
}, null, 8, _hoisted_3$t),
|
|
6766
7218
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
6767
7219
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
6768
7220
|
key: arc.key,
|
|
@@ -6776,15 +7228,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6776
7228
|
"stroke-dashoffset": -arc.start,
|
|
6777
7229
|
transform: `rotate(-90 ${centre.value} ${centre.value})`,
|
|
6778
7230
|
style: normalizeStyle({ stroke: arc.stroke })
|
|
6779
|
-
}, null, 14, _hoisted_4$
|
|
7231
|
+
}, null, 14, _hoisted_4$r)), [
|
|
6780
7232
|
[vShow, arc.length > 0]
|
|
6781
7233
|
]);
|
|
6782
7234
|
}), 128))
|
|
6783
|
-
], 8, _hoisted_2$
|
|
7235
|
+
], 8, _hoisted_2$y)),
|
|
6784
7236
|
has("default") ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
|
|
6785
7237
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6786
7238
|
])) : createCommentVNode("", true)
|
|
6787
|
-
], 12, _hoisted_1$
|
|
7239
|
+
], 12, _hoisted_1$B),
|
|
6788
7240
|
__props.legend && __props.segments ? (openBlock(), createElementBlock("ul", _hoisted_6$h, [
|
|
6789
7241
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
6790
7242
|
return openBlock(), createElementBlock("li", {
|
|
@@ -6804,17 +7256,17 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6804
7256
|
};
|
|
6805
7257
|
}
|
|
6806
7258
|
});
|
|
6807
|
-
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6808
|
-
const _hoisted_1$
|
|
6809
|
-
const _hoisted_2$
|
|
7259
|
+
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-51178c3f"]]);
|
|
7260
|
+
const _hoisted_1$A = ["aria-label", "aria-rowcount", "aria-colcount"];
|
|
7261
|
+
const _hoisted_2$x = {
|
|
6810
7262
|
class: "tao-heatmap__row tao-heatmap__head",
|
|
6811
7263
|
role: "row"
|
|
6812
7264
|
};
|
|
6813
|
-
const _hoisted_3$
|
|
7265
|
+
const _hoisted_3$s = {
|
|
6814
7266
|
class: "tao-heatmap__name",
|
|
6815
7267
|
role: "rowheader"
|
|
6816
7268
|
};
|
|
6817
|
-
const _hoisted_4$
|
|
7269
|
+
const _hoisted_4$q = ["data-r", "data-c", "tabindex", "onPointerenter", "onFocus"];
|
|
6818
7270
|
const _hoisted_5$k = { class: "tao-sr-only" };
|
|
6819
7271
|
const _hoisted_6$g = { class: "tao-heatmap__tip-where" };
|
|
6820
7272
|
const _hoisted_7$d = { class: "tao-heatmap__tip-value" };
|
|
@@ -6823,7 +7275,7 @@ const _hoisted_8$8 = {
|
|
|
6823
7275
|
class: "tao-heatmap__legend",
|
|
6824
7276
|
"aria-hidden": "true"
|
|
6825
7277
|
};
|
|
6826
|
-
const _sfc_main$
|
|
7278
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
6827
7279
|
...{ name: "TaoHeatmap" },
|
|
6828
7280
|
__name: "TaoHeatmap",
|
|
6829
7281
|
props: {
|
|
@@ -6975,7 +7427,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
6975
7427
|
onPointerleave: hide,
|
|
6976
7428
|
onFocusout: onFocusOut
|
|
6977
7429
|
}, [
|
|
6978
|
-
createElementVNode("div", _hoisted_2$
|
|
7430
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
6979
7431
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
6980
7432
|
class: "tao-heatmap__corner",
|
|
6981
7433
|
role: "columnheader"
|
|
@@ -6998,7 +7450,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
6998
7450
|
class: "tao-heatmap__row",
|
|
6999
7451
|
role: "row"
|
|
7000
7452
|
}, [
|
|
7001
|
-
createElementVNode("span", _hoisted_3$
|
|
7453
|
+
createElementVNode("span", _hoisted_3$s, toDisplayString(row), 1),
|
|
7002
7454
|
(openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
|
|
7003
7455
|
return openBlock(), createElementBlock("span", {
|
|
7004
7456
|
key: cell.key,
|
|
@@ -7020,11 +7472,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7020
7472
|
"aria-hidden": "true"
|
|
7021
7473
|
}, null, 6),
|
|
7022
7474
|
createElementVNode("span", _hoisted_5$k, toDisplayString(cell.text), 1)
|
|
7023
|
-
], 44, _hoisted_4$
|
|
7475
|
+
], 44, _hoisted_4$q);
|
|
7024
7476
|
}), 128))
|
|
7025
7477
|
]);
|
|
7026
7478
|
}), 128))
|
|
7027
|
-
], 46, _hoisted_1$
|
|
7479
|
+
], 46, _hoisted_1$A),
|
|
7028
7480
|
tip.value ? (openBlock(), createElementBlock("div", {
|
|
7029
7481
|
key: 0,
|
|
7030
7482
|
ref_key: "tipRef",
|
|
@@ -7066,11 +7518,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7066
7518
|
};
|
|
7067
7519
|
}
|
|
7068
7520
|
});
|
|
7069
|
-
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7070
|
-
const _hoisted_1$
|
|
7071
|
-
const _hoisted_2$
|
|
7072
|
-
const _hoisted_3$
|
|
7073
|
-
const _hoisted_4$
|
|
7521
|
+
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-496996ae"]]);
|
|
7522
|
+
const _hoisted_1$z = { class: "tao-nav__shell" };
|
|
7523
|
+
const _hoisted_2$w = ["aria-label"];
|
|
7524
|
+
const _hoisted_3$r = { class: "tao-nav__column" };
|
|
7525
|
+
const _hoisted_4$p = {
|
|
7074
7526
|
key: 0,
|
|
7075
7527
|
class: "tao-nav__action"
|
|
7076
7528
|
};
|
|
@@ -7100,7 +7552,7 @@ const _hoisted_14$1 = {
|
|
|
7100
7552
|
key: 0,
|
|
7101
7553
|
class: "tao-nav__content"
|
|
7102
7554
|
};
|
|
7103
|
-
const _sfc_main$
|
|
7555
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
7104
7556
|
...{ name: "TaoNav" },
|
|
7105
7557
|
__name: "TaoNav",
|
|
7106
7558
|
props: {
|
|
@@ -7163,13 +7615,13 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
7163
7615
|
return openBlock(), createElementBlock("div", {
|
|
7164
7616
|
class: normalizeClass(["tao-nav", [`tao-nav--${__props.layout}`, `tao-nav--indicator-${__props.indicator}`, { "tao-nav--standalone": standalone.value, "tao-nav--floating": __props.floating, "tao-nav--badges-neutral": __props.badgeTone === "neutral" }]])
|
|
7165
7617
|
}, [
|
|
7166
|
-
createElementVNode("div", _hoisted_1$
|
|
7618
|
+
createElementVNode("div", _hoisted_1$z, [
|
|
7167
7619
|
createElementVNode("nav", {
|
|
7168
7620
|
class: normalizeClass(["tao-nav__panel", unref(surfaceClass)(__props.surface)]),
|
|
7169
7621
|
"aria-label": unref(l10n).ariaLabel
|
|
7170
7622
|
}, [
|
|
7171
|
-
createElementVNode("div", _hoisted_3$
|
|
7172
|
-
has("action") ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
7623
|
+
createElementVNode("div", _hoisted_3$r, [
|
|
7624
|
+
has("action") ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
7173
7625
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
7174
7626
|
])) : createCommentVNode("", true),
|
|
7175
7627
|
createElementVNode("ul", _hoisted_5$j, [
|
|
@@ -7236,12 +7688,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
7236
7688
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
7237
7689
|
])) : createCommentVNode("", true)
|
|
7238
7690
|
])
|
|
7239
|
-
], 10, _hoisted_2$
|
|
7691
|
+
], 10, _hoisted_2$w),
|
|
7240
7692
|
!standalone.value ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
7241
7693
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
7242
7694
|
])) : createCommentVNode("", true)
|
|
7243
7695
|
]),
|
|
7244
|
-
overflowing.value ? (openBlock(), createBlock(_sfc_main$
|
|
7696
|
+
overflowing.value ? (openBlock(), createBlock(_sfc_main$M, {
|
|
7245
7697
|
key: 0,
|
|
7246
7698
|
items: moreMenu.value,
|
|
7247
7699
|
open: moreOpen.value,
|
|
@@ -7255,7 +7707,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
7255
7707
|
};
|
|
7256
7708
|
}
|
|
7257
7709
|
});
|
|
7258
|
-
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7710
|
+
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-83603250"]]);
|
|
7259
7711
|
function visibleRows(nodes, expanded, children) {
|
|
7260
7712
|
const rows = [];
|
|
7261
7713
|
const ancestors = /* @__PURE__ */ new Set();
|
|
@@ -7305,10 +7757,10 @@ function toggleCheck(node, checked2, children) {
|
|
|
7305
7757
|
}
|
|
7306
7758
|
return next;
|
|
7307
7759
|
}
|
|
7308
|
-
const _hoisted_1$
|
|
7309
|
-
const _hoisted_2$
|
|
7310
|
-
const _hoisted_3$
|
|
7311
|
-
const _hoisted_4$
|
|
7760
|
+
const _hoisted_1$y = ["aria-label", "aria-multiselectable"];
|
|
7761
|
+
const _hoisted_2$v = ["id", "tabindex", "aria-level", "aria-setsize", "aria-posinset", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled", "aria-busy", "onKeydown", "onClick", "onFocus"];
|
|
7762
|
+
const _hoisted_3$q = ["onClick"];
|
|
7763
|
+
const _hoisted_4$o = ["title"];
|
|
7312
7764
|
const _hoisted_5$i = ["onClick"];
|
|
7313
7765
|
const _hoisted_6$e = {
|
|
7314
7766
|
key: 1,
|
|
@@ -7316,7 +7768,7 @@ const _hoisted_6$e = {
|
|
|
7316
7768
|
"aria-hidden": "true"
|
|
7317
7769
|
};
|
|
7318
7770
|
const _hoisted_7$b = { class: "tao-tree__label" };
|
|
7319
|
-
const _sfc_main$
|
|
7771
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
7320
7772
|
...{ name: "TaoTree" },
|
|
7321
7773
|
__name: "TaoTree",
|
|
7322
7774
|
props: {
|
|
@@ -7586,11 +8038,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7586
8038
|
key: 0,
|
|
7587
8039
|
class: "tao-tree__spinner",
|
|
7588
8040
|
title: unref(l10n).loadingLabel
|
|
7589
|
-
}, null, 8, _hoisted_4$
|
|
8041
|
+
}, null, 8, _hoisted_4$o)) : row.branch ? (openBlock(), createBlock(TaoIcon, {
|
|
7590
8042
|
key: 1,
|
|
7591
8043
|
name: "tao-chevron-right"
|
|
7592
8044
|
})) : createCommentVNode("", true)
|
|
7593
|
-
], 10, _hoisted_3$
|
|
8045
|
+
], 10, _hoisted_3$q),
|
|
7594
8046
|
__props.checkable ? (openBlock(), createElementBlock("span", {
|
|
7595
8047
|
key: 0,
|
|
7596
8048
|
class: normalizeClass(["tao-tree__check", `tao-tree__check--${stateOf(row)}`]),
|
|
@@ -7619,20 +8071,20 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7619
8071
|
}, [
|
|
7620
8072
|
renderSlot(_ctx.$slots, "actions", mergeProps({ ref_for: true }, slotProps(row)), void 0, true)
|
|
7621
8073
|
], 32)) : createCommentVNode("", true)
|
|
7622
|
-
], 46, _hoisted_2$
|
|
8074
|
+
], 46, _hoisted_2$v);
|
|
7623
8075
|
}), 128))
|
|
7624
|
-
], 10, _hoisted_1$
|
|
8076
|
+
], 10, _hoisted_1$y);
|
|
7625
8077
|
};
|
|
7626
8078
|
}
|
|
7627
8079
|
});
|
|
7628
|
-
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7629
|
-
const _hoisted_1$
|
|
7630
|
-
const _hoisted_2$
|
|
8080
|
+
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-ce3110d4"]]);
|
|
8081
|
+
const _hoisted_1$x = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
8082
|
+
const _hoisted_2$u = {
|
|
7631
8083
|
key: 0,
|
|
7632
8084
|
class: "tao-checklist__legend"
|
|
7633
8085
|
};
|
|
7634
|
-
const _hoisted_3$
|
|
7635
|
-
const _hoisted_4$
|
|
8086
|
+
const _hoisted_3$p = { key: 0 };
|
|
8087
|
+
const _hoisted_4$n = {
|
|
7636
8088
|
key: 1,
|
|
7637
8089
|
class: "tao-checklist__counter",
|
|
7638
8090
|
"aria-live": "polite"
|
|
@@ -7643,7 +8095,7 @@ const _hoisted_7$a = {
|
|
|
7643
8095
|
key: 0,
|
|
7644
8096
|
class: "tao-checklist__description"
|
|
7645
8097
|
};
|
|
7646
|
-
const _sfc_main$
|
|
8098
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
7647
8099
|
...{ name: "TaoChecklist" },
|
|
7648
8100
|
__name: "TaoChecklist",
|
|
7649
8101
|
props: {
|
|
@@ -7708,9 +8160,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7708
8160
|
"aria-invalid": unref(invalid) || void 0,
|
|
7709
8161
|
"aria-labelledby": labelledBy.value
|
|
7710
8162
|
}, [
|
|
7711
|
-
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
7712
|
-
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
7713
|
-
__props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
8163
|
+
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$u, [
|
|
8164
|
+
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
8165
|
+
__props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(unref(formatText)(unref(l10n).counterText, { checked: checkedCount.value, total: __props.items.length })), 1)) : createCommentVNode("", true)
|
|
7714
8166
|
])) : createCommentVNode("", true),
|
|
7715
8167
|
__props.selectAll ? (openBlock(), createBlock(TaoCheckbox, {
|
|
7716
8168
|
key: 1,
|
|
@@ -7752,34 +8204,34 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7752
8204
|
], 2);
|
|
7753
8205
|
}), 128))
|
|
7754
8206
|
], 2)
|
|
7755
|
-
], 10, _hoisted_1$
|
|
8207
|
+
], 10, _hoisted_1$x);
|
|
7756
8208
|
};
|
|
7757
8209
|
}
|
|
7758
8210
|
});
|
|
7759
|
-
const TaoChecklist = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8211
|
+
const TaoChecklist = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-4d3771ce"]]);
|
|
7760
8212
|
function timelineState(index, activeIndex) {
|
|
7761
8213
|
if (activeIndex < 0) {
|
|
7762
8214
|
return "done";
|
|
7763
8215
|
}
|
|
7764
8216
|
return index < activeIndex ? "done" : index === activeIndex ? "current" : "upcoming";
|
|
7765
8217
|
}
|
|
7766
|
-
const _hoisted_1$
|
|
7767
|
-
const _hoisted_2$
|
|
8218
|
+
const _hoisted_1$w = ["aria-current"];
|
|
8219
|
+
const _hoisted_2$t = {
|
|
7768
8220
|
class: "tao-timeline__rail",
|
|
7769
8221
|
"aria-hidden": "true"
|
|
7770
8222
|
};
|
|
7771
|
-
const _hoisted_3$
|
|
8223
|
+
const _hoisted_3$o = {
|
|
7772
8224
|
key: 0,
|
|
7773
8225
|
class: "tao-timeline__line"
|
|
7774
8226
|
};
|
|
7775
|
-
const _hoisted_4$
|
|
8227
|
+
const _hoisted_4$m = { class: "tao-timeline__body" };
|
|
7776
8228
|
const _hoisted_5$g = ["datetime"];
|
|
7777
8229
|
const _hoisted_6$c = { class: "tao-timeline__title" };
|
|
7778
8230
|
const _hoisted_7$9 = {
|
|
7779
8231
|
key: 1,
|
|
7780
8232
|
class: "tao-timeline__description"
|
|
7781
8233
|
};
|
|
7782
|
-
const _sfc_main$
|
|
8234
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
7783
8235
|
...{ name: "TaoTimeline" },
|
|
7784
8236
|
__name: "TaoTimeline",
|
|
7785
8237
|
props: {
|
|
@@ -7805,7 +8257,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7805
8257
|
class: normalizeClass(["tao-timeline__item", [`tao-timeline__item--${slotProps(item, index).state}`, { "tao-timeline__item--far": index % 2 === 1 }]]),
|
|
7806
8258
|
"aria-current": slotProps(item, index).active ? "step" : void 0
|
|
7807
8259
|
}, [
|
|
7808
|
-
createElementVNode("div", _hoisted_2$
|
|
8260
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
7809
8261
|
createElementVNode("span", {
|
|
7810
8262
|
class: normalizeClass(["tao-timeline__marker", [unref(toneClass)(item.tone), { "tao-timeline__marker--icon": item.icon || _ctx.$slots.marker }]])
|
|
7811
8263
|
}, [
|
|
@@ -7816,9 +8268,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7816
8268
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
7817
8269
|
], true)
|
|
7818
8270
|
], 2),
|
|
7819
|
-
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8271
|
+
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$o)) : createCommentVNode("", true)
|
|
7820
8272
|
]),
|
|
7821
|
-
createElementVNode("div", _hoisted_4$
|
|
8273
|
+
createElementVNode("div", _hoisted_4$m, [
|
|
7822
8274
|
item.time ? (openBlock(), createElementBlock("time", {
|
|
7823
8275
|
key: 0,
|
|
7824
8276
|
class: "tao-timeline__time",
|
|
@@ -7832,22 +8284,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7832
8284
|
item.description ? (openBlock(), createElementBlock("p", _hoisted_7$9, toDisplayString(item.description), 1)) : createCommentVNode("", true),
|
|
7833
8285
|
renderSlot(_ctx.$slots, "content", mergeProps({ ref_for: true }, slotProps(item, index)), void 0, true)
|
|
7834
8286
|
])
|
|
7835
|
-
], 10, _hoisted_1$
|
|
8287
|
+
], 10, _hoisted_1$w);
|
|
7836
8288
|
}), 128))
|
|
7837
8289
|
], 2);
|
|
7838
8290
|
};
|
|
7839
8291
|
}
|
|
7840
8292
|
});
|
|
7841
|
-
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7842
|
-
const _hoisted_1$
|
|
7843
|
-
const _hoisted_2$
|
|
7844
|
-
const _hoisted_3$
|
|
8293
|
+
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-48847c47"]]);
|
|
8294
|
+
const _hoisted_1$v = ["tabindex", "aria-hidden", "inert"];
|
|
8295
|
+
const _hoisted_2$s = { class: "tao-marquee__item" };
|
|
8296
|
+
const _hoisted_3$n = {
|
|
7845
8297
|
key: 0,
|
|
7846
8298
|
class: "tao-marquee__item",
|
|
7847
8299
|
"aria-hidden": "true",
|
|
7848
8300
|
inert: ""
|
|
7849
8301
|
};
|
|
7850
|
-
const _sfc_main$
|
|
8302
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
7851
8303
|
...{ name: "TaoMarquee" },
|
|
7852
8304
|
__name: "TaoMarquee",
|
|
7853
8305
|
props: {
|
|
@@ -7961,22 +8413,22 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
7961
8413
|
class: "tao-marquee__track",
|
|
7962
8414
|
style: normalizeStyle(trackStyle.value)
|
|
7963
8415
|
}, [
|
|
7964
|
-
createElementVNode("span", _hoisted_2$
|
|
8416
|
+
createElementVNode("span", _hoisted_2$s, [
|
|
7965
8417
|
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7966
8418
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7967
8419
|
], 64))
|
|
7968
8420
|
]),
|
|
7969
|
-
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8421
|
+
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$n, [
|
|
7970
8422
|
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7971
8423
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7972
8424
|
], 64))
|
|
7973
8425
|
])) : createCommentVNode("", true)
|
|
7974
8426
|
], 4)
|
|
7975
|
-
], 46, _hoisted_1$
|
|
8427
|
+
], 46, _hoisted_1$v);
|
|
7976
8428
|
};
|
|
7977
8429
|
}
|
|
7978
8430
|
});
|
|
7979
|
-
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8431
|
+
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-0d2fc5c4"]]);
|
|
7980
8432
|
const PIN_CELL = "#";
|
|
7981
8433
|
function parsePinFormat(format) {
|
|
7982
8434
|
const mask = [...format];
|
|
@@ -8012,14 +8464,14 @@ function pinFromPaste(text, format, cells, accept) {
|
|
|
8012
8464
|
if (chars.length === cells && chars.every((ch) => accept(ch))) return chars.map((ch) => accept(ch));
|
|
8013
8465
|
return null;
|
|
8014
8466
|
}
|
|
8015
|
-
const _hoisted_1$
|
|
8016
|
-
const _hoisted_2$
|
|
8467
|
+
const _hoisted_1$u = ["aria-invalid", "aria-describedby"];
|
|
8468
|
+
const _hoisted_2$r = {
|
|
8017
8469
|
key: 0,
|
|
8018
8470
|
class: "tao-pin-code__separator",
|
|
8019
8471
|
"aria-hidden": "true"
|
|
8020
8472
|
};
|
|
8021
|
-
const _hoisted_3$
|
|
8022
|
-
const _hoisted_4$
|
|
8473
|
+
const _hoisted_3$m = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
8474
|
+
const _hoisted_4$l = {
|
|
8023
8475
|
key: 0,
|
|
8024
8476
|
class: "tao-pin-code__separator",
|
|
8025
8477
|
"aria-hidden": "true"
|
|
@@ -8028,7 +8480,7 @@ const _hoisted_5$f = {
|
|
|
8028
8480
|
class: "tao-sr-only",
|
|
8029
8481
|
role: "status"
|
|
8030
8482
|
};
|
|
8031
|
-
const _sfc_main$
|
|
8483
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
8032
8484
|
...{ name: "TaoPinCode" },
|
|
8033
8485
|
__name: "TaoPinCode",
|
|
8034
8486
|
props: {
|
|
@@ -8257,7 +8709,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
8257
8709
|
}, [
|
|
8258
8710
|
(openBlock(true), createElementBlock(Fragment, null, renderList(numbers.value, (num, index) => {
|
|
8259
8711
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
8260
|
-
layout.value?.before[index] ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
8712
|
+
layout.value?.before[index] ? (openBlock(), createElementBlock("span", _hoisted_2$r, toDisplayString(layout.value.before[index]), 1)) : createCommentVNode("", true),
|
|
8261
8713
|
createElementVNode("input", {
|
|
8262
8714
|
id: index === 0 ? unref(controlId) : void 0,
|
|
8263
8715
|
ref_for: true,
|
|
@@ -8282,17 +8734,17 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
8282
8734
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
8283
8735
|
onFocus: ($event) => onFocus(index),
|
|
8284
8736
|
onBlur
|
|
8285
|
-
}, null, 46, _hoisted_3$
|
|
8737
|
+
}, null, 46, _hoisted_3$m)
|
|
8286
8738
|
], 64);
|
|
8287
8739
|
}), 128)),
|
|
8288
|
-
layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
8740
|
+
layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$l, toDisplayString(layout.value.after), 1)) : createCommentVNode("", true),
|
|
8289
8741
|
createElementVNode("span", _hoisted_5$f, toDisplayString(__props.status === "success" ? unref(l10n).successText : __props.status === "error" ? unref(l10n).errorText : ""), 1)
|
|
8290
|
-
], 10, _hoisted_1$
|
|
8742
|
+
], 10, _hoisted_1$u);
|
|
8291
8743
|
};
|
|
8292
8744
|
}
|
|
8293
8745
|
});
|
|
8294
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8295
|
-
const _sfc_main$
|
|
8746
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-bb653baa"]]);
|
|
8747
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
8296
8748
|
...{ name: "TaoLink" },
|
|
8297
8749
|
__name: "TaoLink",
|
|
8298
8750
|
props: {
|
|
@@ -8334,7 +8786,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
8334
8786
|
};
|
|
8335
8787
|
}
|
|
8336
8788
|
});
|
|
8337
|
-
const _sfc_main$
|
|
8789
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
8338
8790
|
...{ name: "TaoStretchedLink" },
|
|
8339
8791
|
__name: "TaoStretchedLink",
|
|
8340
8792
|
props: {
|
|
@@ -8346,7 +8798,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
8346
8798
|
setup(__props) {
|
|
8347
8799
|
const props = __props;
|
|
8348
8800
|
return (_ctx, _cache) => {
|
|
8349
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8801
|
+
return openBlock(), createBlock(_sfc_main$v, mergeProps({ class: "tao-stretched-link" }, props), {
|
|
8350
8802
|
default: withCtx(() => [
|
|
8351
8803
|
renderSlot(_ctx.$slots, "default")
|
|
8352
8804
|
]),
|
|
@@ -8355,8 +8807,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
8355
8807
|
};
|
|
8356
8808
|
}
|
|
8357
8809
|
});
|
|
8358
|
-
const _hoisted_1$
|
|
8359
|
-
const _sfc_main$
|
|
8810
|
+
const _hoisted_1$t = ["for"];
|
|
8811
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
8360
8812
|
...{ name: "TaoFormField" },
|
|
8361
8813
|
__name: "TaoFormField",
|
|
8362
8814
|
props: {
|
|
@@ -8406,7 +8858,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
8406
8858
|
class: "tao-form-field__label",
|
|
8407
8859
|
for: unref(id),
|
|
8408
8860
|
onClick: onLabelClick
|
|
8409
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
8861
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$t)) : createCommentVNode("", true),
|
|
8410
8862
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
8411
8863
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
8412
8864
|
key: 1,
|
|
@@ -8421,12 +8873,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
8421
8873
|
};
|
|
8422
8874
|
}
|
|
8423
8875
|
});
|
|
8424
|
-
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8425
|
-
const _hoisted_1$
|
|
8426
|
-
const _hoisted_2$
|
|
8427
|
-
const _hoisted_3$
|
|
8428
|
-
const _hoisted_4$
|
|
8429
|
-
const _sfc_main$
|
|
8876
|
+
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-f0778b06"]]);
|
|
8877
|
+
const _hoisted_1$s = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
8878
|
+
const _hoisted_2$q = { class: "tao-select__value" };
|
|
8879
|
+
const _hoisted_3$l = ["aria-activedescendant"];
|
|
8880
|
+
const _hoisted_4$k = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
8881
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
8430
8882
|
...{ name: "TaoSelect", inheritAttrs: false },
|
|
8431
8883
|
__name: "TaoSelect",
|
|
8432
8884
|
props: {
|
|
@@ -8574,14 +9026,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8574
9026
|
onClick: toggle,
|
|
8575
9027
|
onKeydown: onTriggerKeydown
|
|
8576
9028
|
}), [
|
|
8577
|
-
createElementVNode("span", _hoisted_2$
|
|
9029
|
+
createElementVNode("span", _hoisted_2$q, toDisplayString(selected.value?.label ?? unref(l10n).placeholder), 1),
|
|
8578
9030
|
createElementVNode("span", {
|
|
8579
9031
|
class: normalizeClass(["tao-select__chevron", { "tao-select__chevron--custom": _ctx.$slots.chevron }]),
|
|
8580
9032
|
"aria-hidden": "true"
|
|
8581
9033
|
}, [
|
|
8582
9034
|
renderSlot(_ctx.$slots, "chevron", {}, void 0, true)
|
|
8583
9035
|
], 2)
|
|
8584
|
-
], 16, _hoisted_1$
|
|
9036
|
+
], 16, _hoisted_1$s),
|
|
8585
9037
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
8586
9038
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
8587
9039
|
key: 0,
|
|
@@ -8617,9 +9069,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8617
9069
|
}, ["prevent"])),
|
|
8618
9070
|
onClick: ($event) => selectOption(option),
|
|
8619
9071
|
onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
|
|
8620
|
-
}, toDisplayString(option.label), 43, _hoisted_4$
|
|
9072
|
+
}, toDisplayString(option.label), 43, _hoisted_4$k);
|
|
8621
9073
|
}), 128))
|
|
8622
|
-
], 40, _hoisted_3$
|
|
9074
|
+
], 40, _hoisted_3$l),
|
|
8623
9075
|
__props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
|
|
8624
9076
|
key: 0,
|
|
8625
9077
|
type: "button",
|
|
@@ -8638,14 +9090,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8638
9090
|
};
|
|
8639
9091
|
}
|
|
8640
9092
|
});
|
|
8641
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9093
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-86083e38"]]);
|
|
8642
9094
|
const segmentedKey = Symbol("taoSegmented");
|
|
8643
|
-
const _hoisted_1$
|
|
8644
|
-
const _hoisted_2$
|
|
9095
|
+
const _hoisted_1$r = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
|
|
9096
|
+
const _hoisted_2$p = {
|
|
8645
9097
|
key: 0,
|
|
8646
9098
|
class: "tao-segmented__legend"
|
|
8647
9099
|
};
|
|
8648
|
-
const _sfc_main$
|
|
9100
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
8649
9101
|
...{ name: "TaoSegmented" },
|
|
8650
9102
|
__name: "TaoSegmented",
|
|
8651
9103
|
props: {
|
|
@@ -8757,7 +9209,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8757
9209
|
"aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
|
|
8758
9210
|
id: unref(field)?.id
|
|
8759
9211
|
}, [
|
|
8760
|
-
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
9212
|
+
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$p, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
8761
9213
|
createElementVNode("div", {
|
|
8762
9214
|
ref_key: "trackRef",
|
|
8763
9215
|
ref: trackRef,
|
|
@@ -8770,15 +9222,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8770
9222
|
}, null, 4),
|
|
8771
9223
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
8772
9224
|
], 512)
|
|
8773
|
-
], 14, _hoisted_1$
|
|
9225
|
+
], 14, _hoisted_1$r);
|
|
8774
9226
|
};
|
|
8775
9227
|
}
|
|
8776
9228
|
});
|
|
8777
|
-
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8778
|
-
const _hoisted_1$
|
|
8779
|
-
const _hoisted_2$
|
|
8780
|
-
const _hoisted_3$
|
|
8781
|
-
const _hoisted_4$
|
|
9229
|
+
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-49ed8ced"]]);
|
|
9230
|
+
const _hoisted_1$q = ["for"];
|
|
9231
|
+
const _hoisted_2$o = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
9232
|
+
const _hoisted_3$k = { class: "tao-segmented-option__face" };
|
|
9233
|
+
const _hoisted_4$j = {
|
|
8782
9234
|
key: 0,
|
|
8783
9235
|
class: "tao-segmented-option__icon",
|
|
8784
9236
|
"aria-hidden": "true"
|
|
@@ -8795,7 +9247,7 @@ const _hoisted_7$8 = {
|
|
|
8795
9247
|
key: 3,
|
|
8796
9248
|
class: "tao-segmented-option__count"
|
|
8797
9249
|
};
|
|
8798
|
-
const _sfc_main$
|
|
9250
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
8799
9251
|
...{ name: "TaoSegmentedOption" },
|
|
8800
9252
|
__name: "TaoSegmentedOption",
|
|
8801
9253
|
props: {
|
|
@@ -8866,9 +9318,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8866
9318
|
disabled: isDisabled.value,
|
|
8867
9319
|
"aria-label": __props.ariaLabel,
|
|
8868
9320
|
onChange
|
|
8869
|
-
}, null, 40, _hoisted_2$
|
|
8870
|
-
createElementVNode("span", _hoisted_3$
|
|
8871
|
-
__props.icon || has("icon") ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9321
|
+
}, null, 40, _hoisted_2$o),
|
|
9322
|
+
createElementVNode("span", _hoisted_3$k, [
|
|
9323
|
+
__props.icon || has("icon") ? (openBlock(), createElementBlock("span", _hoisted_4$j, [
|
|
8872
9324
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
8873
9325
|
createVNode(TaoIcon, { name: __props.icon }, null, 8, ["name"])
|
|
8874
9326
|
], true)
|
|
@@ -8880,15 +9332,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8880
9332
|
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$b, toDisplayString(__props.ariaLabel), 1)) : createCommentVNode("", true),
|
|
8881
9333
|
countLabel.value ? (openBlock(), createElementBlock("span", _hoisted_7$8, toDisplayString(countLabel.value), 1)) : createCommentVNode("", true)
|
|
8882
9334
|
])
|
|
8883
|
-
], 10, _hoisted_1$
|
|
9335
|
+
], 10, _hoisted_1$q);
|
|
8884
9336
|
};
|
|
8885
9337
|
}
|
|
8886
9338
|
});
|
|
8887
|
-
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8888
|
-
const _hoisted_1$
|
|
8889
|
-
const _hoisted_2$
|
|
8890
|
-
const _hoisted_3$
|
|
8891
|
-
const _hoisted_4$
|
|
9339
|
+
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-71f5d295"]]);
|
|
9340
|
+
const _hoisted_1$p = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
|
|
9341
|
+
const _hoisted_2$n = { class: "tao-color-picker__strips" };
|
|
9342
|
+
const _hoisted_3$j = { class: "tao-color-picker__row" };
|
|
9343
|
+
const _hoisted_4$i = { class: "tao-color-picker__preview" };
|
|
8892
9344
|
const _hoisted_5$d = {
|
|
8893
9345
|
key: 0,
|
|
8894
9346
|
class: "tao-color-picker__hex"
|
|
@@ -8900,7 +9352,7 @@ const _hoisted_6$a = {
|
|
|
8900
9352
|
const _hoisted_7$7 = ["disabled", "aria-label", "title"];
|
|
8901
9353
|
const _hoisted_8$6 = ["aria-label"];
|
|
8902
9354
|
const _hoisted_9$5 = ["disabled", "aria-label", "title", "onClick"];
|
|
8903
|
-
const _sfc_main$
|
|
9355
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
8904
9356
|
...{ name: "TaoColorPicker" },
|
|
8905
9357
|
__name: "TaoColorPicker",
|
|
8906
9358
|
props: {
|
|
@@ -9107,9 +9559,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
9107
9559
|
class: "tao-color-picker__cursor",
|
|
9108
9560
|
style: normalizeStyle({ left: `${state.s * 100}%`, top: `${(1 - state.v) * 100}%`, backgroundColor: solidCss.value })
|
|
9109
9561
|
}, null, 4)
|
|
9110
|
-
], 44, _hoisted_1$
|
|
9111
|
-
createElementVNode("div", _hoisted_2$
|
|
9112
|
-
createVNode(_sfc_main$
|
|
9562
|
+
], 44, _hoisted_1$p),
|
|
9563
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
9564
|
+
createVNode(_sfc_main$1a, {
|
|
9113
9565
|
modelValue: hueValue.value,
|
|
9114
9566
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hueValue.value = $event),
|
|
9115
9567
|
class: "tao-color-picker__hue",
|
|
@@ -9121,7 +9573,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
9121
9573
|
"aria-label": unref(l10n).hueLabel,
|
|
9122
9574
|
onChange: _cache[1] || (_cache[1] = ($event) => emit("change", hex.value))
|
|
9123
9575
|
}, null, 8, ["modelValue", "disabled", "aria-label"]),
|
|
9124
|
-
__props.alpha ? (openBlock(), createBlock(_sfc_main$
|
|
9576
|
+
__props.alpha ? (openBlock(), createBlock(_sfc_main$1a, {
|
|
9125
9577
|
key: 0,
|
|
9126
9578
|
modelValue: alphaValue.value,
|
|
9127
9579
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => alphaValue.value = $event),
|
|
@@ -9156,8 +9608,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
9156
9608
|
]),
|
|
9157
9609
|
_: 1
|
|
9158
9610
|
}, 8, ["modelValue", "aria-label", "disabled"])) : createCommentVNode("", true),
|
|
9159
|
-
createElementVNode("div", _hoisted_3$
|
|
9160
|
-
createElementVNode("span", _hoisted_4$
|
|
9611
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
9612
|
+
createElementVNode("span", _hoisted_4$i, [
|
|
9161
9613
|
createElementVNode("span", {
|
|
9162
9614
|
style: normalizeStyle({ backgroundColor: hex.value })
|
|
9163
9615
|
}, null, 4)
|
|
@@ -9227,10 +9679,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
9227
9679
|
};
|
|
9228
9680
|
}
|
|
9229
9681
|
});
|
|
9230
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9231
|
-
const _hoisted_1$
|
|
9232
|
-
const _hoisted_2$
|
|
9233
|
-
const _sfc_main$
|
|
9682
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-54d56769"]]);
|
|
9683
|
+
const _hoisted_1$o = ["disabled", "aria-label", "aria-expanded"];
|
|
9684
|
+
const _hoisted_2$m = ["disabled"];
|
|
9685
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
9234
9686
|
...{ name: "TaoColorInput", inheritAttrs: false },
|
|
9235
9687
|
__name: "TaoColorInput",
|
|
9236
9688
|
props: {
|
|
@@ -9295,7 +9747,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9295
9747
|
createElementVNode("span", {
|
|
9296
9748
|
class: normalizeClass(["tao-color-input__text", { "tao-color-input__text--empty": empty.value }])
|
|
9297
9749
|
}, toDisplayString(text.value), 3)
|
|
9298
|
-
], 16, _hoisted_1$
|
|
9750
|
+
], 16, _hoisted_1$o)
|
|
9299
9751
|
]),
|
|
9300
9752
|
default: withCtx(() => [
|
|
9301
9753
|
createVNode(TaoColorPicker, {
|
|
@@ -9316,21 +9768,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
9316
9768
|
class: "tao-color-input__clear",
|
|
9317
9769
|
disabled: empty.value,
|
|
9318
9770
|
onClick: clear
|
|
9319
|
-
}, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$
|
|
9771
|
+
}, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$m)) : createCommentVNode("", true)
|
|
9320
9772
|
]),
|
|
9321
9773
|
_: 1
|
|
9322
9774
|
}, 16, ["placement", "disabled"]);
|
|
9323
9775
|
};
|
|
9324
9776
|
}
|
|
9325
9777
|
});
|
|
9326
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9327
|
-
const _hoisted_1$
|
|
9328
|
-
const _hoisted_2$
|
|
9778
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-7e3f5d62"]]);
|
|
9779
|
+
const _hoisted_1$n = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
9780
|
+
const _hoisted_2$l = {
|
|
9329
9781
|
key: 0,
|
|
9330
9782
|
class: "tao-combobox__empty"
|
|
9331
9783
|
};
|
|
9332
|
-
const _hoisted_3$
|
|
9333
|
-
const _sfc_main$
|
|
9784
|
+
const _hoisted_3$i = ["id", "aria-selected", "aria-disabled", "data-tao-combobox-index", "onClick", "onMouseenter"];
|
|
9785
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
9334
9786
|
...{ name: "TaoCombobox", inheritAttrs: false },
|
|
9335
9787
|
__name: "TaoCombobox",
|
|
9336
9788
|
props: {
|
|
@@ -9378,8 +9830,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9378
9830
|
return { value: props.modelValue, label: String(props.modelValue) };
|
|
9379
9831
|
});
|
|
9380
9832
|
const needle = computed(() => query.value.trim().toLowerCase());
|
|
9833
|
+
const typed = ref(false);
|
|
9381
9834
|
const filtered = computed(() => {
|
|
9382
|
-
if (!needle.value) {
|
|
9835
|
+
if (!needle.value || !typed.value) {
|
|
9383
9836
|
return props.options;
|
|
9384
9837
|
}
|
|
9385
9838
|
return props.options.filter((option) => option.label.toLowerCase().includes(needle.value));
|
|
@@ -9418,6 +9871,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9418
9871
|
}
|
|
9419
9872
|
activeIndex.value = enabledIndexes.value[0] ?? -1;
|
|
9420
9873
|
}
|
|
9874
|
+
watch(open, (isOpen) => {
|
|
9875
|
+
if (!isOpen) typed.value = false;
|
|
9876
|
+
});
|
|
9421
9877
|
async function setOpen(next) {
|
|
9422
9878
|
if (props.disabled) {
|
|
9423
9879
|
return;
|
|
@@ -9544,6 +10000,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9544
10000
|
if (props.disabled) {
|
|
9545
10001
|
return;
|
|
9546
10002
|
}
|
|
10003
|
+
typed.value = true;
|
|
9547
10004
|
void setOpen(true);
|
|
9548
10005
|
resetActive();
|
|
9549
10006
|
}
|
|
@@ -9699,7 +10156,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9699
10156
|
onFocus,
|
|
9700
10157
|
onBlur,
|
|
9701
10158
|
onKeydown: onInputKeydown
|
|
9702
|
-
}), null, 16, _hoisted_1$
|
|
10159
|
+
}), null, 16, _hoisted_1$n),
|
|
9703
10160
|
createElementVNode("span", {
|
|
9704
10161
|
class: normalizeClass(["tao-combobox__chevron", { "tao-combobox__chevron--custom": _ctx.$slots.chevron }]),
|
|
9705
10162
|
"aria-hidden": "true"
|
|
@@ -9722,7 +10179,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9722
10179
|
class: "tao-combobox__list",
|
|
9723
10180
|
role: "listbox"
|
|
9724
10181
|
}, [
|
|
9725
|
-
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$
|
|
10182
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$l, [
|
|
9726
10183
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
9727
10184
|
createTextVNode(toDisplayString(unref(l10n).emptyText), 1)
|
|
9728
10185
|
], true)
|
|
@@ -9752,7 +10209,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9752
10209
|
], true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
9753
10210
|
createTextVNode(toDisplayString(row.option.label), 1)
|
|
9754
10211
|
], 64))
|
|
9755
|
-
], 42, _hoisted_3$
|
|
10212
|
+
], 42, _hoisted_3$i);
|
|
9756
10213
|
}), 128))
|
|
9757
10214
|
], 512),
|
|
9758
10215
|
__props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
|
|
@@ -9772,7 +10229,307 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
9772
10229
|
};
|
|
9773
10230
|
}
|
|
9774
10231
|
});
|
|
9775
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10232
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-3e73b0e1"]]);
|
|
10233
|
+
function presetLine(options) {
|
|
10234
|
+
const usable2 = options.filter((option) => !option.disabled);
|
|
10235
|
+
return [...usable2.filter((option) => !option.default), ...usable2.filter((option) => option.default)];
|
|
10236
|
+
}
|
|
10237
|
+
function presetList(options) {
|
|
10238
|
+
return [...options.filter((option) => option.default), ...options.filter((option) => !option.default)];
|
|
10239
|
+
}
|
|
10240
|
+
function stepPreset(options, value, direction, loop = false) {
|
|
10241
|
+
const line = presetLine(options);
|
|
10242
|
+
if (!line.length) {
|
|
10243
|
+
return value;
|
|
10244
|
+
}
|
|
10245
|
+
const at = line.findIndex((option) => option.value === value);
|
|
10246
|
+
if (at >= 0) {
|
|
10247
|
+
const to = at + direction;
|
|
10248
|
+
const index = loop ? (to + line.length) % line.length : Math.min(Math.max(to, 0), line.length - 1);
|
|
10249
|
+
return line[index].value;
|
|
10250
|
+
}
|
|
10251
|
+
const fallback = line.find((option) => option.default);
|
|
10252
|
+
if (typeof value === "number") {
|
|
10253
|
+
const numbers = line.filter((option) => typeof option.value === "number");
|
|
10254
|
+
const near = direction > 0 ? numbers.find((option) => option.value > value) : [...numbers].reverse().find((option) => option.value < value);
|
|
10255
|
+
if (near) {
|
|
10256
|
+
return near.value;
|
|
10257
|
+
}
|
|
10258
|
+
return direction > 0 || loop ? fallback?.value ?? value : value;
|
|
10259
|
+
}
|
|
10260
|
+
return (direction > 0 ? line[0] : line[line.length - 1]).value;
|
|
10261
|
+
}
|
|
10262
|
+
function parsePreset(text, options, { custom = true, min = 1, max = 999 } = {}) {
|
|
10263
|
+
const raw = text.trim();
|
|
10264
|
+
const fallback = options.find((option) => option.default && !option.disabled);
|
|
10265
|
+
if (raw === "") {
|
|
10266
|
+
return fallback?.value;
|
|
10267
|
+
}
|
|
10268
|
+
const lower = raw.toLowerCase();
|
|
10269
|
+
const named = options.find((option) => !option.disabled && (option.label.toLowerCase() === lower || String(option.value).toLowerCase() === lower));
|
|
10270
|
+
if (named) {
|
|
10271
|
+
return named.value;
|
|
10272
|
+
}
|
|
10273
|
+
if (!custom || !/^\d+([.,]\d+)?$/.test(raw)) {
|
|
10274
|
+
return void 0;
|
|
10275
|
+
}
|
|
10276
|
+
const number = Math.round(Number(raw.replace(",", ".")));
|
|
10277
|
+
return number >= min && number <= max ? number : void 0;
|
|
10278
|
+
}
|
|
10279
|
+
const _hoisted_1$m = ["id", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "value"];
|
|
10280
|
+
const _hoisted_2$k = ["aria-label", "disabled"];
|
|
10281
|
+
const _hoisted_3$h = ["aria-label", "disabled"];
|
|
10282
|
+
const _hoisted_4$h = ["id", "aria-selected", "aria-disabled", "onClick"];
|
|
10283
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
10284
|
+
...{ name: "TaoPresetInput", inheritAttrs: false },
|
|
10285
|
+
__name: "TaoPresetInput",
|
|
10286
|
+
props: {
|
|
10287
|
+
modelValue: { default: null },
|
|
10288
|
+
options: { default: () => [] },
|
|
10289
|
+
loop: { type: Boolean, default: false },
|
|
10290
|
+
custom: { type: Boolean, default: true },
|
|
10291
|
+
min: { default: 1 },
|
|
10292
|
+
max: { default: 999 },
|
|
10293
|
+
disabled: { type: Boolean, default: false },
|
|
10294
|
+
error: { type: Boolean, default: false },
|
|
10295
|
+
size: { default: void 0 },
|
|
10296
|
+
variant: { default: "filled" },
|
|
10297
|
+
nextLabel: { default: void 0 },
|
|
10298
|
+
prevLabel: { default: void 0 }
|
|
10299
|
+
},
|
|
10300
|
+
emits: ["update:modelValue", "change"],
|
|
10301
|
+
setup(__props, { emit: __emit }) {
|
|
10302
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
10303
|
+
const props = __props;
|
|
10304
|
+
const emit = __emit;
|
|
10305
|
+
const l10n = useLocaleText(props, "presetInput");
|
|
10306
|
+
const { controlId, invalid, describedBy, localId } = useField(props);
|
|
10307
|
+
const listId = `${localId}-list`;
|
|
10308
|
+
const open = ref(false);
|
|
10309
|
+
const fieldRef = ref(null);
|
|
10310
|
+
const stepsRef = ref(null);
|
|
10311
|
+
const panelRef = ref(null);
|
|
10312
|
+
const inputRef = ref(null);
|
|
10313
|
+
const panelSize = ref("medium");
|
|
10314
|
+
const panelDensity = ref("default");
|
|
10315
|
+
const list = computed(() => presetList(props.options));
|
|
10316
|
+
function labelOf(value) {
|
|
10317
|
+
if (value === null || value === void 0) {
|
|
10318
|
+
return "";
|
|
10319
|
+
}
|
|
10320
|
+
return props.options.find((option) => option.value === value)?.label ?? String(value);
|
|
10321
|
+
}
|
|
10322
|
+
const text = ref(labelOf(props.modelValue));
|
|
10323
|
+
const typed = ref(false);
|
|
10324
|
+
watch(
|
|
10325
|
+
() => [props.modelValue, props.options],
|
|
10326
|
+
() => {
|
|
10327
|
+
text.value = labelOf(props.modelValue);
|
|
10328
|
+
typed.value = false;
|
|
10329
|
+
},
|
|
10330
|
+
{ deep: true }
|
|
10331
|
+
);
|
|
10332
|
+
const activeId = computed(() => {
|
|
10333
|
+
const index = list.value.findIndex((option) => option.value === props.modelValue);
|
|
10334
|
+
return open.value && index >= 0 ? `${listId}-opt-${index}` : void 0;
|
|
10335
|
+
});
|
|
10336
|
+
const { style: panelStyle, update: updatePosition } = useFloating(fieldRef, panelRef, open, { placement: "bottom" });
|
|
10337
|
+
useDismiss(open, () => [fieldRef.value, stepsRef.value, panelRef.value], () => closeAndCommit());
|
|
10338
|
+
useLayer(open, { onEscape: () => closeAndRevert() });
|
|
10339
|
+
function setValue(next) {
|
|
10340
|
+
if (next !== props.modelValue) {
|
|
10341
|
+
emit("update:modelValue", next);
|
|
10342
|
+
emit("change", next);
|
|
10343
|
+
}
|
|
10344
|
+
text.value = labelOf(next);
|
|
10345
|
+
typed.value = false;
|
|
10346
|
+
}
|
|
10347
|
+
function commit() {
|
|
10348
|
+
const parsed = parsePreset(text.value, props.options, { custom: props.custom, min: props.min, max: props.max });
|
|
10349
|
+
if (parsed !== void 0) {
|
|
10350
|
+
setValue(parsed);
|
|
10351
|
+
} else {
|
|
10352
|
+
text.value = labelOf(props.modelValue);
|
|
10353
|
+
typed.value = false;
|
|
10354
|
+
}
|
|
10355
|
+
}
|
|
10356
|
+
function closeAndCommit() {
|
|
10357
|
+
open.value = false;
|
|
10358
|
+
commit();
|
|
10359
|
+
}
|
|
10360
|
+
function closeAndRevert() {
|
|
10361
|
+
open.value = false;
|
|
10362
|
+
text.value = labelOf(props.modelValue);
|
|
10363
|
+
typed.value = false;
|
|
10364
|
+
}
|
|
10365
|
+
async function openList() {
|
|
10366
|
+
if (props.disabled || open.value) {
|
|
10367
|
+
return;
|
|
10368
|
+
}
|
|
10369
|
+
panelSize.value = resolveSize(fieldRef.value, props.size);
|
|
10370
|
+
panelDensity.value = resolveDensity(fieldRef.value);
|
|
10371
|
+
open.value = true;
|
|
10372
|
+
await nextTick();
|
|
10373
|
+
updatePosition();
|
|
10374
|
+
scrollSelectedIntoView();
|
|
10375
|
+
}
|
|
10376
|
+
function scrollSelectedIntoView() {
|
|
10377
|
+
panelRef.value?.querySelector('[aria-selected="true"]')?.scrollIntoView({ block: "nearest" });
|
|
10378
|
+
}
|
|
10379
|
+
function step(direction) {
|
|
10380
|
+
if (props.disabled) {
|
|
10381
|
+
return;
|
|
10382
|
+
}
|
|
10383
|
+
setValue(stepPreset(props.options, props.modelValue, direction, props.loop));
|
|
10384
|
+
void openList();
|
|
10385
|
+
void nextTick(scrollSelectedIntoView);
|
|
10386
|
+
}
|
|
10387
|
+
function jump(end) {
|
|
10388
|
+
const line = presetLine(props.options);
|
|
10389
|
+
const to = end ? line[line.length - 1] : line[0];
|
|
10390
|
+
if (to) {
|
|
10391
|
+
setValue(to.value);
|
|
10392
|
+
void openList();
|
|
10393
|
+
void nextTick(scrollSelectedIntoView);
|
|
10394
|
+
}
|
|
10395
|
+
}
|
|
10396
|
+
function pick(option) {
|
|
10397
|
+
if (option.disabled) {
|
|
10398
|
+
return;
|
|
10399
|
+
}
|
|
10400
|
+
setValue(option.value);
|
|
10401
|
+
open.value = false;
|
|
10402
|
+
}
|
|
10403
|
+
function onInput(event) {
|
|
10404
|
+
text.value = event.target.value;
|
|
10405
|
+
typed.value = true;
|
|
10406
|
+
}
|
|
10407
|
+
function onFocus() {
|
|
10408
|
+
if (props.disabled) {
|
|
10409
|
+
return;
|
|
10410
|
+
}
|
|
10411
|
+
void openList();
|
|
10412
|
+
void nextTick(() => inputRef.value?.select());
|
|
10413
|
+
}
|
|
10414
|
+
function onBlur() {
|
|
10415
|
+
closeAndCommit();
|
|
10416
|
+
}
|
|
10417
|
+
function onKeydown2(event) {
|
|
10418
|
+
if (props.disabled || event.altKey || event.ctrlKey || event.metaKey) {
|
|
10419
|
+
return;
|
|
10420
|
+
}
|
|
10421
|
+
if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
|
10422
|
+
event.preventDefault();
|
|
10423
|
+
step(event.key === "ArrowUp" ? 1 : -1);
|
|
10424
|
+
} else if ((event.key === "Home" || event.key === "End") && !typed.value) {
|
|
10425
|
+
event.preventDefault();
|
|
10426
|
+
jump(event.key === "End");
|
|
10427
|
+
} else if (event.key === "Enter") {
|
|
10428
|
+
event.preventDefault();
|
|
10429
|
+
closeAndCommit();
|
|
10430
|
+
}
|
|
10431
|
+
}
|
|
10432
|
+
return (_ctx, _cache) => {
|
|
10433
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
10434
|
+
class: ["tao-preset-input", [
|
|
10435
|
+
unref(sizeClass)(__props.size),
|
|
10436
|
+
{
|
|
10437
|
+
[`tao-preset-input--${__props.variant}`]: __props.variant !== "filled",
|
|
10438
|
+
"tao-preset-input--open": open.value,
|
|
10439
|
+
"tao-preset-input--invalid": unref(invalid),
|
|
10440
|
+
"tao-preset-input--disabled": __props.disabled
|
|
10441
|
+
}
|
|
10442
|
+
]]
|
|
10443
|
+
}), [
|
|
10444
|
+
createElementVNode("div", {
|
|
10445
|
+
ref_key: "fieldRef",
|
|
10446
|
+
ref: fieldRef,
|
|
10447
|
+
class: "tao-preset-input__field"
|
|
10448
|
+
}, [
|
|
10449
|
+
createElementVNode("input", mergeProps({ inputmode: "numeric" }, unref(controlAttrs)(), {
|
|
10450
|
+
id: unref(controlId),
|
|
10451
|
+
ref_key: "inputRef",
|
|
10452
|
+
ref: inputRef,
|
|
10453
|
+
class: "tao-preset-input__input",
|
|
10454
|
+
type: "text",
|
|
10455
|
+
role: "combobox",
|
|
10456
|
+
autocomplete: "off",
|
|
10457
|
+
"aria-autocomplete": "none",
|
|
10458
|
+
"aria-haspopup": "listbox",
|
|
10459
|
+
"aria-expanded": open.value,
|
|
10460
|
+
"aria-controls": open.value ? listId : void 0,
|
|
10461
|
+
"aria-activedescendant": activeId.value,
|
|
10462
|
+
"aria-invalid": unref(invalid) || void 0,
|
|
10463
|
+
"aria-describedby": unref(describedBy),
|
|
10464
|
+
disabled: __props.disabled,
|
|
10465
|
+
value: text.value,
|
|
10466
|
+
onInput,
|
|
10467
|
+
onFocus,
|
|
10468
|
+
onBlur,
|
|
10469
|
+
onClick: openList,
|
|
10470
|
+
onKeydown: onKeydown2
|
|
10471
|
+
}), null, 16, _hoisted_1$m)
|
|
10472
|
+
], 512),
|
|
10473
|
+
createElementVNode("div", {
|
|
10474
|
+
ref_key: "stepsRef",
|
|
10475
|
+
ref: stepsRef,
|
|
10476
|
+
class: "tao-preset-input__steps"
|
|
10477
|
+
}, [
|
|
10478
|
+
createElementVNode("button", {
|
|
10479
|
+
type: "button",
|
|
10480
|
+
tabindex: "-1",
|
|
10481
|
+
class: "tao-preset-input__step",
|
|
10482
|
+
"aria-label": unref(l10n).nextLabel,
|
|
10483
|
+
disabled: __props.disabled,
|
|
10484
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
10485
|
+
}, ["prevent"])),
|
|
10486
|
+
onClick: _cache[1] || (_cache[1] = ($event) => step(1))
|
|
10487
|
+
}, [
|
|
10488
|
+
createVNode(TaoIcon, { name: "tao-chevron-up" })
|
|
10489
|
+
], 40, _hoisted_2$k),
|
|
10490
|
+
createElementVNode("button", {
|
|
10491
|
+
type: "button",
|
|
10492
|
+
tabindex: "-1",
|
|
10493
|
+
class: "tao-preset-input__step",
|
|
10494
|
+
"aria-label": unref(l10n).prevLabel,
|
|
10495
|
+
disabled: __props.disabled,
|
|
10496
|
+
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
10497
|
+
}, ["prevent"])),
|
|
10498
|
+
onClick: _cache[3] || (_cache[3] = ($event) => step(-1))
|
|
10499
|
+
}, [
|
|
10500
|
+
createVNode(TaoIcon, { name: "tao-chevron-down" })
|
|
10501
|
+
], 40, _hoisted_3$h)
|
|
10502
|
+
], 512),
|
|
10503
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
10504
|
+
open.value ? (openBlock(), createElementBlock("ul", {
|
|
10505
|
+
key: 0,
|
|
10506
|
+
id: listId,
|
|
10507
|
+
ref_key: "panelRef",
|
|
10508
|
+
ref: panelRef,
|
|
10509
|
+
class: normalizeClass(["tao-preset-input__panel", [unref(sizeClass)(panelSize.value), unref(densityClass)(panelDensity.value)]]),
|
|
10510
|
+
role: "listbox",
|
|
10511
|
+
style: normalizeStyle(unref(panelStyle)),
|
|
10512
|
+
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
10513
|
+
}, ["prevent"]))
|
|
10514
|
+
}, [
|
|
10515
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(list.value, (option, index) => {
|
|
10516
|
+
return openBlock(), createElementBlock("li", {
|
|
10517
|
+
id: `${listId}-opt-${index}`,
|
|
10518
|
+
key: String(option.value),
|
|
10519
|
+
class: normalizeClass(["tao-preset-input__option", { "tao-preset-input__option--selected": option.value === __props.modelValue, "tao-preset-input__option--disabled": option.disabled }]),
|
|
10520
|
+
role: "option",
|
|
10521
|
+
"aria-selected": option.value === __props.modelValue,
|
|
10522
|
+
"aria-disabled": option.disabled ? true : void 0,
|
|
10523
|
+
onClick: ($event) => pick(option)
|
|
10524
|
+
}, toDisplayString(option.label), 11, _hoisted_4$h);
|
|
10525
|
+
}), 128))
|
|
10526
|
+
], 38)) : createCommentVNode("", true)
|
|
10527
|
+
]))
|
|
10528
|
+
], 16);
|
|
10529
|
+
};
|
|
10530
|
+
}
|
|
10531
|
+
});
|
|
10532
|
+
const TaoPresetInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-c3da5775"]]);
|
|
9776
10533
|
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
9777
10534
|
function formatTaoDateIso(parts) {
|
|
9778
10535
|
return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
|
|
@@ -12233,7 +12990,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12233
12990
|
class: "tao-breadcrumb__item"
|
|
12234
12991
|
}, [
|
|
12235
12992
|
index > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$4, "/")) : createCommentVNode("", true),
|
|
12236
|
-
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$
|
|
12993
|
+
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$v, {
|
|
12237
12994
|
key: 2,
|
|
12238
12995
|
class: "tao-breadcrumb__link",
|
|
12239
12996
|
to: item.to
|
|
@@ -13890,10 +14647,10 @@ const components = [
|
|
|
13890
14647
|
TaoSpoiler,
|
|
13891
14648
|
TaoSpoilerGroup,
|
|
13892
14649
|
TaoCopy,
|
|
14650
|
+
_sfc_main$13,
|
|
13893
14651
|
_sfc_main$12,
|
|
13894
|
-
_sfc_main$11,
|
|
13895
14652
|
TaoContainer,
|
|
13896
|
-
_sfc_main
|
|
14653
|
+
_sfc_main$10,
|
|
13897
14654
|
TaoSpace,
|
|
13898
14655
|
TaoGrid,
|
|
13899
14656
|
TaoGridItem,
|
|
@@ -13909,11 +14666,11 @@ const components = [
|
|
|
13909
14666
|
TaoTextarea,
|
|
13910
14667
|
TaoScrollTop,
|
|
13911
14668
|
TaoProgress,
|
|
13912
|
-
_sfc_main$
|
|
13913
|
-
_sfc_main$
|
|
14669
|
+
_sfc_main$1a,
|
|
14670
|
+
_sfc_main$O,
|
|
13914
14671
|
TaoFileDrop,
|
|
13915
14672
|
TaoDropdownMenu,
|
|
13916
|
-
_sfc_main$
|
|
14673
|
+
_sfc_main$M,
|
|
13917
14674
|
TaoMenubar,
|
|
13918
14675
|
TaoToolbar,
|
|
13919
14676
|
TaoToolbarGroup,
|
|
@@ -13929,13 +14686,14 @@ const components = [
|
|
|
13929
14686
|
TaoMarquee,
|
|
13930
14687
|
TaoContextMenu,
|
|
13931
14688
|
TaoPinCode,
|
|
14689
|
+
_sfc_main$v,
|
|
13932
14690
|
_sfc_main$u,
|
|
13933
|
-
_sfc_main$t,
|
|
13934
14691
|
TaoFormField,
|
|
13935
14692
|
TaoSelect,
|
|
13936
14693
|
TaoColorInput,
|
|
13937
14694
|
TaoColorPicker,
|
|
13938
14695
|
TaoCombobox,
|
|
14696
|
+
TaoPresetInput,
|
|
13939
14697
|
_sfc_main$l,
|
|
13940
14698
|
TaoDate,
|
|
13941
14699
|
TaoDateRange,
|
|
@@ -14004,7 +14762,7 @@ export {
|
|
|
14004
14762
|
TaoEmpty,
|
|
14005
14763
|
TaoFieldset,
|
|
14006
14764
|
TaoFileDrop,
|
|
14007
|
-
_sfc_main
|
|
14765
|
+
_sfc_main$10 as TaoFlex,
|
|
14008
14766
|
TaoFormField,
|
|
14009
14767
|
TaoGrid,
|
|
14010
14768
|
TaoGridItem,
|
|
@@ -14014,12 +14772,12 @@ export {
|
|
|
14014
14772
|
TaoInput,
|
|
14015
14773
|
TaoInputGroup,
|
|
14016
14774
|
TaoInputNumber,
|
|
14017
|
-
_sfc_main$
|
|
14775
|
+
_sfc_main$v as TaoLink,
|
|
14018
14776
|
TaoList,
|
|
14019
14777
|
TaoListItem,
|
|
14020
14778
|
TaoLoader,
|
|
14021
14779
|
TaoMarquee,
|
|
14022
|
-
_sfc_main$
|
|
14780
|
+
_sfc_main$M as TaoMenu,
|
|
14023
14781
|
TaoMenubar,
|
|
14024
14782
|
TaoMeter,
|
|
14025
14783
|
TaoModal,
|
|
@@ -14027,38 +14785,39 @@ export {
|
|
|
14027
14785
|
TaoPagination,
|
|
14028
14786
|
TaoPinCode,
|
|
14029
14787
|
TaoPopover,
|
|
14788
|
+
TaoPresetInput,
|
|
14030
14789
|
TaoProgress,
|
|
14031
14790
|
TaoQuantity,
|
|
14032
14791
|
TaoRadio,
|
|
14033
14792
|
TaoRadioGroup,
|
|
14034
|
-
_sfc_main$
|
|
14793
|
+
_sfc_main$O as TaoRangeSlider,
|
|
14035
14794
|
TaoScrollTop,
|
|
14036
14795
|
TaoScrubber,
|
|
14037
14796
|
TaoSegmented,
|
|
14038
14797
|
TaoSegmentedOption,
|
|
14039
14798
|
TaoSelect,
|
|
14040
14799
|
TaoSkeleton,
|
|
14041
|
-
_sfc_main$
|
|
14800
|
+
_sfc_main$1a as TaoSlider,
|
|
14042
14801
|
TaoSpace,
|
|
14043
14802
|
TaoSparkline,
|
|
14044
14803
|
TaoSplit,
|
|
14045
14804
|
TaoSpoiler,
|
|
14046
14805
|
TaoSpoilerGroup,
|
|
14047
14806
|
TaoStages,
|
|
14048
|
-
_sfc_main$
|
|
14807
|
+
_sfc_main$u as TaoStretchedLink,
|
|
14049
14808
|
TaoSwitch,
|
|
14050
14809
|
TaoTable,
|
|
14051
14810
|
TaoTabs,
|
|
14052
14811
|
TaoTag,
|
|
14053
14812
|
TaoTextarea,
|
|
14054
|
-
_sfc_main$
|
|
14813
|
+
_sfc_main$13 as TaoThemeToggle,
|
|
14055
14814
|
TaoTimeline,
|
|
14056
14815
|
TaoToastViewport,
|
|
14057
14816
|
TaoToolbar,
|
|
14058
14817
|
TaoToolbarGroup,
|
|
14059
14818
|
TaoToolbarSeparator,
|
|
14060
14819
|
TaoTooltip,
|
|
14061
|
-
_sfc_main$
|
|
14820
|
+
_sfc_main$12 as TaoTour,
|
|
14062
14821
|
TaoTree,
|
|
14063
14822
|
TaoUI,
|
|
14064
14823
|
apcaContrast,
|
|
@@ -14090,11 +14849,13 @@ export {
|
|
|
14090
14849
|
provideTaoLocale,
|
|
14091
14850
|
readTaoMode,
|
|
14092
14851
|
registerTaoIcons,
|
|
14852
|
+
resolveTaoMode,
|
|
14093
14853
|
resolveTourTarget,
|
|
14094
14854
|
rgbToHsl,
|
|
14095
14855
|
rgbaToHsva,
|
|
14096
14856
|
setTaoLocale,
|
|
14097
14857
|
srgbToLinear,
|
|
14858
|
+
systemTaoMode,
|
|
14098
14859
|
taoChartTheme,
|
|
14099
14860
|
taoDateOrder,
|
|
14100
14861
|
taoIconNames,
|