@1337exp/taoui 1.6.1 → 1.7.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 +15 -0
- package/README.ru.md +15 -0
- package/dist/index.cjs +576 -405
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +220 -51
- package/dist/index.mjs +576 -405
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +180 -6
- package/package.json +1 -1
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$X = /* @__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$X, [["__scopeId", "data-v-c3034f66"]]);
|
|
68
|
+
const _sfc_main$W = /* @__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$W, [["__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$V = /* @__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$V, [["__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$U = /* @__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$U, [["__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$T = /* @__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$T, [["__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$S = /* @__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$S, [["__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$R = /* @__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$R, [["__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$Q = /* @__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$Q, [["__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$P = /* @__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$P, [["__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$O = /* @__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$O, [["__scopeId", "data-v-926dfa73"]]);
|
|
1219
|
+
const _hoisted_1$H = { class: "tao-popover" };
|
|
1220
|
+
const _sfc_main$N = /* @__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$N, [["__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$M = /* @__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$M, [["__scopeId", "data-v-ccb052cf"]]);
|
|
1525
|
+
const _hoisted_1$F = { class: "tao-spoiler-group" };
|
|
1526
|
+
const _sfc_main$L = /* @__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$L, [["__scopeId", "data-v-118970dd"]]);
|
|
1558
|
+
const _hoisted_1$E = ["aria-label"];
|
|
1559
|
+
const _sfc_main$K = /* @__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$K, [["__scopeId", "data-v-38d3381d"]]);
|
|
1711
|
+
const _sfc_main$J = /* @__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$J, [["__scopeId", "data-v-4c0deb90"]]);
|
|
1729
|
+
const _sfc_main$I = /* @__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$H = /* @__PURE__ */ defineComponent({
|
|
1761
1761
|
...{ name: "TaoSpace" },
|
|
1762
1762
|
__name: "TaoSpace",
|
|
1763
1763
|
props: {
|
|
@@ -1777,15 +1777,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1777
1777
|
};
|
|
1778
1778
|
}
|
|
1779
1779
|
});
|
|
1780
|
-
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1781
|
-
const _hoisted_1$
|
|
1782
|
-
const _hoisted_2$
|
|
1783
|
-
const _hoisted_3$
|
|
1784
|
-
const _hoisted_4$
|
|
1780
|
+
const TaoSpace = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-698ca712"]]);
|
|
1781
|
+
const _hoisted_1$D = { class: "tao-split__pane tao-split__pane--start" };
|
|
1782
|
+
const _hoisted_2$z = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
1783
|
+
const _hoisted_3$s = { class: "tao-split__pane tao-split__pane--end" };
|
|
1784
|
+
const _hoisted_4$o = {
|
|
1785
1785
|
key: 0,
|
|
1786
1786
|
class: "tao-split__shield"
|
|
1787
1787
|
};
|
|
1788
|
-
const _sfc_main$
|
|
1788
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1789
1789
|
...{ name: "TaoSplit" },
|
|
1790
1790
|
__name: "TaoSplit",
|
|
1791
1791
|
props: {
|
|
@@ -2070,7 +2070,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
2070
2070
|
]]),
|
|
2071
2071
|
style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
|
|
2072
2072
|
}, [
|
|
2073
|
-
createElementVNode("div", _hoisted_1$
|
|
2073
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
2074
2074
|
renderSlot(_ctx.$slots, "start", {}, void 0, true)
|
|
2075
2075
|
]),
|
|
2076
2076
|
createElementVNode("div", {
|
|
@@ -2093,18 +2093,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
2093
2093
|
onKeydown,
|
|
2094
2094
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
2095
2095
|
}, ["prevent"]))
|
|
2096
|
-
}, null, 40, _hoisted_2$
|
|
2097
|
-
createElementVNode("div", _hoisted_3$
|
|
2096
|
+
}, null, 40, _hoisted_2$z),
|
|
2097
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
2098
2098
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
2099
2099
|
]),
|
|
2100
|
-
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2100
|
+
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$o)) : createCommentVNode("", true)
|
|
2101
2101
|
], 6);
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
2104
|
});
|
|
2105
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2106
|
-
const _hoisted_1$
|
|
2107
|
-
const _sfc_main$
|
|
2105
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f44196dc"]]);
|
|
2106
|
+
const _hoisted_1$C = { class: "tao-icon" };
|
|
2107
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
2108
2108
|
...{ name: "TaoIcon" },
|
|
2109
2109
|
__name: "TaoIcon",
|
|
2110
2110
|
props: {
|
|
@@ -2119,7 +2119,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
2119
2119
|
}));
|
|
2120
2120
|
const props = __props;
|
|
2121
2121
|
return (_ctx, _cache) => {
|
|
2122
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
2122
|
+
return openBlock(), createElementBlock("span", _hoisted_1$C, [
|
|
2123
2123
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
2124
2124
|
createElementVNode("i", {
|
|
2125
2125
|
class: normalizeClass(["tao-icon__value", [`icon-${props.name}`, { "tao-icon__value--invert": props.invert }]]),
|
|
@@ -2130,8 +2130,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
|
-
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2134
|
-
const _sfc_main$
|
|
2133
|
+
const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-145b2cfc"]]);
|
|
2134
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
2135
2135
|
...{ name: "TaoLoader" },
|
|
2136
2136
|
__name: "TaoLoader",
|
|
2137
2137
|
props: {
|
|
@@ -2192,11 +2192,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2192
2192
|
};
|
|
2193
2193
|
}
|
|
2194
2194
|
});
|
|
2195
|
-
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2196
|
-
const _hoisted_1$
|
|
2197
|
-
const _hoisted_2$
|
|
2198
|
-
const _hoisted_3$
|
|
2199
|
-
const _sfc_main$
|
|
2195
|
+
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-75a40018"]]);
|
|
2196
|
+
const _hoisted_1$B = { class: "tao-image" };
|
|
2197
|
+
const _hoisted_2$y = ["src", "alt", "loading"];
|
|
2198
|
+
const _hoisted_3$r = { class: "tao-image__placeholder" };
|
|
2199
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
2200
2200
|
...{ name: "TaoImage" },
|
|
2201
2201
|
__name: "TaoImage",
|
|
2202
2202
|
props: {
|
|
@@ -2227,7 +2227,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2227
2227
|
hasError.value = false;
|
|
2228
2228
|
});
|
|
2229
2229
|
return (_ctx, _cache) => {
|
|
2230
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2230
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
2231
2231
|
__props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
|
|
2232
2232
|
key: 0,
|
|
2233
2233
|
class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
|
|
@@ -2238,26 +2238,26 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2238
2238
|
draggable: "false",
|
|
2239
2239
|
onLoad: handleLoad,
|
|
2240
2240
|
onError: handleError
|
|
2241
|
-
}, null, 42, _hoisted_2$
|
|
2241
|
+
}, null, 42, _hoisted_2$y)) : createCommentVNode("", true),
|
|
2242
2242
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2243
|
-
createElementVNode("div", _hoisted_3$
|
|
2243
|
+
createElementVNode("div", _hoisted_3$r, toDisplayString(__props.placeholderText), 1)
|
|
2244
2244
|
], true, 1) : createCommentVNode("", true)
|
|
2245
2245
|
]);
|
|
2246
2246
|
};
|
|
2247
2247
|
}
|
|
2248
2248
|
});
|
|
2249
|
-
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2250
|
-
const _hoisted_1$
|
|
2251
|
-
const _hoisted_2$
|
|
2252
|
-
const _hoisted_3$
|
|
2249
|
+
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-aea39025"]]);
|
|
2250
|
+
const _hoisted_1$A = ["for"];
|
|
2251
|
+
const _hoisted_2$x = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
2252
|
+
const _hoisted_3$q = {
|
|
2253
2253
|
key: 0,
|
|
2254
2254
|
class: "tao-checkbox__label"
|
|
2255
2255
|
};
|
|
2256
|
-
const _hoisted_4$
|
|
2256
|
+
const _hoisted_4$n = {
|
|
2257
2257
|
key: 1,
|
|
2258
2258
|
class: "tao-checkbox__label"
|
|
2259
2259
|
};
|
|
2260
|
-
const _sfc_main$
|
|
2260
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2261
2261
|
...{ name: "TaoCheckbox" },
|
|
2262
2262
|
__name: "TaoCheckbox",
|
|
2263
2263
|
props: {
|
|
@@ -2327,25 +2327,25 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
2327
2327
|
"aria-invalid": invalid.value || void 0,
|
|
2328
2328
|
"aria-describedby": describedBy.value,
|
|
2329
2329
|
onChange: onInputChange
|
|
2330
|
-
}, null, 40, _hoisted_2$
|
|
2330
|
+
}, null, 40, _hoisted_2$x),
|
|
2331
2331
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
2332
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2332
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, [
|
|
2333
2333
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2334
2334
|
])),
|
|
2335
2335
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
2336
|
-
], 10, _hoisted_1$
|
|
2336
|
+
], 10, _hoisted_1$A);
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
2339
|
});
|
|
2340
|
-
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2341
|
-
const _hoisted_1$
|
|
2340
|
+
const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f6b0e565"]]);
|
|
2341
|
+
const _hoisted_1$z = {
|
|
2342
2342
|
key: 0,
|
|
2343
2343
|
class: "tao-tag__prefix"
|
|
2344
2344
|
};
|
|
2345
|
-
const _hoisted_2$
|
|
2346
|
-
const _hoisted_3$
|
|
2347
|
-
const _hoisted_4$
|
|
2348
|
-
const _sfc_main$
|
|
2345
|
+
const _hoisted_2$w = { class: "tao-tag__text" };
|
|
2346
|
+
const _hoisted_3$p = ["aria-label"];
|
|
2347
|
+
const _hoisted_4$m = { "aria-hidden": "true" };
|
|
2348
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
2349
2349
|
...{ name: "TaoTag" },
|
|
2350
2350
|
__name: "TaoTag",
|
|
2351
2351
|
props: {
|
|
@@ -2385,10 +2385,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2385
2385
|
]]),
|
|
2386
2386
|
style: normalizeStyle(style.value)
|
|
2387
2387
|
}, [
|
|
2388
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2388
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$z, [
|
|
2389
2389
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
2390
2390
|
])) : createCommentVNode("", true),
|
|
2391
|
-
createElementVNode("span", _hoisted_2$
|
|
2391
|
+
createElementVNode("span", _hoisted_2$w, [
|
|
2392
2392
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2393
2393
|
]),
|
|
2394
2394
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
@@ -2398,27 +2398,27 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2398
2398
|
"aria-label": __props.closeLabel,
|
|
2399
2399
|
onClick: withModifiers(onClose, ["stop"])
|
|
2400
2400
|
}, [
|
|
2401
|
-
createElementVNode("span", _hoisted_4$
|
|
2401
|
+
createElementVNode("span", _hoisted_4$m, [
|
|
2402
2402
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
2403
2403
|
_cache[0] || (_cache[0] = createTextVNode("✕", -1))
|
|
2404
2404
|
], true)
|
|
2405
2405
|
])
|
|
2406
|
-
], 8, _hoisted_3$
|
|
2406
|
+
], 8, _hoisted_3$p)) : createCommentVNode("", true)
|
|
2407
2407
|
], 6);
|
|
2408
2408
|
};
|
|
2409
2409
|
}
|
|
2410
2410
|
});
|
|
2411
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2412
|
-
const _hoisted_1$
|
|
2411
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-f353f529"]]);
|
|
2412
|
+
const _hoisted_1$y = {
|
|
2413
2413
|
key: 1,
|
|
2414
2414
|
class: "tao-divider-text"
|
|
2415
2415
|
};
|
|
2416
|
-
const _hoisted_2$
|
|
2417
|
-
const _hoisted_3$
|
|
2416
|
+
const _hoisted_2$v = { class: "tao-divider-text__value" };
|
|
2417
|
+
const _hoisted_3$o = {
|
|
2418
2418
|
key: 2,
|
|
2419
2419
|
class: "tao-divider-line"
|
|
2420
2420
|
};
|
|
2421
|
-
const _sfc_main$
|
|
2421
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
2422
2422
|
...{ name: "TaoDivider" },
|
|
2423
2423
|
__name: "TaoDivider",
|
|
2424
2424
|
props: {
|
|
@@ -2432,23 +2432,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2432
2432
|
return __props.variant === "gap" ? (openBlock(), createElementBlock("div", {
|
|
2433
2433
|
key: 0,
|
|
2434
2434
|
class: normalizeClass(["tao-divider-gap", `tao-divider-gap--${gapSize.value}`])
|
|
2435
|
-
}, null, 2)) : __props.variant === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2435
|
+
}, null, 2)) : __props.variant === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
2436
2436
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-divider-text__line tao-divider-text__line--left" }, null, -1)),
|
|
2437
|
-
createElementVNode("span", _hoisted_2$
|
|
2437
|
+
createElementVNode("span", _hoisted_2$v, [
|
|
2438
2438
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2439
2439
|
]),
|
|
2440
2440
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "tao-divider-text__line tao-divider-text__line--right" }, null, -1))
|
|
2441
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2441
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$o));
|
|
2442
2442
|
};
|
|
2443
2443
|
}
|
|
2444
2444
|
});
|
|
2445
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2446
|
-
const _hoisted_1$
|
|
2445
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-8187a15d"]]);
|
|
2446
|
+
const _hoisted_1$x = {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
class: "tao-fieldset__legend"
|
|
2449
2449
|
};
|
|
2450
|
-
const _hoisted_2$
|
|
2451
|
-
const _sfc_main$
|
|
2450
|
+
const _hoisted_2$u = { class: "tao-fieldset__body" };
|
|
2451
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
2452
2452
|
...{ name: "TaoFieldset" },
|
|
2453
2453
|
__name: "TaoFieldset",
|
|
2454
2454
|
props: {
|
|
@@ -2460,20 +2460,20 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2460
2460
|
return openBlock(), createElementBlock("fieldset", {
|
|
2461
2461
|
class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
|
|
2462
2462
|
}, [
|
|
2463
|
-
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
2463
|
+
__props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$x, [
|
|
2464
2464
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
2465
2465
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
2466
2466
|
], true)
|
|
2467
2467
|
])) : createCommentVNode("", true),
|
|
2468
|
-
createElementVNode("div", _hoisted_2$
|
|
2468
|
+
createElementVNode("div", _hoisted_2$u, [
|
|
2469
2469
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2470
2470
|
])
|
|
2471
2471
|
], 2);
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
2474
|
});
|
|
2475
|
-
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2476
|
-
const _sfc_main$
|
|
2475
|
+
const TaoFieldset = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-34440ba5"]]);
|
|
2476
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
2477
2477
|
...{ name: "TaoAnimatedBorder" },
|
|
2478
2478
|
__name: "TaoAnimatedBorder",
|
|
2479
2479
|
props: {
|
|
@@ -2497,18 +2497,18 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2497
2497
|
};
|
|
2498
2498
|
}
|
|
2499
2499
|
});
|
|
2500
|
-
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2501
|
-
const _hoisted_1$
|
|
2500
|
+
const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-f1534571"]]);
|
|
2501
|
+
const _hoisted_1$w = {
|
|
2502
2502
|
key: 0,
|
|
2503
2503
|
class: "tao-textarea tao-textarea--dummy"
|
|
2504
2504
|
};
|
|
2505
|
-
const _hoisted_2$
|
|
2505
|
+
const _hoisted_2$t = {
|
|
2506
2506
|
key: 1,
|
|
2507
2507
|
class: "tao-textarea-wrap"
|
|
2508
2508
|
};
|
|
2509
|
-
const _hoisted_3$
|
|
2510
|
-
const _hoisted_4$
|
|
2511
|
-
const _sfc_main$
|
|
2509
|
+
const _hoisted_3$n = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "rows", "value", "aria-invalid", "aria-describedby"];
|
|
2510
|
+
const _hoisted_4$l = ["id"];
|
|
2511
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
2512
2512
|
...{ name: "TaoTextarea" },
|
|
2513
2513
|
__name: "TaoTextarea",
|
|
2514
2514
|
props: {
|
|
@@ -2605,7 +2605,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2605
2605
|
nextTick(autoResize);
|
|
2606
2606
|
});
|
|
2607
2607
|
return (_ctx, _cache) => {
|
|
2608
|
-
return __props.dummy ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2608
|
+
return __props.dummy ? (openBlock(), createElementBlock("span", _hoisted_1$w, toDisplayString(__props.modelValue), 1)) : (openBlock(), createElementBlock("div", _hoisted_2$t, [
|
|
2609
2609
|
createElementVNode("textarea", {
|
|
2610
2610
|
id: controlId.value,
|
|
2611
2611
|
ref_key: "textareaRef",
|
|
@@ -2634,21 +2634,21 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2634
2634
|
onFocus,
|
|
2635
2635
|
onBlur,
|
|
2636
2636
|
onKeydown
|
|
2637
|
-
}, null, 42, _hoisted_3$
|
|
2637
|
+
}, null, 42, _hoisted_3$n),
|
|
2638
2638
|
__props.count ? (openBlock(), createElementBlock("span", {
|
|
2639
2639
|
key: 0,
|
|
2640
2640
|
id: counterId.value,
|
|
2641
2641
|
class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
|
|
2642
|
-
}, toDisplayString(countLabel.value), 11, _hoisted_4$
|
|
2642
|
+
}, toDisplayString(countLabel.value), 11, _hoisted_4$l)) : createCommentVNode("", true)
|
|
2643
2643
|
]));
|
|
2644
2644
|
};
|
|
2645
2645
|
}
|
|
2646
2646
|
});
|
|
2647
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2648
|
-
const _hoisted_1$
|
|
2649
|
-
const _hoisted_2$
|
|
2647
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2534c0c4"]]);
|
|
2648
|
+
const _hoisted_1$v = ["tabindex", "aria-label"];
|
|
2649
|
+
const _hoisted_2$s = { class: "tao-scroll-top__content" };
|
|
2650
2650
|
const RIPPLE_DURATION = 750;
|
|
2651
|
-
const _sfc_main$
|
|
2651
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2652
2652
|
...{ name: "TaoScrollTop" },
|
|
2653
2653
|
__name: "TaoScrollTop",
|
|
2654
2654
|
props: {
|
|
@@ -2749,7 +2749,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2749
2749
|
"aria-label": props.ariaLabel,
|
|
2750
2750
|
onClick: withModifiers(onClick, ["prevent"])
|
|
2751
2751
|
}, [
|
|
2752
|
-
createElementVNode("div", _hoisted_2$
|
|
2752
|
+
createElementVNode("div", _hoisted_2$s, [
|
|
2753
2753
|
createElementVNode("div", {
|
|
2754
2754
|
class: normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
|
|
2755
2755
|
style: normalizeStyle(rippleStyle)
|
|
@@ -2766,33 +2766,33 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2766
2766
|
], -1))
|
|
2767
2767
|
], true)
|
|
2768
2768
|
])
|
|
2769
|
-
], 14, _hoisted_1$
|
|
2769
|
+
], 14, _hoisted_1$v)) : createCommentVNode("", true)
|
|
2770
2770
|
]),
|
|
2771
2771
|
_: 3
|
|
2772
2772
|
});
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
2775
2775
|
});
|
|
2776
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2777
|
-
const _hoisted_1$
|
|
2778
|
-
const _hoisted_2$
|
|
2776
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-59678649"]]);
|
|
2777
|
+
const _hoisted_1$u = { class: "tao-progress" };
|
|
2778
|
+
const _hoisted_2$r = {
|
|
2779
2779
|
key: 0,
|
|
2780
2780
|
class: "tao-progress__side"
|
|
2781
2781
|
};
|
|
2782
|
-
const _hoisted_3$
|
|
2783
|
-
const _hoisted_4$
|
|
2782
|
+
const _hoisted_3$m = { class: "tao-progress__main" };
|
|
2783
|
+
const _hoisted_4$k = {
|
|
2784
2784
|
key: 0,
|
|
2785
2785
|
class: "tao-progress__percentage"
|
|
2786
2786
|
};
|
|
2787
|
-
const _hoisted_5$
|
|
2787
|
+
const _hoisted_5$g = {
|
|
2788
2788
|
key: 1,
|
|
2789
2789
|
class: "tao-progress__side"
|
|
2790
2790
|
};
|
|
2791
|
-
const _hoisted_6$
|
|
2791
|
+
const _hoisted_6$d = {
|
|
2792
2792
|
key: 0,
|
|
2793
2793
|
class: "tao-progress__percentage"
|
|
2794
2794
|
};
|
|
2795
|
-
const _sfc_main$
|
|
2795
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2796
2796
|
...{ name: "TaoProgress" },
|
|
2797
2797
|
__name: "TaoProgress",
|
|
2798
2798
|
props: {
|
|
@@ -2823,16 +2823,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2823
2823
|
() => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
|
|
2824
2824
|
);
|
|
2825
2825
|
return (_ctx, _cache) => {
|
|
2826
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2826
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
2827
2827
|
createElementVNode("div", {
|
|
2828
2828
|
class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
|
|
2829
2829
|
style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
|
|
2830
2830
|
}, [
|
|
2831
|
-
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2831
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
2832
2832
|
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
2833
2833
|
])) : createCommentVNode("", true),
|
|
2834
|
-
createElementVNode("div", _hoisted_3$
|
|
2835
|
-
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2834
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
2835
|
+
showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
|
|
2836
2836
|
createElementVNode("div", {
|
|
2837
2837
|
class: "tao-progress__track",
|
|
2838
2838
|
style: normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -2843,23 +2843,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2843
2843
|
}, null, 6)
|
|
2844
2844
|
], 4)
|
|
2845
2845
|
]),
|
|
2846
|
-
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2846
|
+
_ctx.$slots.right || showEndPercent.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
2847
2847
|
renderSlot(_ctx.$slots, "right", {}, void 0, true),
|
|
2848
|
-
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2848
|
+
showEndPercent.value ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(endPercentLabel.value), 1)) : createCommentVNode("", true)
|
|
2849
2849
|
])) : createCommentVNode("", true)
|
|
2850
2850
|
], 6)
|
|
2851
2851
|
]);
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
2854
2854
|
});
|
|
2855
|
-
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2856
|
-
const _hoisted_1$
|
|
2857
|
-
const _hoisted_2$
|
|
2858
|
-
const _hoisted_3$
|
|
2855
|
+
const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-54c13718"]]);
|
|
2856
|
+
const _hoisted_1$t = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-describedby"];
|
|
2857
|
+
const _hoisted_2$q = ["placeholder"];
|
|
2858
|
+
const _hoisted_3$l = {
|
|
2859
2859
|
key: 1,
|
|
2860
2860
|
class: "tao-slider__value"
|
|
2861
2861
|
};
|
|
2862
|
-
const _sfc_main$
|
|
2862
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2863
2863
|
...{ name: "TaoSlider" },
|
|
2864
2864
|
__name: "TaoSlider",
|
|
2865
2865
|
props: {
|
|
@@ -3076,24 +3076,24 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3076
3076
|
onKeydown: onShadowKeydown,
|
|
3077
3077
|
onPointerdown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
3078
3078
|
}, ["stop"]))
|
|
3079
|
-
}, null, 40, _hoisted_2$
|
|
3079
|
+
}, null, 40, _hoisted_2$q)), [
|
|
3080
3080
|
[vModelText, shadowModel.value]
|
|
3081
|
-
]) : __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3081
|
+
]) : __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$l, [
|
|
3082
3082
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
3083
3083
|
createTextVNode(toDisplayString(__props.modelValue), 1),
|
|
3084
3084
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
3085
3085
|
])) : createCommentVNode("", true)
|
|
3086
|
-
], 42, _hoisted_1$
|
|
3086
|
+
], 42, _hoisted_1$t);
|
|
3087
3087
|
};
|
|
3088
3088
|
}
|
|
3089
3089
|
});
|
|
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$
|
|
3090
|
+
const TaoSlider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-24a38782"]]);
|
|
3091
|
+
const _hoisted_1$s = { class: "tao-file-drop" };
|
|
3092
|
+
const _hoisted_2$p = { class: "tao-file-drop__row" };
|
|
3093
|
+
const _hoisted_3$k = ["aria-label"];
|
|
3094
|
+
const _hoisted_4$j = { "aria-hidden": "true" };
|
|
3095
|
+
const _hoisted_5$f = ["accept", "multiple"];
|
|
3096
|
+
const _hoisted_6$c = {
|
|
3097
3097
|
key: 0,
|
|
3098
3098
|
class: "tao-file-drop__list"
|
|
3099
3099
|
};
|
|
@@ -3101,7 +3101,7 @@ const _hoisted_7$a = { class: "tao-file-drop__name" };
|
|
|
3101
3101
|
const _hoisted_8$9 = { class: "tao-file-drop__meta" };
|
|
3102
3102
|
const _hoisted_9$4 = ["aria-label", "onClick"];
|
|
3103
3103
|
const _hoisted_10$4 = { "aria-hidden": "true" };
|
|
3104
|
-
const _sfc_main$
|
|
3104
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
3105
3105
|
...{ name: "TaoFileDrop" },
|
|
3106
3106
|
__name: "TaoFileDrop",
|
|
3107
3107
|
props: {
|
|
@@ -3232,8 +3232,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3232
3232
|
});
|
|
3233
3233
|
onBeforeUnmount(() => stopFocusLoss == null ? void 0 : stopFocusLoss());
|
|
3234
3234
|
return (_ctx, _cache) => {
|
|
3235
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3236
|
-
createElementVNode("div", _hoisted_2$
|
|
3235
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
3236
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
3237
3237
|
__props.showClear && __props.modelValue.length ? (openBlock(), createElementBlock("button", {
|
|
3238
3238
|
key: 0,
|
|
3239
3239
|
type: "button",
|
|
@@ -3241,12 +3241,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3241
3241
|
"aria-label": __props.clearLabel,
|
|
3242
3242
|
onClick: requestClear
|
|
3243
3243
|
}, [
|
|
3244
|
-
createElementVNode("span", _hoisted_4$
|
|
3244
|
+
createElementVNode("span", _hoisted_4$j, [
|
|
3245
3245
|
renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
3246
3246
|
_cache[1] || (_cache[1] = createTextVNode("✕", -1))
|
|
3247
3247
|
], true)
|
|
3248
3248
|
])
|
|
3249
|
-
], 8, _hoisted_3$
|
|
3249
|
+
], 8, _hoisted_3$k)) : createCommentVNode("", true),
|
|
3250
3250
|
createElementVNode("label", {
|
|
3251
3251
|
class: normalizeClass(["tao-file-drop__zone", [`tao-file-drop__zone--${__props.size}`, { "tao-file-drop__zone--dragging": isDragging.value }]]),
|
|
3252
3252
|
onDragover: handleDragOver,
|
|
@@ -3266,10 +3266,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3266
3266
|
onChange: handleFileSelect,
|
|
3267
3267
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
3268
3268
|
}, ["stop"]))
|
|
3269
|
-
}, null, 40, _hoisted_5$
|
|
3269
|
+
}, null, 40, _hoisted_5$f)
|
|
3270
3270
|
], 34)
|
|
3271
3271
|
]),
|
|
3272
|
-
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
3272
|
+
__props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_6$c, [
|
|
3273
3273
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
3274
3274
|
return openBlock(), createElementBlock("li", {
|
|
3275
3275
|
key: fileKey(file, index),
|
|
@@ -3296,15 +3296,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3296
3296
|
};
|
|
3297
3297
|
}
|
|
3298
3298
|
});
|
|
3299
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3300
|
-
const _hoisted_1$
|
|
3301
|
-
const _hoisted_2$
|
|
3299
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-4b36e2a3"]]);
|
|
3300
|
+
const _hoisted_1$r = ["aria-expanded", "aria-label"];
|
|
3301
|
+
const _hoisted_2$o = {
|
|
3302
3302
|
key: 1,
|
|
3303
3303
|
"aria-hidden": "true"
|
|
3304
3304
|
};
|
|
3305
|
-
const _hoisted_3$
|
|
3306
|
-
const _hoisted_4$
|
|
3307
|
-
const _sfc_main$
|
|
3305
|
+
const _hoisted_3$j = ["onClick", "onMouseenter"];
|
|
3306
|
+
const _hoisted_4$i = { key: 1 };
|
|
3307
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
3308
3308
|
...{ name: "TaoDropdownMenu" },
|
|
3309
3309
|
__name: "TaoDropdownMenu",
|
|
3310
3310
|
props: {
|
|
@@ -3441,12 +3441,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3441
3441
|
"aria-label": _ctx.$slots.button ? void 0 : __props.menuLabel,
|
|
3442
3442
|
onClick: toggleMenu
|
|
3443
3443
|
}, [
|
|
3444
|
-
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3444
|
+
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
3445
3445
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3446
3446
|
_cache[0] || (_cache[0] = createTextVNode("⋮", -1))
|
|
3447
3447
|
], true)
|
|
3448
3448
|
]))
|
|
3449
|
-
], 8, _hoisted_1$
|
|
3449
|
+
], 8, _hoisted_1$r),
|
|
3450
3450
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3451
3451
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
3452
3452
|
key: 0,
|
|
@@ -3471,8 +3471,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3471
3471
|
id: action.id,
|
|
3472
3472
|
ico: action.ico,
|
|
3473
3473
|
text: action.name
|
|
3474
|
-
}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
3475
|
-
], 42, _hoisted_3$
|
|
3474
|
+
}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString(action.name), 1))
|
|
3475
|
+
], 42, _hoisted_3$j);
|
|
3476
3476
|
}), 128))
|
|
3477
3477
|
], 36)) : createCommentVNode("", true)
|
|
3478
3478
|
]))
|
|
@@ -3480,10 +3480,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3480
3480
|
};
|
|
3481
3481
|
}
|
|
3482
3482
|
});
|
|
3483
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3484
|
-
const _hoisted_1$
|
|
3485
|
-
const _hoisted_2$
|
|
3486
|
-
const _sfc_main$
|
|
3483
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-cbfa7294"]]);
|
|
3484
|
+
const _hoisted_1$q = ["aria-invalid", "aria-describedby"];
|
|
3485
|
+
const _hoisted_2$n = ["id", "value", "placeholder", "type", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
3486
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
3487
3487
|
...{ name: "TaoPinCode" },
|
|
3488
3488
|
__name: "TaoPinCode",
|
|
3489
3489
|
props: {
|
|
@@ -3692,14 +3692,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3692
3692
|
onKeydown: ($event) => onKeydown($event, index),
|
|
3693
3693
|
onFocus: ($event) => onFocus(index),
|
|
3694
3694
|
onBlur
|
|
3695
|
-
}, null, 42, _hoisted_2$
|
|
3695
|
+
}, null, 42, _hoisted_2$n);
|
|
3696
3696
|
}), 128))
|
|
3697
|
-
], 8, _hoisted_1$
|
|
3697
|
+
], 8, _hoisted_1$q);
|
|
3698
3698
|
};
|
|
3699
3699
|
}
|
|
3700
3700
|
});
|
|
3701
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3702
|
-
const _sfc_main$
|
|
3701
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-44474500"]]);
|
|
3702
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
3703
3703
|
...{ name: "TaoLink" },
|
|
3704
3704
|
__name: "TaoLink",
|
|
3705
3705
|
props: {
|
|
@@ -3741,8 +3741,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3741
3741
|
};
|
|
3742
3742
|
}
|
|
3743
3743
|
});
|
|
3744
|
-
const _hoisted_1$
|
|
3745
|
-
const _sfc_main$
|
|
3744
|
+
const _hoisted_1$p = ["for"];
|
|
3745
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
3746
3746
|
...{ name: "TaoFormField" },
|
|
3747
3747
|
__name: "TaoFormField",
|
|
3748
3748
|
props: {
|
|
@@ -3792,7 +3792,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3792
3792
|
class: "tao-form-field__label",
|
|
3793
3793
|
for: unref(id),
|
|
3794
3794
|
onClick: onLabelClick
|
|
3795
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
3795
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$p)) : createCommentVNode("", true),
|
|
3796
3796
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
3797
3797
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
3798
3798
|
key: 1,
|
|
@@ -3807,12 +3807,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3807
3807
|
};
|
|
3808
3808
|
}
|
|
3809
3809
|
});
|
|
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$
|
|
3810
|
+
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-edd0be31"]]);
|
|
3811
|
+
const _hoisted_1$o = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
3812
|
+
const _hoisted_2$m = { class: "tao-select__value" };
|
|
3813
|
+
const _hoisted_3$i = ["aria-activedescendant"];
|
|
3814
|
+
const _hoisted_4$h = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
|
|
3815
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3816
3816
|
...{ name: "TaoSelect" },
|
|
3817
3817
|
__name: "TaoSelect",
|
|
3818
3818
|
props: {
|
|
@@ -4030,14 +4030,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
4030
4030
|
onClick: toggle,
|
|
4031
4031
|
onKeydown: onTriggerKeydown
|
|
4032
4032
|
}, [
|
|
4033
|
-
createElementVNode("span", _hoisted_2$
|
|
4033
|
+
createElementVNode("span", _hoisted_2$m, toDisplayString(((_a = selected.value) == null ? void 0 : _a.label) ?? __props.placeholder), 1),
|
|
4034
4034
|
createElementVNode("span", {
|
|
4035
4035
|
class: normalizeClass(["tao-select__chevron", { "tao-select__chevron--custom": _ctx.$slots.chevron }]),
|
|
4036
4036
|
"aria-hidden": "true"
|
|
4037
4037
|
}, [
|
|
4038
4038
|
renderSlot(_ctx.$slots, "chevron", {}, void 0, true)
|
|
4039
4039
|
], 2)
|
|
4040
|
-
], 42, _hoisted_1$
|
|
4040
|
+
], 42, _hoisted_1$o),
|
|
4041
4041
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4042
4042
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
4043
4043
|
key: 0,
|
|
@@ -4073,9 +4073,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
4073
4073
|
}, ["prevent"])),
|
|
4074
4074
|
onClick: ($event) => selectOption(option),
|
|
4075
4075
|
onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
|
|
4076
|
-
}, toDisplayString(option.label), 43, _hoisted_4$
|
|
4076
|
+
}, toDisplayString(option.label), 43, _hoisted_4$h);
|
|
4077
4077
|
}), 128))
|
|
4078
|
-
], 40, _hoisted_3$
|
|
4078
|
+
], 40, _hoisted_3$i),
|
|
4079
4079
|
selected.value ? (openBlock(), createElementBlock("button", {
|
|
4080
4080
|
key: 0,
|
|
4081
4081
|
type: "button",
|
|
@@ -4094,14 +4094,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
4094
4094
|
};
|
|
4095
4095
|
}
|
|
4096
4096
|
});
|
|
4097
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4098
|
-
const _hoisted_1$
|
|
4099
|
-
const _hoisted_2$
|
|
4097
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-d9b336d8"]]);
|
|
4098
|
+
const _hoisted_1$n = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
|
|
4099
|
+
const _hoisted_2$l = {
|
|
4100
4100
|
key: 0,
|
|
4101
4101
|
class: "tao-combobox__empty"
|
|
4102
4102
|
};
|
|
4103
|
-
const _hoisted_3$
|
|
4104
|
-
const _sfc_main$
|
|
4103
|
+
const _hoisted_3$h = ["id", "aria-selected", "aria-disabled", "data-tao-combobox-index", "onClick", "onMouseenter"];
|
|
4104
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
4105
4105
|
...{ name: "TaoCombobox" },
|
|
4106
4106
|
__name: "TaoCombobox",
|
|
4107
4107
|
props: {
|
|
@@ -4522,7 +4522,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4522
4522
|
onFocus,
|
|
4523
4523
|
onBlur,
|
|
4524
4524
|
onKeydown: onInputKeydown
|
|
4525
|
-
}, null, 40, _hoisted_1$
|
|
4525
|
+
}, null, 40, _hoisted_1$n),
|
|
4526
4526
|
createElementVNode("span", {
|
|
4527
4527
|
class: normalizeClass(["tao-combobox__chevron", { "tao-combobox__chevron--custom": _ctx.$slots.chevron }]),
|
|
4528
4528
|
"aria-hidden": "true"
|
|
@@ -4545,7 +4545,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4545
4545
|
class: "tao-combobox__list",
|
|
4546
4546
|
role: "listbox"
|
|
4547
4547
|
}, [
|
|
4548
|
-
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$
|
|
4548
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_2$l, [
|
|
4549
4549
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
4550
4550
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
4551
4551
|
], true)
|
|
@@ -4575,7 +4575,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4575
4575
|
], true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4576
4576
|
createTextVNode(toDisplayString(row.option.label), 1)
|
|
4577
4577
|
], 64))
|
|
4578
|
-
], 42, _hoisted_3$
|
|
4578
|
+
], 42, _hoisted_3$h);
|
|
4579
4579
|
}), 128))
|
|
4580
4580
|
], 512),
|
|
4581
4581
|
selected.value ? (openBlock(), createElementBlock("button", {
|
|
@@ -4595,7 +4595,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4595
4595
|
};
|
|
4596
4596
|
}
|
|
4597
4597
|
});
|
|
4598
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4598
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-131d254d"]]);
|
|
4599
4599
|
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
4600
4600
|
function formatTaoDateIso(parts) {
|
|
4601
4601
|
return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
|
|
@@ -4738,15 +4738,15 @@ function buildTaoDateGrid(year, month) {
|
|
|
4738
4738
|
};
|
|
4739
4739
|
});
|
|
4740
4740
|
}
|
|
4741
|
-
const _hoisted_1$
|
|
4742
|
-
const _hoisted_2$
|
|
4743
|
-
const _hoisted_3$
|
|
4741
|
+
const _hoisted_1$m = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
4742
|
+
const _hoisted_2$k = { class: "tao-date__value" };
|
|
4743
|
+
const _hoisted_3$g = {
|
|
4744
4744
|
class: "tao-date__icon",
|
|
4745
4745
|
"aria-hidden": "true"
|
|
4746
4746
|
};
|
|
4747
|
-
const _hoisted_4$
|
|
4748
|
-
const _hoisted_5$
|
|
4749
|
-
const _hoisted_6$
|
|
4747
|
+
const _hoisted_4$g = ["aria-label"];
|
|
4748
|
+
const _hoisted_5$e = { class: "tao-date__header" };
|
|
4749
|
+
const _hoisted_6$b = ["aria-label"];
|
|
4750
4750
|
const _hoisted_7$9 = { "aria-hidden": "true" };
|
|
4751
4751
|
const _hoisted_8$8 = { class: "tao-date__month" };
|
|
4752
4752
|
const _hoisted_9$3 = ["aria-label"];
|
|
@@ -4762,7 +4762,7 @@ const _hoisted_12$1 = {
|
|
|
4762
4762
|
const _hoisted_13$1 = ["aria-label", "aria-selected", "disabled", "onClick"];
|
|
4763
4763
|
const _hoisted_14$1 = { class: "tao-date__footer" };
|
|
4764
4764
|
const _hoisted_15 = ["disabled"];
|
|
4765
|
-
const _sfc_main$
|
|
4765
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
4766
4766
|
...{ name: "TaoDate" },
|
|
4767
4767
|
__name: "TaoDate",
|
|
4768
4768
|
props: {
|
|
@@ -4991,8 +4991,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4991
4991
|
onClick: toggle,
|
|
4992
4992
|
onKeydown: onTriggerKeydown
|
|
4993
4993
|
}, [
|
|
4994
|
-
createElementVNode("span", _hoisted_2$
|
|
4995
|
-
createElementVNode("span", _hoisted_3$
|
|
4994
|
+
createElementVNode("span", _hoisted_2$k, toDisplayString(displayLabel.value || __props.placeholder), 1),
|
|
4995
|
+
createElementVNode("span", _hoisted_3$g, [
|
|
4996
4996
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4997
4997
|
_cache[4] || (_cache[4] = createElementVNode("svg", {
|
|
4998
4998
|
viewBox: "0 0 16 16",
|
|
@@ -5020,7 +5020,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5020
5020
|
], -1))
|
|
5021
5021
|
], true)
|
|
5022
5022
|
])
|
|
5023
|
-
], 42, _hoisted_1$
|
|
5023
|
+
], 42, _hoisted_1$m),
|
|
5024
5024
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5025
5025
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
5026
5026
|
key: 0,
|
|
@@ -5034,7 +5034,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5034
5034
|
style: normalizeStyle(panelStyle.value),
|
|
5035
5035
|
onKeydown: onPanelKeydown
|
|
5036
5036
|
}, [
|
|
5037
|
-
createElementVNode("div", _hoisted_5$
|
|
5037
|
+
createElementVNode("div", _hoisted_5$e, [
|
|
5038
5038
|
createElementVNode("button", {
|
|
5039
5039
|
type: "button",
|
|
5040
5040
|
class: "tao-date__nav",
|
|
@@ -5060,7 +5060,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5060
5060
|
], -1))
|
|
5061
5061
|
], true)
|
|
5062
5062
|
])
|
|
5063
|
-
], 8, _hoisted_6$
|
|
5063
|
+
], 8, _hoisted_6$b),
|
|
5064
5064
|
createElementVNode("p", _hoisted_8$8, toDisplayString(monthLabel.value), 1),
|
|
5065
5065
|
createElementVNode("button", {
|
|
5066
5066
|
type: "button",
|
|
@@ -5138,22 +5138,22 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5138
5138
|
], true)
|
|
5139
5139
|
])) : createCommentVNode("", true)
|
|
5140
5140
|
])
|
|
5141
|
-
], 44, _hoisted_4$
|
|
5141
|
+
], 44, _hoisted_4$g)) : createCommentVNode("", true)
|
|
5142
5142
|
]))
|
|
5143
5143
|
], 2);
|
|
5144
5144
|
};
|
|
5145
5145
|
}
|
|
5146
5146
|
});
|
|
5147
|
-
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5148
|
-
const _hoisted_1$
|
|
5149
|
-
const _hoisted_2$
|
|
5150
|
-
const _hoisted_3$
|
|
5147
|
+
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ebd437a8"]]);
|
|
5148
|
+
const _hoisted_1$l = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
5149
|
+
const _hoisted_2$j = { class: "tao-date-range__value" };
|
|
5150
|
+
const _hoisted_3$f = {
|
|
5151
5151
|
class: "tao-date-range__icon",
|
|
5152
5152
|
"aria-hidden": "true"
|
|
5153
5153
|
};
|
|
5154
|
-
const _hoisted_4$
|
|
5155
|
-
const _hoisted_5$
|
|
5156
|
-
const _hoisted_6$
|
|
5154
|
+
const _hoisted_4$f = ["aria-label"];
|
|
5155
|
+
const _hoisted_5$d = { class: "tao-date__header" };
|
|
5156
|
+
const _hoisted_6$a = ["aria-label"];
|
|
5157
5157
|
const _hoisted_7$8 = { "aria-hidden": "true" };
|
|
5158
5158
|
const _hoisted_8$7 = { class: "tao-date__month" };
|
|
5159
5159
|
const _hoisted_9$2 = ["aria-label"];
|
|
@@ -5165,7 +5165,7 @@ const _hoisted_11$1 = {
|
|
|
5165
5165
|
const _hoisted_12 = ["aria-label", "aria-selected", "disabled", "onMouseenter", "onClick"];
|
|
5166
5166
|
const _hoisted_13 = { class: "tao-date__footer" };
|
|
5167
5167
|
const _hoisted_14 = ["disabled"];
|
|
5168
|
-
const _sfc_main$
|
|
5168
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
5169
5169
|
...{ name: "TaoDateRange" },
|
|
5170
5170
|
__name: "TaoDateRange",
|
|
5171
5171
|
props: {
|
|
@@ -5448,8 +5448,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5448
5448
|
onClick: toggle,
|
|
5449
5449
|
onKeydown: onTriggerKeydown
|
|
5450
5450
|
}, [
|
|
5451
|
-
createElementVNode("span", _hoisted_2$
|
|
5452
|
-
createElementVNode("span", _hoisted_3$
|
|
5451
|
+
createElementVNode("span", _hoisted_2$j, toDisplayString(displayLabel.value || __props.placeholder), 1),
|
|
5452
|
+
createElementVNode("span", _hoisted_3$f, [
|
|
5453
5453
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5454
5454
|
_cache[3] || (_cache[3] = createElementVNode("svg", {
|
|
5455
5455
|
viewBox: "0 0 16 16",
|
|
@@ -5477,7 +5477,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5477
5477
|
], -1))
|
|
5478
5478
|
], true)
|
|
5479
5479
|
])
|
|
5480
|
-
], 42, _hoisted_1$
|
|
5480
|
+
], 42, _hoisted_1$l),
|
|
5481
5481
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5482
5482
|
open.value ? (openBlock(), createElementBlock("div", {
|
|
5483
5483
|
key: 0,
|
|
@@ -5491,7 +5491,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5491
5491
|
style: normalizeStyle(panelStyle.value),
|
|
5492
5492
|
onKeydown: onPanelKeydown
|
|
5493
5493
|
}, [
|
|
5494
|
-
createElementVNode("div", _hoisted_5$
|
|
5494
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
5495
5495
|
createElementVNode("button", {
|
|
5496
5496
|
type: "button",
|
|
5497
5497
|
class: "tao-date__nav",
|
|
@@ -5517,7 +5517,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5517
5517
|
], -1))
|
|
5518
5518
|
], true)
|
|
5519
5519
|
])
|
|
5520
|
-
], 8, _hoisted_6$
|
|
5520
|
+
], 8, _hoisted_6$a),
|
|
5521
5521
|
createElementVNode("p", _hoisted_8$7, toDisplayString(monthLabel.value), 1),
|
|
5522
5522
|
createElementVNode("button", {
|
|
5523
5523
|
type: "button",
|
|
@@ -5604,24 +5604,24 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
5604
5604
|
], true)
|
|
5605
5605
|
])) : createCommentVNode("", true)
|
|
5606
5606
|
])
|
|
5607
|
-
], 44, _hoisted_4$
|
|
5607
|
+
], 44, _hoisted_4$f)) : createCommentVNode("", true)
|
|
5608
5608
|
]))
|
|
5609
5609
|
], 2);
|
|
5610
5610
|
};
|
|
5611
5611
|
}
|
|
5612
5612
|
});
|
|
5613
|
-
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5614
|
-
const _hoisted_1$
|
|
5615
|
-
const _hoisted_2$
|
|
5616
|
-
const _hoisted_3$
|
|
5613
|
+
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-aa589793"]]);
|
|
5614
|
+
const _hoisted_1$k = ["for"];
|
|
5615
|
+
const _hoisted_2$i = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
5616
|
+
const _hoisted_3$e = {
|
|
5617
5617
|
key: 0,
|
|
5618
5618
|
class: "tao-switch__label"
|
|
5619
5619
|
};
|
|
5620
|
-
const _hoisted_4$
|
|
5620
|
+
const _hoisted_4$e = {
|
|
5621
5621
|
key: 1,
|
|
5622
5622
|
class: "tao-switch__label"
|
|
5623
5623
|
};
|
|
5624
|
-
const _sfc_main$
|
|
5624
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
5625
5625
|
...{ name: "TaoSwitch" },
|
|
5626
5626
|
__name: "TaoSwitch",
|
|
5627
5627
|
props: {
|
|
@@ -5662,33 +5662,33 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5662
5662
|
"aria-invalid": invalid.value || void 0,
|
|
5663
5663
|
"aria-describedby": describedBy.value,
|
|
5664
5664
|
onChange: toggle
|
|
5665
|
-
}, null, 40, _hoisted_2$
|
|
5665
|
+
}, null, 40, _hoisted_2$i),
|
|
5666
5666
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
5667
5667
|
class: "tao-switch__track",
|
|
5668
5668
|
"aria-hidden": "true"
|
|
5669
5669
|
}, [
|
|
5670
5670
|
createElementVNode("span", { class: "tao-switch__thumb" })
|
|
5671
5671
|
], -1)),
|
|
5672
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5672
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(__props.label), 1)) : _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$e, [
|
|
5673
5673
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5674
5674
|
])) : createCommentVNode("", true)
|
|
5675
|
-
], 10, _hoisted_1$
|
|
5675
|
+
], 10, _hoisted_1$k);
|
|
5676
5676
|
};
|
|
5677
5677
|
}
|
|
5678
5678
|
});
|
|
5679
|
-
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5679
|
+
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-17ce5000"]]);
|
|
5680
5680
|
const radioGroupKey = Symbol("taoRadioGroup");
|
|
5681
|
-
const _hoisted_1$
|
|
5682
|
-
const _hoisted_2$
|
|
5683
|
-
const _hoisted_3$
|
|
5681
|
+
const _hoisted_1$j = ["for"];
|
|
5682
|
+
const _hoisted_2$h = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-describedby"];
|
|
5683
|
+
const _hoisted_3$d = {
|
|
5684
5684
|
key: 0,
|
|
5685
5685
|
class: "tao-radio__label"
|
|
5686
5686
|
};
|
|
5687
|
-
const _hoisted_4$
|
|
5687
|
+
const _hoisted_4$d = {
|
|
5688
5688
|
key: 1,
|
|
5689
5689
|
class: "tao-radio__label"
|
|
5690
5690
|
};
|
|
5691
|
-
const _sfc_main$
|
|
5691
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
5692
5692
|
...{ name: "TaoRadio" },
|
|
5693
5693
|
__name: "TaoRadio",
|
|
5694
5694
|
props: {
|
|
@@ -5741,25 +5741,25 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5741
5741
|
"aria-invalid": !unref(group) && invalid.value || void 0,
|
|
5742
5742
|
"aria-describedby": describedBy.value,
|
|
5743
5743
|
onChange
|
|
5744
|
-
}, null, 40, _hoisted_2$
|
|
5744
|
+
}, null, 40, _hoisted_2$h),
|
|
5745
5745
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
5746
5746
|
class: "tao-radio__dot",
|
|
5747
5747
|
"aria-hidden": "true"
|
|
5748
5748
|
}, null, -1)),
|
|
5749
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5749
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
5750
5750
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5751
5751
|
]))
|
|
5752
|
-
], 10, _hoisted_1$
|
|
5752
|
+
], 10, _hoisted_1$j);
|
|
5753
5753
|
};
|
|
5754
5754
|
}
|
|
5755
5755
|
});
|
|
5756
|
-
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5757
|
-
const _hoisted_1$
|
|
5758
|
-
const _hoisted_2$
|
|
5756
|
+
const TaoRadio = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-e79d1fb6"]]);
|
|
5757
|
+
const _hoisted_1$i = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
5758
|
+
const _hoisted_2$g = {
|
|
5759
5759
|
key: 0,
|
|
5760
5760
|
class: "tao-radio-group__legend"
|
|
5761
5761
|
};
|
|
5762
|
-
const _sfc_main$
|
|
5762
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
5763
5763
|
...{ name: "TaoRadioGroup" },
|
|
5764
5764
|
__name: "TaoRadioGroup",
|
|
5765
5765
|
props: {
|
|
@@ -5801,20 +5801,20 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5801
5801
|
"aria-invalid": invalid.value || void 0,
|
|
5802
5802
|
"aria-labelledby": labelledBy.value
|
|
5803
5803
|
}, [
|
|
5804
|
-
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
5804
|
+
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$g, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
5805
5805
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5806
|
-
], 10, _hoisted_1$
|
|
5806
|
+
], 10, _hoisted_1$i);
|
|
5807
5807
|
};
|
|
5808
5808
|
}
|
|
5809
5809
|
});
|
|
5810
|
-
const TaoRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5810
|
+
const TaoRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6f6fa977"]]);
|
|
5811
5811
|
const segmentedKey = Symbol("taoSegmented");
|
|
5812
|
-
const _hoisted_1$
|
|
5813
|
-
const _hoisted_2$
|
|
5812
|
+
const _hoisted_1$h = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
|
|
5813
|
+
const _hoisted_2$f = {
|
|
5814
5814
|
key: 0,
|
|
5815
5815
|
class: "tao-segmented__legend"
|
|
5816
5816
|
};
|
|
5817
|
-
const _sfc_main$
|
|
5817
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
5818
5818
|
...{ name: "TaoSegmented" },
|
|
5819
5819
|
__name: "TaoSegmented",
|
|
5820
5820
|
props: {
|
|
@@ -5925,7 +5925,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
5925
5925
|
"aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
|
|
5926
5926
|
id: (_a = unref(field)) == null ? void 0 : _a.id
|
|
5927
5927
|
}, [
|
|
5928
|
-
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
5928
|
+
__props.legend ? (openBlock(), createElementBlock("legend", _hoisted_2$f, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
5929
5929
|
createElementVNode("div", {
|
|
5930
5930
|
ref_key: "trackRef",
|
|
5931
5931
|
ref: trackRef,
|
|
@@ -5938,24 +5938,24 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
5938
5938
|
}, null, 4),
|
|
5939
5939
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5940
5940
|
], 512)
|
|
5941
|
-
], 10, _hoisted_1$
|
|
5941
|
+
], 10, _hoisted_1$h);
|
|
5942
5942
|
};
|
|
5943
5943
|
}
|
|
5944
5944
|
});
|
|
5945
|
-
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5946
|
-
const _hoisted_1$
|
|
5947
|
-
const _hoisted_2$
|
|
5948
|
-
const _hoisted_3$
|
|
5949
|
-
const _hoisted_4$
|
|
5945
|
+
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-af757a32"]]);
|
|
5946
|
+
const _hoisted_1$g = ["for"];
|
|
5947
|
+
const _hoisted_2$e = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
5948
|
+
const _hoisted_3$c = { class: "tao-segmented-option__face" };
|
|
5949
|
+
const _hoisted_4$c = {
|
|
5950
5950
|
key: 0,
|
|
5951
5951
|
class: "tao-segmented-option__icon",
|
|
5952
5952
|
"aria-hidden": "true"
|
|
5953
5953
|
};
|
|
5954
|
-
const _hoisted_5$
|
|
5954
|
+
const _hoisted_5$c = {
|
|
5955
5955
|
key: 1,
|
|
5956
5956
|
class: "tao-segmented-option__label"
|
|
5957
5957
|
};
|
|
5958
|
-
const _hoisted_6$
|
|
5958
|
+
const _hoisted_6$9 = {
|
|
5959
5959
|
key: 2,
|
|
5960
5960
|
class: "tao-segmented-option__sr"
|
|
5961
5961
|
};
|
|
@@ -5963,7 +5963,7 @@ const _hoisted_7$7 = {
|
|
|
5963
5963
|
key: 3,
|
|
5964
5964
|
class: "tao-segmented-option__count"
|
|
5965
5965
|
};
|
|
5966
|
-
const _sfc_main$
|
|
5966
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
5967
5967
|
...{ name: "TaoSegmentedOption" },
|
|
5968
5968
|
__name: "TaoSegmentedOption",
|
|
5969
5969
|
props: {
|
|
@@ -6037,38 +6037,38 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
6037
6037
|
disabled: isDisabled.value,
|
|
6038
6038
|
"aria-label": __props.ariaLabel,
|
|
6039
6039
|
onChange
|
|
6040
|
-
}, null, 40, _hoisted_2$
|
|
6041
|
-
createElementVNode("span", _hoisted_3$
|
|
6042
|
-
__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
6040
|
+
}, null, 40, _hoisted_2$e),
|
|
6041
|
+
createElementVNode("span", _hoisted_3$c, [
|
|
6042
|
+
__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$c, [
|
|
6043
6043
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6044
6044
|
createTextVNode(toDisplayString(__props.icon), 1)
|
|
6045
6045
|
], true)
|
|
6046
6046
|
])) : createCommentVNode("", true),
|
|
6047
|
-
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
6047
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_5$c, [
|
|
6048
6048
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6049
6049
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
6050
6050
|
], true)
|
|
6051
|
-
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
6051
|
+
])) : __props.ariaLabel ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(__props.ariaLabel), 1)) : createCommentVNode("", true),
|
|
6052
6052
|
countLabel.value ? (openBlock(), createElementBlock("span", _hoisted_7$7, toDisplayString(countLabel.value), 1)) : createCommentVNode("", true)
|
|
6053
6053
|
])
|
|
6054
|
-
], 10, _hoisted_1$
|
|
6054
|
+
], 10, _hoisted_1$g);
|
|
6055
6055
|
};
|
|
6056
6056
|
}
|
|
6057
6057
|
});
|
|
6058
|
-
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6059
|
-
const _hoisted_1$
|
|
6060
|
-
const _hoisted_2$
|
|
6061
|
-
const _hoisted_3$
|
|
6058
|
+
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-1a9357a1"]]);
|
|
6059
|
+
const _hoisted_1$f = ["role", "aria-live"];
|
|
6060
|
+
const _hoisted_2$d = { class: "tao-alert__body" };
|
|
6061
|
+
const _hoisted_3$b = {
|
|
6062
6062
|
key: 0,
|
|
6063
6063
|
class: "tao-alert__title"
|
|
6064
6064
|
};
|
|
6065
|
-
const _hoisted_4$
|
|
6065
|
+
const _hoisted_4$b = {
|
|
6066
6066
|
key: 1,
|
|
6067
6067
|
class: "tao-alert__message"
|
|
6068
6068
|
};
|
|
6069
|
-
const _hoisted_5$
|
|
6070
|
-
const _hoisted_6$
|
|
6071
|
-
const _sfc_main$
|
|
6069
|
+
const _hoisted_5$b = ["aria-label"];
|
|
6070
|
+
const _hoisted_6$8 = { "aria-hidden": "true" };
|
|
6071
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
6072
6072
|
...{ name: "TaoAlert" },
|
|
6073
6073
|
__name: "TaoAlert",
|
|
6074
6074
|
props: {
|
|
@@ -6089,9 +6089,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
6089
6089
|
role: tone.value === "error" ? "alert" : "status",
|
|
6090
6090
|
"aria-live": live.value
|
|
6091
6091
|
}, [
|
|
6092
|
-
createElementVNode("div", _hoisted_2$
|
|
6093
|
-
__props.title ? (openBlock(), createElementBlock("strong", _hoisted_3$
|
|
6094
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
6092
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
6093
|
+
__props.title ? (openBlock(), createElementBlock("strong", _hoisted_3$b, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
6094
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$b, [
|
|
6095
6095
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6096
6096
|
])) : createCommentVNode("", true)
|
|
6097
6097
|
]),
|
|
@@ -6102,30 +6102,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
6102
6102
|
"aria-label": __props.closeLabel,
|
|
6103
6103
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
6104
6104
|
}, [
|
|
6105
|
-
createElementVNode("span", _hoisted_6$
|
|
6105
|
+
createElementVNode("span", _hoisted_6$8, [
|
|
6106
6106
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
6107
6107
|
_cache[1] || (_cache[1] = createTextVNode("×", -1))
|
|
6108
6108
|
], true)
|
|
6109
6109
|
])
|
|
6110
|
-
], 8, _hoisted_5$
|
|
6111
|
-
], 10, _hoisted_1$
|
|
6110
|
+
], 8, _hoisted_5$b)) : createCommentVNode("", true)
|
|
6111
|
+
], 10, _hoisted_1$f);
|
|
6112
6112
|
};
|
|
6113
6113
|
}
|
|
6114
6114
|
});
|
|
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$
|
|
6115
|
+
const TaoAlert = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1a1dbef3"]]);
|
|
6116
|
+
const _hoisted_1$e = { key: 0 };
|
|
6117
|
+
const _hoisted_2$c = ["aria-sort"];
|
|
6118
|
+
const _hoisted_3$a = ["onClick"];
|
|
6119
|
+
const _hoisted_4$a = { key: 1 };
|
|
6120
|
+
const _hoisted_5$a = { key: 0 };
|
|
6121
|
+
const _hoisted_6$7 = ["colspan"];
|
|
6122
6122
|
const _hoisted_7$6 = ["onClick"];
|
|
6123
6123
|
const _hoisted_8$6 = {
|
|
6124
6124
|
key: 0,
|
|
6125
6125
|
class: "tao-table__loading",
|
|
6126
6126
|
"aria-busy": "true"
|
|
6127
6127
|
};
|
|
6128
|
-
const _sfc_main$
|
|
6128
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
6129
6129
|
...{ name: "TaoTable" },
|
|
6130
6130
|
__name: "TaoTable",
|
|
6131
6131
|
props: {
|
|
@@ -6206,7 +6206,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6206
6206
|
"tao-table--sticky": __props.sticky
|
|
6207
6207
|
}])
|
|
6208
6208
|
}, [
|
|
6209
|
-
__props.caption ? (openBlock(), createElementBlock("caption", _hoisted_1$
|
|
6209
|
+
__props.caption ? (openBlock(), createElementBlock("caption", _hoisted_1$e, toDisplayString(__props.caption), 1)) : createCommentVNode("", true),
|
|
6210
6210
|
createElementVNode("thead", null, [
|
|
6211
6211
|
createElementVNode("tr", null, [
|
|
6212
6212
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
@@ -6230,13 +6230,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6230
6230
|
}]),
|
|
6231
6231
|
"aria-hidden": "true"
|
|
6232
6232
|
}, null, 2)
|
|
6233
|
-
], 8, _hoisted_3$
|
|
6234
|
-
], 12, _hoisted_2$
|
|
6233
|
+
], 8, _hoisted_3$a)) : (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(column.label), 1))
|
|
6234
|
+
], 12, _hoisted_2$c);
|
|
6235
6235
|
}), 128))
|
|
6236
6236
|
])
|
|
6237
6237
|
]),
|
|
6238
6238
|
createElementVNode("tbody", null, [
|
|
6239
|
-
isEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_5$
|
|
6239
|
+
isEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_5$a, [
|
|
6240
6240
|
createElementVNode("td", {
|
|
6241
6241
|
class: "tao-table__empty",
|
|
6242
6242
|
colspan: colCount.value
|
|
@@ -6244,7 +6244,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6244
6244
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
6245
6245
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
6246
6246
|
], true)
|
|
6247
|
-
], 8, _hoisted_6$
|
|
6247
|
+
], 8, _hoisted_6$7)
|
|
6248
6248
|
])) : createCommentVNode("", true),
|
|
6249
6249
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, index) => {
|
|
6250
6250
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -6286,7 +6286,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6286
6286
|
};
|
|
6287
6287
|
}
|
|
6288
6288
|
});
|
|
6289
|
-
const TaoTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6289
|
+
const TaoTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5ce586b8"]]);
|
|
6290
6290
|
function buildPaginationItems(page, pageCount, siblingCount = 1) {
|
|
6291
6291
|
if (pageCount <= 0) {
|
|
6292
6292
|
return [];
|
|
@@ -6311,15 +6311,15 @@ function buildPaginationItems(page, pageCount, siblingCount = 1) {
|
|
|
6311
6311
|
items.push({ type: "page", page: pageCount });
|
|
6312
6312
|
return items;
|
|
6313
6313
|
}
|
|
6314
|
-
const _hoisted_1$
|
|
6315
|
-
const _hoisted_2$
|
|
6314
|
+
const _hoisted_1$d = ["aria-label"];
|
|
6315
|
+
const _hoisted_2$b = {
|
|
6316
6316
|
key: 0,
|
|
6317
6317
|
class: "tao-pagination__total"
|
|
6318
6318
|
};
|
|
6319
|
-
const _hoisted_3$
|
|
6320
|
-
const _hoisted_4$
|
|
6321
|
-
const _hoisted_5$
|
|
6322
|
-
const _hoisted_6$
|
|
6319
|
+
const _hoisted_3$9 = { class: "tao-pagination__pages" };
|
|
6320
|
+
const _hoisted_4$9 = ["aria-label", "disabled"];
|
|
6321
|
+
const _hoisted_5$9 = { "aria-hidden": "true" };
|
|
6322
|
+
const _hoisted_6$6 = ["aria-label", "disabled", "onClick"];
|
|
6323
6323
|
const _hoisted_7$5 = {
|
|
6324
6324
|
key: 1,
|
|
6325
6325
|
class: "tao-pagination__ellipsis",
|
|
@@ -6328,7 +6328,7 @@ const _hoisted_7$5 = {
|
|
|
6328
6328
|
const _hoisted_8$5 = ["aria-current", "aria-label", "disabled", "onClick"];
|
|
6329
6329
|
const _hoisted_9$1 = ["aria-label", "disabled"];
|
|
6330
6330
|
const _hoisted_10$1 = { "aria-hidden": "true" };
|
|
6331
|
-
const _sfc_main$
|
|
6331
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
6332
6332
|
...{ name: "TaoPagination" },
|
|
6333
6333
|
__name: "TaoPagination",
|
|
6334
6334
|
props: {
|
|
@@ -6381,7 +6381,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6381
6381
|
class: normalizeClass(["tao-pagination", `tao-pagination--${__props.size}`]),
|
|
6382
6382
|
"aria-label": __props.ariaLabel
|
|
6383
6383
|
}, [
|
|
6384
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
6384
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$b, [
|
|
6385
6385
|
renderSlot(_ctx.$slots, "total", {
|
|
6386
6386
|
from: from.value,
|
|
6387
6387
|
to: to.value,
|
|
@@ -6394,7 +6394,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6394
6394
|
], 64))
|
|
6395
6395
|
], true)
|
|
6396
6396
|
])) : createCommentVNode("", true),
|
|
6397
|
-
createElementVNode("div", _hoisted_3$
|
|
6397
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
6398
6398
|
createElementVNode("button", {
|
|
6399
6399
|
type: "button",
|
|
6400
6400
|
class: "tao-pagination__btn",
|
|
@@ -6402,12 +6402,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6402
6402
|
disabled: __props.disabled || current.value <= 1,
|
|
6403
6403
|
onClick: _cache[0] || (_cache[0] = ($event) => goTo(current.value - 1))
|
|
6404
6404
|
}, [
|
|
6405
|
-
createElementVNode("span", _hoisted_5$
|
|
6405
|
+
createElementVNode("span", _hoisted_5$9, [
|
|
6406
6406
|
renderSlot(_ctx.$slots, "prev-icon", {}, () => [
|
|
6407
6407
|
_cache[2] || (_cache[2] = createTextVNode("‹", -1))
|
|
6408
6408
|
], true)
|
|
6409
6409
|
])
|
|
6410
|
-
], 8, _hoisted_4$
|
|
6410
|
+
], 8, _hoisted_4$9),
|
|
6411
6411
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
6412
6412
|
return openBlock(), createElementBlock(Fragment, {
|
|
6413
6413
|
key: item.type === "page" ? item.page : item.id
|
|
@@ -6419,7 +6419,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6419
6419
|
"aria-label": item.id === "left" ? __props.jumpPrevLabel.replace("{n}", String(__props.jump)) : __props.jumpNextLabel.replace("{n}", String(__props.jump)),
|
|
6420
6420
|
disabled: __props.disabled,
|
|
6421
6421
|
onClick: ($event) => goTo(item.id === "left" ? current.value - __props.jump : current.value + __props.jump)
|
|
6422
|
-
}, " … ", 8, _hoisted_6$
|
|
6422
|
+
}, " … ", 8, _hoisted_6$6)) : item.type === "ellipsis" ? (openBlock(), createElementBlock("span", _hoisted_7$5, "…")) : (openBlock(), createElementBlock("button", {
|
|
6423
6423
|
key: 2,
|
|
6424
6424
|
type: "button",
|
|
6425
6425
|
class: normalizeClass(["tao-pagination__btn", { "tao-pagination__btn--current": item.page === current.value }]),
|
|
@@ -6444,29 +6444,29 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6444
6444
|
])
|
|
6445
6445
|
], 8, _hoisted_9$1)
|
|
6446
6446
|
])
|
|
6447
|
-
], 10, _hoisted_1$
|
|
6447
|
+
], 10, _hoisted_1$d);
|
|
6448
6448
|
};
|
|
6449
6449
|
}
|
|
6450
6450
|
});
|
|
6451
|
-
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6452
|
-
const _hoisted_1$
|
|
6453
|
-
const _hoisted_2$
|
|
6451
|
+
const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-37f3d381"]]);
|
|
6452
|
+
const _hoisted_1$c = { class: "tao-empty" };
|
|
6453
|
+
const _hoisted_2$a = {
|
|
6454
6454
|
key: 0,
|
|
6455
6455
|
class: "tao-empty__icon"
|
|
6456
6456
|
};
|
|
6457
|
-
const _hoisted_3$
|
|
6457
|
+
const _hoisted_3$8 = {
|
|
6458
6458
|
key: 1,
|
|
6459
6459
|
class: "tao-empty__title"
|
|
6460
6460
|
};
|
|
6461
|
-
const _hoisted_4$
|
|
6461
|
+
const _hoisted_4$8 = {
|
|
6462
6462
|
key: 2,
|
|
6463
6463
|
class: "tao-empty__text"
|
|
6464
6464
|
};
|
|
6465
|
-
const _hoisted_5$
|
|
6465
|
+
const _hoisted_5$8 = {
|
|
6466
6466
|
key: 3,
|
|
6467
6467
|
class: "tao-empty__action"
|
|
6468
6468
|
};
|
|
6469
|
-
const _sfc_main$
|
|
6469
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
6470
6470
|
...{ name: "TaoEmpty" },
|
|
6471
6471
|
__name: "TaoEmpty",
|
|
6472
6472
|
props: {
|
|
@@ -6474,22 +6474,189 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
6474
6474
|
},
|
|
6475
6475
|
setup(__props) {
|
|
6476
6476
|
return (_ctx, _cache) => {
|
|
6477
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6478
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6477
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
6478
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
6479
6479
|
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
6480
6480
|
])) : createCommentVNode("", true),
|
|
6481
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
6482
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
6481
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_3$8, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
6482
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("p", _hoisted_4$8, [
|
|
6483
6483
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6484
6484
|
])) : createCommentVNode("", true),
|
|
6485
|
-
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
6485
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
6486
6486
|
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
6487
6487
|
])) : createCommentVNode("", true)
|
|
6488
6488
|
]);
|
|
6489
6489
|
};
|
|
6490
6490
|
}
|
|
6491
6491
|
});
|
|
6492
|
-
const TaoEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6492
|
+
const TaoEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-8056884d"]]);
|
|
6493
|
+
const taoListKey = Symbol("taoList");
|
|
6494
|
+
const _hoisted_1$b = ["aria-label"];
|
|
6495
|
+
const _hoisted_2$9 = {
|
|
6496
|
+
key: 0,
|
|
6497
|
+
class: "tao-list__empty"
|
|
6498
|
+
};
|
|
6499
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
6500
|
+
...{ name: "TaoList" },
|
|
6501
|
+
__name: "TaoList",
|
|
6502
|
+
props: {
|
|
6503
|
+
size: { default: "medium" },
|
|
6504
|
+
bordered: { type: Boolean, default: true },
|
|
6505
|
+
divided: { type: Boolean, default: true },
|
|
6506
|
+
maxHeight: {},
|
|
6507
|
+
empty: { type: Boolean, default: false },
|
|
6508
|
+
ariaLabel: { default: "" }
|
|
6509
|
+
},
|
|
6510
|
+
setup(__props) {
|
|
6511
|
+
const props = __props;
|
|
6512
|
+
const size = computed(() => props.size);
|
|
6513
|
+
provide(taoListKey, { size });
|
|
6514
|
+
const listStyle = computed(() => {
|
|
6515
|
+
if (props.maxHeight === void 0 || props.maxHeight === "") {
|
|
6516
|
+
return void 0;
|
|
6517
|
+
}
|
|
6518
|
+
const value = typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight;
|
|
6519
|
+
return { maxHeight: value };
|
|
6520
|
+
});
|
|
6521
|
+
return (_ctx, _cache) => {
|
|
6522
|
+
return openBlock(), createElementBlock("ul", {
|
|
6523
|
+
class: normalizeClass(["tao-list", [
|
|
6524
|
+
`tao-list--${size.value}`,
|
|
6525
|
+
{
|
|
6526
|
+
"tao-list--bordered": __props.bordered,
|
|
6527
|
+
"tao-list--divided": __props.divided,
|
|
6528
|
+
"tao-list--plain": !__props.bordered,
|
|
6529
|
+
"tao-list--empty": __props.empty,
|
|
6530
|
+
"tao-list--scroll": Boolean(__props.maxHeight)
|
|
6531
|
+
}
|
|
6532
|
+
]]),
|
|
6533
|
+
style: normalizeStyle(listStyle.value),
|
|
6534
|
+
"aria-label": __props.ariaLabel || void 0
|
|
6535
|
+
}, [
|
|
6536
|
+
__props.empty ? (openBlock(), createElementBlock("li", _hoisted_2$9, [
|
|
6537
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
6538
|
+
_cache[0] || (_cache[0] = createTextVNode("Ничего нет", -1))
|
|
6539
|
+
], true)
|
|
6540
|
+
])) : renderSlot(_ctx.$slots, "default", {}, void 0, true, 1)
|
|
6541
|
+
], 14, _hoisted_1$b);
|
|
6542
|
+
};
|
|
6543
|
+
}
|
|
6544
|
+
});
|
|
6545
|
+
const TaoList = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-798c83a3"]]);
|
|
6546
|
+
const _hoisted_1$a = ["aria-current", "aria-disabled"];
|
|
6547
|
+
const _hoisted_2$8 = {
|
|
6548
|
+
key: 0,
|
|
6549
|
+
class: "tao-list-item__prefix"
|
|
6550
|
+
};
|
|
6551
|
+
const _hoisted_3$7 = { class: "tao-list-item__text" };
|
|
6552
|
+
const _hoisted_4$7 = { class: "tao-list-item__title" };
|
|
6553
|
+
const _hoisted_5$7 = {
|
|
6554
|
+
key: 0,
|
|
6555
|
+
class: "tao-list-item__description"
|
|
6556
|
+
};
|
|
6557
|
+
const _hoisted_6$5 = {
|
|
6558
|
+
key: 1,
|
|
6559
|
+
class: "tao-list-item__suffix"
|
|
6560
|
+
};
|
|
6561
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
6562
|
+
...{ name: "TaoListItem" },
|
|
6563
|
+
__name: "TaoListItem",
|
|
6564
|
+
props: {
|
|
6565
|
+
title: { default: "" },
|
|
6566
|
+
description: { default: "" },
|
|
6567
|
+
selected: { type: Boolean, default: false },
|
|
6568
|
+
disabled: { type: Boolean, default: false },
|
|
6569
|
+
active: { type: Boolean, default: false },
|
|
6570
|
+
clickable: { type: Boolean, default: false },
|
|
6571
|
+
size: {},
|
|
6572
|
+
actionAlways: { type: Boolean, default: false }
|
|
6573
|
+
},
|
|
6574
|
+
emits: ["click"],
|
|
6575
|
+
setup(__props, { emit: __emit }) {
|
|
6576
|
+
const props = __props;
|
|
6577
|
+
const emit = __emit;
|
|
6578
|
+
const slots = useSlots();
|
|
6579
|
+
const list = inject(taoListKey, null);
|
|
6580
|
+
const sizeClass = computed(() => {
|
|
6581
|
+
const size = props.size ?? (list == null ? void 0 : list.size.value) ?? "medium";
|
|
6582
|
+
if (size === "small") {
|
|
6583
|
+
return "s";
|
|
6584
|
+
}
|
|
6585
|
+
if (size === "large") {
|
|
6586
|
+
return "l";
|
|
6587
|
+
}
|
|
6588
|
+
return "m";
|
|
6589
|
+
});
|
|
6590
|
+
const hasAction = computed(() => Boolean(slots.action));
|
|
6591
|
+
const hasPrefix = computed(() => Boolean(slots.prefix));
|
|
6592
|
+
const hasSuffix = computed(() => Boolean(slots.suffix));
|
|
6593
|
+
const hasDescription = computed(() => Boolean(props.description || slots.description));
|
|
6594
|
+
function onHitClick(event) {
|
|
6595
|
+
if (props.disabled || !props.clickable) {
|
|
6596
|
+
return;
|
|
6597
|
+
}
|
|
6598
|
+
emit("click", event);
|
|
6599
|
+
}
|
|
6600
|
+
return (_ctx, _cache) => {
|
|
6601
|
+
return openBlock(), createElementBlock("li", {
|
|
6602
|
+
class: normalizeClass(["tao-list-item", [
|
|
6603
|
+
`tao-list-item--${sizeClass.value}`,
|
|
6604
|
+
{
|
|
6605
|
+
"tao-list-item--selected": __props.selected,
|
|
6606
|
+
"tao-list-item--disabled": __props.disabled,
|
|
6607
|
+
"tao-list-item--active": __props.active,
|
|
6608
|
+
"tao-list-item--clickable": __props.clickable,
|
|
6609
|
+
"tao-list-item--has-action": hasAction.value,
|
|
6610
|
+
"tao-list-item--action-always": __props.actionAlways
|
|
6611
|
+
}
|
|
6612
|
+
]]),
|
|
6613
|
+
"aria-current": !__props.clickable && __props.selected ? "true" : void 0,
|
|
6614
|
+
"aria-disabled": __props.disabled || void 0
|
|
6615
|
+
}, [
|
|
6616
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.clickable ? "button" : "div"), {
|
|
6617
|
+
class: "tao-list-item__hit",
|
|
6618
|
+
type: __props.clickable ? "button" : void 0,
|
|
6619
|
+
disabled: __props.clickable ? __props.disabled : void 0,
|
|
6620
|
+
"aria-current": __props.clickable && __props.selected ? "true" : void 0,
|
|
6621
|
+
onClick: onHitClick
|
|
6622
|
+
}, {
|
|
6623
|
+
default: withCtx(() => [
|
|
6624
|
+
hasPrefix.value ? (openBlock(), createElementBlock("span", _hoisted_2$8, [
|
|
6625
|
+
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
6626
|
+
])) : createCommentVNode("", true),
|
|
6627
|
+
createElementVNode("span", _hoisted_3$7, [
|
|
6628
|
+
createElementVNode("span", _hoisted_4$7, [
|
|
6629
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6630
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
6631
|
+
], true)
|
|
6632
|
+
]),
|
|
6633
|
+
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5$7, [
|
|
6634
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
6635
|
+
createTextVNode(toDisplayString(__props.description), 1)
|
|
6636
|
+
], true)
|
|
6637
|
+
])) : createCommentVNode("", true)
|
|
6638
|
+
]),
|
|
6639
|
+
hasSuffix.value ? (openBlock(), createElementBlock("span", _hoisted_6$5, [
|
|
6640
|
+
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
6641
|
+
])) : createCommentVNode("", true)
|
|
6642
|
+
]),
|
|
6643
|
+
_: 3
|
|
6644
|
+
}, 8, ["type", "disabled", "aria-current"])),
|
|
6645
|
+
hasAction.value ? (openBlock(), createElementBlock("div", {
|
|
6646
|
+
key: 0,
|
|
6647
|
+
class: "tao-list-item__action",
|
|
6648
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
6649
|
+
}, ["stop"])),
|
|
6650
|
+
onKeydown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
6651
|
+
}, ["stop"]))
|
|
6652
|
+
}, [
|
|
6653
|
+
renderSlot(_ctx.$slots, "action", {}, void 0, true)
|
|
6654
|
+
], 32)) : createCommentVNode("", true)
|
|
6655
|
+
], 10, _hoisted_1$a);
|
|
6656
|
+
};
|
|
6657
|
+
}
|
|
6658
|
+
});
|
|
6659
|
+
const TaoListItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-878b7727"]]);
|
|
6493
6660
|
const _hoisted_1$9 = {
|
|
6494
6661
|
class: "tao-skeleton-group",
|
|
6495
6662
|
"aria-hidden": true
|
|
@@ -6841,7 +7008,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6841
7008
|
class: "tao-breadcrumb__item"
|
|
6842
7009
|
}, [
|
|
6843
7010
|
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$
|
|
7011
|
+
index === __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(item.label), 1)) : item.to ? (openBlock(), createBlock(_sfc_main$q, {
|
|
6845
7012
|
key: 2,
|
|
6846
7013
|
class: "tao-breadcrumb__link",
|
|
6847
7014
|
to: item.to
|
|
@@ -8510,7 +8677,7 @@ const components = [
|
|
|
8510
8677
|
TaoSpoilerGroup,
|
|
8511
8678
|
TaoCopy,
|
|
8512
8679
|
TaoContainer,
|
|
8513
|
-
_sfc_main$
|
|
8680
|
+
_sfc_main$I,
|
|
8514
8681
|
TaoSpace,
|
|
8515
8682
|
TaoSplit,
|
|
8516
8683
|
TaoIcon,
|
|
@@ -8528,7 +8695,7 @@ const components = [
|
|
|
8528
8695
|
TaoFileDrop,
|
|
8529
8696
|
TaoDropdownMenu,
|
|
8530
8697
|
TaoPinCode,
|
|
8531
|
-
_sfc_main$
|
|
8698
|
+
_sfc_main$q,
|
|
8532
8699
|
TaoFormField,
|
|
8533
8700
|
TaoSelect,
|
|
8534
8701
|
TaoCombobox,
|
|
@@ -8543,6 +8710,8 @@ const components = [
|
|
|
8543
8710
|
TaoTable,
|
|
8544
8711
|
TaoPagination,
|
|
8545
8712
|
TaoEmpty,
|
|
8713
|
+
TaoList,
|
|
8714
|
+
TaoListItem,
|
|
8546
8715
|
TaoSkeleton,
|
|
8547
8716
|
TaoDrawer,
|
|
8548
8717
|
TaoAvatar,
|
|
@@ -8583,14 +8752,16 @@ export {
|
|
|
8583
8752
|
TaoEmpty,
|
|
8584
8753
|
TaoFieldset,
|
|
8585
8754
|
TaoFileDrop,
|
|
8586
|
-
_sfc_main$
|
|
8755
|
+
_sfc_main$I as TaoFlex,
|
|
8587
8756
|
TaoFormField,
|
|
8588
8757
|
TaoIcon,
|
|
8589
8758
|
TaoImage,
|
|
8590
8759
|
TaoInput,
|
|
8591
8760
|
TaoInputGroup,
|
|
8592
8761
|
TaoInputNumber,
|
|
8593
|
-
_sfc_main$
|
|
8762
|
+
_sfc_main$q as TaoLink,
|
|
8763
|
+
TaoList,
|
|
8764
|
+
TaoListItem,
|
|
8594
8765
|
TaoLoader,
|
|
8595
8766
|
TaoModal,
|
|
8596
8767
|
TaoPagination,
|