@1337exp/taoui 5.27.1 → 5.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +707 -697
- package/README.md +1 -0
- package/README.ru.md +1 -0
- package/dist/index.d.ts +252 -178
- package/dist/index.js +256 -142
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +105 -105
- package/skills/taoui/SKILL.md +1 -1
- package/skills/taoui/references/components.md +1297 -1282
- package/src/styles/contexts/stretch.css +62 -0
- package/src/styles/index.css +1 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition, withCtx, Fragment, renderList, createTextVNode, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent,
|
|
1
|
+
import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition, withCtx, Fragment, renderList, createTextVNode, 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";
|
|
@@ -99,7 +99,7 @@ function resolveTaoIcon(name) {
|
|
|
99
99
|
const taoIconNames = Object.keys(builtin).map((name) => TAO_ICON_PREFIX + name);
|
|
100
100
|
const _hoisted_1$18 = { class: "tao-icon" };
|
|
101
101
|
const _hoisted_2$_ = ["viewBox", "width", "height", "innerHTML"];
|
|
102
|
-
const _sfc_main$
|
|
102
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
103
103
|
...{ name: "TaoIcon" },
|
|
104
104
|
__name: "TaoIcon",
|
|
105
105
|
props: {
|
|
@@ -152,7 +152,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
152
152
|
}
|
|
153
153
|
return target;
|
|
154
154
|
};
|
|
155
|
-
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
155
|
+
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-ef842331"]]);
|
|
156
156
|
const localeEn = {
|
|
157
157
|
code: "en-US",
|
|
158
158
|
alert: { closeLabel: "Close", detailsLabel: "Details" },
|
|
@@ -258,6 +258,7 @@ const localeEn = {
|
|
|
258
258
|
clearText: "Clear"
|
|
259
259
|
},
|
|
260
260
|
scrubber: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
|
|
261
|
+
slider: { editLabel: "Value" },
|
|
261
262
|
toast: { closeLabel: "Close notification" }
|
|
262
263
|
};
|
|
263
264
|
const confirmDefaults = {
|
|
@@ -491,6 +492,7 @@ const localeRu = {
|
|
|
491
492
|
clearText: "Очистить"
|
|
492
493
|
},
|
|
493
494
|
scrubber: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
|
|
495
|
+
slider: { editLabel: "Значение" },
|
|
494
496
|
toast: { closeLabel: "Закрыть уведомление" }
|
|
495
497
|
};
|
|
496
498
|
const language = (tag) => tag.toLowerCase().split(/[-_]/)[0] ?? "";
|
|
@@ -606,7 +608,7 @@ const _hoisted_6$q = {
|
|
|
606
608
|
key: 4,
|
|
607
609
|
class: "tao-sr-only"
|
|
608
610
|
};
|
|
609
|
-
const _sfc_main$
|
|
611
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
610
612
|
...{ name: "TaoLoader" },
|
|
611
613
|
__name: "TaoLoader",
|
|
612
614
|
props: {
|
|
@@ -657,7 +659,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
657
659
|
};
|
|
658
660
|
}
|
|
659
661
|
});
|
|
660
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
662
|
+
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-03f29efb"]]);
|
|
661
663
|
const _hoisted_1$16 = ["type", "aria-pressed", "aria-keyshortcuts", "aria-busy", "disabled"];
|
|
662
664
|
const _hoisted_2$Y = {
|
|
663
665
|
key: 2,
|
|
@@ -668,7 +670,7 @@ const _hoisted_3$P = {
|
|
|
668
670
|
class: "tao-button__shortcut",
|
|
669
671
|
"aria-hidden": "true"
|
|
670
672
|
};
|
|
671
|
-
const _sfc_main$
|
|
673
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
672
674
|
...{ name: "TaoButton" },
|
|
673
675
|
__name: "TaoButton",
|
|
674
676
|
props: {
|
|
@@ -755,7 +757,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
755
757
|
};
|
|
756
758
|
}
|
|
757
759
|
});
|
|
758
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
760
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-278f587a"]]);
|
|
759
761
|
function toCssLength(value) {
|
|
760
762
|
if (value === void 0 || value === null || value === "") {
|
|
761
763
|
return void 0;
|
|
@@ -774,7 +776,7 @@ function stripeClasses(stripe, tone = "accent") {
|
|
|
774
776
|
function surfaceClass(surface) {
|
|
775
777
|
return surface && surface !== "flat" ? `tao-surface-${surface}` : void 0;
|
|
776
778
|
}
|
|
777
|
-
const _sfc_main$
|
|
779
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
778
780
|
...{ name: "TaoBlock" },
|
|
779
781
|
__name: "TaoBlock",
|
|
780
782
|
props: {
|
|
@@ -807,7 +809,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
807
809
|
};
|
|
808
810
|
}
|
|
809
811
|
});
|
|
810
|
-
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
812
|
+
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-1fc66575"]]);
|
|
811
813
|
function useControlAttrs() {
|
|
812
814
|
const attrs = useAttrs();
|
|
813
815
|
return {
|
|
@@ -838,7 +840,7 @@ const _hoisted_3$O = {
|
|
|
838
840
|
key: 1,
|
|
839
841
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
840
842
|
};
|
|
841
|
-
const _sfc_main$
|
|
843
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
842
844
|
...{ name: "TaoInput", inheritAttrs: false },
|
|
843
845
|
__name: "TaoInput",
|
|
844
846
|
props: {
|
|
@@ -908,7 +910,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
908
910
|
};
|
|
909
911
|
}
|
|
910
912
|
});
|
|
911
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
913
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-5b617319"]]);
|
|
912
914
|
const _hoisted_1$14 = {
|
|
913
915
|
key: 0,
|
|
914
916
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
@@ -918,7 +920,7 @@ const _hoisted_3$N = {
|
|
|
918
920
|
key: 1,
|
|
919
921
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
920
922
|
};
|
|
921
|
-
const _sfc_main$
|
|
923
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
922
924
|
...{ name: "TaoInputGroup" },
|
|
923
925
|
__name: "TaoInputGroup",
|
|
924
926
|
props: {
|
|
@@ -956,7 +958,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
956
958
|
};
|
|
957
959
|
}
|
|
958
960
|
});
|
|
959
|
-
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
961
|
+
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-55b2d297"]]);
|
|
960
962
|
const _hoisted_1$13 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
961
963
|
const _hoisted_2$V = {
|
|
962
964
|
key: 0,
|
|
@@ -966,7 +968,7 @@ const _hoisted_3$M = ["aria-label", "disabled"];
|
|
|
966
968
|
const _hoisted_4$F = { "aria-hidden": "true" };
|
|
967
969
|
const _hoisted_5$v = ["aria-label", "disabled"];
|
|
968
970
|
const _hoisted_6$p = { "aria-hidden": "true" };
|
|
969
|
-
const _sfc_main$
|
|
971
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
970
972
|
...{ name: "TaoInputNumber", inheritAttrs: false },
|
|
971
973
|
__name: "TaoInputNumber",
|
|
972
974
|
props: {
|
|
@@ -1160,13 +1162,13 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
1160
1162
|
};
|
|
1161
1163
|
}
|
|
1162
1164
|
});
|
|
1163
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1165
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-dc5bb759"]]);
|
|
1164
1166
|
const _hoisted_1$12 = ["aria-label", "disabled"];
|
|
1165
1167
|
const _hoisted_2$U = { "aria-hidden": "true" };
|
|
1166
1168
|
const _hoisted_3$L = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
1167
1169
|
const _hoisted_4$E = ["aria-label", "disabled"];
|
|
1168
1170
|
const _hoisted_5$u = { "aria-hidden": "true" };
|
|
1169
|
-
const _sfc_main$
|
|
1171
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
1170
1172
|
...{ name: "TaoQuantity", inheritAttrs: false },
|
|
1171
1173
|
__name: "TaoQuantity",
|
|
1172
1174
|
props: {
|
|
@@ -1349,7 +1351,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1349
1351
|
};
|
|
1350
1352
|
}
|
|
1351
1353
|
});
|
|
1352
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1354
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-6453479c"]]);
|
|
1353
1355
|
const _hoisted_1$11 = {
|
|
1354
1356
|
key: 0,
|
|
1355
1357
|
class: "tao-card__media"
|
|
@@ -1374,7 +1376,7 @@ const _hoisted_6$o = {
|
|
|
1374
1376
|
key: 0,
|
|
1375
1377
|
class: "tao-card__title"
|
|
1376
1378
|
};
|
|
1377
|
-
const _hoisted_7$
|
|
1379
|
+
const _hoisted_7$k = {
|
|
1378
1380
|
key: 1,
|
|
1379
1381
|
class: "tao-card__sub"
|
|
1380
1382
|
};
|
|
@@ -1391,7 +1393,7 @@ const _hoisted_10$5 = {
|
|
|
1391
1393
|
class: "tao-card__corner"
|
|
1392
1394
|
};
|
|
1393
1395
|
const _hoisted_11$4 = ["aria-label"];
|
|
1394
|
-
const _sfc_main$
|
|
1396
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
1395
1397
|
...{ name: "TaoCard" },
|
|
1396
1398
|
__name: "TaoCard",
|
|
1397
1399
|
props: {
|
|
@@ -1464,7 +1466,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1464
1466
|
_ctx.$slots.title ? (openBlock(), createElementBlock("h2", _hoisted_6$o, [
|
|
1465
1467
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
1466
1468
|
])) : createCommentVNode("", true),
|
|
1467
|
-
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
1469
|
+
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_7$k, [
|
|
1468
1470
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1469
1471
|
])) : createCommentVNode("", true)
|
|
1470
1472
|
])) : createCommentVNode("", true),
|
|
@@ -1494,7 +1496,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1494
1496
|
};
|
|
1495
1497
|
}
|
|
1496
1498
|
});
|
|
1497
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1499
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-72c9a80f"]]);
|
|
1498
1500
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1499
1501
|
function getFocusable(root) {
|
|
1500
1502
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -1665,12 +1667,12 @@ const _hoisted_3$J = ["id"];
|
|
|
1665
1667
|
const _hoisted_4$C = { key: 1 };
|
|
1666
1668
|
const _hoisted_5$s = ["aria-label"];
|
|
1667
1669
|
const _hoisted_6$n = { "aria-hidden": "true" };
|
|
1668
|
-
const _hoisted_7$
|
|
1670
|
+
const _hoisted_7$j = { class: "tao-modal__content" };
|
|
1669
1671
|
const _hoisted_8$c = {
|
|
1670
1672
|
key: 1,
|
|
1671
1673
|
class: "tao-modal__footer"
|
|
1672
1674
|
};
|
|
1673
|
-
const _sfc_main$
|
|
1675
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
1674
1676
|
...{ name: "TaoModal", inheritAttrs: false },
|
|
1675
1677
|
__name: "TaoModal",
|
|
1676
1678
|
props: {
|
|
@@ -1775,7 +1777,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1775
1777
|
])
|
|
1776
1778
|
], 8, _hoisted_5$s)) : createCommentVNode("", true)
|
|
1777
1779
|
])) : createCommentVNode("", true),
|
|
1778
|
-
createElementVNode("div", _hoisted_7$
|
|
1780
|
+
createElementVNode("div", _hoisted_7$j, [
|
|
1779
1781
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1780
1782
|
]),
|
|
1781
1783
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
|
|
@@ -1790,10 +1792,10 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1790
1792
|
};
|
|
1791
1793
|
}
|
|
1792
1794
|
});
|
|
1793
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1795
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-347eb7af"]]);
|
|
1794
1796
|
const _hoisted_1$$ = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1795
1797
|
const _hoisted_2$R = ["id", "aria-labelledby"];
|
|
1796
|
-
const _sfc_main$
|
|
1798
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
1797
1799
|
...{ name: "TaoTabs" },
|
|
1798
1800
|
__name: "TaoTabs",
|
|
1799
1801
|
props: {
|
|
@@ -1903,7 +1905,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1903
1905
|
};
|
|
1904
1906
|
}
|
|
1905
1907
|
});
|
|
1906
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1908
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-70811078"]]);
|
|
1907
1909
|
function listenFocusLoss(onLoss) {
|
|
1908
1910
|
function onVisibilityChange() {
|
|
1909
1911
|
if (document.hidden) {
|
|
@@ -2417,21 +2419,22 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
|
|
|
2417
2419
|
return `linear-gradient(${vertical ? "to top" : "to right"}, ${stops.join(", ")})`;
|
|
2418
2420
|
}
|
|
2419
2421
|
const _hoisted_1$_ = ["aria-disabled"];
|
|
2420
|
-
const _hoisted_2$Q = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
|
|
2422
|
+
const _hoisted_2$Q = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "aria-keyshortcuts", "onKeydown"];
|
|
2421
2423
|
const _hoisted_3$I = {
|
|
2422
2424
|
key: 2,
|
|
2423
2425
|
class: "tao-slider__value"
|
|
2424
2426
|
};
|
|
2425
|
-
const _hoisted_4$B =
|
|
2427
|
+
const _hoisted_4$B = ["aria-label", "onKeydown"];
|
|
2428
|
+
const _hoisted_5$r = {
|
|
2426
2429
|
key: 0,
|
|
2427
2430
|
class: "tao-slider__marks"
|
|
2428
2431
|
};
|
|
2429
|
-
const
|
|
2430
|
-
const
|
|
2432
|
+
const _hoisted_6$m = ["disabled", "onClick"];
|
|
2433
|
+
const _hoisted_7$i = {
|
|
2431
2434
|
key: 0,
|
|
2432
2435
|
class: "tao-slider__mark-label"
|
|
2433
2436
|
};
|
|
2434
|
-
const _sfc_main$
|
|
2437
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
2435
2438
|
...{ name: "TaoSliderBase" },
|
|
2436
2439
|
__name: "TaoSliderBase",
|
|
2437
2440
|
props: {
|
|
@@ -2454,6 +2457,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2454
2457
|
size: {},
|
|
2455
2458
|
ariaLabel: {},
|
|
2456
2459
|
wheel: { default: 0 },
|
|
2460
|
+
editable: { type: Boolean, default: false },
|
|
2461
|
+
editLabel: {},
|
|
2457
2462
|
modelValue: {}
|
|
2458
2463
|
},
|
|
2459
2464
|
emits: ["update:modelValue", "change"],
|
|
@@ -2461,6 +2466,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2461
2466
|
const props = __props;
|
|
2462
2467
|
const emit = __emit;
|
|
2463
2468
|
const { controlId, invalid, describedBy } = useField(props);
|
|
2469
|
+
const l10n = useLocaleText(props, "slider");
|
|
2464
2470
|
const isRange = computed(() => Array.isArray(props.modelValue));
|
|
2465
2471
|
const values = computed(() => normalizeValue(props.modelValue, props.min, props.max));
|
|
2466
2472
|
const text = (v) => props.format ? props.format(v) : String(v);
|
|
@@ -2585,6 +2591,53 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2585
2591
|
if (dragPointer !== -1 && event.pointerId !== dragPointer) return;
|
|
2586
2592
|
endDrag();
|
|
2587
2593
|
}
|
|
2594
|
+
const editorRef = ref(null);
|
|
2595
|
+
const editing = ref(null);
|
|
2596
|
+
const draft = ref("");
|
|
2597
|
+
const DECIMAL = /^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?$/i;
|
|
2598
|
+
function openEditor(index) {
|
|
2599
|
+
if (!props.editable || props.disabled) return;
|
|
2600
|
+
endDrag();
|
|
2601
|
+
activeThumb.value = index;
|
|
2602
|
+
draft.value = String(values.value[index]);
|
|
2603
|
+
editing.value = index;
|
|
2604
|
+
void nextTick(() => {
|
|
2605
|
+
editorRef.value?.focus();
|
|
2606
|
+
editorRef.value?.select();
|
|
2607
|
+
});
|
|
2608
|
+
}
|
|
2609
|
+
function closeEditor(refocus) {
|
|
2610
|
+
const index = editing.value;
|
|
2611
|
+
editing.value = null;
|
|
2612
|
+
if (refocus && index !== null) {
|
|
2613
|
+
void nextTick(() => railRef.value?.querySelectorAll(".tao-slider__thumb")[index]?.focus({ preventScroll: true }));
|
|
2614
|
+
}
|
|
2615
|
+
return index;
|
|
2616
|
+
}
|
|
2617
|
+
function commitEditor(refocus = false) {
|
|
2618
|
+
const index = closeEditor(refocus);
|
|
2619
|
+
if (index === null) return;
|
|
2620
|
+
const typed = draft.value.trim().replace(/\s/g, "").replace(",", ".");
|
|
2621
|
+
if (!DECIMAL.test(typed)) return;
|
|
2622
|
+
const parsed = Number(typed);
|
|
2623
|
+
if (!Number.isFinite(parsed)) return;
|
|
2624
|
+
const target = stepped.value ? nearestMark(parsed, markValues.value) : valueAt(ratioOf(parsed, props.min, props.max), props.min, props.max, props.step);
|
|
2625
|
+
setThumb(index, target, true);
|
|
2626
|
+
}
|
|
2627
|
+
function cancelEditor() {
|
|
2628
|
+
closeEditor(true);
|
|
2629
|
+
}
|
|
2630
|
+
function onEditGesture(event) {
|
|
2631
|
+
if (!props.editable || props.disabled) return;
|
|
2632
|
+
event.preventDefault();
|
|
2633
|
+
openEditor(nearestThumb(values.value, valueUnder(event), activeThumb.value));
|
|
2634
|
+
}
|
|
2635
|
+
watch(
|
|
2636
|
+
() => props.disabled || !props.editable,
|
|
2637
|
+
(off) => {
|
|
2638
|
+
if (off) editing.value = null;
|
|
2639
|
+
}
|
|
2640
|
+
);
|
|
2588
2641
|
function onKeydown2(event, index) {
|
|
2589
2642
|
if (props.disabled) return;
|
|
2590
2643
|
pointerFocus.value = false;
|
|
@@ -2603,6 +2656,10 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2603
2656
|
next = props.min;
|
|
2604
2657
|
} else if (event.key === "End") {
|
|
2605
2658
|
next = props.max;
|
|
2659
|
+
} else if (props.editable && (event.key === "Enter" || event.key === "F2")) {
|
|
2660
|
+
event.preventDefault();
|
|
2661
|
+
openEditor(index);
|
|
2662
|
+
return;
|
|
2606
2663
|
}
|
|
2607
2664
|
if (next === null) return;
|
|
2608
2665
|
event.preventDefault();
|
|
@@ -2660,9 +2717,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2660
2717
|
onPointermove: onPointerMove,
|
|
2661
2718
|
onPointerup: onPointerEnd,
|
|
2662
2719
|
onPointercancel: onPointerEnd,
|
|
2663
|
-
onLostpointercapture: endDrag
|
|
2720
|
+
onLostpointercapture: endDrag,
|
|
2721
|
+
onContextmenu: onEditGesture,
|
|
2722
|
+
onDblclick: onEditGesture
|
|
2664
2723
|
}, [
|
|
2665
|
-
_cache[
|
|
2724
|
+
_cache[8] || (_cache[8] = createElementVNode("div", { class: "tao-slider__track" }, null, -1)),
|
|
2666
2725
|
zoneList.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2667
2726
|
createElementVNode("div", {
|
|
2668
2727
|
class: "tao-slider__track tao-slider__zones tao-slider__zones--dim",
|
|
@@ -2702,6 +2761,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2702
2761
|
"aria-disabled": __props.disabled || void 0,
|
|
2703
2762
|
"aria-invalid": unref(invalid) || void 0,
|
|
2704
2763
|
"aria-describedby": unref(describedBy),
|
|
2764
|
+
"aria-keyshortcuts": __props.editable ? "Enter F2" : void 0,
|
|
2705
2765
|
onKeydown: ($event) => onKeydown2($event, i),
|
|
2706
2766
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
2707
2767
|
}, null, 46, _hoisted_2$Q),
|
|
@@ -2720,13 +2780,40 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2720
2780
|
], 6)) : createCommentVNode("", true)
|
|
2721
2781
|
], 64);
|
|
2722
2782
|
}), 128)),
|
|
2723
|
-
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
|
|
2783
|
+
__props.showValue && editing.value === null ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
|
|
2724
2784
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2725
2785
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2726
2786
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
2727
|
-
])) : createCommentVNode("", true)
|
|
2787
|
+
])) : createCommentVNode("", true),
|
|
2788
|
+
editing.value !== null ? withDirectives((openBlock(), createElementBlock("input", {
|
|
2789
|
+
key: 3,
|
|
2790
|
+
ref_key: "editorRef",
|
|
2791
|
+
ref: editorRef,
|
|
2792
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => draft.value = $event),
|
|
2793
|
+
class: "tao-slider__editor",
|
|
2794
|
+
type: "text",
|
|
2795
|
+
inputmode: "decimal",
|
|
2796
|
+
autocomplete: "off",
|
|
2797
|
+
spellcheck: "false",
|
|
2798
|
+
"aria-label": __props.ariaLabel ?? unref(l10n).editLabel,
|
|
2799
|
+
onKeydown: [
|
|
2800
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => commitEditor(true), ["prevent"]), ["enter"])),
|
|
2801
|
+
withKeys(withModifiers(cancelEditor, ["prevent", "stop"]), ["esc"])
|
|
2802
|
+
],
|
|
2803
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => commitEditor()),
|
|
2804
|
+
onPointerdown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
2805
|
+
}, ["stop"])),
|
|
2806
|
+
onContextmenu: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
2807
|
+
}, ["stop"])),
|
|
2808
|
+
onDblclick: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
2809
|
+
}, ["stop"])),
|
|
2810
|
+
onWheel: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
2811
|
+
}, ["stop"]))
|
|
2812
|
+
}, null, 40, _hoisted_4$B)), [
|
|
2813
|
+
[vModelText, draft.value]
|
|
2814
|
+
]) : createCommentVNode("", true)
|
|
2728
2815
|
], 34),
|
|
2729
|
-
markList.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
2816
|
+
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5$r, [
|
|
2730
2817
|
(openBlock(true), createElementBlock(Fragment, null, renderList(markList.value, (mark) => {
|
|
2731
2818
|
return openBlock(), createElementBlock("button", {
|
|
2732
2819
|
key: mark.value,
|
|
@@ -2741,8 +2828,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2741
2828
|
tabindex: "-1",
|
|
2742
2829
|
onClick: ($event) => onMarkClick(mark)
|
|
2743
2830
|
}, [
|
|
2744
|
-
_cache[
|
|
2745
|
-
mark.label ? (openBlock(), createElementBlock("span",
|
|
2831
|
+
_cache[9] || (_cache[9] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
|
|
2832
|
+
mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$i, [
|
|
2746
2833
|
renderSlot(_ctx.$slots, "mark", {
|
|
2747
2834
|
mark,
|
|
2748
2835
|
active: unref(isMarkActive)(mark.value, values.value)
|
|
@@ -2750,15 +2837,15 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2750
2837
|
createTextVNode(toDisplayString(mark.label), 1)
|
|
2751
2838
|
], true)
|
|
2752
2839
|
])) : createCommentVNode("", true)
|
|
2753
|
-
], 14,
|
|
2840
|
+
], 14, _hoisted_6$m);
|
|
2754
2841
|
}), 128))
|
|
2755
2842
|
])) : createCommentVNode("", true)
|
|
2756
2843
|
], 42, _hoisted_1$_);
|
|
2757
2844
|
};
|
|
2758
2845
|
}
|
|
2759
2846
|
});
|
|
2760
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2761
|
-
const _sfc_main$
|
|
2847
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-8ec84551"]]);
|
|
2848
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
2762
2849
|
...{ name: "TaoSlider" },
|
|
2763
2850
|
__name: "TaoSlider",
|
|
2764
2851
|
props: {
|
|
@@ -2781,6 +2868,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2781
2868
|
size: {},
|
|
2782
2869
|
ariaLabel: {},
|
|
2783
2870
|
wheel: {},
|
|
2871
|
+
editable: { type: Boolean },
|
|
2872
|
+
editLabel: {},
|
|
2784
2873
|
modelValue: {}
|
|
2785
2874
|
},
|
|
2786
2875
|
emits: ["update:modelValue", "change"],
|
|
@@ -2830,7 +2919,7 @@ const _hoisted_3$H = {
|
|
|
2830
2919
|
key: 0,
|
|
2831
2920
|
class: "tao-scrubber__time"
|
|
2832
2921
|
};
|
|
2833
|
-
const _sfc_main$
|
|
2922
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
2834
2923
|
...{ name: "TaoScrubber" },
|
|
2835
2924
|
__name: "TaoScrubber",
|
|
2836
2925
|
props: {
|
|
@@ -2901,7 +2990,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2901
2990
|
}, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
|
|
2902
2991
|
]),
|
|
2903
2992
|
createElementVNode("div", _hoisted_2$P, [
|
|
2904
|
-
createVNode(_sfc_main$
|
|
2993
|
+
createVNode(_sfc_main$19, {
|
|
2905
2994
|
"model-value": __props.modelValue,
|
|
2906
2995
|
min: 0,
|
|
2907
2996
|
max: __props.length,
|
|
@@ -2937,7 +3026,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2937
3026
|
};
|
|
2938
3027
|
}
|
|
2939
3028
|
});
|
|
2940
|
-
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3029
|
+
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-517dc331"]]);
|
|
2941
3030
|
const opposite = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
2942
3031
|
function computePosition(input) {
|
|
2943
3032
|
const { anchor, size, viewport, placement = "bottom-start", gap = 4, pad = 8, flip = true } = input;
|
|
@@ -3065,7 +3154,7 @@ function useFloating(anchor, panel, open, options = {}) {
|
|
|
3065
3154
|
});
|
|
3066
3155
|
return { style, side, anchorOffset, placed, update };
|
|
3067
3156
|
}
|
|
3068
|
-
const _sfc_main$
|
|
3157
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
3069
3158
|
...{ name: "TaoTooltip" },
|
|
3070
3159
|
__name: "TaoTooltip",
|
|
3071
3160
|
props: {
|
|
@@ -3143,7 +3232,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3143
3232
|
};
|
|
3144
3233
|
}
|
|
3145
3234
|
});
|
|
3146
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3235
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-32ae3936"]]);
|
|
3147
3236
|
function useDismiss(open, inside, onDismiss) {
|
|
3148
3237
|
function onPointer(event) {
|
|
3149
3238
|
const target = event.target;
|
|
@@ -3173,7 +3262,7 @@ function useDismiss(open, inside, onDismiss) {
|
|
|
3173
3262
|
onBeforeUnmount(stop);
|
|
3174
3263
|
}
|
|
3175
3264
|
const _hoisted_1$Y = { class: "tao-popover" };
|
|
3176
|
-
const _sfc_main$
|
|
3265
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
3177
3266
|
...{ name: "TaoPopover" },
|
|
3178
3267
|
__name: "TaoPopover",
|
|
3179
3268
|
props: {
|
|
@@ -3256,7 +3345,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3256
3345
|
};
|
|
3257
3346
|
}
|
|
3258
3347
|
});
|
|
3259
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3348
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-6822af1e"]]);
|
|
3260
3349
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
3261
3350
|
function frameStyle(bordered) {
|
|
3262
3351
|
if (bordered === void 0 || bordered === null) {
|
|
@@ -3271,7 +3360,7 @@ const _hoisted_2$O = {
|
|
|
3271
3360
|
};
|
|
3272
3361
|
const _hoisted_3$G = ["id"];
|
|
3273
3362
|
const _hoisted_4$A = { class: "tao-spoiler__content-inner" };
|
|
3274
|
-
const _sfc_main$
|
|
3363
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3275
3364
|
...{ name: "TaoSpoiler" },
|
|
3276
3365
|
__name: "TaoSpoiler",
|
|
3277
3366
|
props: {
|
|
@@ -3373,9 +3462,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3373
3462
|
};
|
|
3374
3463
|
}
|
|
3375
3464
|
});
|
|
3376
|
-
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3465
|
+
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-1e16d6d1"]]);
|
|
3377
3466
|
const _hoisted_1$W = { class: "tao-spoiler-group" };
|
|
3378
|
-
const _sfc_main$
|
|
3467
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3379
3468
|
...{ name: "TaoSpoilerGroup" },
|
|
3380
3469
|
__name: "TaoSpoilerGroup",
|
|
3381
3470
|
props: {
|
|
@@ -3406,9 +3495,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3406
3495
|
};
|
|
3407
3496
|
}
|
|
3408
3497
|
});
|
|
3409
|
-
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3498
|
+
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-7986fd2a"]]);
|
|
3410
3499
|
const _hoisted_1$V = ["aria-label"];
|
|
3411
|
-
const _sfc_main$
|
|
3500
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
3412
3501
|
...{ name: "TaoCopy" },
|
|
3413
3502
|
__name: "TaoCopy",
|
|
3414
3503
|
props: {
|
|
@@ -3496,7 +3585,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3496
3585
|
};
|
|
3497
3586
|
}
|
|
3498
3587
|
});
|
|
3499
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3588
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-e181129d"]]);
|
|
3500
3589
|
function readTaoMode(el) {
|
|
3501
3590
|
const mode = el.getAttribute("data-tao-mode");
|
|
3502
3591
|
if (mode === "light" || mode === "dark") {
|
|
@@ -3511,7 +3600,7 @@ function applyTaoMode(el, mode) {
|
|
|
3511
3600
|
el.setAttribute("data-tao-theme", mode);
|
|
3512
3601
|
}
|
|
3513
3602
|
}
|
|
3514
|
-
const _sfc_main$
|
|
3603
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
3515
3604
|
...{ name: "TaoThemeToggle" },
|
|
3516
3605
|
__name: "TaoThemeToggle",
|
|
3517
3606
|
props: {
|
|
@@ -3652,7 +3741,7 @@ const _hoisted_8$b = {
|
|
|
3652
3741
|
};
|
|
3653
3742
|
const _hoisted_9$8 = { class: "tao-tour__progress-text" };
|
|
3654
3743
|
const _hoisted_10$4 = { class: "tao-tour__actions" };
|
|
3655
|
-
const _sfc_main$
|
|
3744
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
3656
3745
|
...{ name: "TaoTour" },
|
|
3657
3746
|
__name: "TaoTour",
|
|
3658
3747
|
props: {
|
|
@@ -3909,7 +3998,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3909
3998
|
};
|
|
3910
3999
|
}
|
|
3911
4000
|
});
|
|
3912
|
-
const _sfc_main
|
|
4001
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
3913
4002
|
...{ name: "TaoContainer" },
|
|
3914
4003
|
__name: "TaoContainer",
|
|
3915
4004
|
props: {
|
|
@@ -3928,8 +4017,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
3928
4017
|
};
|
|
3929
4018
|
}
|
|
3930
4019
|
});
|
|
3931
|
-
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
3932
|
-
const _sfc_main
|
|
4020
|
+
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-a5e36052"]]);
|
|
4021
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
3933
4022
|
...{ name: "TaoFlex" },
|
|
3934
4023
|
__name: "TaoFlex",
|
|
3935
4024
|
props: {
|
|
@@ -3960,7 +4049,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
3960
4049
|
};
|
|
3961
4050
|
}
|
|
3962
4051
|
});
|
|
3963
|
-
const _sfc_main$
|
|
4052
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
3964
4053
|
...{ name: "TaoSpace" },
|
|
3965
4054
|
__name: "TaoSpace",
|
|
3966
4055
|
props: {
|
|
@@ -3981,7 +4070,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
3981
4070
|
};
|
|
3982
4071
|
}
|
|
3983
4072
|
});
|
|
3984
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4073
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-d6fec8bb"]]);
|
|
3985
4074
|
const FULL_SPAN = 999;
|
|
3986
4075
|
function perSize(value, fallback, compactPlain) {
|
|
3987
4076
|
if (value === void 0 || value === null) {
|
|
@@ -3998,7 +4087,7 @@ function perSize(value, fallback, compactPlain) {
|
|
|
3998
4087
|
}
|
|
3999
4088
|
const spanNumber = (span) => span === "full" ? FULL_SPAN : Math.max(1, Math.round(span));
|
|
4000
4089
|
const _hoisted_1$T = { class: "tao-grid__cells" };
|
|
4001
|
-
const _sfc_main$
|
|
4090
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
4002
4091
|
...{ name: "TaoGrid" },
|
|
4003
4092
|
__name: "TaoGrid",
|
|
4004
4093
|
props: {
|
|
@@ -4033,8 +4122,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4033
4122
|
};
|
|
4034
4123
|
}
|
|
4035
4124
|
});
|
|
4036
|
-
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4037
|
-
const _sfc_main$
|
|
4125
|
+
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-e95541e2"]]);
|
|
4126
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4038
4127
|
...{ name: "TaoGridItem" },
|
|
4039
4128
|
__name: "TaoGridItem",
|
|
4040
4129
|
props: {
|
|
@@ -4070,7 +4159,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4070
4159
|
};
|
|
4071
4160
|
}
|
|
4072
4161
|
});
|
|
4073
|
-
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4162
|
+
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-d42e5e67"]]);
|
|
4074
4163
|
const _hoisted_1$S = { class: "tao-split__pane tao-split__pane--start" };
|
|
4075
4164
|
const _hoisted_2$M = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
4076
4165
|
const _hoisted_3$E = { class: "tao-split__pane tao-split__pane--end" };
|
|
@@ -4078,7 +4167,7 @@ const _hoisted_4$y = {
|
|
|
4078
4167
|
key: 0,
|
|
4079
4168
|
class: "tao-split__shield"
|
|
4080
4169
|
};
|
|
4081
|
-
const _sfc_main$
|
|
4170
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
4082
4171
|
...{ name: "TaoSplit" },
|
|
4083
4172
|
__name: "TaoSplit",
|
|
4084
4173
|
props: {
|
|
@@ -4407,11 +4496,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
4407
4496
|
};
|
|
4408
4497
|
}
|
|
4409
4498
|
});
|
|
4410
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4499
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-316b0d45"]]);
|
|
4411
4500
|
const _hoisted_1$R = { class: "tao-image" };
|
|
4412
4501
|
const _hoisted_2$L = ["src", "alt", "loading"];
|
|
4413
4502
|
const _hoisted_3$D = { class: "tao-image__placeholder" };
|
|
4414
|
-
const _sfc_main$
|
|
4503
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
4415
4504
|
...{ name: "TaoImage" },
|
|
4416
4505
|
__name: "TaoImage",
|
|
4417
4506
|
props: {
|
|
@@ -4461,7 +4550,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
4461
4550
|
};
|
|
4462
4551
|
}
|
|
4463
4552
|
});
|
|
4464
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4553
|
+
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-61f47c52"]]);
|
|
4465
4554
|
const _hoisted_1$Q = ["for"];
|
|
4466
4555
|
const _hoisted_2$K = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
4467
4556
|
const _hoisted_3$C = {
|
|
@@ -4472,7 +4561,7 @@ const _hoisted_4$x = {
|
|
|
4472
4561
|
key: 1,
|
|
4473
4562
|
class: "tao-checkbox__label"
|
|
4474
4563
|
};
|
|
4475
|
-
const _sfc_main$
|
|
4564
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
4476
4565
|
...{ name: "TaoCheckbox", inheritAttrs: false },
|
|
4477
4566
|
__name: "TaoCheckbox",
|
|
4478
4567
|
props: {
|
|
@@ -4553,7 +4642,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4553
4642
|
};
|
|
4554
4643
|
}
|
|
4555
4644
|
});
|
|
4556
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4645
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-55451432"]]);
|
|
4557
4646
|
const _hoisted_1$P = {
|
|
4558
4647
|
key: 0,
|
|
4559
4648
|
class: "tao-tag__prefix"
|
|
@@ -4561,7 +4650,7 @@ const _hoisted_1$P = {
|
|
|
4561
4650
|
const _hoisted_2$J = { class: "tao-tag__text" };
|
|
4562
4651
|
const _hoisted_3$B = ["aria-label"];
|
|
4563
4652
|
const _hoisted_4$w = { "aria-hidden": "true" };
|
|
4564
|
-
const _sfc_main$
|
|
4653
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
4565
4654
|
...{ name: "TaoTag" },
|
|
4566
4655
|
__name: "TaoTag",
|
|
4567
4656
|
props: {
|
|
@@ -4626,7 +4715,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
4626
4715
|
};
|
|
4627
4716
|
}
|
|
4628
4717
|
});
|
|
4629
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4718
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-03794ffd"]]);
|
|
4630
4719
|
const _hoisted_1$O = ["role", "aria-hidden"];
|
|
4631
4720
|
const _hoisted_2$I = {
|
|
4632
4721
|
key: 1,
|
|
@@ -4636,7 +4725,7 @@ const _hoisted_3$A = {
|
|
|
4636
4725
|
key: 2,
|
|
4637
4726
|
class: "tao-divider__line tao-divider__line--end"
|
|
4638
4727
|
};
|
|
4639
|
-
const _sfc_main$
|
|
4728
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
4640
4729
|
...{ name: "TaoDivider" },
|
|
4641
4730
|
__name: "TaoDivider",
|
|
4642
4731
|
props: {
|
|
@@ -4677,13 +4766,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4677
4766
|
};
|
|
4678
4767
|
}
|
|
4679
4768
|
});
|
|
4680
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4769
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-5899337f"]]);
|
|
4681
4770
|
const _hoisted_1$N = {
|
|
4682
4771
|
key: 0,
|
|
4683
4772
|
class: "tao-fieldset__legend"
|
|
4684
4773
|
};
|
|
4685
4774
|
const _hoisted_2$H = { class: "tao-fieldset__body" };
|
|
4686
|
-
const _sfc_main$
|
|
4775
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
4687
4776
|
...{ name: "TaoFieldset" },
|
|
4688
4777
|
__name: "TaoFieldset",
|
|
4689
4778
|
props: {
|
|
@@ -4707,8 +4796,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4707
4796
|
};
|
|
4708
4797
|
}
|
|
4709
4798
|
});
|
|
4710
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4711
|
-
const _sfc_main$
|
|
4799
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-3445dafd"]]);
|
|
4800
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
4712
4801
|
...{ name: "TaoAnimatedBorder" },
|
|
4713
4802
|
__name: "TaoAnimatedBorder",
|
|
4714
4803
|
props: {
|
|
@@ -4751,10 +4840,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4751
4840
|
};
|
|
4752
4841
|
}
|
|
4753
4842
|
});
|
|
4754
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4843
|
+
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-86ba074e"]]);
|
|
4755
4844
|
const _hoisted_1$M = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "readonly", "rows", "value", "aria-invalid", "aria-describedby"];
|
|
4756
4845
|
const _hoisted_2$G = ["id"];
|
|
4757
|
-
const _sfc_main$
|
|
4846
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
4758
4847
|
...{ name: "TaoTextarea", inheritAttrs: false },
|
|
4759
4848
|
__name: "TaoTextarea",
|
|
4760
4849
|
props: {
|
|
@@ -4902,7 +4991,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4902
4991
|
};
|
|
4903
4992
|
}
|
|
4904
4993
|
});
|
|
4905
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4994
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-9aaf7131"]]);
|
|
4906
4995
|
const _hoisted_1$L = ["aria-label"];
|
|
4907
4996
|
const _hoisted_2$F = { class: "tao-scroll-top__content" };
|
|
4908
4997
|
const _hoisted_3$z = {
|
|
@@ -4910,7 +4999,7 @@ const _hoisted_3$z = {
|
|
|
4910
4999
|
class: "tao-scroll-top__text",
|
|
4911
5000
|
"aria-hidden": "true"
|
|
4912
5001
|
};
|
|
4913
|
-
const _sfc_main$
|
|
5002
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
4914
5003
|
...{ name: "TaoScrollTop", inheritAttrs: false },
|
|
4915
5004
|
__name: "TaoScrollTop",
|
|
4916
5005
|
props: {
|
|
@@ -5028,7 +5117,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
5028
5117
|
};
|
|
5029
5118
|
}
|
|
5030
5119
|
});
|
|
5031
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5120
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-69ee603c"]]);
|
|
5032
5121
|
const _hoisted_1$K = { class: "tao-progress" };
|
|
5033
5122
|
const _hoisted_2$E = {
|
|
5034
5123
|
key: 0,
|
|
@@ -5047,7 +5136,7 @@ const _hoisted_6$k = {
|
|
|
5047
5136
|
key: 0,
|
|
5048
5137
|
class: "tao-progress__percentage"
|
|
5049
5138
|
};
|
|
5050
|
-
const _sfc_main$
|
|
5139
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
5051
5140
|
...{ name: "TaoProgress" },
|
|
5052
5141
|
__name: "TaoProgress",
|
|
5053
5142
|
props: {
|
|
@@ -5105,8 +5194,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5105
5194
|
};
|
|
5106
5195
|
}
|
|
5107
5196
|
});
|
|
5108
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5109
|
-
const _sfc_main$
|
|
5197
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-4de488a6"]]);
|
|
5198
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
5110
5199
|
...{ name: "TaoRangeSlider" },
|
|
5111
5200
|
__name: "TaoRangeSlider",
|
|
5112
5201
|
props: {
|
|
@@ -5129,6 +5218,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5129
5218
|
size: {},
|
|
5130
5219
|
ariaLabel: {},
|
|
5131
5220
|
wheel: {},
|
|
5221
|
+
editable: { type: Boolean },
|
|
5222
|
+
editLabel: {},
|
|
5132
5223
|
modelValue: {}
|
|
5133
5224
|
},
|
|
5134
5225
|
emits: ["update:modelValue", "change"],
|
|
@@ -5211,7 +5302,7 @@ const _hoisted_6$j = { class: "tao-file-drop__name" };
|
|
|
5211
5302
|
const _hoisted_7$g = { class: "tao-file-drop__meta" };
|
|
5212
5303
|
const _hoisted_8$a = ["aria-label", "onClick"];
|
|
5213
5304
|
const _hoisted_9$7 = { "aria-hidden": "true" };
|
|
5214
|
-
const _sfc_main$
|
|
5305
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
5215
5306
|
...{ name: "TaoFileDrop", inheritAttrs: false },
|
|
5216
5307
|
__name: "TaoFileDrop",
|
|
5217
5308
|
props: {
|
|
@@ -5392,7 +5483,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5392
5483
|
};
|
|
5393
5484
|
}
|
|
5394
5485
|
});
|
|
5395
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5486
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-093403e5"]]);
|
|
5396
5487
|
function isMenuSelectable(item) {
|
|
5397
5488
|
return item.type !== "separator" && item.type !== "label" && !item.disabled;
|
|
5398
5489
|
}
|
|
@@ -5511,7 +5602,7 @@ const _hoisted_7$f = {
|
|
|
5511
5602
|
class: "tao-menu__arrow",
|
|
5512
5603
|
"aria-hidden": "true"
|
|
5513
5604
|
};
|
|
5514
|
-
const _sfc_main$
|
|
5605
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
5515
5606
|
...{ name: "TaoMenu" },
|
|
5516
5607
|
__name: "TaoMenu",
|
|
5517
5608
|
props: {
|
|
@@ -5758,7 +5849,7 @@ const _hoisted_3$v = {
|
|
|
5758
5849
|
key: 1,
|
|
5759
5850
|
"aria-hidden": "true"
|
|
5760
5851
|
};
|
|
5761
|
-
const _sfc_main$
|
|
5852
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
5762
5853
|
...{ name: "TaoDropdownMenu" },
|
|
5763
5854
|
__name: "TaoDropdownMenu",
|
|
5764
5855
|
props: {
|
|
@@ -5811,7 +5902,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5811
5902
|
], true)
|
|
5812
5903
|
]))
|
|
5813
5904
|
], 42, _hoisted_2$B),
|
|
5814
|
-
createVNode(_sfc_main$
|
|
5905
|
+
createVNode(_sfc_main$L, {
|
|
5815
5906
|
items: __props.items,
|
|
5816
5907
|
open: isOpen.value,
|
|
5817
5908
|
anchor: triggerRef.value,
|
|
@@ -5833,8 +5924,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5833
5924
|
};
|
|
5834
5925
|
}
|
|
5835
5926
|
});
|
|
5836
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5837
|
-
const _sfc_main$
|
|
5927
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-0e71d618"]]);
|
|
5928
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
5838
5929
|
...{ name: "TaoContextMenu" },
|
|
5839
5930
|
__name: "TaoContextMenu",
|
|
5840
5931
|
props: {
|
|
@@ -5887,7 +5978,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
5887
5978
|
"aria-hidden": "true",
|
|
5888
5979
|
style: normalizeStyle({ left: `${point.value.x}px`, top: `${point.value.y}px` })
|
|
5889
5980
|
}, null, 4),
|
|
5890
|
-
createVNode(_sfc_main$
|
|
5981
|
+
createVNode(_sfc_main$L, {
|
|
5891
5982
|
items: __props.items,
|
|
5892
5983
|
open: isOpen.value,
|
|
5893
5984
|
anchor: anchor.value,
|
|
@@ -5909,10 +6000,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
5909
6000
|
};
|
|
5910
6001
|
}
|
|
5911
6002
|
});
|
|
5912
|
-
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6003
|
+
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-65a7f071"]]);
|
|
5913
6004
|
const _hoisted_1$G = ["aria-label"];
|
|
5914
6005
|
const _hoisted_2$A = ["tabindex", "aria-haspopup", "aria-expanded", "aria-disabled", "onClick", "onKeydown", "onMouseenter", "onFocus"];
|
|
5915
|
-
const _sfc_main$
|
|
6006
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
5916
6007
|
...{ name: "TaoMenubar" },
|
|
5917
6008
|
__name: "TaoMenubar",
|
|
5918
6009
|
props: {
|
|
@@ -6043,7 +6134,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6043
6134
|
onMouseenter: ($event) => onEnter(index),
|
|
6044
6135
|
onFocus: ($event) => current2.value = index
|
|
6045
6136
|
}, toDisplayString(entry.label), 43, _hoisted_2$A),
|
|
6046
|
-
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$
|
|
6137
|
+
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$L, {
|
|
6047
6138
|
key: 0,
|
|
6048
6139
|
items: entry.items,
|
|
6049
6140
|
open: openIndex.value === index,
|
|
@@ -6069,7 +6160,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6069
6160
|
};
|
|
6070
6161
|
}
|
|
6071
6162
|
});
|
|
6072
|
-
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6163
|
+
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-446c1c49"]]);
|
|
6073
6164
|
const toolbarKey = Symbol("tao-toolbar");
|
|
6074
6165
|
const ITEMS = 'button, a[href], input, select, textarea, [role="button"], [data-tao-toolbar-item]';
|
|
6075
6166
|
const TEXT_INPUT = /^(text|search|email|url|tel|password|number|date|time|datetime-local|month|week)$/;
|
|
@@ -6123,7 +6214,7 @@ function isTextField(el) {
|
|
|
6123
6214
|
return el instanceof HTMLInputElement && TEXT_INPUT.test(el.type);
|
|
6124
6215
|
}
|
|
6125
6216
|
const _hoisted_1$F = ["aria-label", "aria-orientation"];
|
|
6126
|
-
const _sfc_main$
|
|
6217
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
6127
6218
|
...{ name: "TaoToolbar" },
|
|
6128
6219
|
__name: "TaoToolbar",
|
|
6129
6220
|
props: {
|
|
@@ -6219,9 +6310,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6219
6310
|
};
|
|
6220
6311
|
}
|
|
6221
6312
|
});
|
|
6222
|
-
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6313
|
+
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ba64d699"]]);
|
|
6223
6314
|
const _hoisted_1$E = ["aria-label"];
|
|
6224
|
-
const _sfc_main$
|
|
6315
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
6225
6316
|
...{ name: "TaoToolbarGroup" },
|
|
6226
6317
|
__name: "TaoToolbarGroup",
|
|
6227
6318
|
props: {
|
|
@@ -6240,9 +6331,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
6240
6331
|
};
|
|
6241
6332
|
}
|
|
6242
6333
|
});
|
|
6243
|
-
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6334
|
+
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-1840d8d6"]]);
|
|
6244
6335
|
const _hoisted_1$D = ["aria-orientation"];
|
|
6245
|
-
const _sfc_main$
|
|
6336
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
6246
6337
|
...{ name: "TaoToolbarSeparator" },
|
|
6247
6338
|
__name: "TaoToolbarSeparator",
|
|
6248
6339
|
setup(__props) {
|
|
@@ -6257,7 +6348,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6257
6348
|
};
|
|
6258
6349
|
}
|
|
6259
6350
|
});
|
|
6260
|
-
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6351
|
+
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-7a0063e1"]]);
|
|
6261
6352
|
const TAO_CHART_COLORS = 6;
|
|
6262
6353
|
const chartColorVar = (index) => `var(--tao-color-chart-${index % TAO_CHART_COLORS + 1})`;
|
|
6263
6354
|
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
@@ -6438,7 +6529,7 @@ const _hoisted_2$z = {
|
|
|
6438
6529
|
};
|
|
6439
6530
|
const _hoisted_3$u = ["d"];
|
|
6440
6531
|
const _hoisted_4$s = ["d"];
|
|
6441
|
-
const _sfc_main$
|
|
6532
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
6442
6533
|
...{ name: "TaoSparkline" },
|
|
6443
6534
|
__name: "TaoSparkline",
|
|
6444
6535
|
props: {
|
|
@@ -6491,7 +6582,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6491
6582
|
};
|
|
6492
6583
|
}
|
|
6493
6584
|
});
|
|
6494
|
-
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6585
|
+
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-76664226"]]);
|
|
6495
6586
|
const _hoisted_1$B = ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-label"];
|
|
6496
6587
|
const _hoisted_2$y = {
|
|
6497
6588
|
key: 0,
|
|
@@ -6504,7 +6595,7 @@ const _hoisted_4$r = {
|
|
|
6504
6595
|
class: "tao-meter__value"
|
|
6505
6596
|
};
|
|
6506
6597
|
const _hoisted_5$m = { class: "tao-meter__track" };
|
|
6507
|
-
const _sfc_main$
|
|
6598
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
6508
6599
|
...{ name: "TaoMeter" },
|
|
6509
6600
|
__name: "TaoMeter",
|
|
6510
6601
|
props: {
|
|
@@ -6552,7 +6643,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6552
6643
|
};
|
|
6553
6644
|
}
|
|
6554
6645
|
});
|
|
6555
|
-
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6646
|
+
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-17e24a8e"]]);
|
|
6556
6647
|
const _hoisted_1$A = ["aria-label"];
|
|
6557
6648
|
const _hoisted_2$x = ["viewBox", "width", "height"];
|
|
6558
6649
|
const _hoisted_3$s = ["cx", "cy", "r", "stroke-width"];
|
|
@@ -6569,7 +6660,7 @@ const _hoisted_6$h = {
|
|
|
6569
6660
|
};
|
|
6570
6661
|
const _hoisted_7$e = { class: "tao-donut__name" };
|
|
6571
6662
|
const _hoisted_8$9 = { class: "tao-donut__share" };
|
|
6572
|
-
const _sfc_main$
|
|
6663
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
6573
6664
|
...{ name: "TaoDonut" },
|
|
6574
6665
|
__name: "TaoDonut",
|
|
6575
6666
|
props: {
|
|
@@ -6672,7 +6763,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
6672
6763
|
};
|
|
6673
6764
|
}
|
|
6674
6765
|
});
|
|
6675
|
-
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6766
|
+
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-30b93ef0"]]);
|
|
6676
6767
|
const _hoisted_1$z = ["aria-label", "aria-rowcount", "aria-colcount"];
|
|
6677
6768
|
const _hoisted_2$w = {
|
|
6678
6769
|
class: "tao-heatmap__row tao-heatmap__head",
|
|
@@ -6691,7 +6782,7 @@ const _hoisted_8$8 = {
|
|
|
6691
6782
|
class: "tao-heatmap__legend",
|
|
6692
6783
|
"aria-hidden": "true"
|
|
6693
6784
|
};
|
|
6694
|
-
const _sfc_main$
|
|
6785
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
6695
6786
|
...{ name: "TaoHeatmap" },
|
|
6696
6787
|
__name: "TaoHeatmap",
|
|
6697
6788
|
props: {
|
|
@@ -6934,7 +7025,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
6934
7025
|
};
|
|
6935
7026
|
}
|
|
6936
7027
|
});
|
|
6937
|
-
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7028
|
+
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-496996ae"]]);
|
|
6938
7029
|
const _hoisted_1$y = { class: "tao-nav__shell" };
|
|
6939
7030
|
const _hoisted_2$v = ["aria-label"];
|
|
6940
7031
|
const _hoisted_3$q = { class: "tao-nav__column" };
|
|
@@ -6968,7 +7059,7 @@ const _hoisted_14$1 = {
|
|
|
6968
7059
|
key: 0,
|
|
6969
7060
|
class: "tao-nav__content"
|
|
6970
7061
|
};
|
|
6971
|
-
const _sfc_main$
|
|
7062
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
6972
7063
|
...{ name: "TaoNav" },
|
|
6973
7064
|
__name: "TaoNav",
|
|
6974
7065
|
props: {
|
|
@@ -7108,7 +7199,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7108
7199
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
7109
7200
|
])) : createCommentVNode("", true)
|
|
7110
7201
|
]),
|
|
7111
|
-
overflowing.value ? (openBlock(), createBlock(_sfc_main$
|
|
7202
|
+
overflowing.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
7112
7203
|
key: 0,
|
|
7113
7204
|
items: moreMenu.value,
|
|
7114
7205
|
open: moreOpen.value,
|
|
@@ -7122,7 +7213,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7122
7213
|
};
|
|
7123
7214
|
}
|
|
7124
7215
|
});
|
|
7125
|
-
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7216
|
+
const TaoNav = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-31b1af76"]]);
|
|
7126
7217
|
function visibleRows(nodes, expanded, children) {
|
|
7127
7218
|
const rows = [];
|
|
7128
7219
|
const ancestors = /* @__PURE__ */ new Set();
|
|
@@ -7183,7 +7274,7 @@ const _hoisted_6$e = {
|
|
|
7183
7274
|
"aria-hidden": "true"
|
|
7184
7275
|
};
|
|
7185
7276
|
const _hoisted_7$b = { class: "tao-tree__label" };
|
|
7186
|
-
const _sfc_main$
|
|
7277
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
7187
7278
|
...{ name: "TaoTree" },
|
|
7188
7279
|
__name: "TaoTree",
|
|
7189
7280
|
props: {
|
|
@@ -7492,7 +7583,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7492
7583
|
};
|
|
7493
7584
|
}
|
|
7494
7585
|
});
|
|
7495
|
-
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7586
|
+
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-ce3110d4"]]);
|
|
7496
7587
|
const _hoisted_1$w = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
7497
7588
|
const _hoisted_2$t = {
|
|
7498
7589
|
key: 0,
|
|
@@ -7510,7 +7601,7 @@ const _hoisted_7$a = {
|
|
|
7510
7601
|
key: 0,
|
|
7511
7602
|
class: "tao-checklist__description"
|
|
7512
7603
|
};
|
|
7513
|
-
const _sfc_main$
|
|
7604
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
7514
7605
|
...{ name: "TaoChecklist" },
|
|
7515
7606
|
__name: "TaoChecklist",
|
|
7516
7607
|
props: {
|
|
@@ -7623,7 +7714,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7623
7714
|
};
|
|
7624
7715
|
}
|
|
7625
7716
|
});
|
|
7626
|
-
const TaoChecklist = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7717
|
+
const TaoChecklist = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-4d3771ce"]]);
|
|
7627
7718
|
function timelineState(index, activeIndex) {
|
|
7628
7719
|
if (activeIndex < 0) {
|
|
7629
7720
|
return "done";
|
|
@@ -7646,7 +7737,7 @@ const _hoisted_7$9 = {
|
|
|
7646
7737
|
key: 1,
|
|
7647
7738
|
class: "tao-timeline__description"
|
|
7648
7739
|
};
|
|
7649
|
-
const _sfc_main$
|
|
7740
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
7650
7741
|
...{ name: "TaoTimeline" },
|
|
7651
7742
|
__name: "TaoTimeline",
|
|
7652
7743
|
props: {
|
|
@@ -7705,7 +7796,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
7705
7796
|
};
|
|
7706
7797
|
}
|
|
7707
7798
|
});
|
|
7708
|
-
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7799
|
+
const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-48847c47"]]);
|
|
7709
7800
|
const _hoisted_1$u = ["tabindex", "aria-hidden", "inert"];
|
|
7710
7801
|
const _hoisted_2$r = { class: "tao-marquee__item" };
|
|
7711
7802
|
const _hoisted_3$m = {
|
|
@@ -7714,7 +7805,7 @@ const _hoisted_3$m = {
|
|
|
7714
7805
|
"aria-hidden": "true",
|
|
7715
7806
|
inert: ""
|
|
7716
7807
|
};
|
|
7717
|
-
const _sfc_main$
|
|
7808
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
7718
7809
|
...{ name: "TaoMarquee" },
|
|
7719
7810
|
__name: "TaoMarquee",
|
|
7720
7811
|
props: {
|
|
@@ -7842,7 +7933,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
7842
7933
|
};
|
|
7843
7934
|
}
|
|
7844
7935
|
});
|
|
7845
|
-
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7936
|
+
const TaoMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-300f470a"]]);
|
|
7846
7937
|
const PIN_CELL = "#";
|
|
7847
7938
|
function parsePinFormat(format) {
|
|
7848
7939
|
const mask = [...format];
|
|
@@ -7894,7 +7985,7 @@ const _hoisted_5$f = {
|
|
|
7894
7985
|
class: "tao-sr-only",
|
|
7895
7986
|
role: "status"
|
|
7896
7987
|
};
|
|
7897
|
-
const _sfc_main$
|
|
7988
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
7898
7989
|
...{ name: "TaoPinCode" },
|
|
7899
7990
|
__name: "TaoPinCode",
|
|
7900
7991
|
props: {
|
|
@@ -8157,8 +8248,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
8157
8248
|
};
|
|
8158
8249
|
}
|
|
8159
8250
|
});
|
|
8160
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8161
|
-
const _sfc_main$
|
|
8251
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bb653baa"]]);
|
|
8252
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
8162
8253
|
...{ name: "TaoLink" },
|
|
8163
8254
|
__name: "TaoLink",
|
|
8164
8255
|
props: {
|
|
@@ -8200,6 +8291,27 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
8200
8291
|
};
|
|
8201
8292
|
}
|
|
8202
8293
|
});
|
|
8294
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
8295
|
+
...{ name: "TaoStretchedLink" },
|
|
8296
|
+
__name: "TaoStretchedLink",
|
|
8297
|
+
props: {
|
|
8298
|
+
to: { default: void 0 },
|
|
8299
|
+
newTab: { type: Boolean, default: false },
|
|
8300
|
+
private: { type: Boolean, default: false },
|
|
8301
|
+
exactPath: { type: Boolean, default: false }
|
|
8302
|
+
},
|
|
8303
|
+
setup(__props) {
|
|
8304
|
+
const props = __props;
|
|
8305
|
+
return (_ctx, _cache) => {
|
|
8306
|
+
return openBlock(), createBlock(_sfc_main$u, mergeProps({ class: "tao-stretched-link" }, props), {
|
|
8307
|
+
default: withCtx(() => [
|
|
8308
|
+
renderSlot(_ctx.$slots, "default")
|
|
8309
|
+
]),
|
|
8310
|
+
_: 3
|
|
8311
|
+
}, 16);
|
|
8312
|
+
};
|
|
8313
|
+
}
|
|
8314
|
+
});
|
|
8203
8315
|
const _hoisted_1$s = ["for"];
|
|
8204
8316
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
8205
8317
|
...{ name: "TaoFormField" },
|
|
@@ -8953,7 +9065,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8953
9065
|
}, null, 4)
|
|
8954
9066
|
], 44, _hoisted_1$o),
|
|
8955
9067
|
createElementVNode("div", _hoisted_2$m, [
|
|
8956
|
-
createVNode(_sfc_main$
|
|
9068
|
+
createVNode(_sfc_main$19, {
|
|
8957
9069
|
modelValue: hueValue.value,
|
|
8958
9070
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hueValue.value = $event),
|
|
8959
9071
|
class: "tao-color-picker__hue",
|
|
@@ -8965,7 +9077,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8965
9077
|
"aria-label": unref(l10n).hueLabel,
|
|
8966
9078
|
onChange: _cache[1] || (_cache[1] = ($event) => emit("change", hex.value))
|
|
8967
9079
|
}, null, 8, ["modelValue", "disabled", "aria-label"]),
|
|
8968
|
-
__props.alpha ? (openBlock(), createBlock(_sfc_main$
|
|
9080
|
+
__props.alpha ? (openBlock(), createBlock(_sfc_main$19, {
|
|
8969
9081
|
key: 0,
|
|
8970
9082
|
modelValue: alphaValue.value,
|
|
8971
9083
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => alphaValue.value = $event),
|
|
@@ -12068,7 +12180,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12068
12180
|
class: "tao-breadcrumb__item"
|
|
12069
12181
|
}, [
|
|
12070
12182
|
index > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$4, "/")) : createCommentVNode("", true),
|
|
12071
|
-
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$
|
|
12183
|
+
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$u, {
|
|
12072
12184
|
key: 2,
|
|
12073
12185
|
class: "tao-breadcrumb__link",
|
|
12074
12186
|
to: item.to
|
|
@@ -13725,10 +13837,10 @@ const components = [
|
|
|
13725
13837
|
TaoSpoiler,
|
|
13726
13838
|
TaoSpoilerGroup,
|
|
13727
13839
|
TaoCopy,
|
|
13840
|
+
_sfc_main$12,
|
|
13728
13841
|
_sfc_main$11,
|
|
13729
|
-
_sfc_main$10,
|
|
13730
13842
|
TaoContainer,
|
|
13731
|
-
_sfc_main
|
|
13843
|
+
_sfc_main$$,
|
|
13732
13844
|
TaoSpace,
|
|
13733
13845
|
TaoGrid,
|
|
13734
13846
|
TaoGridItem,
|
|
@@ -13744,11 +13856,11 @@ const components = [
|
|
|
13744
13856
|
TaoTextarea,
|
|
13745
13857
|
TaoScrollTop,
|
|
13746
13858
|
TaoProgress,
|
|
13747
|
-
_sfc_main$
|
|
13748
|
-
_sfc_main$
|
|
13859
|
+
_sfc_main$19,
|
|
13860
|
+
_sfc_main$N,
|
|
13749
13861
|
TaoFileDrop,
|
|
13750
13862
|
TaoDropdownMenu,
|
|
13751
|
-
_sfc_main$
|
|
13863
|
+
_sfc_main$L,
|
|
13752
13864
|
TaoMenubar,
|
|
13753
13865
|
TaoToolbar,
|
|
13754
13866
|
TaoToolbarGroup,
|
|
@@ -13764,6 +13876,7 @@ const components = [
|
|
|
13764
13876
|
TaoMarquee,
|
|
13765
13877
|
TaoContextMenu,
|
|
13766
13878
|
TaoPinCode,
|
|
13879
|
+
_sfc_main$u,
|
|
13767
13880
|
_sfc_main$t,
|
|
13768
13881
|
TaoFormField,
|
|
13769
13882
|
TaoSelect,
|
|
@@ -13838,7 +13951,7 @@ export {
|
|
|
13838
13951
|
TaoEmpty,
|
|
13839
13952
|
TaoFieldset,
|
|
13840
13953
|
TaoFileDrop,
|
|
13841
|
-
_sfc_main
|
|
13954
|
+
_sfc_main$$ as TaoFlex,
|
|
13842
13955
|
TaoFormField,
|
|
13843
13956
|
TaoGrid,
|
|
13844
13957
|
TaoGridItem,
|
|
@@ -13848,12 +13961,12 @@ export {
|
|
|
13848
13961
|
TaoInput,
|
|
13849
13962
|
TaoInputGroup,
|
|
13850
13963
|
TaoInputNumber,
|
|
13851
|
-
_sfc_main$
|
|
13964
|
+
_sfc_main$u as TaoLink,
|
|
13852
13965
|
TaoList,
|
|
13853
13966
|
TaoListItem,
|
|
13854
13967
|
TaoLoader,
|
|
13855
13968
|
TaoMarquee,
|
|
13856
|
-
_sfc_main$
|
|
13969
|
+
_sfc_main$L as TaoMenu,
|
|
13857
13970
|
TaoMenubar,
|
|
13858
13971
|
TaoMeter,
|
|
13859
13972
|
TaoModal,
|
|
@@ -13865,33 +13978,34 @@ export {
|
|
|
13865
13978
|
TaoQuantity,
|
|
13866
13979
|
TaoRadio,
|
|
13867
13980
|
TaoRadioGroup,
|
|
13868
|
-
_sfc_main$
|
|
13981
|
+
_sfc_main$N as TaoRangeSlider,
|
|
13869
13982
|
TaoScrollTop,
|
|
13870
13983
|
TaoScrubber,
|
|
13871
13984
|
TaoSegmented,
|
|
13872
13985
|
TaoSegmentedOption,
|
|
13873
13986
|
TaoSelect,
|
|
13874
13987
|
TaoSkeleton,
|
|
13875
|
-
_sfc_main$
|
|
13988
|
+
_sfc_main$19 as TaoSlider,
|
|
13876
13989
|
TaoSpace,
|
|
13877
13990
|
TaoSparkline,
|
|
13878
13991
|
TaoSplit,
|
|
13879
13992
|
TaoSpoiler,
|
|
13880
13993
|
TaoSpoilerGroup,
|
|
13881
13994
|
TaoStages,
|
|
13995
|
+
_sfc_main$t as TaoStretchedLink,
|
|
13882
13996
|
TaoSwitch,
|
|
13883
13997
|
TaoTable,
|
|
13884
13998
|
TaoTabs,
|
|
13885
13999
|
TaoTag,
|
|
13886
14000
|
TaoTextarea,
|
|
13887
|
-
_sfc_main$
|
|
14001
|
+
_sfc_main$12 as TaoThemeToggle,
|
|
13888
14002
|
TaoTimeline,
|
|
13889
14003
|
TaoToastViewport,
|
|
13890
14004
|
TaoToolbar,
|
|
13891
14005
|
TaoToolbarGroup,
|
|
13892
14006
|
TaoToolbarSeparator,
|
|
13893
14007
|
TaoTooltip,
|
|
13894
|
-
_sfc_main$
|
|
14008
|
+
_sfc_main$11 as TaoTour,
|
|
13895
14009
|
TaoTree,
|
|
13896
14010
|
TaoUI,
|
|
13897
14011
|
apcaContrast,
|