@1337exp/taoui 5.38.2 → 5.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/README.md +3 -2
- package/README.ru.md +3 -2
- package/dist/index.d.ts +547 -432
- package/dist/index.js +221 -153
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +2 -1
- package/skills/taoui/references/components.md +1389 -1374
- package/skills/taoui/references/patterns.md +3 -2
- package/src/styles/contexts/tone.css +5 -3
- package/src/styles/tokens/primitives.css +4 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Comment, Text, Fragment, shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition,
|
|
1
|
+
import { Comment, Text, Fragment, shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, withCtx, createTextVNode, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition, renderList, withDirectives, withModifiers, withKeys, vModelText, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, onBeforeMount, resolveComponent, toRef, vShow, getCurrentInstance, reactive, TransitionGroup, onUpdated, createApp } from "vue";
|
|
2
2
|
function isDev() {
|
|
3
3
|
try {
|
|
4
4
|
return process.env.NODE_ENV !== "production";
|
|
@@ -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$
|
|
113
|
+
const _hoisted_1$1d = { class: "tao-icon" };
|
|
114
114
|
const _hoisted_2$13 = ["viewBox", "width", "height", "innerHTML"];
|
|
115
|
-
const _sfc_main$
|
|
115
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
116
116
|
...{ name: "TaoIcon" },
|
|
117
117
|
__name: "TaoIcon",
|
|
118
118
|
props: {
|
|
@@ -132,7 +132,7 @@ const _sfc_main$1p = /* @__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$1d, [
|
|
136
136
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
137
137
|
def.value ? (openBlock(), createElementBlock("svg", {
|
|
138
138
|
key: 0,
|
|
@@ -165,7 +165,23 @@ 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$1q, [["__scopeId", "data-v-ef842331"]]);
|
|
169
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
170
|
+
...{ name: "TaoKbd" },
|
|
171
|
+
__name: "TaoKbd",
|
|
172
|
+
props: {
|
|
173
|
+
variant: { default: "cap" }
|
|
174
|
+
},
|
|
175
|
+
setup(__props) {
|
|
176
|
+
return (_ctx, _cache) => {
|
|
177
|
+
return openBlock(), createElementBlock("kbd", {
|
|
178
|
+
class: normalizeClass(["tao-kbd", { "tao-kbd--plain": __props.variant === "plain" }])
|
|
179
|
+
}, [
|
|
180
|
+
renderSlot(_ctx.$slots, "default")
|
|
181
|
+
], 2);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
169
185
|
const localeEn = {
|
|
170
186
|
code: "en-US",
|
|
171
187
|
alert: { closeLabel: "Close", detailsLabel: "Details" },
|
|
@@ -604,13 +620,13 @@ function pluralForm(forms, n, code) {
|
|
|
604
620
|
}
|
|
605
621
|
return forms[category] ?? forms.other;
|
|
606
622
|
}
|
|
607
|
-
const _hoisted_1$
|
|
623
|
+
const _hoisted_1$1c = ["role", "aria-hidden"];
|
|
608
624
|
const _hoisted_2$12 = {
|
|
609
625
|
key: 0,
|
|
610
626
|
class: "tao-loader__ellipsis",
|
|
611
627
|
"aria-hidden": "true"
|
|
612
628
|
};
|
|
613
|
-
const _hoisted_3$
|
|
629
|
+
const _hoisted_3$T = {
|
|
614
630
|
key: 1,
|
|
615
631
|
class: "tao-loader__ring",
|
|
616
632
|
"aria-hidden": "true"
|
|
@@ -672,25 +688,20 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
672
688
|
createElementVNode("div", null, null, -1),
|
|
673
689
|
createElementVNode("div", null, null, -1),
|
|
674
690
|
createElementVNode("div", null, null, -1)
|
|
675
|
-
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
691
|
+
])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$T)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$K, [..._cache[1] || (_cache[1] = [
|
|
676
692
|
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)
|
|
677
693
|
])])) : (openBlock(), createElementBlock("span", _hoisted_5$y)),
|
|
678
694
|
!__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$r, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
|
|
679
|
-
], 14, _hoisted_1$
|
|
695
|
+
], 14, _hoisted_1$1c);
|
|
680
696
|
};
|
|
681
697
|
}
|
|
682
698
|
});
|
|
683
699
|
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-03f29efb"]]);
|
|
684
|
-
const _hoisted_1$
|
|
700
|
+
const _hoisted_1$1b = ["type", "aria-pressed", "aria-keyshortcuts", "title", "aria-busy", "disabled"];
|
|
685
701
|
const _hoisted_2$11 = {
|
|
686
702
|
key: 2,
|
|
687
703
|
class: "tao-button__content"
|
|
688
704
|
};
|
|
689
|
-
const _hoisted_3$U = {
|
|
690
|
-
key: 4,
|
|
691
|
-
class: "tao-button__shortcut",
|
|
692
|
-
"aria-hidden": "true"
|
|
693
|
-
};
|
|
694
705
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
695
706
|
...{ name: "TaoButton" },
|
|
696
707
|
__name: "TaoButton",
|
|
@@ -782,12 +793,21 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
782
793
|
class: "tao-button__icon",
|
|
783
794
|
name: __props.iconEnd
|
|
784
795
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
785
|
-
__props.shortcut && !isIconOnly() ? (openBlock(),
|
|
786
|
-
|
|
796
|
+
__props.shortcut && !isIconOnly() ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
797
|
+
key: 4,
|
|
798
|
+
class: "tao-button__shortcut",
|
|
799
|
+
"aria-hidden": "true"
|
|
800
|
+
}, {
|
|
801
|
+
default: withCtx(() => [
|
|
802
|
+
createTextVNode(toDisplayString(__props.shortcut), 1)
|
|
803
|
+
]),
|
|
804
|
+
_: 1
|
|
805
|
+
})) : createCommentVNode("", true)
|
|
806
|
+
], 14, _hoisted_1$1b);
|
|
787
807
|
};
|
|
788
808
|
}
|
|
789
809
|
});
|
|
790
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-
|
|
810
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-a491be1d"]]);
|
|
791
811
|
function toCssLength(value) {
|
|
792
812
|
if (value === void 0 || value === null || value === "") {
|
|
793
813
|
return void 0;
|
|
@@ -861,12 +881,12 @@ function useField(props) {
|
|
|
861
881
|
const describedBy = computed(() => field?.describedBy.value);
|
|
862
882
|
return { field, controlId, invalid, describedBy, localId };
|
|
863
883
|
}
|
|
864
|
-
const _hoisted_1$
|
|
884
|
+
const _hoisted_1$1a = {
|
|
865
885
|
key: 0,
|
|
866
886
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
867
887
|
};
|
|
868
888
|
const _hoisted_2$10 = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
869
|
-
const _hoisted_3$
|
|
889
|
+
const _hoisted_3$S = {
|
|
870
890
|
key: 1,
|
|
871
891
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
872
892
|
};
|
|
@@ -918,7 +938,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
918
938
|
"tao-input-shell--suffix": has("suffix")
|
|
919
939
|
}])
|
|
920
940
|
}, [
|
|
921
|
-
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
941
|
+
has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$1a, [
|
|
922
942
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
923
943
|
])) : createCommentVNode("", true),
|
|
924
944
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
@@ -934,7 +954,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
934
954
|
onBlur: handleBlur,
|
|
935
955
|
onFocus: handleFocus
|
|
936
956
|
}), null, 16, _hoisted_2$10),
|
|
937
|
-
has("suffix") ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
957
|
+
has("suffix") ? (openBlock(), createElementBlock("span", _hoisted_3$S, [
|
|
938
958
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
939
959
|
])) : createCommentVNode("", true)
|
|
940
960
|
], 2)
|
|
@@ -943,12 +963,12 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
943
963
|
}
|
|
944
964
|
});
|
|
945
965
|
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-66bc5496"]]);
|
|
946
|
-
const _hoisted_1$
|
|
966
|
+
const _hoisted_1$19 = {
|
|
947
967
|
key: 0,
|
|
948
968
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
949
969
|
};
|
|
950
970
|
const _hoisted_2$$ = { class: "tao-input-group__field" };
|
|
951
|
-
const _hoisted_3$
|
|
971
|
+
const _hoisted_3$R = {
|
|
952
972
|
key: 1,
|
|
953
973
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
954
974
|
};
|
|
@@ -979,13 +999,13 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
979
999
|
onFocusin: onFocusIn,
|
|
980
1000
|
onFocusout: onFocusOut
|
|
981
1001
|
}, [
|
|
982
|
-
has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1002
|
+
has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
983
1003
|
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
984
1004
|
])) : createCommentVNode("", true),
|
|
985
1005
|
createElementVNode("div", _hoisted_2$$, [
|
|
986
1006
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
987
1007
|
]),
|
|
988
|
-
has("after") ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1008
|
+
has("after") ? (openBlock(), createElementBlock("div", _hoisted_3$R, [
|
|
989
1009
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
990
1010
|
])) : createCommentVNode("", true)
|
|
991
1011
|
], 34);
|
|
@@ -993,12 +1013,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
993
1013
|
}
|
|
994
1014
|
});
|
|
995
1015
|
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-d38f6b53"]]);
|
|
996
|
-
const _hoisted_1$
|
|
1016
|
+
const _hoisted_1$18 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
997
1017
|
const _hoisted_2$_ = {
|
|
998
1018
|
key: 0,
|
|
999
1019
|
class: "tao-input-number__steppers"
|
|
1000
1020
|
};
|
|
1001
|
-
const _hoisted_3$
|
|
1021
|
+
const _hoisted_3$Q = ["aria-label", "disabled"];
|
|
1002
1022
|
const _hoisted_4$J = { "aria-hidden": "true" };
|
|
1003
1023
|
const _hoisted_5$x = ["aria-label", "disabled"];
|
|
1004
1024
|
const _hoisted_6$q = { "aria-hidden": "true" };
|
|
@@ -1161,7 +1181,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1161
1181
|
onFocus,
|
|
1162
1182
|
onBlur,
|
|
1163
1183
|
onKeydown: onKeydown2
|
|
1164
|
-
}), null, 16, _hoisted_1$
|
|
1184
|
+
}), null, 16, _hoisted_1$18),
|
|
1165
1185
|
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$_, [
|
|
1166
1186
|
createElementVNode("button", {
|
|
1167
1187
|
type: "button",
|
|
@@ -1176,7 +1196,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1176
1196
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1177
1197
|
], true)
|
|
1178
1198
|
])
|
|
1179
|
-
], 8, _hoisted_3$
|
|
1199
|
+
], 8, _hoisted_3$Q),
|
|
1180
1200
|
createElementVNode("button", {
|
|
1181
1201
|
type: "button",
|
|
1182
1202
|
class: "tao-input-number__step",
|
|
@@ -1197,9 +1217,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1197
1217
|
}
|
|
1198
1218
|
});
|
|
1199
1219
|
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-dc5bb759"]]);
|
|
1200
|
-
const _hoisted_1$
|
|
1220
|
+
const _hoisted_1$17 = ["aria-label", "disabled"];
|
|
1201
1221
|
const _hoisted_2$Z = { "aria-hidden": "true" };
|
|
1202
|
-
const _hoisted_3$
|
|
1222
|
+
const _hoisted_3$P = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
1203
1223
|
const _hoisted_4$I = ["aria-label", "disabled"];
|
|
1204
1224
|
const _hoisted_5$w = { "aria-hidden": "true" };
|
|
1205
1225
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
@@ -1347,7 +1367,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
1347
1367
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1348
1368
|
], true)
|
|
1349
1369
|
])
|
|
1350
|
-
], 8, _hoisted_1$
|
|
1370
|
+
], 8, _hoisted_1$17),
|
|
1351
1371
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
1352
1372
|
id: unref(controlId),
|
|
1353
1373
|
class: "tao-quantity__input",
|
|
@@ -1367,7 +1387,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
1367
1387
|
onFocus,
|
|
1368
1388
|
onBlur,
|
|
1369
1389
|
onKeydown: onKeydown2
|
|
1370
|
-
}), null, 16, _hoisted_3$
|
|
1390
|
+
}), null, 16, _hoisted_3$P),
|
|
1371
1391
|
createElementVNode("button", {
|
|
1372
1392
|
type: "button",
|
|
1373
1393
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1385,8 +1405,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
1385
1405
|
};
|
|
1386
1406
|
}
|
|
1387
1407
|
});
|
|
1388
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-
|
|
1389
|
-
const _hoisted_1$
|
|
1408
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-c7bd72bc"]]);
|
|
1409
|
+
const _hoisted_1$16 = {
|
|
1390
1410
|
key: 0,
|
|
1391
1411
|
class: "tao-card__media"
|
|
1392
1412
|
};
|
|
@@ -1394,7 +1414,7 @@ const _hoisted_2$Y = {
|
|
|
1394
1414
|
key: 0,
|
|
1395
1415
|
class: "tao-card__overlay"
|
|
1396
1416
|
};
|
|
1397
|
-
const _hoisted_3$
|
|
1417
|
+
const _hoisted_3$O = {
|
|
1398
1418
|
key: 1,
|
|
1399
1419
|
class: "tao-card__overlay"
|
|
1400
1420
|
};
|
|
@@ -1410,7 +1430,7 @@ const _hoisted_6$p = {
|
|
|
1410
1430
|
key: 0,
|
|
1411
1431
|
class: "tao-card__title"
|
|
1412
1432
|
};
|
|
1413
|
-
const _hoisted_7$
|
|
1433
|
+
const _hoisted_7$k = {
|
|
1414
1434
|
key: 1,
|
|
1415
1435
|
class: "tao-card__sub"
|
|
1416
1436
|
};
|
|
@@ -1481,12 +1501,12 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
1481
1501
|
}]]),
|
|
1482
1502
|
style: normalizeStyle(radiusStyle.value)
|
|
1483
1503
|
}, [
|
|
1484
|
-
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1504
|
+
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
1485
1505
|
renderSlot(_ctx.$slots, "media", {}, void 0, true),
|
|
1486
1506
|
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$Y, [
|
|
1487
1507
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1488
1508
|
])) : createCommentVNode("", true)
|
|
1489
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1509
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$O, [
|
|
1490
1510
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1491
1511
|
])) : createCommentVNode("", true),
|
|
1492
1512
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1501,7 +1521,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
1501
1521
|
has("title") ? (openBlock(), createElementBlock("h2", _hoisted_6$p, [
|
|
1502
1522
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
1503
1523
|
])) : createCommentVNode("", true),
|
|
1504
|
-
has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
1524
|
+
has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$k, [
|
|
1505
1525
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1506
1526
|
])) : createCommentVNode("", true)
|
|
1507
1527
|
])) : createCommentVNode("", true),
|
|
@@ -1531,7 +1551,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
1531
1551
|
};
|
|
1532
1552
|
}
|
|
1533
1553
|
});
|
|
1534
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
1554
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-b5dbaa1c"]]);
|
|
1535
1555
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1536
1556
|
function getFocusable(root) {
|
|
1537
1557
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -1707,16 +1727,16 @@ function useWholePixelPanel(panel, open) {
|
|
|
1707
1727
|
stop();
|
|
1708
1728
|
});
|
|
1709
1729
|
}
|
|
1710
|
-
const _hoisted_1$
|
|
1730
|
+
const _hoisted_1$15 = ["aria-labelledby"];
|
|
1711
1731
|
const _hoisted_2$X = {
|
|
1712
1732
|
key: 0,
|
|
1713
1733
|
class: "tao-modal__header"
|
|
1714
1734
|
};
|
|
1715
|
-
const _hoisted_3$
|
|
1735
|
+
const _hoisted_3$N = ["id"];
|
|
1716
1736
|
const _hoisted_4$G = { key: 1 };
|
|
1717
1737
|
const _hoisted_5$u = ["aria-label"];
|
|
1718
1738
|
const _hoisted_6$o = { "aria-hidden": "true" };
|
|
1719
|
-
const _hoisted_7$
|
|
1739
|
+
const _hoisted_7$j = { class: "tao-modal__content" };
|
|
1720
1740
|
const _hoisted_8$d = {
|
|
1721
1741
|
key: 1,
|
|
1722
1742
|
class: "tao-modal__footer"
|
|
@@ -1812,7 +1832,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1812
1832
|
key: 0,
|
|
1813
1833
|
id: unref(titleId),
|
|
1814
1834
|
class: "tao-modal__title"
|
|
1815
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1835
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$N)) : (openBlock(), createElementBlock("span", _hoisted_4$G))
|
|
1816
1836
|
], true),
|
|
1817
1837
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1818
1838
|
key: 0,
|
|
@@ -1828,13 +1848,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1828
1848
|
])
|
|
1829
1849
|
], 8, _hoisted_5$u)) : createCommentVNode("", true)
|
|
1830
1850
|
])) : createCommentVNode("", true),
|
|
1831
|
-
createElementVNode("div", _hoisted_7$
|
|
1851
|
+
createElementVNode("div", _hoisted_7$j, [
|
|
1832
1852
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1833
1853
|
]),
|
|
1834
1854
|
has("footer") ? (openBlock(), createElementBlock("div", _hoisted_8$d, [
|
|
1835
1855
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1836
1856
|
])) : createCommentVNode("", true)
|
|
1837
|
-
], 16, _hoisted_1$
|
|
1857
|
+
], 16, _hoisted_1$15)
|
|
1838
1858
|
], 34)) : createCommentVNode("", true)
|
|
1839
1859
|
]),
|
|
1840
1860
|
_: 3
|
|
@@ -1844,7 +1864,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
1844
1864
|
}
|
|
1845
1865
|
});
|
|
1846
1866
|
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-d0ba0ca9"]]);
|
|
1847
|
-
const _hoisted_1$
|
|
1867
|
+
const _hoisted_1$14 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1848
1868
|
const _hoisted_2$W = ["id", "aria-labelledby"];
|
|
1849
1869
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
1850
1870
|
...{ name: "TaoTabs" },
|
|
@@ -1941,7 +1961,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1941
1961
|
}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1942
1962
|
createTextVNode(toDisplayString(tab.label), 1)
|
|
1943
1963
|
], 64))
|
|
1944
|
-
], 8, _hoisted_1$
|
|
1964
|
+
], 8, _hoisted_1$14);
|
|
1945
1965
|
}), 128))
|
|
1946
1966
|
], 36),
|
|
1947
1967
|
createElementVNode("div", {
|
|
@@ -1956,7 +1976,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
1956
1976
|
};
|
|
1957
1977
|
}
|
|
1958
1978
|
});
|
|
1959
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-
|
|
1979
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-56341624"]]);
|
|
1960
1980
|
function listenFocusLoss(onLoss) {
|
|
1961
1981
|
function onVisibilityChange() {
|
|
1962
1982
|
if (document.hidden) {
|
|
@@ -2469,9 +2489,9 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
|
|
|
2469
2489
|
const stops = zones.map((z) => `${dimmed && z.reveal ? "transparent" : z.color} ${ratioOf(z.from, min, max) * 100}% ${ratioOf(z.to, min, max) * 100}%`);
|
|
2470
2490
|
return `linear-gradient(${vertical ? "to top" : "to right"}, ${stops.join(", ")})`;
|
|
2471
2491
|
}
|
|
2472
|
-
const _hoisted_1$
|
|
2492
|
+
const _hoisted_1$13 = ["aria-disabled"];
|
|
2473
2493
|
const _hoisted_2$V = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "aria-keyshortcuts", "onKeydown"];
|
|
2474
|
-
const _hoisted_3$
|
|
2494
|
+
const _hoisted_3$M = {
|
|
2475
2495
|
key: 2,
|
|
2476
2496
|
class: "tao-slider__value"
|
|
2477
2497
|
};
|
|
@@ -2481,7 +2501,7 @@ const _hoisted_5$t = {
|
|
|
2481
2501
|
class: "tao-slider__marks"
|
|
2482
2502
|
};
|
|
2483
2503
|
const _hoisted_6$n = ["disabled", "onClick"];
|
|
2484
|
-
const _hoisted_7$
|
|
2504
|
+
const _hoisted_7$i = {
|
|
2485
2505
|
key: 0,
|
|
2486
2506
|
class: "tao-slider__mark-label"
|
|
2487
2507
|
};
|
|
@@ -2831,7 +2851,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2831
2851
|
], 6)) : createCommentVNode("", true)
|
|
2832
2852
|
], 64);
|
|
2833
2853
|
}), 128)),
|
|
2834
|
-
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2854
|
+
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$M, [
|
|
2835
2855
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2836
2856
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2837
2857
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
@@ -2880,7 +2900,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2880
2900
|
onClick: ($event) => onMarkClick(mark)
|
|
2881
2901
|
}, [
|
|
2882
2902
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
|
|
2883
|
-
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
2903
|
+
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$i, [
|
|
2884
2904
|
renderSlot(_ctx.$slots, "mark", {
|
|
2885
2905
|
mark,
|
|
2886
2906
|
active: unref(isMarkActive)(mark.value, values.value)
|
|
@@ -2891,11 +2911,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2891
2911
|
], 14, _hoisted_6$n);
|
|
2892
2912
|
}), 128))
|
|
2893
2913
|
])) : createCommentVNode("", true)
|
|
2894
|
-
], 42, _hoisted_1$
|
|
2914
|
+
], 42, _hoisted_1$13);
|
|
2895
2915
|
};
|
|
2896
2916
|
}
|
|
2897
2917
|
});
|
|
2898
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-
|
|
2918
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-daf2df57"]]);
|
|
2899
2919
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
2900
2920
|
...{ name: "TaoSlider" },
|
|
2901
2921
|
__name: "TaoSlider",
|
|
@@ -2964,9 +2984,9 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
2964
2984
|
};
|
|
2965
2985
|
}
|
|
2966
2986
|
});
|
|
2967
|
-
const _hoisted_1$
|
|
2987
|
+
const _hoisted_1$12 = { class: "tao-scrubber__controls" };
|
|
2968
2988
|
const _hoisted_2$U = { class: "tao-scrubber__track" };
|
|
2969
|
-
const _hoisted_3$
|
|
2989
|
+
const _hoisted_3$L = {
|
|
2970
2990
|
key: 0,
|
|
2971
2991
|
class: "tao-scrubber__time"
|
|
2972
2992
|
};
|
|
@@ -3010,7 +3030,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
3010
3030
|
return openBlock(), createElementBlock("div", {
|
|
3011
3031
|
class: normalizeClass(["tao-scrubber", [unref(sizeClass)(__props.size), `tao-scrubber--${__props.variant}`, { "tao-scrubber--marks-start": __props.marksSide === "start", "tao-scrubber--disabled": __props.disabled }]])
|
|
3012
3032
|
}, [
|
|
3013
|
-
createElementVNode("div", _hoisted_1$
|
|
3033
|
+
createElementVNode("div", _hoisted_1$12, [
|
|
3014
3034
|
createVNode(TaoButton, {
|
|
3015
3035
|
size: "small",
|
|
3016
3036
|
variant: "secondary",
|
|
@@ -3064,7 +3084,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
3064
3084
|
} : void 0
|
|
3065
3085
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
3066
3086
|
]),
|
|
3067
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3087
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$L, [
|
|
3068
3088
|
renderSlot(_ctx.$slots, "time", {
|
|
3069
3089
|
time: __props.modelValue,
|
|
3070
3090
|
length: __props.length,
|
|
@@ -3205,15 +3225,24 @@ function useFloating(anchor, panel, open, options = {}) {
|
|
|
3205
3225
|
});
|
|
3206
3226
|
return { style, side, anchorOffset, placed, update };
|
|
3207
3227
|
}
|
|
3228
|
+
const _hoisted_1$11 = { class: "tao-tooltip__text" };
|
|
3208
3229
|
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
3209
3230
|
...{ name: "TaoTooltip" },
|
|
3210
3231
|
__name: "TaoTooltip",
|
|
3211
3232
|
props: {
|
|
3212
3233
|
content: {},
|
|
3213
|
-
placement: { default: "top" }
|
|
3234
|
+
placement: { default: "top" },
|
|
3235
|
+
shortcut: {},
|
|
3236
|
+
animated: { type: [Boolean, Number], default: void 0 },
|
|
3237
|
+
bold: { type: Boolean, default: true }
|
|
3214
3238
|
},
|
|
3215
3239
|
setup(__props) {
|
|
3216
3240
|
const props = __props;
|
|
3241
|
+
const motion = computed(() => {
|
|
3242
|
+
if (props.animated === void 0) return void 0;
|
|
3243
|
+
const n = props.animated === true ? 1 : Number(props.animated);
|
|
3244
|
+
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
3245
|
+
});
|
|
3217
3246
|
const wrapperRef = ref(null);
|
|
3218
3247
|
const tooltipRef = ref(null);
|
|
3219
3248
|
const showTooltip = ref(false);
|
|
@@ -3221,7 +3250,11 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
3221
3250
|
placement: () => props.placement,
|
|
3222
3251
|
gap: 8
|
|
3223
3252
|
});
|
|
3224
|
-
const panelStyle = computed(() => ({
|
|
3253
|
+
const panelStyle = computed(() => ({
|
|
3254
|
+
...style.value,
|
|
3255
|
+
visibility: placed.value ? "visible" : "hidden",
|
|
3256
|
+
...motion.value === void 0 ? {} : { "--tao-tooltip-motion": String(motion.value) }
|
|
3257
|
+
}));
|
|
3225
3258
|
const arrowStyle = computed(() => {
|
|
3226
3259
|
const arrowPad = 10;
|
|
3227
3260
|
const el = tooltipRef.value;
|
|
@@ -3264,11 +3297,20 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
3264
3297
|
key: 0,
|
|
3265
3298
|
ref_key: "tooltipRef",
|
|
3266
3299
|
ref: tooltipRef,
|
|
3267
|
-
class: normalizeClass(["tao-tooltip", `tao-tooltip--${unref(side)}
|
|
3300
|
+
class: normalizeClass(["tao-tooltip", [`tao-tooltip--${unref(side)}`, { "tao-tooltip--regular": !__props.bold }]]),
|
|
3268
3301
|
role: "tooltip",
|
|
3269
3302
|
style: normalizeStyle(panelStyle.value)
|
|
3270
3303
|
}, [
|
|
3271
|
-
|
|
3304
|
+
createElementVNode("span", _hoisted_1$11, toDisplayString(__props.content), 1),
|
|
3305
|
+
__props.shortcut ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
3306
|
+
key: 0,
|
|
3307
|
+
class: "tao-tooltip__shortcut"
|
|
3308
|
+
}, {
|
|
3309
|
+
default: withCtx(() => [
|
|
3310
|
+
createTextVNode(toDisplayString(__props.shortcut), 1)
|
|
3311
|
+
]),
|
|
3312
|
+
_: 1
|
|
3313
|
+
})) : createCommentVNode("", true),
|
|
3272
3314
|
createElementVNode("span", {
|
|
3273
3315
|
class: "tao-tooltip__arrow",
|
|
3274
3316
|
style: normalizeStyle(arrowStyle.value),
|
|
@@ -3283,7 +3325,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
3283
3325
|
};
|
|
3284
3326
|
}
|
|
3285
3327
|
});
|
|
3286
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-
|
|
3328
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-dfb081a5"]]);
|
|
3287
3329
|
const resolved = ["compact", "default", "comfortable"];
|
|
3288
3330
|
function densityClass(density) {
|
|
3289
3331
|
return density ? `tao-density-${density}` : void 0;
|
|
@@ -3424,7 +3466,7 @@ const _hoisted_2$T = {
|
|
|
3424
3466
|
key: 0,
|
|
3425
3467
|
class: "tao-spoiler__title"
|
|
3426
3468
|
};
|
|
3427
|
-
const _hoisted_3$
|
|
3469
|
+
const _hoisted_3$K = ["id"];
|
|
3428
3470
|
const _hoisted_4$E = { class: "tao-spoiler__content-inner" };
|
|
3429
3471
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
3430
3472
|
...{ name: "TaoSpoiler" },
|
|
@@ -3522,7 +3564,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
3522
3564
|
createElementVNode("div", _hoisted_4$E, [
|
|
3523
3565
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3524
3566
|
])
|
|
3525
|
-
], 8, _hoisted_3$
|
|
3567
|
+
], 8, _hoisted_3$K)) : createCommentVNode("", true)
|
|
3526
3568
|
]),
|
|
3527
3569
|
_: 3
|
|
3528
3570
|
})
|
|
@@ -3653,7 +3695,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
3653
3695
|
};
|
|
3654
3696
|
}
|
|
3655
3697
|
});
|
|
3656
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
3698
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-7e06b308"]]);
|
|
3657
3699
|
function readTaoMode(el) {
|
|
3658
3700
|
const mode = el.getAttribute("data-tao-mode");
|
|
3659
3701
|
if (mode === "light" || mode === "dark") {
|
|
@@ -3861,11 +3903,11 @@ const _hoisted_2$S = {
|
|
|
3861
3903
|
class: "tao-tour__dim",
|
|
3862
3904
|
"aria-hidden": "true"
|
|
3863
3905
|
};
|
|
3864
|
-
const _hoisted_3$
|
|
3906
|
+
const _hoisted_3$J = ["aria-labelledby", "aria-describedby"];
|
|
3865
3907
|
const _hoisted_4$D = ["id"];
|
|
3866
3908
|
const _hoisted_5$s = ["id"];
|
|
3867
3909
|
const _hoisted_6$m = { class: "tao-tour__footer" };
|
|
3868
|
-
const _hoisted_7$
|
|
3910
|
+
const _hoisted_7$h = {
|
|
3869
3911
|
key: 0,
|
|
3870
3912
|
class: "tao-tour__progress"
|
|
3871
3913
|
};
|
|
@@ -4081,7 +4123,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4081
4123
|
}, toDisplayString(__props.step.text), 9, _hoisted_5$s)) : createCommentVNode("", true)
|
|
4082
4124
|
]),
|
|
4083
4125
|
createElementVNode("div", _hoisted_6$m, [
|
|
4084
|
-
__props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4126
|
+
__props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$h, [
|
|
4085
4127
|
createElementVNode("span", _hoisted_8$c, [
|
|
4086
4128
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dots.value, (i) => {
|
|
4087
4129
|
return openBlock(), createElementBlock("i", {
|
|
@@ -4126,7 +4168,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
4126
4168
|
})
|
|
4127
4169
|
])
|
|
4128
4170
|
])
|
|
4129
|
-
], 46, _hoisted_3$
|
|
4171
|
+
], 46, _hoisted_3$J)
|
|
4130
4172
|
])) : createCommentVNode("", true)
|
|
4131
4173
|
]);
|
|
4132
4174
|
};
|
|
@@ -4296,7 +4338,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
4296
4338
|
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-d42e5e67"]]);
|
|
4297
4339
|
const _hoisted_1$W = { class: "tao-split__pane tao-split__pane--start" };
|
|
4298
4340
|
const _hoisted_2$R = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
4299
|
-
const _hoisted_3$
|
|
4341
|
+
const _hoisted_3$I = { class: "tao-split__pane tao-split__pane--end" };
|
|
4300
4342
|
const _hoisted_4$C = {
|
|
4301
4343
|
key: 0,
|
|
4302
4344
|
class: "tao-split__shield"
|
|
@@ -4622,7 +4664,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4622
4664
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4623
4665
|
}, ["prevent"]))
|
|
4624
4666
|
}, null, 40, _hoisted_2$R),
|
|
4625
|
-
createElementVNode("div", _hoisted_3$
|
|
4667
|
+
createElementVNode("div", _hoisted_3$I, [
|
|
4626
4668
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4627
4669
|
]),
|
|
4628
4670
|
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$C)) : createCommentVNode("", true)
|
|
@@ -4633,7 +4675,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4633
4675
|
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-316b0d45"]]);
|
|
4634
4676
|
const _hoisted_1$V = { class: "tao-image" };
|
|
4635
4677
|
const _hoisted_2$Q = ["src", "alt", "loading"];
|
|
4636
|
-
const _hoisted_3$
|
|
4678
|
+
const _hoisted_3$H = { class: "tao-image__placeholder" };
|
|
4637
4679
|
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
4638
4680
|
...{ name: "TaoImage" },
|
|
4639
4681
|
__name: "TaoImage",
|
|
@@ -4678,7 +4720,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
4678
4720
|
onError: handleError
|
|
4679
4721
|
}, null, 42, _hoisted_2$Q)) : createCommentVNode("", true),
|
|
4680
4722
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4681
|
-
createElementVNode("div", _hoisted_3$
|
|
4723
|
+
createElementVNode("div", _hoisted_3$H, toDisplayString(__props.placeholderText), 1)
|
|
4682
4724
|
], true, 1) : createCommentVNode("", true)
|
|
4683
4725
|
]);
|
|
4684
4726
|
};
|
|
@@ -4687,7 +4729,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
4687
4729
|
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-61f47c52"]]);
|
|
4688
4730
|
const _hoisted_1$U = ["for"];
|
|
4689
4731
|
const _hoisted_2$P = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
4690
|
-
const _hoisted_3$
|
|
4732
|
+
const _hoisted_3$G = {
|
|
4691
4733
|
key: 0,
|
|
4692
4734
|
class: "tao-checkbox__label"
|
|
4693
4735
|
};
|
|
@@ -4768,7 +4810,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
4768
4810
|
onChange: onInputChange
|
|
4769
4811
|
}), null, 16, _hoisted_2$P),
|
|
4770
4812
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
4771
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4813
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$G, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$B, [
|
|
4772
4814
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4773
4815
|
])),
|
|
4774
4816
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
@@ -4782,7 +4824,7 @@ const _hoisted_1$T = {
|
|
|
4782
4824
|
class: "tao-tag__prefix"
|
|
4783
4825
|
};
|
|
4784
4826
|
const _hoisted_2$O = { class: "tao-tag__text" };
|
|
4785
|
-
const _hoisted_3$
|
|
4827
|
+
const _hoisted_3$F = ["aria-label"];
|
|
4786
4828
|
const _hoisted_4$A = { "aria-hidden": "true" };
|
|
4787
4829
|
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4788
4830
|
...{ name: "TaoTag" },
|
|
@@ -4845,7 +4887,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4845
4887
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4846
4888
|
], true)
|
|
4847
4889
|
])
|
|
4848
|
-
], 8, _hoisted_3$
|
|
4890
|
+
], 8, _hoisted_3$F)) : createCommentVNode("", true)
|
|
4849
4891
|
], 6);
|
|
4850
4892
|
};
|
|
4851
4893
|
}
|
|
@@ -4856,7 +4898,7 @@ const _hoisted_2$N = {
|
|
|
4856
4898
|
key: 1,
|
|
4857
4899
|
class: "tao-divider__text"
|
|
4858
4900
|
};
|
|
4859
|
-
const _hoisted_3$
|
|
4901
|
+
const _hoisted_3$E = {
|
|
4860
4902
|
key: 2,
|
|
4861
4903
|
class: "tao-divider__line tao-divider__line--end"
|
|
4862
4904
|
};
|
|
@@ -4897,7 +4939,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4897
4939
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
4898
4940
|
], true)
|
|
4899
4941
|
])) : createCommentVNode("", true),
|
|
4900
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4942
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$E)) : createCommentVNode("", true)
|
|
4901
4943
|
], 10, _hoisted_1$S);
|
|
4902
4944
|
};
|
|
4903
4945
|
}
|
|
@@ -5132,7 +5174,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
5132
5174
|
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-9aaf7131"]]);
|
|
5133
5175
|
const _hoisted_1$P = ["aria-label"];
|
|
5134
5176
|
const _hoisted_2$K = { class: "tao-scroll-top__content" };
|
|
5135
|
-
const _hoisted_3$
|
|
5177
|
+
const _hoisted_3$D = {
|
|
5136
5178
|
key: 0,
|
|
5137
5179
|
class: "tao-scroll-top__text",
|
|
5138
5180
|
"aria-hidden": "true"
|
|
@@ -5233,7 +5275,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
5233
5275
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
5234
5276
|
}), [
|
|
5235
5277
|
createElementVNode("span", _hoisted_2$K, [
|
|
5236
|
-
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5278
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$D, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
5237
5279
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5238
5280
|
createVNode(TaoIcon, {
|
|
5239
5281
|
class: "tao-scroll-top__icon",
|
|
@@ -5255,13 +5297,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
5255
5297
|
};
|
|
5256
5298
|
}
|
|
5257
5299
|
});
|
|
5258
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-
|
|
5300
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-7c39a7eb"]]);
|
|
5259
5301
|
const _hoisted_1$O = { class: "tao-progress" };
|
|
5260
5302
|
const _hoisted_2$J = {
|
|
5261
5303
|
key: 0,
|
|
5262
5304
|
class: "tao-progress__side"
|
|
5263
5305
|
};
|
|
5264
|
-
const _hoisted_3$
|
|
5306
|
+
const _hoisted_3$C = { class: "tao-progress__main" };
|
|
5265
5307
|
const _hoisted_4$z = {
|
|
5266
5308
|
key: 0,
|
|
5267
5309
|
class: "tao-progress__percentage"
|
|
@@ -5312,7 +5354,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
5312
5354
|
has("left") ? (openBlock(), createElementBlock("div", _hoisted_2$J, [
|
|
5313
5355
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
5314
5356
|
])) : createCommentVNode("", true),
|
|
5315
|
-
createElementVNode("div", _hoisted_3$
|
|
5357
|
+
createElementVNode("div", _hoisted_3$C, [
|
|
5316
5358
|
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$z, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
5317
5359
|
createElementVNode("div", {
|
|
5318
5360
|
class: "tao-progress__track",
|
|
@@ -5431,14 +5473,14 @@ function partitionByAccept(files, accept) {
|
|
|
5431
5473
|
}
|
|
5432
5474
|
const _hoisted_1$N = { class: "tao-file-drop__row" };
|
|
5433
5475
|
const _hoisted_2$I = ["aria-label"];
|
|
5434
|
-
const _hoisted_3$
|
|
5476
|
+
const _hoisted_3$B = { "aria-hidden": "true" };
|
|
5435
5477
|
const _hoisted_4$y = ["accept", "multiple"];
|
|
5436
5478
|
const _hoisted_5$q = {
|
|
5437
5479
|
key: 0,
|
|
5438
5480
|
class: "tao-file-drop__list"
|
|
5439
5481
|
};
|
|
5440
5482
|
const _hoisted_6$k = { class: "tao-file-drop__name" };
|
|
5441
|
-
const _hoisted_7$
|
|
5483
|
+
const _hoisted_7$g = { class: "tao-file-drop__meta" };
|
|
5442
5484
|
const _hoisted_8$b = ["aria-label", "onClick"];
|
|
5443
5485
|
const _hoisted_9$8 = { "aria-hidden": "true" };
|
|
5444
5486
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
@@ -5567,7 +5609,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5567
5609
|
"aria-label": unref(l10n).clearLabel,
|
|
5568
5610
|
onClick: requestClear
|
|
5569
5611
|
}, [
|
|
5570
|
-
createElementVNode("span", _hoisted_3$
|
|
5612
|
+
createElementVNode("span", _hoisted_3$B, [
|
|
5571
5613
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
5572
5614
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
5573
5615
|
], true)
|
|
@@ -5602,7 +5644,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5602
5644
|
class: "tao-file-drop__file"
|
|
5603
5645
|
}, [
|
|
5604
5646
|
createElementVNode("span", _hoisted_6$k, toDisplayString(file.name), 1),
|
|
5605
|
-
createElementVNode("span", _hoisted_7$
|
|
5647
|
+
createElementVNode("span", _hoisted_7$g, toDisplayString(sizeLabel(file.size)), 1),
|
|
5606
5648
|
createElementVNode("button", {
|
|
5607
5649
|
type: "button",
|
|
5608
5650
|
class: "tao-file-drop__remove",
|
|
@@ -5714,7 +5756,7 @@ const _hoisted_2$H = {
|
|
|
5714
5756
|
class: "tao-menu__separator",
|
|
5715
5757
|
role: "separator"
|
|
5716
5758
|
};
|
|
5717
|
-
const _hoisted_3$
|
|
5759
|
+
const _hoisted_3$A = {
|
|
5718
5760
|
key: 1,
|
|
5719
5761
|
class: "tao-menu__label",
|
|
5720
5762
|
role: "presentation"
|
|
@@ -5722,10 +5764,6 @@ const _hoisted_3$B = {
|
|
|
5722
5764
|
const _hoisted_4$x = ["id", "role", "aria-checked", "aria-disabled", "aria-haspopup", "aria-expanded", "aria-keyshortcuts", "onClick", "onMouseenter"];
|
|
5723
5765
|
const _hoisted_5$p = { class: "tao-menu__text" };
|
|
5724
5766
|
const _hoisted_6$j = {
|
|
5725
|
-
key: 1,
|
|
5726
|
-
class: "tao-menu__shortcut"
|
|
5727
|
-
};
|
|
5728
|
-
const _hoisted_7$g = {
|
|
5729
5767
|
key: 2,
|
|
5730
5768
|
class: "tao-menu__arrow",
|
|
5731
5769
|
"aria-hidden": "true"
|
|
@@ -5913,7 +5951,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5913
5951
|
return openBlock(), createElementBlock(Fragment, {
|
|
5914
5952
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
5915
5953
|
}, [
|
|
5916
|
-
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$H)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5954
|
+
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$H)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$A, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5917
5955
|
createElementVNode("div", {
|
|
5918
5956
|
id: itemId(index),
|
|
5919
5957
|
ref_for: true,
|
|
@@ -5950,8 +5988,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5950
5988
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
5951
5989
|
createElementVNode("span", _hoisted_5$p, toDisplayString(item.label), 1)
|
|
5952
5990
|
]),
|
|
5953
|
-
"shortcut" in item && item.shortcut ? (openBlock(),
|
|
5954
|
-
|
|
5991
|
+
"shortcut" in item && item.shortcut ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
5992
|
+
key: 1,
|
|
5993
|
+
variant: "plain",
|
|
5994
|
+
class: "tao-menu__shortcut"
|
|
5995
|
+
}, {
|
|
5996
|
+
default: withCtx(() => [
|
|
5997
|
+
createTextVNode(toDisplayString(item.shortcut), 1)
|
|
5998
|
+
]),
|
|
5999
|
+
_: 2
|
|
6000
|
+
}, 1024)) : createCommentVNode("", true),
|
|
6001
|
+
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_6$j)) : createCommentVNode("", true)
|
|
5955
6002
|
], 42, _hoisted_4$x),
|
|
5956
6003
|
"items" in item && item.items && openSub.value === index ? (openBlock(), createBlock(_component_TaoMenu, {
|
|
5957
6004
|
key: 0,
|
|
@@ -5973,7 +6020,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5973
6020
|
});
|
|
5974
6021
|
const _hoisted_1$L = { class: "tao-dropdown-menu" };
|
|
5975
6022
|
const _hoisted_2$G = ["tabindex", "aria-expanded", "aria-label"];
|
|
5976
|
-
const _hoisted_3$
|
|
6023
|
+
const _hoisted_3$z = {
|
|
5977
6024
|
key: 1,
|
|
5978
6025
|
"aria-hidden": "true"
|
|
5979
6026
|
};
|
|
@@ -6024,7 +6071,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6024
6071
|
onClick: toggleMenu,
|
|
6025
6072
|
onKeydown: onTriggerKeydown
|
|
6026
6073
|
}, [
|
|
6027
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
6074
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$z, [
|
|
6028
6075
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6029
6076
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
6030
6077
|
], true)
|
|
@@ -6374,7 +6421,7 @@ function isTextField(el) {
|
|
|
6374
6421
|
}
|
|
6375
6422
|
const _hoisted_1$J = ["aria-label", "aria-orientation"];
|
|
6376
6423
|
const _hoisted_2$E = ["data-tao-away"];
|
|
6377
|
-
const _hoisted_3$
|
|
6424
|
+
const _hoisted_3$y = ["aria-label"];
|
|
6378
6425
|
const _hoisted_4$w = ["aria-label"];
|
|
6379
6426
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
6380
6427
|
...{ name: "TaoToolbar" },
|
|
@@ -6511,7 +6558,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6511
6558
|
}
|
|
6512
6559
|
const style = getComputedStyle(el);
|
|
6513
6560
|
const gap = parseFloat(style.columnGap) || 0;
|
|
6514
|
-
const
|
|
6561
|
+
const padding = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0);
|
|
6562
|
+
const limit = parseFloat(style.maxWidth);
|
|
6563
|
+
const border = (parseFloat(style.borderLeftWidth) || 0) + (parseFloat(style.borderRightWidth) || 0);
|
|
6564
|
+
const fromLimit = Number.isFinite(limit) ? style.boxSizing === "border-box" ? limit - border - padding : limit : 0;
|
|
6565
|
+
const available = Math.max(el.clientWidth - padding, fromLimit);
|
|
6515
6566
|
if (moreHost.value && !moreHost.value.hasAttribute("data-tao-away")) {
|
|
6516
6567
|
moreWidth = outerWidth(moreHost.value);
|
|
6517
6568
|
}
|
|
@@ -6750,16 +6801,16 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6750
6801
|
onKeydown: _cache[1] || (_cache[1] = //@ts-ignore
|
|
6751
6802
|
(...args) => unref(menu).onKeydown && unref(menu).onKeydown(...args))
|
|
6752
6803
|
}, null, 40, _hoisted_4$w)
|
|
6753
|
-
], 14, _hoisted_3$
|
|
6804
|
+
], 14, _hoisted_3$y)) : createCommentVNode("", true)
|
|
6754
6805
|
])) : createCommentVNode("", true)
|
|
6755
6806
|
], 46, _hoisted_1$J);
|
|
6756
6807
|
};
|
|
6757
6808
|
}
|
|
6758
6809
|
});
|
|
6759
|
-
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-
|
|
6810
|
+
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-bff9478a"]]);
|
|
6760
6811
|
const _hoisted_1$I = ["aria-label"];
|
|
6761
6812
|
const _hoisted_2$D = ["data-tao-away", "hidden"];
|
|
6762
|
-
const _hoisted_3$
|
|
6813
|
+
const _hoisted_3$x = ["aria-label"];
|
|
6763
6814
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
6764
6815
|
...{ name: "TaoToolbarGroup", inheritAttrs: false },
|
|
6765
6816
|
__name: "TaoToolbarGroup",
|
|
@@ -6816,7 +6867,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6816
6867
|
"aria-label": __props.label
|
|
6817
6868
|
}, _ctx.$attrs), [
|
|
6818
6869
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6819
|
-
], 16, _hoisted_3$
|
|
6870
|
+
], 16, _hoisted_3$x)
|
|
6820
6871
|
], 8, ["to", "disabled"]))
|
|
6821
6872
|
], 8, _hoisted_2$D));
|
|
6822
6873
|
};
|
|
@@ -7036,7 +7087,7 @@ const _hoisted_2$C = {
|
|
|
7036
7087
|
preserveAspectRatio: "none",
|
|
7037
7088
|
"aria-hidden": "true"
|
|
7038
7089
|
};
|
|
7039
|
-
const _hoisted_3$
|
|
7090
|
+
const _hoisted_3$w = ["d"];
|
|
7040
7091
|
const _hoisted_4$v = ["d"];
|
|
7041
7092
|
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
7042
7093
|
...{ name: "TaoSparkline" },
|
|
@@ -7075,7 +7126,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7075
7126
|
key: 0,
|
|
7076
7127
|
class: "tao-sparkline__area",
|
|
7077
7128
|
d: fill.value
|
|
7078
|
-
}, null, 8, _hoisted_3$
|
|
7129
|
+
}, null, 8, _hoisted_3$w)) : createCommentVNode("", true),
|
|
7079
7130
|
createElementVNode("path", {
|
|
7080
7131
|
class: "tao-sparkline__line",
|
|
7081
7132
|
d: line.value
|
|
@@ -7098,7 +7149,7 @@ const _hoisted_2$B = {
|
|
|
7098
7149
|
class: "tao-meter__head",
|
|
7099
7150
|
"aria-hidden": "true"
|
|
7100
7151
|
};
|
|
7101
|
-
const _hoisted_3$
|
|
7152
|
+
const _hoisted_3$v = { class: "tao-meter__label" };
|
|
7102
7153
|
const _hoisted_4$u = {
|
|
7103
7154
|
key: 0,
|
|
7104
7155
|
class: "tao-meter__value"
|
|
@@ -7139,7 +7190,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
7139
7190
|
"aria-label": __props.label
|
|
7140
7191
|
}, [
|
|
7141
7192
|
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
|
|
7142
|
-
createElementVNode("span", _hoisted_3$
|
|
7193
|
+
createElementVNode("span", _hoisted_3$v, toDisplayString(__props.label), 1),
|
|
7143
7194
|
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$u, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
|
|
7144
7195
|
])) : createCommentVNode("", true),
|
|
7145
7196
|
createElementVNode("div", _hoisted_5$o, [
|
|
@@ -7155,7 +7206,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
7155
7206
|
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-17e24a8e"]]);
|
|
7156
7207
|
const _hoisted_1$E = ["aria-label"];
|
|
7157
7208
|
const _hoisted_2$A = ["viewBox", "width", "height"];
|
|
7158
|
-
const _hoisted_3$
|
|
7209
|
+
const _hoisted_3$u = ["cx", "cy", "r", "stroke-width"];
|
|
7159
7210
|
const _hoisted_4$t = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
7160
7211
|
const _hoisted_5$n = {
|
|
7161
7212
|
key: 0,
|
|
@@ -7232,7 +7283,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
7232
7283
|
cy: centre.value,
|
|
7233
7284
|
r: radius.value,
|
|
7234
7285
|
"stroke-width": __props.thickness
|
|
7235
|
-
}, null, 8, _hoisted_3$
|
|
7286
|
+
}, null, 8, _hoisted_3$u),
|
|
7236
7287
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
7237
7288
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
7238
7289
|
key: arc.key,
|
|
@@ -7280,7 +7331,7 @@ const _hoisted_2$z = {
|
|
|
7280
7331
|
class: "tao-heatmap__row tao-heatmap__head",
|
|
7281
7332
|
role: "row"
|
|
7282
7333
|
};
|
|
7283
|
-
const _hoisted_3$
|
|
7334
|
+
const _hoisted_3$t = {
|
|
7284
7335
|
class: "tao-heatmap__name",
|
|
7285
7336
|
role: "rowheader"
|
|
7286
7337
|
};
|
|
@@ -7468,7 +7519,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
7468
7519
|
class: "tao-heatmap__row",
|
|
7469
7520
|
role: "row"
|
|
7470
7521
|
}, [
|
|
7471
|
-
createElementVNode("span", _hoisted_3$
|
|
7522
|
+
createElementVNode("span", _hoisted_3$t, toDisplayString(row), 1),
|
|
7472
7523
|
(openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
|
|
7473
7524
|
return openBlock(), createElementBlock("span", {
|
|
7474
7525
|
key: cell.key,
|
|
@@ -7539,7 +7590,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
7539
7590
|
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-496996ae"]]);
|
|
7540
7591
|
const _hoisted_1$C = { class: "tao-nav__shell" };
|
|
7541
7592
|
const _hoisted_2$y = ["aria-label"];
|
|
7542
|
-
const _hoisted_3$
|
|
7593
|
+
const _hoisted_3$s = { class: "tao-nav__column" };
|
|
7543
7594
|
const _hoisted_4$r = {
|
|
7544
7595
|
key: 0,
|
|
7545
7596
|
class: "tao-nav__action"
|
|
@@ -7561,7 +7612,7 @@ const _hoisted_11$4 = {
|
|
|
7561
7612
|
class: "tao-nav__icon",
|
|
7562
7613
|
"aria-hidden": "true"
|
|
7563
7614
|
};
|
|
7564
|
-
const _hoisted_12$
|
|
7615
|
+
const _hoisted_12$2 = { class: "tao-nav__label" };
|
|
7565
7616
|
const _hoisted_13$1 = {
|
|
7566
7617
|
key: 1,
|
|
7567
7618
|
class: "tao-nav__footer"
|
|
@@ -7638,7 +7689,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
7638
7689
|
class: normalizeClass(["tao-nav__panel", unref(surfaceClass)(__props.surface)]),
|
|
7639
7690
|
"aria-label": unref(l10n).ariaLabel
|
|
7640
7691
|
}, [
|
|
7641
|
-
createElementVNode("div", _hoisted_3$
|
|
7692
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
7642
7693
|
has("action") ? (openBlock(), createElementBlock("div", _hoisted_4$r, [
|
|
7643
7694
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
7644
7695
|
])) : createCommentVNode("", true),
|
|
@@ -7698,7 +7749,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
7698
7749
|
size: 20
|
|
7699
7750
|
})
|
|
7700
7751
|
]),
|
|
7701
|
-
createElementVNode("span", _hoisted_12$
|
|
7752
|
+
createElementVNode("span", _hoisted_12$2, toDisplayString(unref(l10n).moreLabel), 1)
|
|
7702
7753
|
], 10, _hoisted_10$4)
|
|
7703
7754
|
])) : createCommentVNode("", true)
|
|
7704
7755
|
]),
|
|
@@ -7777,7 +7828,7 @@ function toggleCheck(node, checked2, children) {
|
|
|
7777
7828
|
}
|
|
7778
7829
|
const _hoisted_1$B = ["aria-label", "aria-multiselectable"];
|
|
7779
7830
|
const _hoisted_2$x = ["id", "tabindex", "aria-level", "aria-setsize", "aria-posinset", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled", "aria-busy", "onKeydown", "onClick", "onFocus"];
|
|
7780
|
-
const _hoisted_3$
|
|
7831
|
+
const _hoisted_3$r = ["onClick"];
|
|
7781
7832
|
const _hoisted_4$q = ["title"];
|
|
7782
7833
|
const _hoisted_5$k = ["onClick"];
|
|
7783
7834
|
const _hoisted_6$f = {
|
|
@@ -8060,7 +8111,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8060
8111
|
key: 1,
|
|
8061
8112
|
name: "tao-chevron-right"
|
|
8062
8113
|
})) : createCommentVNode("", true)
|
|
8063
|
-
], 10, _hoisted_3$
|
|
8114
|
+
], 10, _hoisted_3$r),
|
|
8064
8115
|
__props.checkable ? (openBlock(), createElementBlock("span", {
|
|
8065
8116
|
key: 0,
|
|
8066
8117
|
class: normalizeClass(["tao-tree__check", `tao-tree__check--${stateOf(row)}`]),
|
|
@@ -8101,7 +8152,7 @@ const _hoisted_2$w = {
|
|
|
8101
8152
|
key: 0,
|
|
8102
8153
|
class: "tao-checklist__legend"
|
|
8103
8154
|
};
|
|
8104
|
-
const _hoisted_3$
|
|
8155
|
+
const _hoisted_3$q = { key: 0 };
|
|
8105
8156
|
const _hoisted_4$p = {
|
|
8106
8157
|
key: 1,
|
|
8107
8158
|
class: "tao-checklist__counter",
|
|
@@ -8179,7 +8230,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8179
8230
|
"aria-labelledby": labelledBy.value
|
|
8180
8231
|
}, [
|
|
8181
8232
|
__props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$w, [
|
|
8182
|
-
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8233
|
+
__props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
8183
8234
|
__props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(unref(formatText)(unref(l10n).counterText, { checked: checkedCount.value, total: __props.items.length })), 1)) : createCommentVNode("", true)
|
|
8184
8235
|
])) : createCommentVNode("", true),
|
|
8185
8236
|
__props.selectAll ? (openBlock(), createBlock(TaoCheckbox, {
|
|
@@ -8238,7 +8289,7 @@ const _hoisted_2$v = {
|
|
|
8238
8289
|
class: "tao-timeline__rail",
|
|
8239
8290
|
"aria-hidden": "true"
|
|
8240
8291
|
};
|
|
8241
|
-
const _hoisted_3$
|
|
8292
|
+
const _hoisted_3$p = {
|
|
8242
8293
|
key: 0,
|
|
8243
8294
|
class: "tao-timeline__line"
|
|
8244
8295
|
};
|
|
@@ -8286,7 +8337,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
8286
8337
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
8287
8338
|
], true)
|
|
8288
8339
|
], 2),
|
|
8289
|
-
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
8340
|
+
index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$p)) : createCommentVNode("", true)
|
|
8290
8341
|
]),
|
|
8291
8342
|
createElementVNode("div", _hoisted_4$o, [
|
|
8292
8343
|
item.time ? (openBlock(), createElementBlock("time", {
|
|
@@ -8311,12 +8362,6 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
8311
8362
|
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-48847c47"]]);
|
|
8312
8363
|
const _hoisted_1$y = ["tabindex", "aria-hidden", "inert"];
|
|
8313
8364
|
const _hoisted_2$u = { class: "tao-marquee__item" };
|
|
8314
|
-
const _hoisted_3$p = {
|
|
8315
|
-
key: 0,
|
|
8316
|
-
class: "tao-marquee__item",
|
|
8317
|
-
"aria-hidden": "true",
|
|
8318
|
-
inert: ""
|
|
8319
|
-
};
|
|
8320
8365
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
8321
8366
|
...{ name: "TaoMarquee" },
|
|
8322
8367
|
__name: "TaoMarquee",
|
|
@@ -8328,7 +8373,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8328
8373
|
pauseOnHover: { type: Boolean, default: true },
|
|
8329
8374
|
roundPause: { type: Boolean, default: void 0 },
|
|
8330
8375
|
decorative: { type: Boolean, default: false },
|
|
8331
|
-
paused: { type: Boolean, default: false }
|
|
8376
|
+
paused: { type: Boolean, default: false },
|
|
8377
|
+
fill: { type: Boolean, default: false },
|
|
8378
|
+
reverse: { type: Boolean, default: false }
|
|
8332
8379
|
},
|
|
8333
8380
|
setup(__props, { expose: __expose }) {
|
|
8334
8381
|
const props = __props;
|
|
@@ -8343,10 +8390,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8343
8390
|
let observer = null;
|
|
8344
8391
|
let motionQuery = null;
|
|
8345
8392
|
const overflowing = computed(() => itemWidth.value > boxWidth.value + 1);
|
|
8346
|
-
const running = computed(() => overflowing.value && !reduce.value);
|
|
8393
|
+
const running = computed(() => (overflowing.value || props.fill && itemWidth.value > 0) && !reduce.value);
|
|
8347
8394
|
const wrapping = computed(() => overflowing.value && reduce.value && !props.decorative);
|
|
8348
8395
|
const restAtStart = computed(() => props.roundPause ?? !props.decorative);
|
|
8349
8396
|
const stopped = computed(() => props.paused || tapped.value);
|
|
8397
|
+
const copies = computed(() => {
|
|
8398
|
+
if (!running.value) return 1;
|
|
8399
|
+
if (overflowing.value) return 2;
|
|
8400
|
+
return Math.min(100, Math.ceil(boxWidth.value / (itemWidth.value + props.gap)) + 1);
|
|
8401
|
+
});
|
|
8350
8402
|
const trackStyle = computed(() => {
|
|
8351
8403
|
const shift = itemWidth.value + props.gap;
|
|
8352
8404
|
return {
|
|
@@ -8383,6 +8435,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8383
8435
|
if (box.value && "ResizeObserver" in window) {
|
|
8384
8436
|
observer = new ResizeObserver(measure);
|
|
8385
8437
|
observer.observe(box.value);
|
|
8438
|
+
if (meter.value) observer.observe(meter.value);
|
|
8386
8439
|
}
|
|
8387
8440
|
});
|
|
8388
8441
|
watch(
|
|
@@ -8408,7 +8461,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8408
8461
|
"tao-marquee--stopped": stopped.value,
|
|
8409
8462
|
"tao-marquee--hover-pause": __props.pauseOnHover && !__props.decorative,
|
|
8410
8463
|
"tao-marquee--seamless": !restAtStart.value,
|
|
8411
|
-
"tao-marquee--ghost": __props.decorative
|
|
8464
|
+
"tao-marquee--ghost": __props.decorative,
|
|
8465
|
+
"tao-marquee--reverse": __props.reverse
|
|
8412
8466
|
}]),
|
|
8413
8467
|
style: normalizeStyle({ "--_fade": `${__props.fade}px` }),
|
|
8414
8468
|
tabindex: running.value && !__props.decorative ? 0 : void 0,
|
|
@@ -8436,17 +8490,24 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8436
8490
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
8437
8491
|
], 64))
|
|
8438
8492
|
]),
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8493
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(copies.value - 1, (n) => {
|
|
8494
|
+
return openBlock(), createElementBlock("span", {
|
|
8495
|
+
key: n,
|
|
8496
|
+
class: "tao-marquee__item",
|
|
8497
|
+
"aria-hidden": "true",
|
|
8498
|
+
inert: ""
|
|
8499
|
+
}, [
|
|
8500
|
+
hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8501
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
8502
|
+
], 64))
|
|
8503
|
+
]);
|
|
8504
|
+
}), 128))
|
|
8444
8505
|
], 4)
|
|
8445
8506
|
], 46, _hoisted_1$y);
|
|
8446
8507
|
};
|
|
8447
8508
|
}
|
|
8448
8509
|
});
|
|
8449
|
-
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
8510
|
+
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-0b681cd1"]]);
|
|
8450
8511
|
const PIN_CELL = "#";
|
|
8451
8512
|
function parsePinFormat(format) {
|
|
8452
8513
|
const mask = [...format];
|
|
@@ -9108,7 +9169,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
9108
9169
|
};
|
|
9109
9170
|
}
|
|
9110
9171
|
});
|
|
9111
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
9172
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-8edb0d09"]]);
|
|
9112
9173
|
const segmentedKey = Symbol("taoSegmented");
|
|
9113
9174
|
const _hoisted_1$u = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
|
|
9114
9175
|
const _hoisted_2$r = {
|
|
@@ -9697,7 +9758,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9697
9758
|
};
|
|
9698
9759
|
}
|
|
9699
9760
|
});
|
|
9700
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
9761
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-d42483b7"]]);
|
|
9701
9762
|
const _hoisted_1$r = ["disabled", "aria-label", "aria-expanded"];
|
|
9702
9763
|
const _hoisted_2$o = ["disabled"];
|
|
9703
9764
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
@@ -9793,7 +9854,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9793
9854
|
};
|
|
9794
9855
|
}
|
|
9795
9856
|
});
|
|
9796
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
9857
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-c849f0f5"]]);
|
|
9797
9858
|
const _hoisted_1$q = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
9798
9859
|
const _hoisted_2$n = {
|
|
9799
9860
|
key: 0,
|
|
@@ -10247,7 +10308,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
10247
10308
|
};
|
|
10248
10309
|
}
|
|
10249
10310
|
});
|
|
10250
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
10311
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-14e11c2a"]]);
|
|
10251
10312
|
function presetLine(options) {
|
|
10252
10313
|
const usable2 = options.filter((option) => !option.disabled);
|
|
10253
10314
|
return [...usable2.filter((option) => !option.default), ...usable2.filter((option) => option.default)];
|
|
@@ -10641,10 +10702,6 @@ const _hoisted_10$3 = {
|
|
|
10641
10702
|
class: "tao-command-list__where"
|
|
10642
10703
|
};
|
|
10643
10704
|
const _hoisted_11$3 = {
|
|
10644
|
-
key: 2,
|
|
10645
|
-
class: "tao-command-list__shortcut"
|
|
10646
|
-
};
|
|
10647
|
-
const _hoisted_12$2 = {
|
|
10648
10705
|
key: 0,
|
|
10649
10706
|
class: "tao-command-list__empty",
|
|
10650
10707
|
role: "presentation"
|
|
@@ -10828,12 +10885,21 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10828
10885
|
row.match.item.description ? (openBlock(), createElementBlock("span", _hoisted_9$5, toDisplayString(row.match.item.description), 1)) : createCommentVNode("", true)
|
|
10829
10886
|
]),
|
|
10830
10887
|
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(),
|
|
10888
|
+
row.match.item.shortcut ? (openBlock(), createBlock(_sfc_main$1p, {
|
|
10889
|
+
key: 2,
|
|
10890
|
+
variant: "plain",
|
|
10891
|
+
class: "tao-command-list__shortcut"
|
|
10892
|
+
}, {
|
|
10893
|
+
default: withCtx(() => [
|
|
10894
|
+
createTextVNode(toDisplayString(row.match.item.shortcut), 1)
|
|
10895
|
+
]),
|
|
10896
|
+
_: 2
|
|
10897
|
+
}, 1024)) : createCommentVNode("", true)
|
|
10832
10898
|
], true)
|
|
10833
10899
|
], 42, _hoisted_5$e))
|
|
10834
10900
|
], 64);
|
|
10835
10901
|
}), 128)),
|
|
10836
|
-
!results.value.length ? (openBlock(), createElementBlock("li",
|
|
10902
|
+
!results.value.length ? (openBlock(), createElementBlock("li", _hoisted_11$3, [
|
|
10837
10903
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
10838
10904
|
createTextVNode(toDisplayString(__props.emptyText ?? unref(l10n).emptyText), 1)
|
|
10839
10905
|
], true)
|
|
@@ -10843,7 +10909,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10843
10909
|
};
|
|
10844
10910
|
}
|
|
10845
10911
|
});
|
|
10846
|
-
const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-
|
|
10912
|
+
const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-7e038749"]]);
|
|
10847
10913
|
const _hoisted_1$n = ["aria-modal", "aria-label"];
|
|
10848
10914
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
10849
10915
|
...{ name: "TaoCommandPalette", inheritAttrs: false },
|
|
@@ -15406,6 +15472,7 @@ const components = [
|
|
|
15406
15472
|
TaoTabs,
|
|
15407
15473
|
TaoScrubber,
|
|
15408
15474
|
TaoTooltip,
|
|
15475
|
+
_sfc_main$1p,
|
|
15409
15476
|
TaoPopover,
|
|
15410
15477
|
TaoSpoiler,
|
|
15411
15478
|
TaoSpoilerGroup,
|
|
@@ -15541,6 +15608,7 @@ export {
|
|
|
15541
15608
|
TaoInput,
|
|
15542
15609
|
TaoInputGroup,
|
|
15543
15610
|
TaoInputNumber,
|
|
15611
|
+
_sfc_main$1p as TaoKbd,
|
|
15544
15612
|
_sfc_main$y as TaoLink,
|
|
15545
15613
|
TaoList,
|
|
15546
15614
|
TaoListItem,
|