@1337exp/taoui 3.1.0 → 3.2.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 +1 -1
- package/README.ru.md +1 -1
- package/dist/index.cjs +188 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +18 -2
- package/dist/index.mjs +188 -123
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "tao-button__loader"
|
|
23
23
|
};
|
|
24
|
-
const _hoisted_3$
|
|
24
|
+
const _hoisted_3$D = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "tao-button__icon"
|
|
27
27
|
};
|
|
28
|
-
const _hoisted_4$
|
|
28
|
+
const _hoisted_4$x = { class: "tao-button__content" };
|
|
29
29
|
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
30
30
|
...{ name: "TaoButton" },
|
|
31
31
|
__name: "TaoButton",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
onClick: handleClick
|
|
67
67
|
}, [
|
|
68
68
|
__props.loading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$L)) : vue.createCommentVNode("", true),
|
|
69
|
-
__props.icon ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
70
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
69
|
+
__props.icon ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$D, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true),
|
|
70
|
+
vue.createElementVNode("span", _hoisted_4$x, [
|
|
71
71
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
72
72
|
])
|
|
73
73
|
], 10, _hoisted_1$S);
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
key: 0,
|
|
164
164
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
165
165
|
};
|
|
166
|
-
const _hoisted_3$
|
|
167
|
-
const _hoisted_4$
|
|
166
|
+
const _hoisted_3$C = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
167
|
+
const _hoisted_4$w = {
|
|
168
168
|
key: 1,
|
|
169
169
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
170
170
|
};
|
|
@@ -245,8 +245,8 @@
|
|
|
245
245
|
onInput: handleInput,
|
|
246
246
|
onBlur: handleBlur,
|
|
247
247
|
onFocus: handleFocus
|
|
248
|
-
}, null, 42, _hoisted_3$
|
|
249
|
-
_ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
248
|
+
}, null, 42, _hoisted_3$C),
|
|
249
|
+
_ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$w, [
|
|
250
250
|
vue.renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
251
251
|
])) : vue.createCommentVNode("", true)
|
|
252
252
|
], 2),
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
262
262
|
};
|
|
263
263
|
const _hoisted_2$J = { class: "tao-input-group__field" };
|
|
264
|
-
const _hoisted_3$
|
|
264
|
+
const _hoisted_3$B = {
|
|
265
265
|
key: 1,
|
|
266
266
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
267
267
|
};
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
vue.createElementVNode("div", _hoisted_2$J, [
|
|
297
297
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
298
298
|
]),
|
|
299
|
-
_ctx.$slots.after ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
299
|
+
_ctx.$slots.after ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
|
|
300
300
|
vue.renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
301
301
|
])) : vue.createCommentVNode("", true)
|
|
302
302
|
], 34);
|
|
@@ -652,8 +652,8 @@
|
|
|
652
652
|
key: 0,
|
|
653
653
|
class: "tao-input-number__steppers"
|
|
654
654
|
};
|
|
655
|
-
const _hoisted_3$
|
|
656
|
-
const _hoisted_4$
|
|
655
|
+
const _hoisted_3$A = ["aria-label", "disabled"];
|
|
656
|
+
const _hoisted_4$v = { "aria-hidden": "true" };
|
|
657
657
|
const _hoisted_5$n = ["aria-label", "disabled"];
|
|
658
658
|
const _hoisted_6$i = { "aria-hidden": "true" };
|
|
659
659
|
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -827,12 +827,12 @@
|
|
|
827
827
|
disabled: __props.disabled || atMax.value,
|
|
828
828
|
onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
|
|
829
829
|
}, [
|
|
830
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
830
|
+
vue.createElementVNode("span", _hoisted_4$v, [
|
|
831
831
|
vue.renderSlot(_ctx.$slots, "increment-icon", {}, () => [
|
|
832
832
|
_cache[2] || (_cache[2] = vue.createTextVNode("+", -1))
|
|
833
833
|
], true)
|
|
834
834
|
])
|
|
835
|
-
], 8, _hoisted_3$
|
|
835
|
+
], 8, _hoisted_3$A),
|
|
836
836
|
vue.createElementVNode("button", {
|
|
837
837
|
type: "button",
|
|
838
838
|
class: "tao-input-number__step",
|
|
@@ -855,8 +855,8 @@
|
|
|
855
855
|
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-0594919d"]]);
|
|
856
856
|
const _hoisted_1$O = ["aria-label", "disabled"];
|
|
857
857
|
const _hoisted_2$H = { "aria-hidden": "true" };
|
|
858
|
-
const _hoisted_3$
|
|
859
|
-
const _hoisted_4$
|
|
858
|
+
const _hoisted_3$z = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
859
|
+
const _hoisted_4$u = ["aria-label", "disabled"];
|
|
860
860
|
const _hoisted_5$m = { "aria-hidden": "true" };
|
|
861
861
|
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
862
862
|
...{ name: "TaoQuantity" },
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
onFocus,
|
|
1027
1027
|
onBlur,
|
|
1028
1028
|
onKeydown
|
|
1029
|
-
}, null, 40, _hoisted_3$
|
|
1029
|
+
}, null, 40, _hoisted_3$z),
|
|
1030
1030
|
vue.createElementVNode("button", {
|
|
1031
1031
|
type: "button",
|
|
1032
1032
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1039,7 +1039,7 @@
|
|
|
1039
1039
|
_cache[1] || (_cache[1] = vue.createTextVNode("+", -1))
|
|
1040
1040
|
], true)
|
|
1041
1041
|
])
|
|
1042
|
-
], 8, _hoisted_4$
|
|
1042
|
+
], 8, _hoisted_4$u)
|
|
1043
1043
|
], 2);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
@@ -1053,11 +1053,11 @@
|
|
|
1053
1053
|
key: 0,
|
|
1054
1054
|
class: "tao-card__overlay"
|
|
1055
1055
|
};
|
|
1056
|
-
const _hoisted_3$
|
|
1056
|
+
const _hoisted_3$y = {
|
|
1057
1057
|
key: 1,
|
|
1058
1058
|
class: "tao-card__overlay"
|
|
1059
1059
|
};
|
|
1060
|
-
const _hoisted_4$
|
|
1060
|
+
const _hoisted_4$t = {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
class: "tao-card__header-title"
|
|
1063
1063
|
};
|
|
@@ -1129,7 +1129,7 @@
|
|
|
1129
1129
|
_ctx.$slots.overlay ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$G, [
|
|
1130
1130
|
vue.renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1131
1131
|
])) : vue.createCommentVNode("", true)
|
|
1132
|
-
])) : _ctx.$slots.overlay ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
1132
|
+
])) : _ctx.$slots.overlay ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
|
|
1133
1133
|
vue.renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1134
1134
|
])) : vue.createCommentVNode("", true),
|
|
1135
1135
|
hasContent.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1137,7 +1137,7 @@
|
|
|
1137
1137
|
class: "tao-card__content",
|
|
1138
1138
|
style: vue.normalizeStyle(paddingStyle.value)
|
|
1139
1139
|
}, [
|
|
1140
|
-
_ctx.$slots.headerTitle ? (vue.openBlock(), vue.createElementBlock("h2", _hoisted_4$
|
|
1140
|
+
_ctx.$slots.headerTitle ? (vue.openBlock(), vue.createElementBlock("h2", _hoisted_4$t, [
|
|
1141
1141
|
vue.renderSlot(_ctx.$slots, "headerTitle", {}, void 0, true)
|
|
1142
1142
|
])) : vue.createCommentVNode("", true),
|
|
1143
1143
|
_ctx.$slots.header || _ctx.$slots.headerSecondary ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1229,8 +1229,8 @@
|
|
|
1229
1229
|
key: 0,
|
|
1230
1230
|
class: "tao-modal__header"
|
|
1231
1231
|
};
|
|
1232
|
-
const _hoisted_3$
|
|
1233
|
-
const _hoisted_4$
|
|
1232
|
+
const _hoisted_3$x = ["id"];
|
|
1233
|
+
const _hoisted_4$s = { key: 1 };
|
|
1234
1234
|
const _hoisted_5$k = ["aria-label"];
|
|
1235
1235
|
const _hoisted_6$g = { "aria-hidden": "true" };
|
|
1236
1236
|
const _hoisted_7$c = { class: "tao-modal__content" };
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
key: 0,
|
|
1362
1362
|
id: vue.unref(titleId),
|
|
1363
1363
|
class: "tao-modal__title"
|
|
1364
|
-
}, vue.toDisplayString(__props.title), 9, _hoisted_3$
|
|
1364
|
+
}, vue.toDisplayString(__props.title), 9, _hoisted_3$x)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$s))
|
|
1365
1365
|
], true),
|
|
1366
1366
|
__props.closable ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
1367
1367
|
key: 0,
|
|
@@ -1614,11 +1614,11 @@
|
|
|
1614
1614
|
}
|
|
1615
1615
|
const _hoisted_1$K = ["aria-disabled"];
|
|
1616
1616
|
const _hoisted_2$D = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
|
|
1617
|
-
const _hoisted_3$
|
|
1617
|
+
const _hoisted_3$w = {
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
class: "tao-slider__value"
|
|
1620
1620
|
};
|
|
1621
|
-
const _hoisted_4$
|
|
1621
|
+
const _hoisted_4$r = {
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
class: "tao-slider__marks"
|
|
1624
1624
|
};
|
|
@@ -1856,13 +1856,13 @@
|
|
|
1856
1856
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
1857
1857
|
}, null, 46, _hoisted_2$D);
|
|
1858
1858
|
}), 128)),
|
|
1859
|
-
__props.showValue ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
1859
|
+
__props.showValue ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, [
|
|
1860
1860
|
vue.renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
1861
1861
|
vue.createTextVNode(vue.toDisplayString(barText.value), 1),
|
|
1862
1862
|
vue.renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
1863
1863
|
])) : vue.createCommentVNode("", true)
|
|
1864
1864
|
], 544),
|
|
1865
|
-
markList.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
1865
|
+
markList.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$r, [
|
|
1866
1866
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(markList.value, (mark) => {
|
|
1867
1867
|
return vue.openBlock(), vue.createElementBlock("button", {
|
|
1868
1868
|
key: mark.value,
|
|
@@ -1953,7 +1953,7 @@
|
|
|
1953
1953
|
});
|
|
1954
1954
|
const _hoisted_1$J = { class: "tao-timeline__controls" };
|
|
1955
1955
|
const _hoisted_2$C = { class: "tao-timeline__track" };
|
|
1956
|
-
const _hoisted_3$
|
|
1956
|
+
const _hoisted_3$v = {
|
|
1957
1957
|
key: 0,
|
|
1958
1958
|
class: "tao-timeline__time"
|
|
1959
1959
|
};
|
|
@@ -2049,7 +2049,7 @@
|
|
|
2049
2049
|
} : void 0
|
|
2050
2050
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
2051
2051
|
]),
|
|
2052
|
-
__props.showTime ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
2052
|
+
__props.showTime ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
|
|
2053
2053
|
vue.renderSlot(_ctx.$slots, "time", {
|
|
2054
2054
|
time: __props.modelValue,
|
|
2055
2055
|
length: __props.length,
|
|
@@ -2265,7 +2265,7 @@
|
|
|
2265
2265
|
if (typeof document === "undefined") {
|
|
2266
2266
|
return;
|
|
2267
2267
|
}
|
|
2268
|
-
document.addEventListener("pointerdown", onDocumentPointer);
|
|
2268
|
+
document.addEventListener("pointerdown", onDocumentPointer, true);
|
|
2269
2269
|
document.addEventListener("keydown", onDocumentKey);
|
|
2270
2270
|
window.addEventListener("resize", onViewportChange);
|
|
2271
2271
|
window.addEventListener("scroll", onViewportChange, true);
|
|
@@ -2274,7 +2274,7 @@
|
|
|
2274
2274
|
if (typeof document === "undefined") {
|
|
2275
2275
|
return;
|
|
2276
2276
|
}
|
|
2277
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
2277
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
2278
2278
|
document.removeEventListener("keydown", onDocumentKey);
|
|
2279
2279
|
window.removeEventListener("resize", onViewportChange);
|
|
2280
2280
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
@@ -2425,15 +2425,15 @@
|
|
|
2425
2425
|
};
|
|
2426
2426
|
}
|
|
2427
2427
|
});
|
|
2428
|
-
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
2428
|
+
const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-9a1e8080"]]);
|
|
2429
2429
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
2430
2430
|
const _hoisted_1$H = { class: "tao-spoiler" };
|
|
2431
2431
|
const _hoisted_2$B = ["aria-expanded", "aria-controls"];
|
|
2432
|
-
const _hoisted_3$
|
|
2432
|
+
const _hoisted_3$u = {
|
|
2433
2433
|
key: 0,
|
|
2434
2434
|
class: "tao-spoiler__title"
|
|
2435
2435
|
};
|
|
2436
|
-
const _hoisted_4$
|
|
2436
|
+
const _hoisted_4$q = ["id"];
|
|
2437
2437
|
const _hoisted_5$i = { class: "tao-spoiler__content-inner" };
|
|
2438
2438
|
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
2439
2439
|
...{ name: "TaoSpoiler" },
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
vue.createElementVNode("span", {
|
|
2503
2503
|
class: vue.normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
|
|
2504
2504
|
}, "▶", 2),
|
|
2505
|
-
__props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
2505
|
+
__props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$u, [
|
|
2506
2506
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2507
2507
|
vue.createTextVNode(vue.toDisplayString(__props.title), 1)
|
|
2508
2508
|
], true)
|
|
@@ -2524,7 +2524,7 @@
|
|
|
2524
2524
|
vue.createElementVNode("div", _hoisted_5$i, [
|
|
2525
2525
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2526
2526
|
])
|
|
2527
|
-
], 8, _hoisted_4$
|
|
2527
|
+
], 8, _hoisted_4$q)) : vue.createCommentVNode("", true)
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 3
|
|
2530
2530
|
})
|
|
@@ -2859,8 +2859,8 @@
|
|
|
2859
2859
|
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-ad288026"]]);
|
|
2860
2860
|
const _hoisted_1$E = { class: "tao-split__pane tao-split__pane--start" };
|
|
2861
2861
|
const _hoisted_2$A = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
2862
|
-
const _hoisted_3$
|
|
2863
|
-
const _hoisted_4$
|
|
2862
|
+
const _hoisted_3$t = { class: "tao-split__pane tao-split__pane--end" };
|
|
2863
|
+
const _hoisted_4$p = {
|
|
2864
2864
|
key: 0,
|
|
2865
2865
|
class: "tao-split__shield"
|
|
2866
2866
|
};
|
|
@@ -3185,10 +3185,10 @@
|
|
|
3185
3185
|
onDragstart: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
3186
3186
|
}, ["prevent"]))
|
|
3187
3187
|
}, null, 40, _hoisted_2$A),
|
|
3188
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3188
|
+
vue.createElementVNode("div", _hoisted_3$t, [
|
|
3189
3189
|
vue.renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
3190
3190
|
]),
|
|
3191
|
-
isDragging.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
3191
|
+
isDragging.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p)) : vue.createCommentVNode("", true)
|
|
3192
3192
|
], 6);
|
|
3193
3193
|
};
|
|
3194
3194
|
}
|
|
@@ -3286,7 +3286,7 @@
|
|
|
3286
3286
|
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-49a9f1b2"]]);
|
|
3287
3287
|
const _hoisted_1$C = { class: "tao-image" };
|
|
3288
3288
|
const _hoisted_2$z = ["src", "alt", "loading"];
|
|
3289
|
-
const _hoisted_3$
|
|
3289
|
+
const _hoisted_3$s = { class: "tao-image__placeholder" };
|
|
3290
3290
|
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
3291
3291
|
...{ name: "TaoImage" },
|
|
3292
3292
|
__name: "TaoImage",
|
|
@@ -3331,7 +3331,7 @@
|
|
|
3331
3331
|
onError: handleError
|
|
3332
3332
|
}, null, 42, _hoisted_2$z)) : vue.createCommentVNode("", true),
|
|
3333
3333
|
!__props.src || hasError.value ? vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3334
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3334
|
+
vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(__props.placeholderText), 1)
|
|
3335
3335
|
], true, 1) : vue.createCommentVNode("", true)
|
|
3336
3336
|
]);
|
|
3337
3337
|
};
|
|
@@ -3340,11 +3340,11 @@
|
|
|
3340
3340
|
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-61f47c52"]]);
|
|
3341
3341
|
const _hoisted_1$B = ["for"];
|
|
3342
3342
|
const _hoisted_2$y = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
3343
|
-
const _hoisted_3$
|
|
3343
|
+
const _hoisted_3$r = {
|
|
3344
3344
|
key: 0,
|
|
3345
3345
|
class: "tao-checkbox__label"
|
|
3346
3346
|
};
|
|
3347
|
-
const _hoisted_4$
|
|
3347
|
+
const _hoisted_4$o = {
|
|
3348
3348
|
key: 1,
|
|
3349
3349
|
class: "tao-checkbox__label"
|
|
3350
3350
|
};
|
|
@@ -3428,7 +3428,7 @@
|
|
|
3428
3428
|
onChange: onInputChange
|
|
3429
3429
|
}, null, 40, _hoisted_2$y),
|
|
3430
3430
|
_cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
3431
|
-
__props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
3431
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$r, vue.toDisplayString(__props.label), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$o, [
|
|
3432
3432
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3433
3433
|
])),
|
|
3434
3434
|
vue.renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
@@ -3442,8 +3442,8 @@
|
|
|
3442
3442
|
class: "tao-tag__prefix"
|
|
3443
3443
|
};
|
|
3444
3444
|
const _hoisted_2$x = { class: "tao-tag__text" };
|
|
3445
|
-
const _hoisted_3$
|
|
3446
|
-
const _hoisted_4$
|
|
3445
|
+
const _hoisted_3$q = ["aria-label"];
|
|
3446
|
+
const _hoisted_4$n = { "aria-hidden": "true" };
|
|
3447
3447
|
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
3448
3448
|
...{ name: "TaoTag" },
|
|
3449
3449
|
__name: "TaoTag",
|
|
@@ -3509,12 +3509,12 @@
|
|
|
3509
3509
|
"aria-label": vue.unref(l10n).closeLabel,
|
|
3510
3510
|
onClick: vue.withModifiers(onClose, ["stop"])
|
|
3511
3511
|
}, [
|
|
3512
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
3512
|
+
vue.createElementVNode("span", _hoisted_4$n, [
|
|
3513
3513
|
vue.renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
3514
3514
|
_cache[0] || (_cache[0] = vue.createTextVNode("✕", -1))
|
|
3515
3515
|
], true)
|
|
3516
3516
|
])
|
|
3517
|
-
], 8, _hoisted_3$
|
|
3517
|
+
], 8, _hoisted_3$q)) : vue.createCommentVNode("", true)
|
|
3518
3518
|
], 6);
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
@@ -3525,7 +3525,7 @@
|
|
|
3525
3525
|
key: 1,
|
|
3526
3526
|
class: "tao-divider__text"
|
|
3527
3527
|
};
|
|
3528
|
-
const _hoisted_3$
|
|
3528
|
+
const _hoisted_3$p = {
|
|
3529
3529
|
key: 2,
|
|
3530
3530
|
class: "tao-divider__line tao-divider__line--end"
|
|
3531
3531
|
};
|
|
@@ -3568,7 +3568,7 @@
|
|
|
3568
3568
|
vue.createTextVNode(vue.toDisplayString(__props.text), 1)
|
|
3569
3569
|
], true)
|
|
3570
3570
|
])) : vue.createCommentVNode("", true),
|
|
3571
|
-
__props.variant !== "gap" && hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
3571
|
+
__props.variant !== "gap" && hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p)) : vue.createCommentVNode("", true)
|
|
3572
3572
|
], 10, _hoisted_1$z);
|
|
3573
3573
|
};
|
|
3574
3574
|
}
|
|
@@ -3958,8 +3958,8 @@
|
|
|
3958
3958
|
key: 0,
|
|
3959
3959
|
class: "tao-progress__side"
|
|
3960
3960
|
};
|
|
3961
|
-
const _hoisted_3$
|
|
3962
|
-
const _hoisted_4$
|
|
3961
|
+
const _hoisted_3$o = { class: "tao-progress__main" };
|
|
3962
|
+
const _hoisted_4$m = {
|
|
3963
3963
|
key: 0,
|
|
3964
3964
|
class: "tao-progress__percentage"
|
|
3965
3965
|
};
|
|
@@ -4010,8 +4010,8 @@
|
|
|
4010
4010
|
_ctx.$slots.left ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$s, [
|
|
4011
4011
|
vue.renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
4012
4012
|
])) : vue.createCommentVNode("", true),
|
|
4013
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
4014
|
-
showOverPercent.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
4013
|
+
vue.createElementVNode("div", _hoisted_3$o, [
|
|
4014
|
+
showOverPercent.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$m, vue.toDisplayString(__props.progress) + "%", 1)) : vue.createCommentVNode("", true),
|
|
4015
4015
|
vue.createElementVNode("div", {
|
|
4016
4016
|
class: "tao-progress__track",
|
|
4017
4017
|
style: vue.normalizeStyle({ height: `${__props.height}px` })
|
|
@@ -4091,8 +4091,8 @@
|
|
|
4091
4091
|
});
|
|
4092
4092
|
const _hoisted_1$u = { class: "tao-file-drop__row" };
|
|
4093
4093
|
const _hoisted_2$r = ["aria-label"];
|
|
4094
|
-
const _hoisted_3$
|
|
4095
|
-
const _hoisted_4$
|
|
4094
|
+
const _hoisted_3$n = { "aria-hidden": "true" };
|
|
4095
|
+
const _hoisted_4$l = ["accept", "multiple"];
|
|
4096
4096
|
const _hoisted_5$g = {
|
|
4097
4097
|
key: 0,
|
|
4098
4098
|
class: "tao-file-drop__list"
|
|
@@ -4249,7 +4249,7 @@
|
|
|
4249
4249
|
"aria-label": vue.unref(l10n).clearLabel,
|
|
4250
4250
|
onClick: requestClear
|
|
4251
4251
|
}, [
|
|
4252
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
4252
|
+
vue.createElementVNode("span", _hoisted_3$n, [
|
|
4253
4253
|
vue.renderSlot(_ctx.$slots, "clear-icon", {}, () => [
|
|
4254
4254
|
_cache[1] || (_cache[1] = vue.createTextVNode("✕", -1))
|
|
4255
4255
|
], true)
|
|
@@ -4274,7 +4274,7 @@
|
|
|
4274
4274
|
onChange: handleFileSelect,
|
|
4275
4275
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
4276
4276
|
}, ["stop"]))
|
|
4277
|
-
}, null, 40, _hoisted_4$
|
|
4277
|
+
}, null, 40, _hoisted_4$l)
|
|
4278
4278
|
], 34)
|
|
4279
4279
|
]),
|
|
4280
4280
|
__props.list && __props.modelValue.length ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_5$g, [
|
|
@@ -4310,8 +4310,8 @@
|
|
|
4310
4310
|
key: 1,
|
|
4311
4311
|
"aria-hidden": "true"
|
|
4312
4312
|
};
|
|
4313
|
-
const _hoisted_3$
|
|
4314
|
-
const _hoisted_4$
|
|
4313
|
+
const _hoisted_3$m = ["onClick", "onMouseenter"];
|
|
4314
|
+
const _hoisted_4$k = { key: 1 };
|
|
4315
4315
|
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
4316
4316
|
...{ name: "TaoDropdownMenu" },
|
|
4317
4317
|
__name: "TaoDropdownMenu",
|
|
@@ -4426,12 +4426,12 @@
|
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
4428
|
vue.onMounted(() => {
|
|
4429
|
-
document.addEventListener("pointerdown", onDocumentPointer);
|
|
4429
|
+
document.addEventListener("pointerdown", onDocumentPointer, true);
|
|
4430
4430
|
window.addEventListener("scroll", onWinScroll, true);
|
|
4431
4431
|
window.addEventListener("resize", updatePosition);
|
|
4432
4432
|
});
|
|
4433
4433
|
vue.onBeforeUnmount(() => {
|
|
4434
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
4434
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
4435
4435
|
window.removeEventListener("scroll", onWinScroll, true);
|
|
4436
4436
|
window.removeEventListener("resize", updatePosition);
|
|
4437
4437
|
});
|
|
@@ -4484,8 +4484,8 @@
|
|
|
4484
4484
|
id: action.id,
|
|
4485
4485
|
ico: action.ico,
|
|
4486
4486
|
text: action.name
|
|
4487
|
-
}, void 0, true, 0) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
4488
|
-
], 42, _hoisted_3$
|
|
4487
|
+
}, void 0, true, 0) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$k, vue.toDisplayString(action.name), 1))
|
|
4488
|
+
], 42, _hoisted_3$m);
|
|
4489
4489
|
}), 128))
|
|
4490
4490
|
], 36)) : vue.createCommentVNode("", true)
|
|
4491
4491
|
]))
|
|
@@ -4493,14 +4493,60 @@
|
|
|
4493
4493
|
};
|
|
4494
4494
|
}
|
|
4495
4495
|
});
|
|
4496
|
-
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
4496
|
+
const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-de4a2254"]]);
|
|
4497
|
+
const PIN_CELL = "#";
|
|
4498
|
+
function parsePinFormat(format) {
|
|
4499
|
+
const mask = [...format];
|
|
4500
|
+
const before = [];
|
|
4501
|
+
let pending = "";
|
|
4502
|
+
for (const ch of mask) {
|
|
4503
|
+
if (ch === PIN_CELL) {
|
|
4504
|
+
before.push(pending);
|
|
4505
|
+
pending = "";
|
|
4506
|
+
} else {
|
|
4507
|
+
pending += ch;
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
return { mask, cells: before.length, before, after: pending, hasSeparators: mask.some((ch) => ch !== PIN_CELL) };
|
|
4511
|
+
}
|
|
4512
|
+
function separatorAfter(format, index) {
|
|
4513
|
+
return index === format.cells - 1 ? format.after : format.before[index + 1] ?? "";
|
|
4514
|
+
}
|
|
4515
|
+
function pinFromPaste(text, format, cells, accept) {
|
|
4516
|
+
const chars = [...text.trim()];
|
|
4517
|
+
if ((format == null ? void 0 : format.hasSeparators) && chars.length === format.mask.length) {
|
|
4518
|
+
const cellChars = [];
|
|
4519
|
+
const matches = format.mask.every((expected, i) => {
|
|
4520
|
+
const ch = chars[i];
|
|
4521
|
+
if (expected !== PIN_CELL) return ch === expected;
|
|
4522
|
+
const accepted = accept(ch);
|
|
4523
|
+
if (!accepted) return false;
|
|
4524
|
+
cellChars.push(accepted);
|
|
4525
|
+
return true;
|
|
4526
|
+
});
|
|
4527
|
+
if (matches) return cellChars;
|
|
4528
|
+
}
|
|
4529
|
+
if (chars.length === cells && chars.every((ch) => accept(ch))) return chars.map((ch) => accept(ch));
|
|
4530
|
+
return null;
|
|
4531
|
+
}
|
|
4497
4532
|
const _hoisted_1$s = ["aria-invalid", "aria-describedby"];
|
|
4498
|
-
const _hoisted_2$p =
|
|
4533
|
+
const _hoisted_2$p = {
|
|
4534
|
+
key: 0,
|
|
4535
|
+
class: "tao-pin-code__separator",
|
|
4536
|
+
"aria-hidden": "true"
|
|
4537
|
+
};
|
|
4538
|
+
const _hoisted_3$l = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
|
|
4539
|
+
const _hoisted_4$j = {
|
|
4540
|
+
key: 0,
|
|
4541
|
+
class: "tao-pin-code__separator",
|
|
4542
|
+
"aria-hidden": "true"
|
|
4543
|
+
};
|
|
4499
4544
|
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
4500
4545
|
...{ name: "TaoPinCode" },
|
|
4501
4546
|
__name: "TaoPinCode",
|
|
4502
4547
|
props: {
|
|
4503
4548
|
length: {},
|
|
4549
|
+
format: {},
|
|
4504
4550
|
masked: { type: Boolean, default: false },
|
|
4505
4551
|
hidden: { type: Boolean, default: false },
|
|
4506
4552
|
placeholder: { default: "" },
|
|
@@ -4521,6 +4567,11 @@
|
|
|
4521
4567
|
const invalid = vue.computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
|
|
4522
4568
|
const isMasked = vue.computed(() => props.masked || props.hidden);
|
|
4523
4569
|
const describedBy = vue.computed(() => field == null ? void 0 : field.describedBy.value);
|
|
4570
|
+
const layout = vue.computed(() => props.format === void 0 ? null : parsePinFormat(props.format));
|
|
4571
|
+
const count = vue.computed(() => {
|
|
4572
|
+
var _a;
|
|
4573
|
+
return ((_a = layout.value) == null ? void 0 : _a.cells) ?? props.length ?? 0;
|
|
4574
|
+
});
|
|
4524
4575
|
const numbers = vue.ref([]);
|
|
4525
4576
|
const inputRefs = vue.ref([]);
|
|
4526
4577
|
const activeNumber = vue.ref(-1);
|
|
@@ -4535,7 +4586,7 @@
|
|
|
4535
4586
|
}
|
|
4536
4587
|
function cellsFromModel(value) {
|
|
4537
4588
|
const raw = value ?? "";
|
|
4538
|
-
return Array.from({ length:
|
|
4589
|
+
return Array.from({ length: count.value }, (_, index) => acceptChar(raw[index] ?? ""));
|
|
4539
4590
|
}
|
|
4540
4591
|
function serialize() {
|
|
4541
4592
|
return numbers.value.join("");
|
|
@@ -4556,18 +4607,19 @@
|
|
|
4556
4607
|
(_a = inputRefs.value[index]) == null ? void 0 : _a.focus();
|
|
4557
4608
|
}
|
|
4558
4609
|
function isFilled() {
|
|
4559
|
-
return numbers.value.length ===
|
|
4610
|
+
return numbers.value.length === count.value && numbers.value.every((cell) => cell !== "");
|
|
4560
4611
|
}
|
|
4561
|
-
function applyChars(index, raw) {
|
|
4612
|
+
function applyChars(index, raw, pasted = false) {
|
|
4562
4613
|
var _a;
|
|
4563
|
-
const
|
|
4614
|
+
const whole = pasted ? pinFromPaste(raw, layout.value, count.value, acceptChar) : null;
|
|
4615
|
+
const chars = whole ?? [...raw].map((ch) => acceptChar(ch)).filter(Boolean);
|
|
4564
4616
|
if (!chars.length) {
|
|
4565
4617
|
return;
|
|
4566
4618
|
}
|
|
4567
4619
|
numbers.value = [...numbers.value];
|
|
4568
|
-
let cursor = index;
|
|
4620
|
+
let cursor = whole ? 0 : index;
|
|
4569
4621
|
for (const ch of chars) {
|
|
4570
|
-
if (cursor >=
|
|
4622
|
+
if (cursor >= count.value) {
|
|
4571
4623
|
break;
|
|
4572
4624
|
}
|
|
4573
4625
|
numbers.value[cursor] = ch;
|
|
@@ -4579,7 +4631,7 @@
|
|
|
4579
4631
|
emit("complete", serialize());
|
|
4580
4632
|
return;
|
|
4581
4633
|
}
|
|
4582
|
-
if (cursor <
|
|
4634
|
+
if (cursor < count.value) {
|
|
4583
4635
|
focusCell(cursor);
|
|
4584
4636
|
}
|
|
4585
4637
|
}
|
|
@@ -4591,6 +4643,14 @@
|
|
|
4591
4643
|
}
|
|
4592
4644
|
const next = acceptChar(v);
|
|
4593
4645
|
if (props.numbersOnly && v && !next) {
|
|
4646
|
+
if (layout.value && numbers.value[index] && v === separatorAfter(layout.value, index) && index + 1 < count.value) {
|
|
4647
|
+
const el2 = inputRefs.value[index];
|
|
4648
|
+
if (el2) {
|
|
4649
|
+
el2.value = numbers.value[index] ?? "";
|
|
4650
|
+
}
|
|
4651
|
+
focusCell(index + 1);
|
|
4652
|
+
return;
|
|
4653
|
+
}
|
|
4594
4654
|
const el = inputRefs.value[index];
|
|
4595
4655
|
if (el) {
|
|
4596
4656
|
el.value = numbers.value[index] ?? "";
|
|
@@ -4610,7 +4670,7 @@
|
|
|
4610
4670
|
}
|
|
4611
4671
|
const nextEmpty = numbers.value.findIndex((cell, cellIndex) => cellIndex > index && !cell);
|
|
4612
4672
|
const target = nextEmpty !== -1 ? nextEmpty : index + 1;
|
|
4613
|
-
if (target <
|
|
4673
|
+
if (target < count.value) {
|
|
4614
4674
|
focusCell(target);
|
|
4615
4675
|
}
|
|
4616
4676
|
}
|
|
@@ -4621,12 +4681,12 @@
|
|
|
4621
4681
|
return;
|
|
4622
4682
|
}
|
|
4623
4683
|
event.preventDefault();
|
|
4624
|
-
applyChars(index, text);
|
|
4684
|
+
applyChars(index, text, true);
|
|
4625
4685
|
}
|
|
4626
4686
|
function onFocus(index) {
|
|
4627
4687
|
if (props.clearOn === "input") {
|
|
4628
4688
|
const firstEmpty = firstEmptyIndex();
|
|
4629
|
-
if (firstEmpty <
|
|
4689
|
+
if (firstEmpty < count.value && index > firstEmpty) {
|
|
4630
4690
|
focusCell(firstEmpty);
|
|
4631
4691
|
return;
|
|
4632
4692
|
}
|
|
@@ -4672,7 +4732,7 @@
|
|
|
4672
4732
|
});
|
|
4673
4733
|
}
|
|
4674
4734
|
vue.watch(
|
|
4675
|
-
() => [props.modelValue,
|
|
4735
|
+
() => [props.modelValue, count.value, props.numbersOnly],
|
|
4676
4736
|
() => {
|
|
4677
4737
|
const next = cellsFromModel(props.modelValue ?? "");
|
|
4678
4738
|
if (next.join("") !== numbers.value.join("") || next.length !== numbers.value.length) {
|
|
@@ -4685,6 +4745,7 @@
|
|
|
4685
4745
|
hidden: "use `masked`"
|
|
4686
4746
|
});
|
|
4687
4747
|
return (_ctx, _cache) => {
|
|
4748
|
+
var _a;
|
|
4688
4749
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4689
4750
|
class: vue.normalizeClass(["tao-pin-code", [vue.unref(sizeClass)(__props.size), { "tao-pin-code--disabled": __props.disabled }]]),
|
|
4690
4751
|
role: "group",
|
|
@@ -4692,36 +4753,40 @@
|
|
|
4692
4753
|
"aria-describedby": describedBy.value
|
|
4693
4754
|
}, [
|
|
4694
4755
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(numbers.value, (num, index) => {
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
"tao-pin-code__value
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4756
|
+
var _a2;
|
|
4757
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index }, [
|
|
4758
|
+
((_a2 = layout.value) == null ? void 0 : _a2.before[index]) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$p, vue.toDisplayString(layout.value.before[index]), 1)) : vue.createCommentVNode("", true),
|
|
4759
|
+
vue.createElementVNode("input", {
|
|
4760
|
+
id: index === 0 ? controlId.value : void 0,
|
|
4761
|
+
ref_for: true,
|
|
4762
|
+
ref: (el) => inputRefs.value[index] = el,
|
|
4763
|
+
class: vue.normalizeClass(["tao-pin-code__value", {
|
|
4764
|
+
"tao-pin-code__value--active": activeNumber.value === index,
|
|
4765
|
+
"tao-pin-code__value--invalid": invalid.value
|
|
4766
|
+
}]),
|
|
4767
|
+
value: num,
|
|
4768
|
+
placeholder: __props.placeholder,
|
|
4769
|
+
type: isMasked.value ? "password" : "text",
|
|
4770
|
+
disabled: __props.disabled,
|
|
4771
|
+
"aria-invalid": invalid.value || void 0,
|
|
4772
|
+
inputmode: __props.numbersOnly ? "numeric" : "text",
|
|
4773
|
+
pattern: __props.numbersOnly ? "[0-9]" : void 0,
|
|
4774
|
+
autocomplete: "one-time-code",
|
|
4775
|
+
maxlength: index === 0 ? count.value : 1,
|
|
4776
|
+
onInput: ($event) => onChange($event, index),
|
|
4777
|
+
onPaste: ($event) => onPaste($event, index),
|
|
4778
|
+
onKeydown: ($event) => onKeydown($event, index),
|
|
4779
|
+
onFocus: ($event) => onFocus(index),
|
|
4780
|
+
onBlur
|
|
4781
|
+
}, null, 42, _hoisted_3$l)
|
|
4782
|
+
], 64);
|
|
4783
|
+
}), 128)),
|
|
4784
|
+
((_a = layout.value) == null ? void 0 : _a.after) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$j, vue.toDisplayString(layout.value.after), 1)) : vue.createCommentVNode("", true)
|
|
4720
4785
|
], 10, _hoisted_1$s);
|
|
4721
4786
|
};
|
|
4722
4787
|
}
|
|
4723
4788
|
});
|
|
4724
|
-
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
4789
|
+
const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-45c2201a"]]);
|
|
4725
4790
|
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
4726
4791
|
...{ name: "TaoLink" },
|
|
4727
4792
|
__name: "TaoLink",
|
|
@@ -5029,17 +5094,17 @@
|
|
|
5029
5094
|
vue.watch(open, (isOpen) => {
|
|
5030
5095
|
if (isOpen) {
|
|
5031
5096
|
panelSize.value = resolveSize(triggerRef.value, props.size);
|
|
5032
|
-
document.addEventListener("pointerdown", onDocumentPointer);
|
|
5097
|
+
document.addEventListener("pointerdown", onDocumentPointer, true);
|
|
5033
5098
|
window.addEventListener("resize", onViewportChange);
|
|
5034
5099
|
window.addEventListener("scroll", onViewportChange, true);
|
|
5035
5100
|
return;
|
|
5036
5101
|
}
|
|
5037
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
5102
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
5038
5103
|
window.removeEventListener("resize", onViewportChange);
|
|
5039
5104
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
5040
5105
|
});
|
|
5041
5106
|
vue.onBeforeUnmount(() => {
|
|
5042
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
5107
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
5043
5108
|
window.removeEventListener("resize", onViewportChange);
|
|
5044
5109
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
5045
5110
|
});
|
|
@@ -5128,7 +5193,7 @@
|
|
|
5128
5193
|
};
|
|
5129
5194
|
}
|
|
5130
5195
|
});
|
|
5131
|
-
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
5196
|
+
const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a3dccaa5"]]);
|
|
5132
5197
|
const clamp = (v, lo, hi) => Math.min(Math.max(v, lo), hi);
|
|
5133
5198
|
const byte = (v) => Math.round(clamp(v, 0, 255));
|
|
5134
5199
|
const hex2 = (v) => byte(v).toString(16).padStart(2, "0");
|
|
@@ -5809,7 +5874,7 @@
|
|
|
5809
5874
|
};
|
|
5810
5875
|
}
|
|
5811
5876
|
});
|
|
5812
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
5877
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9870ed0d"]]);
|
|
5813
5878
|
const _hoisted_1$m = ["disabled", "aria-label", "aria-expanded"];
|
|
5814
5879
|
const _hoisted_2$k = { class: "tao-color-input__swatch" };
|
|
5815
5880
|
const _hoisted_3$h = { class: "tao-color-input__text" };
|
|
@@ -6250,12 +6315,12 @@
|
|
|
6250
6315
|
vue.watch(open, (isOpen) => {
|
|
6251
6316
|
if (isOpen) {
|
|
6252
6317
|
panelSize.value = resolveSize(fieldRef.value, props.size);
|
|
6253
|
-
document.addEventListener("pointerdown", onDocumentPointer);
|
|
6318
|
+
document.addEventListener("pointerdown", onDocumentPointer, true);
|
|
6254
6319
|
window.addEventListener("resize", onViewportChange);
|
|
6255
6320
|
window.addEventListener("scroll", onViewportChange, true);
|
|
6256
6321
|
return;
|
|
6257
6322
|
}
|
|
6258
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
6323
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
6259
6324
|
window.removeEventListener("resize", onViewportChange);
|
|
6260
6325
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
6261
6326
|
});
|
|
@@ -6267,7 +6332,7 @@
|
|
|
6267
6332
|
});
|
|
6268
6333
|
vue.onBeforeUnmount(() => {
|
|
6269
6334
|
stopFocusLoss == null ? void 0 : stopFocusLoss();
|
|
6270
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
6335
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
6271
6336
|
window.removeEventListener("resize", onViewportChange);
|
|
6272
6337
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
6273
6338
|
});
|
|
@@ -6386,7 +6451,7 @@
|
|
|
6386
6451
|
};
|
|
6387
6452
|
}
|
|
6388
6453
|
});
|
|
6389
|
-
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
6454
|
+
const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c030f18f"]]);
|
|
6390
6455
|
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
6391
6456
|
function formatTaoDateIso(parts) {
|
|
6392
6457
|
return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
|
|
@@ -6751,17 +6816,17 @@
|
|
|
6751
6816
|
}
|
|
6752
6817
|
vue.watch(open, (isOpen) => {
|
|
6753
6818
|
if (isOpen) {
|
|
6754
|
-
document.addEventListener("pointerdown", onDocumentPointer);
|
|
6819
|
+
document.addEventListener("pointerdown", onDocumentPointer, true);
|
|
6755
6820
|
window.addEventListener("resize", onViewportChange);
|
|
6756
6821
|
window.addEventListener("scroll", onViewportChange, true);
|
|
6757
6822
|
return;
|
|
6758
6823
|
}
|
|
6759
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
6824
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
6760
6825
|
window.removeEventListener("resize", onViewportChange);
|
|
6761
6826
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
6762
6827
|
});
|
|
6763
6828
|
vue.onBeforeUnmount(() => {
|
|
6764
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
6829
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
6765
6830
|
window.removeEventListener("resize", onViewportChange);
|
|
6766
6831
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
6767
6832
|
});
|
|
@@ -6938,7 +7003,7 @@
|
|
|
6938
7003
|
};
|
|
6939
7004
|
}
|
|
6940
7005
|
});
|
|
6941
|
-
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
7006
|
+
const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6a9754ce"]]);
|
|
6942
7007
|
const _hoisted_1$j = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
6943
7008
|
const _hoisted_2$h = { class: "tao-date-range__value" };
|
|
6944
7009
|
const _hoisted_3$e = {
|
|
@@ -7202,14 +7267,14 @@
|
|
|
7202
7267
|
}
|
|
7203
7268
|
vue.watch(open, (isOpen) => {
|
|
7204
7269
|
if (isOpen) {
|
|
7205
|
-
document.addEventListener("pointerdown", onDocumentPointer);
|
|
7270
|
+
document.addEventListener("pointerdown", onDocumentPointer, true);
|
|
7206
7271
|
window.addEventListener("resize", onViewportChange);
|
|
7207
7272
|
window.addEventListener("scroll", onViewportChange, true);
|
|
7208
7273
|
return;
|
|
7209
7274
|
}
|
|
7210
7275
|
draftStart.value = null;
|
|
7211
7276
|
hoverIso.value = null;
|
|
7212
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
7277
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
7213
7278
|
window.removeEventListener("resize", onViewportChange);
|
|
7214
7279
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
7215
7280
|
});
|
|
@@ -7221,7 +7286,7 @@
|
|
|
7221
7286
|
});
|
|
7222
7287
|
vue.onBeforeUnmount(() => {
|
|
7223
7288
|
stopFocusLoss == null ? void 0 : stopFocusLoss();
|
|
7224
|
-
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
7289
|
+
document.removeEventListener("pointerdown", onDocumentPointer, true);
|
|
7225
7290
|
window.removeEventListener("resize", onViewportChange);
|
|
7226
7291
|
window.removeEventListener("scroll", onViewportChange, true);
|
|
7227
7292
|
});
|
|
@@ -7407,7 +7472,7 @@
|
|
|
7407
7472
|
};
|
|
7408
7473
|
}
|
|
7409
7474
|
});
|
|
7410
|
-
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
7475
|
+
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-fc2e92f1"]]);
|
|
7411
7476
|
const _hoisted_1$i = ["for"];
|
|
7412
7477
|
const _hoisted_2$g = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
7413
7478
|
const _hoisted_3$d = {
|