@1337exp/taoui 5.32.2 → 5.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/README.md +5 -1
- package/README.ru.md +5 -1
- package/dist/index.d.ts +476 -224
- package/dist/index.js +1183 -631
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +1 -1
- package/skills/taoui/references/components.md +36 -2
- package/src/styles/typography.css +2 -0
package/dist/index.js
CHANGED
|
@@ -110,9 +110,9 @@ function resolveTaoIcon(name) {
|
|
|
110
110
|
return name.startsWith(TAO_ICON_PREFIX) ? builtin[name.slice(TAO_ICON_PREFIX.length)] : registered[name];
|
|
111
111
|
}
|
|
112
112
|
const taoIconNames = Object.keys(builtin).map((name) => TAO_ICON_PREFIX + name);
|
|
113
|
-
const _hoisted_1$
|
|
114
|
-
const _hoisted_2$
|
|
115
|
-
const _sfc_main$
|
|
113
|
+
const _hoisted_1$1b = { class: "tao-icon" };
|
|
114
|
+
const _hoisted_2$12 = ["viewBox", "width", "height", "innerHTML"];
|
|
115
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
116
116
|
...{ name: "TaoIcon" },
|
|
117
117
|
__name: "TaoIcon",
|
|
118
118
|
props: {
|
|
@@ -132,7 +132,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
132
132
|
}
|
|
133
133
|
const box = computed(() => props.size ? `${props.size}px` : "1em");
|
|
134
134
|
return (_ctx, _cache) => {
|
|
135
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
135
|
+
return openBlock(), createElementBlock("span", _hoisted_1$1b, [
|
|
136
136
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
137
137
|
def.value ? (openBlock(), createElementBlock("svg", {
|
|
138
138
|
key: 0,
|
|
@@ -148,7 +148,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
148
148
|
"aria-hidden": "true",
|
|
149
149
|
focusable: "false",
|
|
150
150
|
innerHTML: def.value.body
|
|
151
|
-
}, null, 10, _hoisted_2$
|
|
151
|
+
}, null, 10, _hoisted_2$12)) : (openBlock(), createElementBlock("i", {
|
|
152
152
|
key: 1,
|
|
153
153
|
class: normalizeClass(["tao-icon__value", [`icon-${props.name}`, { "tao-icon__value--invert": props.invert }]]),
|
|
154
154
|
style: normalizeStyle(props.size ? `font-size: ${props.size}px` : "")
|
|
@@ -165,7 +165,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
165
165
|
}
|
|
166
166
|
return target;
|
|
167
167
|
};
|
|
168
|
-
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
168
|
+
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-ef842331"]]);
|
|
169
169
|
const localeEn = {
|
|
170
170
|
code: "en-US",
|
|
171
171
|
alert: { closeLabel: "Close", detailsLabel: "Details" },
|
|
@@ -237,6 +237,7 @@ const localeEn = {
|
|
|
237
237
|
inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
|
|
238
238
|
list: { emptyText: "Nothing here" },
|
|
239
239
|
modal: { closeLabel: "Close" },
|
|
240
|
+
commandPalette: { label: "Commands", placeholder: "Type a command…", emptyText: "No commands found" },
|
|
240
241
|
toolbar: { overflowLabel: "More" },
|
|
241
242
|
pagination: {
|
|
242
243
|
ariaLabel: "Pagination",
|
|
@@ -473,6 +474,7 @@ const localeRu = {
|
|
|
473
474
|
inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
|
|
474
475
|
list: { emptyText: "Ничего нет" },
|
|
475
476
|
modal: { closeLabel: "Закрыть" },
|
|
477
|
+
commandPalette: { label: "Команды", placeholder: "Введите команду…", emptyText: "Команд не найдено" },
|
|
476
478
|
toolbar: { overflowLabel: "Ещё" },
|
|
477
479
|
pagination: {
|
|
478
480
|
ariaLabel: "Пагинация",
|
|
@@ -600,32 +602,32 @@ function pluralForm(forms, n, code) {
|
|
|
600
602
|
}
|
|
601
603
|
return forms[category] ?? forms.other;
|
|
602
604
|
}
|
|
603
|
-
const _hoisted_1$
|
|
604
|
-
const _hoisted_2$
|
|
605
|
+
const _hoisted_1$1a = ["role", "aria-hidden"];
|
|
606
|
+
const _hoisted_2$11 = {
|
|
605
607
|
key: 0,
|
|
606
608
|
class: "tao-loader__ellipsis",
|
|
607
609
|
"aria-hidden": "true"
|
|
608
610
|
};
|
|
609
|
-
const _hoisted_3$
|
|
611
|
+
const _hoisted_3$U = {
|
|
610
612
|
key: 1,
|
|
611
613
|
class: "tao-loader__ring",
|
|
612
614
|
"aria-hidden": "true"
|
|
613
615
|
};
|
|
614
|
-
const _hoisted_4$
|
|
616
|
+
const _hoisted_4$J = {
|
|
615
617
|
key: 2,
|
|
616
618
|
class: "tao-loader__swap",
|
|
617
619
|
"aria-hidden": "true"
|
|
618
620
|
};
|
|
619
|
-
const _hoisted_5$
|
|
621
|
+
const _hoisted_5$x = {
|
|
620
622
|
key: 3,
|
|
621
623
|
class: "tao-loader__pulse",
|
|
622
624
|
"aria-hidden": "true"
|
|
623
625
|
};
|
|
624
|
-
const _hoisted_6$
|
|
626
|
+
const _hoisted_6$r = {
|
|
625
627
|
key: 4,
|
|
626
628
|
class: "tao-sr-only"
|
|
627
629
|
};
|
|
628
|
-
const _sfc_main$
|
|
630
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
629
631
|
...{ name: "TaoLoader" },
|
|
630
632
|
__name: "TaoLoader",
|
|
631
633
|
props: {
|
|
@@ -663,31 +665,31 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
663
665
|
role: __props.decorative ? void 0 : "status",
|
|
664
666
|
"aria-hidden": __props.decorative ? "true" : void 0
|
|
665
667
|
}, [
|
|
666
|
-
__props.variant === "dots" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
668
|
+
__props.variant === "dots" ? (openBlock(), createElementBlock("div", _hoisted_2$11, [..._cache[0] || (_cache[0] = [
|
|
667
669
|
createElementVNode("div", null, null, -1),
|
|
668
670
|
createElementVNode("div", null, null, -1),
|
|
669
671
|
createElementVNode("div", null, null, -1),
|
|
670
672
|
createElementVNode("div", null, null, -1)
|
|
671
|
-
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
673
|
+
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$U)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$J, [..._cache[1] || (_cache[1] = [
|
|
672
674
|
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)
|
|
673
|
-
])])) : (openBlock(), createElementBlock("span", _hoisted_5$
|
|
674
|
-
!__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
675
|
-
], 14, _hoisted_1$
|
|
675
|
+
])])) : (openBlock(), createElementBlock("span", _hoisted_5$x)),
|
|
676
|
+
!__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$r, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
|
|
677
|
+
], 14, _hoisted_1$1a);
|
|
676
678
|
};
|
|
677
679
|
}
|
|
678
680
|
});
|
|
679
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
680
|
-
const _hoisted_1$
|
|
681
|
-
const _hoisted_2
|
|
681
|
+
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-03f29efb"]]);
|
|
682
|
+
const _hoisted_1$19 = ["type", "aria-pressed", "aria-keyshortcuts", "title", "aria-busy", "disabled"];
|
|
683
|
+
const _hoisted_2$10 = {
|
|
682
684
|
key: 2,
|
|
683
685
|
class: "tao-button__content"
|
|
684
686
|
};
|
|
685
|
-
const _hoisted_3$
|
|
687
|
+
const _hoisted_3$T = {
|
|
686
688
|
key: 4,
|
|
687
689
|
class: "tao-button__shortcut",
|
|
688
690
|
"aria-hidden": "true"
|
|
689
691
|
};
|
|
690
|
-
const _sfc_main$
|
|
692
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
691
693
|
...{ name: "TaoButton" },
|
|
692
694
|
__name: "TaoButton",
|
|
693
695
|
props: {
|
|
@@ -770,7 +772,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
770
772
|
class: "tao-button__icon",
|
|
771
773
|
name: __props.icon
|
|
772
774
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
773
|
-
hasContent() ? (openBlock(), createElementBlock("span", _hoisted_2
|
|
775
|
+
hasContent() ? (openBlock(), createElementBlock("span", _hoisted_2$10, [
|
|
774
776
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
775
777
|
])) : createCommentVNode("", true),
|
|
776
778
|
__props.iconEnd ? (openBlock(), createBlock(TaoIcon, {
|
|
@@ -778,12 +780,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
778
780
|
class: "tao-button__icon",
|
|
779
781
|
name: __props.iconEnd
|
|
780
782
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
781
|
-
__props.shortcut && !isIconOnly() ? (openBlock(), createElementBlock("kbd", _hoisted_3$
|
|
782
|
-
], 14, _hoisted_1$
|
|
783
|
+
__props.shortcut && !isIconOnly() ? (openBlock(), createElementBlock("kbd", _hoisted_3$T, toDisplayString(__props.shortcut), 1)) : createCommentVNode("", true)
|
|
784
|
+
], 14, _hoisted_1$19);
|
|
783
785
|
};
|
|
784
786
|
}
|
|
785
787
|
});
|
|
786
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
788
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-be24f74d"]]);
|
|
787
789
|
function toCssLength(value) {
|
|
788
790
|
if (value === void 0 || value === null || value === "") {
|
|
789
791
|
return void 0;
|
|
@@ -802,7 +804,7 @@ function stripeClasses(stripe, tone = "accent") {
|
|
|
802
804
|
function surfaceClass(surface) {
|
|
803
805
|
return surface && surface !== "flat" ? `tao-surface-${surface}` : void 0;
|
|
804
806
|
}
|
|
805
|
-
const _sfc_main$
|
|
807
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
806
808
|
...{ name: "TaoBlock" },
|
|
807
809
|
__name: "TaoBlock",
|
|
808
810
|
props: {
|
|
@@ -835,7 +837,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
835
837
|
};
|
|
836
838
|
}
|
|
837
839
|
});
|
|
838
|
-
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
840
|
+
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-1fc66575"]]);
|
|
839
841
|
function useControlAttrs() {
|
|
840
842
|
const attrs = useAttrs();
|
|
841
843
|
return {
|
|
@@ -857,16 +859,16 @@ function useField(props) {
|
|
|
857
859
|
const describedBy = computed(() => field?.describedBy.value);
|
|
858
860
|
return { field, controlId, invalid, describedBy, localId };
|
|
859
861
|
}
|
|
860
|
-
const _hoisted_1$
|
|
862
|
+
const _hoisted_1$18 = {
|
|
861
863
|
key: 0,
|
|
862
864
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
863
865
|
};
|
|
864
|
-
const _hoisted_2
|
|
865
|
-
const _hoisted_3$
|
|
866
|
+
const _hoisted_2$$ = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
867
|
+
const _hoisted_3$S = {
|
|
866
868
|
key: 1,
|
|
867
869
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
868
870
|
};
|
|
869
|
-
const _sfc_main$
|
|
871
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
870
872
|
...{ name: "TaoInput", inheritAttrs: false },
|
|
871
873
|
__name: "TaoInput",
|
|
872
874
|
props: {
|
|
@@ -914,7 +916,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
914
916
|
"tao-input-shell--suffix": has("suffix")
|
|
915
917
|
}])
|
|
916
918
|
}, [
|
|
917
|
-
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
919
|
+
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$18, [
|
|
918
920
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
919
921
|
])) : createCommentVNode("", true),
|
|
920
922
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
@@ -929,8 +931,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
929
931
|
onInput: handleInput,
|
|
930
932
|
onBlur: handleBlur,
|
|
931
933
|
onFocus: handleFocus
|
|
932
|
-
}), null, 16, _hoisted_2
|
|
933
|
-
has("suffix") ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
934
|
+
}), null, 16, _hoisted_2$$),
|
|
935
|
+
has("suffix") ? (openBlock(), createElementBlock("span", _hoisted_3$S, [
|
|
934
936
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
935
937
|
])) : createCommentVNode("", true)
|
|
936
938
|
], 2)
|
|
@@ -938,17 +940,17 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
938
940
|
};
|
|
939
941
|
}
|
|
940
942
|
});
|
|
941
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
942
|
-
const _hoisted_1$
|
|
943
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-66bc5496"]]);
|
|
944
|
+
const _hoisted_1$17 = {
|
|
943
945
|
key: 0,
|
|
944
946
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
945
947
|
};
|
|
946
|
-
const _hoisted_2$
|
|
947
|
-
const _hoisted_3$
|
|
948
|
+
const _hoisted_2$_ = { class: "tao-input-group__field" };
|
|
949
|
+
const _hoisted_3$R = {
|
|
948
950
|
key: 1,
|
|
949
951
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
950
952
|
};
|
|
951
|
-
const _sfc_main$
|
|
953
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
952
954
|
...{ name: "TaoInputGroup" },
|
|
953
955
|
__name: "TaoInputGroup",
|
|
954
956
|
props: {
|
|
@@ -975,30 +977,30 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
975
977
|
onFocusin: onFocusIn,
|
|
976
978
|
onFocusout: onFocusOut
|
|
977
979
|
}, [
|
|
978
|
-
has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
980
|
+
has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
979
981
|
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
980
982
|
])) : createCommentVNode("", true),
|
|
981
|
-
createElementVNode("div", _hoisted_2$
|
|
983
|
+
createElementVNode("div", _hoisted_2$_, [
|
|
982
984
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
983
985
|
]),
|
|
984
|
-
has("after") ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
986
|
+
has("after") ? (openBlock(), createElementBlock("div", _hoisted_3$R, [
|
|
985
987
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
986
988
|
])) : createCommentVNode("", true)
|
|
987
989
|
], 34);
|
|
988
990
|
};
|
|
989
991
|
}
|
|
990
992
|
});
|
|
991
|
-
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
992
|
-
const _hoisted_1$
|
|
993
|
-
const _hoisted_2$
|
|
993
|
+
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-d38f6b53"]]);
|
|
994
|
+
const _hoisted_1$16 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
995
|
+
const _hoisted_2$Z = {
|
|
994
996
|
key: 0,
|
|
995
997
|
class: "tao-input-number__steppers"
|
|
996
998
|
};
|
|
997
|
-
const _hoisted_3$
|
|
998
|
-
const _hoisted_4$
|
|
999
|
-
const _hoisted_5$
|
|
1000
|
-
const _hoisted_6$
|
|
1001
|
-
const _sfc_main$
|
|
999
|
+
const _hoisted_3$Q = ["aria-label", "disabled"];
|
|
1000
|
+
const _hoisted_4$I = { "aria-hidden": "true" };
|
|
1001
|
+
const _hoisted_5$w = ["aria-label", "disabled"];
|
|
1002
|
+
const _hoisted_6$q = { "aria-hidden": "true" };
|
|
1003
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
1002
1004
|
...{ name: "TaoInputNumber", inheritAttrs: false },
|
|
1003
1005
|
__name: "TaoInputNumber",
|
|
1004
1006
|
props: {
|
|
@@ -1157,8 +1159,8 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1157
1159
|
onFocus,
|
|
1158
1160
|
onBlur,
|
|
1159
1161
|
onKeydown: onKeydown2
|
|
1160
|
-
}), null, 16, _hoisted_1$
|
|
1161
|
-
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1162
|
+
}), null, 16, _hoisted_1$16),
|
|
1163
|
+
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$Z, [
|
|
1162
1164
|
createElementVNode("button", {
|
|
1163
1165
|
type: "button",
|
|
1164
1166
|
class: "tao-input-number__step",
|
|
@@ -1167,12 +1169,12 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1167
1169
|
disabled: __props.disabled || atMax.value,
|
|
1168
1170
|
onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
|
|
1169
1171
|
}, [
|
|
1170
|
-
createElementVNode("span", _hoisted_4$
|
|
1172
|
+
createElementVNode("span", _hoisted_4$I, [
|
|
1171
1173
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
1172
1174
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1173
1175
|
], true)
|
|
1174
1176
|
])
|
|
1175
|
-
], 8, _hoisted_3$
|
|
1177
|
+
], 8, _hoisted_3$Q),
|
|
1176
1178
|
createElementVNode("button", {
|
|
1177
1179
|
type: "button",
|
|
1178
1180
|
class: "tao-input-number__step",
|
|
@@ -1181,24 +1183,24 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1181
1183
|
disabled: __props.disabled || atMin.value,
|
|
1182
1184
|
onClick: _cache[1] || (_cache[1] = ($event) => bump(-1))
|
|
1183
1185
|
}, [
|
|
1184
|
-
createElementVNode("span", _hoisted_6$
|
|
1186
|
+
createElementVNode("span", _hoisted_6$q, [
|
|
1185
1187
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1186
1188
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1187
1189
|
], true)
|
|
1188
1190
|
])
|
|
1189
|
-
], 8, _hoisted_5$
|
|
1191
|
+
], 8, _hoisted_5$w)
|
|
1190
1192
|
])) : createCommentVNode("", true)
|
|
1191
1193
|
], 16);
|
|
1192
1194
|
};
|
|
1193
1195
|
}
|
|
1194
1196
|
});
|
|
1195
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1196
|
-
const _hoisted_1$
|
|
1197
|
-
const _hoisted_2$
|
|
1198
|
-
const _hoisted_3$
|
|
1199
|
-
const _hoisted_4$
|
|
1200
|
-
const _hoisted_5$
|
|
1201
|
-
const _sfc_main$
|
|
1197
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-dc5bb759"]]);
|
|
1198
|
+
const _hoisted_1$15 = ["aria-label", "disabled"];
|
|
1199
|
+
const _hoisted_2$Y = { "aria-hidden": "true" };
|
|
1200
|
+
const _hoisted_3$P = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
1201
|
+
const _hoisted_4$H = ["aria-label", "disabled"];
|
|
1202
|
+
const _hoisted_5$v = { "aria-hidden": "true" };
|
|
1203
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
1202
1204
|
...{ name: "TaoQuantity", inheritAttrs: false },
|
|
1203
1205
|
__name: "TaoQuantity",
|
|
1204
1206
|
props: {
|
|
@@ -1338,12 +1340,12 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1338
1340
|
disabled: minusDisabled.value,
|
|
1339
1341
|
onClick: onDec
|
|
1340
1342
|
}, [
|
|
1341
|
-
createElementVNode("span", _hoisted_2$
|
|
1343
|
+
createElementVNode("span", _hoisted_2$Y, [
|
|
1342
1344
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1343
1345
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1344
1346
|
], true)
|
|
1345
1347
|
])
|
|
1346
|
-
], 8, _hoisted_1$
|
|
1348
|
+
], 8, _hoisted_1$15),
|
|
1347
1349
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
1348
1350
|
id: unref(controlId),
|
|
1349
1351
|
class: "tao-quantity__input",
|
|
@@ -1363,7 +1365,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1363
1365
|
onFocus,
|
|
1364
1366
|
onBlur,
|
|
1365
1367
|
onKeydown: onKeydown2
|
|
1366
|
-
}), null, 16, _hoisted_3$
|
|
1368
|
+
}), null, 16, _hoisted_3$P),
|
|
1367
1369
|
createElementVNode("button", {
|
|
1368
1370
|
type: "button",
|
|
1369
1371
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1371,59 +1373,59 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1371
1373
|
disabled: plusDisabled.value,
|
|
1372
1374
|
onClick: onInc
|
|
1373
1375
|
}, [
|
|
1374
|
-
createElementVNode("span", _hoisted_5$
|
|
1376
|
+
createElementVNode("span", _hoisted_5$v, [
|
|
1375
1377
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
1376
1378
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1377
1379
|
], true)
|
|
1378
1380
|
])
|
|
1379
|
-
], 8, _hoisted_4$
|
|
1381
|
+
], 8, _hoisted_4$H)
|
|
1380
1382
|
], 16);
|
|
1381
1383
|
};
|
|
1382
1384
|
}
|
|
1383
1385
|
});
|
|
1384
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1385
|
-
const _hoisted_1$
|
|
1386
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-6453479c"]]);
|
|
1387
|
+
const _hoisted_1$14 = {
|
|
1386
1388
|
key: 0,
|
|
1387
1389
|
class: "tao-card__media"
|
|
1388
1390
|
};
|
|
1389
|
-
const _hoisted_2$
|
|
1391
|
+
const _hoisted_2$X = {
|
|
1390
1392
|
key: 0,
|
|
1391
1393
|
class: "tao-card__overlay"
|
|
1392
1394
|
};
|
|
1393
|
-
const _hoisted_3$
|
|
1395
|
+
const _hoisted_3$O = {
|
|
1394
1396
|
key: 1,
|
|
1395
1397
|
class: "tao-card__overlay"
|
|
1396
1398
|
};
|
|
1397
|
-
const _hoisted_4$
|
|
1399
|
+
const _hoisted_4$G = {
|
|
1398
1400
|
key: 0,
|
|
1399
1401
|
class: "tao-card__header"
|
|
1400
1402
|
};
|
|
1401
|
-
const _hoisted_5$
|
|
1403
|
+
const _hoisted_5$u = {
|
|
1402
1404
|
key: 1,
|
|
1403
1405
|
class: "tao-card__title-block"
|
|
1404
1406
|
};
|
|
1405
|
-
const _hoisted_6$
|
|
1407
|
+
const _hoisted_6$p = {
|
|
1406
1408
|
key: 0,
|
|
1407
1409
|
class: "tao-card__title"
|
|
1408
1410
|
};
|
|
1409
|
-
const _hoisted_7$
|
|
1411
|
+
const _hoisted_7$l = {
|
|
1410
1412
|
key: 1,
|
|
1411
1413
|
class: "tao-card__sub"
|
|
1412
1414
|
};
|
|
1413
|
-
const _hoisted_8$
|
|
1415
|
+
const _hoisted_8$e = {
|
|
1414
1416
|
key: 2,
|
|
1415
1417
|
class: "tao-card__body"
|
|
1416
1418
|
};
|
|
1417
|
-
const _hoisted_9$
|
|
1419
|
+
const _hoisted_9$a = {
|
|
1418
1420
|
key: 3,
|
|
1419
1421
|
class: "tao-card__footer"
|
|
1420
1422
|
};
|
|
1421
|
-
const _hoisted_10$
|
|
1423
|
+
const _hoisted_10$6 = {
|
|
1422
1424
|
key: 3,
|
|
1423
1425
|
class: "tao-card__corner"
|
|
1424
1426
|
};
|
|
1425
|
-
const _hoisted_11$
|
|
1426
|
-
const _sfc_main$
|
|
1427
|
+
const _hoisted_11$5 = ["aria-label"];
|
|
1428
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
1427
1429
|
...{ name: "TaoCard" },
|
|
1428
1430
|
__name: "TaoCard",
|
|
1429
1431
|
props: {
|
|
@@ -1477,12 +1479,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1477
1479
|
}]]),
|
|
1478
1480
|
style: normalizeStyle(radiusStyle.value)
|
|
1479
1481
|
}, [
|
|
1480
|
-
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1482
|
+
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
1481
1483
|
renderSlot(_ctx.$slots, "media", {}, void 0, true),
|
|
1482
|
-
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1484
|
+
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$X, [
|
|
1483
1485
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1484
1486
|
])) : createCommentVNode("", true)
|
|
1485
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1487
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$O, [
|
|
1486
1488
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1487
1489
|
])) : createCommentVNode("", true),
|
|
1488
1490
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1490,25 +1492,25 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1490
1492
|
class: "tao-card__content",
|
|
1491
1493
|
style: normalizeStyle(paddingStyle.value)
|
|
1492
1494
|
}, [
|
|
1493
|
-
has("header") ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1495
|
+
has("header") ? (openBlock(), createElementBlock("div", _hoisted_4$G, [
|
|
1494
1496
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
1495
1497
|
])) : createCommentVNode("", true),
|
|
1496
|
-
has("title") || has("sub") ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1497
|
-
has("title") ? (openBlock(), createElementBlock("h2", _hoisted_6$
|
|
1498
|
+
has("title") || has("sub") ? (openBlock(), createElementBlock("div", _hoisted_5$u, [
|
|
1499
|
+
has("title") ? (openBlock(), createElementBlock("h2", _hoisted_6$p, [
|
|
1498
1500
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
1499
1501
|
])) : createCommentVNode("", true),
|
|
1500
|
-
has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
1502
|
+
has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$l, [
|
|
1501
1503
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1502
1504
|
])) : createCommentVNode("", true)
|
|
1503
1505
|
])) : createCommentVNode("", true),
|
|
1504
|
-
has("default") ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1506
|
+
has("default") ? (openBlock(), createElementBlock("div", _hoisted_8$e, [
|
|
1505
1507
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1506
1508
|
])) : createCommentVNode("", true),
|
|
1507
|
-
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
1509
|
+
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_9$a, [
|
|
1508
1510
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1509
1511
|
])) : createCommentVNode("", true)
|
|
1510
1512
|
], 4)) : createCommentVNode("", true),
|
|
1511
|
-
hasCorner.value ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
1513
|
+
hasCorner.value ? (openBlock(), createElementBlock("div", _hoisted_10$6, [
|
|
1512
1514
|
renderSlot(_ctx.$slots, "corner", {}, void 0, true),
|
|
1513
1515
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1514
1516
|
key: 0,
|
|
@@ -1521,13 +1523,13 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1521
1523
|
name: "tao-close",
|
|
1522
1524
|
size: 14
|
|
1523
1525
|
})
|
|
1524
|
-
], 8, _hoisted_11$
|
|
1526
|
+
], 8, _hoisted_11$5)) : createCommentVNode("", true)
|
|
1525
1527
|
])) : createCommentVNode("", true)
|
|
1526
1528
|
], 6);
|
|
1527
1529
|
};
|
|
1528
1530
|
}
|
|
1529
1531
|
});
|
|
1530
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1532
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-4096cfb6"]]);
|
|
1531
1533
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1532
1534
|
function getFocusable(root) {
|
|
1533
1535
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -1566,6 +1568,7 @@ function trapTab(event, root) {
|
|
|
1566
1568
|
}
|
|
1567
1569
|
let locks = 0;
|
|
1568
1570
|
let previousOverflow = "";
|
|
1571
|
+
let previousGutter = null;
|
|
1569
1572
|
function isBrowser() {
|
|
1570
1573
|
return typeof document !== "undefined";
|
|
1571
1574
|
}
|
|
@@ -1574,6 +1577,11 @@ function lockBodyScroll() {
|
|
|
1574
1577
|
return;
|
|
1575
1578
|
}
|
|
1576
1579
|
if (locks === 0) {
|
|
1580
|
+
const root = document.documentElement;
|
|
1581
|
+
if (root.clientWidth > 0 && window.innerWidth > root.clientWidth) {
|
|
1582
|
+
previousGutter = root.style.getPropertyValue("scrollbar-gutter");
|
|
1583
|
+
root.style.setProperty("scrollbar-gutter", "stable");
|
|
1584
|
+
}
|
|
1577
1585
|
previousOverflow = document.body.style.overflow;
|
|
1578
1586
|
document.body.style.overflow = "hidden";
|
|
1579
1587
|
}
|
|
@@ -1587,6 +1595,14 @@ function unlockBodyScroll() {
|
|
|
1587
1595
|
if (locks === 0) {
|
|
1588
1596
|
document.body.style.overflow = previousOverflow;
|
|
1589
1597
|
previousOverflow = "";
|
|
1598
|
+
if (previousGutter !== null) {
|
|
1599
|
+
if (previousGutter) {
|
|
1600
|
+
document.documentElement.style.setProperty("scrollbar-gutter", previousGutter);
|
|
1601
|
+
} else {
|
|
1602
|
+
document.documentElement.style.removeProperty("scrollbar-gutter");
|
|
1603
|
+
}
|
|
1604
|
+
previousGutter = null;
|
|
1605
|
+
}
|
|
1590
1606
|
}
|
|
1591
1607
|
}
|
|
1592
1608
|
const stack = [];
|
|
@@ -1689,21 +1705,21 @@ function useWholePixelPanel(panel, open) {
|
|
|
1689
1705
|
stop();
|
|
1690
1706
|
});
|
|
1691
1707
|
}
|
|
1692
|
-
const _hoisted_1$
|
|
1693
|
-
const _hoisted_2$
|
|
1708
|
+
const _hoisted_1$13 = ["aria-labelledby"];
|
|
1709
|
+
const _hoisted_2$W = {
|
|
1694
1710
|
key: 0,
|
|
1695
1711
|
class: "tao-modal__header"
|
|
1696
1712
|
};
|
|
1697
|
-
const _hoisted_3$
|
|
1698
|
-
const _hoisted_4$
|
|
1699
|
-
const _hoisted_5$
|
|
1700
|
-
const _hoisted_6$
|
|
1701
|
-
const _hoisted_7$
|
|
1702
|
-
const _hoisted_8$
|
|
1713
|
+
const _hoisted_3$N = ["id"];
|
|
1714
|
+
const _hoisted_4$F = { key: 1 };
|
|
1715
|
+
const _hoisted_5$t = ["aria-label"];
|
|
1716
|
+
const _hoisted_6$o = { "aria-hidden": "true" };
|
|
1717
|
+
const _hoisted_7$k = { class: "tao-modal__content" };
|
|
1718
|
+
const _hoisted_8$d = {
|
|
1703
1719
|
key: 1,
|
|
1704
1720
|
class: "tao-modal__footer"
|
|
1705
1721
|
};
|
|
1706
|
-
const _sfc_main$
|
|
1722
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
1707
1723
|
...{ name: "TaoModal", inheritAttrs: false },
|
|
1708
1724
|
__name: "TaoModal",
|
|
1709
1725
|
props: {
|
|
@@ -1788,13 +1804,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1788
1804
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
1789
1805
|
tabindex: "-1"
|
|
1790
1806
|
}), [
|
|
1791
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1807
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$W, [
|
|
1792
1808
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1793
1809
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
1794
1810
|
key: 0,
|
|
1795
1811
|
id: unref(titleId),
|
|
1796
1812
|
class: "tao-modal__title"
|
|
1797
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1813
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$N)) : (openBlock(), createElementBlock("span", _hoisted_4$F))
|
|
1798
1814
|
], true),
|
|
1799
1815
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1800
1816
|
key: 0,
|
|
@@ -1803,20 +1819,20 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1803
1819
|
"aria-label": unref(l10n).closeLabel,
|
|
1804
1820
|
onClick: close
|
|
1805
1821
|
}, [
|
|
1806
|
-
createElementVNode("span", _hoisted_6$
|
|
1822
|
+
createElementVNode("span", _hoisted_6$o, [
|
|
1807
1823
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
1808
1824
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
1809
1825
|
], true)
|
|
1810
1826
|
])
|
|
1811
|
-
], 8, _hoisted_5$
|
|
1827
|
+
], 8, _hoisted_5$t)) : createCommentVNode("", true)
|
|
1812
1828
|
])) : createCommentVNode("", true),
|
|
1813
|
-
createElementVNode("div", _hoisted_7$
|
|
1829
|
+
createElementVNode("div", _hoisted_7$k, [
|
|
1814
1830
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1815
1831
|
]),
|
|
1816
|
-
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1832
|
+
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_8$d, [
|
|
1817
1833
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1818
1834
|
])) : createCommentVNode("", true)
|
|
1819
|
-
], 16, _hoisted_1$
|
|
1835
|
+
], 16, _hoisted_1$13)
|
|
1820
1836
|
], 34)) : createCommentVNode("", true)
|
|
1821
1837
|
]),
|
|
1822
1838
|
_: 3
|
|
@@ -1825,10 +1841,10 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1825
1841
|
};
|
|
1826
1842
|
}
|
|
1827
1843
|
});
|
|
1828
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1829
|
-
const _hoisted_1$
|
|
1830
|
-
const _hoisted_2$
|
|
1831
|
-
const _sfc_main$
|
|
1844
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-d0ba0ca9"]]);
|
|
1845
|
+
const _hoisted_1$12 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1846
|
+
const _hoisted_2$V = ["id", "aria-labelledby"];
|
|
1847
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
1832
1848
|
...{ name: "TaoTabs" },
|
|
1833
1849
|
__name: "TaoTabs",
|
|
1834
1850
|
props: {
|
|
@@ -1923,7 +1939,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1923
1939
|
}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1924
1940
|
createTextVNode(toDisplayString(tab.label), 1)
|
|
1925
1941
|
], 64))
|
|
1926
|
-
], 8, _hoisted_1$
|
|
1942
|
+
], 8, _hoisted_1$12);
|
|
1927
1943
|
}), 128))
|
|
1928
1944
|
], 36),
|
|
1929
1945
|
createElementVNode("div", {
|
|
@@ -1933,12 +1949,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1933
1949
|
"aria-labelledby": tabId(__props.modelValue)
|
|
1934
1950
|
}, [
|
|
1935
1951
|
renderSlot(_ctx.$slots, "default", { activeTab: __props.modelValue }, void 0, true)
|
|
1936
|
-
], 8, _hoisted_2$
|
|
1952
|
+
], 8, _hoisted_2$V)
|
|
1937
1953
|
], 2);
|
|
1938
1954
|
};
|
|
1939
1955
|
}
|
|
1940
1956
|
});
|
|
1941
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1957
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-70811078"]]);
|
|
1942
1958
|
function listenFocusLoss(onLoss) {
|
|
1943
1959
|
function onVisibilityChange() {
|
|
1944
1960
|
if (document.hidden) {
|
|
@@ -2451,23 +2467,23 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
|
|
|
2451
2467
|
const stops = zones.map((z) => `${dimmed && z.reveal ? "transparent" : z.color} ${ratioOf(z.from, min, max) * 100}% ${ratioOf(z.to, min, max) * 100}%`);
|
|
2452
2468
|
return `linear-gradient(${vertical ? "to top" : "to right"}, ${stops.join(", ")})`;
|
|
2453
2469
|
}
|
|
2454
|
-
const _hoisted_1
|
|
2455
|
-
const _hoisted_2$
|
|
2456
|
-
const _hoisted_3$
|
|
2470
|
+
const _hoisted_1$11 = ["aria-disabled"];
|
|
2471
|
+
const _hoisted_2$U = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "aria-keyshortcuts", "onKeydown"];
|
|
2472
|
+
const _hoisted_3$M = {
|
|
2457
2473
|
key: 2,
|
|
2458
2474
|
class: "tao-slider__value"
|
|
2459
2475
|
};
|
|
2460
|
-
const _hoisted_4$
|
|
2461
|
-
const _hoisted_5$
|
|
2476
|
+
const _hoisted_4$E = ["aria-label", "onKeydown"];
|
|
2477
|
+
const _hoisted_5$s = {
|
|
2462
2478
|
key: 0,
|
|
2463
2479
|
class: "tao-slider__marks"
|
|
2464
2480
|
};
|
|
2465
|
-
const _hoisted_6$
|
|
2466
|
-
const _hoisted_7$
|
|
2481
|
+
const _hoisted_6$n = ["disabled", "onClick"];
|
|
2482
|
+
const _hoisted_7$j = {
|
|
2467
2483
|
key: 0,
|
|
2468
2484
|
class: "tao-slider__mark-label"
|
|
2469
2485
|
};
|
|
2470
|
-
const _sfc_main$
|
|
2486
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
2471
2487
|
...{ name: "TaoSliderBase" },
|
|
2472
2488
|
__name: "TaoSliderBase",
|
|
2473
2489
|
props: {
|
|
@@ -2797,7 +2813,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2797
2813
|
"aria-keyshortcuts": __props.editable ? "Enter F2" : void 0,
|
|
2798
2814
|
onKeydown: ($event) => onKeydown2($event, i),
|
|
2799
2815
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
2800
|
-
}, null, 46, _hoisted_2$
|
|
2816
|
+
}, null, 46, _hoisted_2$U),
|
|
2801
2817
|
__props.bubble ? (openBlock(), createElementBlock("div", {
|
|
2802
2818
|
key: 0,
|
|
2803
2819
|
class: normalizeClass(["tao-slider__bubble", { "tao-slider__bubble--auto": bubbleAuto(v) }]),
|
|
@@ -2813,7 +2829,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2813
2829
|
], 6)) : createCommentVNode("", true)
|
|
2814
2830
|
], 64);
|
|
2815
2831
|
}), 128)),
|
|
2816
|
-
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2832
|
+
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$M, [
|
|
2817
2833
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2818
2834
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2819
2835
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
@@ -2842,11 +2858,11 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2842
2858
|
}, ["stop"])),
|
|
2843
2859
|
onWheel: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
2844
2860
|
}, ["stop"]))
|
|
2845
|
-
}, null, 40, _hoisted_4$
|
|
2861
|
+
}, null, 40, _hoisted_4$E)), [
|
|
2846
2862
|
[vModelText, draft.value]
|
|
2847
2863
|
]) : createCommentVNode("", true)
|
|
2848
2864
|
], 34),
|
|
2849
|
-
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2865
|
+
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5$s, [
|
|
2850
2866
|
(openBlock(true), createElementBlock(Fragment, null, renderList(markList.value, (mark) => {
|
|
2851
2867
|
return openBlock(), createElementBlock("button", {
|
|
2852
2868
|
key: mark.value,
|
|
@@ -2862,7 +2878,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2862
2878
|
onClick: ($event) => onMarkClick(mark)
|
|
2863
2879
|
}, [
|
|
2864
2880
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
|
|
2865
|
-
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
2881
|
+
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$j, [
|
|
2866
2882
|
renderSlot(_ctx.$slots, "mark", {
|
|
2867
2883
|
mark,
|
|
2868
2884
|
active: unref(isMarkActive)(mark.value, values.value)
|
|
@@ -2870,15 +2886,15 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2870
2886
|
createTextVNode(toDisplayString(mark.label), 1)
|
|
2871
2887
|
], true)
|
|
2872
2888
|
])) : createCommentVNode("", true)
|
|
2873
|
-
], 14, _hoisted_6$
|
|
2889
|
+
], 14, _hoisted_6$n);
|
|
2874
2890
|
}), 128))
|
|
2875
2891
|
])) : createCommentVNode("", true)
|
|
2876
|
-
], 42, _hoisted_1
|
|
2892
|
+
], 42, _hoisted_1$11);
|
|
2877
2893
|
};
|
|
2878
2894
|
}
|
|
2879
2895
|
});
|
|
2880
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2881
|
-
const _sfc_main$
|
|
2896
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-8ec84551"]]);
|
|
2897
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
2882
2898
|
...{ name: "TaoSlider" },
|
|
2883
2899
|
__name: "TaoSlider",
|
|
2884
2900
|
props: {
|
|
@@ -2946,13 +2962,13 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2946
2962
|
};
|
|
2947
2963
|
}
|
|
2948
2964
|
});
|
|
2949
|
-
const _hoisted_1$
|
|
2950
|
-
const _hoisted_2$
|
|
2951
|
-
const _hoisted_3$
|
|
2965
|
+
const _hoisted_1$10 = { class: "tao-scrubber__controls" };
|
|
2966
|
+
const _hoisted_2$T = { class: "tao-scrubber__track" };
|
|
2967
|
+
const _hoisted_3$L = {
|
|
2952
2968
|
key: 0,
|
|
2953
2969
|
class: "tao-scrubber__time"
|
|
2954
2970
|
};
|
|
2955
|
-
const _sfc_main$
|
|
2971
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
2956
2972
|
...{ name: "TaoScrubber" },
|
|
2957
2973
|
__name: "TaoScrubber",
|
|
2958
2974
|
props: {
|
|
@@ -2992,7 +3008,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2992
3008
|
return openBlock(), createElementBlock("div", {
|
|
2993
3009
|
class: normalizeClass(["tao-scrubber", [unref(sizeClass)(__props.size), `tao-scrubber--${__props.variant}`, { "tao-scrubber--marks-start": __props.marksSide === "start", "tao-scrubber--disabled": __props.disabled }]])
|
|
2994
3010
|
}, [
|
|
2995
|
-
createElementVNode("div", _hoisted_1$
|
|
3011
|
+
createElementVNode("div", _hoisted_1$10, [
|
|
2996
3012
|
createVNode(TaoButton, {
|
|
2997
3013
|
size: "small",
|
|
2998
3014
|
variant: "secondary",
|
|
@@ -3022,8 +3038,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
3022
3038
|
_: 1
|
|
3023
3039
|
}, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
|
|
3024
3040
|
]),
|
|
3025
|
-
createElementVNode("div", _hoisted_2$
|
|
3026
|
-
createVNode(_sfc_main$
|
|
3041
|
+
createElementVNode("div", _hoisted_2$T, [
|
|
3042
|
+
createVNode(_sfc_main$1c, {
|
|
3027
3043
|
"model-value": __props.modelValue,
|
|
3028
3044
|
min: 0,
|
|
3029
3045
|
max: __props.length,
|
|
@@ -3046,7 +3062,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
3046
3062
|
} : void 0
|
|
3047
3063
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
3048
3064
|
]),
|
|
3049
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3065
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$L, [
|
|
3050
3066
|
renderSlot(_ctx.$slots, "time", {
|
|
3051
3067
|
time: __props.modelValue,
|
|
3052
3068
|
length: __props.length,
|
|
@@ -3059,7 +3075,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
3059
3075
|
};
|
|
3060
3076
|
}
|
|
3061
3077
|
});
|
|
3062
|
-
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3078
|
+
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-517dc331"]]);
|
|
3063
3079
|
const opposite = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
3064
3080
|
function computePosition(input) {
|
|
3065
3081
|
const { anchor, size, viewport, placement = "bottom-start", gap = 4, pad = 8, flip = true } = input;
|
|
@@ -3187,7 +3203,7 @@ function useFloating(anchor, panel, open, options = {}) {
|
|
|
3187
3203
|
});
|
|
3188
3204
|
return { style, side, anchorOffset, placed, update };
|
|
3189
3205
|
}
|
|
3190
|
-
const _sfc_main$
|
|
3206
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
3191
3207
|
...{ name: "TaoTooltip" },
|
|
3192
3208
|
__name: "TaoTooltip",
|
|
3193
3209
|
props: {
|
|
@@ -3265,7 +3281,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
3265
3281
|
};
|
|
3266
3282
|
}
|
|
3267
3283
|
});
|
|
3268
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3284
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-32ae3936"]]);
|
|
3269
3285
|
const resolved = ["compact", "default", "comfortable"];
|
|
3270
3286
|
function densityClass(density) {
|
|
3271
3287
|
return density ? `tao-density-${density}` : void 0;
|
|
@@ -3305,8 +3321,8 @@ function useDismiss(open, inside, onDismiss) {
|
|
|
3305
3321
|
);
|
|
3306
3322
|
onBeforeUnmount(stop);
|
|
3307
3323
|
}
|
|
3308
|
-
const _hoisted_1
|
|
3309
|
-
const _sfc_main$
|
|
3324
|
+
const _hoisted_1$$ = { class: "tao-popover" };
|
|
3325
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
3310
3326
|
...{ name: "TaoPopover" },
|
|
3311
3327
|
__name: "TaoPopover",
|
|
3312
3328
|
props: {
|
|
@@ -3364,7 +3380,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
3364
3380
|
}
|
|
3365
3381
|
});
|
|
3366
3382
|
return (_ctx, _cache) => {
|
|
3367
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
3383
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
3368
3384
|
createElementVNode("div", {
|
|
3369
3385
|
ref_key: "triggerRef",
|
|
3370
3386
|
ref: triggerRef,
|
|
@@ -3393,7 +3409,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
3393
3409
|
};
|
|
3394
3410
|
}
|
|
3395
3411
|
});
|
|
3396
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3412
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-5c39ad1c"]]);
|
|
3397
3413
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
3398
3414
|
function frameStyle(bordered) {
|
|
3399
3415
|
if (bordered === void 0 || bordered === null) {
|
|
@@ -3401,14 +3417,14 @@ function frameStyle(bordered) {
|
|
|
3401
3417
|
}
|
|
3402
3418
|
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%" };
|
|
3403
3419
|
}
|
|
3404
|
-
const _hoisted_1$
|
|
3405
|
-
const _hoisted_2$
|
|
3420
|
+
const _hoisted_1$_ = ["aria-expanded", "aria-controls"];
|
|
3421
|
+
const _hoisted_2$S = {
|
|
3406
3422
|
key: 0,
|
|
3407
3423
|
class: "tao-spoiler__title"
|
|
3408
3424
|
};
|
|
3409
|
-
const _hoisted_3$
|
|
3410
|
-
const _hoisted_4$
|
|
3411
|
-
const _sfc_main$
|
|
3425
|
+
const _hoisted_3$K = ["id"];
|
|
3426
|
+
const _hoisted_4$D = { class: "tao-spoiler__content-inner" };
|
|
3427
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
3412
3428
|
...{ name: "TaoSpoiler" },
|
|
3413
3429
|
__name: "TaoSpoiler",
|
|
3414
3430
|
props: {
|
|
@@ -3482,12 +3498,12 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3482
3498
|
class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }]),
|
|
3483
3499
|
name: "tao-chevron-right"
|
|
3484
3500
|
}, null, 8, ["class"]),
|
|
3485
|
-
__props.title || has("title") ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3501
|
+
__props.title || has("title") ? (openBlock(), createElementBlock("span", _hoisted_2$S, [
|
|
3486
3502
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3487
3503
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
3488
3504
|
], true)
|
|
3489
3505
|
])) : createCommentVNode("", true)
|
|
3490
|
-
], 8, _hoisted_1$
|
|
3506
|
+
], 8, _hoisted_1$_),
|
|
3491
3507
|
createVNode(Transition, {
|
|
3492
3508
|
name: "tao-spoiler-slide",
|
|
3493
3509
|
onBeforeEnter,
|
|
@@ -3501,10 +3517,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3501
3517
|
id: unref(panelId),
|
|
3502
3518
|
class: "tao-spoiler__content"
|
|
3503
3519
|
}, [
|
|
3504
|
-
createElementVNode("div", _hoisted_4$
|
|
3520
|
+
createElementVNode("div", _hoisted_4$D, [
|
|
3505
3521
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3506
3522
|
])
|
|
3507
|
-
], 8, _hoisted_3$
|
|
3523
|
+
], 8, _hoisted_3$K)) : createCommentVNode("", true)
|
|
3508
3524
|
]),
|
|
3509
3525
|
_: 3
|
|
3510
3526
|
})
|
|
@@ -3512,9 +3528,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3512
3528
|
};
|
|
3513
3529
|
}
|
|
3514
3530
|
});
|
|
3515
|
-
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3516
|
-
const _hoisted_1$
|
|
3517
|
-
const _sfc_main$
|
|
3531
|
+
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-e9a2fb77"]]);
|
|
3532
|
+
const _hoisted_1$Z = { class: "tao-spoiler-group" };
|
|
3533
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
3518
3534
|
...{ name: "TaoSpoilerGroup" },
|
|
3519
3535
|
__name: "TaoSpoilerGroup",
|
|
3520
3536
|
props: {
|
|
@@ -3539,15 +3555,15 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3539
3555
|
setOpen
|
|
3540
3556
|
});
|
|
3541
3557
|
return (_ctx, _cache) => {
|
|
3542
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3558
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
3543
3559
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3544
3560
|
]);
|
|
3545
3561
|
};
|
|
3546
3562
|
}
|
|
3547
3563
|
});
|
|
3548
|
-
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3549
|
-
const _hoisted_1$
|
|
3550
|
-
const _sfc_main$
|
|
3564
|
+
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-7986fd2a"]]);
|
|
3565
|
+
const _hoisted_1$Y = ["aria-label"];
|
|
3566
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
3551
3567
|
...{ name: "TaoCopy" },
|
|
3552
3568
|
__name: "TaoCopy",
|
|
3553
3569
|
props: {
|
|
@@ -3619,7 +3635,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3619
3635
|
name: "tao-copy",
|
|
3620
3636
|
size: 16
|
|
3621
3637
|
})
|
|
3622
|
-
], 10, _hoisted_1$
|
|
3638
|
+
], 10, _hoisted_1$Y)
|
|
3623
3639
|
], true),
|
|
3624
3640
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3625
3641
|
copied.value && __props.tip && doneText.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -3635,7 +3651,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3635
3651
|
};
|
|
3636
3652
|
}
|
|
3637
3653
|
});
|
|
3638
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3654
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-e181129d"]]);
|
|
3639
3655
|
function readTaoMode(el) {
|
|
3640
3656
|
const mode = el.getAttribute("data-tao-mode");
|
|
3641
3657
|
if (mode === "light" || mode === "dark") {
|
|
@@ -3660,7 +3676,7 @@ function resolveTaoMode(choice) {
|
|
|
3660
3676
|
return choice === "system" ? systemTaoMode() : choice;
|
|
3661
3677
|
}
|
|
3662
3678
|
const CHOICE_ATTR = "data-tao-mode-choice";
|
|
3663
|
-
const _sfc_main$
|
|
3679
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3664
3680
|
...{ name: "TaoThemeToggle" },
|
|
3665
3681
|
__name: "TaoThemeToggle",
|
|
3666
3682
|
props: {
|
|
@@ -3834,30 +3850,30 @@ function holeClipPath(hole, viewport, radius) {
|
|
|
3834
3850
|
function isInView(rect, viewport, margin = 0) {
|
|
3835
3851
|
return rect.top >= margin && rect.left >= margin && rect.top + rect.height <= viewport.height - margin && rect.left + rect.width <= viewport.width - margin;
|
|
3836
3852
|
}
|
|
3837
|
-
const _hoisted_1$
|
|
3853
|
+
const _hoisted_1$X = {
|
|
3838
3854
|
key: 0,
|
|
3839
3855
|
class: "tao-tour"
|
|
3840
3856
|
};
|
|
3841
|
-
const _hoisted_2$
|
|
3857
|
+
const _hoisted_2$R = {
|
|
3842
3858
|
key: 1,
|
|
3843
3859
|
class: "tao-tour__dim",
|
|
3844
3860
|
"aria-hidden": "true"
|
|
3845
3861
|
};
|
|
3846
|
-
const _hoisted_3$
|
|
3847
|
-
const _hoisted_4$
|
|
3848
|
-
const _hoisted_5$
|
|
3849
|
-
const _hoisted_6$
|
|
3850
|
-
const _hoisted_7$
|
|
3862
|
+
const _hoisted_3$J = ["aria-labelledby", "aria-describedby"];
|
|
3863
|
+
const _hoisted_4$C = ["id"];
|
|
3864
|
+
const _hoisted_5$r = ["id"];
|
|
3865
|
+
const _hoisted_6$m = { class: "tao-tour__footer" };
|
|
3866
|
+
const _hoisted_7$i = {
|
|
3851
3867
|
key: 0,
|
|
3852
3868
|
class: "tao-tour__progress"
|
|
3853
3869
|
};
|
|
3854
|
-
const _hoisted_8$
|
|
3870
|
+
const _hoisted_8$c = {
|
|
3855
3871
|
class: "tao-tour__dots",
|
|
3856
3872
|
"aria-hidden": "true"
|
|
3857
3873
|
};
|
|
3858
|
-
const _hoisted_9$
|
|
3859
|
-
const _hoisted_10$
|
|
3860
|
-
const _sfc_main$
|
|
3874
|
+
const _hoisted_9$9 = { class: "tao-tour__progress-text" };
|
|
3875
|
+
const _hoisted_10$5 = { class: "tao-tour__actions" };
|
|
3876
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3861
3877
|
...{ name: "TaoTour" },
|
|
3862
3878
|
__name: "TaoTour",
|
|
3863
3879
|
props: {
|
|
@@ -4017,7 +4033,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4017
4033
|
}
|
|
4018
4034
|
return (_ctx, _cache) => {
|
|
4019
4035
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4020
|
-
__props.step ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4036
|
+
__props.step ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
4021
4037
|
createElementVNode("div", {
|
|
4022
4038
|
class: "tao-tour__blocker",
|
|
4023
4039
|
style: normalizeStyle(blockerStyle.value),
|
|
@@ -4028,7 +4044,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4028
4044
|
class: "tao-tour__hole",
|
|
4029
4045
|
style: normalizeStyle(holeStyle.value),
|
|
4030
4046
|
"aria-hidden": "true"
|
|
4031
|
-
}, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4047
|
+
}, null, 4)) : (openBlock(), createElementBlock("div", _hoisted_2$R)),
|
|
4032
4048
|
createElementVNode("div", {
|
|
4033
4049
|
ref_key: "cardRef",
|
|
4034
4050
|
ref: cardRef,
|
|
@@ -4055,16 +4071,16 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4055
4071
|
key: 0,
|
|
4056
4072
|
id: unref(titleId),
|
|
4057
4073
|
class: "tao-tour__title"
|
|
4058
|
-
}, toDisplayString(__props.step.title), 9, _hoisted_4$
|
|
4074
|
+
}, toDisplayString(__props.step.title), 9, _hoisted_4$C)) : createCommentVNode("", true),
|
|
4059
4075
|
__props.step.text ? (openBlock(), createElementBlock("p", {
|
|
4060
4076
|
key: 1,
|
|
4061
4077
|
id: unref(textId),
|
|
4062
4078
|
class: "tao-tour__text"
|
|
4063
|
-
}, toDisplayString(__props.step.text), 9, _hoisted_5$
|
|
4079
|
+
}, toDisplayString(__props.step.text), 9, _hoisted_5$r)) : createCommentVNode("", true)
|
|
4064
4080
|
]),
|
|
4065
|
-
createElementVNode("div", _hoisted_6$
|
|
4066
|
-
__props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4067
|
-
createElementVNode("span", _hoisted_8$
|
|
4081
|
+
createElementVNode("div", _hoisted_6$m, [
|
|
4082
|
+
__props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$i, [
|
|
4083
|
+
createElementVNode("span", _hoisted_8$c, [
|
|
4068
4084
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dots.value, (i) => {
|
|
4069
4085
|
return openBlock(), createElementBlock("i", {
|
|
4070
4086
|
key: i,
|
|
@@ -4072,9 +4088,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4072
4088
|
}, null, 2);
|
|
4073
4089
|
}), 128))
|
|
4074
4090
|
]),
|
|
4075
|
-
createElementVNode("span", _hoisted_9$
|
|
4091
|
+
createElementVNode("span", _hoisted_9$9, toDisplayString(progress.value), 1)
|
|
4076
4092
|
])) : createCommentVNode("", true),
|
|
4077
|
-
createElementVNode("span", _hoisted_10$
|
|
4093
|
+
createElementVNode("span", _hoisted_10$5, [
|
|
4078
4094
|
!isLast.value ? (openBlock(), createBlock(TaoButton, {
|
|
4079
4095
|
key: 0,
|
|
4080
4096
|
size: "small",
|
|
@@ -4108,13 +4124,13 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
4108
4124
|
})
|
|
4109
4125
|
])
|
|
4110
4126
|
])
|
|
4111
|
-
], 46, _hoisted_3$
|
|
4127
|
+
], 46, _hoisted_3$J)
|
|
4112
4128
|
])) : createCommentVNode("", true)
|
|
4113
4129
|
]);
|
|
4114
4130
|
};
|
|
4115
4131
|
}
|
|
4116
4132
|
});
|
|
4117
|
-
const _sfc_main$
|
|
4133
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
4118
4134
|
...{ name: "TaoContainer" },
|
|
4119
4135
|
__name: "TaoContainer",
|
|
4120
4136
|
props: {
|
|
@@ -4133,8 +4149,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
4133
4149
|
};
|
|
4134
4150
|
}
|
|
4135
4151
|
});
|
|
4136
|
-
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4137
|
-
const _sfc_main$
|
|
4152
|
+
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-a5e36052"]]);
|
|
4153
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
4138
4154
|
...{ name: "TaoFlex" },
|
|
4139
4155
|
__name: "TaoFlex",
|
|
4140
4156
|
props: {
|
|
@@ -4165,7 +4181,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
4165
4181
|
};
|
|
4166
4182
|
}
|
|
4167
4183
|
});
|
|
4168
|
-
const _sfc_main
|
|
4184
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
4169
4185
|
...{ name: "TaoSpace" },
|
|
4170
4186
|
__name: "TaoSpace",
|
|
4171
4187
|
props: {
|
|
@@ -4186,7 +4202,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4186
4202
|
};
|
|
4187
4203
|
}
|
|
4188
4204
|
});
|
|
4189
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
4205
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-d6fec8bb"]]);
|
|
4190
4206
|
const FULL_SPAN = 999;
|
|
4191
4207
|
function perSize(value, fallback, compactPlain) {
|
|
4192
4208
|
if (value === void 0 || value === null) {
|
|
@@ -4202,8 +4218,8 @@ function perSize(value, fallback, compactPlain) {
|
|
|
4202
4218
|
return { compact, medium, expanded };
|
|
4203
4219
|
}
|
|
4204
4220
|
const spanNumber = (span) => span === "full" ? FULL_SPAN : Math.max(1, Math.round(span));
|
|
4205
|
-
const _hoisted_1$
|
|
4206
|
-
const _sfc_main$
|
|
4221
|
+
const _hoisted_1$W = { class: "tao-grid__cells" };
|
|
4222
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
4207
4223
|
...{ name: "TaoGrid" },
|
|
4208
4224
|
__name: "TaoGrid",
|
|
4209
4225
|
props: {
|
|
@@ -4231,15 +4247,15 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
4231
4247
|
class: normalizeClass(["tao-grid", { "tao-grid--fixed": isFixed.value }]),
|
|
4232
4248
|
style: normalizeStyle(gridStyle.value)
|
|
4233
4249
|
}, [
|
|
4234
|
-
createElementVNode("div", _hoisted_1$
|
|
4250
|
+
createElementVNode("div", _hoisted_1$W, [
|
|
4235
4251
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4236
4252
|
])
|
|
4237
4253
|
], 6);
|
|
4238
4254
|
};
|
|
4239
4255
|
}
|
|
4240
4256
|
});
|
|
4241
|
-
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4242
|
-
const _sfc_main
|
|
4257
|
+
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-e95541e2"]]);
|
|
4258
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
4243
4259
|
...{ name: "TaoGridItem" },
|
|
4244
4260
|
__name: "TaoGridItem",
|
|
4245
4261
|
props: {
|
|
@@ -4275,15 +4291,15 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
4275
4291
|
};
|
|
4276
4292
|
}
|
|
4277
4293
|
});
|
|
4278
|
-
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
4279
|
-
const _hoisted_1$
|
|
4280
|
-
const _hoisted_2$
|
|
4281
|
-
const _hoisted_3$
|
|
4282
|
-
const _hoisted_4$
|
|
4294
|
+
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-d42e5e67"]]);
|
|
4295
|
+
const _hoisted_1$V = { class: "tao-split__pane tao-split__pane--start" };
|
|
4296
|
+
const _hoisted_2$Q = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
4297
|
+
const _hoisted_3$I = { class: "tao-split__pane tao-split__pane--end" };
|
|
4298
|
+
const _hoisted_4$B = {
|
|
4283
4299
|
key: 0,
|
|
4284
4300
|
class: "tao-split__shield"
|
|
4285
4301
|
};
|
|
4286
|
-
const _sfc_main$
|
|
4302
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
4287
4303
|
...{ name: "TaoSplit" },
|
|
4288
4304
|
__name: "TaoSplit",
|
|
4289
4305
|
props: {
|
|
@@ -4580,7 +4596,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4580
4596
|
]]),
|
|
4581
4597
|
style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
|
|
4582
4598
|
}, [
|
|
4583
|
-
createElementVNode("div", _hoisted_1$
|
|
4599
|
+
createElementVNode("div", _hoisted_1$V, [
|
|
4584
4600
|
renderSlot(_ctx.$slots, "start", {}, void 0, true)
|
|
4585
4601
|
]),
|
|
4586
4602
|
createElementVNode("div", {
|
|
@@ -4603,20 +4619,20 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4603
4619
|
onKeydown: onKeydown2,
|
|
4604
4620
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4605
4621
|
}, ["prevent"]))
|
|
4606
|
-
}, null, 40, _hoisted_2$
|
|
4607
|
-
createElementVNode("div", _hoisted_3$
|
|
4622
|
+
}, null, 40, _hoisted_2$Q),
|
|
4623
|
+
createElementVNode("div", _hoisted_3$I, [
|
|
4608
4624
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4609
4625
|
]),
|
|
4610
|
-
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4626
|
+
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$B)) : createCommentVNode("", true)
|
|
4611
4627
|
], 6);
|
|
4612
4628
|
};
|
|
4613
4629
|
}
|
|
4614
4630
|
});
|
|
4615
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4616
|
-
const _hoisted_1$
|
|
4617
|
-
const _hoisted_2$
|
|
4618
|
-
const _hoisted_3$
|
|
4619
|
-
const _sfc_main$
|
|
4631
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-316b0d45"]]);
|
|
4632
|
+
const _hoisted_1$U = { class: "tao-image" };
|
|
4633
|
+
const _hoisted_2$P = ["src", "alt", "loading"];
|
|
4634
|
+
const _hoisted_3$H = { class: "tao-image__placeholder" };
|
|
4635
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
4620
4636
|
...{ name: "TaoImage" },
|
|
4621
4637
|
__name: "TaoImage",
|
|
4622
4638
|
props: {
|
|
@@ -4647,7 +4663,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4647
4663
|
hasError.value = false;
|
|
4648
4664
|
});
|
|
4649
4665
|
return (_ctx, _cache) => {
|
|
4650
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4666
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
4651
4667
|
__props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
|
|
4652
4668
|
key: 0,
|
|
4653
4669
|
class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
|
|
@@ -4658,26 +4674,26 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4658
4674
|
draggable: "false",
|
|
4659
4675
|
onLoad: handleLoad,
|
|
4660
4676
|
onError: handleError
|
|
4661
|
-
}, null, 42, _hoisted_2$
|
|
4677
|
+
}, null, 42, _hoisted_2$P)) : createCommentVNode("", true),
|
|
4662
4678
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4663
|
-
createElementVNode("div", _hoisted_3$
|
|
4679
|
+
createElementVNode("div", _hoisted_3$H, toDisplayString(__props.placeholderText), 1)
|
|
4664
4680
|
], true, 1) : createCommentVNode("", true)
|
|
4665
4681
|
]);
|
|
4666
4682
|
};
|
|
4667
4683
|
}
|
|
4668
4684
|
});
|
|
4669
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4670
|
-
const _hoisted_1$
|
|
4671
|
-
const _hoisted_2$
|
|
4672
|
-
const _hoisted_3$
|
|
4685
|
+
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-61f47c52"]]);
|
|
4686
|
+
const _hoisted_1$T = ["for"];
|
|
4687
|
+
const _hoisted_2$O = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
4688
|
+
const _hoisted_3$G = {
|
|
4673
4689
|
key: 0,
|
|
4674
4690
|
class: "tao-checkbox__label"
|
|
4675
4691
|
};
|
|
4676
|
-
const _hoisted_4$
|
|
4692
|
+
const _hoisted_4$A = {
|
|
4677
4693
|
key: 1,
|
|
4678
4694
|
class: "tao-checkbox__label"
|
|
4679
4695
|
};
|
|
4680
|
-
const _sfc_main$
|
|
4696
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4681
4697
|
...{ name: "TaoCheckbox", inheritAttrs: false },
|
|
4682
4698
|
__name: "TaoCheckbox",
|
|
4683
4699
|
props: {
|
|
@@ -4748,25 +4764,25 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4748
4764
|
"aria-invalid": unref(invalid) || void 0,
|
|
4749
4765
|
"aria-describedby": unref(describedBy),
|
|
4750
4766
|
onChange: onInputChange
|
|
4751
|
-
}), null, 16, _hoisted_2$
|
|
4767
|
+
}), null, 16, _hoisted_2$O),
|
|
4752
4768
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
4753
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4769
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$G, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$A, [
|
|
4754
4770
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4755
4771
|
])),
|
|
4756
4772
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
4757
|
-
], 16, _hoisted_1$
|
|
4773
|
+
], 16, _hoisted_1$T);
|
|
4758
4774
|
};
|
|
4759
4775
|
}
|
|
4760
4776
|
});
|
|
4761
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4762
|
-
const _hoisted_1$
|
|
4777
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-55451432"]]);
|
|
4778
|
+
const _hoisted_1$S = {
|
|
4763
4779
|
key: 0,
|
|
4764
4780
|
class: "tao-tag__prefix"
|
|
4765
4781
|
};
|
|
4766
|
-
const _hoisted_2$
|
|
4767
|
-
const _hoisted_3$
|
|
4768
|
-
const _hoisted_4$
|
|
4769
|
-
const _sfc_main$
|
|
4782
|
+
const _hoisted_2$N = { class: "tao-tag__text" };
|
|
4783
|
+
const _hoisted_3$F = ["aria-label"];
|
|
4784
|
+
const _hoisted_4$z = { "aria-hidden": "true" };
|
|
4785
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
4770
4786
|
...{ name: "TaoTag" },
|
|
4771
4787
|
__name: "TaoTag",
|
|
4772
4788
|
props: {
|
|
@@ -4809,10 +4825,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4809
4825
|
]]),
|
|
4810
4826
|
style: normalizeStyle(style.value)
|
|
4811
4827
|
}, [
|
|
4812
|
-
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
4828
|
+
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$S, [
|
|
4813
4829
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
4814
4830
|
])) : createCommentVNode("", true),
|
|
4815
|
-
createElementVNode("span", _hoisted_2$
|
|
4831
|
+
createElementVNode("span", _hoisted_2$N, [
|
|
4816
4832
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4817
4833
|
]),
|
|
4818
4834
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
@@ -4822,27 +4838,27 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4822
4838
|
"aria-label": unref(l10n).closeLabel,
|
|
4823
4839
|
onClick: withModifiers(onClose, ["stop"])
|
|
4824
4840
|
}, [
|
|
4825
|
-
createElementVNode("span", _hoisted_4$
|
|
4841
|
+
createElementVNode("span", _hoisted_4$z, [
|
|
4826
4842
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
4827
4843
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4828
4844
|
], true)
|
|
4829
4845
|
])
|
|
4830
|
-
], 8, _hoisted_3$
|
|
4846
|
+
], 8, _hoisted_3$F)) : createCommentVNode("", true)
|
|
4831
4847
|
], 6);
|
|
4832
4848
|
};
|
|
4833
4849
|
}
|
|
4834
4850
|
});
|
|
4835
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4836
|
-
const _hoisted_1$
|
|
4837
|
-
const _hoisted_2$
|
|
4851
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-0af1f161"]]);
|
|
4852
|
+
const _hoisted_1$R = ["role", "aria-hidden"];
|
|
4853
|
+
const _hoisted_2$M = {
|
|
4838
4854
|
key: 1,
|
|
4839
4855
|
class: "tao-divider__text"
|
|
4840
4856
|
};
|
|
4841
|
-
const _hoisted_3$
|
|
4857
|
+
const _hoisted_3$E = {
|
|
4842
4858
|
key: 2,
|
|
4843
4859
|
class: "tao-divider__line tao-divider__line--end"
|
|
4844
4860
|
};
|
|
4845
|
-
const _sfc_main$
|
|
4861
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
4846
4862
|
...{ name: "TaoDivider" },
|
|
4847
4863
|
__name: "TaoDivider",
|
|
4848
4864
|
props: {
|
|
@@ -4874,23 +4890,23 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4874
4890
|
key: 0,
|
|
4875
4891
|
class: normalizeClass(["tao-divider__line", { "tao-divider__line--start": hasLabel.value }])
|
|
4876
4892
|
}, null, 2)) : createCommentVNode("", true),
|
|
4877
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
4893
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, [
|
|
4878
4894
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4879
4895
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
4880
4896
|
], true)
|
|
4881
4897
|
])) : createCommentVNode("", true),
|
|
4882
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4883
|
-
], 10, _hoisted_1$
|
|
4898
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$E)) : createCommentVNode("", true)
|
|
4899
|
+
], 10, _hoisted_1$R);
|
|
4884
4900
|
};
|
|
4885
4901
|
}
|
|
4886
4902
|
});
|
|
4887
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4888
|
-
const _hoisted_1$
|
|
4903
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-c4a941aa"]]);
|
|
4904
|
+
const _hoisted_1$Q = {
|
|
4889
4905
|
key: 0,
|
|
4890
4906
|
class: "tao-fieldset__legend"
|
|
4891
4907
|
};
|
|
4892
|
-
const _hoisted_2$
|
|
4893
|
-
const _sfc_main$
|
|
4908
|
+
const _hoisted_2$L = { class: "tao-fieldset__body" };
|
|
4909
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
4894
4910
|
...{ name: "TaoFieldset" },
|
|
4895
4911
|
__name: "TaoFieldset",
|
|
4896
4912
|
props: {
|
|
@@ -4904,20 +4920,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
4904
4920
|
return openBlock(), createElementBlock("fieldset", {
|
|
4905
4921
|
class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
|
|
4906
4922
|
}, [
|
|
4907
|
-
__props.legend || has("legend") ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
4923
|
+
__props.legend || has("legend") ? (openBlock(), createElementBlock("legend", _hoisted_1$Q, [
|
|
4908
4924
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
4909
4925
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
4910
4926
|
], true)
|
|
4911
4927
|
])) : createCommentVNode("", true),
|
|
4912
|
-
createElementVNode("div", _hoisted_2$
|
|
4928
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
4913
4929
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4914
4930
|
])
|
|
4915
4931
|
], 2);
|
|
4916
4932
|
};
|
|
4917
4933
|
}
|
|
4918
4934
|
});
|
|
4919
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4920
|
-
const _sfc_main$
|
|
4935
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-3ab4beaf"]]);
|
|
4936
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
4921
4937
|
...{ name: "TaoAnimatedBorder" },
|
|
4922
4938
|
__name: "TaoAnimatedBorder",
|
|
4923
4939
|
props: {
|
|
@@ -4960,10 +4976,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4960
4976
|
};
|
|
4961
4977
|
}
|
|
4962
4978
|
});
|
|
4963
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4964
|
-
const _hoisted_1$
|
|
4965
|
-
const _hoisted_2$
|
|
4966
|
-
const _sfc_main$
|
|
4979
|
+
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-86ba074e"]]);
|
|
4980
|
+
const _hoisted_1$P = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "readonly", "rows", "value", "aria-invalid", "aria-describedby"];
|
|
4981
|
+
const _hoisted_2$K = ["id"];
|
|
4982
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
4967
4983
|
...{ name: "TaoTextarea", inheritAttrs: false },
|
|
4968
4984
|
__name: "TaoTextarea",
|
|
4969
4985
|
props: {
|
|
@@ -5101,25 +5117,25 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
5101
5117
|
onFocus,
|
|
5102
5118
|
onBlur,
|
|
5103
5119
|
onKeydown: onKeydown2
|
|
5104
|
-
}), null, 16, _hoisted_1$
|
|
5120
|
+
}), null, 16, _hoisted_1$P),
|
|
5105
5121
|
__props.count ? (openBlock(), createElementBlock("span", {
|
|
5106
5122
|
key: 0,
|
|
5107
5123
|
id: counterId.value,
|
|
5108
5124
|
class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
|
|
5109
|
-
}, toDisplayString(countLabel.value), 11, _hoisted_2$
|
|
5125
|
+
}, toDisplayString(countLabel.value), 11, _hoisted_2$K)) : createCommentVNode("", true)
|
|
5110
5126
|
], 16);
|
|
5111
5127
|
};
|
|
5112
5128
|
}
|
|
5113
5129
|
});
|
|
5114
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5115
|
-
const _hoisted_1$
|
|
5116
|
-
const _hoisted_2$
|
|
5117
|
-
const _hoisted_3$
|
|
5130
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-9aaf7131"]]);
|
|
5131
|
+
const _hoisted_1$O = ["aria-label"];
|
|
5132
|
+
const _hoisted_2$J = { class: "tao-scroll-top__content" };
|
|
5133
|
+
const _hoisted_3$D = {
|
|
5118
5134
|
key: 0,
|
|
5119
5135
|
class: "tao-scroll-top__text",
|
|
5120
5136
|
"aria-hidden": "true"
|
|
5121
5137
|
};
|
|
5122
|
-
const _sfc_main$
|
|
5138
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
5123
5139
|
...{ name: "TaoScrollTop", inheritAttrs: false },
|
|
5124
5140
|
__name: "TaoScrollTop",
|
|
5125
5141
|
props: {
|
|
@@ -5214,8 +5230,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5214
5230
|
"aria-label": accessibleName.value,
|
|
5215
5231
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
5216
5232
|
}), [
|
|
5217
|
-
createElementVNode("span", _hoisted_2$
|
|
5218
|
-
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5233
|
+
createElementVNode("span", _hoisted_2$J, [
|
|
5234
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$D, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
5219
5235
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5220
5236
|
createVNode(TaoIcon, {
|
|
5221
5237
|
class: "tao-scroll-top__icon",
|
|
@@ -5224,7 +5240,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5224
5240
|
})
|
|
5225
5241
|
], true)
|
|
5226
5242
|
])
|
|
5227
|
-
], 16, _hoisted_1$
|
|
5243
|
+
], 16, _hoisted_1$O),
|
|
5228
5244
|
!isText.value && caption.value ? (openBlock(), createElementBlock("span", {
|
|
5229
5245
|
key: 0,
|
|
5230
5246
|
class: normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
|
|
@@ -5237,26 +5253,26 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5237
5253
|
};
|
|
5238
5254
|
}
|
|
5239
5255
|
});
|
|
5240
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5241
|
-
const _hoisted_1$
|
|
5242
|
-
const _hoisted_2$
|
|
5256
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-abce6609"]]);
|
|
5257
|
+
const _hoisted_1$N = { class: "tao-progress" };
|
|
5258
|
+
const _hoisted_2$I = {
|
|
5243
5259
|
key: 0,
|
|
5244
5260
|
class: "tao-progress__side"
|
|
5245
5261
|
};
|
|
5246
|
-
const _hoisted_3$
|
|
5247
|
-
const _hoisted_4$
|
|
5262
|
+
const _hoisted_3$C = { class: "tao-progress__main" };
|
|
5263
|
+
const _hoisted_4$y = {
|
|
5248
5264
|
key: 0,
|
|
5249
5265
|
class: "tao-progress__percentage"
|
|
5250
5266
|
};
|
|
5251
|
-
const _hoisted_5$
|
|
5267
|
+
const _hoisted_5$q = {
|
|
5252
5268
|
key: 1,
|
|
5253
5269
|
class: "tao-progress__side"
|
|
5254
5270
|
};
|
|
5255
|
-
const _hoisted_6$
|
|
5271
|
+
const _hoisted_6$l = {
|
|
5256
5272
|
key: 0,
|
|
5257
5273
|
class: "tao-progress__percentage"
|
|
5258
5274
|
};
|
|
5259
|
-
const _sfc_main$
|
|
5275
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
5260
5276
|
...{ name: "TaoProgress" },
|
|
5261
5277
|
__name: "TaoProgress",
|
|
5262
5278
|
props: {
|
|
@@ -5286,16 +5302,16 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5286
5302
|
() => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
|
|
5287
5303
|
);
|
|
5288
5304
|
return (_ctx, _cache) => {
|
|
5289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5305
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
5290
5306
|
createElementVNode("div", {
|
|
5291
5307
|
class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
|
|
5292
5308
|
style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
|
|
5293
5309
|
}, [
|
|
5294
|
-
has("left") ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5310
|
+
has("left") ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
|
|
5295
5311
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
5296
5312
|
])) : createCommentVNode("", true),
|
|
5297
|
-
createElementVNode("div", _hoisted_3$
|
|
5298
|
-
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
5313
|
+
createElementVNode("div", _hoisted_3$C, [
|
|
5314
|
+
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$y, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
5299
5315
|
createElementVNode("div", {
|
|
5300
5316
|
class: "tao-progress__track",
|
|
5301
5317
|
style: normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -5306,17 +5322,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5306
5322
|
}, null, 6)
|
|
5307
5323
|
], 4)
|
|
5308
5324
|
]),
|
|
5309
|
-
has("right") || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5325
|
+
has("right") || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$q, [
|
|
5310
5326
|
renderSlot(_ctx.$slots, "right", {}, void 0, true),
|
|
5311
|
-
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
5327
|
+
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$l, toDisplayString(endPercentLabel.value), 1)) : createCommentVNode("", true)
|
|
5312
5328
|
])) : createCommentVNode("", true)
|
|
5313
5329
|
], 6)
|
|
5314
5330
|
]);
|
|
5315
5331
|
};
|
|
5316
5332
|
}
|
|
5317
5333
|
});
|
|
5318
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5319
|
-
const _sfc_main$
|
|
5334
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-35c69b59"]]);
|
|
5335
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
5320
5336
|
...{ name: "TaoRangeSlider" },
|
|
5321
5337
|
__name: "TaoRangeSlider",
|
|
5322
5338
|
props: {
|
|
@@ -5411,19 +5427,19 @@ function partitionByAccept(files, accept) {
|
|
|
5411
5427
|
}
|
|
5412
5428
|
return { accepted, rejected };
|
|
5413
5429
|
}
|
|
5414
|
-
const _hoisted_1$
|
|
5415
|
-
const _hoisted_2$
|
|
5416
|
-
const _hoisted_3$
|
|
5417
|
-
const _hoisted_4$
|
|
5418
|
-
const _hoisted_5$
|
|
5430
|
+
const _hoisted_1$M = { class: "tao-file-drop__row" };
|
|
5431
|
+
const _hoisted_2$H = ["aria-label"];
|
|
5432
|
+
const _hoisted_3$B = { "aria-hidden": "true" };
|
|
5433
|
+
const _hoisted_4$x = ["accept", "multiple"];
|
|
5434
|
+
const _hoisted_5$p = {
|
|
5419
5435
|
key: 0,
|
|
5420
5436
|
class: "tao-file-drop__list"
|
|
5421
5437
|
};
|
|
5422
|
-
const _hoisted_6$
|
|
5423
|
-
const _hoisted_7$
|
|
5424
|
-
const _hoisted_8$
|
|
5425
|
-
const _hoisted_9$
|
|
5426
|
-
const _sfc_main$
|
|
5438
|
+
const _hoisted_6$k = { class: "tao-file-drop__name" };
|
|
5439
|
+
const _hoisted_7$h = { class: "tao-file-drop__meta" };
|
|
5440
|
+
const _hoisted_8$b = ["aria-label", "onClick"];
|
|
5441
|
+
const _hoisted_9$8 = { "aria-hidden": "true" };
|
|
5442
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
5427
5443
|
...{ name: "TaoFileDrop", inheritAttrs: false },
|
|
5428
5444
|
__name: "TaoFileDrop",
|
|
5429
5445
|
props: {
|
|
@@ -5541,7 +5557,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5541
5557
|
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
5542
5558
|
class: ["tao-file-drop", unref(sizeClass)(__props.size)]
|
|
5543
5559
|
}), [
|
|
5544
|
-
createElementVNode("div", _hoisted_1$
|
|
5560
|
+
createElementVNode("div", _hoisted_1$M, [
|
|
5545
5561
|
__props.showClear && __props.modelValue.length ? (openBlock(), createElementBlock("button", {
|
|
5546
5562
|
key: 0,
|
|
5547
5563
|
type: "button",
|
|
@@ -5549,12 +5565,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5549
5565
|
"aria-label": unref(l10n).clearLabel,
|
|
5550
5566
|
onClick: requestClear
|
|
5551
5567
|
}, [
|
|
5552
|
-
createElementVNode("span", _hoisted_3$
|
|
5568
|
+
createElementVNode("span", _hoisted_3$B, [
|
|
5553
5569
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
5554
5570
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
5555
5571
|
], true)
|
|
5556
5572
|
])
|
|
5557
|
-
], 8, _hoisted_2$
|
|
5573
|
+
], 8, _hoisted_2$H)) : createCommentVNode("", true),
|
|
5558
5574
|
createElementVNode("label", {
|
|
5559
5575
|
class: normalizeClass(["tao-file-drop__zone", { "tao-file-drop__zone--dragging": isDragging.value }]),
|
|
5560
5576
|
onDragover: handleDragOver,
|
|
@@ -5574,29 +5590,29 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5574
5590
|
onChange: handleFileSelect,
|
|
5575
5591
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5576
5592
|
}, ["stop"]))
|
|
5577
|
-
}), null, 16, _hoisted_4$
|
|
5593
|
+
}), null, 16, _hoisted_4$x)
|
|
5578
5594
|
], 34)
|
|
5579
5595
|
]),
|
|
5580
|
-
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$
|
|
5596
|
+
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$p, [
|
|
5581
5597
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
5582
5598
|
return openBlock(), createElementBlock("li", {
|
|
5583
5599
|
key: fileKey(file, index),
|
|
5584
5600
|
class: "tao-file-drop__file"
|
|
5585
5601
|
}, [
|
|
5586
|
-
createElementVNode("span", _hoisted_6$
|
|
5587
|
-
createElementVNode("span", _hoisted_7$
|
|
5602
|
+
createElementVNode("span", _hoisted_6$k, toDisplayString(file.name), 1),
|
|
5603
|
+
createElementVNode("span", _hoisted_7$h, toDisplayString(sizeLabel(file.size)), 1),
|
|
5588
5604
|
createElementVNode("button", {
|
|
5589
5605
|
type: "button",
|
|
5590
5606
|
class: "tao-file-drop__remove",
|
|
5591
5607
|
"aria-label": unref(l10n).removeLabel.replace("{name}", file.name),
|
|
5592
5608
|
onClick: ($event) => removeAt(index)
|
|
5593
5609
|
}, [
|
|
5594
|
-
createElementVNode("span", _hoisted_9$
|
|
5610
|
+
createElementVNode("span", _hoisted_9$8, [
|
|
5595
5611
|
renderSlot(_ctx.$slots, "remove-icon", {}, () => [
|
|
5596
5612
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
5597
5613
|
], true)
|
|
5598
5614
|
])
|
|
5599
|
-
], 8, _hoisted_8$
|
|
5615
|
+
], 8, _hoisted_8$b)
|
|
5600
5616
|
]);
|
|
5601
5617
|
}), 128))
|
|
5602
5618
|
])) : createCommentVNode("", true)
|
|
@@ -5604,7 +5620,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5604
5620
|
};
|
|
5605
5621
|
}
|
|
5606
5622
|
});
|
|
5607
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5623
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-093403e5"]]);
|
|
5608
5624
|
function isMenuSelectable(item) {
|
|
5609
5625
|
return item.type !== "separator" && item.type !== "label" && !item.disabled;
|
|
5610
5626
|
}
|
|
@@ -5690,29 +5706,29 @@ function useListNav(options) {
|
|
|
5690
5706
|
}
|
|
5691
5707
|
return { onKeydown: onKeydown2 };
|
|
5692
5708
|
}
|
|
5693
|
-
const _hoisted_1$
|
|
5694
|
-
const _hoisted_2$
|
|
5709
|
+
const _hoisted_1$L = ["aria-label", "aria-activedescendant", "data-tao-menu-root"];
|
|
5710
|
+
const _hoisted_2$G = {
|
|
5695
5711
|
key: 0,
|
|
5696
5712
|
class: "tao-menu__separator",
|
|
5697
5713
|
role: "separator"
|
|
5698
5714
|
};
|
|
5699
|
-
const _hoisted_3$
|
|
5715
|
+
const _hoisted_3$A = {
|
|
5700
5716
|
key: 1,
|
|
5701
5717
|
class: "tao-menu__label",
|
|
5702
5718
|
role: "presentation"
|
|
5703
5719
|
};
|
|
5704
|
-
const _hoisted_4$
|
|
5705
|
-
const _hoisted_5$
|
|
5706
|
-
const _hoisted_6$
|
|
5720
|
+
const _hoisted_4$w = ["id", "role", "aria-checked", "aria-disabled", "aria-haspopup", "aria-expanded", "aria-keyshortcuts", "onClick", "onMouseenter"];
|
|
5721
|
+
const _hoisted_5$o = { class: "tao-menu__text" };
|
|
5722
|
+
const _hoisted_6$j = {
|
|
5707
5723
|
key: 1,
|
|
5708
5724
|
class: "tao-menu__shortcut"
|
|
5709
5725
|
};
|
|
5710
|
-
const _hoisted_7$
|
|
5726
|
+
const _hoisted_7$g = {
|
|
5711
5727
|
key: 2,
|
|
5712
5728
|
class: "tao-menu__arrow",
|
|
5713
5729
|
"aria-hidden": "true"
|
|
5714
5730
|
};
|
|
5715
|
-
const _sfc_main$
|
|
5731
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
5716
5732
|
...{ name: "TaoMenu" },
|
|
5717
5733
|
__name: "TaoMenu",
|
|
5718
5734
|
props: {
|
|
@@ -5895,7 +5911,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5895
5911
|
return openBlock(), createElementBlock(Fragment, {
|
|
5896
5912
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
5897
5913
|
}, [
|
|
5898
|
-
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5914
|
+
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$G)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$A, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5899
5915
|
createElementVNode("div", {
|
|
5900
5916
|
id: itemId(index),
|
|
5901
5917
|
ref_for: true,
|
|
@@ -5930,11 +5946,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5930
5946
|
class: "tao-menu__icon",
|
|
5931
5947
|
name: item.icon
|
|
5932
5948
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
5933
|
-
createElementVNode("span", _hoisted_5$
|
|
5949
|
+
createElementVNode("span", _hoisted_5$o, toDisplayString(item.label), 1)
|
|
5934
5950
|
]),
|
|
5935
|
-
"shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
5936
|
-
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
5937
|
-
], 42, _hoisted_4$
|
|
5951
|
+
"shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$j, toDisplayString(item.shortcut), 1)) : createCommentVNode("", true),
|
|
5952
|
+
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$g)) : createCommentVNode("", true)
|
|
5953
|
+
], 42, _hoisted_4$w),
|
|
5938
5954
|
"items" in item && item.items && openSub.value === index ? (openBlock(), createBlock(_component_TaoMenu, {
|
|
5939
5955
|
key: 0,
|
|
5940
5956
|
items: item.items,
|
|
@@ -5948,18 +5964,18 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5948
5964
|
], 64))
|
|
5949
5965
|
], 64);
|
|
5950
5966
|
}), 128))
|
|
5951
|
-
], 46, _hoisted_1$
|
|
5967
|
+
], 46, _hoisted_1$L)) : createCommentVNode("", true)
|
|
5952
5968
|
]);
|
|
5953
5969
|
};
|
|
5954
5970
|
}
|
|
5955
5971
|
});
|
|
5956
|
-
const _hoisted_1$
|
|
5957
|
-
const _hoisted_2$
|
|
5958
|
-
const _hoisted_3$
|
|
5972
|
+
const _hoisted_1$K = { class: "tao-dropdown-menu" };
|
|
5973
|
+
const _hoisted_2$F = ["tabindex", "aria-expanded", "aria-label"];
|
|
5974
|
+
const _hoisted_3$z = {
|
|
5959
5975
|
key: 1,
|
|
5960
5976
|
"aria-hidden": "true"
|
|
5961
5977
|
};
|
|
5962
|
-
const _sfc_main$
|
|
5978
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
5963
5979
|
...{ name: "TaoDropdownMenu" },
|
|
5964
5980
|
__name: "TaoDropdownMenu",
|
|
5965
5981
|
props: {
|
|
@@ -5993,7 +6009,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5993
6009
|
}
|
|
5994
6010
|
}
|
|
5995
6011
|
return (_ctx, _cache) => {
|
|
5996
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6012
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
5997
6013
|
createElementVNode("button", {
|
|
5998
6014
|
ref_key: "triggerRef",
|
|
5999
6015
|
ref: triggerRef,
|
|
@@ -6006,13 +6022,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6006
6022
|
onClick: toggleMenu,
|
|
6007
6023
|
onKeydown: onTriggerKeydown
|
|
6008
6024
|
}, [
|
|
6009
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
6025
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$z, [
|
|
6010
6026
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6011
6027
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
6012
6028
|
], true)
|
|
6013
6029
|
]))
|
|
6014
|
-
], 42, _hoisted_2$
|
|
6015
|
-
createVNode(_sfc_main$
|
|
6030
|
+
], 42, _hoisted_2$F),
|
|
6031
|
+
createVNode(_sfc_main$O, {
|
|
6016
6032
|
items: __props.items,
|
|
6017
6033
|
open: isOpen.value,
|
|
6018
6034
|
anchor: triggerRef.value,
|
|
@@ -6034,8 +6050,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6034
6050
|
};
|
|
6035
6051
|
}
|
|
6036
6052
|
});
|
|
6037
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6038
|
-
const _sfc_main$
|
|
6053
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-0e71d618"]]);
|
|
6054
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
6039
6055
|
...{ name: "TaoContextMenu" },
|
|
6040
6056
|
__name: "TaoContextMenu",
|
|
6041
6057
|
props: {
|
|
@@ -6088,7 +6104,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6088
6104
|
"aria-hidden": "true",
|
|
6089
6105
|
style: normalizeStyle({ left: `${point.value.x}px`, top: `${point.value.y}px` })
|
|
6090
6106
|
}, null, 4),
|
|
6091
|
-
createVNode(_sfc_main$
|
|
6107
|
+
createVNode(_sfc_main$O, {
|
|
6092
6108
|
items: __props.items,
|
|
6093
6109
|
open: isOpen.value,
|
|
6094
6110
|
anchor: anchor.value,
|
|
@@ -6110,10 +6126,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6110
6126
|
};
|
|
6111
6127
|
}
|
|
6112
6128
|
});
|
|
6113
|
-
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6114
|
-
const _hoisted_1$
|
|
6115
|
-
const _hoisted_2$
|
|
6116
|
-
const _sfc_main$
|
|
6129
|
+
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-65a7f071"]]);
|
|
6130
|
+
const _hoisted_1$J = ["aria-label"];
|
|
6131
|
+
const _hoisted_2$E = ["tabindex", "aria-haspopup", "aria-expanded", "aria-disabled", "onClick", "onKeydown", "onMouseenter", "onFocus"];
|
|
6132
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
6117
6133
|
...{ name: "TaoMenubar" },
|
|
6118
6134
|
__name: "TaoMenubar",
|
|
6119
6135
|
props: {
|
|
@@ -6243,8 +6259,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
6243
6259
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
6244
6260
|
onMouseenter: ($event) => onEnter(index),
|
|
6245
6261
|
onFocus: ($event) => current2.value = index
|
|
6246
|
-
}, toDisplayString(entry.label), 43, _hoisted_2$
|
|
6247
|
-
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$
|
|
6262
|
+
}, toDisplayString(entry.label), 43, _hoisted_2$E),
|
|
6263
|
+
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$O, {
|
|
6248
6264
|
key: 0,
|
|
6249
6265
|
items: entry.items,
|
|
6250
6266
|
open: openIndex.value === index,
|
|
@@ -6266,11 +6282,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
6266
6282
|
]), 1032, ["items", "open", "anchor", "label", "close-on-scroll"])) : createCommentVNode("", true)
|
|
6267
6283
|
], 64);
|
|
6268
6284
|
}), 128))
|
|
6269
|
-
], 14, _hoisted_1$
|
|
6285
|
+
], 14, _hoisted_1$J);
|
|
6270
6286
|
};
|
|
6271
6287
|
}
|
|
6272
6288
|
});
|
|
6273
|
-
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6289
|
+
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-446c1c49"]]);
|
|
6274
6290
|
const toolbarKey = Symbol("tao-toolbar");
|
|
6275
6291
|
function planOverflow(entries, available, gap, moreWidth) {
|
|
6276
6292
|
const away = /* @__PURE__ */ new Set();
|
|
@@ -6354,11 +6370,11 @@ function isTextField(el) {
|
|
|
6354
6370
|
}
|
|
6355
6371
|
return el instanceof HTMLInputElement && TEXT_INPUT.test(el.type);
|
|
6356
6372
|
}
|
|
6357
|
-
const _hoisted_1$
|
|
6358
|
-
const _hoisted_2$
|
|
6359
|
-
const _hoisted_3$
|
|
6360
|
-
const _hoisted_4$
|
|
6361
|
-
const _sfc_main$
|
|
6373
|
+
const _hoisted_1$I = ["aria-label", "aria-orientation"];
|
|
6374
|
+
const _hoisted_2$D = ["data-tao-away"];
|
|
6375
|
+
const _hoisted_3$y = ["aria-label"];
|
|
6376
|
+
const _hoisted_4$v = ["aria-label"];
|
|
6377
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
6362
6378
|
...{ name: "TaoToolbar" },
|
|
6363
6379
|
__name: "TaoToolbar",
|
|
6364
6380
|
props: {
|
|
@@ -6706,7 +6722,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6706
6722
|
"aria-expanded": open.value,
|
|
6707
6723
|
onClick: toggle
|
|
6708
6724
|
}, null, 8, ["aria-label", "aria-expanded"])
|
|
6709
|
-
], 8, _hoisted_2$
|
|
6725
|
+
], 8, _hoisted_2$D)) : createCommentVNode("", true),
|
|
6710
6726
|
managed.value ? (openBlock(), createBlock(Teleport, {
|
|
6711
6727
|
key: 1,
|
|
6712
6728
|
to: "body"
|
|
@@ -6731,18 +6747,18 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6731
6747
|
(...args) => unref(menu).onFocusin && unref(menu).onFocusin(...args)),
|
|
6732
6748
|
onKeydown: _cache[1] || (_cache[1] = //@ts-ignore
|
|
6733
6749
|
(...args) => unref(menu).onKeydown && unref(menu).onKeydown(...args))
|
|
6734
|
-
}, null, 40, _hoisted_4$
|
|
6735
|
-
], 14, _hoisted_3$
|
|
6750
|
+
}, null, 40, _hoisted_4$v)
|
|
6751
|
+
], 14, _hoisted_3$y)) : createCommentVNode("", true)
|
|
6736
6752
|
])) : createCommentVNode("", true)
|
|
6737
|
-
], 46, _hoisted_1$
|
|
6753
|
+
], 46, _hoisted_1$I);
|
|
6738
6754
|
};
|
|
6739
6755
|
}
|
|
6740
6756
|
});
|
|
6741
|
-
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6742
|
-
const _hoisted_1$
|
|
6743
|
-
const _hoisted_2$
|
|
6744
|
-
const _hoisted_3$
|
|
6745
|
-
const _sfc_main$
|
|
6757
|
+
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-cdccb5ab"]]);
|
|
6758
|
+
const _hoisted_1$H = ["aria-label"];
|
|
6759
|
+
const _hoisted_2$C = ["data-tao-away", "hidden"];
|
|
6760
|
+
const _hoisted_3$x = ["aria-label"];
|
|
6761
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
6746
6762
|
...{ name: "TaoToolbarGroup", inheritAttrs: false },
|
|
6747
6763
|
__name: "TaoToolbarGroup",
|
|
6748
6764
|
props: {
|
|
@@ -6779,7 +6795,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6779
6795
|
"aria-label": __props.label
|
|
6780
6796
|
}, _ctx.$attrs), [
|
|
6781
6797
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6782
|
-
], 16, _hoisted_1$
|
|
6798
|
+
], 16, _hoisted_1$H)) : (openBlock(), createElementBlock("div", {
|
|
6783
6799
|
key: 1,
|
|
6784
6800
|
ref_key: "host",
|
|
6785
6801
|
ref: host,
|
|
@@ -6798,15 +6814,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6798
6814
|
"aria-label": __props.label
|
|
6799
6815
|
}, _ctx.$attrs), [
|
|
6800
6816
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6801
|
-
], 16, _hoisted_3$
|
|
6817
|
+
], 16, _hoisted_3$x)
|
|
6802
6818
|
], 8, ["to", "disabled"]))
|
|
6803
|
-
], 8, _hoisted_2$
|
|
6819
|
+
], 8, _hoisted_2$C));
|
|
6804
6820
|
};
|
|
6805
6821
|
}
|
|
6806
6822
|
});
|
|
6807
|
-
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6808
|
-
const _hoisted_1$
|
|
6809
|
-
const _sfc_main$
|
|
6823
|
+
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-61688996"]]);
|
|
6824
|
+
const _hoisted_1$G = ["aria-orientation", "data-tao-away"];
|
|
6825
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
6810
6826
|
...{ name: "TaoToolbarSeparator" },
|
|
6811
6827
|
__name: "TaoToolbarSeparator",
|
|
6812
6828
|
setup(__props) {
|
|
@@ -6835,11 +6851,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6835
6851
|
role: "separator",
|
|
6836
6852
|
"aria-orientation": orientation.value,
|
|
6837
6853
|
"data-tao-away": unit.away.value ? "" : void 0
|
|
6838
|
-
}, null, 10, _hoisted_1$
|
|
6854
|
+
}, null, 10, _hoisted_1$G);
|
|
6839
6855
|
};
|
|
6840
6856
|
}
|
|
6841
6857
|
});
|
|
6842
|
-
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6858
|
+
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-3555f99a"]]);
|
|
6843
6859
|
const TAO_CHART_COLORS = 6;
|
|
6844
6860
|
const chartColorVar = (index) => `var(--tao-color-chart-${index % TAO_CHART_COLORS + 1})`;
|
|
6845
6861
|
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
@@ -7011,16 +7027,16 @@ function watchTaoChartTheme(apply, el) {
|
|
|
7011
7027
|
media?.removeEventListener("change", run);
|
|
7012
7028
|
};
|
|
7013
7029
|
}
|
|
7014
|
-
const _hoisted_1$
|
|
7015
|
-
const _hoisted_2$
|
|
7030
|
+
const _hoisted_1$F = ["role", "aria-label", "aria-hidden"];
|
|
7031
|
+
const _hoisted_2$B = {
|
|
7016
7032
|
class: "tao-sparkline__svg",
|
|
7017
7033
|
viewBox: "0 0 100 100",
|
|
7018
7034
|
preserveAspectRatio: "none",
|
|
7019
7035
|
"aria-hidden": "true"
|
|
7020
7036
|
};
|
|
7021
|
-
const _hoisted_3$
|
|
7022
|
-
const _hoisted_4$
|
|
7023
|
-
const _sfc_main$
|
|
7037
|
+
const _hoisted_3$w = ["d"];
|
|
7038
|
+
const _hoisted_4$u = ["d"];
|
|
7039
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
7024
7040
|
...{ name: "TaoSparkline" },
|
|
7025
7041
|
__name: "TaoSparkline",
|
|
7026
7042
|
props: {
|
|
@@ -7052,16 +7068,16 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
7052
7068
|
"aria-label": __props.label,
|
|
7053
7069
|
"aria-hidden": __props.label ? void 0 : "true"
|
|
7054
7070
|
}, [
|
|
7055
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
7071
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$B, [
|
|
7056
7072
|
fill.value ? (openBlock(), createElementBlock("path", {
|
|
7057
7073
|
key: 0,
|
|
7058
7074
|
class: "tao-sparkline__area",
|
|
7059
7075
|
d: fill.value
|
|
7060
|
-
}, null, 8, _hoisted_3$
|
|
7076
|
+
}, null, 8, _hoisted_3$w)) : createCommentVNode("", true),
|
|
7061
7077
|
createElementVNode("path", {
|
|
7062
7078
|
class: "tao-sparkline__line",
|
|
7063
7079
|
d: line.value
|
|
7064
|
-
}, null, 8, _hoisted_4$
|
|
7080
|
+
}, null, 8, _hoisted_4$u)
|
|
7065
7081
|
])),
|
|
7066
7082
|
__props.dot && last.value ? (openBlock(), createElementBlock("span", {
|
|
7067
7083
|
key: 0,
|
|
@@ -7069,24 +7085,24 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
7069
7085
|
style: normalizeStyle({ left: inset(last.value[0]), top: inset(last.value[1]) }),
|
|
7070
7086
|
"aria-hidden": "true"
|
|
7071
7087
|
}, null, 4)) : createCommentVNode("", true)
|
|
7072
|
-
], 14, _hoisted_1$
|
|
7088
|
+
], 14, _hoisted_1$F);
|
|
7073
7089
|
};
|
|
7074
7090
|
}
|
|
7075
7091
|
});
|
|
7076
|
-
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7077
|
-
const _hoisted_1$
|
|
7078
|
-
const _hoisted_2$
|
|
7092
|
+
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-76664226"]]);
|
|
7093
|
+
const _hoisted_1$E = ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-label"];
|
|
7094
|
+
const _hoisted_2$A = {
|
|
7079
7095
|
key: 0,
|
|
7080
7096
|
class: "tao-meter__head",
|
|
7081
7097
|
"aria-hidden": "true"
|
|
7082
7098
|
};
|
|
7083
|
-
const _hoisted_3$
|
|
7084
|
-
const _hoisted_4$
|
|
7099
|
+
const _hoisted_3$v = { class: "tao-meter__label" };
|
|
7100
|
+
const _hoisted_4$t = {
|
|
7085
7101
|
key: 0,
|
|
7086
7102
|
class: "tao-meter__value"
|
|
7087
7103
|
};
|
|
7088
|
-
const _hoisted_5$
|
|
7089
|
-
const _sfc_main$
|
|
7104
|
+
const _hoisted_5$n = { class: "tao-meter__track" };
|
|
7105
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
7090
7106
|
...{ name: "TaoMeter" },
|
|
7091
7107
|
__name: "TaoMeter",
|
|
7092
7108
|
props: {
|
|
@@ -7120,38 +7136,38 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
7120
7136
|
"aria-valuetext": typeof __props.valueText === "string" ? __props.valueText : void 0,
|
|
7121
7137
|
"aria-label": __props.label
|
|
7122
7138
|
}, [
|
|
7123
|
-
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7124
|
-
createElementVNode("span", _hoisted_3$
|
|
7125
|
-
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
7139
|
+
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
7140
|
+
createElementVNode("span", _hoisted_3$v, toDisplayString(__props.label), 1),
|
|
7141
|
+
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$t, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
|
|
7126
7142
|
])) : createCommentVNode("", true),
|
|
7127
|
-
createElementVNode("div", _hoisted_5$
|
|
7143
|
+
createElementVNode("div", _hoisted_5$n, [
|
|
7128
7144
|
createElementVNode("div", {
|
|
7129
7145
|
class: "tao-meter__fill",
|
|
7130
7146
|
style: normalizeStyle({ width: `${share.value * 100}%` })
|
|
7131
7147
|
}, null, 4)
|
|
7132
7148
|
])
|
|
7133
|
-
], 10, _hoisted_1$
|
|
7149
|
+
], 10, _hoisted_1$E);
|
|
7134
7150
|
};
|
|
7135
7151
|
}
|
|
7136
7152
|
});
|
|
7137
|
-
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7138
|
-
const _hoisted_1$
|
|
7139
|
-
const _hoisted_2$
|
|
7140
|
-
const _hoisted_3$
|
|
7141
|
-
const _hoisted_4$
|
|
7142
|
-
const _hoisted_5$
|
|
7153
|
+
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-17e24a8e"]]);
|
|
7154
|
+
const _hoisted_1$D = ["aria-label"];
|
|
7155
|
+
const _hoisted_2$z = ["viewBox", "width", "height"];
|
|
7156
|
+
const _hoisted_3$u = ["cx", "cy", "r", "stroke-width"];
|
|
7157
|
+
const _hoisted_4$s = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
7158
|
+
const _hoisted_5$m = {
|
|
7143
7159
|
key: 0,
|
|
7144
7160
|
class: "tao-donut__centre",
|
|
7145
7161
|
"aria-hidden": "true"
|
|
7146
7162
|
};
|
|
7147
|
-
const _hoisted_6$
|
|
7163
|
+
const _hoisted_6$i = {
|
|
7148
7164
|
key: 0,
|
|
7149
7165
|
class: "tao-donut__legend",
|
|
7150
7166
|
"aria-hidden": "true"
|
|
7151
7167
|
};
|
|
7152
|
-
const _hoisted_7$
|
|
7153
|
-
const _hoisted_8$
|
|
7154
|
-
const _sfc_main$
|
|
7168
|
+
const _hoisted_7$f = { class: "tao-donut__name" };
|
|
7169
|
+
const _hoisted_8$a = { class: "tao-donut__share" };
|
|
7170
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
7155
7171
|
...{ name: "TaoDonut" },
|
|
7156
7172
|
__name: "TaoDonut",
|
|
7157
7173
|
props: {
|
|
@@ -7214,7 +7230,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
7214
7230
|
cy: centre.value,
|
|
7215
7231
|
r: radius.value,
|
|
7216
7232
|
"stroke-width": __props.thickness
|
|
7217
|
-
}, null, 8, _hoisted_3$
|
|
7233
|
+
}, null, 8, _hoisted_3$u),
|
|
7218
7234
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
7219
7235
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
7220
7236
|
key: arc.key,
|
|
@@ -7228,16 +7244,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
7228
7244
|
"stroke-dashoffset": -arc.start,
|
|
7229
7245
|
transform: `rotate(-90 ${centre.value} ${centre.value})`,
|
|
7230
7246
|
style: normalizeStyle({ stroke: arc.stroke })
|
|
7231
|
-
}, null, 14, _hoisted_4$
|
|
7247
|
+
}, null, 14, _hoisted_4$s)), [
|
|
7232
7248
|
[vShow, arc.length > 0]
|
|
7233
7249
|
]);
|
|
7234
7250
|
}), 128))
|
|
7235
|
-
], 8, _hoisted_2$
|
|
7236
|
-
has("default") ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
7251
|
+
], 8, _hoisted_2$z)),
|
|
7252
|
+
has("default") ? (openBlock(), createElementBlock("div", _hoisted_5$m, [
|
|
7237
7253
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
7238
7254
|
])) : createCommentVNode("", true)
|
|
7239
|
-
], 12, _hoisted_1$
|
|
7240
|
-
__props.legend && __props.segments ? (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
7255
|
+
], 12, _hoisted_1$D),
|
|
7256
|
+
__props.legend && __props.segments ? (openBlock(), createElementBlock("ul", _hoisted_6$i, [
|
|
7241
7257
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
7242
7258
|
return openBlock(), createElementBlock("li", {
|
|
7243
7259
|
key: arc.key,
|
|
@@ -7247,8 +7263,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
7247
7263
|
class: normalizeClass(["tao-donut__swatch", unref(toneClass)(arc.tone)]),
|
|
7248
7264
|
style: normalizeStyle({ background: arc.stroke })
|
|
7249
7265
|
}, null, 6),
|
|
7250
|
-
createElementVNode("span", _hoisted_7$
|
|
7251
|
-
createElementVNode("span", _hoisted_8$
|
|
7266
|
+
createElementVNode("span", _hoisted_7$f, toDisplayString(arc.label), 1),
|
|
7267
|
+
createElementVNode("span", _hoisted_8$a, toDisplayString(percent(arc.share)), 1)
|
|
7252
7268
|
]);
|
|
7253
7269
|
}), 128))
|
|
7254
7270
|
])) : createCommentVNode("", true)
|
|
@@ -7256,26 +7272,26 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
7256
7272
|
};
|
|
7257
7273
|
}
|
|
7258
7274
|
});
|
|
7259
|
-
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7260
|
-
const _hoisted_1$
|
|
7261
|
-
const _hoisted_2$
|
|
7275
|
+
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-51178c3f"]]);
|
|
7276
|
+
const _hoisted_1$C = ["aria-label", "aria-rowcount", "aria-colcount"];
|
|
7277
|
+
const _hoisted_2$y = {
|
|
7262
7278
|
class: "tao-heatmap__row tao-heatmap__head",
|
|
7263
7279
|
role: "row"
|
|
7264
7280
|
};
|
|
7265
|
-
const _hoisted_3$
|
|
7281
|
+
const _hoisted_3$t = {
|
|
7266
7282
|
class: "tao-heatmap__name",
|
|
7267
7283
|
role: "rowheader"
|
|
7268
7284
|
};
|
|
7269
|
-
const _hoisted_4$
|
|
7270
|
-
const _hoisted_5$
|
|
7271
|
-
const _hoisted_6$
|
|
7272
|
-
const _hoisted_7$
|
|
7273
|
-
const _hoisted_8$
|
|
7285
|
+
const _hoisted_4$r = ["data-r", "data-c", "tabindex", "onPointerenter", "onFocus"];
|
|
7286
|
+
const _hoisted_5$l = { class: "tao-sr-only" };
|
|
7287
|
+
const _hoisted_6$h = { class: "tao-heatmap__tip-where" };
|
|
7288
|
+
const _hoisted_7$e = { class: "tao-heatmap__tip-value" };
|
|
7289
|
+
const _hoisted_8$9 = {
|
|
7274
7290
|
key: 1,
|
|
7275
7291
|
class: "tao-heatmap__legend",
|
|
7276
7292
|
"aria-hidden": "true"
|
|
7277
7293
|
};
|
|
7278
|
-
const _sfc_main$
|
|
7294
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
7279
7295
|
...{ name: "TaoHeatmap" },
|
|
7280
7296
|
__name: "TaoHeatmap",
|
|
7281
7297
|
props: {
|
|
@@ -7427,7 +7443,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7427
7443
|
onPointerleave: hide,
|
|
7428
7444
|
onFocusout: onFocusOut
|
|
7429
7445
|
}, [
|
|
7430
|
-
createElementVNode("div", _hoisted_2$
|
|
7446
|
+
createElementVNode("div", _hoisted_2$y, [
|
|
7431
7447
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
7432
7448
|
class: "tao-heatmap__corner",
|
|
7433
7449
|
role: "columnheader"
|
|
@@ -7450,7 +7466,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7450
7466
|
class: "tao-heatmap__row",
|
|
7451
7467
|
role: "row"
|
|
7452
7468
|
}, [
|
|
7453
|
-
createElementVNode("span", _hoisted_3$
|
|
7469
|
+
createElementVNode("span", _hoisted_3$t, toDisplayString(row), 1),
|
|
7454
7470
|
(openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
|
|
7455
7471
|
return openBlock(), createElementBlock("span", {
|
|
7456
7472
|
key: cell.key,
|
|
@@ -7471,12 +7487,12 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7471
7487
|
style: normalizeStyle(levelStyle(cell.level)),
|
|
7472
7488
|
"aria-hidden": "true"
|
|
7473
7489
|
}, null, 6),
|
|
7474
|
-
createElementVNode("span", _hoisted_5$
|
|
7475
|
-
], 44, _hoisted_4$
|
|
7490
|
+
createElementVNode("span", _hoisted_5$l, toDisplayString(cell.text), 1)
|
|
7491
|
+
], 44, _hoisted_4$r);
|
|
7476
7492
|
}), 128))
|
|
7477
7493
|
]);
|
|
7478
7494
|
}), 128))
|
|
7479
|
-
], 46, _hoisted_1$
|
|
7495
|
+
], 46, _hoisted_1$C),
|
|
7480
7496
|
tip.value ? (openBlock(), createElementBlock("div", {
|
|
7481
7497
|
key: 0,
|
|
7482
7498
|
ref_key: "tipRef",
|
|
@@ -7486,8 +7502,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7486
7502
|
"aria-hidden": "true"
|
|
7487
7503
|
}, [
|
|
7488
7504
|
renderSlot(_ctx.$slots, "tip", normalizeProps(guardReactiveProps(tip.value)), () => [
|
|
7489
|
-
createElementVNode("span", _hoisted_6$
|
|
7490
|
-
createElementVNode("strong", _hoisted_7$
|
|
7505
|
+
createElementVNode("span", _hoisted_6$h, toDisplayString(tip.value.row) + ", " + toDisplayString(tip.value.col), 1),
|
|
7506
|
+
createElementVNode("strong", _hoisted_7$e, toDisplayString(tip.value.text), 1)
|
|
7491
7507
|
], true)
|
|
7492
7508
|
], 6)) : createCommentVNode("", true),
|
|
7493
7509
|
createElementVNode("div", {
|
|
@@ -7500,7 +7516,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7500
7516
|
return openBlock(), createElementBlock("span", { key: c }, toDisplayString(col), 1);
|
|
7501
7517
|
}), 128))
|
|
7502
7518
|
], 512),
|
|
7503
|
-
__props.legend && legendItems.value.length ? (openBlock(), createElementBlock("ul", _hoisted_8$
|
|
7519
|
+
__props.legend && legendItems.value.length ? (openBlock(), createElementBlock("ul", _hoisted_8$9, [
|
|
7504
7520
|
(openBlock(true), createElementBlock(Fragment, null, renderList(legendItems.value, (item) => {
|
|
7505
7521
|
return openBlock(), createElementBlock("li", {
|
|
7506
7522
|
key: item.level,
|
|
@@ -7518,32 +7534,32 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7518
7534
|
};
|
|
7519
7535
|
}
|
|
7520
7536
|
});
|
|
7521
|
-
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7522
|
-
const _hoisted_1$
|
|
7523
|
-
const _hoisted_2$
|
|
7524
|
-
const _hoisted_3$
|
|
7525
|
-
const _hoisted_4$
|
|
7537
|
+
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-496996ae"]]);
|
|
7538
|
+
const _hoisted_1$B = { class: "tao-nav__shell" };
|
|
7539
|
+
const _hoisted_2$x = ["aria-label"];
|
|
7540
|
+
const _hoisted_3$s = { class: "tao-nav__column" };
|
|
7541
|
+
const _hoisted_4$q = {
|
|
7526
7542
|
key: 0,
|
|
7527
7543
|
class: "tao-nav__action"
|
|
7528
7544
|
};
|
|
7529
|
-
const _hoisted_5$
|
|
7530
|
-
const _hoisted_6$
|
|
7545
|
+
const _hoisted_5$k = { class: "tao-nav__list" };
|
|
7546
|
+
const _hoisted_6$g = {
|
|
7531
7547
|
key: 0,
|
|
7532
7548
|
class: "tao-nav__icon",
|
|
7533
7549
|
"aria-hidden": "true"
|
|
7534
7550
|
};
|
|
7535
|
-
const _hoisted_7$
|
|
7536
|
-
const _hoisted_8$
|
|
7537
|
-
const _hoisted_9$
|
|
7551
|
+
const _hoisted_7$d = { class: "tao-nav__label" };
|
|
7552
|
+
const _hoisted_8$8 = ["aria-hidden"];
|
|
7553
|
+
const _hoisted_9$7 = {
|
|
7538
7554
|
key: 0,
|
|
7539
7555
|
class: "tao-nav__entry tao-nav__entry--more"
|
|
7540
7556
|
};
|
|
7541
|
-
const _hoisted_10$
|
|
7542
|
-
const _hoisted_11$
|
|
7557
|
+
const _hoisted_10$4 = ["aria-expanded"];
|
|
7558
|
+
const _hoisted_11$4 = {
|
|
7543
7559
|
class: "tao-nav__icon",
|
|
7544
7560
|
"aria-hidden": "true"
|
|
7545
7561
|
};
|
|
7546
|
-
const _hoisted_12$
|
|
7562
|
+
const _hoisted_12$3 = { class: "tao-nav__label" };
|
|
7547
7563
|
const _hoisted_13$1 = {
|
|
7548
7564
|
key: 1,
|
|
7549
7565
|
class: "tao-nav__footer"
|
|
@@ -7552,7 +7568,7 @@ const _hoisted_14$1 = {
|
|
|
7552
7568
|
key: 0,
|
|
7553
7569
|
class: "tao-nav__content"
|
|
7554
7570
|
};
|
|
7555
|
-
const _sfc_main$
|
|
7571
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
7556
7572
|
...{ name: "TaoNav" },
|
|
7557
7573
|
__name: "TaoNav",
|
|
7558
7574
|
props: {
|
|
@@ -7615,16 +7631,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7615
7631
|
return openBlock(), createElementBlock("div", {
|
|
7616
7632
|
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" }]])
|
|
7617
7633
|
}, [
|
|
7618
|
-
createElementVNode("div", _hoisted_1$
|
|
7634
|
+
createElementVNode("div", _hoisted_1$B, [
|
|
7619
7635
|
createElementVNode("nav", {
|
|
7620
7636
|
class: normalizeClass(["tao-nav__panel", unref(surfaceClass)(__props.surface)]),
|
|
7621
7637
|
"aria-label": unref(l10n).ariaLabel
|
|
7622
7638
|
}, [
|
|
7623
|
-
createElementVNode("div", _hoisted_3$
|
|
7624
|
-
has("action") ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
7639
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
7640
|
+
has("action") ? (openBlock(), createElementBlock("div", _hoisted_4$q, [
|
|
7625
7641
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
7626
7642
|
])) : createCommentVNode("", true),
|
|
7627
|
-
createElementVNode("ul", _hoisted_5$
|
|
7643
|
+
createElementVNode("ul", _hoisted_5$k, [
|
|
7628
7644
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
7629
7645
|
return openBlock(), createElementBlock("li", {
|
|
7630
7646
|
key: item.id,
|
|
@@ -7640,13 +7656,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7640
7656
|
onClick: ($event) => choose(item, $event)
|
|
7641
7657
|
}, {
|
|
7642
7658
|
default: withCtx(() => [
|
|
7643
|
-
item.icon ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
7659
|
+
item.icon ? (openBlock(), createElementBlock("span", _hoisted_6$g, [
|
|
7644
7660
|
createVNode(TaoIcon, {
|
|
7645
7661
|
name: item.icon,
|
|
7646
7662
|
size: 20
|
|
7647
7663
|
}, null, 8, ["name"])
|
|
7648
7664
|
])) : createCommentVNode("", true),
|
|
7649
|
-
createElementVNode("span", _hoisted_7$
|
|
7665
|
+
createElementVNode("span", _hoisted_7$d, [
|
|
7650
7666
|
renderSlot(_ctx.$slots, "label", {
|
|
7651
7667
|
item,
|
|
7652
7668
|
active: item.id === __props.modelValue
|
|
@@ -7658,13 +7674,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7658
7674
|
key: 1,
|
|
7659
7675
|
class: normalizeClass(["tao-nav__badge", { "tao-nav__badge--dot": item.badge === true }]),
|
|
7660
7676
|
"aria-hidden": item.badge === true ? "true" : void 0
|
|
7661
|
-
}, toDisplayString(badgeText(item)), 11, _hoisted_8$
|
|
7677
|
+
}, toDisplayString(badgeText(item)), 11, _hoisted_8$8)) : createCommentVNode("", true)
|
|
7662
7678
|
]),
|
|
7663
7679
|
_: 2
|
|
7664
7680
|
}, 1032, ["class", "href", "type", "disabled", "aria-disabled", "aria-current", "onClick"]))
|
|
7665
7681
|
], 2);
|
|
7666
7682
|
}), 128)),
|
|
7667
|
-
overflowing.value ? (openBlock(), createElementBlock("li", _hoisted_9$
|
|
7683
|
+
overflowing.value ? (openBlock(), createElementBlock("li", _hoisted_9$7, [
|
|
7668
7684
|
createElementVNode("button", {
|
|
7669
7685
|
ref_key: "moreButton",
|
|
7670
7686
|
ref: moreButton,
|
|
@@ -7674,26 +7690,26 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7674
7690
|
"aria-expanded": moreOpen.value,
|
|
7675
7691
|
onClick: _cache[0] || (_cache[0] = ($event) => moreOpen.value = !moreOpen.value)
|
|
7676
7692
|
}, [
|
|
7677
|
-
createElementVNode("span", _hoisted_11$
|
|
7693
|
+
createElementVNode("span", _hoisted_11$4, [
|
|
7678
7694
|
createVNode(TaoIcon, {
|
|
7679
7695
|
name: "tao-more-horizontal",
|
|
7680
7696
|
size: 20
|
|
7681
7697
|
})
|
|
7682
7698
|
]),
|
|
7683
|
-
createElementVNode("span", _hoisted_12$
|
|
7684
|
-
], 10, _hoisted_10$
|
|
7699
|
+
createElementVNode("span", _hoisted_12$3, toDisplayString(unref(l10n).moreLabel), 1)
|
|
7700
|
+
], 10, _hoisted_10$4)
|
|
7685
7701
|
])) : createCommentVNode("", true)
|
|
7686
7702
|
]),
|
|
7687
7703
|
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
7688
7704
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
7689
7705
|
])) : createCommentVNode("", true)
|
|
7690
7706
|
])
|
|
7691
|
-
], 10, _hoisted_2$
|
|
7707
|
+
], 10, _hoisted_2$x),
|
|
7692
7708
|
!standalone.value ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
7693
7709
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
7694
7710
|
])) : createCommentVNode("", true)
|
|
7695
7711
|
]),
|
|
7696
|
-
overflowing.value ? (openBlock(), createBlock(_sfc_main$
|
|
7712
|
+
overflowing.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
7697
7713
|
key: 0,
|
|
7698
7714
|
items: moreMenu.value,
|
|
7699
7715
|
open: moreOpen.value,
|
|
@@ -7707,7 +7723,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7707
7723
|
};
|
|
7708
7724
|
}
|
|
7709
7725
|
});
|
|
7710
|
-
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7726
|
+
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-83603250"]]);
|
|
7711
7727
|
function visibleRows(nodes, expanded, children) {
|
|
7712
7728
|
const rows = [];
|
|
7713
7729
|
const ancestors = /* @__PURE__ */ new Set();
|
|
@@ -7757,18 +7773,18 @@ function toggleCheck(node, checked2, children) {
|
|
|
7757
7773
|
}
|
|
7758
7774
|
return next;
|
|
7759
7775
|
}
|
|
7760
|
-
const _hoisted_1$
|
|
7761
|
-
const _hoisted_2$
|
|
7762
|
-
const _hoisted_3$
|
|
7763
|
-
const _hoisted_4$
|
|
7764
|
-
const _hoisted_5$
|
|
7765
|
-
const _hoisted_6$
|
|
7776
|
+
const _hoisted_1$A = ["aria-label", "aria-multiselectable"];
|
|
7777
|
+
const _hoisted_2$w = ["id", "tabindex", "aria-level", "aria-setsize", "aria-posinset", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled", "aria-busy", "onKeydown", "onClick", "onFocus"];
|
|
7778
|
+
const _hoisted_3$r = ["onClick"];
|
|
7779
|
+
const _hoisted_4$p = ["title"];
|
|
7780
|
+
const _hoisted_5$j = ["onClick"];
|
|
7781
|
+
const _hoisted_6$f = {
|
|
7766
7782
|
key: 1,
|
|
7767
7783
|
class: "tao-tree__icon",
|
|
7768
7784
|
"aria-hidden": "true"
|
|
7769
7785
|
};
|
|
7770
|
-
const _hoisted_7$
|
|
7771
|
-
const _sfc_main$
|
|
7786
|
+
const _hoisted_7$c = { class: "tao-tree__label" };
|
|
7787
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
7772
7788
|
...{ name: "TaoTree" },
|
|
7773
7789
|
__name: "TaoTree",
|
|
7774
7790
|
props: {
|
|
@@ -8038,25 +8054,25 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8038
8054
|
key: 0,
|
|
8039
8055
|
class: "tao-tree__spinner",
|
|
8040
8056
|
title: unref(l10n).loadingLabel
|
|
8041
|
-
}, null, 8, _hoisted_4$
|
|
8057
|
+
}, null, 8, _hoisted_4$p)) : row.branch ? (openBlock(), createBlock(TaoIcon, {
|
|
8042
8058
|
key: 1,
|
|
8043
8059
|
name: "tao-chevron-right"
|
|
8044
8060
|
})) : createCommentVNode("", true)
|
|
8045
|
-
], 10, _hoisted_3$
|
|
8061
|
+
], 10, _hoisted_3$r),
|
|
8046
8062
|
__props.checkable ? (openBlock(), createElementBlock("span", {
|
|
8047
8063
|
key: 0,
|
|
8048
8064
|
class: normalizeClass(["tao-tree__check", `tao-tree__check--${stateOf(row)}`]),
|
|
8049
8065
|
"aria-hidden": "true",
|
|
8050
8066
|
onClick: withModifiers(($event) => check(row), ["stop"])
|
|
8051
|
-
}, null, 10, _hoisted_5$
|
|
8052
|
-
_ctx.$slots.icon || row.node.icon ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
8067
|
+
}, null, 10, _hoisted_5$j)) : createCommentVNode("", true),
|
|
8068
|
+
_ctx.$slots.icon || row.node.icon ? (openBlock(), createElementBlock("span", _hoisted_6$f, [
|
|
8053
8069
|
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, slotProps(row)), () => [
|
|
8054
8070
|
createVNode(TaoIcon, {
|
|
8055
8071
|
name: row.node.icon
|
|
8056
8072
|
}, null, 8, ["name"])
|
|
8057
8073
|
], true)
|
|
8058
8074
|
])) : createCommentVNode("", true),
|
|
8059
|
-
createElementVNode("span", _hoisted_7$
|
|
8075
|
+
createElementVNode("span", _hoisted_7$c, [
|
|
8060
8076
|
renderSlot(_ctx.$slots, "label", mergeProps({ ref_for: true }, slotProps(row)), () => [
|
|
8061
8077
|
createTextVNode(toDisplayString(row.node.label), 1)
|
|
8062
8078
|
], true)
|
|
@@ -8071,31 +8087,31 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8071
8087
|
}, [
|
|
8072
8088
|
renderSlot(_ctx.$slots, "actions", mergeProps({ ref_for: true }, slotProps(row)), void 0, true)
|
|
8073
8089
|
], 32)) : createCommentVNode("", true)
|
|
8074
|
-
], 46, _hoisted_2$
|
|
8090
|
+
], 46, _hoisted_2$w);
|
|
8075
8091
|
}), 128))
|
|
8076
|
-
], 10, _hoisted_1$
|
|
8092
|
+
], 10, _hoisted_1$A);
|
|
8077
8093
|
};
|
|
8078
8094
|
}
|
|
8079
8095
|
});
|
|
8080
|
-
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8081
|
-
const _hoisted_1$
|
|
8082
|
-
const _hoisted_2$
|
|
8096
|
+
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-ce3110d4"]]);
|
|
8097
|
+
const _hoisted_1$z = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
8098
|
+
const _hoisted_2$v = {
|
|
8083
8099
|
key: 0,
|
|
8084
8100
|
class: "tao-checklist__legend"
|
|
8085
8101
|
};
|
|
8086
|
-
const _hoisted_3$
|
|
8087
|
-
const _hoisted_4$
|
|
8102
|
+
const _hoisted_3$q = { key: 0 };
|
|
8103
|
+
const _hoisted_4$o = {
|
|
8088
8104
|
key: 1,
|
|
8089
8105
|
class: "tao-checklist__counter",
|
|
8090
8106
|
"aria-live": "polite"
|
|
8091
8107
|
};
|
|
8092
|
-
const _hoisted_5$
|
|
8093
|
-
const _hoisted_6$
|
|
8094
|
-
const _hoisted_7$
|
|
8108
|
+
const _hoisted_5$i = { class: "tao-checklist__text" };
|
|
8109
|
+
const _hoisted_6$e = { class: "tao-checklist__label" };
|
|
8110
|
+
const _hoisted_7$b = {
|
|
8095
8111
|
key: 0,
|
|
8096
8112
|
class: "tao-checklist__description"
|
|
8097
8113
|
};
|
|
8098
|
-
const _sfc_main$
|
|
8114
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
8099
8115
|
...{ name: "TaoChecklist" },
|
|
8100
8116
|
__name: "TaoChecklist",
|
|
8101
8117
|
props: {
|
|
@@ -8160,9 +8176,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8160
8176
|
"aria-invalid": unref(invalid) || void 0,
|
|
8161
8177
|
"aria-labelledby": labelledBy.value
|
|
8162
8178
|
}, [
|
|
8163
|
-
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
8164
|
-
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8165
|
-
__props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
8179
|
+
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$v, [
|
|
8180
|
+
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
8181
|
+
__props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(unref(formatText)(unref(l10n).counterText, { checked: checkedCount.value, total: __props.items.length })), 1)) : createCommentVNode("", true)
|
|
8166
8182
|
])) : createCommentVNode("", true),
|
|
8167
8183
|
__props.selectAll ? (openBlock(), createBlock(TaoCheckbox, {
|
|
8168
8184
|
key: 1,
|
|
@@ -8189,13 +8205,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8189
8205
|
"onUpdate:modelValue": ($event) => setItem(item, $event)
|
|
8190
8206
|
}, {
|
|
8191
8207
|
default: withCtx(() => [
|
|
8192
|
-
createElementVNode("span", _hoisted_5$
|
|
8208
|
+
createElementVNode("span", _hoisted_5$i, [
|
|
8193
8209
|
renderSlot(_ctx.$slots, "item", {
|
|
8194
8210
|
item,
|
|
8195
8211
|
checked: checked2.value.has(item.value)
|
|
8196
8212
|
}, () => [
|
|
8197
|
-
createElementVNode("span", _hoisted_6$
|
|
8198
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
8213
|
+
createElementVNode("span", _hoisted_6$e, toDisplayString(item.label), 1),
|
|
8214
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_7$b, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
8199
8215
|
], true)
|
|
8200
8216
|
])
|
|
8201
8217
|
]),
|
|
@@ -8204,34 +8220,34 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8204
8220
|
], 2);
|
|
8205
8221
|
}), 128))
|
|
8206
8222
|
], 2)
|
|
8207
|
-
], 10, _hoisted_1$
|
|
8223
|
+
], 10, _hoisted_1$z);
|
|
8208
8224
|
};
|
|
8209
8225
|
}
|
|
8210
8226
|
});
|
|
8211
|
-
const TaoChecklist = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8227
|
+
const TaoChecklist = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4d3771ce"]]);
|
|
8212
8228
|
function timelineState(index, activeIndex) {
|
|
8213
8229
|
if (activeIndex < 0) {
|
|
8214
8230
|
return "done";
|
|
8215
8231
|
}
|
|
8216
8232
|
return index < activeIndex ? "done" : index === activeIndex ? "current" : "upcoming";
|
|
8217
8233
|
}
|
|
8218
|
-
const _hoisted_1$
|
|
8219
|
-
const _hoisted_2$
|
|
8234
|
+
const _hoisted_1$y = ["aria-current"];
|
|
8235
|
+
const _hoisted_2$u = {
|
|
8220
8236
|
class: "tao-timeline__rail",
|
|
8221
8237
|
"aria-hidden": "true"
|
|
8222
8238
|
};
|
|
8223
|
-
const _hoisted_3$
|
|
8239
|
+
const _hoisted_3$p = {
|
|
8224
8240
|
key: 0,
|
|
8225
8241
|
class: "tao-timeline__line"
|
|
8226
8242
|
};
|
|
8227
|
-
const _hoisted_4$
|
|
8228
|
-
const _hoisted_5$
|
|
8229
|
-
const _hoisted_6$
|
|
8230
|
-
const _hoisted_7$
|
|
8243
|
+
const _hoisted_4$n = { class: "tao-timeline__body" };
|
|
8244
|
+
const _hoisted_5$h = ["datetime"];
|
|
8245
|
+
const _hoisted_6$d = { class: "tao-timeline__title" };
|
|
8246
|
+
const _hoisted_7$a = {
|
|
8231
8247
|
key: 1,
|
|
8232
8248
|
class: "tao-timeline__description"
|
|
8233
8249
|
};
|
|
8234
|
-
const _sfc_main$
|
|
8250
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
8235
8251
|
...{ name: "TaoTimeline" },
|
|
8236
8252
|
__name: "TaoTimeline",
|
|
8237
8253
|
props: {
|
|
@@ -8257,7 +8273,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
8257
8273
|
class: normalizeClass(["tao-timeline__item", [`tao-timeline__item--${slotProps(item, index).state}`, { "tao-timeline__item--far": index % 2 === 1 }]]),
|
|
8258
8274
|
"aria-current": slotProps(item, index).active ? "step" : void 0
|
|
8259
8275
|
}, [
|
|
8260
|
-
createElementVNode("div", _hoisted_2$
|
|
8276
|
+
createElementVNode("div", _hoisted_2$u, [
|
|
8261
8277
|
createElementVNode("span", {
|
|
8262
8278
|
class: normalizeClass(["tao-timeline__marker", [unref(toneClass)(item.tone), { "tao-timeline__marker--icon": item.icon || _ctx.$slots.marker }]])
|
|
8263
8279
|
}, [
|
|
@@ -8268,38 +8284,38 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
8268
8284
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
8269
8285
|
], true)
|
|
8270
8286
|
], 2),
|
|
8271
|
-
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8287
|
+
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$p)) : createCommentVNode("", true)
|
|
8272
8288
|
]),
|
|
8273
|
-
createElementVNode("div", _hoisted_4$
|
|
8289
|
+
createElementVNode("div", _hoisted_4$n, [
|
|
8274
8290
|
item.time ? (openBlock(), createElementBlock("time", {
|
|
8275
8291
|
key: 0,
|
|
8276
8292
|
class: "tao-timeline__time",
|
|
8277
8293
|
datetime: item.datetime
|
|
8278
|
-
}, toDisplayString(item.time), 9, _hoisted_5$
|
|
8279
|
-
createElementVNode("div", _hoisted_6$
|
|
8294
|
+
}, toDisplayString(item.time), 9, _hoisted_5$h)) : createCommentVNode("", true),
|
|
8295
|
+
createElementVNode("div", _hoisted_6$d, [
|
|
8280
8296
|
renderSlot(_ctx.$slots, "title", mergeProps({ ref_for: true }, slotProps(item, index)), () => [
|
|
8281
8297
|
createTextVNode(toDisplayString(item.title), 1)
|
|
8282
8298
|
], true)
|
|
8283
8299
|
]),
|
|
8284
|
-
item.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
8300
|
+
item.description ? (openBlock(), createElementBlock("p", _hoisted_7$a, toDisplayString(item.description), 1)) : createCommentVNode("", true),
|
|
8285
8301
|
renderSlot(_ctx.$slots, "content", mergeProps({ ref_for: true }, slotProps(item, index)), void 0, true)
|
|
8286
8302
|
])
|
|
8287
|
-
], 10, _hoisted_1$
|
|
8303
|
+
], 10, _hoisted_1$y);
|
|
8288
8304
|
}), 128))
|
|
8289
8305
|
], 2);
|
|
8290
8306
|
};
|
|
8291
8307
|
}
|
|
8292
8308
|
});
|
|
8293
|
-
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8294
|
-
const _hoisted_1$
|
|
8295
|
-
const _hoisted_2$
|
|
8296
|
-
const _hoisted_3$
|
|
8309
|
+
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-48847c47"]]);
|
|
8310
|
+
const _hoisted_1$x = ["tabindex", "aria-hidden", "inert"];
|
|
8311
|
+
const _hoisted_2$t = { class: "tao-marquee__item" };
|
|
8312
|
+
const _hoisted_3$o = {
|
|
8297
8313
|
key: 0,
|
|
8298
8314
|
class: "tao-marquee__item",
|
|
8299
8315
|
"aria-hidden": "true",
|
|
8300
8316
|
inert: ""
|
|
8301
8317
|
};
|
|
8302
|
-
const _sfc_main$
|
|
8318
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
8303
8319
|
...{ name: "TaoMarquee" },
|
|
8304
8320
|
__name: "TaoMarquee",
|
|
8305
8321
|
props: {
|
|
@@ -8413,22 +8429,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
8413
8429
|
class: "tao-marquee__track",
|
|
8414
8430
|
style: normalizeStyle(trackStyle.value)
|
|
8415
8431
|
}, [
|
|
8416
|
-
createElementVNode("span", _hoisted_2$
|
|
8432
|
+
createElementVNode("span", _hoisted_2$t, [
|
|
8417
8433
|
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8418
8434
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
8419
8435
|
], 64))
|
|
8420
8436
|
]),
|
|
8421
|
-
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8437
|
+
running.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, [
|
|
8422
8438
|
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8423
8439
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
8424
8440
|
], 64))
|
|
8425
8441
|
])) : createCommentVNode("", true)
|
|
8426
8442
|
], 4)
|
|
8427
|
-
], 46, _hoisted_1$
|
|
8443
|
+
], 46, _hoisted_1$x);
|
|
8428
8444
|
};
|
|
8429
8445
|
}
|
|
8430
8446
|
});
|
|
8431
|
-
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8447
|
+
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-0d2fc5c4"]]);
|
|
8432
8448
|
const PIN_CELL = "#";
|
|
8433
8449
|
function parsePinFormat(format) {
|
|
8434
8450
|
const mask = [...format];
|
|
@@ -8464,23 +8480,23 @@ function pinFromPaste(text, format, cells, accept) {
|
|
|
8464
8480
|
if (chars.length === cells && chars.every((ch) => accept(ch))) return chars.map((ch) => accept(ch));
|
|
8465
8481
|
return null;
|
|
8466
8482
|
}
|
|
8467
|
-
const _hoisted_1$
|
|
8468
|
-
const _hoisted_2$
|
|
8483
|
+
const _hoisted_1$w = ["aria-invalid", "aria-describedby"];
|
|
8484
|
+
const _hoisted_2$s = {
|
|
8469
8485
|
key: 0,
|
|
8470
8486
|
class: "tao-pin-code__separator",
|
|
8471
8487
|
"aria-hidden": "true"
|
|
8472
8488
|
};
|
|
8473
|
-
const _hoisted_3$
|
|
8474
|
-
const _hoisted_4$
|
|
8489
|
+
const _hoisted_3$n = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
8490
|
+
const _hoisted_4$m = {
|
|
8475
8491
|
key: 0,
|
|
8476
8492
|
class: "tao-pin-code__separator",
|
|
8477
8493
|
"aria-hidden": "true"
|
|
8478
8494
|
};
|
|
8479
|
-
const _hoisted_5$
|
|
8495
|
+
const _hoisted_5$g = {
|
|
8480
8496
|
class: "tao-sr-only",
|
|
8481
8497
|
role: "status"
|
|
8482
8498
|
};
|
|
8483
|
-
const _sfc_main$
|
|
8499
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
8484
8500
|
...{ name: "TaoPinCode" },
|
|
8485
8501
|
__name: "TaoPinCode",
|
|
8486
8502
|
props: {
|
|
@@ -8709,7 +8725,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
8709
8725
|
}, [
|
|
8710
8726
|
(openBlock(true), createElementBlock(Fragment, null, renderList(numbers.value, (num, index) => {
|
|
8711
8727
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
8712
|
-
layout.value?.before[index] ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
8728
|
+
layout.value?.before[index] ? (openBlock(), createElementBlock("span", _hoisted_2$s, toDisplayString(layout.value.before[index]), 1)) : createCommentVNode("", true),
|
|
8713
8729
|
createElementVNode("input", {
|
|
8714
8730
|
id: index === 0 ? unref(controlId) : void 0,
|
|
8715
8731
|
ref_for: true,
|
|
@@ -8734,17 +8750,17 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
8734
8750
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
8735
8751
|
onFocus: ($event) => onFocus(index),
|
|
8736
8752
|
onBlur
|
|
8737
|
-
}, null, 46, _hoisted_3$
|
|
8753
|
+
}, null, 46, _hoisted_3$n)
|
|
8738
8754
|
], 64);
|
|
8739
8755
|
}), 128)),
|
|
8740
|
-
layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
8741
|
-
createElementVNode("span", _hoisted_5$
|
|
8742
|
-
], 10, _hoisted_1$
|
|
8756
|
+
layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(layout.value.after), 1)) : createCommentVNode("", true),
|
|
8757
|
+
createElementVNode("span", _hoisted_5$g, toDisplayString(__props.status === "success" ? unref(l10n).successText : __props.status === "error" ? unref(l10n).errorText : ""), 1)
|
|
8758
|
+
], 10, _hoisted_1$w);
|
|
8743
8759
|
};
|
|
8744
8760
|
}
|
|
8745
8761
|
});
|
|
8746
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8747
|
-
const _sfc_main$
|
|
8762
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-bb653baa"]]);
|
|
8763
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
8748
8764
|
...{ name: "TaoLink" },
|
|
8749
8765
|
__name: "TaoLink",
|
|
8750
8766
|
props: {
|
|
@@ -8786,7 +8802,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
8786
8802
|
};
|
|
8787
8803
|
}
|
|
8788
8804
|
});
|
|
8789
|
-
const _sfc_main$
|
|
8805
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
8790
8806
|
...{ name: "TaoStretchedLink" },
|
|
8791
8807
|
__name: "TaoStretchedLink",
|
|
8792
8808
|
props: {
|
|
@@ -8798,7 +8814,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
8798
8814
|
setup(__props) {
|
|
8799
8815
|
const props = __props;
|
|
8800
8816
|
return (_ctx, _cache) => {
|
|
8801
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8817
|
+
return openBlock(), createBlock(_sfc_main$x, mergeProps({ class: "tao-stretched-link" }, props), {
|
|
8802
8818
|
default: withCtx(() => [
|
|
8803
8819
|
renderSlot(_ctx.$slots, "default")
|
|
8804
8820
|
]),
|
|
@@ -8807,8 +8823,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
8807
8823
|
};
|
|
8808
8824
|
}
|
|
8809
8825
|
});
|
|
8810
|
-
const _hoisted_1$
|
|
8811
|
-
const _sfc_main$
|
|
8826
|
+
const _hoisted_1$v = ["for"];
|
|
8827
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
8812
8828
|
...{ name: "TaoFormField" },
|
|
8813
8829
|
__name: "TaoFormField",
|
|
8814
8830
|
props: {
|
|
@@ -8858,7 +8874,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
8858
8874
|
class: "tao-form-field__label",
|
|
8859
8875
|
for: unref(id),
|
|
8860
8876
|
onClick: onLabelClick
|
|
8861
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
8877
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$v)) : createCommentVNode("", true),
|
|
8862
8878
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
8863
8879
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
8864
8880
|
key: 1,
|
|
@@ -8873,12 +8889,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
8873
8889
|
};
|
|
8874
8890
|
}
|
|
8875
8891
|
});
|
|
8876
|
-
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8877
|
-
const _hoisted_1$
|
|
8878
|
-
const _hoisted_2$
|
|
8879
|
-
const _hoisted_3$
|
|
8880
|
-
const _hoisted_4$
|
|
8881
|
-
const _sfc_main$
|
|
8892
|
+
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f0778b06"]]);
|
|
8893
|
+
const _hoisted_1$u = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
8894
|
+
const _hoisted_2$r = { class: "tao-select__value" };
|
|
8895
|
+
const _hoisted_3$m = ["aria-activedescendant"];
|
|
8896
|
+
const _hoisted_4$l = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
8897
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
8882
8898
|
...{ name: "TaoSelect", inheritAttrs: false },
|
|
8883
8899
|
__name: "TaoSelect",
|
|
8884
8900
|
props: {
|
|
@@ -9026,14 +9042,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9026
9042
|
onClick: toggle,
|
|
9027
9043
|
onKeydown: onTriggerKeydown
|
|
9028
9044
|
}), [
|
|
9029
|
-
createElementVNode("span", _hoisted_2$
|
|
9045
|
+
createElementVNode("span", _hoisted_2$r, toDisplayString(selected.value?.label ?? unref(l10n).placeholder), 1),
|
|
9030
9046
|
createElementVNode("span", {
|
|
9031
9047
|
class: normalizeClass(["tao-select__chevron", { "tao-select__chevron--custom": _ctx.$slots.chevron }]),
|
|
9032
9048
|
"aria-hidden": "true"
|
|
9033
9049
|
}, [
|
|
9034
9050
|
renderSlot(_ctx.$slots, "chevron", {}, void 0, true)
|
|
9035
9051
|
], 2)
|
|
9036
|
-
], 16, _hoisted_1$
|
|
9052
|
+
], 16, _hoisted_1$u),
|
|
9037
9053
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
9038
9054
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
9039
9055
|
key: 0,
|
|
@@ -9069,9 +9085,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9069
9085
|
}, ["prevent"])),
|
|
9070
9086
|
onClick: ($event) => selectOption(option),
|
|
9071
9087
|
onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
|
|
9072
|
-
}, toDisplayString(option.label), 43, _hoisted_4$
|
|
9088
|
+
}, toDisplayString(option.label), 43, _hoisted_4$l);
|
|
9073
9089
|
}), 128))
|
|
9074
|
-
], 40, _hoisted_3$
|
|
9090
|
+
], 40, _hoisted_3$m),
|
|
9075
9091
|
__props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
|
|
9076
9092
|
key: 0,
|
|
9077
9093
|
type: "button",
|
|
@@ -9090,14 +9106,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9090
9106
|
};
|
|
9091
9107
|
}
|
|
9092
9108
|
});
|
|
9093
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9109
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-02851c84"]]);
|
|
9094
9110
|
const segmentedKey = Symbol("taoSegmented");
|
|
9095
|
-
const _hoisted_1$
|
|
9096
|
-
const _hoisted_2$
|
|
9111
|
+
const _hoisted_1$t = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
|
|
9112
|
+
const _hoisted_2$q = {
|
|
9097
9113
|
key: 0,
|
|
9098
9114
|
class: "tao-segmented__legend"
|
|
9099
9115
|
};
|
|
9100
|
-
const _sfc_main$
|
|
9116
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9101
9117
|
...{ name: "TaoSegmented" },
|
|
9102
9118
|
__name: "TaoSegmented",
|
|
9103
9119
|
props: {
|
|
@@ -9211,7 +9227,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9211
9227
|
"aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
|
|
9212
9228
|
id: unref(field)?.id
|
|
9213
9229
|
}, [
|
|
9214
|
-
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
9230
|
+
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$q, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9215
9231
|
createElementVNode("div", {
|
|
9216
9232
|
ref_key: "trackRef",
|
|
9217
9233
|
ref: trackRef,
|
|
@@ -9224,32 +9240,32 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9224
9240
|
}, null, 4),
|
|
9225
9241
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9226
9242
|
], 512)
|
|
9227
|
-
], 14, _hoisted_1$
|
|
9243
|
+
], 14, _hoisted_1$t);
|
|
9228
9244
|
};
|
|
9229
9245
|
}
|
|
9230
9246
|
});
|
|
9231
|
-
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9232
|
-
const _hoisted_1$
|
|
9233
|
-
const _hoisted_2$
|
|
9234
|
-
const _hoisted_3$
|
|
9235
|
-
const _hoisted_4$
|
|
9247
|
+
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c4a6edd1"]]);
|
|
9248
|
+
const _hoisted_1$s = ["for"];
|
|
9249
|
+
const _hoisted_2$p = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
9250
|
+
const _hoisted_3$l = { class: "tao-segmented-option__face" };
|
|
9251
|
+
const _hoisted_4$k = {
|
|
9236
9252
|
key: 0,
|
|
9237
9253
|
class: "tao-segmented-option__icon",
|
|
9238
9254
|
"aria-hidden": "true"
|
|
9239
9255
|
};
|
|
9240
|
-
const _hoisted_5$
|
|
9256
|
+
const _hoisted_5$f = {
|
|
9241
9257
|
key: 1,
|
|
9242
9258
|
class: "tao-segmented-option__label"
|
|
9243
9259
|
};
|
|
9244
|
-
const _hoisted_6$
|
|
9260
|
+
const _hoisted_6$c = {
|
|
9245
9261
|
key: 2,
|
|
9246
9262
|
class: "tao-segmented-option__sr"
|
|
9247
9263
|
};
|
|
9248
|
-
const _hoisted_7$
|
|
9264
|
+
const _hoisted_7$9 = {
|
|
9249
9265
|
key: 3,
|
|
9250
9266
|
class: "tao-segmented-option__count"
|
|
9251
9267
|
};
|
|
9252
|
-
const _sfc_main$
|
|
9268
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
9253
9269
|
...{ name: "TaoSegmentedOption" },
|
|
9254
9270
|
__name: "TaoSegmentedOption",
|
|
9255
9271
|
props: {
|
|
@@ -9320,41 +9336,41 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
9320
9336
|
disabled: isDisabled.value,
|
|
9321
9337
|
"aria-label": __props.ariaLabel,
|
|
9322
9338
|
onChange
|
|
9323
|
-
}, null, 40, _hoisted_2$
|
|
9324
|
-
createElementVNode("span", _hoisted_3$
|
|
9325
|
-
__props.icon || has("icon") ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9339
|
+
}, null, 40, _hoisted_2$p),
|
|
9340
|
+
createElementVNode("span", _hoisted_3$l, [
|
|
9341
|
+
__props.icon || has("icon") ? (openBlock(), createElementBlock("span", _hoisted_4$k, [
|
|
9326
9342
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
9327
9343
|
createVNode(TaoIcon, { name: __props.icon }, null, 8, ["name"])
|
|
9328
9344
|
], true)
|
|
9329
9345
|
])) : createCommentVNode("", true),
|
|
9330
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
9346
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_5$f, [
|
|
9331
9347
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
9332
9348
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
9333
9349
|
], true)
|
|
9334
|
-
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
9335
|
-
countLabel.value ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
9350
|
+
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$c, toDisplayString(__props.ariaLabel), 1)) : createCommentVNode("", true),
|
|
9351
|
+
countLabel.value ? (openBlock(), createElementBlock("span", _hoisted_7$9, toDisplayString(countLabel.value), 1)) : createCommentVNode("", true)
|
|
9336
9352
|
])
|
|
9337
|
-
], 10, _hoisted_1$
|
|
9353
|
+
], 10, _hoisted_1$s);
|
|
9338
9354
|
};
|
|
9339
9355
|
}
|
|
9340
9356
|
});
|
|
9341
|
-
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9342
|
-
const _hoisted_1$
|
|
9343
|
-
const _hoisted_2$
|
|
9344
|
-
const _hoisted_3$
|
|
9345
|
-
const _hoisted_4$
|
|
9346
|
-
const _hoisted_5$
|
|
9357
|
+
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-71f5d295"]]);
|
|
9358
|
+
const _hoisted_1$r = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
|
|
9359
|
+
const _hoisted_2$o = { class: "tao-color-picker__strips" };
|
|
9360
|
+
const _hoisted_3$k = { class: "tao-color-picker__row" };
|
|
9361
|
+
const _hoisted_4$j = { class: "tao-color-picker__preview" };
|
|
9362
|
+
const _hoisted_5$e = {
|
|
9347
9363
|
key: 0,
|
|
9348
9364
|
class: "tao-color-picker__hex"
|
|
9349
9365
|
};
|
|
9350
|
-
const _hoisted_6$
|
|
9366
|
+
const _hoisted_6$b = {
|
|
9351
9367
|
key: 1,
|
|
9352
9368
|
class: "tao-color-picker__channels"
|
|
9353
9369
|
};
|
|
9354
|
-
const _hoisted_7$
|
|
9355
|
-
const _hoisted_8$
|
|
9356
|
-
const _hoisted_9$
|
|
9357
|
-
const _sfc_main$
|
|
9370
|
+
const _hoisted_7$8 = ["disabled", "aria-label", "title"];
|
|
9371
|
+
const _hoisted_8$7 = ["aria-label"];
|
|
9372
|
+
const _hoisted_9$6 = ["disabled", "aria-label", "title", "onClick"];
|
|
9373
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
9358
9374
|
...{ name: "TaoColorPicker" },
|
|
9359
9375
|
__name: "TaoColorPicker",
|
|
9360
9376
|
props: {
|
|
@@ -9561,9 +9577,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9561
9577
|
class: "tao-color-picker__cursor",
|
|
9562
9578
|
style: normalizeStyle({ left: `${state.s * 100}%`, top: `${(1 - state.v) * 100}%`, backgroundColor: solidCss.value })
|
|
9563
9579
|
}, null, 4)
|
|
9564
|
-
], 44, _hoisted_1$
|
|
9565
|
-
createElementVNode("div", _hoisted_2$
|
|
9566
|
-
createVNode(_sfc_main$
|
|
9580
|
+
], 44, _hoisted_1$r),
|
|
9581
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
9582
|
+
createVNode(_sfc_main$1c, {
|
|
9567
9583
|
modelValue: hueValue.value,
|
|
9568
9584
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hueValue.value = $event),
|
|
9569
9585
|
class: "tao-color-picker__hue",
|
|
@@ -9575,7 +9591,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9575
9591
|
"aria-label": unref(l10n).hueLabel,
|
|
9576
9592
|
onChange: _cache[1] || (_cache[1] = ($event) => emit("change", hex.value))
|
|
9577
9593
|
}, null, 8, ["modelValue", "disabled", "aria-label"]),
|
|
9578
|
-
__props.alpha ? (openBlock(), createBlock(_sfc_main$
|
|
9594
|
+
__props.alpha ? (openBlock(), createBlock(_sfc_main$1c, {
|
|
9579
9595
|
key: 0,
|
|
9580
9596
|
modelValue: alphaValue.value,
|
|
9581
9597
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => alphaValue.value = $event),
|
|
@@ -9610,13 +9626,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9610
9626
|
]),
|
|
9611
9627
|
_: 1
|
|
9612
9628
|
}, 8, ["modelValue", "aria-label", "disabled"])) : createCommentVNode("", true),
|
|
9613
|
-
createElementVNode("div", _hoisted_3$
|
|
9614
|
-
createElementVNode("span", _hoisted_4$
|
|
9629
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
9630
|
+
createElementVNode("span", _hoisted_4$j, [
|
|
9615
9631
|
createElementVNode("span", {
|
|
9616
9632
|
style: normalizeStyle({ backgroundColor: hex.value })
|
|
9617
9633
|
}, null, 4)
|
|
9618
9634
|
]),
|
|
9619
|
-
activeMode.value === "hex" ? (openBlock(), createElementBlock("label", _hoisted_5$
|
|
9635
|
+
activeMode.value === "hex" ? (openBlock(), createElementBlock("label", _hoisted_5$e, [
|
|
9620
9636
|
_cache[6] || (_cache[6] = createElementVNode("span", null, "HEX", -1)),
|
|
9621
9637
|
createVNode(TaoInput, {
|
|
9622
9638
|
modelValue: hexText.value,
|
|
@@ -9628,7 +9644,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9628
9644
|
onBlur: commitHex,
|
|
9629
9645
|
onKeydown: withKeys(commitHex, ["enter"])
|
|
9630
9646
|
}, null, 8, ["modelValue", "error", "disabled", "aria-label"])
|
|
9631
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
9647
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
9632
9648
|
(openBlock(true), createElementBlock(Fragment, null, renderList(channels.value, (c) => {
|
|
9633
9649
|
return openBlock(), createElementBlock("label", {
|
|
9634
9650
|
key: c.key,
|
|
@@ -9656,7 +9672,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9656
9672
|
"aria-label": unref(l10n).eyedropperLabel,
|
|
9657
9673
|
title: unref(l10n).eyedropperLabel,
|
|
9658
9674
|
onClick: eyedrop
|
|
9659
|
-
}, " ✎ ", 8, _hoisted_7$
|
|
9675
|
+
}, " ✎ ", 8, _hoisted_7$8)) : createCommentVNode("", true)
|
|
9660
9676
|
]),
|
|
9661
9677
|
__props.swatches?.length ? (openBlock(), createElementBlock("div", {
|
|
9662
9678
|
key: 1,
|
|
@@ -9674,17 +9690,17 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
9674
9690
|
"aria-label": s,
|
|
9675
9691
|
title: s,
|
|
9676
9692
|
onClick: ($event) => pick(s)
|
|
9677
|
-
}, null, 14, _hoisted_9$
|
|
9693
|
+
}, null, 14, _hoisted_9$6);
|
|
9678
9694
|
}), 128))
|
|
9679
|
-
], 8, _hoisted_8$
|
|
9695
|
+
], 8, _hoisted_8$7)) : createCommentVNode("", true)
|
|
9680
9696
|
], 2);
|
|
9681
9697
|
};
|
|
9682
9698
|
}
|
|
9683
9699
|
});
|
|
9684
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9685
|
-
const _hoisted_1$
|
|
9686
|
-
const _hoisted_2$
|
|
9687
|
-
const _sfc_main$
|
|
9700
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-54d56769"]]);
|
|
9701
|
+
const _hoisted_1$q = ["disabled", "aria-label", "aria-expanded"];
|
|
9702
|
+
const _hoisted_2$n = ["disabled"];
|
|
9703
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
9688
9704
|
...{ name: "TaoColorInput", inheritAttrs: false },
|
|
9689
9705
|
__name: "TaoColorInput",
|
|
9690
9706
|
props: {
|
|
@@ -9749,7 +9765,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
9749
9765
|
createElementVNode("span", {
|
|
9750
9766
|
class: normalizeClass(["tao-color-input__text", { "tao-color-input__text--empty": empty.value }])
|
|
9751
9767
|
}, toDisplayString(text.value), 3)
|
|
9752
|
-
], 16, _hoisted_1$
|
|
9768
|
+
], 16, _hoisted_1$q)
|
|
9753
9769
|
]),
|
|
9754
9770
|
default: withCtx(() => [
|
|
9755
9771
|
createVNode(TaoColorPicker, {
|
|
@@ -9770,21 +9786,21 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
9770
9786
|
class: "tao-color-input__clear",
|
|
9771
9787
|
disabled: empty.value,
|
|
9772
9788
|
onClick: clear
|
|
9773
|
-
}, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$
|
|
9789
|
+
}, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$n)) : createCommentVNode("", true)
|
|
9774
9790
|
]),
|
|
9775
9791
|
_: 1
|
|
9776
9792
|
}, 16, ["placement", "disabled"]);
|
|
9777
9793
|
};
|
|
9778
9794
|
}
|
|
9779
9795
|
});
|
|
9780
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9781
|
-
const _hoisted_1$
|
|
9782
|
-
const _hoisted_2$
|
|
9796
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-7e3f5d62"]]);
|
|
9797
|
+
const _hoisted_1$p = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
9798
|
+
const _hoisted_2$m = {
|
|
9783
9799
|
key: 0,
|
|
9784
9800
|
class: "tao-combobox__empty"
|
|
9785
9801
|
};
|
|
9786
|
-
const _hoisted_3$
|
|
9787
|
-
const _sfc_main$
|
|
9802
|
+
const _hoisted_3$j = ["id", "aria-selected", "aria-disabled", "data-tao-combobox-index", "onClick", "onMouseenter"];
|
|
9803
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
9788
9804
|
...{ name: "TaoCombobox", inheritAttrs: false },
|
|
9789
9805
|
__name: "TaoCombobox",
|
|
9790
9806
|
props: {
|
|
@@ -10158,7 +10174,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10158
10174
|
onFocus,
|
|
10159
10175
|
onBlur,
|
|
10160
10176
|
onKeydown: onInputKeydown
|
|
10161
|
-
}), null, 16, _hoisted_1$
|
|
10177
|
+
}), null, 16, _hoisted_1$p),
|
|
10162
10178
|
createElementVNode("span", {
|
|
10163
10179
|
class: normalizeClass(["tao-combobox__chevron", { "tao-combobox__chevron--custom": _ctx.$slots.chevron }]),
|
|
10164
10180
|
"aria-hidden": "true"
|
|
@@ -10181,7 +10197,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10181
10197
|
class: "tao-combobox__list",
|
|
10182
10198
|
role: "listbox"
|
|
10183
10199
|
}, [
|
|
10184
|
-
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$
|
|
10200
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$m, [
|
|
10185
10201
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
10186
10202
|
createTextVNode(toDisplayString(unref(l10n).emptyText), 1)
|
|
10187
10203
|
], true)
|
|
@@ -10211,7 +10227,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10211
10227
|
], true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
10212
10228
|
createTextVNode(toDisplayString(row.option.label), 1)
|
|
10213
10229
|
], 64))
|
|
10214
|
-
], 42, _hoisted_3$
|
|
10230
|
+
], 42, _hoisted_3$j);
|
|
10215
10231
|
}), 128))
|
|
10216
10232
|
], 512),
|
|
10217
10233
|
__props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
|
|
@@ -10231,7 +10247,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
10231
10247
|
};
|
|
10232
10248
|
}
|
|
10233
10249
|
});
|
|
10234
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10250
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0e178aeb"]]);
|
|
10235
10251
|
function presetLine(options) {
|
|
10236
10252
|
const usable2 = options.filter((option) => !option.disabled);
|
|
10237
10253
|
return [...usable2.filter((option) => !option.default), ...usable2.filter((option) => option.default)];
|
|
@@ -10278,11 +10294,11 @@ function parsePreset(text, options, { custom = true, min = 1, max = 999 } = {})
|
|
|
10278
10294
|
const number = Math.round(Number(raw.replace(",", ".")));
|
|
10279
10295
|
return number >= min && number <= max ? number : void 0;
|
|
10280
10296
|
}
|
|
10281
|
-
const _hoisted_1$
|
|
10282
|
-
const _hoisted_2$
|
|
10283
|
-
const _hoisted_3$
|
|
10284
|
-
const _hoisted_4$
|
|
10285
|
-
const _sfc_main$
|
|
10297
|
+
const _hoisted_1$o = ["id", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "value"];
|
|
10298
|
+
const _hoisted_2$l = ["aria-label", "disabled"];
|
|
10299
|
+
const _hoisted_3$i = ["aria-label", "disabled"];
|
|
10300
|
+
const _hoisted_4$i = ["id", "aria-selected", "aria-disabled", "onClick"];
|
|
10301
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
10286
10302
|
...{ name: "TaoPresetInput", inheritAttrs: false },
|
|
10287
10303
|
__name: "TaoPresetInput",
|
|
10288
10304
|
props: {
|
|
@@ -10470,7 +10486,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10470
10486
|
onBlur,
|
|
10471
10487
|
onClick: openList,
|
|
10472
10488
|
onKeydown: onKeydown2
|
|
10473
|
-
}), null, 16, _hoisted_1$
|
|
10489
|
+
}), null, 16, _hoisted_1$o)
|
|
10474
10490
|
], 512),
|
|
10475
10491
|
createElementVNode("div", {
|
|
10476
10492
|
ref_key: "stepsRef",
|
|
@@ -10488,7 +10504,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10488
10504
|
onClick: _cache[1] || (_cache[1] = ($event) => step(1))
|
|
10489
10505
|
}, [
|
|
10490
10506
|
createVNode(TaoIcon, { name: "tao-chevron-up" })
|
|
10491
|
-
], 40, _hoisted_2$
|
|
10507
|
+
], 40, _hoisted_2$l),
|
|
10492
10508
|
createElementVNode("button", {
|
|
10493
10509
|
type: "button",
|
|
10494
10510
|
tabindex: "-1",
|
|
@@ -10500,7 +10516,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10500
10516
|
onClick: _cache[3] || (_cache[3] = ($event) => step(-1))
|
|
10501
10517
|
}, [
|
|
10502
10518
|
createVNode(TaoIcon, { name: "tao-chevron-down" })
|
|
10503
|
-
], 40, _hoisted_3$
|
|
10519
|
+
], 40, _hoisted_3$i)
|
|
10504
10520
|
], 512),
|
|
10505
10521
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
10506
10522
|
open.value ? (openBlock(), createElementBlock("ul", {
|
|
@@ -10523,7 +10539,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10523
10539
|
"aria-selected": option.value === __props.modelValue,
|
|
10524
10540
|
"aria-disabled": option.disabled ? true : void 0,
|
|
10525
10541
|
onClick: ($event) => pick(option)
|
|
10526
|
-
}, toDisplayString(option.label), 11, _hoisted_4$
|
|
10542
|
+
}, toDisplayString(option.label), 11, _hoisted_4$i);
|
|
10527
10543
|
}), 128))
|
|
10528
10544
|
], 38)) : createCommentVNode("", true)
|
|
10529
10545
|
]))
|
|
@@ -10531,7 +10547,407 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10531
10547
|
};
|
|
10532
10548
|
}
|
|
10533
10549
|
});
|
|
10534
|
-
const TaoPresetInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10550
|
+
const TaoPresetInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-7682df3a"]]);
|
|
10551
|
+
const fold = (text) => text.replace(/[^]/g, (ch) => {
|
|
10552
|
+
const lower = ch.toLowerCase();
|
|
10553
|
+
const same = lower.length === ch.length ? lower : ch;
|
|
10554
|
+
return same === "ё" ? "е" : same;
|
|
10555
|
+
});
|
|
10556
|
+
const SCORE = { prefix: 100, wordStart: 80, substring: 60, hidden: 30, subsequence: 20 };
|
|
10557
|
+
function mergeRanges(ranges) {
|
|
10558
|
+
const sorted = [...ranges].sort((a, b) => a[0] - b[0] || a[1] - b[1]);
|
|
10559
|
+
const out = [];
|
|
10560
|
+
for (const [from, to] of sorted) {
|
|
10561
|
+
const last = out[out.length - 1];
|
|
10562
|
+
if (last && from <= last[1]) last[1] = Math.max(last[1], to);
|
|
10563
|
+
else out.push([from, to]);
|
|
10564
|
+
}
|
|
10565
|
+
return out;
|
|
10566
|
+
}
|
|
10567
|
+
function matchWord(label, word) {
|
|
10568
|
+
const at = label.indexOf(word);
|
|
10569
|
+
if (at === 0) return { score: SCORE.prefix, ranges: [[0, word.length]] };
|
|
10570
|
+
for (let i = label.indexOf(word); i >= 0; i = label.indexOf(word, i + 1)) {
|
|
10571
|
+
if (/[\s.\-_/:]/.test(label[i - 1] ?? "")) return { score: SCORE.wordStart, ranges: [[i, i + word.length]] };
|
|
10572
|
+
}
|
|
10573
|
+
if (at > 0) return { score: SCORE.substring, ranges: [[at, at + word.length]] };
|
|
10574
|
+
const ranges = [];
|
|
10575
|
+
let from = 0;
|
|
10576
|
+
let gaps = 0;
|
|
10577
|
+
let previous = -2;
|
|
10578
|
+
for (const letter of word) {
|
|
10579
|
+
const next = label.indexOf(letter, from);
|
|
10580
|
+
if (next < 0) return null;
|
|
10581
|
+
if (next !== previous + 1) gaps++;
|
|
10582
|
+
ranges.push([next, next + 1]);
|
|
10583
|
+
previous = next;
|
|
10584
|
+
from = next + 1;
|
|
10585
|
+
}
|
|
10586
|
+
return { score: Math.max(1, SCORE.subsequence - gaps), ranges: mergeRanges(ranges) };
|
|
10587
|
+
}
|
|
10588
|
+
function matchCommands(items, query, limit = Infinity) {
|
|
10589
|
+
const words = fold(query).split(/\s+/).filter(Boolean);
|
|
10590
|
+
if (words.length === 0) return items.slice(0, limit).map((item) => ({ item, score: 0, ranges: [] }));
|
|
10591
|
+
const found = [];
|
|
10592
|
+
items.forEach((item) => {
|
|
10593
|
+
const label = fold(item.label);
|
|
10594
|
+
const hidden = fold([item.group ?? "", item.description ?? "", ...item.keywords ?? []].join(" "));
|
|
10595
|
+
let score = 0;
|
|
10596
|
+
const ranges = [];
|
|
10597
|
+
for (const word of words) {
|
|
10598
|
+
const hit = matchWord(label, word);
|
|
10599
|
+
if (hit) {
|
|
10600
|
+
score += hit.score;
|
|
10601
|
+
ranges.push(...hit.ranges);
|
|
10602
|
+
} else if (hidden.includes(word)) {
|
|
10603
|
+
score += SCORE.hidden;
|
|
10604
|
+
} else {
|
|
10605
|
+
return;
|
|
10606
|
+
}
|
|
10607
|
+
}
|
|
10608
|
+
found.push({ item, score, ranges: mergeRanges(ranges) });
|
|
10609
|
+
});
|
|
10610
|
+
return found.sort((a, b) => b.score - a.score).slice(0, limit);
|
|
10611
|
+
}
|
|
10612
|
+
function splitByRanges(label, ranges) {
|
|
10613
|
+
const parts = [];
|
|
10614
|
+
let at = 0;
|
|
10615
|
+
for (const [from, to] of ranges) {
|
|
10616
|
+
if (from > at) parts.push({ text: label.slice(at, from), lit: false });
|
|
10617
|
+
parts.push({ text: label.slice(from, to), lit: true });
|
|
10618
|
+
at = to;
|
|
10619
|
+
}
|
|
10620
|
+
if (at < label.length) parts.push({ text: label.slice(at), lit: false });
|
|
10621
|
+
return parts.length ? parts : [{ text: label, lit: false }];
|
|
10622
|
+
}
|
|
10623
|
+
const _hoisted_1$n = { class: "tao-command-list" };
|
|
10624
|
+
const _hoisted_2$k = ["aria-activedescendant", "aria-label", "placeholder"];
|
|
10625
|
+
const _hoisted_3$h = ["aria-label"];
|
|
10626
|
+
const _hoisted_4$h = {
|
|
10627
|
+
key: 0,
|
|
10628
|
+
class: "tao-command-list__group",
|
|
10629
|
+
role: "presentation"
|
|
10630
|
+
};
|
|
10631
|
+
const _hoisted_5$d = ["id", "aria-selected", "aria-disabled", "onPointermove", "onClick"];
|
|
10632
|
+
const _hoisted_6$a = { class: "tao-command-list__text" };
|
|
10633
|
+
const _hoisted_7$7 = { class: "tao-command-list__label" };
|
|
10634
|
+
const _hoisted_8$6 = { key: 0 };
|
|
10635
|
+
const _hoisted_9$5 = {
|
|
10636
|
+
key: 0,
|
|
10637
|
+
class: "tao-command-list__description"
|
|
10638
|
+
};
|
|
10639
|
+
const _hoisted_10$3 = {
|
|
10640
|
+
key: 1,
|
|
10641
|
+
class: "tao-command-list__where"
|
|
10642
|
+
};
|
|
10643
|
+
const _hoisted_11$3 = {
|
|
10644
|
+
key: 2,
|
|
10645
|
+
class: "tao-command-list__shortcut"
|
|
10646
|
+
};
|
|
10647
|
+
const _hoisted_12$2 = {
|
|
10648
|
+
key: 0,
|
|
10649
|
+
class: "tao-command-list__empty",
|
|
10650
|
+
role: "presentation"
|
|
10651
|
+
};
|
|
10652
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
10653
|
+
...{ name: "TaoCommandList" },
|
|
10654
|
+
__name: "TaoCommandList",
|
|
10655
|
+
props: {
|
|
10656
|
+
items: {},
|
|
10657
|
+
placeholder: {},
|
|
10658
|
+
emptyText: {},
|
|
10659
|
+
label: {},
|
|
10660
|
+
limit: { default: 50 },
|
|
10661
|
+
autofocus: { type: Boolean }
|
|
10662
|
+
},
|
|
10663
|
+
emits: ["select", "escape"],
|
|
10664
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
10665
|
+
const props = __props;
|
|
10666
|
+
const l10n = useLocaleText(props, "commandPalette");
|
|
10667
|
+
const emit = __emit;
|
|
10668
|
+
const query = ref("");
|
|
10669
|
+
const inputRef = ref(null);
|
|
10670
|
+
const uid = useId();
|
|
10671
|
+
const listId = `${uid}-list`;
|
|
10672
|
+
const optionId = (index) => `${uid}-opt-${index}`;
|
|
10673
|
+
const results = computed(() => matchCommands(props.items, query.value, props.limit));
|
|
10674
|
+
const active = ref(-1);
|
|
10675
|
+
const rows = computed(() => {
|
|
10676
|
+
const out = [];
|
|
10677
|
+
let group;
|
|
10678
|
+
results.value.forEach((match, index) => {
|
|
10679
|
+
if (!query.value.trim() && match.item.group !== void 0 && match.item.group !== group) {
|
|
10680
|
+
group = match.item.group;
|
|
10681
|
+
out.push({ kind: "group", title: group });
|
|
10682
|
+
}
|
|
10683
|
+
out.push({ kind: "item", match, index });
|
|
10684
|
+
});
|
|
10685
|
+
return out;
|
|
10686
|
+
});
|
|
10687
|
+
const hasIcons = computed(() => results.value.some((m) => m.item.icon));
|
|
10688
|
+
const enabled = (index) => results.value[index] !== void 0 && !results.value[index].item.disabled;
|
|
10689
|
+
const firstEnabled2 = () => results.value.findIndex((m) => !m.item.disabled);
|
|
10690
|
+
function step(delta) {
|
|
10691
|
+
const n = results.value.length;
|
|
10692
|
+
if (!n || firstEnabled2() < 0) return;
|
|
10693
|
+
let index = active.value;
|
|
10694
|
+
for (let i = 0; i < n; i++) {
|
|
10695
|
+
index = (index + delta + n) % n;
|
|
10696
|
+
if (enabled(index)) {
|
|
10697
|
+
active.value = index;
|
|
10698
|
+
return;
|
|
10699
|
+
}
|
|
10700
|
+
}
|
|
10701
|
+
}
|
|
10702
|
+
function edge(last) {
|
|
10703
|
+
const indexes = results.value.map((_, i) => i).filter(enabled);
|
|
10704
|
+
if (indexes.length) active.value = last ? indexes[indexes.length - 1] : indexes[0];
|
|
10705
|
+
}
|
|
10706
|
+
function choose(index) {
|
|
10707
|
+
const match = results.value[index];
|
|
10708
|
+
if (!match || match.item.disabled) return;
|
|
10709
|
+
emit("select", match.item);
|
|
10710
|
+
}
|
|
10711
|
+
function onKeydown2(event) {
|
|
10712
|
+
if (event.isComposing) return;
|
|
10713
|
+
switch (event.key) {
|
|
10714
|
+
case "ArrowDown":
|
|
10715
|
+
event.preventDefault();
|
|
10716
|
+
step(1);
|
|
10717
|
+
break;
|
|
10718
|
+
case "ArrowUp":
|
|
10719
|
+
event.preventDefault();
|
|
10720
|
+
step(-1);
|
|
10721
|
+
break;
|
|
10722
|
+
case "Home":
|
|
10723
|
+
event.preventDefault();
|
|
10724
|
+
edge(false);
|
|
10725
|
+
break;
|
|
10726
|
+
case "End":
|
|
10727
|
+
event.preventDefault();
|
|
10728
|
+
edge(true);
|
|
10729
|
+
break;
|
|
10730
|
+
case "Enter":
|
|
10731
|
+
event.preventDefault();
|
|
10732
|
+
choose(active.value);
|
|
10733
|
+
break;
|
|
10734
|
+
case "Escape":
|
|
10735
|
+
emit("escape");
|
|
10736
|
+
break;
|
|
10737
|
+
case "Tab":
|
|
10738
|
+
event.preventDefault();
|
|
10739
|
+
break;
|
|
10740
|
+
}
|
|
10741
|
+
}
|
|
10742
|
+
watch(
|
|
10743
|
+
results,
|
|
10744
|
+
() => {
|
|
10745
|
+
active.value = firstEnabled2();
|
|
10746
|
+
},
|
|
10747
|
+
{ immediate: true }
|
|
10748
|
+
);
|
|
10749
|
+
watch(active, async (index) => {
|
|
10750
|
+
await nextTick();
|
|
10751
|
+
document.getElementById(optionId(index))?.scrollIntoView?.({ block: "nearest" });
|
|
10752
|
+
});
|
|
10753
|
+
onMounted(async () => {
|
|
10754
|
+
if (!props.autofocus) return;
|
|
10755
|
+
await nextTick();
|
|
10756
|
+
inputRef.value?.focus({ preventScroll: true });
|
|
10757
|
+
});
|
|
10758
|
+
__expose({
|
|
10759
|
+
/** Puts the focus in the field. / Ставит фокус в поле. */
|
|
10760
|
+
focus: () => inputRef.value?.focus(),
|
|
10761
|
+
/** Clears the query. / Очищает запрос. */
|
|
10762
|
+
reset: () => {
|
|
10763
|
+
query.value = "";
|
|
10764
|
+
}
|
|
10765
|
+
});
|
|
10766
|
+
return (_ctx, _cache) => {
|
|
10767
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
10768
|
+
withDirectives(createElementVNode("input", {
|
|
10769
|
+
ref_key: "inputRef",
|
|
10770
|
+
ref: inputRef,
|
|
10771
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => query.value = $event),
|
|
10772
|
+
class: "tao-command-list__input",
|
|
10773
|
+
type: "text",
|
|
10774
|
+
role: "combobox",
|
|
10775
|
+
autocomplete: "off",
|
|
10776
|
+
spellcheck: "false",
|
|
10777
|
+
"aria-autocomplete": "list",
|
|
10778
|
+
"aria-expanded": "true",
|
|
10779
|
+
"aria-controls": listId,
|
|
10780
|
+
"aria-activedescendant": active.value >= 0 ? optionId(active.value) : void 0,
|
|
10781
|
+
"aria-label": __props.label ?? unref(l10n).label,
|
|
10782
|
+
placeholder: __props.placeholder ?? unref(l10n).placeholder,
|
|
10783
|
+
onKeydown: onKeydown2
|
|
10784
|
+
}, null, 40, _hoisted_2$k), [
|
|
10785
|
+
[vModelText, query.value]
|
|
10786
|
+
]),
|
|
10787
|
+
createElementVNode("ul", {
|
|
10788
|
+
id: listId,
|
|
10789
|
+
class: normalizeClass(["tao-command-list__list", { "has-icons": hasIcons.value }]),
|
|
10790
|
+
role: "listbox",
|
|
10791
|
+
"aria-label": __props.label ?? unref(l10n).label
|
|
10792
|
+
}, [
|
|
10793
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(rows.value, (row, i) => {
|
|
10794
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
10795
|
+
key: row.kind === "group" ? `g-${i}` : row.match.item.id
|
|
10796
|
+
}, [
|
|
10797
|
+
row.kind === "group" ? (openBlock(), createElementBlock("li", _hoisted_4$h, toDisplayString(row.title), 1)) : (openBlock(), createElementBlock("li", {
|
|
10798
|
+
key: 1,
|
|
10799
|
+
id: optionId(row.index),
|
|
10800
|
+
class: normalizeClass(["tao-command-list__option", { "is-active": row.index === active.value, "is-disabled": row.match.item.disabled, "has-icon": row.match.item.icon }]),
|
|
10801
|
+
role: "option",
|
|
10802
|
+
"aria-selected": row.index === active.value,
|
|
10803
|
+
"aria-disabled": row.match.item.disabled || void 0,
|
|
10804
|
+
onPointermove: ($event) => enabled(row.index) && (active.value = row.index),
|
|
10805
|
+
onClick: ($event) => choose(row.index)
|
|
10806
|
+
}, [
|
|
10807
|
+
renderSlot(_ctx.$slots, "item", {
|
|
10808
|
+
item: row.match.item,
|
|
10809
|
+
active: row.index === active.value,
|
|
10810
|
+
ranges: row.match.ranges
|
|
10811
|
+
}, () => [
|
|
10812
|
+
row.match.item.icon ? (openBlock(), createBlock(TaoIcon, {
|
|
10813
|
+
key: 0,
|
|
10814
|
+
class: "tao-command-list__icon",
|
|
10815
|
+
name: row.match.item.icon,
|
|
10816
|
+
"aria-hidden": "true"
|
|
10817
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
10818
|
+
createElementVNode("span", _hoisted_6$a, [
|
|
10819
|
+
createElementVNode("span", _hoisted_7$7, [
|
|
10820
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(splitByRanges)(row.match.item.label, row.match.ranges), (part, k) => {
|
|
10821
|
+
return openBlock(), createElementBlock(Fragment, { key: k }, [
|
|
10822
|
+
part.lit ? (openBlock(), createElementBlock("mark", _hoisted_8$6, toDisplayString(part.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
10823
|
+
createTextVNode(toDisplayString(part.text), 1)
|
|
10824
|
+
], 64))
|
|
10825
|
+
], 64);
|
|
10826
|
+
}), 128))
|
|
10827
|
+
]),
|
|
10828
|
+
row.match.item.description ? (openBlock(), createElementBlock("span", _hoisted_9$5, toDisplayString(row.match.item.description), 1)) : createCommentVNode("", true)
|
|
10829
|
+
]),
|
|
10830
|
+
query.value.trim() && row.match.item.group ? (openBlock(), createElementBlock("span", _hoisted_10$3, toDisplayString(row.match.item.group), 1)) : createCommentVNode("", true),
|
|
10831
|
+
row.match.item.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_11$3, toDisplayString(row.match.item.shortcut), 1)) : createCommentVNode("", true)
|
|
10832
|
+
], true)
|
|
10833
|
+
], 42, _hoisted_5$d))
|
|
10834
|
+
], 64);
|
|
10835
|
+
}), 128)),
|
|
10836
|
+
!results.value.length ? (openBlock(), createElementBlock("li", _hoisted_12$2, [
|
|
10837
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
10838
|
+
createTextVNode(toDisplayString(__props.emptyText ?? unref(l10n).emptyText), 1)
|
|
10839
|
+
], true)
|
|
10840
|
+
])) : createCommentVNode("", true)
|
|
10841
|
+
], 10, _hoisted_3$h)
|
|
10842
|
+
]);
|
|
10843
|
+
};
|
|
10844
|
+
}
|
|
10845
|
+
});
|
|
10846
|
+
const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1010454e"]]);
|
|
10847
|
+
const _hoisted_1$m = ["aria-modal", "aria-label"];
|
|
10848
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
10849
|
+
...{ name: "TaoCommandPalette", inheritAttrs: false },
|
|
10850
|
+
__name: "TaoCommandPalette",
|
|
10851
|
+
props: {
|
|
10852
|
+
modelValue: { type: Boolean },
|
|
10853
|
+
items: {},
|
|
10854
|
+
placeholder: {},
|
|
10855
|
+
emptyText: {},
|
|
10856
|
+
label: {},
|
|
10857
|
+
limit: { default: 50 },
|
|
10858
|
+
surface: { default: "flat" },
|
|
10859
|
+
modal: { type: Boolean, default: true },
|
|
10860
|
+
fullscreen: { type: [Boolean, String], default: "narrow" }
|
|
10861
|
+
},
|
|
10862
|
+
emits: ["update:modelValue", "select", "close"],
|
|
10863
|
+
setup(__props, { emit: __emit }) {
|
|
10864
|
+
const props = __props;
|
|
10865
|
+
const l10n = useLocaleText(props, "commandPalette");
|
|
10866
|
+
const emit = __emit;
|
|
10867
|
+
function close() {
|
|
10868
|
+
emit("update:modelValue", false);
|
|
10869
|
+
emit("close");
|
|
10870
|
+
}
|
|
10871
|
+
function onSelect(item) {
|
|
10872
|
+
emit("select", item);
|
|
10873
|
+
close();
|
|
10874
|
+
}
|
|
10875
|
+
let pointerDownOnOverlay = false;
|
|
10876
|
+
const onOverlayPointerDown = (event) => pointerDownOnOverlay = event.target === event.currentTarget;
|
|
10877
|
+
function onOverlayPointerUp(event) {
|
|
10878
|
+
if (pointerDownOnOverlay && event.target === event.currentTarget) close();
|
|
10879
|
+
pointerDownOnOverlay = false;
|
|
10880
|
+
}
|
|
10881
|
+
const panelRef = ref(null);
|
|
10882
|
+
useLayer(() => props.modelValue, {
|
|
10883
|
+
get lockScroll() {
|
|
10884
|
+
return props.modal;
|
|
10885
|
+
},
|
|
10886
|
+
restoreFocus: true,
|
|
10887
|
+
onEscape: close
|
|
10888
|
+
});
|
|
10889
|
+
useDismiss(
|
|
10890
|
+
() => props.modelValue && !props.modal,
|
|
10891
|
+
() => [panelRef.value],
|
|
10892
|
+
close
|
|
10893
|
+
);
|
|
10894
|
+
return (_ctx, _cache) => {
|
|
10895
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
10896
|
+
createVNode(Transition, { name: "tao-command-palette-fade" }, {
|
|
10897
|
+
default: withCtx(() => [
|
|
10898
|
+
__props.modelValue ? (openBlock(), createElementBlock("div", {
|
|
10899
|
+
key: 0,
|
|
10900
|
+
class: normalizeClass(["tao-command-palette-overlay", {
|
|
10901
|
+
"tao-command-palette-overlay--float": !__props.modal,
|
|
10902
|
+
"tao-command-palette-overlay--fullscreen": __props.fullscreen === true,
|
|
10903
|
+
"tao-command-palette-overlay--fullscreen-narrow": __props.fullscreen === "narrow"
|
|
10904
|
+
}]),
|
|
10905
|
+
onPointerdown: onOverlayPointerDown,
|
|
10906
|
+
onPointerup: onOverlayPointerUp
|
|
10907
|
+
}, [
|
|
10908
|
+
createElementVNode("div", mergeProps({
|
|
10909
|
+
ref_key: "panelRef",
|
|
10910
|
+
ref: panelRef
|
|
10911
|
+
}, _ctx.$attrs, {
|
|
10912
|
+
class: ["tao-command-palette", unref(surfaceClass)(__props.surface)],
|
|
10913
|
+
role: "dialog",
|
|
10914
|
+
"aria-modal": __props.modal,
|
|
10915
|
+
"aria-label": __props.label ?? unref(l10n).label
|
|
10916
|
+
}), [
|
|
10917
|
+
createVNode(TaoCommandList, {
|
|
10918
|
+
items: __props.items,
|
|
10919
|
+
placeholder: __props.placeholder,
|
|
10920
|
+
"empty-text": __props.emptyText,
|
|
10921
|
+
label: __props.label,
|
|
10922
|
+
limit: __props.limit,
|
|
10923
|
+
autofocus: "",
|
|
10924
|
+
onSelect
|
|
10925
|
+
}, createSlots({ _: 2 }, [
|
|
10926
|
+
_ctx.$slots.item ? {
|
|
10927
|
+
name: "item",
|
|
10928
|
+
fn: withCtx((slotProps) => [
|
|
10929
|
+
renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(slotProps)), void 0, true)
|
|
10930
|
+
]),
|
|
10931
|
+
key: "0"
|
|
10932
|
+
} : void 0,
|
|
10933
|
+
_ctx.$slots.empty ? {
|
|
10934
|
+
name: "empty",
|
|
10935
|
+
fn: withCtx(() => [
|
|
10936
|
+
renderSlot(_ctx.$slots, "empty", {}, void 0, true)
|
|
10937
|
+
]),
|
|
10938
|
+
key: "1"
|
|
10939
|
+
} : void 0
|
|
10940
|
+
]), 1032, ["items", "placeholder", "empty-text", "label", "limit"])
|
|
10941
|
+
], 16, _hoisted_1$m)
|
|
10942
|
+
], 34)) : createCommentVNode("", true)
|
|
10943
|
+
]),
|
|
10944
|
+
_: 3
|
|
10945
|
+
})
|
|
10946
|
+
]);
|
|
10947
|
+
};
|
|
10948
|
+
}
|
|
10949
|
+
});
|
|
10950
|
+
const TaoCommandPalette = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-f1a6db01"]]);
|
|
10535
10951
|
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
10536
10952
|
function formatTaoDateIso(parts) {
|
|
10537
10953
|
return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
|
|
@@ -11708,7 +12124,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11708
12124
|
ownCollapsed.value = value;
|
|
11709
12125
|
emit("update:collapsed", value);
|
|
11710
12126
|
}
|
|
11711
|
-
const
|
|
12127
|
+
const fold2 = ref(null);
|
|
11712
12128
|
const sealed = ref(isCollapsed.value);
|
|
11713
12129
|
let pending;
|
|
11714
12130
|
function transitionMs(el) {
|
|
@@ -11722,7 +12138,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11722
12138
|
sealed.value = false;
|
|
11723
12139
|
return;
|
|
11724
12140
|
}
|
|
11725
|
-
const el =
|
|
12141
|
+
const el = fold2.value;
|
|
11726
12142
|
const ms = el && typeof getComputedStyle !== "undefined" ? transitionMs(el) : 0;
|
|
11727
12143
|
if (!el || !(ms > 0)) {
|
|
11728
12144
|
sealed.value = true;
|
|
@@ -11772,7 +12188,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11772
12188
|
has("default") && __props.collapsible ? (openBlock(), createElementBlock("div", {
|
|
11773
12189
|
key: 2,
|
|
11774
12190
|
ref_key: "fold",
|
|
11775
|
-
ref:
|
|
12191
|
+
ref: fold2,
|
|
11776
12192
|
class: normalizeClass(["tao-alert__fold", { "tao-alert__fold--closed": isCollapsed.value }])
|
|
11777
12193
|
}, [
|
|
11778
12194
|
createElementVNode("div", {
|
|
@@ -12000,7 +12416,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12000
12416
|
};
|
|
12001
12417
|
}
|
|
12002
12418
|
});
|
|
12003
|
-
const TaoTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
12419
|
+
const TaoTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8b5bb7ae"]]);
|
|
12004
12420
|
function buildPaginationItems(page, pageCount, siblingCount = 1) {
|
|
12005
12421
|
if (pageCount <= 0) {
|
|
12006
12422
|
return [];
|
|
@@ -12834,7 +13250,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12834
13250
|
};
|
|
12835
13251
|
}
|
|
12836
13252
|
});
|
|
12837
|
-
const TaoDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
13253
|
+
const TaoDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-f0715ba7"]]);
|
|
12838
13254
|
const _hoisted_1$7 = ["title"];
|
|
12839
13255
|
const _hoisted_2$6 = { class: "tao-avatar__face" };
|
|
12840
13256
|
const _hoisted_3$5 = ["src", "alt"];
|
|
@@ -12992,7 +13408,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12992
13408
|
class: "tao-breadcrumb__item"
|
|
12993
13409
|
}, [
|
|
12994
13410
|
index > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$4, "/")) : createCommentVNode("", true),
|
|
12995
|
-
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$
|
|
13411
|
+
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$x, {
|
|
12996
13412
|
key: 2,
|
|
12997
13413
|
class: "tao-breadcrumb__link",
|
|
12998
13414
|
to: item.to
|
|
@@ -13197,6 +13613,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13197
13613
|
modelValue: { default: 0 },
|
|
13198
13614
|
peek: { default: 0 },
|
|
13199
13615
|
perView: { default: 1 },
|
|
13616
|
+
centered: { type: Boolean, default: false },
|
|
13200
13617
|
controls: { type: Boolean, default: true },
|
|
13201
13618
|
autoplay: { default: 0 },
|
|
13202
13619
|
loop: { type: Boolean, default: false },
|
|
@@ -13218,6 +13635,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13218
13635
|
const track = ref(null);
|
|
13219
13636
|
const index = ref(props.modelValue);
|
|
13220
13637
|
const count = ref(0);
|
|
13638
|
+
const copies = ref(1);
|
|
13221
13639
|
const dragging = ref(false);
|
|
13222
13640
|
const gliding = ref(false);
|
|
13223
13641
|
const hoverPaused = ref(false);
|
|
@@ -13236,7 +13654,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13236
13654
|
let settleTimer = 0;
|
|
13237
13655
|
let samples = [];
|
|
13238
13656
|
let focusFrame = 0;
|
|
13239
|
-
const
|
|
13657
|
+
const view = computed(() => Math.max(1, Math.round(props.perView)));
|
|
13658
|
+
const step = computed(() => props.centered ? 1 : view.value);
|
|
13659
|
+
const cyclic = computed(() => copies.value > 1);
|
|
13660
|
+
const base = computed(() => (copies.value - 1) / 2 * count.value);
|
|
13240
13661
|
const lastIndex = computed(() => Math.max(count.value - step.value, 0));
|
|
13241
13662
|
const atStart = computed(() => !props.loop && index.value <= 0);
|
|
13242
13663
|
const atEnd = computed(() => !props.loop && index.value >= lastIndex.value);
|
|
@@ -13255,7 +13676,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13255
13676
|
const progressRatio = computed(() => snapCount.value > 0 ? (index.value + 1) / snapCount.value : 0);
|
|
13256
13677
|
const trackStyle = computed(() => ({
|
|
13257
13678
|
"--tao-carousel-peek": `${Math.max(props.peek, 0)}px`,
|
|
13258
|
-
"--tao-carousel-per-view": String(
|
|
13679
|
+
"--tao-carousel-per-view": String(view.value)
|
|
13259
13680
|
}));
|
|
13260
13681
|
function prefersReducedMotion() {
|
|
13261
13682
|
return typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -13267,8 +13688,73 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13267
13688
|
}
|
|
13268
13689
|
const styles = getComputedStyle(el);
|
|
13269
13690
|
const gap = Number.parseFloat(styles.columnGap || styles.gap) || 0;
|
|
13270
|
-
const
|
|
13271
|
-
|
|
13691
|
+
const first = el.children[0];
|
|
13692
|
+
let width = first.getBoundingClientRect().width;
|
|
13693
|
+
if (props.centered) {
|
|
13694
|
+
const scale = Number.parseFloat(getComputedStyle(first).scale);
|
|
13695
|
+
if (scale > 0) {
|
|
13696
|
+
width /= scale;
|
|
13697
|
+
}
|
|
13698
|
+
}
|
|
13699
|
+
return { width, gap, total: Math.round(el.children.length / copies.value) };
|
|
13700
|
+
}
|
|
13701
|
+
function wantedCopies(real) {
|
|
13702
|
+
if (!props.centered || !props.loop || real < 2) {
|
|
13703
|
+
return 1;
|
|
13704
|
+
}
|
|
13705
|
+
return 2 * Math.ceil((view.value + 1) / real) + 1;
|
|
13706
|
+
}
|
|
13707
|
+
function syncClones() {
|
|
13708
|
+
const el = track.value;
|
|
13709
|
+
if (!el) {
|
|
13710
|
+
return;
|
|
13711
|
+
}
|
|
13712
|
+
const real = count.value;
|
|
13713
|
+
const middle = (copies.value - 1) / 2;
|
|
13714
|
+
for (let i = 0; i < el.children.length; i++) {
|
|
13715
|
+
const slide = el.children[i];
|
|
13716
|
+
const copy = real > 0 ? Math.floor(i / real) : 0;
|
|
13717
|
+
if (copies.value > 1 && copy !== middle) {
|
|
13718
|
+
slide.setAttribute("aria-hidden", "true");
|
|
13719
|
+
slide.setAttribute("inert", "");
|
|
13720
|
+
slide.setAttribute("data-tao-carousel-copy", "");
|
|
13721
|
+
} else if (slide.hasAttribute("data-tao-carousel-copy")) {
|
|
13722
|
+
slide.removeAttribute("aria-hidden");
|
|
13723
|
+
slide.removeAttribute("inert");
|
|
13724
|
+
slide.removeAttribute("data-tao-carousel-copy");
|
|
13725
|
+
}
|
|
13726
|
+
}
|
|
13727
|
+
}
|
|
13728
|
+
function recenterCycle() {
|
|
13729
|
+
const el = track.value;
|
|
13730
|
+
if (!cyclic.value || !el || dragging.value || gliding.value) {
|
|
13731
|
+
return;
|
|
13732
|
+
}
|
|
13733
|
+
const { width, gap, total } = metrics();
|
|
13734
|
+
if (width <= 0 || total <= 0) {
|
|
13735
|
+
return;
|
|
13736
|
+
}
|
|
13737
|
+
const slot = Math.round(el.scrollLeft / (width + gap));
|
|
13738
|
+
const home = base.value + (slot % total + total) % total;
|
|
13739
|
+
if (home !== slot) {
|
|
13740
|
+
el.scrollLeft += (home - slot) * (width + gap);
|
|
13741
|
+
updateFocus();
|
|
13742
|
+
}
|
|
13743
|
+
}
|
|
13744
|
+
function updateFocus() {
|
|
13745
|
+
const el = track.value;
|
|
13746
|
+
if (!props.centered || !el) {
|
|
13747
|
+
return;
|
|
13748
|
+
}
|
|
13749
|
+
const { width, gap } = metrics();
|
|
13750
|
+
if (width <= 0) {
|
|
13751
|
+
return;
|
|
13752
|
+
}
|
|
13753
|
+
const at = el.scrollLeft / (width + gap);
|
|
13754
|
+
for (let i = 0; i < el.children.length; i++) {
|
|
13755
|
+
const distance = Math.min(Math.abs(i - at), 2);
|
|
13756
|
+
el.children[i].style.setProperty("--tao-carousel-d", distance.toFixed(3));
|
|
13757
|
+
}
|
|
13272
13758
|
}
|
|
13273
13759
|
function nearestIndex(scrollLeft) {
|
|
13274
13760
|
const { width, gap, total } = metrics();
|
|
@@ -13276,8 +13762,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13276
13762
|
return 0;
|
|
13277
13763
|
}
|
|
13278
13764
|
const left = scrollLeft ?? track.value?.scrollLeft ?? 0;
|
|
13765
|
+
const slot = Math.round(left / (width + gap));
|
|
13766
|
+
if (cyclic.value) {
|
|
13767
|
+
return (slot % total + total) % total;
|
|
13768
|
+
}
|
|
13279
13769
|
const last = Math.max(total - step.value, 0);
|
|
13280
|
-
return Math.min(Math.max(
|
|
13770
|
+
return Math.min(Math.max(slot, 0), last);
|
|
13281
13771
|
}
|
|
13282
13772
|
function setIndex(next) {
|
|
13283
13773
|
if (next === index.value) {
|
|
@@ -13288,7 +13778,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13288
13778
|
emit("change", next);
|
|
13289
13779
|
}
|
|
13290
13780
|
function refreshCount() {
|
|
13291
|
-
count.value = track.value?.children.length ?? 0;
|
|
13781
|
+
count.value = Math.round((track.value?.children.length ?? 0) / copies.value);
|
|
13782
|
+
const wanted = wantedCopies(count.value);
|
|
13783
|
+
if (wanted !== copies.value) {
|
|
13784
|
+
copies.value = wanted;
|
|
13785
|
+
nextTick(() => {
|
|
13786
|
+
goTo(index.value, true);
|
|
13787
|
+
updateFocus();
|
|
13788
|
+
});
|
|
13789
|
+
}
|
|
13790
|
+
syncClones();
|
|
13292
13791
|
}
|
|
13293
13792
|
function goPrev() {
|
|
13294
13793
|
goTo(index.value - step.value);
|
|
@@ -13303,6 +13802,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13303
13802
|
if (!el || width <= 0 || total <= 0) {
|
|
13304
13803
|
return;
|
|
13305
13804
|
}
|
|
13805
|
+
if (cyclic.value && total > 1) {
|
|
13806
|
+
const slot = width + gap;
|
|
13807
|
+
const at = el.scrollLeft / slot;
|
|
13808
|
+
const home = (next % total + total) % total;
|
|
13809
|
+
let target = base.value + home;
|
|
13810
|
+
for (let copy = home; !instant && copy < total * copies.value; copy += total) {
|
|
13811
|
+
if (Math.abs(copy - at) < Math.abs(target - at)) {
|
|
13812
|
+
target = copy;
|
|
13813
|
+
}
|
|
13814
|
+
}
|
|
13815
|
+
el.scrollTo({ left: target * slot, behavior: prefersReducedMotion() || dragging.value || instant ? "auto" : "smooth" });
|
|
13816
|
+
setIndex(home);
|
|
13817
|
+
return;
|
|
13818
|
+
}
|
|
13306
13819
|
const last = Math.max(total - step.value, 0);
|
|
13307
13820
|
let page = next;
|
|
13308
13821
|
let wrapping = false;
|
|
@@ -13356,6 +13869,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13356
13869
|
});
|
|
13357
13870
|
}
|
|
13358
13871
|
function onScroll() {
|
|
13872
|
+
updateFocus();
|
|
13359
13873
|
if (dragging.value || gliding.value) {
|
|
13360
13874
|
return;
|
|
13361
13875
|
}
|
|
@@ -13371,6 +13885,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13371
13885
|
}
|
|
13372
13886
|
function settle() {
|
|
13373
13887
|
window.clearTimeout(settleTimer);
|
|
13888
|
+
recenterCycle();
|
|
13374
13889
|
const el = track.value;
|
|
13375
13890
|
if (!el || dragging.value || gliding.value || getComputedStyle(el).scrollSnapType !== "none") {
|
|
13376
13891
|
return;
|
|
@@ -13423,6 +13938,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13423
13938
|
function finishGlide() {
|
|
13424
13939
|
glideFrame = 0;
|
|
13425
13940
|
gliding.value = false;
|
|
13941
|
+
recenterCycle();
|
|
13426
13942
|
setIndex(nearestIndex());
|
|
13427
13943
|
}
|
|
13428
13944
|
function glideTo(target, velocity) {
|
|
@@ -13565,6 +14081,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13565
14081
|
fillEpoch.value += 1;
|
|
13566
14082
|
}
|
|
13567
14083
|
);
|
|
14084
|
+
let resizeObserver = null;
|
|
14085
|
+
function onTrackResize() {
|
|
14086
|
+
if (!props.centered || dragging.value || gliding.value) {
|
|
14087
|
+
return;
|
|
14088
|
+
}
|
|
14089
|
+
goTo(index.value, true);
|
|
14090
|
+
updateFocus();
|
|
14091
|
+
}
|
|
13568
14092
|
onMounted(() => {
|
|
13569
14093
|
refreshCount();
|
|
13570
14094
|
mounted.value = true;
|
|
@@ -13572,13 +14096,32 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13572
14096
|
pageHidden.value = document.hidden;
|
|
13573
14097
|
nextTick(() => {
|
|
13574
14098
|
goTo(props.modelValue);
|
|
14099
|
+
updateFocus();
|
|
13575
14100
|
});
|
|
14101
|
+
if (typeof ResizeObserver !== "undefined" && track.value) {
|
|
14102
|
+
resizeObserver = new ResizeObserver(onTrackResize);
|
|
14103
|
+
resizeObserver.observe(track.value);
|
|
14104
|
+
}
|
|
13576
14105
|
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
13577
14106
|
window.addEventListener("blur", onWindowBlur);
|
|
13578
14107
|
window.addEventListener("pagehide", onWindowBlur);
|
|
13579
14108
|
});
|
|
13580
|
-
onUpdated(
|
|
14109
|
+
onUpdated(() => {
|
|
14110
|
+
refreshCount();
|
|
14111
|
+
updateFocus();
|
|
14112
|
+
});
|
|
14113
|
+
watch(
|
|
14114
|
+
() => [props.centered, props.loop, props.perView],
|
|
14115
|
+
() => {
|
|
14116
|
+
refreshCount();
|
|
14117
|
+
nextTick(() => {
|
|
14118
|
+
goTo(index.value, true);
|
|
14119
|
+
updateFocus();
|
|
14120
|
+
});
|
|
14121
|
+
}
|
|
14122
|
+
);
|
|
13581
14123
|
onBeforeUnmount(() => {
|
|
14124
|
+
resizeObserver?.disconnect();
|
|
13582
14125
|
endDrag();
|
|
13583
14126
|
cancelGlide();
|
|
13584
14127
|
window.clearTimeout(settleTimer);
|
|
@@ -13590,7 +14133,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13590
14133
|
});
|
|
13591
14134
|
return (_ctx, _cache) => {
|
|
13592
14135
|
return openBlock(), createElementBlock("div", {
|
|
13593
|
-
class: "tao-carousel",
|
|
14136
|
+
class: normalizeClass(["tao-carousel", { "tao-carousel--centered": __props.centered }]),
|
|
13594
14137
|
style: normalizeStyle(trackStyle.value),
|
|
13595
14138
|
onMouseenter: onMouseEnter,
|
|
13596
14139
|
onMouseleave: onMouseLeave,
|
|
@@ -13605,7 +14148,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13605
14148
|
showControls.value ? (openBlock(), createElementBlock("button", {
|
|
13606
14149
|
key: 0,
|
|
13607
14150
|
type: "button",
|
|
13608
|
-
class: "tao-carousel__nav",
|
|
14151
|
+
class: "tao-carousel__nav tao-carousel__nav--prev",
|
|
13609
14152
|
"aria-label": unref(l10n).prevLabel,
|
|
13610
14153
|
disabled: atStart.value,
|
|
13611
14154
|
onClick: goPrev
|
|
@@ -13639,7 +14182,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13639
14182
|
onLostpointercapture: onLostPointerCapture,
|
|
13640
14183
|
onClickCapture
|
|
13641
14184
|
}, [
|
|
13642
|
-
|
|
14185
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(copies.value, (copy) => {
|
|
14186
|
+
return renderSlot(_ctx.$slots, "default", {}, void 0, true, copy);
|
|
14187
|
+
}), 128))
|
|
13643
14188
|
], 42, _hoisted_4$3),
|
|
13644
14189
|
renderSlot(_ctx.$slots, "next", {
|
|
13645
14190
|
disabled: atEnd.value,
|
|
@@ -13648,7 +14193,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13648
14193
|
showControls.value ? (openBlock(), createElementBlock("button", {
|
|
13649
14194
|
key: 0,
|
|
13650
14195
|
type: "button",
|
|
13651
|
-
class: "tao-carousel__nav",
|
|
14196
|
+
class: "tao-carousel__nav tao-carousel__nav--next",
|
|
13652
14197
|
"aria-label": unref(l10n).nextLabel,
|
|
13653
14198
|
disabled: atEnd.value,
|
|
13654
14199
|
onClick: goNext
|
|
@@ -13738,11 +14283,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13738
14283
|
}, null, 38))
|
|
13739
14284
|
])) : createCommentVNode("", true)
|
|
13740
14285
|
])) : createCommentVNode("", true)
|
|
13741
|
-
],
|
|
14286
|
+
], 38);
|
|
13742
14287
|
};
|
|
13743
14288
|
}
|
|
13744
14289
|
});
|
|
13745
|
-
const TaoCarousel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
14290
|
+
const TaoCarousel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c1dbc679"]]);
|
|
13746
14291
|
const _hoisted_1$3 = ["aria-label"];
|
|
13747
14292
|
const _hoisted_2$2 = ["aria-label"];
|
|
13748
14293
|
const _hoisted_3$2 = {
|
|
@@ -14645,10 +15190,10 @@ const components = [
|
|
|
14645
15190
|
TaoSpoiler,
|
|
14646
15191
|
TaoSpoilerGroup,
|
|
14647
15192
|
TaoCopy,
|
|
14648
|
-
_sfc_main$
|
|
14649
|
-
_sfc_main$
|
|
15193
|
+
_sfc_main$15,
|
|
15194
|
+
_sfc_main$14,
|
|
14650
15195
|
TaoContainer,
|
|
14651
|
-
_sfc_main$
|
|
15196
|
+
_sfc_main$12,
|
|
14652
15197
|
TaoSpace,
|
|
14653
15198
|
TaoGrid,
|
|
14654
15199
|
TaoGridItem,
|
|
@@ -14664,11 +15209,11 @@ const components = [
|
|
|
14664
15209
|
TaoTextarea,
|
|
14665
15210
|
TaoScrollTop,
|
|
14666
15211
|
TaoProgress,
|
|
14667
|
-
_sfc_main$
|
|
14668
|
-
_sfc_main$
|
|
15212
|
+
_sfc_main$1c,
|
|
15213
|
+
_sfc_main$Q,
|
|
14669
15214
|
TaoFileDrop,
|
|
14670
15215
|
TaoDropdownMenu,
|
|
14671
|
-
_sfc_main$
|
|
15216
|
+
_sfc_main$O,
|
|
14672
15217
|
TaoMenubar,
|
|
14673
15218
|
TaoToolbar,
|
|
14674
15219
|
TaoToolbarGroup,
|
|
@@ -14684,14 +15229,16 @@ const components = [
|
|
|
14684
15229
|
TaoMarquee,
|
|
14685
15230
|
TaoContextMenu,
|
|
14686
15231
|
TaoPinCode,
|
|
14687
|
-
_sfc_main$
|
|
14688
|
-
_sfc_main$
|
|
15232
|
+
_sfc_main$x,
|
|
15233
|
+
_sfc_main$w,
|
|
14689
15234
|
TaoFormField,
|
|
14690
15235
|
TaoSelect,
|
|
14691
15236
|
TaoColorInput,
|
|
14692
15237
|
TaoColorPicker,
|
|
14693
15238
|
TaoCombobox,
|
|
14694
15239
|
TaoPresetInput,
|
|
15240
|
+
TaoCommandList,
|
|
15241
|
+
TaoCommandPalette,
|
|
14695
15242
|
_sfc_main$l,
|
|
14696
15243
|
TaoDate,
|
|
14697
15244
|
TaoDateRange,
|
|
@@ -14746,6 +15293,8 @@ export {
|
|
|
14746
15293
|
TaoColorInput,
|
|
14747
15294
|
TaoColorPicker,
|
|
14748
15295
|
TaoCombobox,
|
|
15296
|
+
TaoCommandList,
|
|
15297
|
+
TaoCommandPalette,
|
|
14749
15298
|
TaoConfirmHost,
|
|
14750
15299
|
TaoContainer,
|
|
14751
15300
|
TaoContextMenu,
|
|
@@ -14760,7 +15309,7 @@ export {
|
|
|
14760
15309
|
TaoEmpty,
|
|
14761
15310
|
TaoFieldset,
|
|
14762
15311
|
TaoFileDrop,
|
|
14763
|
-
_sfc_main$
|
|
15312
|
+
_sfc_main$12 as TaoFlex,
|
|
14764
15313
|
TaoFormField,
|
|
14765
15314
|
TaoGrid,
|
|
14766
15315
|
TaoGridItem,
|
|
@@ -14770,12 +15319,12 @@ export {
|
|
|
14770
15319
|
TaoInput,
|
|
14771
15320
|
TaoInputGroup,
|
|
14772
15321
|
TaoInputNumber,
|
|
14773
|
-
_sfc_main$
|
|
15322
|
+
_sfc_main$x as TaoLink,
|
|
14774
15323
|
TaoList,
|
|
14775
15324
|
TaoListItem,
|
|
14776
15325
|
TaoLoader,
|
|
14777
15326
|
TaoMarquee,
|
|
14778
|
-
_sfc_main$
|
|
15327
|
+
_sfc_main$O as TaoMenu,
|
|
14779
15328
|
TaoMenubar,
|
|
14780
15329
|
TaoMeter,
|
|
14781
15330
|
TaoModal,
|
|
@@ -14788,34 +15337,34 @@ export {
|
|
|
14788
15337
|
TaoQuantity,
|
|
14789
15338
|
TaoRadio,
|
|
14790
15339
|
TaoRadioGroup,
|
|
14791
|
-
_sfc_main$
|
|
15340
|
+
_sfc_main$Q as TaoRangeSlider,
|
|
14792
15341
|
TaoScrollTop,
|
|
14793
15342
|
TaoScrubber,
|
|
14794
15343
|
TaoSegmented,
|
|
14795
15344
|
TaoSegmentedOption,
|
|
14796
15345
|
TaoSelect,
|
|
14797
15346
|
TaoSkeleton,
|
|
14798
|
-
_sfc_main$
|
|
15347
|
+
_sfc_main$1c as TaoSlider,
|
|
14799
15348
|
TaoSpace,
|
|
14800
15349
|
TaoSparkline,
|
|
14801
15350
|
TaoSplit,
|
|
14802
15351
|
TaoSpoiler,
|
|
14803
15352
|
TaoSpoilerGroup,
|
|
14804
15353
|
TaoStages,
|
|
14805
|
-
_sfc_main$
|
|
15354
|
+
_sfc_main$w as TaoStretchedLink,
|
|
14806
15355
|
TaoSwitch,
|
|
14807
15356
|
TaoTable,
|
|
14808
15357
|
TaoTabs,
|
|
14809
15358
|
TaoTag,
|
|
14810
15359
|
TaoTextarea,
|
|
14811
|
-
_sfc_main$
|
|
15360
|
+
_sfc_main$15 as TaoThemeToggle,
|
|
14812
15361
|
TaoTimeline,
|
|
14813
15362
|
TaoToastViewport,
|
|
14814
15363
|
TaoToolbar,
|
|
14815
15364
|
TaoToolbarGroup,
|
|
14816
15365
|
TaoToolbarSeparator,
|
|
14817
15366
|
TaoTooltip,
|
|
14818
|
-
_sfc_main$
|
|
15367
|
+
_sfc_main$14 as TaoTour,
|
|
14819
15368
|
TaoTree,
|
|
14820
15369
|
TaoUI,
|
|
14821
15370
|
apcaContrast,
|
|
@@ -14836,8 +15385,10 @@ export {
|
|
|
14836
15385
|
linearToSrgb,
|
|
14837
15386
|
localeEn,
|
|
14838
15387
|
localeRu,
|
|
15388
|
+
matchCommands,
|
|
14839
15389
|
matchTaoLanguage,
|
|
14840
15390
|
menuReturnsFocus,
|
|
15391
|
+
mergeRanges,
|
|
14841
15392
|
normalizeHex,
|
|
14842
15393
|
parseAcceptLanguage,
|
|
14843
15394
|
parseColor,
|
|
@@ -14852,6 +15403,7 @@ export {
|
|
|
14852
15403
|
rgbToHsl,
|
|
14853
15404
|
rgbaToHsva,
|
|
14854
15405
|
setTaoLocale,
|
|
15406
|
+
splitByRanges,
|
|
14855
15407
|
srgbToLinear,
|
|
14856
15408
|
systemTaoMode,
|
|
14857
15409
|
taoChartTheme,
|