@1337exp/taoui 1.6.1 → 1.8.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/README.md +20 -0
- package/README.ru.md +20 -0
- package/dist/index.cjs +631 -405
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +545 -265
- package/dist/index.mjs +631 -405
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +221 -6
- package/package.json +1 -1
- package/src/styles/primitives.css +3 -0
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, renderSlot, computed, normalizeStyle, inject, useId, ref, unref, watch, createTextVNode, onBeforeUnmount, createBlock, Teleport, createVNode, Transition, withCtx, withModifiers, nextTick, Fragment, renderList, onMounted, provide, resolveDynamicComponent, useCssVars, useSlots, reactive, onBeforeMount, withDirectives, vModelText, getCurrentInstance, mergeProps, TransitionGroup, onUpdated, createApp } from "vue";
|
|
2
|
-
const _hoisted_1$
|
|
3
|
-
const _hoisted_2$
|
|
2
|
+
const _hoisted_1$P = ["type", "disabled"];
|
|
3
|
+
const _hoisted_2$I = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "tao-button__loader"
|
|
6
6
|
};
|
|
7
|
-
const _hoisted_3$
|
|
7
|
+
const _hoisted_3$B = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "tao-button__icon"
|
|
10
10
|
};
|
|
11
|
-
const _hoisted_4$
|
|
12
|
-
const _sfc_main$
|
|
11
|
+
const _hoisted_4$v = { class: "tao-button__content" };
|
|
12
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
13
13
|
...{ name: "TaoButton" },
|
|
14
14
|
__name: "TaoButton",
|
|
15
15
|
props: {
|
|
@@ -48,12 +48,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
disabled: __props.disabled || __props.loading,
|
|
49
49
|
onClick: handleClick
|
|
50
50
|
}, [
|
|
51
|
-
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
52
|
-
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
53
|
-
createElementVNode("span", _hoisted_4$
|
|
51
|
+
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$I)) : createCommentVNode("", true),
|
|
52
|
+
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
|
|
53
|
+
createElementVNode("span", _hoisted_4$v, [
|
|
54
54
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
55
55
|
])
|
|
56
|
-
], 10, _hoisted_1$
|
|
56
|
+
], 10, _hoisted_1$P);
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
});
|
|
@@ -64,8 +64,8 @@ const _export_sfc = (sfc, props) => {
|
|
|
64
64
|
}
|
|
65
65
|
return target;
|
|
66
66
|
};
|
|
67
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
68
|
-
const _sfc_main$
|
|
67
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-c3034f66"]]);
|
|
68
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
69
69
|
...{ name: "TaoBlock" },
|
|
70
70
|
__name: "TaoBlock",
|
|
71
71
|
props: {
|
|
@@ -97,24 +97,24 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
100
|
+
const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-feb87e36"]]);
|
|
101
101
|
const formFieldKey = Symbol("taoFormField");
|
|
102
|
-
const _hoisted_1$
|
|
103
|
-
const _hoisted_2$
|
|
104
|
-
const _hoisted_3$
|
|
102
|
+
const _hoisted_1$O = { class: "tao-input-wrapper" };
|
|
103
|
+
const _hoisted_2$H = ["for"];
|
|
104
|
+
const _hoisted_3$A = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
107
107
|
};
|
|
108
|
-
const _hoisted_4$
|
|
109
|
-
const _hoisted_5$
|
|
108
|
+
const _hoisted_4$u = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
109
|
+
const _hoisted_5$m = {
|
|
110
110
|
key: 1,
|
|
111
111
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
112
112
|
};
|
|
113
|
-
const _hoisted_6$
|
|
113
|
+
const _hoisted_6$h = {
|
|
114
114
|
key: 1,
|
|
115
115
|
class: "tao-input__error"
|
|
116
116
|
};
|
|
117
|
-
const _sfc_main$
|
|
117
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
118
118
|
...{ name: "TaoInput" },
|
|
119
119
|
__name: "TaoInput",
|
|
120
120
|
props: {
|
|
@@ -150,12 +150,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
150
150
|
emit("focus", event);
|
|
151
151
|
}
|
|
152
152
|
return (_ctx, _cache) => {
|
|
153
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
153
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
154
154
|
__props.label && !unref(field) ? (openBlock(), createElementBlock("label", {
|
|
155
155
|
key: 0,
|
|
156
156
|
class: "tao-input__label",
|
|
157
157
|
for: controlId.value
|
|
158
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
158
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$H)) : createCommentVNode("", true),
|
|
159
159
|
createElementVNode("div", {
|
|
160
160
|
class: normalizeClass(["tao-input-shell", {
|
|
161
161
|
"tao-input-shell--focused": focused.value,
|
|
@@ -165,7 +165,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
165
165
|
"tao-input-shell--suffix": _ctx.$slots.suffix
|
|
166
166
|
}])
|
|
167
167
|
}, [
|
|
168
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
168
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_3$A, [
|
|
169
169
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
170
170
|
])) : createCommentVNode("", true),
|
|
171
171
|
createElementVNode("input", {
|
|
@@ -180,27 +180,27 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
180
180
|
onInput: handleInput,
|
|
181
181
|
onBlur: handleBlur,
|
|
182
182
|
onFocus: handleFocus
|
|
183
|
-
}, null, 42, _hoisted_4$
|
|
184
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
183
|
+
}, null, 42, _hoisted_4$u),
|
|
184
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_5$m, [
|
|
185
185
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
186
186
|
])) : createCommentVNode("", true)
|
|
187
187
|
], 2),
|
|
188
|
-
__props.error && __props.errorMessage ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
188
|
+
__props.error && __props.errorMessage ? (openBlock(), createElementBlock("span", _hoisted_6$h, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
|
|
189
189
|
]);
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
194
|
-
const _hoisted_1$
|
|
193
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-b522e041"]]);
|
|
194
|
+
const _hoisted_1$N = {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
197
197
|
};
|
|
198
|
-
const _hoisted_2$
|
|
199
|
-
const _hoisted_3$
|
|
198
|
+
const _hoisted_2$G = { class: "tao-input-group__field" };
|
|
199
|
+
const _hoisted_3$z = {
|
|
200
200
|
key: 1,
|
|
201
201
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
202
202
|
};
|
|
203
|
-
const _sfc_main$
|
|
203
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
204
204
|
...{ name: "TaoInputGroup" },
|
|
205
205
|
__name: "TaoInputGroup",
|
|
206
206
|
setup(__props) {
|
|
@@ -222,30 +222,30 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
222
222
|
onFocusin: onFocusIn,
|
|
223
223
|
onFocusout: onFocusOut
|
|
224
224
|
}, [
|
|
225
|
-
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
225
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
226
226
|
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
227
227
|
])) : createCommentVNode("", true),
|
|
228
|
-
createElementVNode("div", _hoisted_2$
|
|
228
|
+
createElementVNode("div", _hoisted_2$G, [
|
|
229
229
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
230
230
|
]),
|
|
231
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
231
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
232
232
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
233
233
|
])) : createCommentVNode("", true)
|
|
234
234
|
], 34);
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
239
|
-
const _hoisted_1$
|
|
240
|
-
const _hoisted_2$
|
|
238
|
+
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f06bb3b1"]]);
|
|
239
|
+
const _hoisted_1$M = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
240
|
+
const _hoisted_2$F = {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "tao-input-number__steppers"
|
|
243
243
|
};
|
|
244
|
-
const _hoisted_3$
|
|
245
|
-
const _hoisted_4$
|
|
246
|
-
const _hoisted_5$
|
|
247
|
-
const _hoisted_6$
|
|
248
|
-
const _sfc_main$
|
|
244
|
+
const _hoisted_3$y = ["aria-label", "disabled"];
|
|
245
|
+
const _hoisted_4$t = { "aria-hidden": "true" };
|
|
246
|
+
const _hoisted_5$l = ["aria-label", "disabled"];
|
|
247
|
+
const _hoisted_6$g = { "aria-hidden": "true" };
|
|
248
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
249
249
|
...{ name: "TaoInputNumber" },
|
|
250
250
|
__name: "TaoInputNumber",
|
|
251
251
|
props: {
|
|
@@ -396,8 +396,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
396
396
|
onFocus,
|
|
397
397
|
onBlur,
|
|
398
398
|
onKeydown
|
|
399
|
-
}, null, 40, _hoisted_1$
|
|
400
|
-
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
399
|
+
}, null, 40, _hoisted_1$M),
|
|
400
|
+
__props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
401
401
|
createElementVNode("button", {
|
|
402
402
|
type: "button",
|
|
403
403
|
class: "tao-input-number__step",
|
|
@@ -406,12 +406,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
406
406
|
disabled: __props.disabled || atMax.value,
|
|
407
407
|
onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
|
|
408
408
|
}, [
|
|
409
|
-
createElementVNode("span", _hoisted_4$
|
|
409
|
+
createElementVNode("span", _hoisted_4$t, [
|
|
410
410
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
411
411
|
_cache[2] || (_cache[2] = createTextVNode("+", -1))
|
|
412
412
|
], true)
|
|
413
413
|
])
|
|
414
|
-
], 8, _hoisted_3$
|
|
414
|
+
], 8, _hoisted_3$y),
|
|
415
415
|
createElementVNode("button", {
|
|
416
416
|
type: "button",
|
|
417
417
|
class: "tao-input-number__step",
|
|
@@ -420,24 +420,24 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
420
420
|
disabled: __props.disabled || atMin.value,
|
|
421
421
|
onClick: _cache[1] || (_cache[1] = ($event) => bump(-1))
|
|
422
422
|
}, [
|
|
423
|
-
createElementVNode("span", _hoisted_6$
|
|
423
|
+
createElementVNode("span", _hoisted_6$g, [
|
|
424
424
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
425
425
|
_cache[3] || (_cache[3] = createTextVNode("−", -1))
|
|
426
426
|
], true)
|
|
427
427
|
])
|
|
428
|
-
], 8, _hoisted_5$
|
|
428
|
+
], 8, _hoisted_5$l)
|
|
429
429
|
])) : createCommentVNode("", true)
|
|
430
430
|
], 2);
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
435
|
-
const _hoisted_1$
|
|
436
|
-
const _hoisted_2$
|
|
437
|
-
const _hoisted_3$
|
|
438
|
-
const _hoisted_4$
|
|
439
|
-
const _hoisted_5$
|
|
440
|
-
const _sfc_main$
|
|
434
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-331dd958"]]);
|
|
435
|
+
const _hoisted_1$L = ["aria-label", "disabled"];
|
|
436
|
+
const _hoisted_2$E = { "aria-hidden": "true" };
|
|
437
|
+
const _hoisted_3$x = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
438
|
+
const _hoisted_4$s = ["aria-label", "disabled"];
|
|
439
|
+
const _hoisted_5$k = { "aria-hidden": "true" };
|
|
440
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
441
441
|
...{ name: "TaoQuantity" },
|
|
442
442
|
__name: "TaoQuantity",
|
|
443
443
|
props: {
|
|
@@ -574,12 +574,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
574
574
|
disabled: minusDisabled.value,
|
|
575
575
|
onClick: onDec
|
|
576
576
|
}, [
|
|
577
|
-
createElementVNode("span", _hoisted_2$
|
|
577
|
+
createElementVNode("span", _hoisted_2$E, [
|
|
578
578
|
renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
|
|
579
579
|
_cache[0] || (_cache[0] = createTextVNode("−", -1))
|
|
580
580
|
], true)
|
|
581
581
|
])
|
|
582
|
-
], 8, _hoisted_1$
|
|
582
|
+
], 8, _hoisted_1$L),
|
|
583
583
|
createElementVNode("input", {
|
|
584
584
|
id: controlId.value,
|
|
585
585
|
class: "tao-quantity__input",
|
|
@@ -599,7 +599,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
599
599
|
onFocus,
|
|
600
600
|
onBlur,
|
|
601
601
|
onKeydown
|
|
602
|
-
}, null, 40, _hoisted_3$
|
|
602
|
+
}, null, 40, _hoisted_3$x),
|
|
603
603
|
createElementVNode("button", {
|
|
604
604
|
type: "button",
|
|
605
605
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -607,35 +607,35 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
607
607
|
disabled: plusDisabled.value,
|
|
608
608
|
onClick: onInc
|
|
609
609
|
}, [
|
|
610
|
-
createElementVNode("span", _hoisted_5$
|
|
610
|
+
createElementVNode("span", _hoisted_5$k, [
|
|
611
611
|
renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
612
612
|
_cache[1] || (_cache[1] = createTextVNode("+", -1))
|
|
613
613
|
], true)
|
|
614
614
|
])
|
|
615
|
-
], 8, _hoisted_4$
|
|
615
|
+
], 8, _hoisted_4$s)
|
|
616
616
|
], 2);
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
|
-
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
621
|
-
const _hoisted_1$
|
|
620
|
+
const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-c9c7c8b4"]]);
|
|
621
|
+
const _hoisted_1$K = {
|
|
622
622
|
key: 0,
|
|
623
623
|
class: "tao-card__cover"
|
|
624
624
|
};
|
|
625
|
-
const _hoisted_2$
|
|
625
|
+
const _hoisted_2$D = {
|
|
626
626
|
key: 0,
|
|
627
627
|
class: "tao-card__header-title"
|
|
628
628
|
};
|
|
629
|
-
const _hoisted_3$
|
|
630
|
-
const _hoisted_4$
|
|
629
|
+
const _hoisted_3$w = { key: 0 };
|
|
630
|
+
const _hoisted_4$r = {
|
|
631
631
|
key: 2,
|
|
632
632
|
class: "tao-card__title-block"
|
|
633
633
|
};
|
|
634
|
-
const _hoisted_5$
|
|
634
|
+
const _hoisted_5$j = {
|
|
635
635
|
key: 0,
|
|
636
636
|
class: "tao-card__title"
|
|
637
637
|
};
|
|
638
|
-
const _hoisted_6$
|
|
638
|
+
const _hoisted_6$f = {
|
|
639
639
|
key: 1,
|
|
640
640
|
class: "tao-card__sub"
|
|
641
641
|
};
|
|
@@ -647,7 +647,7 @@ const _hoisted_8$b = {
|
|
|
647
647
|
key: 4,
|
|
648
648
|
class: "tao-card__footer"
|
|
649
649
|
};
|
|
650
|
-
const _sfc_main$
|
|
650
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
651
651
|
...{ name: "TaoCard" },
|
|
652
652
|
__name: "TaoCard",
|
|
653
653
|
props: {
|
|
@@ -679,14 +679,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
679
679
|
}]),
|
|
680
680
|
style: normalizeStyle(radiusStyle.value)
|
|
681
681
|
}, [
|
|
682
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
682
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
683
683
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
684
684
|
])) : createCommentVNode("", true),
|
|
685
685
|
createElementVNode("div", {
|
|
686
686
|
class: "tao-card__content",
|
|
687
687
|
style: normalizeStyle(paddingStyle.value)
|
|
688
688
|
}, [
|
|
689
|
-
_ctx.$slots.headerTitle ? (openBlock(), createElementBlock("h2", _hoisted_2$
|
|
689
|
+
_ctx.$slots.headerTitle ? (openBlock(), createElementBlock("h2", _hoisted_2$D, [
|
|
690
690
|
renderSlot(_ctx.$slots, "headerTitle", {}, void 0, true)
|
|
691
691
|
])) : createCommentVNode("", true),
|
|
692
692
|
_ctx.$slots.header || _ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("div", {
|
|
@@ -696,15 +696,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
696
696
|
createElementVNode("span", null, [
|
|
697
697
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
698
698
|
]),
|
|
699
|
-
_ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
699
|
+
_ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
700
700
|
renderSlot(_ctx.$slots, "headerSecondary", {}, void 0, true)
|
|
701
701
|
])) : createCommentVNode("", true)
|
|
702
702
|
], 2)) : createCommentVNode("", true),
|
|
703
|
-
_ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
704
|
-
_ctx.$slots.title ? (openBlock(), createElementBlock("h2", _hoisted_5$
|
|
703
|
+
_ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_4$r, [
|
|
704
|
+
_ctx.$slots.title ? (openBlock(), createElementBlock("h2", _hoisted_5$j, [
|
|
705
705
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
706
706
|
])) : createCommentVNode("", true),
|
|
707
|
-
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
707
|
+
_ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
|
|
708
708
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
709
709
|
])) : createCommentVNode("", true)
|
|
710
710
|
])) : createCommentVNode("", true),
|
|
@@ -719,7 +719,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
|
-
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
722
|
+
const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-2ff3d055"]]);
|
|
723
723
|
const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
724
724
|
function getFocusable(root) {
|
|
725
725
|
return [...root.querySelectorAll(FOCUSABLE)].filter(
|
|
@@ -773,21 +773,21 @@ function unlockBodyScroll() {
|
|
|
773
773
|
previousOverflow = "";
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
const _hoisted_1$
|
|
777
|
-
const _hoisted_2$
|
|
776
|
+
const _hoisted_1$J = ["aria-labelledby"];
|
|
777
|
+
const _hoisted_2$C = {
|
|
778
778
|
key: 0,
|
|
779
779
|
class: "tao-modal__header"
|
|
780
780
|
};
|
|
781
|
-
const _hoisted_3$
|
|
782
|
-
const _hoisted_4$
|
|
783
|
-
const _hoisted_5$
|
|
784
|
-
const _hoisted_6$
|
|
781
|
+
const _hoisted_3$v = ["id"];
|
|
782
|
+
const _hoisted_4$q = { key: 1 };
|
|
783
|
+
const _hoisted_5$i = ["aria-label"];
|
|
784
|
+
const _hoisted_6$e = { "aria-hidden": "true" };
|
|
785
785
|
const _hoisted_7$b = { class: "tao-modal__content" };
|
|
786
786
|
const _hoisted_8$a = {
|
|
787
787
|
key: 1,
|
|
788
788
|
class: "tao-modal__footer"
|
|
789
789
|
};
|
|
790
|
-
const _sfc_main$
|
|
790
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
791
791
|
...{ name: "TaoModal" },
|
|
792
792
|
__name: "TaoModal",
|
|
793
793
|
props: {
|
|
@@ -892,13 +892,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
892
892
|
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
893
893
|
tabindex: "-1"
|
|
894
894
|
}, [
|
|
895
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
895
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
|
|
896
896
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
897
897
|
__props.title ? (openBlock(), createElementBlock("h2", {
|
|
898
898
|
key: 0,
|
|
899
899
|
id: unref(titleId),
|
|
900
900
|
class: "tao-modal__title"
|
|
901
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
901
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$v)) : (openBlock(), createElementBlock("span", _hoisted_4$q))
|
|
902
902
|
], true),
|
|
903
903
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
904
904
|
key: 0,
|
|
@@ -907,12 +907,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
907
907
|
"aria-label": __props.closeLabel,
|
|
908
908
|
onClick: close
|
|
909
909
|
}, [
|
|
910
|
-
createElementVNode("span", _hoisted_6$
|
|
910
|
+
createElementVNode("span", _hoisted_6$e, [
|
|
911
911
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
912
912
|
_cache[0] || (_cache[0] = createTextVNode("×", -1))
|
|
913
913
|
], true)
|
|
914
914
|
])
|
|
915
|
-
], 8, _hoisted_5$
|
|
915
|
+
], 8, _hoisted_5$i)) : createCommentVNode("", true)
|
|
916
916
|
])) : createCommentVNode("", true),
|
|
917
917
|
createElementVNode("div", _hoisted_7$b, [
|
|
918
918
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -920,7 +920,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
920
920
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$a, [
|
|
921
921
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
922
922
|
])) : createCommentVNode("", true)
|
|
923
|
-
], 8, _hoisted_1$
|
|
923
|
+
], 8, _hoisted_1$J)
|
|
924
924
|
], 32)) : createCommentVNode("", true)
|
|
925
925
|
]),
|
|
926
926
|
_: 3
|
|
@@ -929,11 +929,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
931
|
});
|
|
932
|
-
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
933
|
-
const _hoisted_1$
|
|
934
|
-
const _hoisted_2$
|
|
935
|
-
const _hoisted_3$
|
|
936
|
-
const _sfc_main$
|
|
932
|
+
const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-102cfd66"]]);
|
|
933
|
+
const _hoisted_1$I = { class: "tao-tabs" };
|
|
934
|
+
const _hoisted_2$B = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
935
|
+
const _hoisted_3$u = ["id", "aria-labelledby"];
|
|
936
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
937
937
|
...{ name: "TaoTabs" },
|
|
938
938
|
__name: "TaoTabs",
|
|
939
939
|
props: {
|
|
@@ -997,7 +997,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
return (_ctx, _cache) => {
|
|
1000
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1000
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
1001
1001
|
createElementVNode("div", {
|
|
1002
1002
|
class: "tao-tabs__list",
|
|
1003
1003
|
role: "tablist",
|
|
@@ -1022,7 +1022,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1022
1022
|
}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1023
1023
|
createTextVNode(toDisplayString(tab.label), 1)
|
|
1024
1024
|
], 64))
|
|
1025
|
-
], 8, _hoisted_2$
|
|
1025
|
+
], 8, _hoisted_2$B);
|
|
1026
1026
|
}), 128))
|
|
1027
1027
|
], 32),
|
|
1028
1028
|
createElementVNode("div", {
|
|
@@ -1032,12 +1032,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1032
1032
|
"aria-labelledby": tabId(__props.modelValue)
|
|
1033
1033
|
}, [
|
|
1034
1034
|
renderSlot(_ctx.$slots, "default", { activeTab: __props.modelValue }, void 0, true)
|
|
1035
|
-
], 8, _hoisted_3$
|
|
1035
|
+
], 8, _hoisted_3$u)
|
|
1036
1036
|
]);
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
|
-
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1040
|
+
const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-bf16735e"]]);
|
|
1041
1041
|
function listenFocusLoss(onLoss) {
|
|
1042
1042
|
function onVisibilityChange() {
|
|
1043
1043
|
if (document.hidden) {
|
|
@@ -1053,7 +1053,7 @@ function listenFocusLoss(onLoss) {
|
|
|
1053
1053
|
window.removeEventListener("pagehide", onLoss);
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
|
-
const _sfc_main$
|
|
1056
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
1057
1057
|
...{ name: "TaoTooltip" },
|
|
1058
1058
|
__name: "TaoTooltip",
|
|
1059
1059
|
props: {
|
|
@@ -1215,9 +1215,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
1217
|
});
|
|
1218
|
-
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1219
|
-
const _hoisted_1$
|
|
1220
|
-
const _sfc_main$
|
|
1218
|
+
const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-926dfa73"]]);
|
|
1219
|
+
const _hoisted_1$H = { class: "tao-popover" };
|
|
1220
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
1221
1221
|
...{ name: "TaoPopover" },
|
|
1222
1222
|
__name: "TaoPopover",
|
|
1223
1223
|
props: {
|
|
@@ -1386,7 +1386,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1386
1386
|
unbindDismiss();
|
|
1387
1387
|
});
|
|
1388
1388
|
return (_ctx, _cache) => {
|
|
1389
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1389
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
1390
1390
|
createElementVNode("div", {
|
|
1391
1391
|
ref_key: "triggerRef",
|
|
1392
1392
|
ref: triggerRef,
|
|
@@ -1415,17 +1415,17 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
1417
|
});
|
|
1418
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1418
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-afd791a7"]]);
|
|
1419
1419
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
1420
|
-
const _hoisted_1$
|
|
1421
|
-
const _hoisted_2$
|
|
1422
|
-
const _hoisted_3$
|
|
1420
|
+
const _hoisted_1$G = { class: "tao-spoiler" };
|
|
1421
|
+
const _hoisted_2$A = ["aria-expanded", "aria-controls"];
|
|
1422
|
+
const _hoisted_3$t = {
|
|
1423
1423
|
key: 0,
|
|
1424
1424
|
class: "tao-spoiler__title"
|
|
1425
1425
|
};
|
|
1426
|
-
const _hoisted_4$
|
|
1427
|
-
const _hoisted_5$
|
|
1428
|
-
const _sfc_main$
|
|
1426
|
+
const _hoisted_4$p = ["id"];
|
|
1427
|
+
const _hoisted_5$h = { class: "tao-spoiler__content-inner" };
|
|
1428
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
1429
1429
|
...{ name: "TaoSpoiler" },
|
|
1430
1430
|
__name: "TaoSpoiler",
|
|
1431
1431
|
props: {
|
|
@@ -1480,7 +1480,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1480
1480
|
});
|
|
1481
1481
|
}
|
|
1482
1482
|
return (_ctx, _cache) => {
|
|
1483
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1483
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
1484
1484
|
createElementVNode("button", {
|
|
1485
1485
|
type: "button",
|
|
1486
1486
|
class: "tao-spoiler__header",
|
|
@@ -1491,12 +1491,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1491
1491
|
createElementVNode("span", {
|
|
1492
1492
|
class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
|
|
1493
1493
|
}, "▶", 2),
|
|
1494
|
-
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1494
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
|
|
1495
1495
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
1496
1496
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1497
1497
|
], true)
|
|
1498
1498
|
])) : createCommentVNode("", true)
|
|
1499
|
-
], 8, _hoisted_2$
|
|
1499
|
+
], 8, _hoisted_2$A),
|
|
1500
1500
|
createVNode(Transition, {
|
|
1501
1501
|
name: "tao-spoiler-slide",
|
|
1502
1502
|
onBeforeEnter,
|
|
@@ -1510,10 +1510,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1510
1510
|
id: unref(panelId),
|
|
1511
1511
|
class: "tao-spoiler__content"
|
|
1512
1512
|
}, [
|
|
1513
|
-
createElementVNode("div", _hoisted_5$
|
|
1513
|
+
createElementVNode("div", _hoisted_5$h, [
|
|
1514
1514
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1515
1515
|
])
|
|
1516
|
-
], 8, _hoisted_4$
|
|
1516
|
+
], 8, _hoisted_4$p)) : createCommentVNode("", true)
|
|
1517
1517
|
]),
|
|
1518
1518
|
_: 3
|
|
1519
1519
|
})
|
|
@@ -1521,9 +1521,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
1523
|
});
|
|
1524
|
-
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1525
|
-
const _hoisted_1$
|
|
1526
|
-
const _sfc_main$
|
|
1524
|
+
const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-ccb052cf"]]);
|
|
1525
|
+
const _hoisted_1$F = { class: "tao-spoiler-group" };
|
|
1526
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
1527
1527
|
...{ name: "TaoSpoilerGroup" },
|
|
1528
1528
|
__name: "TaoSpoilerGroup",
|
|
1529
1529
|
props: {
|
|
@@ -1548,15 +1548,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1548
1548
|
setOpen
|
|
1549
1549
|
});
|
|
1550
1550
|
return (_ctx, _cache) => {
|
|
1551
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1551
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
1552
1552
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1553
1553
|
]);
|
|
1554
1554
|
};
|
|
1555
1555
|
}
|
|
1556
1556
|
});
|
|
1557
|
-
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1558
|
-
const _hoisted_1$
|
|
1559
|
-
const _sfc_main$
|
|
1557
|
+
const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-118970dd"]]);
|
|
1558
|
+
const _hoisted_1$E = ["aria-label"];
|
|
1559
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1560
1560
|
...{ name: "TaoCopy" },
|
|
1561
1561
|
__name: "TaoCopy",
|
|
1562
1562
|
props: {
|
|
@@ -1691,7 +1691,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1691
1691
|
"stroke-width": "2"
|
|
1692
1692
|
})
|
|
1693
1693
|
], -1)
|
|
1694
|
-
])], 10, _hoisted_1$
|
|
1694
|
+
])], 10, _hoisted_1$E)
|
|
1695
1695
|
], true),
|
|
1696
1696
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
1697
1697
|
copied.value && __props.tip && __props.successMessage ? (openBlock(), createElementBlock("div", {
|
|
@@ -1707,8 +1707,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
1709
|
});
|
|
1710
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1711
|
-
const _sfc_main$
|
|
1710
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-38d3381d"]]);
|
|
1711
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1712
1712
|
...{ name: "TaoContainer" },
|
|
1713
1713
|
__name: "TaoContainer",
|
|
1714
1714
|
props: {
|
|
@@ -1725,8 +1725,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1725
1725
|
};
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
|
-
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1729
|
-
const _sfc_main$
|
|
1728
|
+
const TaoContainer = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-4c0deb90"]]);
|
|
1729
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1730
1730
|
...{ name: "TaoFlex" },
|
|
1731
1731
|
__name: "TaoFlex",
|
|
1732
1732
|
props: {
|
|
@@ -1757,7 +1757,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1757
1757
|
};
|
|
1758
1758
|
}
|
|
1759
1759
|
});
|
|
1760
|
-
const _sfc_main$
|
|
1760
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1761
1761
|
...{ name: "TaoSpace" },
|
|
1762
1762
|
__name: "TaoSpace",
|
|
1763
1763
|
props: {
|
|
@@ -1777,15 +1777,66 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1777
1777
|
};
|
|
1778
1778
|
}
|
|
1779
1779
|
});
|
|
1780
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1780
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-698ca712"]]);
|
|
1781
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1782
|
+
...{ name: "TaoGrid" },
|
|
1783
|
+
__name: "TaoGrid",
|
|
1784
|
+
props: {
|
|
1785
|
+
min: { default: "220px" },
|
|
1786
|
+
cols: { default: 0 },
|
|
1787
|
+
gap: { default: "var(--tao-space-4)" }
|
|
1788
|
+
},
|
|
1789
|
+
setup(__props) {
|
|
1790
|
+
const props = __props;
|
|
1791
|
+
const isFixed = computed(() => props.cols > 0);
|
|
1792
|
+
const gridStyle = computed(() => ({
|
|
1793
|
+
"--tao-grid-min": props.min,
|
|
1794
|
+
"--tao-grid-cols": isFixed.value ? String(props.cols) : void 0,
|
|
1795
|
+
"--tao-grid-gap": props.gap
|
|
1796
|
+
}));
|
|
1797
|
+
return (_ctx, _cache) => {
|
|
1798
|
+
return openBlock(), createElementBlock("div", {
|
|
1799
|
+
class: normalizeClass(["tao-grid", { "tao-grid--fixed": isFixed.value }]),
|
|
1800
|
+
style: normalizeStyle(gridStyle.value)
|
|
1801
|
+
}, [
|
|
1802
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1803
|
+
], 6);
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1806
|
+
});
|
|
1807
|
+
const TaoGrid = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-bd5bc452"]]);
|
|
1808
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1809
|
+
...{ name: "TaoGridItem" },
|
|
1810
|
+
__name: "TaoGridItem",
|
|
1811
|
+
props: {
|
|
1812
|
+
col: { default: 1 },
|
|
1813
|
+
row: { default: 1 }
|
|
1814
|
+
},
|
|
1815
|
+
setup(__props) {
|
|
1816
|
+
const props = __props;
|
|
1817
|
+
const itemStyle = computed(() => ({
|
|
1818
|
+
"--tao-grid-col": String(Math.max(1, props.col)),
|
|
1819
|
+
"--tao-grid-row": String(Math.max(1, props.row))
|
|
1820
|
+
}));
|
|
1821
|
+
return (_ctx, _cache) => {
|
|
1822
|
+
return openBlock(), createElementBlock("div", {
|
|
1823
|
+
class: "tao-grid-item",
|
|
1824
|
+
style: normalizeStyle(itemStyle.value)
|
|
1825
|
+
}, [
|
|
1826
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1827
|
+
], 4);
|
|
1828
|
+
};
|
|
1829
|
+
}
|
|
1830
|
+
});
|
|
1831
|
+
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-43bd1e34"]]);
|
|
1832
|
+
const _hoisted_1$D = { class: "tao-split__pane tao-split__pane--start" };
|
|
1833
|
+
const _hoisted_2$z = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
1834
|
+
const _hoisted_3$s = { class: "tao-split__pane tao-split__pane--end" };
|
|
1835
|
+
const _hoisted_4$o = {
|
|
1785
1836
|
key: 0,
|
|
1786
1837
|
class: "tao-split__shield"
|
|
1787
1838
|
};
|
|
1788
|
-
const _sfc_main$
|
|
1839
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1789
1840
|
...{ name: "TaoSplit" },
|
|
1790
1841
|
__name: "TaoSplit",
|
|
1791
1842
|
props: {
|
|
@@ -2070,7 +2121,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
2070
2121
|
]]),
|
|
2071
2122
|
style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
|
|
2072
2123
|
}, [
|
|
2073
|
-
createElementVNode("div", _hoisted_1$
|
|
2124
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
2074
2125
|
renderSlot(_ctx.$slots, "start", {}, void 0, true)
|
|
2075
2126
|
]),
|
|
2076
2127
|
createElementVNode("div", {
|
|
@@ -2093,18 +2144,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
2093
2144
|
onKeydown,
|
|
2094
2145
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
2095
2146
|
}, ["prevent"]))
|
|
2096
|
-
}, null, 40, _hoisted_2$
|
|
2097
|
-
createElementVNode("div", _hoisted_3$
|
|
2147
|
+
}, null, 40, _hoisted_2$z),
|
|
2148
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
2098
2149
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
2099
2150
|
]),
|
|
2100
|
-
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2151
|
+
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$o)) : createCommentVNode("", true)
|
|
2101
2152
|
], 6);
|
|
2102
2153
|
};
|
|
2103
2154
|
}
|
|
2104
2155
|
});
|
|
2105
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2106
|
-
const _hoisted_1$
|
|
2107
|
-
const _sfc_main$
|
|
2156
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f44196dc"]]);
|
|
2157
|
+
const _hoisted_1$C = { class: "tao-icon" };
|
|
2158
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
2108
2159
|
...{ name: "TaoIcon" },
|
|
2109
2160
|
__name: "TaoIcon",
|
|
2110
2161
|
props: {
|
|
@@ -2119,7 +2170,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
2119
2170
|
}));
|
|
2120
2171
|
const props = __props;
|
|
2121
2172
|
return (_ctx, _cache) => {
|
|
2122
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
2173
|
+
return openBlock(), createElementBlock("span", _hoisted_1$C, [
|
|
2123
2174
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
2124
2175
|
createElementVNode("i", {
|
|
2125
2176
|
class: normalizeClass(["tao-icon__value", [`icon-${props.name}`, { "tao-icon__value--invert": props.invert }]]),
|
|
@@ -2130,8 +2181,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
2130
2181
|
};
|
|
2131
2182
|
}
|
|
2132
2183
|
});
|
|
2133
|
-
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2134
|
-
const _sfc_main$
|
|
2184
|
+
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-145b2cfc"]]);
|
|
2185
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
2135
2186
|
...{ name: "TaoLoader" },
|
|
2136
2187
|
__name: "TaoLoader",
|
|
2137
2188
|
props: {
|
|
@@ -2192,11 +2243,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2192
2243
|
};
|
|
2193
2244
|
}
|
|
2194
2245
|
});
|
|
2195
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2196
|
-
const _hoisted_1$
|
|
2197
|
-
const _hoisted_2$
|
|
2198
|
-
const _hoisted_3$
|
|
2199
|
-
const _sfc_main$
|
|
2246
|
+
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-75a40018"]]);
|
|
2247
|
+
const _hoisted_1$B = { class: "tao-image" };
|
|
2248
|
+
const _hoisted_2$y = ["src", "alt", "loading"];
|
|
2249
|
+
const _hoisted_3$r = { class: "tao-image__placeholder" };
|
|
2250
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
2200
2251
|
...{ name: "TaoImage" },
|
|
2201
2252
|
__name: "TaoImage",
|
|
2202
2253
|
props: {
|
|
@@ -2227,7 +2278,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2227
2278
|
hasError.value = false;
|
|
2228
2279
|
});
|
|
2229
2280
|
return (_ctx, _cache) => {
|
|
2230
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2281
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
2231
2282
|
__props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
|
|
2232
2283
|
key: 0,
|
|
2233
2284
|
class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
|
|
@@ -2238,26 +2289,26 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2238
2289
|
draggable: "false",
|
|
2239
2290
|
onLoad: handleLoad,
|
|
2240
2291
|
onError: handleError
|
|
2241
|
-
}, null, 42, _hoisted_2$
|
|
2292
|
+
}, null, 42, _hoisted_2$y)) : createCommentVNode("", true),
|
|
2242
2293
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2243
|
-
createElementVNode("div", _hoisted_3$
|
|
2294
|
+
createElementVNode("div", _hoisted_3$r, toDisplayString(__props.placeholderText), 1)
|
|
2244
2295
|
], true, 1) : createCommentVNode("", true)
|
|
2245
2296
|
]);
|
|
2246
2297
|
};
|
|
2247
2298
|
}
|
|
2248
2299
|
});
|
|
2249
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2250
|
-
const _hoisted_1$
|
|
2251
|
-
const _hoisted_2$
|
|
2252
|
-
const _hoisted_3$
|
|
2300
|
+
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-aea39025"]]);
|
|
2301
|
+
const _hoisted_1$A = ["for"];
|
|
2302
|
+
const _hoisted_2$x = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
2303
|
+
const _hoisted_3$q = {
|
|
2253
2304
|
key: 0,
|
|
2254
2305
|
class: "tao-checkbox__label"
|
|
2255
2306
|
};
|
|
2256
|
-
const _hoisted_4$
|
|
2307
|
+
const _hoisted_4$n = {
|
|
2257
2308
|
key: 1,
|
|
2258
2309
|
class: "tao-checkbox__label"
|
|
2259
2310
|
};
|
|
2260
|
-
const _sfc_main$
|
|
2311
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2261
2312
|
...{ name: "TaoCheckbox" },
|
|
2262
2313
|
__name: "TaoCheckbox",
|
|
2263
2314
|
props: {
|
|
@@ -2327,25 +2378,25 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
2327
2378
|
"aria-invalid": invalid.value || void 0,
|
|
2328
2379
|
"aria-describedby": describedBy.value,
|
|
2329
2380
|
onChange: onInputChange
|
|
2330
|
-
}, null, 40, _hoisted_2$
|
|
2381
|
+
}, null, 40, _hoisted_2$x),
|
|
2331
2382
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
2332
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2383
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, [
|
|
2333
2384
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2334
2385
|
])),
|
|
2335
2386
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
2336
|
-
], 10, _hoisted_1$
|
|
2387
|
+
], 10, _hoisted_1$A);
|
|
2337
2388
|
};
|
|
2338
2389
|
}
|
|
2339
2390
|
});
|
|
2340
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2341
|
-
const _hoisted_1$
|
|
2391
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f6b0e565"]]);
|
|
2392
|
+
const _hoisted_1$z = {
|
|
2342
2393
|
key: 0,
|
|
2343
2394
|
class: "tao-tag__prefix"
|
|
2344
2395
|
};
|
|
2345
|
-
const _hoisted_2$
|
|
2346
|
-
const _hoisted_3$
|
|
2347
|
-
const _hoisted_4$
|
|
2348
|
-
const _sfc_main$
|
|
2396
|
+
const _hoisted_2$w = { class: "tao-tag__text" };
|
|
2397
|
+
const _hoisted_3$p = ["aria-label"];
|
|
2398
|
+
const _hoisted_4$m = { "aria-hidden": "true" };
|
|
2399
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
2349
2400
|
...{ name: "TaoTag" },
|
|
2350
2401
|
__name: "TaoTag",
|
|
2351
2402
|
props: {
|
|
@@ -2385,10 +2436,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2385
2436
|
]]),
|
|
2386
2437
|
style: normalizeStyle(style.value)
|
|
2387
2438
|
}, [
|
|
2388
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2439
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$z, [
|
|
2389
2440
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
2390
2441
|
])) : createCommentVNode("", true),
|
|
2391
|
-
createElementVNode("span", _hoisted_2$
|
|
2442
|
+
createElementVNode("span", _hoisted_2$w, [
|
|
2392
2443
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2393
2444
|
]),
|
|
2394
2445
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
@@ -2398,27 +2449,27 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2398
2449
|
"aria-label": __props.closeLabel,
|
|
2399
2450
|
onClick: withModifiers(onClose, ["stop"])
|
|
2400
2451
|
}, [
|
|
2401
|
-
createElementVNode("span", _hoisted_4$
|
|
2452
|
+
createElementVNode("span", _hoisted_4$m, [
|
|
2402
2453
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
2403
2454
|
_cache[0] || (_cache[0] = createTextVNode("✕", -1))
|
|
2404
2455
|
], true)
|
|
2405
2456
|
])
|
|
2406
|
-
], 8, _hoisted_3$
|
|
2457
|
+
], 8, _hoisted_3$p)) : createCommentVNode("", true)
|
|
2407
2458
|
], 6);
|
|
2408
2459
|
};
|
|
2409
2460
|
}
|
|
2410
2461
|
});
|
|
2411
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2412
|
-
const _hoisted_1$
|
|
2462
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-f353f529"]]);
|
|
2463
|
+
const _hoisted_1$y = {
|
|
2413
2464
|
key: 1,
|
|
2414
2465
|
class: "tao-divider-text"
|
|
2415
2466
|
};
|
|
2416
|
-
const _hoisted_2$
|
|
2417
|
-
const _hoisted_3$
|
|
2467
|
+
const _hoisted_2$v = { class: "tao-divider-text__value" };
|
|
2468
|
+
const _hoisted_3$o = {
|
|
2418
2469
|
key: 2,
|
|
2419
2470
|
class: "tao-divider-line"
|
|
2420
2471
|
};
|
|
2421
|
-
const _sfc_main$
|
|
2472
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
2422
2473
|
...{ name: "TaoDivider" },
|
|
2423
2474
|
__name: "TaoDivider",
|
|
2424
2475
|
props: {
|
|
@@ -2432,23 +2483,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2432
2483
|
return __props.variant === "gap" ? (openBlock(), createElementBlock("div", {
|
|
2433
2484
|
key: 0,
|
|
2434
2485
|
class: normalizeClass(["tao-divider-gap", `tao-divider-gap--${gapSize.value}`])
|
|
2435
|
-
}, null, 2)) : __props.variant === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2486
|
+
}, null, 2)) : __props.variant === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
2436
2487
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-divider-text__line tao-divider-text__line--left" }, null, -1)),
|
|
2437
|
-
createElementVNode("span", _hoisted_2$
|
|
2488
|
+
createElementVNode("span", _hoisted_2$v, [
|
|
2438
2489
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2439
2490
|
]),
|
|
2440
2491
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "tao-divider-text__line tao-divider-text__line--right" }, null, -1))
|
|
2441
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2492
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$o));
|
|
2442
2493
|
};
|
|
2443
2494
|
}
|
|
2444
2495
|
});
|
|
2445
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2446
|
-
const _hoisted_1$
|
|
2496
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-8187a15d"]]);
|
|
2497
|
+
const _hoisted_1$x = {
|
|
2447
2498
|
key: 0,
|
|
2448
2499
|
class: "tao-fieldset__legend"
|
|
2449
2500
|
};
|
|
2450
|
-
const _hoisted_2$
|
|
2451
|
-
const _sfc_main$
|
|
2501
|
+
const _hoisted_2$u = { class: "tao-fieldset__body" };
|
|
2502
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
2452
2503
|
...{ name: "TaoFieldset" },
|
|
2453
2504
|
__name: "TaoFieldset",
|
|
2454
2505
|
props: {
|
|
@@ -2460,20 +2511,20 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2460
2511
|
return openBlock(), createElementBlock("fieldset", {
|
|
2461
2512
|
class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
|
|
2462
2513
|
}, [
|
|
2463
|
-
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
2514
|
+
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$x, [
|
|
2464
2515
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
2465
2516
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
2466
2517
|
], true)
|
|
2467
2518
|
])) : createCommentVNode("", true),
|
|
2468
|
-
createElementVNode("div", _hoisted_2$
|
|
2519
|
+
createElementVNode("div", _hoisted_2$u, [
|
|
2469
2520
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2470
2521
|
])
|
|
2471
2522
|
], 2);
|
|
2472
2523
|
};
|
|
2473
2524
|
}
|
|
2474
2525
|
});
|
|
2475
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2476
|
-
const _sfc_main$
|
|
2526
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-34440ba5"]]);
|
|
2527
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
2477
2528
|
...{ name: "TaoAnimatedBorder" },
|
|
2478
2529
|
__name: "TaoAnimatedBorder",
|
|
2479
2530
|
props: {
|
|
@@ -2497,18 +2548,18 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2497
2548
|
};
|
|
2498
2549
|
}
|
|
2499
2550
|
});
|
|
2500
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2501
|
-
const _hoisted_1$
|
|
2551
|
+
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-f1534571"]]);
|
|
2552
|
+
const _hoisted_1$w = {
|
|
2502
2553
|
key: 0,
|
|
2503
2554
|
class: "tao-textarea tao-textarea--dummy"
|
|
2504
2555
|
};
|
|
2505
|
-
const _hoisted_2$
|
|
2556
|
+
const _hoisted_2$t = {
|
|
2506
2557
|
key: 1,
|
|
2507
2558
|
class: "tao-textarea-wrap"
|
|
2508
2559
|
};
|
|
2509
|
-
const _hoisted_3$
|
|
2510
|
-
const _hoisted_4$
|
|
2511
|
-
const _sfc_main$
|
|
2560
|
+
const _hoisted_3$n = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "rows", "value", "aria-invalid", "aria-describedby"];
|
|
2561
|
+
const _hoisted_4$l = ["id"];
|
|
2562
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
2512
2563
|
...{ name: "TaoTextarea" },
|
|
2513
2564
|
__name: "TaoTextarea",
|
|
2514
2565
|
props: {
|
|
@@ -2605,7 +2656,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2605
2656
|
nextTick(autoResize);
|
|
2606
2657
|
});
|
|
2607
2658
|
return (_ctx, _cache) => {
|
|
2608
|
-
return __props.dummy ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2659
|
+
return __props.dummy ? (openBlock(), createElementBlock("span", _hoisted_1$w, toDisplayString(__props.modelValue), 1)) : (openBlock(), createElementBlock("div", _hoisted_2$t, [
|
|
2609
2660
|
createElementVNode("textarea", {
|
|
2610
2661
|
id: controlId.value,
|
|
2611
2662
|
ref_key: "textareaRef",
|
|
@@ -2634,21 +2685,21 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2634
2685
|
onFocus,
|
|
2635
2686
|
onBlur,
|
|
2636
2687
|
onKeydown
|
|
2637
|
-
}, null, 42, _hoisted_3$
|
|
2688
|
+
}, null, 42, _hoisted_3$n),
|
|
2638
2689
|
__props.count ? (openBlock(), createElementBlock("span", {
|
|
2639
2690
|
key: 0,
|
|
2640
2691
|
id: counterId.value,
|
|
2641
2692
|
class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
|
|
2642
|
-
}, toDisplayString(countLabel.value), 11, _hoisted_4$
|
|
2693
|
+
}, toDisplayString(countLabel.value), 11, _hoisted_4$l)) : createCommentVNode("", true)
|
|
2643
2694
|
]));
|
|
2644
2695
|
};
|
|
2645
2696
|
}
|
|
2646
2697
|
});
|
|
2647
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2648
|
-
const _hoisted_1$
|
|
2649
|
-
const _hoisted_2$
|
|
2698
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2534c0c4"]]);
|
|
2699
|
+
const _hoisted_1$v = ["tabindex", "aria-label"];
|
|
2700
|
+
const _hoisted_2$s = { class: "tao-scroll-top__content" };
|
|
2650
2701
|
const RIPPLE_DURATION = 750;
|
|
2651
|
-
const _sfc_main$
|
|
2702
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2652
2703
|
...{ name: "TaoScrollTop" },
|
|
2653
2704
|
__name: "TaoScrollTop",
|
|
2654
2705
|
props: {
|
|
@@ -2749,7 +2800,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2749
2800
|
"aria-label": props.ariaLabel,
|
|
2750
2801
|
onClick: withModifiers(onClick, ["prevent"])
|
|
2751
2802
|
}, [
|
|
2752
|
-
createElementVNode("div", _hoisted_2$
|
|
2803
|
+
createElementVNode("div", _hoisted_2$s, [
|
|
2753
2804
|
createElementVNode("div", {
|
|
2754
2805
|
class: normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
|
|
2755
2806
|
style: normalizeStyle(rippleStyle)
|
|
@@ -2766,33 +2817,33 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2766
2817
|
], -1))
|
|
2767
2818
|
], true)
|
|
2768
2819
|
])
|
|
2769
|
-
], 14, _hoisted_1$
|
|
2820
|
+
], 14, _hoisted_1$v)) : createCommentVNode("", true)
|
|
2770
2821
|
]),
|
|
2771
2822
|
_: 3
|
|
2772
2823
|
});
|
|
2773
2824
|
};
|
|
2774
2825
|
}
|
|
2775
2826
|
});
|
|
2776
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2777
|
-
const _hoisted_1$
|
|
2778
|
-
const _hoisted_2$
|
|
2827
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-59678649"]]);
|
|
2828
|
+
const _hoisted_1$u = { class: "tao-progress" };
|
|
2829
|
+
const _hoisted_2$r = {
|
|
2779
2830
|
key: 0,
|
|
2780
2831
|
class: "tao-progress__side"
|
|
2781
2832
|
};
|
|
2782
|
-
const _hoisted_3$
|
|
2783
|
-
const _hoisted_4$
|
|
2833
|
+
const _hoisted_3$m = { class: "tao-progress__main" };
|
|
2834
|
+
const _hoisted_4$k = {
|
|
2784
2835
|
key: 0,
|
|
2785
2836
|
class: "tao-progress__percentage"
|
|
2786
2837
|
};
|
|
2787
|
-
const _hoisted_5$
|
|
2838
|
+
const _hoisted_5$g = {
|
|
2788
2839
|
key: 1,
|
|
2789
2840
|
class: "tao-progress__side"
|
|
2790
2841
|
};
|
|
2791
|
-
const _hoisted_6$
|
|
2842
|
+
const _hoisted_6$d = {
|
|
2792
2843
|
key: 0,
|
|
2793
2844
|
class: "tao-progress__percentage"
|
|
2794
2845
|
};
|
|
2795
|
-
const _sfc_main$
|
|
2846
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2796
2847
|
...{ name: "TaoProgress" },
|
|
2797
2848
|
__name: "TaoProgress",
|
|
2798
2849
|
props: {
|
|
@@ -2823,16 +2874,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2823
2874
|
() => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
|
|
2824
2875
|
);
|
|
2825
2876
|
return (_ctx, _cache) => {
|
|
2826
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2877
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
2827
2878
|
createElementVNode("div", {
|
|
2828
2879
|
class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
|
|
2829
2880
|
style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
|
|
2830
2881
|
}, [
|
|
2831
|
-
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2882
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
2832
2883
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
2833
2884
|
])) : createCommentVNode("", true),
|
|
2834
|
-
createElementVNode("div", _hoisted_3$
|
|
2835
|
-
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2885
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
2886
|
+
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
2836
2887
|
createElementVNode("div", {
|
|
2837
2888
|
class: "tao-progress__track",
|
|
2838
2889
|
style: normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -2843,23 +2894,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2843
2894
|
}, null, 6)
|
|
2844
2895
|
], 4)
|
|
2845
2896
|
]),
|
|
2846
|
-
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2897
|
+
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
2847
2898
|
renderSlot(_ctx.$slots, "right", {}, void 0, true),
|
|
2848
|
-
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2899
|
+
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(endPercentLabel.value), 1)) : createCommentVNode("", true)
|
|
2849
2900
|
])) : createCommentVNode("", true)
|
|
2850
2901
|
], 6)
|
|
2851
2902
|
]);
|
|
2852
2903
|
};
|
|
2853
2904
|
}
|
|
2854
2905
|
});
|
|
2855
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2856
|
-
const _hoisted_1$
|
|
2857
|
-
const _hoisted_2$
|
|
2858
|
-
const _hoisted_3$
|
|
2906
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-54c13718"]]);
|
|
2907
|
+
const _hoisted_1$t = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-describedby"];
|
|
2908
|
+
const _hoisted_2$q = ["placeholder"];
|
|
2909
|
+
const _hoisted_3$l = {
|
|
2859
2910
|
key: 1,
|
|
2860
2911
|
class: "tao-slider__value"
|
|
2861
2912
|
};
|
|
2862
|
-
const _sfc_main$
|
|
2913
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2863
2914
|
...{ name: "TaoSlider" },
|
|
2864
2915
|
__name: "TaoSlider",
|
|
2865
2916
|
props: {
|
|
@@ -3076,24 +3127,24 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3076
3127
|
onKeydown: onShadowKeydown,
|
|
3077
3128
|
onPointerdown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
3078
3129
|
}, ["stop"]))
|
|
3079
|
-
}, null, 40, _hoisted_2$
|
|
3130
|
+
}, null, 40, _hoisted_2$q)), [
|
|
3080
3131
|
[vModelText, shadowModel.value]
|
|
3081
|
-
]) : __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3132
|
+
]) : __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$l, [
|
|
3082
3133
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
3083
3134
|
createTextVNode(toDisplayString(__props.modelValue), 1),
|
|
3084
3135
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
3085
3136
|
])) : createCommentVNode("", true)
|
|
3086
|
-
], 42, _hoisted_1$
|
|
3137
|
+
], 42, _hoisted_1$t);
|
|
3087
3138
|
};
|
|
3088
3139
|
}
|
|
3089
3140
|
});
|
|
3090
|
-
const TaoSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3091
|
-
const _hoisted_1$
|
|
3092
|
-
const _hoisted_2$
|
|
3093
|
-
const _hoisted_3$
|
|
3094
|
-
const _hoisted_4$
|
|
3095
|
-
const _hoisted_5$
|
|
3096
|
-
const _hoisted_6$
|
|
3141
|
+
const TaoSlider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-24a38782"]]);
|
|
3142
|
+
const _hoisted_1$s = { class: "tao-file-drop" };
|
|
3143
|
+
const _hoisted_2$p = { class: "tao-file-drop__row" };
|
|
3144
|
+
const _hoisted_3$k = ["aria-label"];
|
|
3145
|
+
const _hoisted_4$j = { "aria-hidden": "true" };
|
|
3146
|
+
const _hoisted_5$f = ["accept", "multiple"];
|
|
3147
|
+
const _hoisted_6$c = {
|
|
3097
3148
|
key: 0,
|
|
3098
3149
|
class: "tao-file-drop__list"
|
|
3099
3150
|
};
|
|
@@ -3101,7 +3152,7 @@ const _hoisted_7$a = { class: "tao-file-drop__name" };
|
|
|
3101
3152
|
const _hoisted_8$9 = { class: "tao-file-drop__meta" };
|
|
3102
3153
|
const _hoisted_9$4 = ["aria-label", "onClick"];
|
|
3103
3154
|
const _hoisted_10$4 = { "aria-hidden": "true" };
|
|
3104
|
-
const _sfc_main$
|
|
3155
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
3105
3156
|
...{ name: "TaoFileDrop" },
|
|
3106
3157
|
__name: "TaoFileDrop",
|
|
3107
3158
|
props: {
|
|
@@ -3232,8 +3283,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3232
3283
|
});
|
|
3233
3284
|
onBeforeUnmount(() => stopFocusLoss == null ? void 0 : stopFocusLoss());
|
|
3234
3285
|
return (_ctx, _cache) => {
|
|
3235
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3236
|
-
createElementVNode("div", _hoisted_2$
|
|
3286
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
3287
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
3237
3288
|
__props.showClear && __props.modelValue.length ? (openBlock(), createElementBlock("button", {
|
|
3238
3289
|
key: 0,
|
|
3239
3290
|
type: "button",
|
|
@@ -3241,12 +3292,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3241
3292
|
"aria-label": __props.clearLabel,
|
|
3242
3293
|
onClick: requestClear
|
|
3243
3294
|
}, [
|
|
3244
|
-
createElementVNode("span", _hoisted_4$
|
|
3295
|
+
createElementVNode("span", _hoisted_4$j, [
|
|
3245
3296
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
3246
3297
|
_cache[1] || (_cache[1] = createTextVNode("✕", -1))
|
|
3247
3298
|
], true)
|
|
3248
3299
|
])
|
|
3249
|
-
], 8, _hoisted_3$
|
|
3300
|
+
], 8, _hoisted_3$k)) : createCommentVNode("", true),
|
|
3250
3301
|
createElementVNode("label", {
|
|
3251
3302
|
class: normalizeClass(["tao-file-drop__zone", [`tao-file-drop__zone--${__props.size}`, { "tao-file-drop__zone--dragging": isDragging.value }]]),
|
|
3252
3303
|
onDragover: handleDragOver,
|
|
@@ -3266,10 +3317,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3266
3317
|
onChange: handleFileSelect,
|
|
3267
3318
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
3268
3319
|
}, ["stop"]))
|
|
3269
|
-
}, null, 40, _hoisted_5$
|
|
3320
|
+
}, null, 40, _hoisted_5$f)
|
|
3270
3321
|
], 34)
|
|
3271
3322
|
]),
|
|
3272
|
-
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
3323
|
+
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_6$c, [
|
|
3273
3324
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
3274
3325
|
return openBlock(), createElementBlock("li", {
|
|
3275
3326
|
key: fileKey(file, index),
|
|
@@ -3296,15 +3347,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3296
3347
|
};
|
|
3297
3348
|
}
|
|
3298
3349
|
});
|
|
3299
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3300
|
-
const _hoisted_1$
|
|
3301
|
-
const _hoisted_2$
|
|
3350
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-4b36e2a3"]]);
|
|
3351
|
+
const _hoisted_1$r = ["aria-expanded", "aria-label"];
|
|
3352
|
+
const _hoisted_2$o = {
|
|
3302
3353
|
key: 1,
|
|
3303
3354
|
"aria-hidden": "true"
|
|
3304
3355
|
};
|
|
3305
|
-
const _hoisted_3$
|
|
3306
|
-
const _hoisted_4$
|
|
3307
|
-
const _sfc_main$
|
|
3356
|
+
const _hoisted_3$j = ["onClick", "onMouseenter"];
|
|
3357
|
+
const _hoisted_4$i = { key: 1 };
|
|
3358
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
3308
3359
|
...{ name: "TaoDropdownMenu" },
|
|
3309
3360
|
__name: "TaoDropdownMenu",
|
|
3310
3361
|
props: {
|
|
@@ -3441,12 +3492,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3441
3492
|
"aria-label": _ctx.$slots.button ? void 0 : __props.menuLabel,
|
|
3442
3493
|
onClick: toggleMenu
|
|
3443
3494
|
}, [
|
|
3444
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3495
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
3445
3496
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3446
3497
|
_cache[0] || (_cache[0] = createTextVNode("⋮", -1))
|
|
3447
3498
|
], true)
|
|
3448
3499
|
]))
|
|
3449
|
-
], 8, _hoisted_1$
|
|
3500
|
+
], 8, _hoisted_1$r),
|
|
3450
3501
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3451
3502
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
3452
3503
|
key: 0,
|
|
@@ -3471,8 +3522,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3471
3522
|
id: action.id,
|
|
3472
3523
|
ico: action.ico,
|
|
3473
3524
|
text: action.name
|
|
3474
|
-
}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
3475
|
-
], 42, _hoisted_3$
|
|
3525
|
+
}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString(action.name), 1))
|
|
3526
|
+
], 42, _hoisted_3$j);
|
|
3476
3527
|
}), 128))
|
|
3477
3528
|
], 36)) : createCommentVNode("", true)
|
|
3478
3529
|
]))
|
|
@@ -3480,10 +3531,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3480
3531
|
};
|
|
3481
3532
|
}
|
|
3482
3533
|
});
|
|
3483
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3484
|
-
const _hoisted_1$
|
|
3485
|
-
const _hoisted_2$
|
|
3486
|
-
const _sfc_main$
|
|
3534
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-cbfa7294"]]);
|
|
3535
|
+
const _hoisted_1$q = ["aria-invalid", "aria-describedby"];
|
|
3536
|
+
const _hoisted_2$n = ["id", "value", "placeholder", "type", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
3537
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
3487
3538
|
...{ name: "TaoPinCode" },
|
|
3488
3539
|
__name: "TaoPinCode",
|
|
3489
3540
|
props: {
|
|
@@ -3692,14 +3743,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3692
3743
|
onKeydown: ($event) => onKeydown($event, index),
|
|
3693
3744
|
onFocus: ($event) => onFocus(index),
|
|
3694
3745
|
onBlur
|
|
3695
|
-
}, null, 42, _hoisted_2$
|
|
3746
|
+
}, null, 42, _hoisted_2$n);
|
|
3696
3747
|
}), 128))
|
|
3697
|
-
], 8, _hoisted_1$
|
|
3748
|
+
], 8, _hoisted_1$q);
|
|
3698
3749
|
};
|
|
3699
3750
|
}
|
|
3700
3751
|
});
|
|
3701
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3702
|
-
const _sfc_main$
|
|
3752
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-44474500"]]);
|
|
3753
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
3703
3754
|
...{ name: "TaoLink" },
|
|
3704
3755
|
__name: "TaoLink",
|
|
3705
3756
|
props: {
|
|
@@ -3741,8 +3792,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3741
3792
|
};
|
|
3742
3793
|
}
|
|
3743
3794
|
});
|
|
3744
|
-
const _hoisted_1$
|
|
3745
|
-
const _sfc_main$
|
|
3795
|
+
const _hoisted_1$p = ["for"];
|
|
3796
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
3746
3797
|
...{ name: "TaoFormField" },
|
|
3747
3798
|
__name: "TaoFormField",
|
|
3748
3799
|
props: {
|
|
@@ -3792,7 +3843,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3792
3843
|
class: "tao-form-field__label",
|
|
3793
3844
|
for: unref(id),
|
|
3794
3845
|
onClick: onLabelClick
|
|
3795
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
3846
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$p)) : createCommentVNode("", true),
|
|
3796
3847
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
3797
3848
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
3798
3849
|
key: 1,
|
|
@@ -3807,12 +3858,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3807
3858
|
};
|
|
3808
3859
|
}
|
|
3809
3860
|
});
|
|
3810
|
-
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3811
|
-
const _hoisted_1$
|
|
3812
|
-
const _hoisted_2$
|
|
3813
|
-
const _hoisted_3$
|
|
3814
|
-
const _hoisted_4$
|
|
3815
|
-
const _sfc_main$
|
|
3861
|
+
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-edd0be31"]]);
|
|
3862
|
+
const _hoisted_1$o = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
3863
|
+
const _hoisted_2$m = { class: "tao-select__value" };
|
|
3864
|
+
const _hoisted_3$i = ["aria-activedescendant"];
|
|
3865
|
+
const _hoisted_4$h = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
3866
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3816
3867
|
...{ name: "TaoSelect" },
|
|
3817
3868
|
__name: "TaoSelect",
|
|
3818
3869
|
props: {
|
|
@@ -4030,14 +4081,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
4030
4081
|
onClick: toggle,
|
|
4031
4082
|
onKeydown: onTriggerKeydown
|
|
4032
4083
|
}, [
|
|
4033
|
-
createElementVNode("span", _hoisted_2$
|
|
4084
|
+
createElementVNode("span", _hoisted_2$m, toDisplayString(((_a = selected.value) == null ? void 0 : _a.label) ?? __props.placeholder), 1),
|
|
4034
4085
|
createElementVNode("span", {
|
|
4035
4086
|
class: normalizeClass(["tao-select__chevron", { "tao-select__chevron--custom": _ctx.$slots.chevron }]),
|
|
4036
4087
|
"aria-hidden": "true"
|
|
4037
4088
|
}, [
|
|
4038
4089
|
renderSlot(_ctx.$slots, "chevron", {}, void 0, true)
|
|
4039
4090
|
], 2)
|
|
4040
|
-
], 42, _hoisted_1$
|
|
4091
|
+
], 42, _hoisted_1$o),
|
|
4041
4092
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4042
4093
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
4043
4094
|
key: 0,
|
|
@@ -4073,9 +4124,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
4073
4124
|
}, ["prevent"])),
|
|
4074
4125
|
onClick: ($event) => selectOption(option),
|
|
4075
4126
|
onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
|
|
4076
|
-
}, toDisplayString(option.label), 43, _hoisted_4$
|
|
4127
|
+
}, toDisplayString(option.label), 43, _hoisted_4$h);
|
|
4077
4128
|
}), 128))
|
|
4078
|
-
], 40, _hoisted_3$
|
|
4129
|
+
], 40, _hoisted_3$i),
|
|
4079
4130
|
selected.value ? (openBlock(), createElementBlock("button", {
|
|
4080
4131
|
key: 0,
|
|
4081
4132
|
type: "button",
|
|
@@ -4094,14 +4145,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
4094
4145
|
};
|
|
4095
4146
|
}
|
|
4096
4147
|
});
|
|
4097
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4098
|
-
const _hoisted_1$
|
|
4099
|
-
const _hoisted_2$
|
|
4148
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-d9b336d8"]]);
|
|
4149
|
+
const _hoisted_1$n = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
4150
|
+
const _hoisted_2$l = {
|
|
4100
4151
|
key: 0,
|
|
4101
4152
|
class: "tao-combobox__empty"
|
|
4102
4153
|
};
|
|
4103
|
-
const _hoisted_3$
|
|
4104
|
-
const _sfc_main$
|
|
4154
|
+
const _hoisted_3$h = ["id", "aria-selected", "aria-disabled", "data-tao-combobox-index", "onClick", "onMouseenter"];
|
|
4155
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
4105
4156
|
...{ name: "TaoCombobox" },
|
|
4106
4157
|
__name: "TaoCombobox",
|
|
4107
4158
|
props: {
|
|
@@ -4522,7 +4573,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4522
4573
|
onFocus,
|
|
4523
4574
|
onBlur,
|
|
4524
4575
|
onKeydown: onInputKeydown
|
|
4525
|
-
}, null, 40, _hoisted_1$
|
|
4576
|
+
}, null, 40, _hoisted_1$n),
|
|
4526
4577
|
createElementVNode("span", {
|
|
4527
4578
|
class: normalizeClass(["tao-combobox__chevron", { "tao-combobox__chevron--custom": _ctx.$slots.chevron }]),
|
|
4528
4579
|
"aria-hidden": "true"
|
|
@@ -4545,7 +4596,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4545
4596
|
class: "tao-combobox__list",
|
|
4546
4597
|
role: "listbox"
|
|
4547
4598
|
}, [
|
|
4548
|
-
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$
|
|
4599
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$l, [
|
|
4549
4600
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
4550
4601
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
4551
4602
|
], true)
|
|
@@ -4575,7 +4626,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4575
4626
|
], true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4576
4627
|
createTextVNode(toDisplayString(row.option.label), 1)
|
|
4577
4628
|
], 64))
|
|
4578
|
-
], 42, _hoisted_3$
|
|
4629
|
+
], 42, _hoisted_3$h);
|
|
4579
4630
|
}), 128))
|
|
4580
4631
|
], 512),
|
|
4581
4632
|
selected.value ? (openBlock(), createElementBlock("button", {
|
|
@@ -4595,7 +4646,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4595
4646
|
};
|
|
4596
4647
|
}
|
|
4597
4648
|
});
|
|
4598
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4649
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-131d254d"]]);
|
|
4599
4650
|
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
4600
4651
|
function formatTaoDateIso(parts) {
|
|
4601
4652
|
return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
|
|
@@ -4738,15 +4789,15 @@ function buildTaoDateGrid(year, month) {
|
|
|
4738
4789
|
};
|
|
4739
4790
|
});
|
|
4740
4791
|
}
|
|
4741
|
-
const _hoisted_1$
|
|
4742
|
-
const _hoisted_2$
|
|
4743
|
-
const _hoisted_3$
|
|
4792
|
+
const _hoisted_1$m = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
4793
|
+
const _hoisted_2$k = { class: "tao-date__value" };
|
|
4794
|
+
const _hoisted_3$g = {
|
|
4744
4795
|
class: "tao-date__icon",
|
|
4745
4796
|
"aria-hidden": "true"
|
|
4746
4797
|
};
|
|
4747
|
-
const _hoisted_4$
|
|
4748
|
-
const _hoisted_5$
|
|
4749
|
-
const _hoisted_6$
|
|
4798
|
+
const _hoisted_4$g = ["aria-label"];
|
|
4799
|
+
const _hoisted_5$e = { class: "tao-date__header" };
|
|
4800
|
+
const _hoisted_6$b = ["aria-label"];
|
|
4750
4801
|
const _hoisted_7$9 = { "aria-hidden": "true" };
|
|
4751
4802
|
const _hoisted_8$8 = { class: "tao-date__month" };
|
|
4752
4803
|
const _hoisted_9$3 = ["aria-label"];
|
|
@@ -4762,7 +4813,7 @@ const _hoisted_12$1 = {
|
|
|
4762
4813
|
const _hoisted_13$1 = ["aria-label", "aria-selected", "disabled", "onClick"];
|
|
4763
4814
|
const _hoisted_14$1 = { class: "tao-date__footer" };
|
|
4764
4815
|
const _hoisted_15 = ["disabled"];
|
|
4765
|
-
const _sfc_main$
|
|
4816
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
4766
4817
|
...{ name: "TaoDate" },
|
|
4767
4818
|
__name: "TaoDate",
|
|
4768
4819
|
props: {
|
|
@@ -4991,8 +5042,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4991
5042
|
onClick: toggle,
|
|
4992
5043
|
onKeydown: onTriggerKeydown
|
|
4993
5044
|
}, [
|
|
4994
|
-
createElementVNode("span", _hoisted_2$
|
|
4995
|
-
createElementVNode("span", _hoisted_3$
|
|
5045
|
+
createElementVNode("span", _hoisted_2$k, toDisplayString(displayLabel.value || __props.placeholder), 1),
|
|
5046
|
+
createElementVNode("span", _hoisted_3$g, [
|
|
4996
5047
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4997
5048
|
_cache[4] || (_cache[4] = createElementVNode("svg", {
|
|
4998
5049
|
viewBox: "0 0 16 16",
|
|
@@ -5020,7 +5071,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5020
5071
|
], -1))
|
|
5021
5072
|
], true)
|
|
5022
5073
|
])
|
|
5023
|
-
], 42, _hoisted_1$
|
|
5074
|
+
], 42, _hoisted_1$m),
|
|
5024
5075
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5025
5076
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
5026
5077
|
key: 0,
|
|
@@ -5034,7 +5085,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5034
5085
|
style: normalizeStyle(panelStyle.value),
|
|
5035
5086
|
onKeydown: onPanelKeydown
|
|
5036
5087
|
}, [
|
|
5037
|
-
createElementVNode("div", _hoisted_5$
|
|
5088
|
+
createElementVNode("div", _hoisted_5$e, [
|
|
5038
5089
|
createElementVNode("button", {
|
|
5039
5090
|
type: "button",
|
|
5040
5091
|
class: "tao-date__nav",
|
|
@@ -5060,7 +5111,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5060
5111
|
], -1))
|
|
5061
5112
|
], true)
|
|
5062
5113
|
])
|
|
5063
|
-
], 8, _hoisted_6$
|
|
5114
|
+
], 8, _hoisted_6$b),
|
|
5064
5115
|
createElementVNode("p", _hoisted_8$8, toDisplayString(monthLabel.value), 1),
|
|
5065
5116
|
createElementVNode("button", {
|
|
5066
5117
|
type: "button",
|
|
@@ -5138,22 +5189,22 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5138
5189
|
], true)
|
|
5139
5190
|
])) : createCommentVNode("", true)
|
|
5140
5191
|
])
|
|
5141
|
-
], 44, _hoisted_4$
|
|
5192
|
+
], 44, _hoisted_4$g)) : createCommentVNode("", true)
|
|
5142
5193
|
]))
|
|
5143
5194
|
], 2);
|
|
5144
5195
|
};
|
|
5145
5196
|
}
|
|
5146
5197
|
});
|
|
5147
|
-
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5148
|
-
const _hoisted_1$
|
|
5149
|
-
const _hoisted_2$
|
|
5150
|
-
const _hoisted_3$
|
|
5198
|
+
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ebd437a8"]]);
|
|
5199
|
+
const _hoisted_1$l = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
5200
|
+
const _hoisted_2$j = { class: "tao-date-range__value" };
|
|
5201
|
+
const _hoisted_3$f = {
|
|
5151
5202
|
class: "tao-date-range__icon",
|
|
5152
5203
|
"aria-hidden": "true"
|
|
5153
5204
|
};
|
|
5154
|
-
const _hoisted_4$
|
|
5155
|
-
const _hoisted_5$
|
|
5156
|
-
const _hoisted_6$
|
|
5205
|
+
const _hoisted_4$f = ["aria-label"];
|
|
5206
|
+
const _hoisted_5$d = { class: "tao-date__header" };
|
|
5207
|
+
const _hoisted_6$a = ["aria-label"];
|
|
5157
5208
|
const _hoisted_7$8 = { "aria-hidden": "true" };
|
|
5158
5209
|
const _hoisted_8$7 = { class: "tao-date__month" };
|
|
5159
5210
|
const _hoisted_9$2 = ["aria-label"];
|
|
@@ -5165,7 +5216,7 @@ const _hoisted_11$1 = {
|
|
|
5165
5216
|
const _hoisted_12 = ["aria-label", "aria-selected", "disabled", "onMouseenter", "onClick"];
|
|
5166
5217
|
const _hoisted_13 = { class: "tao-date__footer" };
|
|
5167
5218
|
const _hoisted_14 = ["disabled"];
|
|
5168
|
-
const _sfc_main$
|
|
5219
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
5169
5220
|
...{ name: "TaoDateRange" },
|
|
5170
5221
|
__name: "TaoDateRange",
|
|
5171
5222
|
props: {
|
|
@@ -5448,8 +5499,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5448
5499
|
onClick: toggle,
|
|
5449
5500
|
onKeydown: onTriggerKeydown
|
|
5450
5501
|
}, [
|
|
5451
|
-
createElementVNode("span", _hoisted_2$
|
|
5452
|
-
createElementVNode("span", _hoisted_3$
|
|
5502
|
+
createElementVNode("span", _hoisted_2$j, toDisplayString(displayLabel.value || __props.placeholder), 1),
|
|
5503
|
+
createElementVNode("span", _hoisted_3$f, [
|
|
5453
5504
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5454
5505
|
_cache[3] || (_cache[3] = createElementVNode("svg", {
|
|
5455
5506
|
viewBox: "0 0 16 16",
|
|
@@ -5477,7 +5528,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5477
5528
|
], -1))
|
|
5478
5529
|
], true)
|
|
5479
5530
|
])
|
|
5480
|
-
], 42, _hoisted_1$
|
|
5531
|
+
], 42, _hoisted_1$l),
|
|
5481
5532
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5482
5533
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
5483
5534
|
key: 0,
|
|
@@ -5491,7 +5542,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5491
5542
|
style: normalizeStyle(panelStyle.value),
|
|
5492
5543
|
onKeydown: onPanelKeydown
|
|
5493
5544
|
}, [
|
|
5494
|
-
createElementVNode("div", _hoisted_5$
|
|
5545
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
5495
5546
|
createElementVNode("button", {
|
|
5496
5547
|
type: "button",
|
|
5497
5548
|
class: "tao-date__nav",
|
|
@@ -5517,7 +5568,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5517
5568
|
], -1))
|
|
5518
5569
|
], true)
|
|
5519
5570
|
])
|
|
5520
|
-
], 8, _hoisted_6$
|
|
5571
|
+
], 8, _hoisted_6$a),
|
|
5521
5572
|
createElementVNode("p", _hoisted_8$7, toDisplayString(monthLabel.value), 1),
|
|
5522
5573
|
createElementVNode("button", {
|
|
5523
5574
|
type: "button",
|
|
@@ -5604,24 +5655,24 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5604
5655
|
], true)
|
|
5605
5656
|
])) : createCommentVNode("", true)
|
|
5606
5657
|
])
|
|
5607
|
-
], 44, _hoisted_4$
|
|
5658
|
+
], 44, _hoisted_4$f)) : createCommentVNode("", true)
|
|
5608
5659
|
]))
|
|
5609
5660
|
], 2);
|
|
5610
5661
|
};
|
|
5611
5662
|
}
|
|
5612
5663
|
});
|
|
5613
|
-
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5614
|
-
const _hoisted_1$
|
|
5615
|
-
const _hoisted_2$
|
|
5616
|
-
const _hoisted_3$
|
|
5664
|
+
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-aa589793"]]);
|
|
5665
|
+
const _hoisted_1$k = ["for"];
|
|
5666
|
+
const _hoisted_2$i = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
5667
|
+
const _hoisted_3$e = {
|
|
5617
5668
|
key: 0,
|
|
5618
5669
|
class: "tao-switch__label"
|
|
5619
5670
|
};
|
|
5620
|
-
const _hoisted_4$
|
|
5671
|
+
const _hoisted_4$e = {
|
|
5621
5672
|
key: 1,
|
|
5622
5673
|
class: "tao-switch__label"
|
|
5623
5674
|
};
|
|
5624
|
-
const _sfc_main$
|
|
5675
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
5625
5676
|
...{ name: "TaoSwitch" },
|
|
5626
5677
|
__name: "TaoSwitch",
|
|
5627
5678
|
props: {
|
|
@@ -5662,33 +5713,33 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5662
5713
|
"aria-invalid": invalid.value || void 0,
|
|
5663
5714
|
"aria-describedby": describedBy.value,
|
|
5664
5715
|
onChange: toggle
|
|
5665
|
-
}, null, 40, _hoisted_2$
|
|
5716
|
+
}, null, 40, _hoisted_2$i),
|
|
5666
5717
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
5667
5718
|
class: "tao-switch__track",
|
|
5668
5719
|
"aria-hidden": "true"
|
|
5669
5720
|
}, [
|
|
5670
5721
|
createElementVNode("span", { class: "tao-switch__thumb" })
|
|
5671
5722
|
], -1)),
|
|
5672
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5723
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(__props.label), 1)) : _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$e, [
|
|
5673
5724
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5674
5725
|
])) : createCommentVNode("", true)
|
|
5675
|
-
], 10, _hoisted_1$
|
|
5726
|
+
], 10, _hoisted_1$k);
|
|
5676
5727
|
};
|
|
5677
5728
|
}
|
|
5678
5729
|
});
|
|
5679
|
-
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5730
|
+
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-17ce5000"]]);
|
|
5680
5731
|
const radioGroupKey = Symbol("taoRadioGroup");
|
|
5681
|
-
const _hoisted_1$
|
|
5682
|
-
const _hoisted_2$
|
|
5683
|
-
const _hoisted_3$
|
|
5732
|
+
const _hoisted_1$j = ["for"];
|
|
5733
|
+
const _hoisted_2$h = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-describedby"];
|
|
5734
|
+
const _hoisted_3$d = {
|
|
5684
5735
|
key: 0,
|
|
5685
5736
|
class: "tao-radio__label"
|
|
5686
5737
|
};
|
|
5687
|
-
const _hoisted_4$
|
|
5738
|
+
const _hoisted_4$d = {
|
|
5688
5739
|
key: 1,
|
|
5689
5740
|
class: "tao-radio__label"
|
|
5690
5741
|
};
|
|
5691
|
-
const _sfc_main$
|
|
5742
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
5692
5743
|
...{ name: "TaoRadio" },
|
|
5693
5744
|
__name: "TaoRadio",
|
|
5694
5745
|
props: {
|
|
@@ -5741,25 +5792,25 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5741
5792
|
"aria-invalid": !unref(group) && invalid.value || void 0,
|
|
5742
5793
|
"aria-describedby": describedBy.value,
|
|
5743
5794
|
onChange
|
|
5744
|
-
}, null, 40, _hoisted_2$
|
|
5795
|
+
}, null, 40, _hoisted_2$h),
|
|
5745
5796
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
5746
5797
|
class: "tao-radio__dot",
|
|
5747
5798
|
"aria-hidden": "true"
|
|
5748
5799
|
}, null, -1)),
|
|
5749
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5800
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
5750
5801
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5751
5802
|
]))
|
|
5752
|
-
], 10, _hoisted_1$
|
|
5803
|
+
], 10, _hoisted_1$j);
|
|
5753
5804
|
};
|
|
5754
5805
|
}
|
|
5755
5806
|
});
|
|
5756
|
-
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5757
|
-
const _hoisted_1$
|
|
5758
|
-
const _hoisted_2$
|
|
5807
|
+
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-e79d1fb6"]]);
|
|
5808
|
+
const _hoisted_1$i = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
5809
|
+
const _hoisted_2$g = {
|
|
5759
5810
|
key: 0,
|
|
5760
5811
|
class: "tao-radio-group__legend"
|
|
5761
5812
|
};
|
|
5762
|
-
const _sfc_main$
|
|
5813
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
5763
5814
|
...{ name: "TaoRadioGroup" },
|
|
5764
5815
|
__name: "TaoRadioGroup",
|
|
5765
5816
|
props: {
|
|
@@ -5801,20 +5852,20 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5801
5852
|
"aria-invalid": invalid.value || void 0,
|
|
5802
5853
|
"aria-labelledby": labelledBy.value
|
|
5803
5854
|
}, [
|
|
5804
|
-
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
5855
|
+
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$g, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
5805
5856
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5806
|
-
], 10, _hoisted_1$
|
|
5857
|
+
], 10, _hoisted_1$i);
|
|
5807
5858
|
};
|
|
5808
5859
|
}
|
|
5809
5860
|
});
|
|
5810
|
-
const TaoRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5861
|
+
const TaoRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6f6fa977"]]);
|
|
5811
5862
|
const segmentedKey = Symbol("taoSegmented");
|
|
5812
|
-
const _hoisted_1$
|
|
5813
|
-
const _hoisted_2$
|
|
5863
|
+
const _hoisted_1$h = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
|
|
5864
|
+
const _hoisted_2$f = {
|
|
5814
5865
|
key: 0,
|
|
5815
5866
|
class: "tao-segmented__legend"
|
|
5816
5867
|
};
|
|
5817
|
-
const _sfc_main$
|
|
5868
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
5818
5869
|
...{ name: "TaoSegmented" },
|
|
5819
5870
|
__name: "TaoSegmented",
|
|
5820
5871
|
props: {
|
|
@@ -5925,7 +5976,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
5925
5976
|
"aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
|
|
5926
5977
|
id: (_a = unref(field)) == null ? void 0 : _a.id
|
|
5927
5978
|
}, [
|
|
5928
|
-
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
5979
|
+
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$f, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
5929
5980
|
createElementVNode("div", {
|
|
5930
5981
|
ref_key: "trackRef",
|
|
5931
5982
|
ref: trackRef,
|
|
@@ -5938,24 +5989,24 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
5938
5989
|
}, null, 4),
|
|
5939
5990
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5940
5991
|
], 512)
|
|
5941
|
-
], 10, _hoisted_1$
|
|
5992
|
+
], 10, _hoisted_1$h);
|
|
5942
5993
|
};
|
|
5943
5994
|
}
|
|
5944
5995
|
});
|
|
5945
|
-
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5946
|
-
const _hoisted_1$
|
|
5947
|
-
const _hoisted_2$
|
|
5948
|
-
const _hoisted_3$
|
|
5949
|
-
const _hoisted_4$
|
|
5996
|
+
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-af757a32"]]);
|
|
5997
|
+
const _hoisted_1$g = ["for"];
|
|
5998
|
+
const _hoisted_2$e = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
5999
|
+
const _hoisted_3$c = { class: "tao-segmented-option__face" };
|
|
6000
|
+
const _hoisted_4$c = {
|
|
5950
6001
|
key: 0,
|
|
5951
6002
|
class: "tao-segmented-option__icon",
|
|
5952
6003
|
"aria-hidden": "true"
|
|
5953
6004
|
};
|
|
5954
|
-
const _hoisted_5$
|
|
6005
|
+
const _hoisted_5$c = {
|
|
5955
6006
|
key: 1,
|
|
5956
6007
|
class: "tao-segmented-option__label"
|
|
5957
6008
|
};
|
|
5958
|
-
const _hoisted_6$
|
|
6009
|
+
const _hoisted_6$9 = {
|
|
5959
6010
|
key: 2,
|
|
5960
6011
|
class: "tao-segmented-option__sr"
|
|
5961
6012
|
};
|
|
@@ -5963,7 +6014,7 @@ const _hoisted_7$7 = {
|
|
|
5963
6014
|
key: 3,
|
|
5964
6015
|
class: "tao-segmented-option__count"
|
|
5965
6016
|
};
|
|
5966
|
-
const _sfc_main$
|
|
6017
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
5967
6018
|
...{ name: "TaoSegmentedOption" },
|
|
5968
6019
|
__name: "TaoSegmentedOption",
|
|
5969
6020
|
props: {
|
|
@@ -6037,38 +6088,38 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
6037
6088
|
disabled: isDisabled.value,
|
|
6038
6089
|
"aria-label": __props.ariaLabel,
|
|
6039
6090
|
onChange
|
|
6040
|
-
}, null, 40, _hoisted_2$
|
|
6041
|
-
createElementVNode("span", _hoisted_3$
|
|
6042
|
-
__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
6091
|
+
}, null, 40, _hoisted_2$e),
|
|
6092
|
+
createElementVNode("span", _hoisted_3$c, [
|
|
6093
|
+
__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$c, [
|
|
6043
6094
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6044
6095
|
createTextVNode(toDisplayString(__props.icon), 1)
|
|
6045
6096
|
], true)
|
|
6046
6097
|
])) : createCommentVNode("", true),
|
|
6047
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
6098
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_5$c, [
|
|
6048
6099
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6049
6100
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
6050
6101
|
], true)
|
|
6051
|
-
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
6102
|
+
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(__props.ariaLabel), 1)) : createCommentVNode("", true),
|
|
6052
6103
|
countLabel.value ? (openBlock(), createElementBlock("span", _hoisted_7$7, toDisplayString(countLabel.value), 1)) : createCommentVNode("", true)
|
|
6053
6104
|
])
|
|
6054
|
-
], 10, _hoisted_1$
|
|
6105
|
+
], 10, _hoisted_1$g);
|
|
6055
6106
|
};
|
|
6056
6107
|
}
|
|
6057
6108
|
});
|
|
6058
|
-
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6059
|
-
const _hoisted_1$
|
|
6060
|
-
const _hoisted_2$
|
|
6061
|
-
const _hoisted_3$
|
|
6109
|
+
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-1a9357a1"]]);
|
|
6110
|
+
const _hoisted_1$f = ["role", "aria-live"];
|
|
6111
|
+
const _hoisted_2$d = { class: "tao-alert__body" };
|
|
6112
|
+
const _hoisted_3$b = {
|
|
6062
6113
|
key: 0,
|
|
6063
6114
|
class: "tao-alert__title"
|
|
6064
6115
|
};
|
|
6065
|
-
const _hoisted_4$
|
|
6116
|
+
const _hoisted_4$b = {
|
|
6066
6117
|
key: 1,
|
|
6067
6118
|
class: "tao-alert__message"
|
|
6068
6119
|
};
|
|
6069
|
-
const _hoisted_5$
|
|
6070
|
-
const _hoisted_6$
|
|
6071
|
-
const _sfc_main$
|
|
6120
|
+
const _hoisted_5$b = ["aria-label"];
|
|
6121
|
+
const _hoisted_6$8 = { "aria-hidden": "true" };
|
|
6122
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
6072
6123
|
...{ name: "TaoAlert" },
|
|
6073
6124
|
__name: "TaoAlert",
|
|
6074
6125
|
props: {
|
|
@@ -6089,9 +6140,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
6089
6140
|
role: tone.value === "error" ? "alert" : "status",
|
|
6090
6141
|
"aria-live": live.value
|
|
6091
6142
|
}, [
|
|
6092
|
-
createElementVNode("div", _hoisted_2$
|
|
6093
|
-
__props.title ? (openBlock(), createElementBlock("strong", _hoisted_3$
|
|
6094
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
6143
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
6144
|
+
__props.title ? (openBlock(), createElementBlock("strong", _hoisted_3$b, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
6145
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$b, [
|
|
6095
6146
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6096
6147
|
])) : createCommentVNode("", true)
|
|
6097
6148
|
]),
|
|
@@ -6102,30 +6153,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
6102
6153
|
"aria-label": __props.closeLabel,
|
|
6103
6154
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
6104
6155
|
}, [
|
|
6105
|
-
createElementVNode("span", _hoisted_6$
|
|
6156
|
+
createElementVNode("span", _hoisted_6$8, [
|
|
6106
6157
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
6107
6158
|
_cache[1] || (_cache[1] = createTextVNode("×", -1))
|
|
6108
6159
|
], true)
|
|
6109
6160
|
])
|
|
6110
|
-
], 8, _hoisted_5$
|
|
6111
|
-
], 10, _hoisted_1$
|
|
6161
|
+
], 8, _hoisted_5$b)) : createCommentVNode("", true)
|
|
6162
|
+
], 10, _hoisted_1$f);
|
|
6112
6163
|
};
|
|
6113
6164
|
}
|
|
6114
6165
|
});
|
|
6115
|
-
const TaoAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6116
|
-
const _hoisted_1$
|
|
6117
|
-
const _hoisted_2$
|
|
6118
|
-
const _hoisted_3$
|
|
6119
|
-
const _hoisted_4$
|
|
6120
|
-
const _hoisted_5$
|
|
6121
|
-
const _hoisted_6$
|
|
6166
|
+
const TaoAlert = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1a1dbef3"]]);
|
|
6167
|
+
const _hoisted_1$e = { key: 0 };
|
|
6168
|
+
const _hoisted_2$c = ["aria-sort"];
|
|
6169
|
+
const _hoisted_3$a = ["onClick"];
|
|
6170
|
+
const _hoisted_4$a = { key: 1 };
|
|
6171
|
+
const _hoisted_5$a = { key: 0 };
|
|
6172
|
+
const _hoisted_6$7 = ["colspan"];
|
|
6122
6173
|
const _hoisted_7$6 = ["onClick"];
|
|
6123
6174
|
const _hoisted_8$6 = {
|
|
6124
6175
|
key: 0,
|
|
6125
6176
|
class: "tao-table__loading",
|
|
6126
6177
|
"aria-busy": "true"
|
|
6127
6178
|
};
|
|
6128
|
-
const _sfc_main$
|
|
6179
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
6129
6180
|
...{ name: "TaoTable" },
|
|
6130
6181
|
__name: "TaoTable",
|
|
6131
6182
|
props: {
|
|
@@ -6206,7 +6257,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6206
6257
|
"tao-table--sticky": __props.sticky
|
|
6207
6258
|
}])
|
|
6208
6259
|
}, [
|
|
6209
|
-
__props.caption ? (openBlock(), createElementBlock("caption", _hoisted_1$
|
|
6260
|
+
__props.caption ? (openBlock(), createElementBlock("caption", _hoisted_1$e, toDisplayString(__props.caption), 1)) : createCommentVNode("", true),
|
|
6210
6261
|
createElementVNode("thead", null, [
|
|
6211
6262
|
createElementVNode("tr", null, [
|
|
6212
6263
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
@@ -6230,13 +6281,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6230
6281
|
}]),
|
|
6231
6282
|
"aria-hidden": "true"
|
|
6232
6283
|
}, null, 2)
|
|
6233
|
-
], 8, _hoisted_3$
|
|
6234
|
-
], 12, _hoisted_2$
|
|
6284
|
+
], 8, _hoisted_3$a)) : (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(column.label), 1))
|
|
6285
|
+
], 12, _hoisted_2$c);
|
|
6235
6286
|
}), 128))
|
|
6236
6287
|
])
|
|
6237
6288
|
]),
|
|
6238
6289
|
createElementVNode("tbody", null, [
|
|
6239
|
-
isEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_5$
|
|
6290
|
+
isEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_5$a, [
|
|
6240
6291
|
createElementVNode("td", {
|
|
6241
6292
|
class: "tao-table__empty",
|
|
6242
6293
|
colspan: colCount.value
|
|
@@ -6244,7 +6295,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6244
6295
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
6245
6296
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
6246
6297
|
], true)
|
|
6247
|
-
], 8, _hoisted_6$
|
|
6298
|
+
], 8, _hoisted_6$7)
|
|
6248
6299
|
])) : createCommentVNode("", true),
|
|
6249
6300
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, index) => {
|
|
6250
6301
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -6286,7 +6337,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6286
6337
|
};
|
|
6287
6338
|
}
|
|
6288
6339
|
});
|
|
6289
|
-
const TaoTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6340
|
+
const TaoTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5ce586b8"]]);
|
|
6290
6341
|
function buildPaginationItems(page, pageCount, siblingCount = 1) {
|
|
6291
6342
|
if (pageCount <= 0) {
|
|
6292
6343
|
return [];
|
|
@@ -6311,15 +6362,15 @@ function buildPaginationItems(page, pageCount, siblingCount = 1) {
|
|
|
6311
6362
|
items.push({ type: "page", page: pageCount });
|
|
6312
6363
|
return items;
|
|
6313
6364
|
}
|
|
6314
|
-
const _hoisted_1$
|
|
6315
|
-
const _hoisted_2$
|
|
6365
|
+
const _hoisted_1$d = ["aria-label"];
|
|
6366
|
+
const _hoisted_2$b = {
|
|
6316
6367
|
key: 0,
|
|
6317
6368
|
class: "tao-pagination__total"
|
|
6318
6369
|
};
|
|
6319
|
-
const _hoisted_3$
|
|
6320
|
-
const _hoisted_4$
|
|
6321
|
-
const _hoisted_5$
|
|
6322
|
-
const _hoisted_6$
|
|
6370
|
+
const _hoisted_3$9 = { class: "tao-pagination__pages" };
|
|
6371
|
+
const _hoisted_4$9 = ["aria-label", "disabled"];
|
|
6372
|
+
const _hoisted_5$9 = { "aria-hidden": "true" };
|
|
6373
|
+
const _hoisted_6$6 = ["aria-label", "disabled", "onClick"];
|
|
6323
6374
|
const _hoisted_7$5 = {
|
|
6324
6375
|
key: 1,
|
|
6325
6376
|
class: "tao-pagination__ellipsis",
|
|
@@ -6328,7 +6379,7 @@ const _hoisted_7$5 = {
|
|
|
6328
6379
|
const _hoisted_8$5 = ["aria-current", "aria-label", "disabled", "onClick"];
|
|
6329
6380
|
const _hoisted_9$1 = ["aria-label", "disabled"];
|
|
6330
6381
|
const _hoisted_10$1 = { "aria-hidden": "true" };
|
|
6331
|
-
const _sfc_main$
|
|
6382
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
6332
6383
|
...{ name: "TaoPagination" },
|
|
6333
6384
|
__name: "TaoPagination",
|
|
6334
6385
|
props: {
|
|
@@ -6381,7 +6432,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6381
6432
|
class: normalizeClass(["tao-pagination", `tao-pagination--${__props.size}`]),
|
|
6382
6433
|
"aria-label": __props.ariaLabel
|
|
6383
6434
|
}, [
|
|
6384
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
6435
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$b, [
|
|
6385
6436
|
renderSlot(_ctx.$slots, "total", {
|
|
6386
6437
|
from: from.value,
|
|
6387
6438
|
to: to.value,
|
|
@@ -6394,7 +6445,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6394
6445
|
], 64))
|
|
6395
6446
|
], true)
|
|
6396
6447
|
])) : createCommentVNode("", true),
|
|
6397
|
-
createElementVNode("div", _hoisted_3$
|
|
6448
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
6398
6449
|
createElementVNode("button", {
|
|
6399
6450
|
type: "button",
|
|
6400
6451
|
class: "tao-pagination__btn",
|
|
@@ -6402,12 +6453,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6402
6453
|
disabled: __props.disabled || current.value <= 1,
|
|
6403
6454
|
onClick: _cache[0] || (_cache[0] = ($event) => goTo(current.value - 1))
|
|
6404
6455
|
}, [
|
|
6405
|
-
createElementVNode("span", _hoisted_5$
|
|
6456
|
+
createElementVNode("span", _hoisted_5$9, [
|
|
6406
6457
|
renderSlot(_ctx.$slots, "prev-icon", {}, () => [
|
|
6407
6458
|
_cache[2] || (_cache[2] = createTextVNode("‹", -1))
|
|
6408
6459
|
], true)
|
|
6409
6460
|
])
|
|
6410
|
-
], 8, _hoisted_4$
|
|
6461
|
+
], 8, _hoisted_4$9),
|
|
6411
6462
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
6412
6463
|
return openBlock(), createElementBlock(Fragment, {
|
|
6413
6464
|
key: item.type === "page" ? item.page : item.id
|
|
@@ -6419,7 +6470,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6419
6470
|
"aria-label": item.id === "left" ? __props.jumpPrevLabel.replace("{n}", String(__props.jump)) : __props.jumpNextLabel.replace("{n}", String(__props.jump)),
|
|
6420
6471
|
disabled: __props.disabled,
|
|
6421
6472
|
onClick: ($event) => goTo(item.id === "left" ? current.value - __props.jump : current.value + __props.jump)
|
|
6422
|
-
}, " … ", 8, _hoisted_6$
|
|
6473
|
+
}, " … ", 8, _hoisted_6$6)) : item.type === "ellipsis" ? (openBlock(), createElementBlock("span", _hoisted_7$5, "…")) : (openBlock(), createElementBlock("button", {
|
|
6423
6474
|
key: 2,
|
|
6424
6475
|
type: "button",
|
|
6425
6476
|
class: normalizeClass(["tao-pagination__btn", { "tao-pagination__btn--current": item.page === current.value }]),
|
|
@@ -6444,29 +6495,29 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6444
6495
|
])
|
|
6445
6496
|
], 8, _hoisted_9$1)
|
|
6446
6497
|
])
|
|
6447
|
-
], 10, _hoisted_1$
|
|
6498
|
+
], 10, _hoisted_1$d);
|
|
6448
6499
|
};
|
|
6449
6500
|
}
|
|
6450
6501
|
});
|
|
6451
|
-
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6452
|
-
const _hoisted_1$
|
|
6453
|
-
const _hoisted_2$
|
|
6502
|
+
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-37f3d381"]]);
|
|
6503
|
+
const _hoisted_1$c = { class: "tao-empty" };
|
|
6504
|
+
const _hoisted_2$a = {
|
|
6454
6505
|
key: 0,
|
|
6455
6506
|
class: "tao-empty__icon"
|
|
6456
6507
|
};
|
|
6457
|
-
const _hoisted_3$
|
|
6508
|
+
const _hoisted_3$8 = {
|
|
6458
6509
|
key: 1,
|
|
6459
6510
|
class: "tao-empty__title"
|
|
6460
6511
|
};
|
|
6461
|
-
const _hoisted_4$
|
|
6512
|
+
const _hoisted_4$8 = {
|
|
6462
6513
|
key: 2,
|
|
6463
6514
|
class: "tao-empty__text"
|
|
6464
6515
|
};
|
|
6465
|
-
const _hoisted_5$
|
|
6516
|
+
const _hoisted_5$8 = {
|
|
6466
6517
|
key: 3,
|
|
6467
6518
|
class: "tao-empty__action"
|
|
6468
6519
|
};
|
|
6469
|
-
const _sfc_main$
|
|
6520
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
6470
6521
|
...{ name: "TaoEmpty" },
|
|
6471
6522
|
__name: "TaoEmpty",
|
|
6472
6523
|
props: {
|
|
@@ -6474,22 +6525,189 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
6474
6525
|
},
|
|
6475
6526
|
setup(__props) {
|
|
6476
6527
|
return (_ctx, _cache) => {
|
|
6477
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6478
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6528
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
6529
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
6479
6530
|
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
6480
6531
|
])) : createCommentVNode("", true),
|
|
6481
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
6482
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
6532
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_3$8, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
6533
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$8, [
|
|
6483
6534
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6484
6535
|
])) : createCommentVNode("", true),
|
|
6485
|
-
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
6536
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
6486
6537
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
6487
6538
|
])) : createCommentVNode("", true)
|
|
6488
6539
|
]);
|
|
6489
6540
|
};
|
|
6490
6541
|
}
|
|
6491
6542
|
});
|
|
6492
|
-
const TaoEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6543
|
+
const TaoEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-8056884d"]]);
|
|
6544
|
+
const taoListKey = Symbol("taoList");
|
|
6545
|
+
const _hoisted_1$b = ["aria-label"];
|
|
6546
|
+
const _hoisted_2$9 = {
|
|
6547
|
+
key: 0,
|
|
6548
|
+
class: "tao-list__empty"
|
|
6549
|
+
};
|
|
6550
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
6551
|
+
...{ name: "TaoList" },
|
|
6552
|
+
__name: "TaoList",
|
|
6553
|
+
props: {
|
|
6554
|
+
size: { default: "medium" },
|
|
6555
|
+
bordered: { type: Boolean, default: true },
|
|
6556
|
+
divided: { type: Boolean, default: true },
|
|
6557
|
+
maxHeight: {},
|
|
6558
|
+
empty: { type: Boolean, default: false },
|
|
6559
|
+
ariaLabel: { default: "" }
|
|
6560
|
+
},
|
|
6561
|
+
setup(__props) {
|
|
6562
|
+
const props = __props;
|
|
6563
|
+
const size = computed(() => props.size);
|
|
6564
|
+
provide(taoListKey, { size });
|
|
6565
|
+
const listStyle = computed(() => {
|
|
6566
|
+
if (props.maxHeight === void 0 || props.maxHeight === "") {
|
|
6567
|
+
return void 0;
|
|
6568
|
+
}
|
|
6569
|
+
const value = typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight;
|
|
6570
|
+
return { maxHeight: value };
|
|
6571
|
+
});
|
|
6572
|
+
return (_ctx, _cache) => {
|
|
6573
|
+
return openBlock(), createElementBlock("ul", {
|
|
6574
|
+
class: normalizeClass(["tao-list", [
|
|
6575
|
+
`tao-list--${size.value}`,
|
|
6576
|
+
{
|
|
6577
|
+
"tao-list--bordered": __props.bordered,
|
|
6578
|
+
"tao-list--divided": __props.divided,
|
|
6579
|
+
"tao-list--plain": !__props.bordered,
|
|
6580
|
+
"tao-list--empty": __props.empty,
|
|
6581
|
+
"tao-list--scroll": Boolean(__props.maxHeight)
|
|
6582
|
+
}
|
|
6583
|
+
]]),
|
|
6584
|
+
style: normalizeStyle(listStyle.value),
|
|
6585
|
+
"aria-label": __props.ariaLabel || void 0
|
|
6586
|
+
}, [
|
|
6587
|
+
__props.empty ? (openBlock(), createElementBlock("li", _hoisted_2$9, [
|
|
6588
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
6589
|
+
_cache[0] || (_cache[0] = createTextVNode("Ничего нет", -1))
|
|
6590
|
+
], true)
|
|
6591
|
+
])) : renderSlot(_ctx.$slots, "default", {}, void 0, true, 1)
|
|
6592
|
+
], 14, _hoisted_1$b);
|
|
6593
|
+
};
|
|
6594
|
+
}
|
|
6595
|
+
});
|
|
6596
|
+
const TaoList = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-798c83a3"]]);
|
|
6597
|
+
const _hoisted_1$a = ["aria-current", "aria-disabled"];
|
|
6598
|
+
const _hoisted_2$8 = {
|
|
6599
|
+
key: 0,
|
|
6600
|
+
class: "tao-list-item__prefix"
|
|
6601
|
+
};
|
|
6602
|
+
const _hoisted_3$7 = { class: "tao-list-item__text" };
|
|
6603
|
+
const _hoisted_4$7 = { class: "tao-list-item__title" };
|
|
6604
|
+
const _hoisted_5$7 = {
|
|
6605
|
+
key: 0,
|
|
6606
|
+
class: "tao-list-item__description"
|
|
6607
|
+
};
|
|
6608
|
+
const _hoisted_6$5 = {
|
|
6609
|
+
key: 1,
|
|
6610
|
+
class: "tao-list-item__suffix"
|
|
6611
|
+
};
|
|
6612
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
6613
|
+
...{ name: "TaoListItem" },
|
|
6614
|
+
__name: "TaoListItem",
|
|
6615
|
+
props: {
|
|
6616
|
+
title: { default: "" },
|
|
6617
|
+
description: { default: "" },
|
|
6618
|
+
selected: { type: Boolean, default: false },
|
|
6619
|
+
disabled: { type: Boolean, default: false },
|
|
6620
|
+
active: { type: Boolean, default: false },
|
|
6621
|
+
clickable: { type: Boolean, default: false },
|
|
6622
|
+
size: {},
|
|
6623
|
+
actionAlways: { type: Boolean, default: false }
|
|
6624
|
+
},
|
|
6625
|
+
emits: ["click"],
|
|
6626
|
+
setup(__props, { emit: __emit }) {
|
|
6627
|
+
const props = __props;
|
|
6628
|
+
const emit = __emit;
|
|
6629
|
+
const slots = useSlots();
|
|
6630
|
+
const list = inject(taoListKey, null);
|
|
6631
|
+
const sizeClass = computed(() => {
|
|
6632
|
+
const size = props.size ?? (list == null ? void 0 : list.size.value) ?? "medium";
|
|
6633
|
+
if (size === "small") {
|
|
6634
|
+
return "s";
|
|
6635
|
+
}
|
|
6636
|
+
if (size === "large") {
|
|
6637
|
+
return "l";
|
|
6638
|
+
}
|
|
6639
|
+
return "m";
|
|
6640
|
+
});
|
|
6641
|
+
const hasAction = computed(() => Boolean(slots.action));
|
|
6642
|
+
const hasPrefix = computed(() => Boolean(slots.prefix));
|
|
6643
|
+
const hasSuffix = computed(() => Boolean(slots.suffix));
|
|
6644
|
+
const hasDescription = computed(() => Boolean(props.description || slots.description));
|
|
6645
|
+
function onHitClick(event) {
|
|
6646
|
+
if (props.disabled || !props.clickable) {
|
|
6647
|
+
return;
|
|
6648
|
+
}
|
|
6649
|
+
emit("click", event);
|
|
6650
|
+
}
|
|
6651
|
+
return (_ctx, _cache) => {
|
|
6652
|
+
return openBlock(), createElementBlock("li", {
|
|
6653
|
+
class: normalizeClass(["tao-list-item", [
|
|
6654
|
+
`tao-list-item--${sizeClass.value}`,
|
|
6655
|
+
{
|
|
6656
|
+
"tao-list-item--selected": __props.selected,
|
|
6657
|
+
"tao-list-item--disabled": __props.disabled,
|
|
6658
|
+
"tao-list-item--active": __props.active,
|
|
6659
|
+
"tao-list-item--clickable": __props.clickable,
|
|
6660
|
+
"tao-list-item--has-action": hasAction.value,
|
|
6661
|
+
"tao-list-item--action-always": __props.actionAlways
|
|
6662
|
+
}
|
|
6663
|
+
]]),
|
|
6664
|
+
"aria-current": !__props.clickable && __props.selected ? "true" : void 0,
|
|
6665
|
+
"aria-disabled": __props.disabled || void 0
|
|
6666
|
+
}, [
|
|
6667
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.clickable ? "button" : "div"), {
|
|
6668
|
+
class: "tao-list-item__hit",
|
|
6669
|
+
type: __props.clickable ? "button" : void 0,
|
|
6670
|
+
disabled: __props.clickable ? __props.disabled : void 0,
|
|
6671
|
+
"aria-current": __props.clickable && __props.selected ? "true" : void 0,
|
|
6672
|
+
onClick: onHitClick
|
|
6673
|
+
}, {
|
|
6674
|
+
default: withCtx(() => [
|
|
6675
|
+
hasPrefix.value ? (openBlock(), createElementBlock("span", _hoisted_2$8, [
|
|
6676
|
+
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
6677
|
+
])) : createCommentVNode("", true),
|
|
6678
|
+
createElementVNode("span", _hoisted_3$7, [
|
|
6679
|
+
createElementVNode("span", _hoisted_4$7, [
|
|
6680
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6681
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
6682
|
+
], true)
|
|
6683
|
+
]),
|
|
6684
|
+
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5$7, [
|
|
6685
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
6686
|
+
createTextVNode(toDisplayString(__props.description), 1)
|
|
6687
|
+
], true)
|
|
6688
|
+
])) : createCommentVNode("", true)
|
|
6689
|
+
]),
|
|
6690
|
+
hasSuffix.value ? (openBlock(), createElementBlock("span", _hoisted_6$5, [
|
|
6691
|
+
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
6692
|
+
])) : createCommentVNode("", true)
|
|
6693
|
+
]),
|
|
6694
|
+
_: 3
|
|
6695
|
+
}, 8, ["type", "disabled", "aria-current"])),
|
|
6696
|
+
hasAction.value ? (openBlock(), createElementBlock("div", {
|
|
6697
|
+
key: 0,
|
|
6698
|
+
class: "tao-list-item__action",
|
|
6699
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
6700
|
+
}, ["stop"])),
|
|
6701
|
+
onKeydown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
6702
|
+
}, ["stop"]))
|
|
6703
|
+
}, [
|
|
6704
|
+
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
6705
|
+
], 32)) : createCommentVNode("", true)
|
|
6706
|
+
], 10, _hoisted_1$a);
|
|
6707
|
+
};
|
|
6708
|
+
}
|
|
6709
|
+
});
|
|
6710
|
+
const TaoListItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-878b7727"]]);
|
|
6493
6711
|
const _hoisted_1$9 = {
|
|
6494
6712
|
class: "tao-skeleton-group",
|
|
6495
6713
|
"aria-hidden": true
|
|
@@ -6841,7 +7059,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6841
7059
|
class: "tao-breadcrumb__item"
|
|
6842
7060
|
}, [
|
|
6843
7061
|
index > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$4, "/")) : createCommentVNode("", true),
|
|
6844
|
-
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$
|
|
7062
|
+
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$q, {
|
|
6845
7063
|
key: 2,
|
|
6846
7064
|
class: "tao-breadcrumb__link",
|
|
6847
7065
|
to: item.to
|
|
@@ -8510,8 +8728,10 @@ const components = [
|
|
|
8510
8728
|
TaoSpoilerGroup,
|
|
8511
8729
|
TaoCopy,
|
|
8512
8730
|
TaoContainer,
|
|
8513
|
-
_sfc_main$
|
|
8731
|
+
_sfc_main$K,
|
|
8514
8732
|
TaoSpace,
|
|
8733
|
+
TaoGrid,
|
|
8734
|
+
TaoGridItem,
|
|
8515
8735
|
TaoSplit,
|
|
8516
8736
|
TaoIcon,
|
|
8517
8737
|
TaoLoader,
|
|
@@ -8528,7 +8748,7 @@ const components = [
|
|
|
8528
8748
|
TaoFileDrop,
|
|
8529
8749
|
TaoDropdownMenu,
|
|
8530
8750
|
TaoPinCode,
|
|
8531
|
-
_sfc_main$
|
|
8751
|
+
_sfc_main$q,
|
|
8532
8752
|
TaoFormField,
|
|
8533
8753
|
TaoSelect,
|
|
8534
8754
|
TaoCombobox,
|
|
@@ -8543,6 +8763,8 @@ const components = [
|
|
|
8543
8763
|
TaoTable,
|
|
8544
8764
|
TaoPagination,
|
|
8545
8765
|
TaoEmpty,
|
|
8766
|
+
TaoList,
|
|
8767
|
+
TaoListItem,
|
|
8546
8768
|
TaoSkeleton,
|
|
8547
8769
|
TaoDrawer,
|
|
8548
8770
|
TaoAvatar,
|
|
@@ -8583,14 +8805,18 @@ export {
|
|
|
8583
8805
|
TaoEmpty,
|
|
8584
8806
|
TaoFieldset,
|
|
8585
8807
|
TaoFileDrop,
|
|
8586
|
-
_sfc_main$
|
|
8808
|
+
_sfc_main$K as TaoFlex,
|
|
8587
8809
|
TaoFormField,
|
|
8810
|
+
TaoGrid,
|
|
8811
|
+
TaoGridItem,
|
|
8588
8812
|
TaoIcon,
|
|
8589
8813
|
TaoImage,
|
|
8590
8814
|
TaoInput,
|
|
8591
8815
|
TaoInputGroup,
|
|
8592
8816
|
TaoInputNumber,
|
|
8593
|
-
_sfc_main$
|
|
8817
|
+
_sfc_main$q as TaoLink,
|
|
8818
|
+
TaoList,
|
|
8819
|
+
TaoListItem,
|
|
8594
8820
|
TaoLoader,
|
|
8595
8821
|
TaoModal,
|
|
8596
8822
|
TaoPagination,
|