@1337exp/taoui 5.8.3 → 5.9.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 +13 -0
- package/README.md +2 -1
- package/README.ru.md +2 -1
- package/dist/index.d.ts +394 -258
- package/dist/index.js +692 -387
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +4 -2
- package/skills/taoui/references/components.md +21 -0
package/dist/index.js
CHANGED
|
@@ -95,9 +95,9 @@ function resolveTaoIcon(name) {
|
|
|
95
95
|
return name.startsWith(TAO_ICON_PREFIX) ? builtin[name.slice(TAO_ICON_PREFIX.length)] : registered[name];
|
|
96
96
|
}
|
|
97
97
|
const taoIconNames = Object.keys(builtin).map((name) => TAO_ICON_PREFIX + name);
|
|
98
|
-
const _hoisted_1$
|
|
99
|
-
const _hoisted_2$
|
|
100
|
-
const _sfc_main$
|
|
98
|
+
const _hoisted_1$16 = { class: "tao-icon" };
|
|
99
|
+
const _hoisted_2$Y = ["viewBox", "width", "height", "innerHTML"];
|
|
100
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
101
101
|
...{ name: "TaoIcon" },
|
|
102
102
|
__name: "TaoIcon",
|
|
103
103
|
props: {
|
|
@@ -117,7 +117,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
}
|
|
118
118
|
const box = computed(() => props.size ? `${props.size}px` : "1em");
|
|
119
119
|
return (_ctx, _cache) => {
|
|
120
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
120
|
+
return openBlock(), createElementBlock("span", _hoisted_1$16, [
|
|
121
121
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
122
122
|
def.value ? (openBlock(), createElementBlock("svg", {
|
|
123
123
|
key: 0,
|
|
@@ -133,7 +133,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
"aria-hidden": "true",
|
|
134
134
|
focusable: "false",
|
|
135
135
|
innerHTML: def.value.body
|
|
136
|
-
}, null, 10, _hoisted_2$
|
|
136
|
+
}, null, 10, _hoisted_2$Y)) : (openBlock(), createElementBlock("i", {
|
|
137
137
|
key: 1,
|
|
138
138
|
class: normalizeClass(["tao-icon__value", [`icon-${props.name}`, { "tao-icon__value--invert": props.invert }]]),
|
|
139
139
|
style: normalizeStyle(props.size ? `font-size: ${props.size}px` : "")
|
|
@@ -150,17 +150,17 @@ const _export_sfc = (sfc, props) => {
|
|
|
150
150
|
}
|
|
151
151
|
return target;
|
|
152
152
|
};
|
|
153
|
-
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
154
|
-
const _hoisted_1$
|
|
155
|
-
const _hoisted_2$
|
|
153
|
+
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-ef842331"]]);
|
|
154
|
+
const _hoisted_1$15 = ["type", "aria-pressed", "disabled"];
|
|
155
|
+
const _hoisted_2$X = {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: "tao-button__loader"
|
|
158
158
|
};
|
|
159
|
-
const _hoisted_3$
|
|
159
|
+
const _hoisted_3$P = {
|
|
160
160
|
key: 2,
|
|
161
161
|
class: "tao-button__content"
|
|
162
162
|
};
|
|
163
|
-
const _sfc_main$
|
|
163
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
164
164
|
...{ name: "TaoButton" },
|
|
165
165
|
__name: "TaoButton",
|
|
166
166
|
props: {
|
|
@@ -218,13 +218,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
218
218
|
disabled: __props.disabled || __props.loading,
|
|
219
219
|
onClick: handleClick
|
|
220
220
|
}, [
|
|
221
|
-
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
221
|
+
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$X)) : createCommentVNode("", true),
|
|
222
222
|
__props.icon ? (openBlock(), createBlock(TaoIcon, {
|
|
223
223
|
key: 1,
|
|
224
224
|
class: "tao-button__icon",
|
|
225
225
|
name: __props.icon
|
|
226
226
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
227
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
227
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$P, [
|
|
228
228
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
229
229
|
])) : createCommentVNode("", true),
|
|
230
230
|
__props.iconEnd ? (openBlock(), createBlock(TaoIcon, {
|
|
@@ -232,11 +232,11 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
232
232
|
class: "tao-button__icon",
|
|
233
233
|
name: __props.iconEnd
|
|
234
234
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
235
|
-
], 14, _hoisted_1$
|
|
235
|
+
], 14, _hoisted_1$15);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
239
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-475b0135"]]);
|
|
240
240
|
function toCssLength(value) {
|
|
241
241
|
if (value === void 0 || value === null || value === "") {
|
|
242
242
|
return void 0;
|
|
@@ -255,7 +255,7 @@ function stripeClasses(stripe, tone = "accent") {
|
|
|
255
255
|
function surfaceClass(surface) {
|
|
256
256
|
return surface && surface !== "flat" ? `tao-surface-${surface}` : void 0;
|
|
257
257
|
}
|
|
258
|
-
const _sfc_main$
|
|
258
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
259
259
|
...{ name: "TaoBlock" },
|
|
260
260
|
__name: "TaoBlock",
|
|
261
261
|
props: {
|
|
@@ -288,7 +288,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
|
-
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
291
|
+
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-1fc66575"]]);
|
|
292
292
|
function useControlAttrs() {
|
|
293
293
|
const attrs = useAttrs();
|
|
294
294
|
return {
|
|
@@ -310,16 +310,16 @@ function useField(props) {
|
|
|
310
310
|
const describedBy = computed(() => field?.describedBy.value);
|
|
311
311
|
return { field, controlId, invalid, describedBy, localId };
|
|
312
312
|
}
|
|
313
|
-
const _hoisted_1$
|
|
313
|
+
const _hoisted_1$14 = {
|
|
314
314
|
key: 0,
|
|
315
315
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
316
316
|
};
|
|
317
|
-
const _hoisted_2$
|
|
318
|
-
const _hoisted_3$
|
|
317
|
+
const _hoisted_2$W = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
318
|
+
const _hoisted_3$O = {
|
|
319
319
|
key: 1,
|
|
320
320
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
321
321
|
};
|
|
322
|
-
const _sfc_main$
|
|
322
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
323
323
|
...{ name: "TaoInput", inheritAttrs: false },
|
|
324
324
|
__name: "TaoInput",
|
|
325
325
|
props: {
|
|
@@ -363,7 +363,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
363
363
|
"tao-input-shell--suffix": _ctx.$slots.suffix
|
|
364
364
|
}])
|
|
365
365
|
}, [
|
|
366
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
366
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$14, [
|
|
367
367
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
368
368
|
])) : createCommentVNode("", true),
|
|
369
369
|
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
@@ -378,8 +378,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
378
378
|
onInput: handleInput,
|
|
379
379
|
onBlur: handleBlur,
|
|
380
380
|
onFocus: handleFocus
|
|
381
|
-
}), null, 16, _hoisted_2$
|
|
382
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
381
|
+
}), null, 16, _hoisted_2$W),
|
|
382
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$O, [
|
|
383
383
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
384
384
|
])) : createCommentVNode("", true)
|
|
385
385
|
], 2)
|
|
@@ -387,17 +387,17 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
391
|
-
const _hoisted_1$
|
|
390
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-8dd01619"]]);
|
|
391
|
+
const _hoisted_1$13 = {
|
|
392
392
|
key: 0,
|
|
393
393
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
394
394
|
};
|
|
395
|
-
const _hoisted_2$
|
|
396
|
-
const _hoisted_3$
|
|
395
|
+
const _hoisted_2$V = { class: "tao-input-group__field" };
|
|
396
|
+
const _hoisted_3$N = {
|
|
397
397
|
key: 1,
|
|
398
398
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
399
399
|
};
|
|
400
|
-
const _sfc_main$
|
|
400
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
401
401
|
...{ name: "TaoInputGroup" },
|
|
402
402
|
__name: "TaoInputGroup",
|
|
403
403
|
props: {
|
|
@@ -422,24 +422,24 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
422
422
|
onFocusin: onFocusIn,
|
|
423
423
|
onFocusout: onFocusOut
|
|
424
424
|
}, [
|
|
425
|
-
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
425
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
426
426
|
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
427
427
|
])) : createCommentVNode("", true),
|
|
428
|
-
createElementVNode("div", _hoisted_2$
|
|
428
|
+
createElementVNode("div", _hoisted_2$V, [
|
|
429
429
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
430
430
|
]),
|
|
431
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
431
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$N, [
|
|
432
432
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
433
433
|
])) : createCommentVNode("", true)
|
|
434
434
|
], 34);
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
|
-
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
438
|
+
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-55b2d297"]]);
|
|
439
439
|
const localeEn = {
|
|
440
440
|
code: "en-US",
|
|
441
441
|
alert: { closeLabel: "Close", detailsLabel: "Details" },
|
|
442
|
-
pinCode: { successText: "The code is correct", errorText: "Wrong code" },
|
|
442
|
+
pinCode: { successText: "The code is correct", errorText: "Wrong code", cellLabel: "Character {n} of {count}" },
|
|
443
443
|
avatar: {
|
|
444
444
|
fallbackLabel: "Avatar",
|
|
445
445
|
notificationsLabel: "{count} notifications",
|
|
@@ -667,7 +667,7 @@ function hasToastViewport() {
|
|
|
667
667
|
const localeRu = {
|
|
668
668
|
code: "ru-RU",
|
|
669
669
|
alert: { closeLabel: "Закрыть", detailsLabel: "Подробнее" },
|
|
670
|
-
pinCode: { successText: "Код верный", errorText: "Неверный код" },
|
|
670
|
+
pinCode: { successText: "Код верный", errorText: "Неверный код", cellLabel: "Символ {n} из {count}" },
|
|
671
671
|
avatar: {
|
|
672
672
|
fallbackLabel: "Аватар",
|
|
673
673
|
notificationsLabel: "{count} уведомлений",
|
|
@@ -818,16 +818,16 @@ function useLocaleText(props, section) {
|
|
|
818
818
|
function formatText(template, values) {
|
|
819
819
|
return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
|
|
820
820
|
}
|
|
821
|
-
const _hoisted_1$
|
|
822
|
-
const _hoisted_2$
|
|
821
|
+
const _hoisted_1$12 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
822
|
+
const _hoisted_2$U = {
|
|
823
823
|
key: 0,
|
|
824
824
|
class: "tao-input-number__steppers"
|
|
825
825
|
};
|
|
826
|
-
const _hoisted_3$
|
|
827
|
-
const _hoisted_4$
|
|
828
|
-
const _hoisted_5$
|
|
829
|
-
const _hoisted_6$
|
|
830
|
-
const _sfc_main$
|
|
826
|
+
const _hoisted_3$M = ["aria-label", "disabled"];
|
|
827
|
+
const _hoisted_4$E = { "aria-hidden": "true" };
|
|
828
|
+
const _hoisted_5$v = ["aria-label", "disabled"];
|
|
829
|
+
const _hoisted_6$o = { "aria-hidden": "true" };
|
|
830
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
831
831
|
...{ name: "TaoInputNumber", inheritAttrs: false },
|
|
832
832
|
__name: "TaoInputNumber",
|
|
833
833
|
props: {
|
|
@@ -985,8 +985,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
985
985
|
onFocus,
|
|
986
986
|
onBlur,
|
|
987
987
|
onKeydown: onKeydown2
|
|
988
|
-
}), null, 16, _hoisted_1$
|
|
989
|
-
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
988
|
+
}), null, 16, _hoisted_1$12),
|
|
989
|
+
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
990
990
|
createElementVNode("button", {
|
|
991
991
|
type: "button",
|
|
992
992
|
class: "tao-input-number__step",
|
|
@@ -995,12 +995,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
995
995
|
disabled: __props.disabled || atMax.value,
|
|
996
996
|
onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
|
|
997
997
|
}, [
|
|
998
|
-
createElementVNode("span", _hoisted_4$
|
|
998
|
+
createElementVNode("span", _hoisted_4$E, [
|
|
999
999
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
1000
1000
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1001
1001
|
], true)
|
|
1002
1002
|
])
|
|
1003
|
-
], 8, _hoisted_3$
|
|
1003
|
+
], 8, _hoisted_3$M),
|
|
1004
1004
|
createElementVNode("button", {
|
|
1005
1005
|
type: "button",
|
|
1006
1006
|
class: "tao-input-number__step",
|
|
@@ -1009,25 +1009,25 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1009
1009
|
disabled: __props.disabled || atMin.value,
|
|
1010
1010
|
onClick: _cache[1] || (_cache[1] = ($event) => bump(-1))
|
|
1011
1011
|
}, [
|
|
1012
|
-
createElementVNode("span", _hoisted_6$
|
|
1012
|
+
createElementVNode("span", _hoisted_6$o, [
|
|
1013
1013
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1014
1014
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1015
1015
|
], true)
|
|
1016
1016
|
])
|
|
1017
|
-
], 8, _hoisted_5$
|
|
1017
|
+
], 8, _hoisted_5$v)
|
|
1018
1018
|
])) : createCommentVNode("", true)
|
|
1019
1019
|
], 16);
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1024
|
-
const _hoisted_1$
|
|
1025
|
-
const _hoisted_2$
|
|
1026
|
-
const _hoisted_3$
|
|
1027
|
-
const _hoisted_4$
|
|
1028
|
-
const _hoisted_5$
|
|
1029
|
-
const _sfc_main$
|
|
1030
|
-
...{ name: "TaoQuantity" },
|
|
1023
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-d9855e01"]]);
|
|
1024
|
+
const _hoisted_1$11 = ["aria-label", "disabled"];
|
|
1025
|
+
const _hoisted_2$T = { "aria-hidden": "true" };
|
|
1026
|
+
const _hoisted_3$L = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
1027
|
+
const _hoisted_4$D = ["aria-label", "disabled"];
|
|
1028
|
+
const _hoisted_5$u = { "aria-hidden": "true" };
|
|
1029
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
1030
|
+
...{ name: "TaoQuantity", inheritAttrs: false },
|
|
1031
1031
|
__name: "TaoQuantity",
|
|
1032
1032
|
props: {
|
|
1033
1033
|
modelValue: { default: 1 },
|
|
@@ -1044,6 +1044,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1044
1044
|
},
|
|
1045
1045
|
emits: ["update:modelValue", "change", "dec", "inc", "blur", "focus"],
|
|
1046
1046
|
setup(__props, { emit: __emit }) {
|
|
1047
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
1047
1048
|
const props = __props;
|
|
1048
1049
|
const l10n = useLocaleText(props, "quantity");
|
|
1049
1050
|
const emit = __emit;
|
|
@@ -1148,16 +1149,16 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1148
1149
|
const plusDisabled = computed(() => props.disabled || atMax.value);
|
|
1149
1150
|
const minusLabel = computed(() => atMin.value && props.allowRemove ? l10n.value.removeLabel : l10n.value.decrementLabel);
|
|
1150
1151
|
return (_ctx, _cache) => {
|
|
1151
|
-
return openBlock(), createElementBlock("div", {
|
|
1152
|
-
class:
|
|
1152
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
1153
|
+
class: ["tao-quantity", [
|
|
1153
1154
|
unref(sizeClass)(__props.size),
|
|
1154
1155
|
{
|
|
1155
1156
|
"tao-quantity--invalid": unref(invalid),
|
|
1156
1157
|
"tao-quantity--focused": focused.value,
|
|
1157
1158
|
"tao-quantity--disabled": __props.disabled
|
|
1158
1159
|
}
|
|
1159
|
-
]]
|
|
1160
|
-
}, [
|
|
1160
|
+
]]
|
|
1161
|
+
}), [
|
|
1161
1162
|
createElementVNode("button", {
|
|
1162
1163
|
type: "button",
|
|
1163
1164
|
class: "tao-quantity__btn tao-quantity__btn--dec",
|
|
@@ -1165,13 +1166,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1165
1166
|
disabled: minusDisabled.value,
|
|
1166
1167
|
onClick: onDec
|
|
1167
1168
|
}, [
|
|
1168
|
-
createElementVNode("span", _hoisted_2$
|
|
1169
|
+
createElementVNode("span", _hoisted_2$T, [
|
|
1169
1170
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1170
1171
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1171
1172
|
], true)
|
|
1172
1173
|
])
|
|
1173
|
-
], 8, _hoisted_1$
|
|
1174
|
-
createElementVNode("input", {
|
|
1174
|
+
], 8, _hoisted_1$11),
|
|
1175
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
1175
1176
|
id: unref(controlId),
|
|
1176
1177
|
class: "tao-quantity__input",
|
|
1177
1178
|
type: "text",
|
|
@@ -1190,7 +1191,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1190
1191
|
onFocus,
|
|
1191
1192
|
onBlur,
|
|
1192
1193
|
onKeydown: onKeydown2
|
|
1193
|
-
}, null,
|
|
1194
|
+
}), null, 16, _hoisted_3$L),
|
|
1194
1195
|
createElementVNode("button", {
|
|
1195
1196
|
type: "button",
|
|
1196
1197
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1198,46 +1199,46 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1198
1199
|
disabled: plusDisabled.value,
|
|
1199
1200
|
onClick: onInc
|
|
1200
1201
|
}, [
|
|
1201
|
-
createElementVNode("span", _hoisted_5$
|
|
1202
|
+
createElementVNode("span", _hoisted_5$u, [
|
|
1202
1203
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
1203
1204
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1204
1205
|
], true)
|
|
1205
1206
|
])
|
|
1206
|
-
], 8, _hoisted_4$
|
|
1207
|
-
],
|
|
1207
|
+
], 8, _hoisted_4$D)
|
|
1208
|
+
], 16);
|
|
1208
1209
|
};
|
|
1209
1210
|
}
|
|
1210
1211
|
});
|
|
1211
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1212
|
-
const _hoisted_1
|
|
1212
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-6453479c"]]);
|
|
1213
|
+
const _hoisted_1$10 = {
|
|
1213
1214
|
key: 0,
|
|
1214
1215
|
class: "tao-card__media"
|
|
1215
1216
|
};
|
|
1216
|
-
const _hoisted_2$
|
|
1217
|
+
const _hoisted_2$S = {
|
|
1217
1218
|
key: 0,
|
|
1218
1219
|
class: "tao-card__overlay"
|
|
1219
1220
|
};
|
|
1220
|
-
const _hoisted_3$
|
|
1221
|
+
const _hoisted_3$K = {
|
|
1221
1222
|
key: 1,
|
|
1222
1223
|
class: "tao-card__overlay"
|
|
1223
1224
|
};
|
|
1224
|
-
const _hoisted_4$
|
|
1225
|
+
const _hoisted_4$C = {
|
|
1225
1226
|
key: 0,
|
|
1226
1227
|
class: "tao-card__header"
|
|
1227
1228
|
};
|
|
1228
|
-
const _hoisted_5$
|
|
1229
|
+
const _hoisted_5$t = {
|
|
1229
1230
|
key: 1,
|
|
1230
1231
|
class: "tao-card__title-block"
|
|
1231
1232
|
};
|
|
1232
|
-
const _hoisted_6$
|
|
1233
|
+
const _hoisted_6$n = {
|
|
1233
1234
|
key: 0,
|
|
1234
1235
|
class: "tao-card__title"
|
|
1235
1236
|
};
|
|
1236
|
-
const _hoisted_7$
|
|
1237
|
+
const _hoisted_7$i = {
|
|
1237
1238
|
key: 1,
|
|
1238
1239
|
class: "tao-card__sub"
|
|
1239
1240
|
};
|
|
1240
|
-
const _hoisted_8$
|
|
1241
|
+
const _hoisted_8$c = {
|
|
1241
1242
|
key: 2,
|
|
1242
1243
|
class: "tao-card__body"
|
|
1243
1244
|
};
|
|
@@ -1250,7 +1251,7 @@ const _hoisted_10$4 = {
|
|
|
1250
1251
|
class: "tao-card__corner"
|
|
1251
1252
|
};
|
|
1252
1253
|
const _hoisted_11$4 = ["aria-label"];
|
|
1253
|
-
const _sfc_main$
|
|
1254
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
1254
1255
|
...{ name: "TaoCard" },
|
|
1255
1256
|
__name: "TaoCard",
|
|
1256
1257
|
props: {
|
|
@@ -1303,12 +1304,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1303
1304
|
}]]),
|
|
1304
1305
|
style: normalizeStyle(radiusStyle.value)
|
|
1305
1306
|
}, [
|
|
1306
|
-
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
1307
|
+
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
1307
1308
|
renderSlot(_ctx.$slots, "media", {}, void 0, true),
|
|
1308
|
-
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1309
|
+
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$S, [
|
|
1309
1310
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1310
1311
|
])) : createCommentVNode("", true)
|
|
1311
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1312
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$K, [
|
|
1312
1313
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1313
1314
|
])) : createCommentVNode("", true),
|
|
1314
1315
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1316,18 +1317,18 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1316
1317
|
class: "tao-card__content",
|
|
1317
1318
|
style: normalizeStyle(paddingStyle.value)
|
|
1318
1319
|
}, [
|
|
1319
|
-
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1320
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$C, [
|
|
1320
1321
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
1321
1322
|
])) : createCommentVNode("", true),
|
|
1322
|
-
_ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1323
|
-
_ctx.$slots.title ? (openBlock(), createElementBlock("h2", _hoisted_6$
|
|
1323
|
+
_ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_5$t, [
|
|
1324
|
+
_ctx.$slots.title ? (openBlock(), createElementBlock("h2", _hoisted_6$n, [
|
|
1324
1325
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
1325
1326
|
])) : createCommentVNode("", true),
|
|
1326
|
-
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
1327
|
+
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_7$i, [
|
|
1327
1328
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1328
1329
|
])) : createCommentVNode("", true)
|
|
1329
1330
|
])) : createCommentVNode("", true),
|
|
1330
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1331
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
|
|
1331
1332
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1332
1333
|
])) : createCommentVNode("", true),
|
|
1333
1334
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
|
|
@@ -1353,7 +1354,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1353
1354
|
};
|
|
1354
1355
|
}
|
|
1355
1356
|
});
|
|
1356
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1357
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-72c9a80f"]]);
|
|
1357
1358
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1358
1359
|
function getFocusable(root) {
|
|
1359
1360
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -1475,21 +1476,21 @@ function useLayer(open, options = {}) {
|
|
|
1475
1476
|
onBeforeUnmount(leave);
|
|
1476
1477
|
return { isTop: () => stack[stack.length - 1] === layer };
|
|
1477
1478
|
}
|
|
1478
|
-
const _hoisted_1
|
|
1479
|
-
const _hoisted_2$
|
|
1479
|
+
const _hoisted_1$$ = ["aria-labelledby"];
|
|
1480
|
+
const _hoisted_2$R = {
|
|
1480
1481
|
key: 0,
|
|
1481
1482
|
class: "tao-modal__header"
|
|
1482
1483
|
};
|
|
1483
|
-
const _hoisted_3$
|
|
1484
|
-
const _hoisted_4$
|
|
1485
|
-
const _hoisted_5$
|
|
1486
|
-
const _hoisted_6$
|
|
1487
|
-
const _hoisted_7$
|
|
1488
|
-
const _hoisted_8$
|
|
1484
|
+
const _hoisted_3$J = ["id"];
|
|
1485
|
+
const _hoisted_4$B = { key: 1 };
|
|
1486
|
+
const _hoisted_5$s = ["aria-label"];
|
|
1487
|
+
const _hoisted_6$m = { "aria-hidden": "true" };
|
|
1488
|
+
const _hoisted_7$h = { class: "tao-modal__content" };
|
|
1489
|
+
const _hoisted_8$b = {
|
|
1489
1490
|
key: 1,
|
|
1490
1491
|
class: "tao-modal__footer"
|
|
1491
1492
|
};
|
|
1492
|
-
const _sfc_main$
|
|
1493
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
1493
1494
|
...{ name: "TaoModal" },
|
|
1494
1495
|
__name: "TaoModal",
|
|
1495
1496
|
props: {
|
|
@@ -1570,13 +1571,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
1570
1571
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
1571
1572
|
tabindex: "-1"
|
|
1572
1573
|
}, [
|
|
1573
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1574
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$R, [
|
|
1574
1575
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1575
1576
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
1576
1577
|
key: 0,
|
|
1577
1578
|
id: unref(titleId),
|
|
1578
1579
|
class: "tao-modal__title"
|
|
1579
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1580
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$J)) : (openBlock(), createElementBlock("span", _hoisted_4$B))
|
|
1580
1581
|
], true),
|
|
1581
1582
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1582
1583
|
key: 0,
|
|
@@ -1585,20 +1586,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
1585
1586
|
"aria-label": unref(l10n).closeLabel,
|
|
1586
1587
|
onClick: close
|
|
1587
1588
|
}, [
|
|
1588
|
-
createElementVNode("span", _hoisted_6$
|
|
1589
|
+
createElementVNode("span", _hoisted_6$m, [
|
|
1589
1590
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
1590
1591
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
1591
1592
|
], true)
|
|
1592
1593
|
])
|
|
1593
|
-
], 8, _hoisted_5$
|
|
1594
|
+
], 8, _hoisted_5$s)) : createCommentVNode("", true)
|
|
1594
1595
|
])) : createCommentVNode("", true),
|
|
1595
|
-
createElementVNode("div", _hoisted_7$
|
|
1596
|
+
createElementVNode("div", _hoisted_7$h, [
|
|
1596
1597
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1597
1598
|
]),
|
|
1598
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1599
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$b, [
|
|
1599
1600
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1600
1601
|
])) : createCommentVNode("", true)
|
|
1601
|
-
], 8, _hoisted_1
|
|
1602
|
+
], 8, _hoisted_1$$)
|
|
1602
1603
|
], 34)) : createCommentVNode("", true)
|
|
1603
1604
|
]),
|
|
1604
1605
|
_: 3
|
|
@@ -1607,10 +1608,10 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
1607
1608
|
};
|
|
1608
1609
|
}
|
|
1609
1610
|
});
|
|
1610
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1611
|
-
const _hoisted_1$
|
|
1612
|
-
const _hoisted_2$
|
|
1613
|
-
const _sfc_main$
|
|
1611
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-4beb767f"]]);
|
|
1612
|
+
const _hoisted_1$_ = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
1613
|
+
const _hoisted_2$Q = ["id", "aria-labelledby"];
|
|
1614
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
1614
1615
|
...{ name: "TaoTabs" },
|
|
1615
1616
|
__name: "TaoTabs",
|
|
1616
1617
|
props: {
|
|
@@ -1705,7 +1706,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
1705
1706
|
}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1706
1707
|
createTextVNode(toDisplayString(tab.label), 1)
|
|
1707
1708
|
], 64))
|
|
1708
|
-
], 8, _hoisted_1$
|
|
1709
|
+
], 8, _hoisted_1$_);
|
|
1709
1710
|
}), 128))
|
|
1710
1711
|
], 36),
|
|
1711
1712
|
createElementVNode("div", {
|
|
@@ -1715,12 +1716,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
1715
1716
|
"aria-labelledby": tabId(__props.modelValue)
|
|
1716
1717
|
}, [
|
|
1717
1718
|
renderSlot(_ctx.$slots, "default", { activeTab: __props.modelValue }, void 0, true)
|
|
1718
|
-
], 8, _hoisted_2$
|
|
1719
|
+
], 8, _hoisted_2$Q)
|
|
1719
1720
|
], 2);
|
|
1720
1721
|
};
|
|
1721
1722
|
}
|
|
1722
1723
|
});
|
|
1723
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1724
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-70811078"]]);
|
|
1724
1725
|
function listenFocusLoss(onLoss) {
|
|
1725
1726
|
function onVisibilityChange() {
|
|
1726
1727
|
if (document.hidden) {
|
|
@@ -1814,22 +1815,22 @@ function normalizeMarks(marks, min, max, format = String) {
|
|
|
1814
1815
|
function isMarkActive(markValue, values) {
|
|
1815
1816
|
return values.length === 2 ? markValue >= values[0] && markValue <= values[1] : markValue <= (values[0] ?? 0);
|
|
1816
1817
|
}
|
|
1817
|
-
const _hoisted_1$
|
|
1818
|
-
const _hoisted_2$
|
|
1819
|
-
const _hoisted_3$
|
|
1818
|
+
const _hoisted_1$Z = ["aria-disabled"];
|
|
1819
|
+
const _hoisted_2$P = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
|
|
1820
|
+
const _hoisted_3$I = {
|
|
1820
1821
|
key: 0,
|
|
1821
1822
|
class: "tao-slider__value"
|
|
1822
1823
|
};
|
|
1823
|
-
const _hoisted_4$
|
|
1824
|
+
const _hoisted_4$A = {
|
|
1824
1825
|
key: 0,
|
|
1825
1826
|
class: "tao-slider__marks"
|
|
1826
1827
|
};
|
|
1827
|
-
const _hoisted_5$
|
|
1828
|
-
const _hoisted_6$
|
|
1828
|
+
const _hoisted_5$r = ["disabled", "onClick"];
|
|
1829
|
+
const _hoisted_6$l = {
|
|
1829
1830
|
key: 0,
|
|
1830
1831
|
class: "tao-slider__mark-label"
|
|
1831
1832
|
};
|
|
1832
|
-
const _sfc_main$
|
|
1833
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
1833
1834
|
...{ name: "TaoSliderBase" },
|
|
1834
1835
|
__name: "TaoSliderBase",
|
|
1835
1836
|
props: {
|
|
@@ -2051,15 +2052,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2051
2052
|
"aria-describedby": unref(describedBy),
|
|
2052
2053
|
onKeydown: ($event) => onKeydown2($event, i),
|
|
2053
2054
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
2054
|
-
}, null, 46, _hoisted_2$
|
|
2055
|
+
}, null, 46, _hoisted_2$P);
|
|
2055
2056
|
}), 128)),
|
|
2056
|
-
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2057
|
+
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
|
|
2057
2058
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2058
2059
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2059
2060
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
2060
2061
|
])) : createCommentVNode("", true)
|
|
2061
2062
|
], 34),
|
|
2062
|
-
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2063
|
+
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$A, [
|
|
2063
2064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(markList.value, (mark) => {
|
|
2064
2065
|
return openBlock(), createElementBlock("button", {
|
|
2065
2066
|
key: mark.value,
|
|
@@ -2075,7 +2076,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2075
2076
|
onClick: ($event) => onMarkClick(mark)
|
|
2076
2077
|
}, [
|
|
2077
2078
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
|
|
2078
|
-
mark.label ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2079
|
+
mark.label ? (openBlock(), createElementBlock("span", _hoisted_6$l, [
|
|
2079
2080
|
renderSlot(_ctx.$slots, "mark", {
|
|
2080
2081
|
mark,
|
|
2081
2082
|
active: unref(isMarkActive)(mark.value, values.value)
|
|
@@ -2083,15 +2084,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2083
2084
|
createTextVNode(toDisplayString(mark.label), 1)
|
|
2084
2085
|
], true)
|
|
2085
2086
|
])) : createCommentVNode("", true)
|
|
2086
|
-
], 14, _hoisted_5$
|
|
2087
|
+
], 14, _hoisted_5$r);
|
|
2087
2088
|
}), 128))
|
|
2088
2089
|
])) : createCommentVNode("", true)
|
|
2089
|
-
], 42, _hoisted_1$
|
|
2090
|
+
], 42, _hoisted_1$Z);
|
|
2090
2091
|
};
|
|
2091
2092
|
}
|
|
2092
2093
|
});
|
|
2093
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2094
|
-
const _sfc_main$
|
|
2094
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-992bdfd9"]]);
|
|
2095
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
2095
2096
|
...{ name: "TaoSlider" },
|
|
2096
2097
|
__name: "TaoSlider",
|
|
2097
2098
|
props: {
|
|
@@ -2148,13 +2149,13 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2148
2149
|
};
|
|
2149
2150
|
}
|
|
2150
2151
|
});
|
|
2151
|
-
const _hoisted_1$
|
|
2152
|
-
const _hoisted_2$
|
|
2153
|
-
const _hoisted_3$
|
|
2152
|
+
const _hoisted_1$Y = { class: "tao-scrubber__controls" };
|
|
2153
|
+
const _hoisted_2$O = { class: "tao-scrubber__track" };
|
|
2154
|
+
const _hoisted_3$H = {
|
|
2154
2155
|
key: 0,
|
|
2155
2156
|
class: "tao-scrubber__time"
|
|
2156
2157
|
};
|
|
2157
|
-
const _sfc_main$
|
|
2158
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
2158
2159
|
...{ name: "TaoScrubber" },
|
|
2159
2160
|
__name: "TaoScrubber",
|
|
2160
2161
|
props: {
|
|
@@ -2194,7 +2195,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2194
2195
|
return openBlock(), createElementBlock("div", {
|
|
2195
2196
|
class: normalizeClass(["tao-scrubber", [unref(sizeClass)(__props.size), `tao-scrubber--${__props.variant}`, { "tao-scrubber--marks-start": __props.marksSide === "start", "tao-scrubber--disabled": __props.disabled }]])
|
|
2196
2197
|
}, [
|
|
2197
|
-
createElementVNode("div", _hoisted_1$
|
|
2198
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
2198
2199
|
createVNode(TaoButton, {
|
|
2199
2200
|
size: "small",
|
|
2200
2201
|
variant: "secondary",
|
|
@@ -2224,8 +2225,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2224
2225
|
_: 1
|
|
2225
2226
|
}, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
|
|
2226
2227
|
]),
|
|
2227
|
-
createElementVNode("div", _hoisted_2$
|
|
2228
|
-
createVNode(_sfc_main$
|
|
2228
|
+
createElementVNode("div", _hoisted_2$O, [
|
|
2229
|
+
createVNode(_sfc_main$17, {
|
|
2229
2230
|
"model-value": __props.modelValue,
|
|
2230
2231
|
min: 0,
|
|
2231
2232
|
max: __props.length,
|
|
@@ -2248,7 +2249,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2248
2249
|
} : void 0
|
|
2249
2250
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
2250
2251
|
]),
|
|
2251
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2252
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$H, [
|
|
2252
2253
|
renderSlot(_ctx.$slots, "time", {
|
|
2253
2254
|
time: __props.modelValue,
|
|
2254
2255
|
length: __props.length,
|
|
@@ -2261,7 +2262,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2261
2262
|
};
|
|
2262
2263
|
}
|
|
2263
2264
|
});
|
|
2264
|
-
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2265
|
+
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-517dc331"]]);
|
|
2265
2266
|
const opposite = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
2266
2267
|
function computePosition(input) {
|
|
2267
2268
|
const { anchor, size, viewport, placement = "bottom-start", gap = 4, pad = 8, flip = true } = input;
|
|
@@ -2387,7 +2388,7 @@ function useFloating(anchor, panel, open, options = {}) {
|
|
|
2387
2388
|
});
|
|
2388
2389
|
return { style, side, anchorOffset, placed, update };
|
|
2389
2390
|
}
|
|
2390
|
-
const _sfc_main$
|
|
2391
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
2391
2392
|
...{ name: "TaoTooltip" },
|
|
2392
2393
|
__name: "TaoTooltip",
|
|
2393
2394
|
props: {
|
|
@@ -2465,7 +2466,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
2465
2466
|
};
|
|
2466
2467
|
}
|
|
2467
2468
|
});
|
|
2468
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2469
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-32ae3936"]]);
|
|
2469
2470
|
function useDismiss(open, inside, onDismiss) {
|
|
2470
2471
|
function onPointer(event) {
|
|
2471
2472
|
const target = event.target;
|
|
@@ -2494,8 +2495,8 @@ function useDismiss(open, inside, onDismiss) {
|
|
|
2494
2495
|
);
|
|
2495
2496
|
onBeforeUnmount(stop);
|
|
2496
2497
|
}
|
|
2497
|
-
const _hoisted_1$
|
|
2498
|
-
const _sfc_main$
|
|
2498
|
+
const _hoisted_1$X = { class: "tao-popover" };
|
|
2499
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
2499
2500
|
...{ name: "TaoPopover" },
|
|
2500
2501
|
__name: "TaoPopover",
|
|
2501
2502
|
props: {
|
|
@@ -2549,7 +2550,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
2549
2550
|
}
|
|
2550
2551
|
});
|
|
2551
2552
|
return (_ctx, _cache) => {
|
|
2552
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2553
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
2553
2554
|
createElementVNode("div", {
|
|
2554
2555
|
ref_key: "triggerRef",
|
|
2555
2556
|
ref: triggerRef,
|
|
@@ -2578,17 +2579,17 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
2578
2579
|
};
|
|
2579
2580
|
}
|
|
2580
2581
|
});
|
|
2581
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2582
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-6822af1e"]]);
|
|
2582
2583
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
2583
|
-
const _hoisted_1$
|
|
2584
|
-
const _hoisted_2$
|
|
2585
|
-
const _hoisted_3$
|
|
2584
|
+
const _hoisted_1$W = { class: "tao-spoiler" };
|
|
2585
|
+
const _hoisted_2$N = ["aria-expanded", "aria-controls"];
|
|
2586
|
+
const _hoisted_3$G = {
|
|
2586
2587
|
key: 0,
|
|
2587
2588
|
class: "tao-spoiler__title"
|
|
2588
2589
|
};
|
|
2589
|
-
const _hoisted_4$
|
|
2590
|
-
const _hoisted_5$
|
|
2591
|
-
const _sfc_main$
|
|
2590
|
+
const _hoisted_4$z = ["id"];
|
|
2591
|
+
const _hoisted_5$q = { class: "tao-spoiler__content-inner" };
|
|
2592
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
2592
2593
|
...{ name: "TaoSpoiler" },
|
|
2593
2594
|
__name: "TaoSpoiler",
|
|
2594
2595
|
props: {
|
|
@@ -2644,7 +2645,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2644
2645
|
});
|
|
2645
2646
|
}
|
|
2646
2647
|
return (_ctx, _cache) => {
|
|
2647
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2648
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
2648
2649
|
createElementVNode("button", {
|
|
2649
2650
|
type: "button",
|
|
2650
2651
|
class: "tao-spoiler__header",
|
|
@@ -2656,12 +2657,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2656
2657
|
class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }]),
|
|
2657
2658
|
name: "tao-chevron-right"
|
|
2658
2659
|
}, null, 8, ["class"]),
|
|
2659
|
-
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2660
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$G, [
|
|
2660
2661
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2661
2662
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2662
2663
|
], true)
|
|
2663
2664
|
])) : createCommentVNode("", true)
|
|
2664
|
-
], 8, _hoisted_2$
|
|
2665
|
+
], 8, _hoisted_2$N),
|
|
2665
2666
|
createVNode(Transition, {
|
|
2666
2667
|
name: "tao-spoiler-slide",
|
|
2667
2668
|
onBeforeEnter,
|
|
@@ -2675,10 +2676,10 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2675
2676
|
id: unref(panelId),
|
|
2676
2677
|
class: "tao-spoiler__content"
|
|
2677
2678
|
}, [
|
|
2678
|
-
createElementVNode("div", _hoisted_5$
|
|
2679
|
+
createElementVNode("div", _hoisted_5$q, [
|
|
2679
2680
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2680
2681
|
])
|
|
2681
|
-
], 8, _hoisted_4$
|
|
2682
|
+
], 8, _hoisted_4$z)) : createCommentVNode("", true)
|
|
2682
2683
|
]),
|
|
2683
2684
|
_: 3
|
|
2684
2685
|
})
|
|
@@ -2686,9 +2687,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2686
2687
|
};
|
|
2687
2688
|
}
|
|
2688
2689
|
});
|
|
2689
|
-
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2690
|
-
const _hoisted_1$
|
|
2691
|
-
const _sfc_main$
|
|
2690
|
+
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-042715ba"]]);
|
|
2691
|
+
const _hoisted_1$V = { class: "tao-spoiler-group" };
|
|
2692
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
2692
2693
|
...{ name: "TaoSpoilerGroup" },
|
|
2693
2694
|
__name: "TaoSpoilerGroup",
|
|
2694
2695
|
props: {
|
|
@@ -2713,15 +2714,15 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
2713
2714
|
setOpen
|
|
2714
2715
|
});
|
|
2715
2716
|
return (_ctx, _cache) => {
|
|
2716
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2717
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
2717
2718
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2718
2719
|
]);
|
|
2719
2720
|
};
|
|
2720
2721
|
}
|
|
2721
2722
|
});
|
|
2722
|
-
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2723
|
-
const _hoisted_1$
|
|
2724
|
-
const _sfc_main$
|
|
2723
|
+
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-7986fd2a"]]);
|
|
2724
|
+
const _hoisted_1$U = ["aria-label"];
|
|
2725
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
2725
2726
|
...{ name: "TaoCopy" },
|
|
2726
2727
|
__name: "TaoCopy",
|
|
2727
2728
|
props: {
|
|
@@ -2792,7 +2793,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
2792
2793
|
name: "tao-copy",
|
|
2793
2794
|
size: 16
|
|
2794
2795
|
})
|
|
2795
|
-
], 10, _hoisted_1$
|
|
2796
|
+
], 10, _hoisted_1$U)
|
|
2796
2797
|
], true),
|
|
2797
2798
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
2798
2799
|
copied.value && __props.tip && doneText.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -2808,8 +2809,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
2808
2809
|
};
|
|
2809
2810
|
}
|
|
2810
2811
|
});
|
|
2811
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2812
|
-
const _sfc_main
|
|
2812
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-1fb47e53"]]);
|
|
2813
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
2813
2814
|
...{ name: "TaoContainer" },
|
|
2814
2815
|
__name: "TaoContainer",
|
|
2815
2816
|
props: {
|
|
@@ -2828,8 +2829,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
2828
2829
|
};
|
|
2829
2830
|
}
|
|
2830
2831
|
});
|
|
2831
|
-
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
2832
|
-
const _sfc_main
|
|
2832
|
+
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-a5e36052"]]);
|
|
2833
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
2833
2834
|
...{ name: "TaoFlex" },
|
|
2834
2835
|
__name: "TaoFlex",
|
|
2835
2836
|
props: {
|
|
@@ -2860,7 +2861,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
2860
2861
|
};
|
|
2861
2862
|
}
|
|
2862
2863
|
});
|
|
2863
|
-
const _sfc_main$
|
|
2864
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
2864
2865
|
...{ name: "TaoSpace" },
|
|
2865
2866
|
__name: "TaoSpace",
|
|
2866
2867
|
props: {
|
|
@@ -2881,7 +2882,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
2881
2882
|
};
|
|
2882
2883
|
}
|
|
2883
2884
|
});
|
|
2884
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2885
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-d6fec8bb"]]);
|
|
2885
2886
|
const FULL_SPAN = 999;
|
|
2886
2887
|
function perSize(value, fallback, compactPlain) {
|
|
2887
2888
|
if (value === void 0 || value === null) {
|
|
@@ -2897,8 +2898,8 @@ function perSize(value, fallback, compactPlain) {
|
|
|
2897
2898
|
return { compact, medium, expanded };
|
|
2898
2899
|
}
|
|
2899
2900
|
const spanNumber = (span) => span === "full" ? FULL_SPAN : Math.max(1, Math.round(span));
|
|
2900
|
-
const _hoisted_1$
|
|
2901
|
-
const _sfc_main$
|
|
2901
|
+
const _hoisted_1$T = { class: "tao-grid__cells" };
|
|
2902
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
2902
2903
|
...{ name: "TaoGrid" },
|
|
2903
2904
|
__name: "TaoGrid",
|
|
2904
2905
|
props: {
|
|
@@ -2926,15 +2927,15 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2926
2927
|
class: normalizeClass(["tao-grid", { "tao-grid--fixed": isFixed.value }]),
|
|
2927
2928
|
style: normalizeStyle(gridStyle.value)
|
|
2928
2929
|
}, [
|
|
2929
|
-
createElementVNode("div", _hoisted_1$
|
|
2930
|
+
createElementVNode("div", _hoisted_1$T, [
|
|
2930
2931
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2931
2932
|
])
|
|
2932
2933
|
], 6);
|
|
2933
2934
|
};
|
|
2934
2935
|
}
|
|
2935
2936
|
});
|
|
2936
|
-
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2937
|
-
const _sfc_main$
|
|
2937
|
+
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-e95541e2"]]);
|
|
2938
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
2938
2939
|
...{ name: "TaoGridItem" },
|
|
2939
2940
|
__name: "TaoGridItem",
|
|
2940
2941
|
props: {
|
|
@@ -2970,15 +2971,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
2970
2971
|
};
|
|
2971
2972
|
}
|
|
2972
2973
|
});
|
|
2973
|
-
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2974
|
-
const _hoisted_1$
|
|
2975
|
-
const _hoisted_2$
|
|
2976
|
-
const _hoisted_3$
|
|
2977
|
-
const _hoisted_4$
|
|
2974
|
+
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-d42e5e67"]]);
|
|
2975
|
+
const _hoisted_1$S = { class: "tao-split__pane tao-split__pane--start" };
|
|
2976
|
+
const _hoisted_2$M = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
2977
|
+
const _hoisted_3$F = { class: "tao-split__pane tao-split__pane--end" };
|
|
2978
|
+
const _hoisted_4$y = {
|
|
2978
2979
|
key: 0,
|
|
2979
2980
|
class: "tao-split__shield"
|
|
2980
2981
|
};
|
|
2981
|
-
const _sfc_main$
|
|
2982
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
2982
2983
|
...{ name: "TaoSplit" },
|
|
2983
2984
|
__name: "TaoSplit",
|
|
2984
2985
|
props: {
|
|
@@ -3275,7 +3276,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3275
3276
|
]]),
|
|
3276
3277
|
style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
|
|
3277
3278
|
}, [
|
|
3278
|
-
createElementVNode("div", _hoisted_1$
|
|
3279
|
+
createElementVNode("div", _hoisted_1$S, [
|
|
3279
3280
|
renderSlot(_ctx.$slots, "start", {}, void 0, true)
|
|
3280
3281
|
]),
|
|
3281
3282
|
createElementVNode("div", {
|
|
@@ -3298,17 +3299,17 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3298
3299
|
onKeydown: onKeydown2,
|
|
3299
3300
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
3300
3301
|
}, ["prevent"]))
|
|
3301
|
-
}, null, 40, _hoisted_2$
|
|
3302
|
-
createElementVNode("div", _hoisted_3$
|
|
3302
|
+
}, null, 40, _hoisted_2$M),
|
|
3303
|
+
createElementVNode("div", _hoisted_3$F, [
|
|
3303
3304
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
3304
3305
|
]),
|
|
3305
|
-
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3306
|
+
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$y)) : createCommentVNode("", true)
|
|
3306
3307
|
], 6);
|
|
3307
3308
|
};
|
|
3308
3309
|
}
|
|
3309
3310
|
});
|
|
3310
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3311
|
-
const _sfc_main$
|
|
3311
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-316b0d45"]]);
|
|
3312
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
3312
3313
|
...{ name: "TaoLoader" },
|
|
3313
3314
|
__name: "TaoLoader",
|
|
3314
3315
|
props: {
|
|
@@ -3369,11 +3370,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3369
3370
|
};
|
|
3370
3371
|
}
|
|
3371
3372
|
});
|
|
3372
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3373
|
-
const _hoisted_1$
|
|
3374
|
-
const _hoisted_2$
|
|
3375
|
-
const _hoisted_3$
|
|
3376
|
-
const _sfc_main$
|
|
3373
|
+
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-49a9f1b2"]]);
|
|
3374
|
+
const _hoisted_1$R = { class: "tao-image" };
|
|
3375
|
+
const _hoisted_2$L = ["src", "alt", "loading"];
|
|
3376
|
+
const _hoisted_3$E = { class: "tao-image__placeholder" };
|
|
3377
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
3377
3378
|
...{ name: "TaoImage" },
|
|
3378
3379
|
__name: "TaoImage",
|
|
3379
3380
|
props: {
|
|
@@ -3404,7 +3405,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3404
3405
|
hasError.value = false;
|
|
3405
3406
|
});
|
|
3406
3407
|
return (_ctx, _cache) => {
|
|
3407
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3408
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
3408
3409
|
__props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
|
|
3409
3410
|
key: 0,
|
|
3410
3411
|
class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
|
|
@@ -3415,26 +3416,26 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3415
3416
|
draggable: "false",
|
|
3416
3417
|
onLoad: handleLoad,
|
|
3417
3418
|
onError: handleError
|
|
3418
|
-
}, null, 42, _hoisted_2$
|
|
3419
|
+
}, null, 42, _hoisted_2$L)) : createCommentVNode("", true),
|
|
3419
3420
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3420
|
-
createElementVNode("div", _hoisted_3$
|
|
3421
|
+
createElementVNode("div", _hoisted_3$E, toDisplayString(__props.placeholderText), 1)
|
|
3421
3422
|
], true, 1) : createCommentVNode("", true)
|
|
3422
3423
|
]);
|
|
3423
3424
|
};
|
|
3424
3425
|
}
|
|
3425
3426
|
});
|
|
3426
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3427
|
-
const _hoisted_1$
|
|
3428
|
-
const _hoisted_2$
|
|
3429
|
-
const _hoisted_3$
|
|
3427
|
+
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-61f47c52"]]);
|
|
3428
|
+
const _hoisted_1$Q = ["for"];
|
|
3429
|
+
const _hoisted_2$K = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
3430
|
+
const _hoisted_3$D = {
|
|
3430
3431
|
key: 0,
|
|
3431
3432
|
class: "tao-checkbox__label"
|
|
3432
3433
|
};
|
|
3433
|
-
const _hoisted_4$
|
|
3434
|
+
const _hoisted_4$x = {
|
|
3434
3435
|
key: 1,
|
|
3435
3436
|
class: "tao-checkbox__label"
|
|
3436
3437
|
};
|
|
3437
|
-
const _sfc_main$
|
|
3438
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
3438
3439
|
...{ name: "TaoCheckbox", inheritAttrs: false },
|
|
3439
3440
|
__name: "TaoCheckbox",
|
|
3440
3441
|
props: {
|
|
@@ -3505,25 +3506,25 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3505
3506
|
"aria-invalid": unref(invalid) || void 0,
|
|
3506
3507
|
"aria-describedby": unref(describedBy),
|
|
3507
3508
|
onChange: onInputChange
|
|
3508
|
-
}), null, 16, _hoisted_2$
|
|
3509
|
+
}), null, 16, _hoisted_2$K),
|
|
3509
3510
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
3510
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3511
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$D, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$x, [
|
|
3511
3512
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3512
3513
|
])),
|
|
3513
3514
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
3514
|
-
], 16, _hoisted_1$
|
|
3515
|
+
], 16, _hoisted_1$Q);
|
|
3515
3516
|
};
|
|
3516
3517
|
}
|
|
3517
3518
|
});
|
|
3518
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3519
|
-
const _hoisted_1$
|
|
3519
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-64c6f73a"]]);
|
|
3520
|
+
const _hoisted_1$P = {
|
|
3520
3521
|
key: 0,
|
|
3521
3522
|
class: "tao-tag__prefix"
|
|
3522
3523
|
};
|
|
3523
|
-
const _hoisted_2$
|
|
3524
|
-
const _hoisted_3$
|
|
3525
|
-
const _hoisted_4$
|
|
3526
|
-
const _sfc_main$
|
|
3524
|
+
const _hoisted_2$J = { class: "tao-tag__text" };
|
|
3525
|
+
const _hoisted_3$C = ["aria-label"];
|
|
3526
|
+
const _hoisted_4$w = { "aria-hidden": "true" };
|
|
3527
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
3527
3528
|
...{ name: "TaoTag" },
|
|
3528
3529
|
__name: "TaoTag",
|
|
3529
3530
|
props: {
|
|
@@ -3565,10 +3566,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
3565
3566
|
]]),
|
|
3566
3567
|
style: normalizeStyle(style.value)
|
|
3567
3568
|
}, [
|
|
3568
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3569
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$P, [
|
|
3569
3570
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
3570
3571
|
])) : createCommentVNode("", true),
|
|
3571
|
-
createElementVNode("span", _hoisted_2$
|
|
3572
|
+
createElementVNode("span", _hoisted_2$J, [
|
|
3572
3573
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3573
3574
|
]),
|
|
3574
3575
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
@@ -3578,27 +3579,27 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
3578
3579
|
"aria-label": unref(l10n).closeLabel,
|
|
3579
3580
|
onClick: withModifiers(onClose, ["stop"])
|
|
3580
3581
|
}, [
|
|
3581
|
-
createElementVNode("span", _hoisted_4$
|
|
3582
|
+
createElementVNode("span", _hoisted_4$w, [
|
|
3582
3583
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
3583
3584
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
3584
3585
|
], true)
|
|
3585
3586
|
])
|
|
3586
|
-
], 8, _hoisted_3$
|
|
3587
|
+
], 8, _hoisted_3$C)) : createCommentVNode("", true)
|
|
3587
3588
|
], 6);
|
|
3588
3589
|
};
|
|
3589
3590
|
}
|
|
3590
3591
|
});
|
|
3591
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3592
|
-
const _hoisted_1$
|
|
3593
|
-
const _hoisted_2$
|
|
3592
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-03794ffd"]]);
|
|
3593
|
+
const _hoisted_1$O = ["role", "aria-hidden"];
|
|
3594
|
+
const _hoisted_2$I = {
|
|
3594
3595
|
key: 1,
|
|
3595
3596
|
class: "tao-divider__text"
|
|
3596
3597
|
};
|
|
3597
|
-
const _hoisted_3$
|
|
3598
|
+
const _hoisted_3$B = {
|
|
3598
3599
|
key: 2,
|
|
3599
3600
|
class: "tao-divider__line tao-divider__line--end"
|
|
3600
3601
|
};
|
|
3601
|
-
const _sfc_main$
|
|
3602
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
3602
3603
|
...{ name: "TaoDivider" },
|
|
3603
3604
|
__name: "TaoDivider",
|
|
3604
3605
|
props: {
|
|
@@ -3629,23 +3630,23 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
3629
3630
|
key: 0,
|
|
3630
3631
|
class: normalizeClass(["tao-divider__line", { "tao-divider__line--start": hasLabel.value }])
|
|
3631
3632
|
}, null, 2)) : createCommentVNode("", true),
|
|
3632
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3633
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, [
|
|
3633
3634
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3634
3635
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
3635
3636
|
], true)
|
|
3636
3637
|
])) : createCommentVNode("", true),
|
|
3637
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3638
|
-
], 10, _hoisted_1$
|
|
3638
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$B)) : createCommentVNode("", true)
|
|
3639
|
+
], 10, _hoisted_1$O);
|
|
3639
3640
|
};
|
|
3640
3641
|
}
|
|
3641
3642
|
});
|
|
3642
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3643
|
-
const _hoisted_1$
|
|
3643
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-662ed0ea"]]);
|
|
3644
|
+
const _hoisted_1$N = {
|
|
3644
3645
|
key: 0,
|
|
3645
3646
|
class: "tao-fieldset__legend"
|
|
3646
3647
|
};
|
|
3647
|
-
const _hoisted_2$
|
|
3648
|
-
const _sfc_main$
|
|
3648
|
+
const _hoisted_2$H = { class: "tao-fieldset__body" };
|
|
3649
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
3649
3650
|
...{ name: "TaoFieldset" },
|
|
3650
3651
|
__name: "TaoFieldset",
|
|
3651
3652
|
props: {
|
|
@@ -3657,20 +3658,20 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
3657
3658
|
return openBlock(), createElementBlock("fieldset", {
|
|
3658
3659
|
class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
|
|
3659
3660
|
}, [
|
|
3660
|
-
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
3661
|
+
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$N, [
|
|
3661
3662
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
3662
3663
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
3663
3664
|
], true)
|
|
3664
3665
|
])) : createCommentVNode("", true),
|
|
3665
|
-
createElementVNode("div", _hoisted_2$
|
|
3666
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
3666
3667
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3667
3668
|
])
|
|
3668
3669
|
], 2);
|
|
3669
3670
|
};
|
|
3670
3671
|
}
|
|
3671
3672
|
});
|
|
3672
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3673
|
-
const _sfc_main$
|
|
3673
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-3445dafd"]]);
|
|
3674
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
3674
3675
|
...{ name: "TaoAnimatedBorder" },
|
|
3675
3676
|
__name: "TaoAnimatedBorder",
|
|
3676
3677
|
props: {
|
|
@@ -3713,10 +3714,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3713
3714
|
};
|
|
3714
3715
|
}
|
|
3715
3716
|
});
|
|
3716
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3717
|
-
const _hoisted_1$
|
|
3718
|
-
const _hoisted_2$
|
|
3719
|
-
const _sfc_main$
|
|
3717
|
+
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-86ba074e"]]);
|
|
3718
|
+
const _hoisted_1$M = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "readonly", "rows", "value", "aria-invalid", "aria-describedby"];
|
|
3719
|
+
const _hoisted_2$G = ["id"];
|
|
3720
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
3720
3721
|
...{ name: "TaoTextarea", inheritAttrs: false },
|
|
3721
3722
|
__name: "TaoTextarea",
|
|
3722
3723
|
props: {
|
|
@@ -3850,25 +3851,25 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3850
3851
|
onFocus,
|
|
3851
3852
|
onBlur,
|
|
3852
3853
|
onKeydown: onKeydown2
|
|
3853
|
-
}), null, 16, _hoisted_1$
|
|
3854
|
+
}), null, 16, _hoisted_1$M),
|
|
3854
3855
|
__props.count ? (openBlock(), createElementBlock("span", {
|
|
3855
3856
|
key: 0,
|
|
3856
3857
|
id: counterId.value,
|
|
3857
3858
|
class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
|
|
3858
|
-
}, toDisplayString(countLabel.value), 11, _hoisted_2$
|
|
3859
|
+
}, toDisplayString(countLabel.value), 11, _hoisted_2$G)) : createCommentVNode("", true)
|
|
3859
3860
|
], 16);
|
|
3860
3861
|
};
|
|
3861
3862
|
}
|
|
3862
3863
|
});
|
|
3863
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3864
|
-
const _hoisted_1$
|
|
3865
|
-
const _hoisted_2$
|
|
3866
|
-
const _hoisted_3$
|
|
3864
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-a428dc8a"]]);
|
|
3865
|
+
const _hoisted_1$L = ["aria-label"];
|
|
3866
|
+
const _hoisted_2$F = { class: "tao-scroll-top__content" };
|
|
3867
|
+
const _hoisted_3$A = {
|
|
3867
3868
|
key: 0,
|
|
3868
3869
|
class: "tao-scroll-top__text",
|
|
3869
3870
|
"aria-hidden": "true"
|
|
3870
3871
|
};
|
|
3871
|
-
const _sfc_main$
|
|
3872
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3872
3873
|
...{ name: "TaoScrollTop", inheritAttrs: false },
|
|
3873
3874
|
__name: "TaoScrollTop",
|
|
3874
3875
|
props: {
|
|
@@ -3963,8 +3964,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3963
3964
|
"aria-label": accessibleName.value,
|
|
3964
3965
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
3965
3966
|
}), [
|
|
3966
|
-
createElementVNode("span", _hoisted_2$
|
|
3967
|
-
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3967
|
+
createElementVNode("span", _hoisted_2$F, [
|
|
3968
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
3968
3969
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3969
3970
|
createVNode(TaoIcon, {
|
|
3970
3971
|
class: "tao-scroll-top__icon",
|
|
@@ -3973,7 +3974,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3973
3974
|
})
|
|
3974
3975
|
], true)
|
|
3975
3976
|
])
|
|
3976
|
-
], 16, _hoisted_1$
|
|
3977
|
+
], 16, _hoisted_1$L),
|
|
3977
3978
|
!isText.value && caption.value ? (openBlock(), createElementBlock("span", {
|
|
3978
3979
|
key: 0,
|
|
3979
3980
|
class: normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
|
|
@@ -3986,26 +3987,26 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3986
3987
|
};
|
|
3987
3988
|
}
|
|
3988
3989
|
});
|
|
3989
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3990
|
-
const _hoisted_1$
|
|
3991
|
-
const _hoisted_2$
|
|
3990
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-80a1abef"]]);
|
|
3991
|
+
const _hoisted_1$K = { class: "tao-progress" };
|
|
3992
|
+
const _hoisted_2$E = {
|
|
3992
3993
|
key: 0,
|
|
3993
3994
|
class: "tao-progress__side"
|
|
3994
3995
|
};
|
|
3995
|
-
const _hoisted_3$
|
|
3996
|
-
const _hoisted_4$
|
|
3996
|
+
const _hoisted_3$z = { class: "tao-progress__main" };
|
|
3997
|
+
const _hoisted_4$v = {
|
|
3997
3998
|
key: 0,
|
|
3998
3999
|
class: "tao-progress__percentage"
|
|
3999
4000
|
};
|
|
4000
|
-
const _hoisted_5$
|
|
4001
|
+
const _hoisted_5$p = {
|
|
4001
4002
|
key: 1,
|
|
4002
4003
|
class: "tao-progress__side"
|
|
4003
4004
|
};
|
|
4004
|
-
const _hoisted_6$
|
|
4005
|
+
const _hoisted_6$k = {
|
|
4005
4006
|
key: 0,
|
|
4006
4007
|
class: "tao-progress__percentage"
|
|
4007
4008
|
};
|
|
4008
|
-
const _sfc_main$
|
|
4009
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
4009
4010
|
...{ name: "TaoProgress" },
|
|
4010
4011
|
__name: "TaoProgress",
|
|
4011
4012
|
props: {
|
|
@@ -4034,16 +4035,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
4034
4035
|
() => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
|
|
4035
4036
|
);
|
|
4036
4037
|
return (_ctx, _cache) => {
|
|
4037
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4038
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
4038
4039
|
createElementVNode("div", {
|
|
4039
4040
|
class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
|
|
4040
4041
|
style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
|
|
4041
4042
|
}, [
|
|
4042
|
-
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4043
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
4043
4044
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
4044
4045
|
])) : createCommentVNode("", true),
|
|
4045
|
-
createElementVNode("div", _hoisted_3$
|
|
4046
|
-
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
4046
|
+
createElementVNode("div", _hoisted_3$z, [
|
|
4047
|
+
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$v, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
4047
4048
|
createElementVNode("div", {
|
|
4048
4049
|
class: "tao-progress__track",
|
|
4049
4050
|
style: normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -4054,17 +4055,17 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
4054
4055
|
}, null, 6)
|
|
4055
4056
|
], 4)
|
|
4056
4057
|
]),
|
|
4057
|
-
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4058
|
+
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$p, [
|
|
4058
4059
|
renderSlot(_ctx.$slots, "right", {}, void 0, true),
|
|
4059
|
-
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
4060
|
+
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$k, toDisplayString(endPercentLabel.value), 1)) : createCommentVNode("", true)
|
|
4060
4061
|
])) : createCommentVNode("", true)
|
|
4061
4062
|
], 6)
|
|
4062
4063
|
]);
|
|
4063
4064
|
};
|
|
4064
4065
|
}
|
|
4065
4066
|
});
|
|
4066
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4067
|
-
const _sfc_main$
|
|
4067
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-4de488a6"]]);
|
|
4068
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
4068
4069
|
...{ name: "TaoRangeSlider" },
|
|
4069
4070
|
__name: "TaoRangeSlider",
|
|
4070
4071
|
props: {
|
|
@@ -4121,20 +4122,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
4121
4122
|
};
|
|
4122
4123
|
}
|
|
4123
4124
|
});
|
|
4124
|
-
const _hoisted_1$
|
|
4125
|
-
const _hoisted_2$
|
|
4126
|
-
const _hoisted_3$
|
|
4127
|
-
const _hoisted_4$
|
|
4128
|
-
const _hoisted_5$
|
|
4125
|
+
const _hoisted_1$J = { class: "tao-file-drop__row" };
|
|
4126
|
+
const _hoisted_2$D = ["aria-label"];
|
|
4127
|
+
const _hoisted_3$y = { "aria-hidden": "true" };
|
|
4128
|
+
const _hoisted_4$u = ["accept", "multiple"];
|
|
4129
|
+
const _hoisted_5$o = {
|
|
4129
4130
|
key: 0,
|
|
4130
4131
|
class: "tao-file-drop__list"
|
|
4131
4132
|
};
|
|
4132
|
-
const _hoisted_6$
|
|
4133
|
-
const _hoisted_7$
|
|
4134
|
-
const _hoisted_8$
|
|
4133
|
+
const _hoisted_6$j = { class: "tao-file-drop__name" };
|
|
4134
|
+
const _hoisted_7$g = { class: "tao-file-drop__meta" };
|
|
4135
|
+
const _hoisted_8$a = ["aria-label", "onClick"];
|
|
4135
4136
|
const _hoisted_9$7 = { "aria-hidden": "true" };
|
|
4136
|
-
const _sfc_main$
|
|
4137
|
-
...{ name: "TaoFileDrop" },
|
|
4137
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
4138
|
+
...{ name: "TaoFileDrop", inheritAttrs: false },
|
|
4138
4139
|
__name: "TaoFileDrop",
|
|
4139
4140
|
props: {
|
|
4140
4141
|
modelValue: { default: () => [] },
|
|
@@ -4149,6 +4150,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4149
4150
|
},
|
|
4150
4151
|
emits: ["update:modelValue", "change", "clear-request"],
|
|
4151
4152
|
setup(__props, { emit: __emit }) {
|
|
4153
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
4152
4154
|
const appLocale = useTaoLocale();
|
|
4153
4155
|
const props = __props;
|
|
4154
4156
|
const l10n = useLocaleText(props, "fileDrop");
|
|
@@ -4266,10 +4268,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4266
4268
|
});
|
|
4267
4269
|
onBeforeUnmount(() => stopFocusLoss?.());
|
|
4268
4270
|
return (_ctx, _cache) => {
|
|
4269
|
-
return openBlock(), createElementBlock("div", {
|
|
4270
|
-
class:
|
|
4271
|
-
}, [
|
|
4272
|
-
createElementVNode("div", _hoisted_1$
|
|
4271
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
4272
|
+
class: ["tao-file-drop", unref(sizeClass)(__props.size)]
|
|
4273
|
+
}), [
|
|
4274
|
+
createElementVNode("div", _hoisted_1$J, [
|
|
4273
4275
|
__props.showClear && __props.modelValue.length ? (openBlock(), createElementBlock("button", {
|
|
4274
4276
|
key: 0,
|
|
4275
4277
|
type: "button",
|
|
@@ -4277,12 +4279,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4277
4279
|
"aria-label": unref(l10n).clearLabel,
|
|
4278
4280
|
onClick: requestClear
|
|
4279
4281
|
}, [
|
|
4280
|
-
createElementVNode("span", _hoisted_3$
|
|
4282
|
+
createElementVNode("span", _hoisted_3$y, [
|
|
4281
4283
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
4282
4284
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4283
4285
|
], true)
|
|
4284
4286
|
])
|
|
4285
|
-
], 8, _hoisted_2$
|
|
4287
|
+
], 8, _hoisted_2$D)) : createCommentVNode("", true),
|
|
4286
4288
|
createElementVNode("label", {
|
|
4287
4289
|
class: normalizeClass(["tao-file-drop__zone", { "tao-file-drop__zone--dragging": isDragging.value }]),
|
|
4288
4290
|
onDragover: handleDragOver,
|
|
@@ -4292,7 +4294,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4292
4294
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4293
4295
|
createTextVNode(toDisplayString(unref(appLocale).fileDrop.zoneText), 1)
|
|
4294
4296
|
], true),
|
|
4295
|
-
createElementVNode("input", {
|
|
4297
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
4296
4298
|
ref_key: "fileInput",
|
|
4297
4299
|
ref: fileInput,
|
|
4298
4300
|
class: "tao-sr-only",
|
|
@@ -4302,17 +4304,17 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4302
4304
|
onChange: handleFileSelect,
|
|
4303
4305
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4304
4306
|
}, ["stop"]))
|
|
4305
|
-
}, null,
|
|
4307
|
+
}), null, 16, _hoisted_4$u)
|
|
4306
4308
|
], 34)
|
|
4307
4309
|
]),
|
|
4308
|
-
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$
|
|
4310
|
+
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$o, [
|
|
4309
4311
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
4310
4312
|
return openBlock(), createElementBlock("li", {
|
|
4311
4313
|
key: fileKey(file, index),
|
|
4312
4314
|
class: "tao-file-drop__file"
|
|
4313
4315
|
}, [
|
|
4314
|
-
createElementVNode("span", _hoisted_6$
|
|
4315
|
-
createElementVNode("span", _hoisted_7$
|
|
4316
|
+
createElementVNode("span", _hoisted_6$j, toDisplayString(file.name), 1),
|
|
4317
|
+
createElementVNode("span", _hoisted_7$g, toDisplayString(sizeLabel(file.size)), 1),
|
|
4316
4318
|
createElementVNode("button", {
|
|
4317
4319
|
type: "button",
|
|
4318
4320
|
class: "tao-file-drop__remove",
|
|
@@ -4324,15 +4326,15 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4324
4326
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4325
4327
|
], true)
|
|
4326
4328
|
])
|
|
4327
|
-
], 8, _hoisted_8$
|
|
4329
|
+
], 8, _hoisted_8$a)
|
|
4328
4330
|
]);
|
|
4329
4331
|
}), 128))
|
|
4330
4332
|
])) : createCommentVNode("", true)
|
|
4331
|
-
],
|
|
4333
|
+
], 16);
|
|
4332
4334
|
};
|
|
4333
4335
|
}
|
|
4334
4336
|
});
|
|
4335
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4337
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-21fc24d9"]]);
|
|
4336
4338
|
function isMenuSelectable(item) {
|
|
4337
4339
|
return item.type !== "separator" && item.type !== "label" && !item.disabled;
|
|
4338
4340
|
}
|
|
@@ -4429,29 +4431,29 @@ function useListNav(options) {
|
|
|
4429
4431
|
}
|
|
4430
4432
|
return { onKeydown: onKeydown2 };
|
|
4431
4433
|
}
|
|
4432
|
-
const _hoisted_1$
|
|
4433
|
-
const _hoisted_2$
|
|
4434
|
+
const _hoisted_1$I = ["aria-label", "aria-activedescendant", "data-tao-menu-root"];
|
|
4435
|
+
const _hoisted_2$C = {
|
|
4434
4436
|
key: 0,
|
|
4435
4437
|
class: "tao-menu__separator",
|
|
4436
4438
|
role: "separator"
|
|
4437
4439
|
};
|
|
4438
|
-
const _hoisted_3$
|
|
4440
|
+
const _hoisted_3$x = {
|
|
4439
4441
|
key: 1,
|
|
4440
4442
|
class: "tao-menu__label",
|
|
4441
4443
|
role: "presentation"
|
|
4442
4444
|
};
|
|
4443
|
-
const _hoisted_4$
|
|
4444
|
-
const _hoisted_5$
|
|
4445
|
-
const _hoisted_6$
|
|
4445
|
+
const _hoisted_4$t = ["id", "role", "aria-checked", "aria-disabled", "aria-haspopup", "aria-expanded", "aria-keyshortcuts", "onClick", "onMouseenter"];
|
|
4446
|
+
const _hoisted_5$n = { class: "tao-menu__text" };
|
|
4447
|
+
const _hoisted_6$i = {
|
|
4446
4448
|
key: 1,
|
|
4447
4449
|
class: "tao-menu__shortcut"
|
|
4448
4450
|
};
|
|
4449
|
-
const _hoisted_7$
|
|
4451
|
+
const _hoisted_7$f = {
|
|
4450
4452
|
key: 2,
|
|
4451
4453
|
class: "tao-menu__arrow",
|
|
4452
4454
|
"aria-hidden": "true"
|
|
4453
4455
|
};
|
|
4454
|
-
const _sfc_main$
|
|
4456
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
4455
4457
|
...{ name: "TaoMenu" },
|
|
4456
4458
|
__name: "TaoMenu",
|
|
4457
4459
|
props: {
|
|
@@ -4634,7 +4636,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4634
4636
|
return openBlock(), createElementBlock(Fragment, {
|
|
4635
4637
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
4636
4638
|
}, [
|
|
4637
|
-
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4639
|
+
item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$C)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
4638
4640
|
createElementVNode("div", {
|
|
4639
4641
|
id: itemId(index),
|
|
4640
4642
|
ref_for: true,
|
|
@@ -4669,11 +4671,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4669
4671
|
class: "tao-menu__icon",
|
|
4670
4672
|
name: item.icon
|
|
4671
4673
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
4672
|
-
createElementVNode("span", _hoisted_5$
|
|
4674
|
+
createElementVNode("span", _hoisted_5$n, toDisplayString(item.label), 1)
|
|
4673
4675
|
]),
|
|
4674
|
-
"shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
4675
|
-
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4676
|
-
], 42, _hoisted_4$
|
|
4676
|
+
"shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$i, toDisplayString(item.shortcut), 1)) : createCommentVNode("", true),
|
|
4677
|
+
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$f)) : createCommentVNode("", true)
|
|
4678
|
+
], 42, _hoisted_4$t),
|
|
4677
4679
|
"items" in item && item.items && openSub.value === index ? (openBlock(), createBlock(_component_TaoMenu, {
|
|
4678
4680
|
key: 0,
|
|
4679
4681
|
items: item.items,
|
|
@@ -4687,18 +4689,18 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4687
4689
|
], 64))
|
|
4688
4690
|
], 64);
|
|
4689
4691
|
}), 128))
|
|
4690
|
-
], 46, _hoisted_1$
|
|
4692
|
+
], 46, _hoisted_1$I)) : createCommentVNode("", true)
|
|
4691
4693
|
]);
|
|
4692
4694
|
};
|
|
4693
4695
|
}
|
|
4694
4696
|
});
|
|
4695
|
-
const _hoisted_1$
|
|
4696
|
-
const _hoisted_2$
|
|
4697
|
-
const _hoisted_3$
|
|
4697
|
+
const _hoisted_1$H = { class: "tao-dropdown-menu" };
|
|
4698
|
+
const _hoisted_2$B = ["aria-expanded", "aria-label"];
|
|
4699
|
+
const _hoisted_3$w = {
|
|
4698
4700
|
key: 1,
|
|
4699
4701
|
"aria-hidden": "true"
|
|
4700
4702
|
};
|
|
4701
|
-
const _sfc_main$
|
|
4703
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
4702
4704
|
...{ name: "TaoDropdownMenu" },
|
|
4703
4705
|
__name: "TaoDropdownMenu",
|
|
4704
4706
|
props: {
|
|
@@ -4730,7 +4732,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
4730
4732
|
}
|
|
4731
4733
|
}
|
|
4732
4734
|
return (_ctx, _cache) => {
|
|
4733
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4735
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
4734
4736
|
createElementVNode("button", {
|
|
4735
4737
|
ref_key: "triggerRef",
|
|
4736
4738
|
ref: triggerRef,
|
|
@@ -4742,13 +4744,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
4742
4744
|
onClick: toggleMenu,
|
|
4743
4745
|
onKeydown: onTriggerKeydown
|
|
4744
4746
|
}, [
|
|
4745
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4747
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
4746
4748
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4747
4749
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
4748
4750
|
], true)
|
|
4749
4751
|
]))
|
|
4750
|
-
], 40, _hoisted_2$
|
|
4751
|
-
createVNode(_sfc_main$
|
|
4752
|
+
], 40, _hoisted_2$B),
|
|
4753
|
+
createVNode(_sfc_main$K, {
|
|
4752
4754
|
items: __props.items,
|
|
4753
4755
|
open: isOpen.value,
|
|
4754
4756
|
anchor: triggerRef.value,
|
|
@@ -4770,8 +4772,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
4770
4772
|
};
|
|
4771
4773
|
}
|
|
4772
4774
|
});
|
|
4773
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4774
|
-
const _sfc_main$
|
|
4775
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-e1b857ad"]]);
|
|
4776
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4775
4777
|
...{ name: "TaoContextMenu" },
|
|
4776
4778
|
__name: "TaoContextMenu",
|
|
4777
4779
|
props: {
|
|
@@ -4824,7 +4826,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
4824
4826
|
"aria-hidden": "true",
|
|
4825
4827
|
style: normalizeStyle({ left: `${point.value.x}px`, top: `${point.value.y}px` })
|
|
4826
4828
|
}, null, 4),
|
|
4827
|
-
createVNode(_sfc_main$
|
|
4829
|
+
createVNode(_sfc_main$K, {
|
|
4828
4830
|
items: __props.items,
|
|
4829
4831
|
open: isOpen.value,
|
|
4830
4832
|
anchor: anchor.value,
|
|
@@ -4846,10 +4848,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
4846
4848
|
};
|
|
4847
4849
|
}
|
|
4848
4850
|
});
|
|
4849
|
-
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4850
|
-
const _hoisted_1$
|
|
4851
|
-
const _hoisted_2$
|
|
4852
|
-
const _sfc_main$
|
|
4851
|
+
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-65a7f071"]]);
|
|
4852
|
+
const _hoisted_1$G = ["aria-label"];
|
|
4853
|
+
const _hoisted_2$A = ["tabindex", "aria-haspopup", "aria-expanded", "aria-disabled", "onClick", "onKeydown", "onMouseenter", "onFocus"];
|
|
4854
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
4853
4855
|
...{ name: "TaoMenubar" },
|
|
4854
4856
|
__name: "TaoMenubar",
|
|
4855
4857
|
props: {
|
|
@@ -4977,8 +4979,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
4977
4979
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
4978
4980
|
onMouseenter: ($event) => onEnter(index),
|
|
4979
4981
|
onFocus: ($event) => current2.value = index
|
|
4980
|
-
}, toDisplayString(entry.label), 43, _hoisted_2$
|
|
4981
|
-
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$
|
|
4982
|
+
}, toDisplayString(entry.label), 43, _hoisted_2$A),
|
|
4983
|
+
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$K, {
|
|
4982
4984
|
key: 0,
|
|
4983
4985
|
items: entry.items,
|
|
4984
4986
|
open: openIndex.value === index,
|
|
@@ -5000,11 +5002,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5000
5002
|
]), 1032, ["items", "open", "anchor", "label", "close-on-scroll"])) : createCommentVNode("", true)
|
|
5001
5003
|
], 64);
|
|
5002
5004
|
}), 128))
|
|
5003
|
-
], 10, _hoisted_1$
|
|
5005
|
+
], 10, _hoisted_1$G);
|
|
5004
5006
|
};
|
|
5005
5007
|
}
|
|
5006
5008
|
});
|
|
5007
|
-
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5009
|
+
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ce01bc7e"]]);
|
|
5008
5010
|
const toolbarKey = Symbol("tao-toolbar");
|
|
5009
5011
|
const ITEMS = 'button, a[href], input, select, textarea, [role="button"], [data-tao-toolbar-item]';
|
|
5010
5012
|
const TEXT_INPUT = /^(text|search|email|url|tel|password|number|date|time|datetime-local|month|week)$/;
|
|
@@ -5057,8 +5059,8 @@ function isTextField(el) {
|
|
|
5057
5059
|
}
|
|
5058
5060
|
return el instanceof HTMLInputElement && TEXT_INPUT.test(el.type);
|
|
5059
5061
|
}
|
|
5060
|
-
const _hoisted_1$
|
|
5061
|
-
const _sfc_main$
|
|
5062
|
+
const _hoisted_1$F = ["aria-label", "aria-orientation"];
|
|
5063
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
5062
5064
|
...{ name: "TaoToolbar" },
|
|
5063
5065
|
__name: "TaoToolbar",
|
|
5064
5066
|
props: {
|
|
@@ -5148,13 +5150,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
5148
5150
|
onKeydown: onKeydown2
|
|
5149
5151
|
}, [
|
|
5150
5152
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5151
|
-
], 42, _hoisted_1$
|
|
5153
|
+
], 42, _hoisted_1$F);
|
|
5152
5154
|
};
|
|
5153
5155
|
}
|
|
5154
5156
|
});
|
|
5155
|
-
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5156
|
-
const _hoisted_1$
|
|
5157
|
-
const _sfc_main$
|
|
5157
|
+
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-ba418d50"]]);
|
|
5158
|
+
const _hoisted_1$E = ["aria-label"];
|
|
5159
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
5158
5160
|
...{ name: "TaoToolbarGroup" },
|
|
5159
5161
|
__name: "TaoToolbarGroup",
|
|
5160
5162
|
props: {
|
|
@@ -5169,13 +5171,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
5169
5171
|
"aria-label": __props.label
|
|
5170
5172
|
}, [
|
|
5171
5173
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5172
|
-
], 10, _hoisted_1$
|
|
5174
|
+
], 10, _hoisted_1$E);
|
|
5173
5175
|
};
|
|
5174
5176
|
}
|
|
5175
5177
|
});
|
|
5176
|
-
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5177
|
-
const _hoisted_1$
|
|
5178
|
-
const _sfc_main$
|
|
5178
|
+
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-1840d8d6"]]);
|
|
5179
|
+
const _hoisted_1$D = ["aria-orientation"];
|
|
5180
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
5179
5181
|
...{ name: "TaoToolbarSeparator" },
|
|
5180
5182
|
__name: "TaoToolbarSeparator",
|
|
5181
5183
|
setup(__props) {
|
|
@@ -5186,11 +5188,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
5186
5188
|
class: normalizeClass(["tao-toolbar-separator", `tao-toolbar-separator--${orientation.value}`]),
|
|
5187
5189
|
role: "separator",
|
|
5188
5190
|
"aria-orientation": orientation.value
|
|
5189
|
-
}, null, 10, _hoisted_1$
|
|
5191
|
+
}, null, 10, _hoisted_1$D);
|
|
5190
5192
|
};
|
|
5191
5193
|
}
|
|
5192
5194
|
});
|
|
5193
|
-
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5195
|
+
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-7a0063e1"]]);
|
|
5194
5196
|
const TAO_CHART_COLORS = 6;
|
|
5195
5197
|
const chartColorVar = (index) => `var(--tao-color-chart-${index % TAO_CHART_COLORS + 1})`;
|
|
5196
5198
|
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
@@ -5228,6 +5230,41 @@ function sparklinePath(runs) {
|
|
|
5228
5230
|
function sparklineArea(runs) {
|
|
5229
5231
|
return runs.filter((run) => run.length > 1).map((run) => `M${run[0][0]} 100` + run.map(([x, y]) => `L${x} ${y}`).join("") + `L${run[run.length - 1][0]} 100Z`).join("");
|
|
5230
5232
|
}
|
|
5233
|
+
function niceFloor(x) {
|
|
5234
|
+
if (!(x > 0) || !Number.isFinite(x)) {
|
|
5235
|
+
return 0;
|
|
5236
|
+
}
|
|
5237
|
+
const magnitude = 10 ** Math.floor(Math.log10(x));
|
|
5238
|
+
const mantissa = [8, 6, 5, 4, 3, 2.5, 2, 1.5, 1].find((m) => m * magnitude <= x * (1 + 1e-9)) ?? 1;
|
|
5239
|
+
return round$1(mantissa * magnitude);
|
|
5240
|
+
}
|
|
5241
|
+
function heatmapSteps(values) {
|
|
5242
|
+
const real = values.flat().filter(finite);
|
|
5243
|
+
const max = real.length ? Math.max(...real) : 0;
|
|
5244
|
+
if (!(max > 0)) {
|
|
5245
|
+
return [];
|
|
5246
|
+
}
|
|
5247
|
+
const steps = [];
|
|
5248
|
+
for (const share of [0.1, 0.2, 0.4, 0.6, 0.8]) {
|
|
5249
|
+
const step = niceFloor(max * share);
|
|
5250
|
+
if (step > 0 && step > (steps[steps.length - 1] ?? 0)) {
|
|
5251
|
+
steps.push(step);
|
|
5252
|
+
}
|
|
5253
|
+
}
|
|
5254
|
+
return steps;
|
|
5255
|
+
}
|
|
5256
|
+
function heatmapLevel(value, steps) {
|
|
5257
|
+
if (!finite(value)) {
|
|
5258
|
+
return 0;
|
|
5259
|
+
}
|
|
5260
|
+
let level = 0;
|
|
5261
|
+
steps.forEach((step, i) => {
|
|
5262
|
+
if (value >= step) {
|
|
5263
|
+
level = i + 1;
|
|
5264
|
+
}
|
|
5265
|
+
});
|
|
5266
|
+
return level;
|
|
5267
|
+
}
|
|
5231
5268
|
function meterTone(value, min, max, low, high, optimum) {
|
|
5232
5269
|
if (!finite(low) && !finite(high)) {
|
|
5233
5270
|
return "accent";
|
|
@@ -5327,16 +5364,16 @@ function watchTaoChartTheme(apply, el) {
|
|
|
5327
5364
|
media?.removeEventListener("change", run);
|
|
5328
5365
|
};
|
|
5329
5366
|
}
|
|
5330
|
-
const _hoisted_1$
|
|
5331
|
-
const _hoisted_2$
|
|
5367
|
+
const _hoisted_1$C = ["role", "aria-label", "aria-hidden"];
|
|
5368
|
+
const _hoisted_2$z = {
|
|
5332
5369
|
class: "tao-sparkline__svg",
|
|
5333
5370
|
viewBox: "0 0 100 100",
|
|
5334
5371
|
preserveAspectRatio: "none",
|
|
5335
5372
|
"aria-hidden": "true"
|
|
5336
5373
|
};
|
|
5337
|
-
const _hoisted_3$
|
|
5338
|
-
const _hoisted_4$
|
|
5339
|
-
const _sfc_main$
|
|
5374
|
+
const _hoisted_3$v = ["d"];
|
|
5375
|
+
const _hoisted_4$s = ["d"];
|
|
5376
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
5340
5377
|
...{ name: "TaoSparkline" },
|
|
5341
5378
|
__name: "TaoSparkline",
|
|
5342
5379
|
props: {
|
|
@@ -5368,16 +5405,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5368
5405
|
"aria-label": __props.label,
|
|
5369
5406
|
"aria-hidden": __props.label ? void 0 : "true"
|
|
5370
5407
|
}, [
|
|
5371
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
5408
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$z, [
|
|
5372
5409
|
fill.value ? (openBlock(), createElementBlock("path", {
|
|
5373
5410
|
key: 0,
|
|
5374
5411
|
class: "tao-sparkline__area",
|
|
5375
5412
|
d: fill.value
|
|
5376
|
-
}, null, 8, _hoisted_3$
|
|
5413
|
+
}, null, 8, _hoisted_3$v)) : createCommentVNode("", true),
|
|
5377
5414
|
createElementVNode("path", {
|
|
5378
5415
|
class: "tao-sparkline__line",
|
|
5379
5416
|
d: line.value
|
|
5380
|
-
}, null, 8, _hoisted_4$
|
|
5417
|
+
}, null, 8, _hoisted_4$s)
|
|
5381
5418
|
])),
|
|
5382
5419
|
__props.dot && last.value ? (openBlock(), createElementBlock("span", {
|
|
5383
5420
|
key: 0,
|
|
@@ -5385,24 +5422,24 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5385
5422
|
style: normalizeStyle({ left: inset(last.value[0]), top: inset(last.value[1]) }),
|
|
5386
5423
|
"aria-hidden": "true"
|
|
5387
5424
|
}, null, 4)) : createCommentVNode("", true)
|
|
5388
|
-
], 14, _hoisted_1$
|
|
5425
|
+
], 14, _hoisted_1$C);
|
|
5389
5426
|
};
|
|
5390
5427
|
}
|
|
5391
5428
|
});
|
|
5392
|
-
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5393
|
-
const _hoisted_1$
|
|
5394
|
-
const _hoisted_2$
|
|
5429
|
+
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-76664226"]]);
|
|
5430
|
+
const _hoisted_1$B = ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-label"];
|
|
5431
|
+
const _hoisted_2$y = {
|
|
5395
5432
|
key: 0,
|
|
5396
5433
|
class: "tao-meter__head",
|
|
5397
5434
|
"aria-hidden": "true"
|
|
5398
5435
|
};
|
|
5399
|
-
const _hoisted_3$
|
|
5400
|
-
const _hoisted_4$
|
|
5436
|
+
const _hoisted_3$u = { class: "tao-meter__label" };
|
|
5437
|
+
const _hoisted_4$r = {
|
|
5401
5438
|
key: 0,
|
|
5402
5439
|
class: "tao-meter__value"
|
|
5403
5440
|
};
|
|
5404
|
-
const _hoisted_5$
|
|
5405
|
-
const _sfc_main$
|
|
5441
|
+
const _hoisted_5$m = { class: "tao-meter__track" };
|
|
5442
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
5406
5443
|
...{ name: "TaoMeter" },
|
|
5407
5444
|
__name: "TaoMeter",
|
|
5408
5445
|
props: {
|
|
@@ -5436,38 +5473,38 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5436
5473
|
"aria-valuetext": typeof __props.valueText === "string" ? __props.valueText : void 0,
|
|
5437
5474
|
"aria-label": __props.label
|
|
5438
5475
|
}, [
|
|
5439
|
-
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5440
|
-
createElementVNode("span", _hoisted_3$
|
|
5441
|
-
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
5476
|
+
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
5477
|
+
createElementVNode("span", _hoisted_3$u, toDisplayString(__props.label), 1),
|
|
5478
|
+
shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
|
|
5442
5479
|
])) : createCommentVNode("", true),
|
|
5443
|
-
createElementVNode("div", _hoisted_5$
|
|
5480
|
+
createElementVNode("div", _hoisted_5$m, [
|
|
5444
5481
|
createElementVNode("div", {
|
|
5445
5482
|
class: "tao-meter__fill",
|
|
5446
5483
|
style: normalizeStyle({ width: `${share.value * 100}%` })
|
|
5447
5484
|
}, null, 4)
|
|
5448
5485
|
])
|
|
5449
|
-
], 10, _hoisted_1$
|
|
5486
|
+
], 10, _hoisted_1$B);
|
|
5450
5487
|
};
|
|
5451
5488
|
}
|
|
5452
5489
|
});
|
|
5453
|
-
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5454
|
-
const _hoisted_1$
|
|
5455
|
-
const _hoisted_2$
|
|
5456
|
-
const _hoisted_3$
|
|
5457
|
-
const _hoisted_4$
|
|
5458
|
-
const _hoisted_5$
|
|
5490
|
+
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-17e24a8e"]]);
|
|
5491
|
+
const _hoisted_1$A = ["aria-label"];
|
|
5492
|
+
const _hoisted_2$x = ["viewBox", "width", "height"];
|
|
5493
|
+
const _hoisted_3$t = ["cx", "cy", "r", "stroke-width"];
|
|
5494
|
+
const _hoisted_4$q = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
5495
|
+
const _hoisted_5$l = {
|
|
5459
5496
|
key: 0,
|
|
5460
5497
|
class: "tao-donut__centre",
|
|
5461
5498
|
"aria-hidden": "true"
|
|
5462
5499
|
};
|
|
5463
|
-
const _hoisted_6$
|
|
5500
|
+
const _hoisted_6$h = {
|
|
5464
5501
|
key: 0,
|
|
5465
5502
|
class: "tao-donut__legend",
|
|
5466
5503
|
"aria-hidden": "true"
|
|
5467
5504
|
};
|
|
5468
|
-
const _hoisted_7$
|
|
5469
|
-
const _hoisted_8$
|
|
5470
|
-
const _sfc_main$
|
|
5505
|
+
const _hoisted_7$e = { class: "tao-donut__name" };
|
|
5506
|
+
const _hoisted_8$9 = { class: "tao-donut__share" };
|
|
5507
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
5471
5508
|
...{ name: "TaoDonut" },
|
|
5472
5509
|
__name: "TaoDonut",
|
|
5473
5510
|
props: {
|
|
@@ -5528,7 +5565,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5528
5565
|
cy: centre.value,
|
|
5529
5566
|
r: radius.value,
|
|
5530
5567
|
"stroke-width": __props.thickness
|
|
5531
|
-
}, null, 8, _hoisted_3$
|
|
5568
|
+
}, null, 8, _hoisted_3$t),
|
|
5532
5569
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
5533
5570
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
5534
5571
|
key: arc.key,
|
|
@@ -5542,16 +5579,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5542
5579
|
"stroke-dashoffset": -arc.start,
|
|
5543
5580
|
transform: `rotate(-90 ${centre.value} ${centre.value})`,
|
|
5544
5581
|
style: normalizeStyle({ stroke: arc.stroke })
|
|
5545
|
-
}, null, 14, _hoisted_4$
|
|
5582
|
+
}, null, 14, _hoisted_4$q)), [
|
|
5546
5583
|
[vShow, arc.length > 0]
|
|
5547
5584
|
]);
|
|
5548
5585
|
}), 128))
|
|
5549
|
-
], 8, _hoisted_2$
|
|
5550
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5586
|
+
], 8, _hoisted_2$x)),
|
|
5587
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
|
|
5551
5588
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5552
5589
|
])) : createCommentVNode("", true)
|
|
5553
|
-
], 12, _hoisted_1$
|
|
5554
|
-
__props.legend && __props.segments ? (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
5590
|
+
], 12, _hoisted_1$A),
|
|
5591
|
+
__props.legend && __props.segments ? (openBlock(), createElementBlock("ul", _hoisted_6$h, [
|
|
5555
5592
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
5556
5593
|
return openBlock(), createElementBlock("li", {
|
|
5557
5594
|
key: arc.key,
|
|
@@ -5561,8 +5598,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5561
5598
|
class: normalizeClass(["tao-donut__swatch", unref(toneClass)(arc.tone)]),
|
|
5562
5599
|
style: normalizeStyle({ background: arc.stroke })
|
|
5563
5600
|
}, null, 6),
|
|
5564
|
-
createElementVNode("span", _hoisted_7$
|
|
5565
|
-
createElementVNode("span", _hoisted_8$
|
|
5601
|
+
createElementVNode("span", _hoisted_7$e, toDisplayString(arc.label), 1),
|
|
5602
|
+
createElementVNode("span", _hoisted_8$9, toDisplayString(percent(arc.share)), 1)
|
|
5566
5603
|
]);
|
|
5567
5604
|
}), 128))
|
|
5568
5605
|
])) : createCommentVNode("", true)
|
|
@@ -5570,7 +5607,269 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5570
5607
|
};
|
|
5571
5608
|
}
|
|
5572
5609
|
});
|
|
5573
|
-
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5610
|
+
const TaoDonut = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-30b93ef0"]]);
|
|
5611
|
+
const _hoisted_1$z = ["aria-label", "aria-rowcount", "aria-colcount"];
|
|
5612
|
+
const _hoisted_2$w = {
|
|
5613
|
+
class: "tao-heatmap__row tao-heatmap__head",
|
|
5614
|
+
role: "row"
|
|
5615
|
+
};
|
|
5616
|
+
const _hoisted_3$s = {
|
|
5617
|
+
class: "tao-heatmap__name",
|
|
5618
|
+
role: "rowheader"
|
|
5619
|
+
};
|
|
5620
|
+
const _hoisted_4$p = ["data-r", "data-c", "tabindex", "onPointerenter", "onFocus"];
|
|
5621
|
+
const _hoisted_5$k = { class: "tao-sr-only" };
|
|
5622
|
+
const _hoisted_6$g = { class: "tao-heatmap__tip-where" };
|
|
5623
|
+
const _hoisted_7$d = { class: "tao-heatmap__tip-value" };
|
|
5624
|
+
const _hoisted_8$8 = {
|
|
5625
|
+
key: 1,
|
|
5626
|
+
class: "tao-heatmap__legend",
|
|
5627
|
+
"aria-hidden": "true"
|
|
5628
|
+
};
|
|
5629
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
5630
|
+
...{ name: "TaoHeatmap" },
|
|
5631
|
+
__name: "TaoHeatmap",
|
|
5632
|
+
props: {
|
|
5633
|
+
values: {},
|
|
5634
|
+
rows: {},
|
|
5635
|
+
cols: {},
|
|
5636
|
+
steps: { default: void 0 },
|
|
5637
|
+
tone: { default: "accent" },
|
|
5638
|
+
label: { default: void 0 },
|
|
5639
|
+
legend: { type: Boolean, default: true },
|
|
5640
|
+
hatch: { default: 1 },
|
|
5641
|
+
labelEvery: { default: void 0 },
|
|
5642
|
+
colLabels: { default: "bottom" },
|
|
5643
|
+
cellHeight: { default: void 0 },
|
|
5644
|
+
gap: { default: 3 },
|
|
5645
|
+
format: { type: Function, default: void 0 }
|
|
5646
|
+
},
|
|
5647
|
+
setup(__props) {
|
|
5648
|
+
const props = __props;
|
|
5649
|
+
const locale = useTaoLocale();
|
|
5650
|
+
const numberFormat = computed(() => new Intl.NumberFormat(locale.value.code));
|
|
5651
|
+
const write = (value) => value === null || !Number.isFinite(value) ? "—" : props.format ? props.format(value) : numberFormat.value.format(value);
|
|
5652
|
+
const thresholds = computed(() => props.steps ? [...props.steps].sort((a, b) => a - b) : heatmapSteps(props.values));
|
|
5653
|
+
const top = computed(() => Math.max(1, thresholds.value.length));
|
|
5654
|
+
const grid = computed(
|
|
5655
|
+
() => props.rows.map(
|
|
5656
|
+
(_, r) => props.cols.map((_2, c) => {
|
|
5657
|
+
const raw = props.values[r]?.[c];
|
|
5658
|
+
const value = typeof raw === "number" && Number.isFinite(raw) ? raw : null;
|
|
5659
|
+
return { key: `${r}-${c}`, value, level: heatmapLevel(value, thresholds.value), text: write(value) };
|
|
5660
|
+
})
|
|
5661
|
+
)
|
|
5662
|
+
);
|
|
5663
|
+
const strength = (level) => Math.round(18 + 82 * (level - 1) / Math.max(1, top.value - 1));
|
|
5664
|
+
const levelStyle = (level) => level > 0 ? { "--_mix": `${top.value === 1 ? 100 : strength(level)}%` } : void 0;
|
|
5665
|
+
const levelClass = (level) => ({
|
|
5666
|
+
"tao-heatmap__fill--on": level > 0,
|
|
5667
|
+
"tao-heatmap__fill--hatch": level > 0 && level <= props.hatch && top.value > props.hatch
|
|
5668
|
+
});
|
|
5669
|
+
const legendItems = computed(() => thresholds.value.map((step, i) => ({ level: i + 1, text: `${write(step)}+` })));
|
|
5670
|
+
const fitEvery = ref(1);
|
|
5671
|
+
const every = computed(() => Math.max(1, Math.round(props.labelEvery ?? fitEvery.value)));
|
|
5672
|
+
const quietCol = (c) => every.value > 1 && c % every.value !== 0;
|
|
5673
|
+
const measure = ref(null);
|
|
5674
|
+
let observer;
|
|
5675
|
+
function fit() {
|
|
5676
|
+
const box = measure.value;
|
|
5677
|
+
const cell = root.value?.querySelector("[role=gridcell]");
|
|
5678
|
+
if (!box || !cell || props.labelEvery !== void 0) {
|
|
5679
|
+
return;
|
|
5680
|
+
}
|
|
5681
|
+
const widest = Math.max(0, ...[...box.children].map((el) => el.offsetWidth));
|
|
5682
|
+
const column = cell.getBoundingClientRect().width + props.gap;
|
|
5683
|
+
const need = column > 0 ? Math.ceil((widest + 8) / column) : 1;
|
|
5684
|
+
const n = props.cols.length;
|
|
5685
|
+
fitEvery.value = Array.from({ length: n }, (_, i) => i + 1).find((k) => k >= need && n % k === 0) ?? need;
|
|
5686
|
+
}
|
|
5687
|
+
onMounted(() => {
|
|
5688
|
+
fit();
|
|
5689
|
+
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
5690
|
+
observer = new ResizeObserver(() => fit());
|
|
5691
|
+
observer.observe(root.value);
|
|
5692
|
+
}
|
|
5693
|
+
});
|
|
5694
|
+
onBeforeUnmount(() => observer?.disconnect());
|
|
5695
|
+
watch(() => [props.cols, props.labelEvery, props.gap], () => nextTick(fit));
|
|
5696
|
+
const active = ref({ r: 0, c: 0 });
|
|
5697
|
+
const root = ref(null);
|
|
5698
|
+
const cellAt = (r, c) => root.value?.querySelector(`[data-r="${r}"][data-c="${c}"]`) ?? null;
|
|
5699
|
+
function move(r, c) {
|
|
5700
|
+
const rr = Math.min(props.rows.length - 1, Math.max(0, r));
|
|
5701
|
+
const cc = Math.min(props.cols.length - 1, Math.max(0, c));
|
|
5702
|
+
active.value = { r: rr, c: cc };
|
|
5703
|
+
cellAt(rr, cc)?.focus();
|
|
5704
|
+
}
|
|
5705
|
+
function onKeydown2(event) {
|
|
5706
|
+
const { r, c } = active.value;
|
|
5707
|
+
const last = { r: props.rows.length - 1, c: props.cols.length - 1 };
|
|
5708
|
+
const to = {
|
|
5709
|
+
ArrowRight: () => move(r, c + 1),
|
|
5710
|
+
ArrowLeft: () => move(r, c - 1),
|
|
5711
|
+
ArrowDown: () => move(r + 1, c),
|
|
5712
|
+
ArrowUp: () => move(r - 1, c),
|
|
5713
|
+
Home: () => move(event.ctrlKey ? 0 : r, 0),
|
|
5714
|
+
End: () => move(event.ctrlKey ? last.r : r, last.c),
|
|
5715
|
+
PageUp: () => move(0, c),
|
|
5716
|
+
PageDown: () => move(last.r, c)
|
|
5717
|
+
};
|
|
5718
|
+
const go = to[event.key];
|
|
5719
|
+
if (go) {
|
|
5720
|
+
event.preventDefault();
|
|
5721
|
+
go();
|
|
5722
|
+
}
|
|
5723
|
+
}
|
|
5724
|
+
const tipCell = ref(null);
|
|
5725
|
+
const tipRef = ref(null);
|
|
5726
|
+
const tipPlace = ref({ left: 0, top: 0, shown: false });
|
|
5727
|
+
const tip = computed(() => {
|
|
5728
|
+
if (!tipCell.value) {
|
|
5729
|
+
return null;
|
|
5730
|
+
}
|
|
5731
|
+
const { r, c } = tipCell.value;
|
|
5732
|
+
const cell = grid.value[r]?.[c];
|
|
5733
|
+
return cell ? { row: props.rows[r], col: props.cols[c], value: cell.value, text: cell.text } : null;
|
|
5734
|
+
});
|
|
5735
|
+
async function show(r, c) {
|
|
5736
|
+
tipCell.value = { r, c };
|
|
5737
|
+
tipPlace.value = { ...tipPlace.value, shown: false };
|
|
5738
|
+
await nextTick();
|
|
5739
|
+
const el = cellAt(r, c);
|
|
5740
|
+
const box = root.value;
|
|
5741
|
+
const bubble = tipRef.value;
|
|
5742
|
+
if (!el || !box || !bubble || tipCell.value?.r !== r || tipCell.value?.c !== c) {
|
|
5743
|
+
return;
|
|
5744
|
+
}
|
|
5745
|
+
const cellRect = el.getBoundingClientRect();
|
|
5746
|
+
const boxRect = box.getBoundingClientRect();
|
|
5747
|
+
const width = bubble.offsetWidth;
|
|
5748
|
+
const height = bubble.offsetHeight;
|
|
5749
|
+
const centre = cellRect.left - boxRect.left + cellRect.width / 2;
|
|
5750
|
+
const left = Math.round(Math.min(Math.max(0, centre - width / 2), Math.max(0, boxRect.width - width)));
|
|
5751
|
+
const above = cellRect.top - boxRect.top - height - 6;
|
|
5752
|
+
const below = cellRect.bottom - boxRect.top + 6;
|
|
5753
|
+
tipPlace.value = { left, top: Math.round(above >= 0 ? above : below), shown: true };
|
|
5754
|
+
}
|
|
5755
|
+
function hide() {
|
|
5756
|
+
tipCell.value = null;
|
|
5757
|
+
}
|
|
5758
|
+
function onFocusOut(event) {
|
|
5759
|
+
if (!root.value?.contains(event.relatedTarget)) {
|
|
5760
|
+
hide();
|
|
5761
|
+
}
|
|
5762
|
+
}
|
|
5763
|
+
const columns = computed(() => `auto repeat(${Math.max(1, props.cols.length)}, minmax(0, 1fr))`);
|
|
5764
|
+
return (_ctx, _cache) => {
|
|
5765
|
+
return openBlock(), createElementBlock("div", {
|
|
5766
|
+
ref_key: "root",
|
|
5767
|
+
ref: root,
|
|
5768
|
+
class: normalizeClass(["tao-heatmap", unref(toneClass)(__props.tone)])
|
|
5769
|
+
}, [
|
|
5770
|
+
createElementVNode("div", {
|
|
5771
|
+
class: normalizeClass(["tao-heatmap__grid", `tao-heatmap__grid--labels-${__props.colLabels}`]),
|
|
5772
|
+
role: "grid",
|
|
5773
|
+
"aria-label": __props.label,
|
|
5774
|
+
"aria-rowcount": __props.rows.length + 1,
|
|
5775
|
+
"aria-colcount": __props.cols.length + 1,
|
|
5776
|
+
style: normalizeStyle({ gridTemplateColumns: columns.value, gap: `${__props.gap}px` }),
|
|
5777
|
+
onKeydown: onKeydown2,
|
|
5778
|
+
onPointerleave: hide,
|
|
5779
|
+
onFocusout: onFocusOut
|
|
5780
|
+
}, [
|
|
5781
|
+
createElementVNode("div", _hoisted_2$w, [
|
|
5782
|
+
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
5783
|
+
class: "tao-heatmap__corner",
|
|
5784
|
+
role: "columnheader"
|
|
5785
|
+
}, null, -1)),
|
|
5786
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.cols, (col, c) => {
|
|
5787
|
+
return openBlock(), createElementBlock("span", {
|
|
5788
|
+
key: `col-${c}`,
|
|
5789
|
+
class: "tao-heatmap__col",
|
|
5790
|
+
role: "columnheader"
|
|
5791
|
+
}, [
|
|
5792
|
+
createElementVNode("span", {
|
|
5793
|
+
class: normalizeClass(quietCol(c) ? "tao-sr-only" : "tao-heatmap__col-text")
|
|
5794
|
+
}, toDisplayString(col), 3)
|
|
5795
|
+
]);
|
|
5796
|
+
}), 128))
|
|
5797
|
+
]),
|
|
5798
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, r) => {
|
|
5799
|
+
return openBlock(), createElementBlock("div", {
|
|
5800
|
+
key: `row-${r}`,
|
|
5801
|
+
class: "tao-heatmap__row",
|
|
5802
|
+
role: "row"
|
|
5803
|
+
}, [
|
|
5804
|
+
createElementVNode("span", _hoisted_3$s, toDisplayString(row), 1),
|
|
5805
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
|
|
5806
|
+
return openBlock(), createElementBlock("span", {
|
|
5807
|
+
key: cell.key,
|
|
5808
|
+
class: "tao-heatmap__cell",
|
|
5809
|
+
role: "gridcell",
|
|
5810
|
+
"data-r": r,
|
|
5811
|
+
"data-c": c,
|
|
5812
|
+
tabindex: active.value.r === r && active.value.c === c ? 0 : -1,
|
|
5813
|
+
style: normalizeStyle(__props.cellHeight ? { height: `${__props.cellHeight}px` } : void 0),
|
|
5814
|
+
onPointerenter: ($event) => show(r, c),
|
|
5815
|
+
onFocus: ($event) => {
|
|
5816
|
+
active.value = { r, c };
|
|
5817
|
+
show(r, c);
|
|
5818
|
+
}
|
|
5819
|
+
}, [
|
|
5820
|
+
createElementVNode("span", {
|
|
5821
|
+
class: normalizeClass(["tao-heatmap__fill", levelClass(cell.level)]),
|
|
5822
|
+
style: normalizeStyle(levelStyle(cell.level)),
|
|
5823
|
+
"aria-hidden": "true"
|
|
5824
|
+
}, null, 6),
|
|
5825
|
+
createElementVNode("span", _hoisted_5$k, toDisplayString(cell.text), 1)
|
|
5826
|
+
], 44, _hoisted_4$p);
|
|
5827
|
+
}), 128))
|
|
5828
|
+
]);
|
|
5829
|
+
}), 128))
|
|
5830
|
+
], 46, _hoisted_1$z),
|
|
5831
|
+
tip.value ? (openBlock(), createElementBlock("div", {
|
|
5832
|
+
key: 0,
|
|
5833
|
+
ref_key: "tipRef",
|
|
5834
|
+
ref: tipRef,
|
|
5835
|
+
class: normalizeClass(["tao-heatmap__tip", { "tao-heatmap__tip--shown": tipPlace.value.shown }]),
|
|
5836
|
+
style: normalizeStyle({ left: `${tipPlace.value.left}px`, top: `${tipPlace.value.top}px` }),
|
|
5837
|
+
"aria-hidden": "true"
|
|
5838
|
+
}, [
|
|
5839
|
+
renderSlot(_ctx.$slots, "tip", normalizeProps(guardReactiveProps(tip.value)), () => [
|
|
5840
|
+
createElementVNode("span", _hoisted_6$g, toDisplayString(tip.value.row) + ", " + toDisplayString(tip.value.col), 1),
|
|
5841
|
+
createElementVNode("strong", _hoisted_7$d, toDisplayString(tip.value.text), 1)
|
|
5842
|
+
], true)
|
|
5843
|
+
], 6)) : createCommentVNode("", true),
|
|
5844
|
+
createElementVNode("div", {
|
|
5845
|
+
ref_key: "measure",
|
|
5846
|
+
ref: measure,
|
|
5847
|
+
class: "tao-heatmap__measure",
|
|
5848
|
+
"aria-hidden": "true"
|
|
5849
|
+
}, [
|
|
5850
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.cols, (col, c) => {
|
|
5851
|
+
return openBlock(), createElementBlock("span", { key: c }, toDisplayString(col), 1);
|
|
5852
|
+
}), 128))
|
|
5853
|
+
], 512),
|
|
5854
|
+
__props.legend && legendItems.value.length ? (openBlock(), createElementBlock("ul", _hoisted_8$8, [
|
|
5855
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(legendItems.value, (item) => {
|
|
5856
|
+
return openBlock(), createElementBlock("li", {
|
|
5857
|
+
key: item.level,
|
|
5858
|
+
class: "tao-heatmap__legend-item"
|
|
5859
|
+
}, [
|
|
5860
|
+
createElementVNode("span", {
|
|
5861
|
+
class: normalizeClass(["tao-heatmap__swatch tao-heatmap__fill", levelClass(item.level)]),
|
|
5862
|
+
style: normalizeStyle(levelStyle(item.level))
|
|
5863
|
+
}, null, 6),
|
|
5864
|
+
createTextVNode(" " + toDisplayString(item.text), 1)
|
|
5865
|
+
]);
|
|
5866
|
+
}), 128))
|
|
5867
|
+
])) : createCommentVNode("", true)
|
|
5868
|
+
], 2);
|
|
5869
|
+
};
|
|
5870
|
+
}
|
|
5871
|
+
});
|
|
5872
|
+
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dad386aa"]]);
|
|
5574
5873
|
const _hoisted_1$y = { class: "tao-nav__shell" };
|
|
5575
5874
|
const _hoisted_2$v = ["aria-label"];
|
|
5576
5875
|
const _hoisted_3$r = { class: "tao-nav__column" };
|
|
@@ -5735,7 +6034,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5735
6034
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5736
6035
|
])) : createCommentVNode("", true)
|
|
5737
6036
|
]),
|
|
5738
|
-
overflowing.value ? (openBlock(), createBlock(_sfc_main$
|
|
6037
|
+
overflowing.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
5739
6038
|
key: 0,
|
|
5740
6039
|
items: moreMenu.value,
|
|
5741
6040
|
open: moreOpen.value,
|
|
@@ -6499,7 +6798,7 @@ const _hoisted_2$q = {
|
|
|
6499
6798
|
class: "tao-pin-code__separator",
|
|
6500
6799
|
"aria-hidden": "true"
|
|
6501
6800
|
};
|
|
6502
|
-
const _hoisted_3$m = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
6801
|
+
const _hoisted_3$m = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
6503
6802
|
const _hoisted_4$k = {
|
|
6504
6803
|
key: 0,
|
|
6505
6804
|
class: "tao-pin-code__separator",
|
|
@@ -6754,6 +7053,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6754
7053
|
inputmode: __props.numbersOnly ? "numeric" : "text",
|
|
6755
7054
|
pattern: __props.numbersOnly ? "[0-9]" : void 0,
|
|
6756
7055
|
autocomplete: "one-time-code",
|
|
7056
|
+
"aria-label": unref(formatText)(unref(l10n).cellLabel ?? unref(localeEn).pinCode.cellLabel, { n: index + 1, count: numbers.value.length }),
|
|
6757
7057
|
maxlength: index === 0 ? count.value : 1,
|
|
6758
7058
|
onInput: ($event) => onChange($event, index),
|
|
6759
7059
|
onPaste: ($event) => onPaste($event, index),
|
|
@@ -6769,7 +7069,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6769
7069
|
};
|
|
6770
7070
|
}
|
|
6771
7071
|
});
|
|
6772
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
7072
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-94bbb076"]]);
|
|
6773
7073
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
6774
7074
|
...{ name: "TaoLink" },
|
|
6775
7075
|
__name: "TaoLink",
|
|
@@ -7637,7 +7937,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7637
7937
|
const areaText = computed(() => `${Math.round(state.s * 100)}%, ${Math.round(state.v * 100)}%`);
|
|
7638
7938
|
return (_ctx, _cache) => {
|
|
7639
7939
|
return openBlock(), createElementBlock("div", {
|
|
7640
|
-
class: normalizeClass(["tao-color-picker", [unref(sizeClass)(__props.size), { "tao-color-picker--disabled": __props.disabled }]])
|
|
7940
|
+
class: normalizeClass(["tao-color-picker", [unref(sizeClass)(__props.size), { "tao-color-picker--disabled": __props.disabled }]]),
|
|
7941
|
+
role: "group"
|
|
7641
7942
|
}, [
|
|
7642
7943
|
createElementVNode("div", {
|
|
7643
7944
|
ref_key: "areaRef",
|
|
@@ -7663,7 +7964,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7663
7964
|
}, null, 4)
|
|
7664
7965
|
], 44, _hoisted_1$o),
|
|
7665
7966
|
createElementVNode("div", _hoisted_2$m, [
|
|
7666
|
-
createVNode(_sfc_main$
|
|
7967
|
+
createVNode(_sfc_main$17, {
|
|
7667
7968
|
modelValue: hueValue.value,
|
|
7668
7969
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hueValue.value = $event),
|
|
7669
7970
|
class: "tao-color-picker__hue",
|
|
@@ -7675,7 +7976,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7675
7976
|
"aria-label": unref(l10n).hueLabel,
|
|
7676
7977
|
onChange: _cache[1] || (_cache[1] = ($event) => emit("change", hex.value))
|
|
7677
7978
|
}, null, 8, ["modelValue", "disabled", "aria-label"]),
|
|
7678
|
-
__props.alpha ? (openBlock(), createBlock(_sfc_main$
|
|
7979
|
+
__props.alpha ? (openBlock(), createBlock(_sfc_main$17, {
|
|
7679
7980
|
key: 0,
|
|
7680
7981
|
modelValue: alphaValue.value,
|
|
7681
7982
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => alphaValue.value = $event),
|
|
@@ -7781,12 +8082,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7781
8082
|
};
|
|
7782
8083
|
}
|
|
7783
8084
|
});
|
|
7784
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-
|
|
8085
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-54d56769"]]);
|
|
7785
8086
|
const _hoisted_1$n = ["disabled", "aria-label", "aria-expanded"];
|
|
7786
8087
|
const _hoisted_2$l = { class: "tao-color-input__swatch" };
|
|
7787
8088
|
const _hoisted_3$i = { class: "tao-color-input__text" };
|
|
7788
8089
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
7789
|
-
...{ name: "TaoColorInput" },
|
|
8090
|
+
...{ name: "TaoColorInput", inheritAttrs: false },
|
|
7790
8091
|
__name: "TaoColorInput",
|
|
7791
8092
|
props: {
|
|
7792
8093
|
modelValue: {},
|
|
@@ -7803,32 +8104,34 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7803
8104
|
},
|
|
7804
8105
|
emits: ["update:modelValue", "update:mode", "change"],
|
|
7805
8106
|
setup(__props, { emit: __emit }) {
|
|
8107
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
7806
8108
|
const props = __props;
|
|
7807
8109
|
const emit = __emit;
|
|
7808
8110
|
const l10n = useLocaleText(props, "colorPicker");
|
|
7809
8111
|
const shown = computed(() => normalizeHex(props.modelValue, props.alpha) ?? props.modelValue);
|
|
8112
|
+
const buttonLabel = (given) => `${typeof given === "string" && given ? given : l10n.value.chooseLabel}: ${shown.value}`;
|
|
7810
8113
|
return (_ctx, _cache) => {
|
|
7811
|
-
return openBlock(), createBlock(TaoPopover, {
|
|
8114
|
+
return openBlock(), createBlock(TaoPopover, mergeProps(unref(rootAttrs)(), {
|
|
7812
8115
|
placement: __props.placement,
|
|
7813
8116
|
disabled: __props.disabled,
|
|
7814
8117
|
class: "tao-color-input-root"
|
|
7815
|
-
}, {
|
|
8118
|
+
}), {
|
|
7816
8119
|
trigger: withCtx(({ open }) => [
|
|
7817
|
-
createElementVNode("button", {
|
|
8120
|
+
createElementVNode("button", mergeProps(unref(controlAttrs)(), {
|
|
7818
8121
|
type: "button",
|
|
7819
|
-
class:
|
|
8122
|
+
class: ["tao-color-input", [unref(sizeClass)(__props.size), { "tao-color-input--open": open, "tao-color-input--invalid": __props.error }]],
|
|
7820
8123
|
disabled: __props.disabled,
|
|
7821
|
-
"aria-label":
|
|
8124
|
+
"aria-label": buttonLabel(_ctx.$attrs["aria-label"]),
|
|
7822
8125
|
"aria-haspopup": "dialog",
|
|
7823
8126
|
"aria-expanded": open
|
|
7824
|
-
}, [
|
|
8127
|
+
}), [
|
|
7825
8128
|
createElementVNode("span", _hoisted_2$l, [
|
|
7826
8129
|
createElementVNode("span", {
|
|
7827
8130
|
style: normalizeStyle({ backgroundColor: shown.value })
|
|
7828
8131
|
}, null, 4)
|
|
7829
8132
|
]),
|
|
7830
8133
|
createElementVNode("span", _hoisted_3$i, toDisplayString(shown.value), 1)
|
|
7831
|
-
],
|
|
8134
|
+
], 16, _hoisted_1$n)
|
|
7832
8135
|
]),
|
|
7833
8136
|
default: withCtx(() => [
|
|
7834
8137
|
createVNode(TaoColorPicker, {
|
|
@@ -7845,11 +8148,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7845
8148
|
}, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"])
|
|
7846
8149
|
]),
|
|
7847
8150
|
_: 1
|
|
7848
|
-
},
|
|
8151
|
+
}, 16, ["placement", "disabled"]);
|
|
7849
8152
|
};
|
|
7850
8153
|
}
|
|
7851
8154
|
});
|
|
7852
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
8155
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0df653c0"]]);
|
|
7853
8156
|
const _hoisted_1$m = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
7854
8157
|
const _hoisted_2$k = {
|
|
7855
8158
|
key: 0,
|
|
@@ -12399,7 +12702,7 @@ const components = [
|
|
|
12399
12702
|
TaoSpoilerGroup,
|
|
12400
12703
|
TaoCopy,
|
|
12401
12704
|
TaoContainer,
|
|
12402
|
-
_sfc_main
|
|
12705
|
+
_sfc_main$$,
|
|
12403
12706
|
TaoSpace,
|
|
12404
12707
|
TaoGrid,
|
|
12405
12708
|
TaoGridItem,
|
|
@@ -12415,11 +12718,11 @@ const components = [
|
|
|
12415
12718
|
TaoTextarea,
|
|
12416
12719
|
TaoScrollTop,
|
|
12417
12720
|
TaoProgress,
|
|
12418
|
-
_sfc_main$
|
|
12419
|
-
_sfc_main$
|
|
12721
|
+
_sfc_main$17,
|
|
12722
|
+
_sfc_main$M,
|
|
12420
12723
|
TaoFileDrop,
|
|
12421
12724
|
TaoDropdownMenu,
|
|
12422
|
-
_sfc_main$
|
|
12725
|
+
_sfc_main$K,
|
|
12423
12726
|
TaoMenubar,
|
|
12424
12727
|
TaoToolbar,
|
|
12425
12728
|
TaoToolbarGroup,
|
|
@@ -12427,6 +12730,7 @@ const components = [
|
|
|
12427
12730
|
TaoSparkline,
|
|
12428
12731
|
TaoMeter,
|
|
12429
12732
|
TaoDonut,
|
|
12733
|
+
TaoHeatmap,
|
|
12430
12734
|
TaoNav,
|
|
12431
12735
|
TaoTree,
|
|
12432
12736
|
TaoChecklist,
|
|
@@ -12508,10 +12812,11 @@ export {
|
|
|
12508
12812
|
TaoEmpty,
|
|
12509
12813
|
TaoFieldset,
|
|
12510
12814
|
TaoFileDrop,
|
|
12511
|
-
_sfc_main
|
|
12815
|
+
_sfc_main$$ as TaoFlex,
|
|
12512
12816
|
TaoFormField,
|
|
12513
12817
|
TaoGrid,
|
|
12514
12818
|
TaoGridItem,
|
|
12819
|
+
TaoHeatmap,
|
|
12515
12820
|
TaoIcon,
|
|
12516
12821
|
TaoImage,
|
|
12517
12822
|
TaoInput,
|
|
@@ -12522,7 +12827,7 @@ export {
|
|
|
12522
12827
|
TaoListItem,
|
|
12523
12828
|
TaoLoader,
|
|
12524
12829
|
TaoMarquee,
|
|
12525
|
-
_sfc_main$
|
|
12830
|
+
_sfc_main$K as TaoMenu,
|
|
12526
12831
|
TaoMenubar,
|
|
12527
12832
|
TaoMeter,
|
|
12528
12833
|
TaoModal,
|
|
@@ -12534,14 +12839,14 @@ export {
|
|
|
12534
12839
|
TaoQuantity,
|
|
12535
12840
|
TaoRadio,
|
|
12536
12841
|
TaoRadioGroup,
|
|
12537
|
-
_sfc_main$
|
|
12842
|
+
_sfc_main$M as TaoRangeSlider,
|
|
12538
12843
|
TaoScrollTop,
|
|
12539
12844
|
TaoScrubber,
|
|
12540
12845
|
TaoSegmented,
|
|
12541
12846
|
TaoSegmentedOption,
|
|
12542
12847
|
TaoSelect,
|
|
12543
12848
|
TaoSkeleton,
|
|
12544
|
-
_sfc_main$
|
|
12849
|
+
_sfc_main$17 as TaoSlider,
|
|
12545
12850
|
TaoSpace,
|
|
12546
12851
|
TaoSparkline,
|
|
12547
12852
|
TaoSplit,
|