@1337exp/taoui 5.8.2 → 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 +24 -0
- package/README.md +2 -1
- package/README.ru.md +2 -1
- package/dist/index.d.ts +394 -258
- package/dist/index.js +798 -472
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +5 -1
- package/skills/taoui/references/components.md +21 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, useSlots, useAttrs, unref, createCommentVNode, createBlock, inject, useId, ref, createElementVNode, provide, shallowRef, watch, createVNode, toValue, onBeforeUnmount, Teleport, Transition, withCtx, toDisplayString, nextTick, Fragment, renderList, createTextVNode, onMounted,
|
|
1
|
+
import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, useSlots, useAttrs, unref, createCommentVNode, createBlock, inject, useId, ref, mergeProps, createElementVNode, provide, shallowRef, watch, createVNode, toValue, onBeforeUnmount, Teleport, Transition, withCtx, toDisplayString, nextTick, Fragment, renderList, createTextVNode, onMounted, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, withModifiers, onBeforeMount, resolveComponent, toRef, withDirectives, vShow, getCurrentInstance, reactive, withKeys, vModelText, TransitionGroup, onUpdated, createApp } from "vue";
|
|
2
2
|
function isDev() {
|
|
3
3
|
try {
|
|
4
4
|
return process.env.NODE_ENV !== "production";
|
|
@@ -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,19 @@ 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
|
+
function useControlAttrs() {
|
|
293
|
+
const attrs = useAttrs();
|
|
294
|
+
return {
|
|
295
|
+
/** `class` and `style`, for the wrapper. / `class` и `style` — для обёртки. */
|
|
296
|
+
rootAttrs: () => ({ class: attrs.class, style: attrs.style }),
|
|
297
|
+
/** Everything else, for the control. / Всё остальное — для элемента управления. */
|
|
298
|
+
controlAttrs: () => {
|
|
299
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
300
|
+
return rest;
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
}
|
|
292
304
|
const formFieldKey = Symbol("taoFormField");
|
|
293
305
|
function useField(props) {
|
|
294
306
|
const field = inject(formFieldKey, null);
|
|
@@ -298,17 +310,17 @@ function useField(props) {
|
|
|
298
310
|
const describedBy = computed(() => field?.describedBy.value);
|
|
299
311
|
return { field, controlId, invalid, describedBy, localId };
|
|
300
312
|
}
|
|
301
|
-
const _hoisted_1$
|
|
313
|
+
const _hoisted_1$14 = {
|
|
302
314
|
key: 0,
|
|
303
315
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
304
316
|
};
|
|
305
|
-
const _hoisted_2$
|
|
306
|
-
const _hoisted_3$
|
|
317
|
+
const _hoisted_2$W = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
318
|
+
const _hoisted_3$O = {
|
|
307
319
|
key: 1,
|
|
308
320
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
309
321
|
};
|
|
310
|
-
const _sfc_main$
|
|
311
|
-
...{ name: "TaoInput" },
|
|
322
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
323
|
+
...{ name: "TaoInput", inheritAttrs: false },
|
|
312
324
|
__name: "TaoInput",
|
|
313
325
|
props: {
|
|
314
326
|
modelValue: { default: "" },
|
|
@@ -321,6 +333,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
321
333
|
},
|
|
322
334
|
emits: ["update:modelValue", "blur", "focus"],
|
|
323
335
|
setup(__props, { emit: __emit }) {
|
|
336
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
324
337
|
const props = __props;
|
|
325
338
|
const { controlId, invalid, describedBy } = useField(props);
|
|
326
339
|
const focused = ref(false);
|
|
@@ -338,9 +351,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
338
351
|
emit("focus", event);
|
|
339
352
|
}
|
|
340
353
|
return (_ctx, _cache) => {
|
|
341
|
-
return openBlock(), createElementBlock("div", {
|
|
342
|
-
class:
|
|
343
|
-
}, [
|
|
354
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
355
|
+
class: ["tao-input-wrapper", unref(sizeClass)(__props.size)]
|
|
356
|
+
}), [
|
|
344
357
|
createElementVNode("div", {
|
|
345
358
|
class: normalizeClass(["tao-input-shell", {
|
|
346
359
|
"tao-input-shell--focused": focused.value,
|
|
@@ -350,12 +363,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
350
363
|
"tao-input-shell--suffix": _ctx.$slots.suffix
|
|
351
364
|
}])
|
|
352
365
|
}, [
|
|
353
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
366
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$14, [
|
|
354
367
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
355
368
|
])) : createCommentVNode("", true),
|
|
356
|
-
createElementVNode("input", {
|
|
369
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
357
370
|
id: unref(controlId),
|
|
358
|
-
class:
|
|
371
|
+
class: ["tao-input", { "tao-input--error": unref(invalid) }],
|
|
359
372
|
type: __props.type,
|
|
360
373
|
value: __props.modelValue,
|
|
361
374
|
placeholder: __props.placeholder,
|
|
@@ -365,26 +378,26 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
365
378
|
onInput: handleInput,
|
|
366
379
|
onBlur: handleBlur,
|
|
367
380
|
onFocus: handleFocus
|
|
368
|
-
}, null,
|
|
369
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
381
|
+
}), null, 16, _hoisted_2$W),
|
|
382
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$O, [
|
|
370
383
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
371
384
|
])) : createCommentVNode("", true)
|
|
372
385
|
], 2)
|
|
373
|
-
],
|
|
386
|
+
], 16);
|
|
374
387
|
};
|
|
375
388
|
}
|
|
376
389
|
});
|
|
377
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
378
|
-
const _hoisted_1$
|
|
390
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-8dd01619"]]);
|
|
391
|
+
const _hoisted_1$13 = {
|
|
379
392
|
key: 0,
|
|
380
393
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
381
394
|
};
|
|
382
|
-
const _hoisted_2$
|
|
383
|
-
const _hoisted_3$
|
|
395
|
+
const _hoisted_2$V = { class: "tao-input-group__field" };
|
|
396
|
+
const _hoisted_3$N = {
|
|
384
397
|
key: 1,
|
|
385
398
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
386
399
|
};
|
|
387
|
-
const _sfc_main$
|
|
400
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
388
401
|
...{ name: "TaoInputGroup" },
|
|
389
402
|
__name: "TaoInputGroup",
|
|
390
403
|
props: {
|
|
@@ -409,24 +422,24 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
409
422
|
onFocusin: onFocusIn,
|
|
410
423
|
onFocusout: onFocusOut
|
|
411
424
|
}, [
|
|
412
|
-
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
425
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
413
426
|
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
414
427
|
])) : createCommentVNode("", true),
|
|
415
|
-
createElementVNode("div", _hoisted_2$
|
|
428
|
+
createElementVNode("div", _hoisted_2$V, [
|
|
416
429
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
417
430
|
]),
|
|
418
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
431
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$N, [
|
|
419
432
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
420
433
|
])) : createCommentVNode("", true)
|
|
421
434
|
], 34);
|
|
422
435
|
};
|
|
423
436
|
}
|
|
424
437
|
});
|
|
425
|
-
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
438
|
+
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-55b2d297"]]);
|
|
426
439
|
const localeEn = {
|
|
427
440
|
code: "en-US",
|
|
428
441
|
alert: { closeLabel: "Close", detailsLabel: "Details" },
|
|
429
|
-
pinCode: { successText: "The code is correct", errorText: "Wrong code" },
|
|
442
|
+
pinCode: { successText: "The code is correct", errorText: "Wrong code", cellLabel: "Character {n} of {count}" },
|
|
430
443
|
avatar: {
|
|
431
444
|
fallbackLabel: "Avatar",
|
|
432
445
|
notificationsLabel: "{count} notifications",
|
|
@@ -654,7 +667,7 @@ function hasToastViewport() {
|
|
|
654
667
|
const localeRu = {
|
|
655
668
|
code: "ru-RU",
|
|
656
669
|
alert: { closeLabel: "Закрыть", detailsLabel: "Подробнее" },
|
|
657
|
-
pinCode: { successText: "Код верный", errorText: "Неверный код" },
|
|
670
|
+
pinCode: { successText: "Код верный", errorText: "Неверный код", cellLabel: "Символ {n} из {count}" },
|
|
658
671
|
avatar: {
|
|
659
672
|
fallbackLabel: "Аватар",
|
|
660
673
|
notificationsLabel: "{count} уведомлений",
|
|
@@ -805,17 +818,17 @@ function useLocaleText(props, section) {
|
|
|
805
818
|
function formatText(template, values) {
|
|
806
819
|
return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
|
|
807
820
|
}
|
|
808
|
-
const _hoisted_1$
|
|
809
|
-
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 = {
|
|
810
823
|
key: 0,
|
|
811
824
|
class: "tao-input-number__steppers"
|
|
812
825
|
};
|
|
813
|
-
const _hoisted_3$
|
|
814
|
-
const _hoisted_4$
|
|
815
|
-
const _hoisted_5$
|
|
816
|
-
const _hoisted_6$
|
|
817
|
-
const _sfc_main$
|
|
818
|
-
...{ name: "TaoInputNumber" },
|
|
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
|
+
...{ name: "TaoInputNumber", inheritAttrs: false },
|
|
819
832
|
__name: "TaoInputNumber",
|
|
820
833
|
props: {
|
|
821
834
|
modelValue: { default: null },
|
|
@@ -833,6 +846,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
833
846
|
},
|
|
834
847
|
emits: ["update:modelValue", "commit", "blur", "focus"],
|
|
835
848
|
setup(__props, { emit: __emit }) {
|
|
849
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
836
850
|
const props = __props;
|
|
837
851
|
const l10n = useLocaleText(props, "inputNumber");
|
|
838
852
|
const emit = __emit;
|
|
@@ -949,10 +963,10 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
949
963
|
const atMin = computed(() => props.min !== void 0 && (props.modelValue ?? 0) <= props.min);
|
|
950
964
|
const atMax = computed(() => props.max !== void 0 && (props.modelValue ?? 0) >= props.max);
|
|
951
965
|
return (_ctx, _cache) => {
|
|
952
|
-
return openBlock(), createElementBlock("div", {
|
|
953
|
-
class:
|
|
954
|
-
}, [
|
|
955
|
-
createElementVNode("input", {
|
|
966
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
967
|
+
class: ["tao-input-number", [unref(sizeClass)(__props.size), { "tao-input-number--invalid": unref(invalid), "tao-input-number--controls": __props.controls }]]
|
|
968
|
+
}), [
|
|
969
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
956
970
|
id: unref(controlId),
|
|
957
971
|
class: "tao-input-number__input",
|
|
958
972
|
type: "text",
|
|
@@ -971,8 +985,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
971
985
|
onFocus,
|
|
972
986
|
onBlur,
|
|
973
987
|
onKeydown: onKeydown2
|
|
974
|
-
}, null,
|
|
975
|
-
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
988
|
+
}), null, 16, _hoisted_1$12),
|
|
989
|
+
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$U, [
|
|
976
990
|
createElementVNode("button", {
|
|
977
991
|
type: "button",
|
|
978
992
|
class: "tao-input-number__step",
|
|
@@ -981,12 +995,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
981
995
|
disabled: __props.disabled || atMax.value,
|
|
982
996
|
onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
|
|
983
997
|
}, [
|
|
984
|
-
createElementVNode("span", _hoisted_4$
|
|
998
|
+
createElementVNode("span", _hoisted_4$E, [
|
|
985
999
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
986
1000
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
987
1001
|
], true)
|
|
988
1002
|
])
|
|
989
|
-
], 8, _hoisted_3$
|
|
1003
|
+
], 8, _hoisted_3$M),
|
|
990
1004
|
createElementVNode("button", {
|
|
991
1005
|
type: "button",
|
|
992
1006
|
class: "tao-input-number__step",
|
|
@@ -995,25 +1009,25 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
995
1009
|
disabled: __props.disabled || atMin.value,
|
|
996
1010
|
onClick: _cache[1] || (_cache[1] = ($event) => bump(-1))
|
|
997
1011
|
}, [
|
|
998
|
-
createElementVNode("span", _hoisted_6$
|
|
1012
|
+
createElementVNode("span", _hoisted_6$o, [
|
|
999
1013
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1000
1014
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1001
1015
|
], true)
|
|
1002
1016
|
])
|
|
1003
|
-
], 8, _hoisted_5$
|
|
1017
|
+
], 8, _hoisted_5$v)
|
|
1004
1018
|
])) : createCommentVNode("", true)
|
|
1005
|
-
],
|
|
1019
|
+
], 16);
|
|
1006
1020
|
};
|
|
1007
1021
|
}
|
|
1008
1022
|
});
|
|
1009
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1010
|
-
const _hoisted_1$
|
|
1011
|
-
const _hoisted_2$
|
|
1012
|
-
const _hoisted_3$
|
|
1013
|
-
const _hoisted_4$
|
|
1014
|
-
const _hoisted_5$
|
|
1015
|
-
const _sfc_main$
|
|
1016
|
-
...{ 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 },
|
|
1017
1031
|
__name: "TaoQuantity",
|
|
1018
1032
|
props: {
|
|
1019
1033
|
modelValue: { default: 1 },
|
|
@@ -1030,6 +1044,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1030
1044
|
},
|
|
1031
1045
|
emits: ["update:modelValue", "change", "dec", "inc", "blur", "focus"],
|
|
1032
1046
|
setup(__props, { emit: __emit }) {
|
|
1047
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
1033
1048
|
const props = __props;
|
|
1034
1049
|
const l10n = useLocaleText(props, "quantity");
|
|
1035
1050
|
const emit = __emit;
|
|
@@ -1134,16 +1149,16 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1134
1149
|
const plusDisabled = computed(() => props.disabled || atMax.value);
|
|
1135
1150
|
const minusLabel = computed(() => atMin.value && props.allowRemove ? l10n.value.removeLabel : l10n.value.decrementLabel);
|
|
1136
1151
|
return (_ctx, _cache) => {
|
|
1137
|
-
return openBlock(), createElementBlock("div", {
|
|
1138
|
-
class:
|
|
1152
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
1153
|
+
class: ["tao-quantity", [
|
|
1139
1154
|
unref(sizeClass)(__props.size),
|
|
1140
1155
|
{
|
|
1141
1156
|
"tao-quantity--invalid": unref(invalid),
|
|
1142
1157
|
"tao-quantity--focused": focused.value,
|
|
1143
1158
|
"tao-quantity--disabled": __props.disabled
|
|
1144
1159
|
}
|
|
1145
|
-
]]
|
|
1146
|
-
}, [
|
|
1160
|
+
]]
|
|
1161
|
+
}), [
|
|
1147
1162
|
createElementVNode("button", {
|
|
1148
1163
|
type: "button",
|
|
1149
1164
|
class: "tao-quantity__btn tao-quantity__btn--dec",
|
|
@@ -1151,13 +1166,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1151
1166
|
disabled: minusDisabled.value,
|
|
1152
1167
|
onClick: onDec
|
|
1153
1168
|
}, [
|
|
1154
|
-
createElementVNode("span", _hoisted_2$
|
|
1169
|
+
createElementVNode("span", _hoisted_2$T, [
|
|
1155
1170
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
1156
1171
|
createVNode(TaoIcon, { name: "tao-minus" })
|
|
1157
1172
|
], true)
|
|
1158
1173
|
])
|
|
1159
|
-
], 8, _hoisted_1$
|
|
1160
|
-
createElementVNode("input", {
|
|
1174
|
+
], 8, _hoisted_1$11),
|
|
1175
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
1161
1176
|
id: unref(controlId),
|
|
1162
1177
|
class: "tao-quantity__input",
|
|
1163
1178
|
type: "text",
|
|
@@ -1176,7 +1191,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1176
1191
|
onFocus,
|
|
1177
1192
|
onBlur,
|
|
1178
1193
|
onKeydown: onKeydown2
|
|
1179
|
-
}, null,
|
|
1194
|
+
}), null, 16, _hoisted_3$L),
|
|
1180
1195
|
createElementVNode("button", {
|
|
1181
1196
|
type: "button",
|
|
1182
1197
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1184,46 +1199,46 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1184
1199
|
disabled: plusDisabled.value,
|
|
1185
1200
|
onClick: onInc
|
|
1186
1201
|
}, [
|
|
1187
|
-
createElementVNode("span", _hoisted_5$
|
|
1202
|
+
createElementVNode("span", _hoisted_5$u, [
|
|
1188
1203
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
1189
1204
|
createVNode(TaoIcon, { name: "tao-plus" })
|
|
1190
1205
|
], true)
|
|
1191
1206
|
])
|
|
1192
|
-
], 8, _hoisted_4$
|
|
1193
|
-
],
|
|
1207
|
+
], 8, _hoisted_4$D)
|
|
1208
|
+
], 16);
|
|
1194
1209
|
};
|
|
1195
1210
|
}
|
|
1196
1211
|
});
|
|
1197
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1198
|
-
const _hoisted_1
|
|
1212
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-6453479c"]]);
|
|
1213
|
+
const _hoisted_1$10 = {
|
|
1199
1214
|
key: 0,
|
|
1200
1215
|
class: "tao-card__media"
|
|
1201
1216
|
};
|
|
1202
|
-
const _hoisted_2$
|
|
1217
|
+
const _hoisted_2$S = {
|
|
1203
1218
|
key: 0,
|
|
1204
1219
|
class: "tao-card__overlay"
|
|
1205
1220
|
};
|
|
1206
|
-
const _hoisted_3$
|
|
1221
|
+
const _hoisted_3$K = {
|
|
1207
1222
|
key: 1,
|
|
1208
1223
|
class: "tao-card__overlay"
|
|
1209
1224
|
};
|
|
1210
|
-
const _hoisted_4$
|
|
1225
|
+
const _hoisted_4$C = {
|
|
1211
1226
|
key: 0,
|
|
1212
1227
|
class: "tao-card__header"
|
|
1213
1228
|
};
|
|
1214
|
-
const _hoisted_5$
|
|
1229
|
+
const _hoisted_5$t = {
|
|
1215
1230
|
key: 1,
|
|
1216
1231
|
class: "tao-card__title-block"
|
|
1217
1232
|
};
|
|
1218
|
-
const _hoisted_6$
|
|
1233
|
+
const _hoisted_6$n = {
|
|
1219
1234
|
key: 0,
|
|
1220
1235
|
class: "tao-card__title"
|
|
1221
1236
|
};
|
|
1222
|
-
const _hoisted_7$
|
|
1237
|
+
const _hoisted_7$i = {
|
|
1223
1238
|
key: 1,
|
|
1224
1239
|
class: "tao-card__sub"
|
|
1225
1240
|
};
|
|
1226
|
-
const _hoisted_8$
|
|
1241
|
+
const _hoisted_8$c = {
|
|
1227
1242
|
key: 2,
|
|
1228
1243
|
class: "tao-card__body"
|
|
1229
1244
|
};
|
|
@@ -1236,7 +1251,7 @@ const _hoisted_10$4 = {
|
|
|
1236
1251
|
class: "tao-card__corner"
|
|
1237
1252
|
};
|
|
1238
1253
|
const _hoisted_11$4 = ["aria-label"];
|
|
1239
|
-
const _sfc_main$
|
|
1254
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
1240
1255
|
...{ name: "TaoCard" },
|
|
1241
1256
|
__name: "TaoCard",
|
|
1242
1257
|
props: {
|
|
@@ -1289,12 +1304,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1289
1304
|
}]]),
|
|
1290
1305
|
style: normalizeStyle(radiusStyle.value)
|
|
1291
1306
|
}, [
|
|
1292
|
-
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1
|
|
1307
|
+
_ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
1293
1308
|
renderSlot(_ctx.$slots, "media", {}, void 0, true),
|
|
1294
|
-
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1309
|
+
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$S, [
|
|
1295
1310
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1296
1311
|
])) : createCommentVNode("", true)
|
|
1297
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1312
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$K, [
|
|
1298
1313
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1299
1314
|
])) : createCommentVNode("", true),
|
|
1300
1315
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1302,18 +1317,18 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1302
1317
|
class: "tao-card__content",
|
|
1303
1318
|
style: normalizeStyle(paddingStyle.value)
|
|
1304
1319
|
}, [
|
|
1305
|
-
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1320
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$C, [
|
|
1306
1321
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
1307
1322
|
])) : createCommentVNode("", true),
|
|
1308
|
-
_ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1309
|
-
_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, [
|
|
1310
1325
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
1311
1326
|
])) : createCommentVNode("", true),
|
|
1312
|
-
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
1327
|
+
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_7$i, [
|
|
1313
1328
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1314
1329
|
])) : createCommentVNode("", true)
|
|
1315
1330
|
])) : createCommentVNode("", true),
|
|
1316
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1331
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
|
|
1317
1332
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1318
1333
|
])) : createCommentVNode("", true),
|
|
1319
1334
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
|
|
@@ -1339,7 +1354,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
1339
1354
|
};
|
|
1340
1355
|
}
|
|
1341
1356
|
});
|
|
1342
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1357
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-72c9a80f"]]);
|
|
1343
1358
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1344
1359
|
function getFocusable(root) {
|
|
1345
1360
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -1461,21 +1476,21 @@ function useLayer(open, options = {}) {
|
|
|
1461
1476
|
onBeforeUnmount(leave);
|
|
1462
1477
|
return { isTop: () => stack[stack.length - 1] === layer };
|
|
1463
1478
|
}
|
|
1464
|
-
const _hoisted_1
|
|
1465
|
-
const _hoisted_2$
|
|
1479
|
+
const _hoisted_1$$ = ["aria-labelledby"];
|
|
1480
|
+
const _hoisted_2$R = {
|
|
1466
1481
|
key: 0,
|
|
1467
1482
|
class: "tao-modal__header"
|
|
1468
1483
|
};
|
|
1469
|
-
const _hoisted_3$
|
|
1470
|
-
const _hoisted_4$
|
|
1471
|
-
const _hoisted_5$
|
|
1472
|
-
const _hoisted_6$
|
|
1473
|
-
const _hoisted_7$
|
|
1474
|
-
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 = {
|
|
1475
1490
|
key: 1,
|
|
1476
1491
|
class: "tao-modal__footer"
|
|
1477
1492
|
};
|
|
1478
|
-
const _sfc_main$
|
|
1493
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
1479
1494
|
...{ name: "TaoModal" },
|
|
1480
1495
|
__name: "TaoModal",
|
|
1481
1496
|
props: {
|
|
@@ -1556,13 +1571,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
1556
1571
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
1557
1572
|
tabindex: "-1"
|
|
1558
1573
|
}, [
|
|
1559
|
-
__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, [
|
|
1560
1575
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1561
1576
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
1562
1577
|
key: 0,
|
|
1563
1578
|
id: unref(titleId),
|
|
1564
1579
|
class: "tao-modal__title"
|
|
1565
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1580
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$J)) : (openBlock(), createElementBlock("span", _hoisted_4$B))
|
|
1566
1581
|
], true),
|
|
1567
1582
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1568
1583
|
key: 0,
|
|
@@ -1571,20 +1586,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
1571
1586
|
"aria-label": unref(l10n).closeLabel,
|
|
1572
1587
|
onClick: close
|
|
1573
1588
|
}, [
|
|
1574
|
-
createElementVNode("span", _hoisted_6$
|
|
1589
|
+
createElementVNode("span", _hoisted_6$m, [
|
|
1575
1590
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
1576
1591
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
1577
1592
|
], true)
|
|
1578
1593
|
])
|
|
1579
|
-
], 8, _hoisted_5$
|
|
1594
|
+
], 8, _hoisted_5$s)) : createCommentVNode("", true)
|
|
1580
1595
|
])) : createCommentVNode("", true),
|
|
1581
|
-
createElementVNode("div", _hoisted_7$
|
|
1596
|
+
createElementVNode("div", _hoisted_7$h, [
|
|
1582
1597
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1583
1598
|
]),
|
|
1584
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1599
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$b, [
|
|
1585
1600
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1586
1601
|
])) : createCommentVNode("", true)
|
|
1587
|
-
], 8, _hoisted_1
|
|
1602
|
+
], 8, _hoisted_1$$)
|
|
1588
1603
|
], 34)) : createCommentVNode("", true)
|
|
1589
1604
|
]),
|
|
1590
1605
|
_: 3
|
|
@@ -1593,10 +1608,10 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
1593
1608
|
};
|
|
1594
1609
|
}
|
|
1595
1610
|
});
|
|
1596
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1597
|
-
const _hoisted_1$
|
|
1598
|
-
const _hoisted_2$
|
|
1599
|
-
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({
|
|
1600
1615
|
...{ name: "TaoTabs" },
|
|
1601
1616
|
__name: "TaoTabs",
|
|
1602
1617
|
props: {
|
|
@@ -1691,7 +1706,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
1691
1706
|
}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1692
1707
|
createTextVNode(toDisplayString(tab.label), 1)
|
|
1693
1708
|
], 64))
|
|
1694
|
-
], 8, _hoisted_1$
|
|
1709
|
+
], 8, _hoisted_1$_);
|
|
1695
1710
|
}), 128))
|
|
1696
1711
|
], 36),
|
|
1697
1712
|
createElementVNode("div", {
|
|
@@ -1701,12 +1716,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
1701
1716
|
"aria-labelledby": tabId(__props.modelValue)
|
|
1702
1717
|
}, [
|
|
1703
1718
|
renderSlot(_ctx.$slots, "default", { activeTab: __props.modelValue }, void 0, true)
|
|
1704
|
-
], 8, _hoisted_2$
|
|
1719
|
+
], 8, _hoisted_2$Q)
|
|
1705
1720
|
], 2);
|
|
1706
1721
|
};
|
|
1707
1722
|
}
|
|
1708
1723
|
});
|
|
1709
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1724
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-70811078"]]);
|
|
1710
1725
|
function listenFocusLoss(onLoss) {
|
|
1711
1726
|
function onVisibilityChange() {
|
|
1712
1727
|
if (document.hidden) {
|
|
@@ -1800,22 +1815,22 @@ function normalizeMarks(marks, min, max, format = String) {
|
|
|
1800
1815
|
function isMarkActive(markValue, values) {
|
|
1801
1816
|
return values.length === 2 ? markValue >= values[0] && markValue <= values[1] : markValue <= (values[0] ?? 0);
|
|
1802
1817
|
}
|
|
1803
|
-
const _hoisted_1$
|
|
1804
|
-
const _hoisted_2$
|
|
1805
|
-
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 = {
|
|
1806
1821
|
key: 0,
|
|
1807
1822
|
class: "tao-slider__value"
|
|
1808
1823
|
};
|
|
1809
|
-
const _hoisted_4$
|
|
1824
|
+
const _hoisted_4$A = {
|
|
1810
1825
|
key: 0,
|
|
1811
1826
|
class: "tao-slider__marks"
|
|
1812
1827
|
};
|
|
1813
|
-
const _hoisted_5$
|
|
1814
|
-
const _hoisted_6$
|
|
1828
|
+
const _hoisted_5$r = ["disabled", "onClick"];
|
|
1829
|
+
const _hoisted_6$l = {
|
|
1815
1830
|
key: 0,
|
|
1816
1831
|
class: "tao-slider__mark-label"
|
|
1817
1832
|
};
|
|
1818
|
-
const _sfc_main$
|
|
1833
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
1819
1834
|
...{ name: "TaoSliderBase" },
|
|
1820
1835
|
__name: "TaoSliderBase",
|
|
1821
1836
|
props: {
|
|
@@ -2037,15 +2052,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2037
2052
|
"aria-describedby": unref(describedBy),
|
|
2038
2053
|
onKeydown: ($event) => onKeydown2($event, i),
|
|
2039
2054
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
2040
|
-
}, null, 46, _hoisted_2$
|
|
2055
|
+
}, null, 46, _hoisted_2$P);
|
|
2041
2056
|
}), 128)),
|
|
2042
|
-
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2057
|
+
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
|
|
2043
2058
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
2044
2059
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
2045
2060
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
2046
2061
|
])) : createCommentVNode("", true)
|
|
2047
2062
|
], 34),
|
|
2048
|
-
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2063
|
+
markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$A, [
|
|
2049
2064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(markList.value, (mark) => {
|
|
2050
2065
|
return openBlock(), createElementBlock("button", {
|
|
2051
2066
|
key: mark.value,
|
|
@@ -2061,7 +2076,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2061
2076
|
onClick: ($event) => onMarkClick(mark)
|
|
2062
2077
|
}, [
|
|
2063
2078
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
|
|
2064
|
-
mark.label ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2079
|
+
mark.label ? (openBlock(), createElementBlock("span", _hoisted_6$l, [
|
|
2065
2080
|
renderSlot(_ctx.$slots, "mark", {
|
|
2066
2081
|
mark,
|
|
2067
2082
|
active: unref(isMarkActive)(mark.value, values.value)
|
|
@@ -2069,15 +2084,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2069
2084
|
createTextVNode(toDisplayString(mark.label), 1)
|
|
2070
2085
|
], true)
|
|
2071
2086
|
])) : createCommentVNode("", true)
|
|
2072
|
-
], 14, _hoisted_5$
|
|
2087
|
+
], 14, _hoisted_5$r);
|
|
2073
2088
|
}), 128))
|
|
2074
2089
|
])) : createCommentVNode("", true)
|
|
2075
|
-
], 42, _hoisted_1$
|
|
2090
|
+
], 42, _hoisted_1$Z);
|
|
2076
2091
|
};
|
|
2077
2092
|
}
|
|
2078
2093
|
});
|
|
2079
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2080
|
-
const _sfc_main$
|
|
2094
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-992bdfd9"]]);
|
|
2095
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
2081
2096
|
...{ name: "TaoSlider" },
|
|
2082
2097
|
__name: "TaoSlider",
|
|
2083
2098
|
props: {
|
|
@@ -2134,13 +2149,13 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2134
2149
|
};
|
|
2135
2150
|
}
|
|
2136
2151
|
});
|
|
2137
|
-
const _hoisted_1$
|
|
2138
|
-
const _hoisted_2$
|
|
2139
|
-
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 = {
|
|
2140
2155
|
key: 0,
|
|
2141
2156
|
class: "tao-scrubber__time"
|
|
2142
2157
|
};
|
|
2143
|
-
const _sfc_main$
|
|
2158
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
2144
2159
|
...{ name: "TaoScrubber" },
|
|
2145
2160
|
__name: "TaoScrubber",
|
|
2146
2161
|
props: {
|
|
@@ -2180,7 +2195,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2180
2195
|
return openBlock(), createElementBlock("div", {
|
|
2181
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 }]])
|
|
2182
2197
|
}, [
|
|
2183
|
-
createElementVNode("div", _hoisted_1$
|
|
2198
|
+
createElementVNode("div", _hoisted_1$Y, [
|
|
2184
2199
|
createVNode(TaoButton, {
|
|
2185
2200
|
size: "small",
|
|
2186
2201
|
variant: "secondary",
|
|
@@ -2210,8 +2225,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2210
2225
|
_: 1
|
|
2211
2226
|
}, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
|
|
2212
2227
|
]),
|
|
2213
|
-
createElementVNode("div", _hoisted_2$
|
|
2214
|
-
createVNode(_sfc_main$
|
|
2228
|
+
createElementVNode("div", _hoisted_2$O, [
|
|
2229
|
+
createVNode(_sfc_main$17, {
|
|
2215
2230
|
"model-value": __props.modelValue,
|
|
2216
2231
|
min: 0,
|
|
2217
2232
|
max: __props.length,
|
|
@@ -2234,7 +2249,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2234
2249
|
} : void 0
|
|
2235
2250
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
2236
2251
|
]),
|
|
2237
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2252
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$H, [
|
|
2238
2253
|
renderSlot(_ctx.$slots, "time", {
|
|
2239
2254
|
time: __props.modelValue,
|
|
2240
2255
|
length: __props.length,
|
|
@@ -2247,7 +2262,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2247
2262
|
};
|
|
2248
2263
|
}
|
|
2249
2264
|
});
|
|
2250
|
-
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2265
|
+
const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-517dc331"]]);
|
|
2251
2266
|
const opposite = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
2252
2267
|
function computePosition(input) {
|
|
2253
2268
|
const { anchor, size, viewport, placement = "bottom-start", gap = 4, pad = 8, flip = true } = input;
|
|
@@ -2373,7 +2388,7 @@ function useFloating(anchor, panel, open, options = {}) {
|
|
|
2373
2388
|
});
|
|
2374
2389
|
return { style, side, anchorOffset, placed, update };
|
|
2375
2390
|
}
|
|
2376
|
-
const _sfc_main$
|
|
2391
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
2377
2392
|
...{ name: "TaoTooltip" },
|
|
2378
2393
|
__name: "TaoTooltip",
|
|
2379
2394
|
props: {
|
|
@@ -2451,7 +2466,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
2451
2466
|
};
|
|
2452
2467
|
}
|
|
2453
2468
|
});
|
|
2454
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2469
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-32ae3936"]]);
|
|
2455
2470
|
function useDismiss(open, inside, onDismiss) {
|
|
2456
2471
|
function onPointer(event) {
|
|
2457
2472
|
const target = event.target;
|
|
@@ -2480,8 +2495,8 @@ function useDismiss(open, inside, onDismiss) {
|
|
|
2480
2495
|
);
|
|
2481
2496
|
onBeforeUnmount(stop);
|
|
2482
2497
|
}
|
|
2483
|
-
const _hoisted_1$
|
|
2484
|
-
const _sfc_main$
|
|
2498
|
+
const _hoisted_1$X = { class: "tao-popover" };
|
|
2499
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
2485
2500
|
...{ name: "TaoPopover" },
|
|
2486
2501
|
__name: "TaoPopover",
|
|
2487
2502
|
props: {
|
|
@@ -2535,7 +2550,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
2535
2550
|
}
|
|
2536
2551
|
});
|
|
2537
2552
|
return (_ctx, _cache) => {
|
|
2538
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2553
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
2539
2554
|
createElementVNode("div", {
|
|
2540
2555
|
ref_key: "triggerRef",
|
|
2541
2556
|
ref: triggerRef,
|
|
@@ -2564,17 +2579,17 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
2564
2579
|
};
|
|
2565
2580
|
}
|
|
2566
2581
|
});
|
|
2567
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2582
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-6822af1e"]]);
|
|
2568
2583
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
2569
|
-
const _hoisted_1$
|
|
2570
|
-
const _hoisted_2$
|
|
2571
|
-
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 = {
|
|
2572
2587
|
key: 0,
|
|
2573
2588
|
class: "tao-spoiler__title"
|
|
2574
2589
|
};
|
|
2575
|
-
const _hoisted_4$
|
|
2576
|
-
const _hoisted_5$
|
|
2577
|
-
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({
|
|
2578
2593
|
...{ name: "TaoSpoiler" },
|
|
2579
2594
|
__name: "TaoSpoiler",
|
|
2580
2595
|
props: {
|
|
@@ -2630,7 +2645,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2630
2645
|
});
|
|
2631
2646
|
}
|
|
2632
2647
|
return (_ctx, _cache) => {
|
|
2633
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2648
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
2634
2649
|
createElementVNode("button", {
|
|
2635
2650
|
type: "button",
|
|
2636
2651
|
class: "tao-spoiler__header",
|
|
@@ -2642,12 +2657,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2642
2657
|
class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }]),
|
|
2643
2658
|
name: "tao-chevron-right"
|
|
2644
2659
|
}, null, 8, ["class"]),
|
|
2645
|
-
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2660
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$G, [
|
|
2646
2661
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2647
2662
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2648
2663
|
], true)
|
|
2649
2664
|
])) : createCommentVNode("", true)
|
|
2650
|
-
], 8, _hoisted_2$
|
|
2665
|
+
], 8, _hoisted_2$N),
|
|
2651
2666
|
createVNode(Transition, {
|
|
2652
2667
|
name: "tao-spoiler-slide",
|
|
2653
2668
|
onBeforeEnter,
|
|
@@ -2661,10 +2676,10 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2661
2676
|
id: unref(panelId),
|
|
2662
2677
|
class: "tao-spoiler__content"
|
|
2663
2678
|
}, [
|
|
2664
|
-
createElementVNode("div", _hoisted_5$
|
|
2679
|
+
createElementVNode("div", _hoisted_5$q, [
|
|
2665
2680
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2666
2681
|
])
|
|
2667
|
-
], 8, _hoisted_4$
|
|
2682
|
+
], 8, _hoisted_4$z)) : createCommentVNode("", true)
|
|
2668
2683
|
]),
|
|
2669
2684
|
_: 3
|
|
2670
2685
|
})
|
|
@@ -2672,9 +2687,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2672
2687
|
};
|
|
2673
2688
|
}
|
|
2674
2689
|
});
|
|
2675
|
-
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2676
|
-
const _hoisted_1$
|
|
2677
|
-
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({
|
|
2678
2693
|
...{ name: "TaoSpoilerGroup" },
|
|
2679
2694
|
__name: "TaoSpoilerGroup",
|
|
2680
2695
|
props: {
|
|
@@ -2699,15 +2714,15 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
2699
2714
|
setOpen
|
|
2700
2715
|
});
|
|
2701
2716
|
return (_ctx, _cache) => {
|
|
2702
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2717
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
2703
2718
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2704
2719
|
]);
|
|
2705
2720
|
};
|
|
2706
2721
|
}
|
|
2707
2722
|
});
|
|
2708
|
-
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2709
|
-
const _hoisted_1$
|
|
2710
|
-
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({
|
|
2711
2726
|
...{ name: "TaoCopy" },
|
|
2712
2727
|
__name: "TaoCopy",
|
|
2713
2728
|
props: {
|
|
@@ -2778,7 +2793,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
2778
2793
|
name: "tao-copy",
|
|
2779
2794
|
size: 16
|
|
2780
2795
|
})
|
|
2781
|
-
], 10, _hoisted_1$
|
|
2796
|
+
], 10, _hoisted_1$U)
|
|
2782
2797
|
], true),
|
|
2783
2798
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
2784
2799
|
copied.value && __props.tip && doneText.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -2794,8 +2809,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
2794
2809
|
};
|
|
2795
2810
|
}
|
|
2796
2811
|
});
|
|
2797
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2798
|
-
const _sfc_main
|
|
2812
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-1fb47e53"]]);
|
|
2813
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
2799
2814
|
...{ name: "TaoContainer" },
|
|
2800
2815
|
__name: "TaoContainer",
|
|
2801
2816
|
props: {
|
|
@@ -2814,8 +2829,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
2814
2829
|
};
|
|
2815
2830
|
}
|
|
2816
2831
|
});
|
|
2817
|
-
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
2818
|
-
const _sfc_main
|
|
2832
|
+
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-a5e36052"]]);
|
|
2833
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
2819
2834
|
...{ name: "TaoFlex" },
|
|
2820
2835
|
__name: "TaoFlex",
|
|
2821
2836
|
props: {
|
|
@@ -2846,7 +2861,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
2846
2861
|
};
|
|
2847
2862
|
}
|
|
2848
2863
|
});
|
|
2849
|
-
const _sfc_main$
|
|
2864
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
2850
2865
|
...{ name: "TaoSpace" },
|
|
2851
2866
|
__name: "TaoSpace",
|
|
2852
2867
|
props: {
|
|
@@ -2867,7 +2882,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
2867
2882
|
};
|
|
2868
2883
|
}
|
|
2869
2884
|
});
|
|
2870
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2885
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-d6fec8bb"]]);
|
|
2871
2886
|
const FULL_SPAN = 999;
|
|
2872
2887
|
function perSize(value, fallback, compactPlain) {
|
|
2873
2888
|
if (value === void 0 || value === null) {
|
|
@@ -2883,8 +2898,8 @@ function perSize(value, fallback, compactPlain) {
|
|
|
2883
2898
|
return { compact, medium, expanded };
|
|
2884
2899
|
}
|
|
2885
2900
|
const spanNumber = (span) => span === "full" ? FULL_SPAN : Math.max(1, Math.round(span));
|
|
2886
|
-
const _hoisted_1$
|
|
2887
|
-
const _sfc_main$
|
|
2901
|
+
const _hoisted_1$T = { class: "tao-grid__cells" };
|
|
2902
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
2888
2903
|
...{ name: "TaoGrid" },
|
|
2889
2904
|
__name: "TaoGrid",
|
|
2890
2905
|
props: {
|
|
@@ -2912,15 +2927,15 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2912
2927
|
class: normalizeClass(["tao-grid", { "tao-grid--fixed": isFixed.value }]),
|
|
2913
2928
|
style: normalizeStyle(gridStyle.value)
|
|
2914
2929
|
}, [
|
|
2915
|
-
createElementVNode("div", _hoisted_1$
|
|
2930
|
+
createElementVNode("div", _hoisted_1$T, [
|
|
2916
2931
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2917
2932
|
])
|
|
2918
2933
|
], 6);
|
|
2919
2934
|
};
|
|
2920
2935
|
}
|
|
2921
2936
|
});
|
|
2922
|
-
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2923
|
-
const _sfc_main$
|
|
2937
|
+
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-e95541e2"]]);
|
|
2938
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
2924
2939
|
...{ name: "TaoGridItem" },
|
|
2925
2940
|
__name: "TaoGridItem",
|
|
2926
2941
|
props: {
|
|
@@ -2956,15 +2971,15 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
2956
2971
|
};
|
|
2957
2972
|
}
|
|
2958
2973
|
});
|
|
2959
|
-
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2960
|
-
const _hoisted_1$
|
|
2961
|
-
const _hoisted_2$
|
|
2962
|
-
const _hoisted_3$
|
|
2963
|
-
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 = {
|
|
2964
2979
|
key: 0,
|
|
2965
2980
|
class: "tao-split__shield"
|
|
2966
2981
|
};
|
|
2967
|
-
const _sfc_main$
|
|
2982
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
2968
2983
|
...{ name: "TaoSplit" },
|
|
2969
2984
|
__name: "TaoSplit",
|
|
2970
2985
|
props: {
|
|
@@ -3261,7 +3276,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3261
3276
|
]]),
|
|
3262
3277
|
style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
|
|
3263
3278
|
}, [
|
|
3264
|
-
createElementVNode("div", _hoisted_1$
|
|
3279
|
+
createElementVNode("div", _hoisted_1$S, [
|
|
3265
3280
|
renderSlot(_ctx.$slots, "start", {}, void 0, true)
|
|
3266
3281
|
]),
|
|
3267
3282
|
createElementVNode("div", {
|
|
@@ -3284,17 +3299,17 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3284
3299
|
onKeydown: onKeydown2,
|
|
3285
3300
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
3286
3301
|
}, ["prevent"]))
|
|
3287
|
-
}, null, 40, _hoisted_2$
|
|
3288
|
-
createElementVNode("div", _hoisted_3$
|
|
3302
|
+
}, null, 40, _hoisted_2$M),
|
|
3303
|
+
createElementVNode("div", _hoisted_3$F, [
|
|
3289
3304
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
3290
3305
|
]),
|
|
3291
|
-
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3306
|
+
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$y)) : createCommentVNode("", true)
|
|
3292
3307
|
], 6);
|
|
3293
3308
|
};
|
|
3294
3309
|
}
|
|
3295
3310
|
});
|
|
3296
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3297
|
-
const _sfc_main$
|
|
3311
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-316b0d45"]]);
|
|
3312
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
3298
3313
|
...{ name: "TaoLoader" },
|
|
3299
3314
|
__name: "TaoLoader",
|
|
3300
3315
|
props: {
|
|
@@ -3355,11 +3370,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3355
3370
|
};
|
|
3356
3371
|
}
|
|
3357
3372
|
});
|
|
3358
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3359
|
-
const _hoisted_1$
|
|
3360
|
-
const _hoisted_2$
|
|
3361
|
-
const _hoisted_3$
|
|
3362
|
-
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({
|
|
3363
3378
|
...{ name: "TaoImage" },
|
|
3364
3379
|
__name: "TaoImage",
|
|
3365
3380
|
props: {
|
|
@@ -3390,7 +3405,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3390
3405
|
hasError.value = false;
|
|
3391
3406
|
});
|
|
3392
3407
|
return (_ctx, _cache) => {
|
|
3393
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3408
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
3394
3409
|
__props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
|
|
3395
3410
|
key: 0,
|
|
3396
3411
|
class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
|
|
@@ -3401,27 +3416,27 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3401
3416
|
draggable: "false",
|
|
3402
3417
|
onLoad: handleLoad,
|
|
3403
3418
|
onError: handleError
|
|
3404
|
-
}, null, 42, _hoisted_2$
|
|
3419
|
+
}, null, 42, _hoisted_2$L)) : createCommentVNode("", true),
|
|
3405
3420
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3406
|
-
createElementVNode("div", _hoisted_3$
|
|
3421
|
+
createElementVNode("div", _hoisted_3$E, toDisplayString(__props.placeholderText), 1)
|
|
3407
3422
|
], true, 1) : createCommentVNode("", true)
|
|
3408
3423
|
]);
|
|
3409
3424
|
};
|
|
3410
3425
|
}
|
|
3411
3426
|
});
|
|
3412
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3413
|
-
const _hoisted_1$
|
|
3414
|
-
const _hoisted_2$
|
|
3415
|
-
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 = {
|
|
3416
3431
|
key: 0,
|
|
3417
3432
|
class: "tao-checkbox__label"
|
|
3418
3433
|
};
|
|
3419
|
-
const _hoisted_4$
|
|
3434
|
+
const _hoisted_4$x = {
|
|
3420
3435
|
key: 1,
|
|
3421
3436
|
class: "tao-checkbox__label"
|
|
3422
3437
|
};
|
|
3423
|
-
const _sfc_main$
|
|
3424
|
-
...{ name: "TaoCheckbox" },
|
|
3438
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
3439
|
+
...{ name: "TaoCheckbox", inheritAttrs: false },
|
|
3425
3440
|
__name: "TaoCheckbox",
|
|
3426
3441
|
props: {
|
|
3427
3442
|
checked: { type: Boolean, default: void 0 },
|
|
@@ -3434,6 +3449,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3434
3449
|
},
|
|
3435
3450
|
emits: ["update:modelValue", "change"],
|
|
3436
3451
|
setup(__props, { emit: __emit }) {
|
|
3452
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
3437
3453
|
const props = __props;
|
|
3438
3454
|
const emit = __emit;
|
|
3439
3455
|
const { controlId, invalid, describedBy } = useField(props);
|
|
@@ -3473,12 +3489,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3473
3489
|
{ flush: "post" }
|
|
3474
3490
|
);
|
|
3475
3491
|
return (_ctx, _cache) => {
|
|
3476
|
-
return openBlock(), createElementBlock("label", {
|
|
3477
|
-
class:
|
|
3492
|
+
return openBlock(), createElementBlock("label", mergeProps(unref(rootAttrs)(), {
|
|
3493
|
+
class: ["tao-checkbox", [unref(sizeClass)(__props.size), { "tao-checkbox--disabled": __props.disabled }]],
|
|
3478
3494
|
for: unref(controlId)
|
|
3479
|
-
}, [
|
|
3495
|
+
}), [
|
|
3480
3496
|
renderSlot(_ctx.$slots, "pre", { text: __props.label }, void 0, true),
|
|
3481
|
-
createElementVNode("input", {
|
|
3497
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
3482
3498
|
id: unref(controlId),
|
|
3483
3499
|
ref_key: "inputRef",
|
|
3484
3500
|
ref: inputRef,
|
|
@@ -3490,25 +3506,25 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3490
3506
|
"aria-invalid": unref(invalid) || void 0,
|
|
3491
3507
|
"aria-describedby": unref(describedBy),
|
|
3492
3508
|
onChange: onInputChange
|
|
3493
|
-
}, null,
|
|
3509
|
+
}), null, 16, _hoisted_2$K),
|
|
3494
3510
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
3495
|
-
__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, [
|
|
3496
3512
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3497
3513
|
])),
|
|
3498
3514
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
3499
|
-
],
|
|
3515
|
+
], 16, _hoisted_1$Q);
|
|
3500
3516
|
};
|
|
3501
3517
|
}
|
|
3502
3518
|
});
|
|
3503
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3504
|
-
const _hoisted_1$
|
|
3519
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-64c6f73a"]]);
|
|
3520
|
+
const _hoisted_1$P = {
|
|
3505
3521
|
key: 0,
|
|
3506
3522
|
class: "tao-tag__prefix"
|
|
3507
3523
|
};
|
|
3508
|
-
const _hoisted_2$
|
|
3509
|
-
const _hoisted_3$
|
|
3510
|
-
const _hoisted_4$
|
|
3511
|
-
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({
|
|
3512
3528
|
...{ name: "TaoTag" },
|
|
3513
3529
|
__name: "TaoTag",
|
|
3514
3530
|
props: {
|
|
@@ -3550,10 +3566,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
3550
3566
|
]]),
|
|
3551
3567
|
style: normalizeStyle(style.value)
|
|
3552
3568
|
}, [
|
|
3553
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3569
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$P, [
|
|
3554
3570
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
3555
3571
|
])) : createCommentVNode("", true),
|
|
3556
|
-
createElementVNode("span", _hoisted_2$
|
|
3572
|
+
createElementVNode("span", _hoisted_2$J, [
|
|
3557
3573
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3558
3574
|
]),
|
|
3559
3575
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
@@ -3563,27 +3579,27 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
3563
3579
|
"aria-label": unref(l10n).closeLabel,
|
|
3564
3580
|
onClick: withModifiers(onClose, ["stop"])
|
|
3565
3581
|
}, [
|
|
3566
|
-
createElementVNode("span", _hoisted_4$
|
|
3582
|
+
createElementVNode("span", _hoisted_4$w, [
|
|
3567
3583
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
3568
3584
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
3569
3585
|
], true)
|
|
3570
3586
|
])
|
|
3571
|
-
], 8, _hoisted_3$
|
|
3587
|
+
], 8, _hoisted_3$C)) : createCommentVNode("", true)
|
|
3572
3588
|
], 6);
|
|
3573
3589
|
};
|
|
3574
3590
|
}
|
|
3575
3591
|
});
|
|
3576
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3577
|
-
const _hoisted_1$
|
|
3578
|
-
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 = {
|
|
3579
3595
|
key: 1,
|
|
3580
3596
|
class: "tao-divider__text"
|
|
3581
3597
|
};
|
|
3582
|
-
const _hoisted_3$
|
|
3598
|
+
const _hoisted_3$B = {
|
|
3583
3599
|
key: 2,
|
|
3584
3600
|
class: "tao-divider__line tao-divider__line--end"
|
|
3585
3601
|
};
|
|
3586
|
-
const _sfc_main$
|
|
3602
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
3587
3603
|
...{ name: "TaoDivider" },
|
|
3588
3604
|
__name: "TaoDivider",
|
|
3589
3605
|
props: {
|
|
@@ -3614,23 +3630,23 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
3614
3630
|
key: 0,
|
|
3615
3631
|
class: normalizeClass(["tao-divider__line", { "tao-divider__line--start": hasLabel.value }])
|
|
3616
3632
|
}, null, 2)) : createCommentVNode("", true),
|
|
3617
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3633
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, [
|
|
3618
3634
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3619
3635
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
3620
3636
|
], true)
|
|
3621
3637
|
])) : createCommentVNode("", true),
|
|
3622
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3623
|
-
], 10, _hoisted_1$
|
|
3638
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$B)) : createCommentVNode("", true)
|
|
3639
|
+
], 10, _hoisted_1$O);
|
|
3624
3640
|
};
|
|
3625
3641
|
}
|
|
3626
3642
|
});
|
|
3627
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3628
|
-
const _hoisted_1$
|
|
3643
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-662ed0ea"]]);
|
|
3644
|
+
const _hoisted_1$N = {
|
|
3629
3645
|
key: 0,
|
|
3630
3646
|
class: "tao-fieldset__legend"
|
|
3631
3647
|
};
|
|
3632
|
-
const _hoisted_2$
|
|
3633
|
-
const _sfc_main$
|
|
3648
|
+
const _hoisted_2$H = { class: "tao-fieldset__body" };
|
|
3649
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
3634
3650
|
...{ name: "TaoFieldset" },
|
|
3635
3651
|
__name: "TaoFieldset",
|
|
3636
3652
|
props: {
|
|
@@ -3642,20 +3658,20 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
3642
3658
|
return openBlock(), createElementBlock("fieldset", {
|
|
3643
3659
|
class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
|
|
3644
3660
|
}, [
|
|
3645
|
-
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
3661
|
+
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$N, [
|
|
3646
3662
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
3647
3663
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
3648
3664
|
], true)
|
|
3649
3665
|
])) : createCommentVNode("", true),
|
|
3650
|
-
createElementVNode("div", _hoisted_2$
|
|
3666
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
3651
3667
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3652
3668
|
])
|
|
3653
3669
|
], 2);
|
|
3654
3670
|
};
|
|
3655
3671
|
}
|
|
3656
3672
|
});
|
|
3657
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3658
|
-
const _sfc_main$
|
|
3673
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-3445dafd"]]);
|
|
3674
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
3659
3675
|
...{ name: "TaoAnimatedBorder" },
|
|
3660
3676
|
__name: "TaoAnimatedBorder",
|
|
3661
3677
|
props: {
|
|
@@ -3698,11 +3714,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3698
3714
|
};
|
|
3699
3715
|
}
|
|
3700
3716
|
});
|
|
3701
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3702
|
-
const _hoisted_1$
|
|
3703
|
-
const _hoisted_2$
|
|
3704
|
-
const _sfc_main$
|
|
3705
|
-
...{ name: "TaoTextarea" },
|
|
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({
|
|
3721
|
+
...{ name: "TaoTextarea", inheritAttrs: false },
|
|
3706
3722
|
__name: "TaoTextarea",
|
|
3707
3723
|
props: {
|
|
3708
3724
|
placeholder: { default: "" },
|
|
@@ -3727,6 +3743,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3727
3743
|
},
|
|
3728
3744
|
emits: ["update:modelValue", "change", "focus", "blur", "keydown"],
|
|
3729
3745
|
setup(__props, { emit: __emit }) {
|
|
3746
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
3730
3747
|
const props = __props;
|
|
3731
3748
|
const emit = __emit;
|
|
3732
3749
|
const { field, controlId, invalid } = useField(props);
|
|
@@ -3802,21 +3819,21 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3802
3819
|
nextTick(autoResize);
|
|
3803
3820
|
});
|
|
3804
3821
|
return (_ctx, _cache) => {
|
|
3805
|
-
return openBlock(), createElementBlock("div", {
|
|
3806
|
-
class:
|
|
3807
|
-
}, [
|
|
3808
|
-
createElementVNode("textarea", {
|
|
3822
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
3823
|
+
class: ["tao-textarea-wrap", unref(sizeClass)(__props.size)]
|
|
3824
|
+
}), [
|
|
3825
|
+
createElementVNode("textarea", mergeProps(unref(controlAttrs)(), {
|
|
3809
3826
|
id: unref(controlId),
|
|
3810
3827
|
ref_key: "textareaRef",
|
|
3811
3828
|
ref: textareaRef,
|
|
3812
|
-
class:
|
|
3829
|
+
class: ["tao-textarea", [
|
|
3813
3830
|
variantClasses.value,
|
|
3814
3831
|
alignClass.value,
|
|
3815
3832
|
{
|
|
3816
3833
|
"tao-textarea--no-resize": !__props.resize,
|
|
3817
3834
|
"tao-textarea--invalid": unref(invalid)
|
|
3818
3835
|
}
|
|
3819
|
-
]]
|
|
3836
|
+
]],
|
|
3820
3837
|
placeholder: __props.placeholder,
|
|
3821
3838
|
spellcheck: __props.spellcheck,
|
|
3822
3839
|
autocomplete: __props.autocomplete,
|
|
@@ -3834,25 +3851,25 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3834
3851
|
onFocus,
|
|
3835
3852
|
onBlur,
|
|
3836
3853
|
onKeydown: onKeydown2
|
|
3837
|
-
}, null,
|
|
3854
|
+
}), null, 16, _hoisted_1$M),
|
|
3838
3855
|
__props.count ? (openBlock(), createElementBlock("span", {
|
|
3839
3856
|
key: 0,
|
|
3840
3857
|
id: counterId.value,
|
|
3841
3858
|
class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
|
|
3842
|
-
}, toDisplayString(countLabel.value), 11, _hoisted_2$
|
|
3843
|
-
],
|
|
3859
|
+
}, toDisplayString(countLabel.value), 11, _hoisted_2$G)) : createCommentVNode("", true)
|
|
3860
|
+
], 16);
|
|
3844
3861
|
};
|
|
3845
3862
|
}
|
|
3846
3863
|
});
|
|
3847
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3848
|
-
const _hoisted_1$
|
|
3849
|
-
const _hoisted_2$
|
|
3850
|
-
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 = {
|
|
3851
3868
|
key: 0,
|
|
3852
3869
|
class: "tao-scroll-top__text",
|
|
3853
3870
|
"aria-hidden": "true"
|
|
3854
3871
|
};
|
|
3855
|
-
const _sfc_main$
|
|
3872
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3856
3873
|
...{ name: "TaoScrollTop", inheritAttrs: false },
|
|
3857
3874
|
__name: "TaoScrollTop",
|
|
3858
3875
|
props: {
|
|
@@ -3947,8 +3964,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3947
3964
|
"aria-label": accessibleName.value,
|
|
3948
3965
|
onClick: withModifiers(goToTop, ["prevent"])
|
|
3949
3966
|
}), [
|
|
3950
|
-
createElementVNode("span", _hoisted_2$
|
|
3951
|
-
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),
|
|
3952
3969
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3953
3970
|
createVNode(TaoIcon, {
|
|
3954
3971
|
class: "tao-scroll-top__icon",
|
|
@@ -3957,7 +3974,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3957
3974
|
})
|
|
3958
3975
|
], true)
|
|
3959
3976
|
])
|
|
3960
|
-
], 16, _hoisted_1$
|
|
3977
|
+
], 16, _hoisted_1$L),
|
|
3961
3978
|
!isText.value && caption.value ? (openBlock(), createElementBlock("span", {
|
|
3962
3979
|
key: 0,
|
|
3963
3980
|
class: normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
|
|
@@ -3970,26 +3987,26 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3970
3987
|
};
|
|
3971
3988
|
}
|
|
3972
3989
|
});
|
|
3973
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3974
|
-
const _hoisted_1$
|
|
3975
|
-
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 = {
|
|
3976
3993
|
key: 0,
|
|
3977
3994
|
class: "tao-progress__side"
|
|
3978
3995
|
};
|
|
3979
|
-
const _hoisted_3$
|
|
3980
|
-
const _hoisted_4$
|
|
3996
|
+
const _hoisted_3$z = { class: "tao-progress__main" };
|
|
3997
|
+
const _hoisted_4$v = {
|
|
3981
3998
|
key: 0,
|
|
3982
3999
|
class: "tao-progress__percentage"
|
|
3983
4000
|
};
|
|
3984
|
-
const _hoisted_5$
|
|
4001
|
+
const _hoisted_5$p = {
|
|
3985
4002
|
key: 1,
|
|
3986
4003
|
class: "tao-progress__side"
|
|
3987
4004
|
};
|
|
3988
|
-
const _hoisted_6$
|
|
4005
|
+
const _hoisted_6$k = {
|
|
3989
4006
|
key: 0,
|
|
3990
4007
|
class: "tao-progress__percentage"
|
|
3991
4008
|
};
|
|
3992
|
-
const _sfc_main$
|
|
4009
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
3993
4010
|
...{ name: "TaoProgress" },
|
|
3994
4011
|
__name: "TaoProgress",
|
|
3995
4012
|
props: {
|
|
@@ -4018,16 +4035,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
4018
4035
|
() => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
|
|
4019
4036
|
);
|
|
4020
4037
|
return (_ctx, _cache) => {
|
|
4021
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4038
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
4022
4039
|
createElementVNode("div", {
|
|
4023
4040
|
class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
|
|
4024
4041
|
style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
|
|
4025
4042
|
}, [
|
|
4026
|
-
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4043
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
4027
4044
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
4028
4045
|
])) : createCommentVNode("", true),
|
|
4029
|
-
createElementVNode("div", _hoisted_3$
|
|
4030
|
-
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),
|
|
4031
4048
|
createElementVNode("div", {
|
|
4032
4049
|
class: "tao-progress__track",
|
|
4033
4050
|
style: normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -4038,17 +4055,17 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
4038
4055
|
}, null, 6)
|
|
4039
4056
|
], 4)
|
|
4040
4057
|
]),
|
|
4041
|
-
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4058
|
+
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$p, [
|
|
4042
4059
|
renderSlot(_ctx.$slots, "right", {}, void 0, true),
|
|
4043
|
-
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
4060
|
+
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$k, toDisplayString(endPercentLabel.value), 1)) : createCommentVNode("", true)
|
|
4044
4061
|
])) : createCommentVNode("", true)
|
|
4045
4062
|
], 6)
|
|
4046
4063
|
]);
|
|
4047
4064
|
};
|
|
4048
4065
|
}
|
|
4049
4066
|
});
|
|
4050
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4051
|
-
const _sfc_main$
|
|
4067
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-4de488a6"]]);
|
|
4068
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
4052
4069
|
...{ name: "TaoRangeSlider" },
|
|
4053
4070
|
__name: "TaoRangeSlider",
|
|
4054
4071
|
props: {
|
|
@@ -4105,20 +4122,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
4105
4122
|
};
|
|
4106
4123
|
}
|
|
4107
4124
|
});
|
|
4108
|
-
const _hoisted_1$
|
|
4109
|
-
const _hoisted_2$
|
|
4110
|
-
const _hoisted_3$
|
|
4111
|
-
const _hoisted_4$
|
|
4112
|
-
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 = {
|
|
4113
4130
|
key: 0,
|
|
4114
4131
|
class: "tao-file-drop__list"
|
|
4115
4132
|
};
|
|
4116
|
-
const _hoisted_6$
|
|
4117
|
-
const _hoisted_7$
|
|
4118
|
-
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"];
|
|
4119
4136
|
const _hoisted_9$7 = { "aria-hidden": "true" };
|
|
4120
|
-
const _sfc_main$
|
|
4121
|
-
...{ name: "TaoFileDrop" },
|
|
4137
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
4138
|
+
...{ name: "TaoFileDrop", inheritAttrs: false },
|
|
4122
4139
|
__name: "TaoFileDrop",
|
|
4123
4140
|
props: {
|
|
4124
4141
|
modelValue: { default: () => [] },
|
|
@@ -4133,6 +4150,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4133
4150
|
},
|
|
4134
4151
|
emits: ["update:modelValue", "change", "clear-request"],
|
|
4135
4152
|
setup(__props, { emit: __emit }) {
|
|
4153
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
4136
4154
|
const appLocale = useTaoLocale();
|
|
4137
4155
|
const props = __props;
|
|
4138
4156
|
const l10n = useLocaleText(props, "fileDrop");
|
|
@@ -4250,10 +4268,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4250
4268
|
});
|
|
4251
4269
|
onBeforeUnmount(() => stopFocusLoss?.());
|
|
4252
4270
|
return (_ctx, _cache) => {
|
|
4253
|
-
return openBlock(), createElementBlock("div", {
|
|
4254
|
-
class:
|
|
4255
|
-
}, [
|
|
4256
|
-
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, [
|
|
4257
4275
|
__props.showClear && __props.modelValue.length ? (openBlock(), createElementBlock("button", {
|
|
4258
4276
|
key: 0,
|
|
4259
4277
|
type: "button",
|
|
@@ -4261,12 +4279,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4261
4279
|
"aria-label": unref(l10n).clearLabel,
|
|
4262
4280
|
onClick: requestClear
|
|
4263
4281
|
}, [
|
|
4264
|
-
createElementVNode("span", _hoisted_3$
|
|
4282
|
+
createElementVNode("span", _hoisted_3$y, [
|
|
4265
4283
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
4266
4284
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4267
4285
|
], true)
|
|
4268
4286
|
])
|
|
4269
|
-
], 8, _hoisted_2$
|
|
4287
|
+
], 8, _hoisted_2$D)) : createCommentVNode("", true),
|
|
4270
4288
|
createElementVNode("label", {
|
|
4271
4289
|
class: normalizeClass(["tao-file-drop__zone", { "tao-file-drop__zone--dragging": isDragging.value }]),
|
|
4272
4290
|
onDragover: handleDragOver,
|
|
@@ -4276,7 +4294,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4276
4294
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4277
4295
|
createTextVNode(toDisplayString(unref(appLocale).fileDrop.zoneText), 1)
|
|
4278
4296
|
], true),
|
|
4279
|
-
createElementVNode("input", {
|
|
4297
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
4280
4298
|
ref_key: "fileInput",
|
|
4281
4299
|
ref: fileInput,
|
|
4282
4300
|
class: "tao-sr-only",
|
|
@@ -4286,17 +4304,17 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4286
4304
|
onChange: handleFileSelect,
|
|
4287
4305
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4288
4306
|
}, ["stop"]))
|
|
4289
|
-
}, null,
|
|
4307
|
+
}), null, 16, _hoisted_4$u)
|
|
4290
4308
|
], 34)
|
|
4291
4309
|
]),
|
|
4292
|
-
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$
|
|
4310
|
+
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$o, [
|
|
4293
4311
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
4294
4312
|
return openBlock(), createElementBlock("li", {
|
|
4295
4313
|
key: fileKey(file, index),
|
|
4296
4314
|
class: "tao-file-drop__file"
|
|
4297
4315
|
}, [
|
|
4298
|
-
createElementVNode("span", _hoisted_6$
|
|
4299
|
-
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),
|
|
4300
4318
|
createElementVNode("button", {
|
|
4301
4319
|
type: "button",
|
|
4302
4320
|
class: "tao-file-drop__remove",
|
|
@@ -4308,15 +4326,15 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4308
4326
|
createVNode(TaoIcon, { name: "tao-close" })
|
|
4309
4327
|
], true)
|
|
4310
4328
|
])
|
|
4311
|
-
], 8, _hoisted_8$
|
|
4329
|
+
], 8, _hoisted_8$a)
|
|
4312
4330
|
]);
|
|
4313
4331
|
}), 128))
|
|
4314
4332
|
])) : createCommentVNode("", true)
|
|
4315
|
-
],
|
|
4333
|
+
], 16);
|
|
4316
4334
|
};
|
|
4317
4335
|
}
|
|
4318
4336
|
});
|
|
4319
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4337
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-21fc24d9"]]);
|
|
4320
4338
|
function isMenuSelectable(item) {
|
|
4321
4339
|
return item.type !== "separator" && item.type !== "label" && !item.disabled;
|
|
4322
4340
|
}
|
|
@@ -4413,29 +4431,29 @@ function useListNav(options) {
|
|
|
4413
4431
|
}
|
|
4414
4432
|
return { onKeydown: onKeydown2 };
|
|
4415
4433
|
}
|
|
4416
|
-
const _hoisted_1$
|
|
4417
|
-
const _hoisted_2$
|
|
4434
|
+
const _hoisted_1$I = ["aria-label", "aria-activedescendant", "data-tao-menu-root"];
|
|
4435
|
+
const _hoisted_2$C = {
|
|
4418
4436
|
key: 0,
|
|
4419
4437
|
class: "tao-menu__separator",
|
|
4420
4438
|
role: "separator"
|
|
4421
4439
|
};
|
|
4422
|
-
const _hoisted_3$
|
|
4440
|
+
const _hoisted_3$x = {
|
|
4423
4441
|
key: 1,
|
|
4424
4442
|
class: "tao-menu__label",
|
|
4425
4443
|
role: "presentation"
|
|
4426
4444
|
};
|
|
4427
|
-
const _hoisted_4$
|
|
4428
|
-
const _hoisted_5$
|
|
4429
|
-
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 = {
|
|
4430
4448
|
key: 1,
|
|
4431
4449
|
class: "tao-menu__shortcut"
|
|
4432
4450
|
};
|
|
4433
|
-
const _hoisted_7$
|
|
4451
|
+
const _hoisted_7$f = {
|
|
4434
4452
|
key: 2,
|
|
4435
4453
|
class: "tao-menu__arrow",
|
|
4436
4454
|
"aria-hidden": "true"
|
|
4437
4455
|
};
|
|
4438
|
-
const _sfc_main$
|
|
4456
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
4439
4457
|
...{ name: "TaoMenu" },
|
|
4440
4458
|
__name: "TaoMenu",
|
|
4441
4459
|
props: {
|
|
@@ -4618,7 +4636,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4618
4636
|
return openBlock(), createElementBlock(Fragment, {
|
|
4619
4637
|
key: "id" in item ? item.id : `${item.type}-${index}`
|
|
4620
4638
|
}, [
|
|
4621
|
-
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 }, [
|
|
4622
4640
|
createElementVNode("div", {
|
|
4623
4641
|
id: itemId(index),
|
|
4624
4642
|
ref_for: true,
|
|
@@ -4653,11 +4671,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4653
4671
|
class: "tao-menu__icon",
|
|
4654
4672
|
name: item.icon
|
|
4655
4673
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
4656
|
-
createElementVNode("span", _hoisted_5$
|
|
4674
|
+
createElementVNode("span", _hoisted_5$n, toDisplayString(item.label), 1)
|
|
4657
4675
|
]),
|
|
4658
|
-
"shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
4659
|
-
"items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4660
|
-
], 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),
|
|
4661
4679
|
"items" in item && item.items && openSub.value === index ? (openBlock(), createBlock(_component_TaoMenu, {
|
|
4662
4680
|
key: 0,
|
|
4663
4681
|
items: item.items,
|
|
@@ -4671,18 +4689,18 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4671
4689
|
], 64))
|
|
4672
4690
|
], 64);
|
|
4673
4691
|
}), 128))
|
|
4674
|
-
], 46, _hoisted_1$
|
|
4692
|
+
], 46, _hoisted_1$I)) : createCommentVNode("", true)
|
|
4675
4693
|
]);
|
|
4676
4694
|
};
|
|
4677
4695
|
}
|
|
4678
4696
|
});
|
|
4679
|
-
const _hoisted_1$
|
|
4680
|
-
const _hoisted_2$
|
|
4681
|
-
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 = {
|
|
4682
4700
|
key: 1,
|
|
4683
4701
|
"aria-hidden": "true"
|
|
4684
4702
|
};
|
|
4685
|
-
const _sfc_main$
|
|
4703
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
4686
4704
|
...{ name: "TaoDropdownMenu" },
|
|
4687
4705
|
__name: "TaoDropdownMenu",
|
|
4688
4706
|
props: {
|
|
@@ -4714,7 +4732,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
4714
4732
|
}
|
|
4715
4733
|
}
|
|
4716
4734
|
return (_ctx, _cache) => {
|
|
4717
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4735
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
4718
4736
|
createElementVNode("button", {
|
|
4719
4737
|
ref_key: "triggerRef",
|
|
4720
4738
|
ref: triggerRef,
|
|
@@ -4726,13 +4744,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
4726
4744
|
onClick: toggleMenu,
|
|
4727
4745
|
onKeydown: onTriggerKeydown
|
|
4728
4746
|
}, [
|
|
4729
|
-
_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, [
|
|
4730
4748
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4731
4749
|
createVNode(TaoIcon, { name: "tao-more-vertical" })
|
|
4732
4750
|
], true)
|
|
4733
4751
|
]))
|
|
4734
|
-
], 40, _hoisted_2$
|
|
4735
|
-
createVNode(_sfc_main$
|
|
4752
|
+
], 40, _hoisted_2$B),
|
|
4753
|
+
createVNode(_sfc_main$K, {
|
|
4736
4754
|
items: __props.items,
|
|
4737
4755
|
open: isOpen.value,
|
|
4738
4756
|
anchor: triggerRef.value,
|
|
@@ -4754,8 +4772,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
4754
4772
|
};
|
|
4755
4773
|
}
|
|
4756
4774
|
});
|
|
4757
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4758
|
-
const _sfc_main$
|
|
4775
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-e1b857ad"]]);
|
|
4776
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4759
4777
|
...{ name: "TaoContextMenu" },
|
|
4760
4778
|
__name: "TaoContextMenu",
|
|
4761
4779
|
props: {
|
|
@@ -4808,7 +4826,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
4808
4826
|
"aria-hidden": "true",
|
|
4809
4827
|
style: normalizeStyle({ left: `${point.value.x}px`, top: `${point.value.y}px` })
|
|
4810
4828
|
}, null, 4),
|
|
4811
|
-
createVNode(_sfc_main$
|
|
4829
|
+
createVNode(_sfc_main$K, {
|
|
4812
4830
|
items: __props.items,
|
|
4813
4831
|
open: isOpen.value,
|
|
4814
4832
|
anchor: anchor.value,
|
|
@@ -4830,10 +4848,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
4830
4848
|
};
|
|
4831
4849
|
}
|
|
4832
4850
|
});
|
|
4833
|
-
const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4834
|
-
const _hoisted_1$
|
|
4835
|
-
const _hoisted_2$
|
|
4836
|
-
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({
|
|
4837
4855
|
...{ name: "TaoMenubar" },
|
|
4838
4856
|
__name: "TaoMenubar",
|
|
4839
4857
|
props: {
|
|
@@ -4961,8 +4979,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
4961
4979
|
onKeydown: ($event) => onKeydown2($event, index),
|
|
4962
4980
|
onMouseenter: ($event) => onEnter(index),
|
|
4963
4981
|
onFocus: ($event) => current2.value = index
|
|
4964
|
-
}, toDisplayString(entry.label), 43, _hoisted_2$
|
|
4965
|
-
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$
|
|
4982
|
+
}, toDisplayString(entry.label), 43, _hoisted_2$A),
|
|
4983
|
+
hasMenu(index) ? (openBlock(), createBlock(_sfc_main$K, {
|
|
4966
4984
|
key: 0,
|
|
4967
4985
|
items: entry.items,
|
|
4968
4986
|
open: openIndex.value === index,
|
|
@@ -4984,11 +5002,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
4984
5002
|
]), 1032, ["items", "open", "anchor", "label", "close-on-scroll"])) : createCommentVNode("", true)
|
|
4985
5003
|
], 64);
|
|
4986
5004
|
}), 128))
|
|
4987
|
-
], 10, _hoisted_1$
|
|
5005
|
+
], 10, _hoisted_1$G);
|
|
4988
5006
|
};
|
|
4989
5007
|
}
|
|
4990
5008
|
});
|
|
4991
|
-
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5009
|
+
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ce01bc7e"]]);
|
|
4992
5010
|
const toolbarKey = Symbol("tao-toolbar");
|
|
4993
5011
|
const ITEMS = 'button, a[href], input, select, textarea, [role="button"], [data-tao-toolbar-item]';
|
|
4994
5012
|
const TEXT_INPUT = /^(text|search|email|url|tel|password|number|date|time|datetime-local|month|week)$/;
|
|
@@ -5041,8 +5059,8 @@ function isTextField(el) {
|
|
|
5041
5059
|
}
|
|
5042
5060
|
return el instanceof HTMLInputElement && TEXT_INPUT.test(el.type);
|
|
5043
5061
|
}
|
|
5044
|
-
const _hoisted_1$
|
|
5045
|
-
const _sfc_main$
|
|
5062
|
+
const _hoisted_1$F = ["aria-label", "aria-orientation"];
|
|
5063
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
5046
5064
|
...{ name: "TaoToolbar" },
|
|
5047
5065
|
__name: "TaoToolbar",
|
|
5048
5066
|
props: {
|
|
@@ -5132,13 +5150,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
5132
5150
|
onKeydown: onKeydown2
|
|
5133
5151
|
}, [
|
|
5134
5152
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5135
|
-
], 42, _hoisted_1$
|
|
5153
|
+
], 42, _hoisted_1$F);
|
|
5136
5154
|
};
|
|
5137
5155
|
}
|
|
5138
5156
|
});
|
|
5139
|
-
const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5140
|
-
const _hoisted_1$
|
|
5141
|
-
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({
|
|
5142
5160
|
...{ name: "TaoToolbarGroup" },
|
|
5143
5161
|
__name: "TaoToolbarGroup",
|
|
5144
5162
|
props: {
|
|
@@ -5153,13 +5171,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
5153
5171
|
"aria-label": __props.label
|
|
5154
5172
|
}, [
|
|
5155
5173
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5156
|
-
], 10, _hoisted_1$
|
|
5174
|
+
], 10, _hoisted_1$E);
|
|
5157
5175
|
};
|
|
5158
5176
|
}
|
|
5159
5177
|
});
|
|
5160
|
-
const TaoToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5161
|
-
const _hoisted_1$
|
|
5162
|
-
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({
|
|
5163
5181
|
...{ name: "TaoToolbarSeparator" },
|
|
5164
5182
|
__name: "TaoToolbarSeparator",
|
|
5165
5183
|
setup(__props) {
|
|
@@ -5170,11 +5188,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
5170
5188
|
class: normalizeClass(["tao-toolbar-separator", `tao-toolbar-separator--${orientation.value}`]),
|
|
5171
5189
|
role: "separator",
|
|
5172
5190
|
"aria-orientation": orientation.value
|
|
5173
|
-
}, null, 10, _hoisted_1$
|
|
5191
|
+
}, null, 10, _hoisted_1$D);
|
|
5174
5192
|
};
|
|
5175
5193
|
}
|
|
5176
5194
|
});
|
|
5177
|
-
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5195
|
+
const TaoToolbarSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-7a0063e1"]]);
|
|
5178
5196
|
const TAO_CHART_COLORS = 6;
|
|
5179
5197
|
const chartColorVar = (index) => `var(--tao-color-chart-${index % TAO_CHART_COLORS + 1})`;
|
|
5180
5198
|
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
@@ -5212,6 +5230,41 @@ function sparklinePath(runs) {
|
|
|
5212
5230
|
function sparklineArea(runs) {
|
|
5213
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("");
|
|
5214
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
|
+
}
|
|
5215
5268
|
function meterTone(value, min, max, low, high, optimum) {
|
|
5216
5269
|
if (!finite(low) && !finite(high)) {
|
|
5217
5270
|
return "accent";
|
|
@@ -5311,16 +5364,16 @@ function watchTaoChartTheme(apply, el) {
|
|
|
5311
5364
|
media?.removeEventListener("change", run);
|
|
5312
5365
|
};
|
|
5313
5366
|
}
|
|
5314
|
-
const _hoisted_1$
|
|
5315
|
-
const _hoisted_2$
|
|
5367
|
+
const _hoisted_1$C = ["role", "aria-label", "aria-hidden"];
|
|
5368
|
+
const _hoisted_2$z = {
|
|
5316
5369
|
class: "tao-sparkline__svg",
|
|
5317
5370
|
viewBox: "0 0 100 100",
|
|
5318
5371
|
preserveAspectRatio: "none",
|
|
5319
5372
|
"aria-hidden": "true"
|
|
5320
5373
|
};
|
|
5321
|
-
const _hoisted_3$
|
|
5322
|
-
const _hoisted_4$
|
|
5323
|
-
const _sfc_main$
|
|
5374
|
+
const _hoisted_3$v = ["d"];
|
|
5375
|
+
const _hoisted_4$s = ["d"];
|
|
5376
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
5324
5377
|
...{ name: "TaoSparkline" },
|
|
5325
5378
|
__name: "TaoSparkline",
|
|
5326
5379
|
props: {
|
|
@@ -5352,16 +5405,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5352
5405
|
"aria-label": __props.label,
|
|
5353
5406
|
"aria-hidden": __props.label ? void 0 : "true"
|
|
5354
5407
|
}, [
|
|
5355
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
5408
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$z, [
|
|
5356
5409
|
fill.value ? (openBlock(), createElementBlock("path", {
|
|
5357
5410
|
key: 0,
|
|
5358
5411
|
class: "tao-sparkline__area",
|
|
5359
5412
|
d: fill.value
|
|
5360
|
-
}, null, 8, _hoisted_3$
|
|
5413
|
+
}, null, 8, _hoisted_3$v)) : createCommentVNode("", true),
|
|
5361
5414
|
createElementVNode("path", {
|
|
5362
5415
|
class: "tao-sparkline__line",
|
|
5363
5416
|
d: line.value
|
|
5364
|
-
}, null, 8, _hoisted_4$
|
|
5417
|
+
}, null, 8, _hoisted_4$s)
|
|
5365
5418
|
])),
|
|
5366
5419
|
__props.dot && last.value ? (openBlock(), createElementBlock("span", {
|
|
5367
5420
|
key: 0,
|
|
@@ -5369,24 +5422,24 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5369
5422
|
style: normalizeStyle({ left: inset(last.value[0]), top: inset(last.value[1]) }),
|
|
5370
5423
|
"aria-hidden": "true"
|
|
5371
5424
|
}, null, 4)) : createCommentVNode("", true)
|
|
5372
|
-
], 14, _hoisted_1$
|
|
5425
|
+
], 14, _hoisted_1$C);
|
|
5373
5426
|
};
|
|
5374
5427
|
}
|
|
5375
5428
|
});
|
|
5376
|
-
const TaoSparkline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5377
|
-
const _hoisted_1$
|
|
5378
|
-
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 = {
|
|
5379
5432
|
key: 0,
|
|
5380
5433
|
class: "tao-meter__head",
|
|
5381
5434
|
"aria-hidden": "true"
|
|
5382
5435
|
};
|
|
5383
|
-
const _hoisted_3$
|
|
5384
|
-
const _hoisted_4$
|
|
5436
|
+
const _hoisted_3$u = { class: "tao-meter__label" };
|
|
5437
|
+
const _hoisted_4$r = {
|
|
5385
5438
|
key: 0,
|
|
5386
5439
|
class: "tao-meter__value"
|
|
5387
5440
|
};
|
|
5388
|
-
const _hoisted_5$
|
|
5389
|
-
const _sfc_main$
|
|
5441
|
+
const _hoisted_5$m = { class: "tao-meter__track" };
|
|
5442
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
5390
5443
|
...{ name: "TaoMeter" },
|
|
5391
5444
|
__name: "TaoMeter",
|
|
5392
5445
|
props: {
|
|
@@ -5420,38 +5473,38 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5420
5473
|
"aria-valuetext": typeof __props.valueText === "string" ? __props.valueText : void 0,
|
|
5421
5474
|
"aria-label": __props.label
|
|
5422
5475
|
}, [
|
|
5423
|
-
__props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5424
|
-
createElementVNode("span", _hoisted_3$
|
|
5425
|
-
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)
|
|
5426
5479
|
])) : createCommentVNode("", true),
|
|
5427
|
-
createElementVNode("div", _hoisted_5$
|
|
5480
|
+
createElementVNode("div", _hoisted_5$m, [
|
|
5428
5481
|
createElementVNode("div", {
|
|
5429
5482
|
class: "tao-meter__fill",
|
|
5430
5483
|
style: normalizeStyle({ width: `${share.value * 100}%` })
|
|
5431
5484
|
}, null, 4)
|
|
5432
5485
|
])
|
|
5433
|
-
], 10, _hoisted_1$
|
|
5486
|
+
], 10, _hoisted_1$B);
|
|
5434
5487
|
};
|
|
5435
5488
|
}
|
|
5436
5489
|
});
|
|
5437
|
-
const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5438
|
-
const _hoisted_1$
|
|
5439
|
-
const _hoisted_2$
|
|
5440
|
-
const _hoisted_3$
|
|
5441
|
-
const _hoisted_4$
|
|
5442
|
-
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 = {
|
|
5443
5496
|
key: 0,
|
|
5444
5497
|
class: "tao-donut__centre",
|
|
5445
5498
|
"aria-hidden": "true"
|
|
5446
5499
|
};
|
|
5447
|
-
const _hoisted_6$
|
|
5500
|
+
const _hoisted_6$h = {
|
|
5448
5501
|
key: 0,
|
|
5449
5502
|
class: "tao-donut__legend",
|
|
5450
5503
|
"aria-hidden": "true"
|
|
5451
5504
|
};
|
|
5452
|
-
const _hoisted_7$
|
|
5453
|
-
const _hoisted_8$
|
|
5454
|
-
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({
|
|
5455
5508
|
...{ name: "TaoDonut" },
|
|
5456
5509
|
__name: "TaoDonut",
|
|
5457
5510
|
props: {
|
|
@@ -5512,7 +5565,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5512
5565
|
cy: centre.value,
|
|
5513
5566
|
r: radius.value,
|
|
5514
5567
|
"stroke-width": __props.thickness
|
|
5515
|
-
}, null, 8, _hoisted_3$
|
|
5568
|
+
}, null, 8, _hoisted_3$t),
|
|
5516
5569
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
5517
5570
|
return withDirectives((openBlock(), createElementBlock("circle", {
|
|
5518
5571
|
key: arc.key,
|
|
@@ -5526,16 +5579,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5526
5579
|
"stroke-dashoffset": -arc.start,
|
|
5527
5580
|
transform: `rotate(-90 ${centre.value} ${centre.value})`,
|
|
5528
5581
|
style: normalizeStyle({ stroke: arc.stroke })
|
|
5529
|
-
}, null, 14, _hoisted_4$
|
|
5582
|
+
}, null, 14, _hoisted_4$q)), [
|
|
5530
5583
|
[vShow, arc.length > 0]
|
|
5531
5584
|
]);
|
|
5532
5585
|
}), 128))
|
|
5533
|
-
], 8, _hoisted_2$
|
|
5534
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5586
|
+
], 8, _hoisted_2$x)),
|
|
5587
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
|
|
5535
5588
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5536
5589
|
])) : createCommentVNode("", true)
|
|
5537
|
-
], 12, _hoisted_1$
|
|
5538
|
-
__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, [
|
|
5539
5592
|
(openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
|
|
5540
5593
|
return openBlock(), createElementBlock("li", {
|
|
5541
5594
|
key: arc.key,
|
|
@@ -5545,8 +5598,270 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5545
5598
|
class: normalizeClass(["tao-donut__swatch", unref(toneClass)(arc.tone)]),
|
|
5546
5599
|
style: normalizeStyle({ background: arc.stroke })
|
|
5547
5600
|
}, null, 6),
|
|
5548
|
-
createElementVNode("span", _hoisted_7$
|
|
5549
|
-
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)
|
|
5603
|
+
]);
|
|
5604
|
+
}), 128))
|
|
5605
|
+
])) : createCommentVNode("", true)
|
|
5606
|
+
], 2);
|
|
5607
|
+
};
|
|
5608
|
+
}
|
|
5609
|
+
});
|
|
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)
|
|
5550
5865
|
]);
|
|
5551
5866
|
}), 128))
|
|
5552
5867
|
])) : createCommentVNode("", true)
|
|
@@ -5554,7 +5869,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5554
5869
|
};
|
|
5555
5870
|
}
|
|
5556
5871
|
});
|
|
5557
|
-
const
|
|
5872
|
+
const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dad386aa"]]);
|
|
5558
5873
|
const _hoisted_1$y = { class: "tao-nav__shell" };
|
|
5559
5874
|
const _hoisted_2$v = ["aria-label"];
|
|
5560
5875
|
const _hoisted_3$r = { class: "tao-nav__column" };
|
|
@@ -5719,7 +6034,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5719
6034
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5720
6035
|
])) : createCommentVNode("", true)
|
|
5721
6036
|
]),
|
|
5722
|
-
overflowing.value ? (openBlock(), createBlock(_sfc_main$
|
|
6037
|
+
overflowing.value ? (openBlock(), createBlock(_sfc_main$K, {
|
|
5723
6038
|
key: 0,
|
|
5724
6039
|
items: moreMenu.value,
|
|
5725
6040
|
open: moreOpen.value,
|
|
@@ -6483,7 +6798,7 @@ const _hoisted_2$q = {
|
|
|
6483
6798
|
class: "tao-pin-code__separator",
|
|
6484
6799
|
"aria-hidden": "true"
|
|
6485
6800
|
};
|
|
6486
|
-
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"];
|
|
6487
6802
|
const _hoisted_4$k = {
|
|
6488
6803
|
key: 0,
|
|
6489
6804
|
class: "tao-pin-code__separator",
|
|
@@ -6738,6 +7053,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6738
7053
|
inputmode: __props.numbersOnly ? "numeric" : "text",
|
|
6739
7054
|
pattern: __props.numbersOnly ? "[0-9]" : void 0,
|
|
6740
7055
|
autocomplete: "one-time-code",
|
|
7056
|
+
"aria-label": unref(formatText)(unref(l10n).cellLabel ?? unref(localeEn).pinCode.cellLabel, { n: index + 1, count: numbers.value.length }),
|
|
6741
7057
|
maxlength: index === 0 ? count.value : 1,
|
|
6742
7058
|
onInput: ($event) => onChange($event, index),
|
|
6743
7059
|
onPaste: ($event) => onPaste($event, index),
|
|
@@ -6753,7 +7069,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6753
7069
|
};
|
|
6754
7070
|
}
|
|
6755
7071
|
});
|
|
6756
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
7072
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-94bbb076"]]);
|
|
6757
7073
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
6758
7074
|
...{ name: "TaoLink" },
|
|
6759
7075
|
__name: "TaoLink",
|
|
@@ -6868,7 +7184,7 @@ const _hoisted_2$p = { class: "tao-select__value" };
|
|
|
6868
7184
|
const _hoisted_3$l = ["aria-activedescendant"];
|
|
6869
7185
|
const _hoisted_4$j = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
6870
7186
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
6871
|
-
...{ name: "TaoSelect" },
|
|
7187
|
+
...{ name: "TaoSelect", inheritAttrs: false },
|
|
6872
7188
|
__name: "TaoSelect",
|
|
6873
7189
|
props: {
|
|
6874
7190
|
modelValue: { default: null },
|
|
@@ -6882,6 +7198,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6882
7198
|
},
|
|
6883
7199
|
emits: ["update:modelValue", "change"],
|
|
6884
7200
|
setup(__props, { emit: __emit }) {
|
|
7201
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
6885
7202
|
const props = __props;
|
|
6886
7203
|
const l10n = useLocaleText(props, "select");
|
|
6887
7204
|
const emit = __emit;
|
|
@@ -6995,15 +7312,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6995
7312
|
}
|
|
6996
7313
|
});
|
|
6997
7314
|
return (_ctx, _cache) => {
|
|
6998
|
-
return openBlock(), createElementBlock("div", {
|
|
6999
|
-
class:
|
|
7000
|
-
}, [
|
|
7001
|
-
createElementVNode("button", {
|
|
7315
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
7316
|
+
class: ["tao-select", [unref(sizeClass)(__props.size), { "tao-select--open": open.value, "tao-select--invalid": unref(invalid) }]]
|
|
7317
|
+
}), [
|
|
7318
|
+
createElementVNode("button", mergeProps(unref(controlAttrs)(), {
|
|
7002
7319
|
id: unref(controlId),
|
|
7003
7320
|
ref_key: "triggerRef",
|
|
7004
7321
|
ref: triggerRef,
|
|
7005
7322
|
type: "button",
|
|
7006
|
-
class:
|
|
7323
|
+
class: ["tao-select__trigger", { "tao-select__trigger--placeholder": !selected.value }],
|
|
7007
7324
|
role: "combobox",
|
|
7008
7325
|
"aria-expanded": open.value,
|
|
7009
7326
|
"aria-haspopup": "listbox",
|
|
@@ -7013,7 +7330,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7013
7330
|
disabled: __props.disabled,
|
|
7014
7331
|
onClick: toggle,
|
|
7015
7332
|
onKeydown: onTriggerKeydown
|
|
7016
|
-
}, [
|
|
7333
|
+
}), [
|
|
7017
7334
|
createElementVNode("span", _hoisted_2$p, toDisplayString(selected.value?.label ?? unref(l10n).placeholder), 1),
|
|
7018
7335
|
createElementVNode("span", {
|
|
7019
7336
|
class: normalizeClass(["tao-select__chevron", { "tao-select__chevron--custom": _ctx.$slots.chevron }]),
|
|
@@ -7021,7 +7338,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7021
7338
|
}, [
|
|
7022
7339
|
renderSlot(_ctx.$slots, "chevron", {}, void 0, true)
|
|
7023
7340
|
], 2)
|
|
7024
|
-
],
|
|
7341
|
+
], 16, _hoisted_1$r),
|
|
7025
7342
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
7026
7343
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
7027
7344
|
key: 0,
|
|
@@ -7074,11 +7391,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7074
7391
|
], 32)) : createCommentVNode("", true)
|
|
7075
7392
|
], 6)) : createCommentVNode("", true)
|
|
7076
7393
|
]))
|
|
7077
|
-
],
|
|
7394
|
+
], 16);
|
|
7078
7395
|
};
|
|
7079
7396
|
}
|
|
7080
7397
|
});
|
|
7081
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
7398
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-86083e38"]]);
|
|
7082
7399
|
const clamp = (v, lo, hi) => Math.min(Math.max(v, lo), hi);
|
|
7083
7400
|
const byte = (v) => Math.round(clamp(v, 0, 255));
|
|
7084
7401
|
const hex2 = (v) => byte(v).toString(16).padStart(2, "0");
|
|
@@ -7620,7 +7937,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7620
7937
|
const areaText = computed(() => `${Math.round(state.s * 100)}%, ${Math.round(state.v * 100)}%`);
|
|
7621
7938
|
return (_ctx, _cache) => {
|
|
7622
7939
|
return openBlock(), createElementBlock("div", {
|
|
7623
|
-
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"
|
|
7624
7942
|
}, [
|
|
7625
7943
|
createElementVNode("div", {
|
|
7626
7944
|
ref_key: "areaRef",
|
|
@@ -7646,7 +7964,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7646
7964
|
}, null, 4)
|
|
7647
7965
|
], 44, _hoisted_1$o),
|
|
7648
7966
|
createElementVNode("div", _hoisted_2$m, [
|
|
7649
|
-
createVNode(_sfc_main$
|
|
7967
|
+
createVNode(_sfc_main$17, {
|
|
7650
7968
|
modelValue: hueValue.value,
|
|
7651
7969
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hueValue.value = $event),
|
|
7652
7970
|
class: "tao-color-picker__hue",
|
|
@@ -7658,7 +7976,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7658
7976
|
"aria-label": unref(l10n).hueLabel,
|
|
7659
7977
|
onChange: _cache[1] || (_cache[1] = ($event) => emit("change", hex.value))
|
|
7660
7978
|
}, null, 8, ["modelValue", "disabled", "aria-label"]),
|
|
7661
|
-
__props.alpha ? (openBlock(), createBlock(_sfc_main$
|
|
7979
|
+
__props.alpha ? (openBlock(), createBlock(_sfc_main$17, {
|
|
7662
7980
|
key: 0,
|
|
7663
7981
|
modelValue: alphaValue.value,
|
|
7664
7982
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => alphaValue.value = $event),
|
|
@@ -7764,12 +8082,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7764
8082
|
};
|
|
7765
8083
|
}
|
|
7766
8084
|
});
|
|
7767
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-
|
|
8085
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-54d56769"]]);
|
|
7768
8086
|
const _hoisted_1$n = ["disabled", "aria-label", "aria-expanded"];
|
|
7769
8087
|
const _hoisted_2$l = { class: "tao-color-input__swatch" };
|
|
7770
8088
|
const _hoisted_3$i = { class: "tao-color-input__text" };
|
|
7771
8089
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
7772
|
-
...{ name: "TaoColorInput" },
|
|
8090
|
+
...{ name: "TaoColorInput", inheritAttrs: false },
|
|
7773
8091
|
__name: "TaoColorInput",
|
|
7774
8092
|
props: {
|
|
7775
8093
|
modelValue: {},
|
|
@@ -7786,32 +8104,34 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7786
8104
|
},
|
|
7787
8105
|
emits: ["update:modelValue", "update:mode", "change"],
|
|
7788
8106
|
setup(__props, { emit: __emit }) {
|
|
8107
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
7789
8108
|
const props = __props;
|
|
7790
8109
|
const emit = __emit;
|
|
7791
8110
|
const l10n = useLocaleText(props, "colorPicker");
|
|
7792
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}`;
|
|
7793
8113
|
return (_ctx, _cache) => {
|
|
7794
|
-
return openBlock(), createBlock(TaoPopover, {
|
|
8114
|
+
return openBlock(), createBlock(TaoPopover, mergeProps(unref(rootAttrs)(), {
|
|
7795
8115
|
placement: __props.placement,
|
|
7796
8116
|
disabled: __props.disabled,
|
|
7797
8117
|
class: "tao-color-input-root"
|
|
7798
|
-
}, {
|
|
8118
|
+
}), {
|
|
7799
8119
|
trigger: withCtx(({ open }) => [
|
|
7800
|
-
createElementVNode("button", {
|
|
8120
|
+
createElementVNode("button", mergeProps(unref(controlAttrs)(), {
|
|
7801
8121
|
type: "button",
|
|
7802
|
-
class:
|
|
8122
|
+
class: ["tao-color-input", [unref(sizeClass)(__props.size), { "tao-color-input--open": open, "tao-color-input--invalid": __props.error }]],
|
|
7803
8123
|
disabled: __props.disabled,
|
|
7804
|
-
"aria-label":
|
|
8124
|
+
"aria-label": buttonLabel(_ctx.$attrs["aria-label"]),
|
|
7805
8125
|
"aria-haspopup": "dialog",
|
|
7806
8126
|
"aria-expanded": open
|
|
7807
|
-
}, [
|
|
8127
|
+
}), [
|
|
7808
8128
|
createElementVNode("span", _hoisted_2$l, [
|
|
7809
8129
|
createElementVNode("span", {
|
|
7810
8130
|
style: normalizeStyle({ backgroundColor: shown.value })
|
|
7811
8131
|
}, null, 4)
|
|
7812
8132
|
]),
|
|
7813
8133
|
createElementVNode("span", _hoisted_3$i, toDisplayString(shown.value), 1)
|
|
7814
|
-
],
|
|
8134
|
+
], 16, _hoisted_1$n)
|
|
7815
8135
|
]),
|
|
7816
8136
|
default: withCtx(() => [
|
|
7817
8137
|
createVNode(TaoColorPicker, {
|
|
@@ -7828,11 +8148,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7828
8148
|
}, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"])
|
|
7829
8149
|
]),
|
|
7830
8150
|
_: 1
|
|
7831
|
-
},
|
|
8151
|
+
}, 16, ["placement", "disabled"]);
|
|
7832
8152
|
};
|
|
7833
8153
|
}
|
|
7834
8154
|
});
|
|
7835
|
-
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
8155
|
+
const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0df653c0"]]);
|
|
7836
8156
|
const _hoisted_1$m = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
7837
8157
|
const _hoisted_2$k = {
|
|
7838
8158
|
key: 0,
|
|
@@ -7840,7 +8160,7 @@ const _hoisted_2$k = {
|
|
|
7840
8160
|
};
|
|
7841
8161
|
const _hoisted_3$h = ["id", "aria-selected", "aria-disabled", "data-tao-combobox-index", "onClick", "onMouseenter"];
|
|
7842
8162
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
7843
|
-
...{ name: "TaoCombobox" },
|
|
8163
|
+
...{ name: "TaoCombobox", inheritAttrs: false },
|
|
7844
8164
|
__name: "TaoCombobox",
|
|
7845
8165
|
props: {
|
|
7846
8166
|
modelValue: { default: null },
|
|
@@ -7856,6 +8176,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7856
8176
|
},
|
|
7857
8177
|
emits: ["update:modelValue", "change", "create"],
|
|
7858
8178
|
setup(__props, { emit: __emit }) {
|
|
8179
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
7859
8180
|
const appLocale = useTaoLocale();
|
|
7860
8181
|
const props = __props;
|
|
7861
8182
|
const l10n = useLocaleText(props, "combobox");
|
|
@@ -8164,23 +8485,23 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8164
8485
|
stopFocusLoss?.();
|
|
8165
8486
|
});
|
|
8166
8487
|
return (_ctx, _cache) => {
|
|
8167
|
-
return openBlock(), createElementBlock("div", {
|
|
8168
|
-
class:
|
|
8488
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
8489
|
+
class: ["tao-combobox", [
|
|
8169
8490
|
unref(sizeClass)(__props.size),
|
|
8170
8491
|
{
|
|
8171
8492
|
"tao-combobox--open": open.value,
|
|
8172
8493
|
"tao-combobox--invalid": unref(invalid),
|
|
8173
8494
|
"tao-combobox--disabled": __props.disabled
|
|
8174
8495
|
}
|
|
8175
|
-
]]
|
|
8176
|
-
}, [
|
|
8496
|
+
]]
|
|
8497
|
+
}), [
|
|
8177
8498
|
createElementVNode("div", {
|
|
8178
8499
|
ref_key: "fieldRef",
|
|
8179
8500
|
ref: fieldRef,
|
|
8180
8501
|
class: "tao-combobox__field",
|
|
8181
8502
|
onMousedown: onFieldMouseDown
|
|
8182
8503
|
}, [
|
|
8183
|
-
createElementVNode("input", {
|
|
8504
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
8184
8505
|
id: unref(controlId),
|
|
8185
8506
|
ref_key: "inputRef",
|
|
8186
8507
|
ref: inputRef,
|
|
@@ -8205,7 +8526,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8205
8526
|
onFocus,
|
|
8206
8527
|
onBlur,
|
|
8207
8528
|
onKeydown: onInputKeydown
|
|
8208
|
-
}, null,
|
|
8529
|
+
}), null, 16, _hoisted_1$m),
|
|
8209
8530
|
createElementVNode("span", {
|
|
8210
8531
|
class: normalizeClass(["tao-combobox__chevron", { "tao-combobox__chevron--custom": _ctx.$slots.chevron }]),
|
|
8211
8532
|
"aria-hidden": "true"
|
|
@@ -8274,11 +8595,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8274
8595
|
], 32)) : createCommentVNode("", true)
|
|
8275
8596
|
], 6)) : createCommentVNode("", true)
|
|
8276
8597
|
]))
|
|
8277
|
-
],
|
|
8598
|
+
], 16);
|
|
8278
8599
|
};
|
|
8279
8600
|
}
|
|
8280
8601
|
});
|
|
8281
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
8602
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-f83c7ed3"]]);
|
|
8282
8603
|
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
8283
8604
|
function formatTaoDateIso(parts) {
|
|
8284
8605
|
return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
|
|
@@ -8765,7 +9086,7 @@ const _hoisted_5$b = {
|
|
|
8765
9086
|
};
|
|
8766
9087
|
const _hoisted_6$8 = ["aria-label"];
|
|
8767
9088
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
8768
|
-
...{ name: "TaoDate" },
|
|
9089
|
+
...{ name: "TaoDate", inheritAttrs: false },
|
|
8769
9090
|
__name: "TaoDate",
|
|
8770
9091
|
props: {
|
|
8771
9092
|
modelValue: { default: null },
|
|
@@ -8787,6 +9108,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8787
9108
|
},
|
|
8788
9109
|
emits: ["update:modelValue", "change"],
|
|
8789
9110
|
setup(__props, { emit: __emit }) {
|
|
9111
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
8790
9112
|
const appLocale = useTaoLocale();
|
|
8791
9113
|
const props = __props;
|
|
8792
9114
|
const l10n = useLocaleText(props, "date");
|
|
@@ -8906,16 +9228,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8906
9228
|
}
|
|
8907
9229
|
}
|
|
8908
9230
|
return (_ctx, _cache) => {
|
|
8909
|
-
return openBlock(), createElementBlock("div", {
|
|
8910
|
-
class:
|
|
8911
|
-
}, [
|
|
9231
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
9232
|
+
class: ["tao-date", [unref(sizeClass)(__props.size), { "tao-date--open": open.value, "tao-date--invalid": unref(invalid), "tao-date--editable": __props.editable }]]
|
|
9233
|
+
}), [
|
|
8912
9234
|
__props.editable ? (openBlock(), createElementBlock("div", {
|
|
8913
9235
|
key: 0,
|
|
8914
9236
|
ref_key: "fieldRef",
|
|
8915
9237
|
ref: fieldRef,
|
|
8916
9238
|
class: normalizeClass(["tao-date__field", { "tao-date__field--disabled": __props.disabled }])
|
|
8917
9239
|
}, [
|
|
8918
|
-
createElementVNode("input", {
|
|
9240
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
8919
9241
|
id: unref(controlId),
|
|
8920
9242
|
ref_key: "inputRef",
|
|
8921
9243
|
ref: inputRef,
|
|
@@ -8931,7 +9253,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8931
9253
|
onInput,
|
|
8932
9254
|
onKeydown: onInputKeydown,
|
|
8933
9255
|
onBlur: commitText
|
|
8934
|
-
}, null,
|
|
9256
|
+
}), null, 16, _hoisted_1$k),
|
|
8935
9257
|
createElementVNode("button", {
|
|
8936
9258
|
type: "button",
|
|
8937
9259
|
class: "tao-date__toggle",
|
|
@@ -8949,13 +9271,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8949
9271
|
})
|
|
8950
9272
|
], true)
|
|
8951
9273
|
], 8, _hoisted_2$i)
|
|
8952
|
-
], 2)) : (openBlock(), createElementBlock("button", {
|
|
8953
|
-
key: 1,
|
|
9274
|
+
], 2)) : (openBlock(), createElementBlock("button", mergeProps({ key: 1 }, unref(controlAttrs)(), {
|
|
8954
9275
|
id: unref(controlId),
|
|
8955
9276
|
ref_key: "triggerRef",
|
|
8956
9277
|
ref: triggerRef,
|
|
8957
9278
|
type: "button",
|
|
8958
|
-
class:
|
|
9279
|
+
class: ["tao-date__trigger", { "tao-date__trigger--placeholder": !valueIso.value }],
|
|
8959
9280
|
role: "combobox",
|
|
8960
9281
|
"aria-expanded": open.value,
|
|
8961
9282
|
"aria-haspopup": "dialog",
|
|
@@ -8965,7 +9286,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8965
9286
|
disabled: __props.disabled,
|
|
8966
9287
|
onClick: toggle,
|
|
8967
9288
|
onKeydown: onTriggerKeydown
|
|
8968
|
-
}, [
|
|
9289
|
+
}), [
|
|
8969
9290
|
createElementVNode("span", _hoisted_4$f, toDisplayString(displayLabel.value || unref(l10n).placeholder), 1),
|
|
8970
9291
|
createElementVNode("span", _hoisted_5$b, [
|
|
8971
9292
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
@@ -8975,7 +9296,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8975
9296
|
})
|
|
8976
9297
|
], true)
|
|
8977
9298
|
])
|
|
8978
|
-
],
|
|
9299
|
+
], 16, _hoisted_3$f)),
|
|
8979
9300
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
8980
9301
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
8981
9302
|
key: 0,
|
|
@@ -9033,11 +9354,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9033
9354
|
]), 1032, ["model-value", "min", "max", "locale", "today-text", "clear-text", "prev-month-label", "next-month-label"])
|
|
9034
9355
|
], 12, _hoisted_6$8)) : createCommentVNode("", true)
|
|
9035
9356
|
]))
|
|
9036
|
-
],
|
|
9357
|
+
], 16);
|
|
9037
9358
|
};
|
|
9038
9359
|
}
|
|
9039
9360
|
});
|
|
9040
|
-
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
9361
|
+
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-dd7a8c06"]]);
|
|
9041
9362
|
const _hoisted_1$j = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
9042
9363
|
const _hoisted_2$h = { class: "tao-date-range__value" };
|
|
9043
9364
|
const _hoisted_3$e = {
|
|
@@ -9046,7 +9367,7 @@ const _hoisted_3$e = {
|
|
|
9046
9367
|
};
|
|
9047
9368
|
const _hoisted_4$e = ["aria-label"];
|
|
9048
9369
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
9049
|
-
...{ name: "TaoDateRange" },
|
|
9370
|
+
...{ name: "TaoDateRange", inheritAttrs: false },
|
|
9050
9371
|
__name: "TaoDateRange",
|
|
9051
9372
|
props: {
|
|
9052
9373
|
modelValue: { default: null },
|
|
@@ -9064,6 +9385,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9064
9385
|
},
|
|
9065
9386
|
emits: ["update:modelValue", "change"],
|
|
9066
9387
|
setup(__props, { emit: __emit }) {
|
|
9388
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
9067
9389
|
const appLocale = useTaoLocale();
|
|
9068
9390
|
const props = __props;
|
|
9069
9391
|
const l10n = useLocaleText(props, "dateRange");
|
|
@@ -9122,15 +9444,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9122
9444
|
}
|
|
9123
9445
|
}
|
|
9124
9446
|
return (_ctx, _cache) => {
|
|
9125
|
-
return openBlock(), createElementBlock("div", {
|
|
9126
|
-
class:
|
|
9127
|
-
}, [
|
|
9128
|
-
createElementVNode("button", {
|
|
9447
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(rootAttrs)(), {
|
|
9448
|
+
class: ["tao-date-range", [unref(sizeClass)(__props.size), { "tao-date-range--open": open.value, "tao-date-range--invalid": unref(invalid) }]]
|
|
9449
|
+
}), [
|
|
9450
|
+
createElementVNode("button", mergeProps(unref(controlAttrs)(), {
|
|
9129
9451
|
id: unref(controlId),
|
|
9130
9452
|
ref_key: "triggerRef",
|
|
9131
9453
|
ref: triggerRef,
|
|
9132
9454
|
type: "button",
|
|
9133
|
-
class:
|
|
9455
|
+
class: ["tao-date-range__trigger", { "tao-date-range__trigger--placeholder": !committed.value }],
|
|
9134
9456
|
role: "combobox",
|
|
9135
9457
|
"aria-expanded": open.value,
|
|
9136
9458
|
"aria-haspopup": "dialog",
|
|
@@ -9140,7 +9462,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9140
9462
|
disabled: __props.disabled,
|
|
9141
9463
|
onClick: toggle,
|
|
9142
9464
|
onKeydown: onTriggerKeydown
|
|
9143
|
-
}, [
|
|
9465
|
+
}), [
|
|
9144
9466
|
createElementVNode("span", _hoisted_2$h, toDisplayString(displayLabel.value || unref(l10n).placeholder), 1),
|
|
9145
9467
|
createElementVNode("span", _hoisted_3$e, [
|
|
9146
9468
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
@@ -9150,7 +9472,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9150
9472
|
})
|
|
9151
9473
|
], true)
|
|
9152
9474
|
])
|
|
9153
|
-
],
|
|
9475
|
+
], 16, _hoisted_1$j),
|
|
9154
9476
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
9155
9477
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
9156
9478
|
key: 0,
|
|
@@ -9208,11 +9530,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9208
9530
|
]), 1032, ["model-value", "min", "max", "locale", "today-text", "clear-text", "prev-month-label", "next-month-label"])
|
|
9209
9531
|
], 12, _hoisted_4$e)) : createCommentVNode("", true)
|
|
9210
9532
|
]))
|
|
9211
|
-
],
|
|
9533
|
+
], 16);
|
|
9212
9534
|
};
|
|
9213
9535
|
}
|
|
9214
9536
|
});
|
|
9215
|
-
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
9537
|
+
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-742078b1"]]);
|
|
9216
9538
|
const _hoisted_1$i = ["for"];
|
|
9217
9539
|
const _hoisted_2$g = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby", "aria-busy"];
|
|
9218
9540
|
const _hoisted_3$d = {
|
|
@@ -9224,7 +9546,7 @@ const _hoisted_4$d = {
|
|
|
9224
9546
|
class: "tao-switch__label"
|
|
9225
9547
|
};
|
|
9226
9548
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
9227
|
-
...{ name: "TaoSwitch" },
|
|
9549
|
+
...{ name: "TaoSwitch", inheritAttrs: false },
|
|
9228
9550
|
__name: "TaoSwitch",
|
|
9229
9551
|
props: {
|
|
9230
9552
|
modelValue: { type: Boolean, default: false },
|
|
@@ -9236,6 +9558,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9236
9558
|
},
|
|
9237
9559
|
emits: ["update:modelValue", "change"],
|
|
9238
9560
|
setup(__props, { emit: __emit }) {
|
|
9561
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
9239
9562
|
const props = __props;
|
|
9240
9563
|
const emit = __emit;
|
|
9241
9564
|
const { controlId, invalid, describedBy } = useField(props);
|
|
@@ -9251,11 +9574,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9251
9574
|
emit("change", next);
|
|
9252
9575
|
}
|
|
9253
9576
|
return (_ctx, _cache) => {
|
|
9254
|
-
return openBlock(), createElementBlock("label", {
|
|
9255
|
-
class:
|
|
9577
|
+
return openBlock(), createElementBlock("label", mergeProps(unref(rootAttrs)(), {
|
|
9578
|
+
class: ["tao-switch", [unref(sizeClass)(__props.size), { "tao-switch--disabled": __props.disabled, "tao-switch--on": __props.modelValue, "tao-switch--invalid": unref(invalid), "tao-switch--loading": __props.loading }]],
|
|
9256
9579
|
for: unref(controlId)
|
|
9257
|
-
}, [
|
|
9258
|
-
createElementVNode("input", {
|
|
9580
|
+
}), [
|
|
9581
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
9259
9582
|
id: unref(controlId),
|
|
9260
9583
|
class: "tao-switch__input",
|
|
9261
9584
|
type: "checkbox",
|
|
@@ -9267,7 +9590,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9267
9590
|
"aria-describedby": unref(describedBy),
|
|
9268
9591
|
"aria-busy": __props.loading || void 0,
|
|
9269
9592
|
onChange: toggle
|
|
9270
|
-
}, null,
|
|
9593
|
+
}), null, 16, _hoisted_2$g),
|
|
9271
9594
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
9272
9595
|
class: "tao-switch__track",
|
|
9273
9596
|
"aria-hidden": "true"
|
|
@@ -9277,11 +9600,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9277
9600
|
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(__props.label), 1)) : _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
9278
9601
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9279
9602
|
])) : createCommentVNode("", true)
|
|
9280
|
-
],
|
|
9603
|
+
], 16, _hoisted_1$i);
|
|
9281
9604
|
};
|
|
9282
9605
|
}
|
|
9283
9606
|
});
|
|
9284
|
-
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
9607
|
+
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-538eb64b"]]);
|
|
9285
9608
|
const radioGroupKey = Symbol("taoRadioGroup");
|
|
9286
9609
|
const _hoisted_1$h = ["for"];
|
|
9287
9610
|
const _hoisted_2$f = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-describedby"];
|
|
@@ -9294,7 +9617,7 @@ const _hoisted_4$c = {
|
|
|
9294
9617
|
class: "tao-radio__label"
|
|
9295
9618
|
};
|
|
9296
9619
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
9297
|
-
...{ name: "TaoRadio" },
|
|
9620
|
+
...{ name: "TaoRadio", inheritAttrs: false },
|
|
9298
9621
|
__name: "TaoRadio",
|
|
9299
9622
|
props: {
|
|
9300
9623
|
value: { type: [String, Number, Boolean] },
|
|
@@ -9307,6 +9630,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9307
9630
|
},
|
|
9308
9631
|
emits: ["update:modelValue", "change"],
|
|
9309
9632
|
setup(__props, { emit: __emit }) {
|
|
9633
|
+
const { rootAttrs, controlAttrs } = useControlAttrs();
|
|
9310
9634
|
const props = __props;
|
|
9311
9635
|
const emit = __emit;
|
|
9312
9636
|
const group = inject(radioGroupKey, null);
|
|
@@ -9332,11 +9656,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9332
9656
|
emit("change", props.value);
|
|
9333
9657
|
}
|
|
9334
9658
|
return (_ctx, _cache) => {
|
|
9335
|
-
return openBlock(), createElementBlock("label", {
|
|
9336
|
-
class:
|
|
9659
|
+
return openBlock(), createElementBlock("label", mergeProps(unref(rootAttrs)(), {
|
|
9660
|
+
class: ["tao-radio", [unref(sizeClass)(__props.size), { "tao-radio--disabled": isDisabled.value, "tao-radio--invalid": unref(invalid) && !unref(group) }]],
|
|
9337
9661
|
for: controlId.value
|
|
9338
|
-
}, [
|
|
9339
|
-
createElementVNode("input", {
|
|
9662
|
+
}), [
|
|
9663
|
+
createElementVNode("input", mergeProps(unref(controlAttrs)(), {
|
|
9340
9664
|
id: controlId.value,
|
|
9341
9665
|
class: "tao-radio__input",
|
|
9342
9666
|
type: "radio",
|
|
@@ -9347,7 +9671,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9347
9671
|
"aria-invalid": !unref(group) && unref(invalid) || void 0,
|
|
9348
9672
|
"aria-describedby": describedBy.value,
|
|
9349
9673
|
onChange
|
|
9350
|
-
}, null,
|
|
9674
|
+
}), null, 16, _hoisted_2$f),
|
|
9351
9675
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
9352
9676
|
class: "tao-radio__dot",
|
|
9353
9677
|
"aria-hidden": "true"
|
|
@@ -9355,11 +9679,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9355
9679
|
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$c, [
|
|
9356
9680
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9357
9681
|
]))
|
|
9358
|
-
],
|
|
9682
|
+
], 16, _hoisted_1$h);
|
|
9359
9683
|
};
|
|
9360
9684
|
}
|
|
9361
9685
|
});
|
|
9362
|
-
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
9686
|
+
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-7c95fa50"]]);
|
|
9363
9687
|
const _hoisted_1$g = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
9364
9688
|
const _hoisted_2$e = {
|
|
9365
9689
|
key: 0,
|
|
@@ -12378,7 +12702,7 @@ const components = [
|
|
|
12378
12702
|
TaoSpoilerGroup,
|
|
12379
12703
|
TaoCopy,
|
|
12380
12704
|
TaoContainer,
|
|
12381
|
-
_sfc_main
|
|
12705
|
+
_sfc_main$$,
|
|
12382
12706
|
TaoSpace,
|
|
12383
12707
|
TaoGrid,
|
|
12384
12708
|
TaoGridItem,
|
|
@@ -12394,11 +12718,11 @@ const components = [
|
|
|
12394
12718
|
TaoTextarea,
|
|
12395
12719
|
TaoScrollTop,
|
|
12396
12720
|
TaoProgress,
|
|
12397
|
-
_sfc_main$
|
|
12398
|
-
_sfc_main$
|
|
12721
|
+
_sfc_main$17,
|
|
12722
|
+
_sfc_main$M,
|
|
12399
12723
|
TaoFileDrop,
|
|
12400
12724
|
TaoDropdownMenu,
|
|
12401
|
-
_sfc_main$
|
|
12725
|
+
_sfc_main$K,
|
|
12402
12726
|
TaoMenubar,
|
|
12403
12727
|
TaoToolbar,
|
|
12404
12728
|
TaoToolbarGroup,
|
|
@@ -12406,6 +12730,7 @@ const components = [
|
|
|
12406
12730
|
TaoSparkline,
|
|
12407
12731
|
TaoMeter,
|
|
12408
12732
|
TaoDonut,
|
|
12733
|
+
TaoHeatmap,
|
|
12409
12734
|
TaoNav,
|
|
12410
12735
|
TaoTree,
|
|
12411
12736
|
TaoChecklist,
|
|
@@ -12487,10 +12812,11 @@ export {
|
|
|
12487
12812
|
TaoEmpty,
|
|
12488
12813
|
TaoFieldset,
|
|
12489
12814
|
TaoFileDrop,
|
|
12490
|
-
_sfc_main
|
|
12815
|
+
_sfc_main$$ as TaoFlex,
|
|
12491
12816
|
TaoFormField,
|
|
12492
12817
|
TaoGrid,
|
|
12493
12818
|
TaoGridItem,
|
|
12819
|
+
TaoHeatmap,
|
|
12494
12820
|
TaoIcon,
|
|
12495
12821
|
TaoImage,
|
|
12496
12822
|
TaoInput,
|
|
@@ -12501,7 +12827,7 @@ export {
|
|
|
12501
12827
|
TaoListItem,
|
|
12502
12828
|
TaoLoader,
|
|
12503
12829
|
TaoMarquee,
|
|
12504
|
-
_sfc_main$
|
|
12830
|
+
_sfc_main$K as TaoMenu,
|
|
12505
12831
|
TaoMenubar,
|
|
12506
12832
|
TaoMeter,
|
|
12507
12833
|
TaoModal,
|
|
@@ -12513,14 +12839,14 @@ export {
|
|
|
12513
12839
|
TaoQuantity,
|
|
12514
12840
|
TaoRadio,
|
|
12515
12841
|
TaoRadioGroup,
|
|
12516
|
-
_sfc_main$
|
|
12842
|
+
_sfc_main$M as TaoRangeSlider,
|
|
12517
12843
|
TaoScrollTop,
|
|
12518
12844
|
TaoScrubber,
|
|
12519
12845
|
TaoSegmented,
|
|
12520
12846
|
TaoSegmentedOption,
|
|
12521
12847
|
TaoSelect,
|
|
12522
12848
|
TaoSkeleton,
|
|
12523
|
-
_sfc_main$
|
|
12849
|
+
_sfc_main$17 as TaoSlider,
|
|
12524
12850
|
TaoSpace,
|
|
12525
12851
|
TaoSparkline,
|
|
12526
12852
|
TaoSplit,
|