@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/dist/index.mjs CHANGED
@@ -18,11 +18,11 @@ const _hoisted_2$L = {
18
18
  key: 0,
19
19
  class: "tao-button__loader"
20
20
  };
21
- const _hoisted_3$C = {
21
+ const _hoisted_3$D = {
22
22
  key: 1,
23
23
  class: "tao-button__icon"
24
24
  };
25
- const _hoisted_4$w = { class: "tao-button__content" };
25
+ const _hoisted_4$x = { class: "tao-button__content" };
26
26
  const _sfc_main$12 = /* @__PURE__ */ defineComponent({
27
27
  ...{ name: "TaoButton" },
28
28
  __name: "TaoButton",
@@ -63,8 +63,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
63
63
  onClick: handleClick
64
64
  }, [
65
65
  __props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$L)) : createCommentVNode("", true),
66
- __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$C, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
67
- createElementVNode("span", _hoisted_4$w, [
66
+ __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$D, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
67
+ createElementVNode("span", _hoisted_4$x, [
68
68
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
69
69
  ])
70
70
  ], 10, _hoisted_1$S);
@@ -160,8 +160,8 @@ const _hoisted_2$K = {
160
160
  key: 0,
161
161
  class: "tao-input__affix tao-input__affix--prefix"
162
162
  };
163
- const _hoisted_3$B = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
164
- const _hoisted_4$v = {
163
+ const _hoisted_3$C = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
164
+ const _hoisted_4$w = {
165
165
  key: 1,
166
166
  class: "tao-input__affix tao-input__affix--suffix"
167
167
  };
@@ -242,8 +242,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
242
242
  onInput: handleInput,
243
243
  onBlur: handleBlur,
244
244
  onFocus: handleFocus
245
- }, null, 42, _hoisted_3$B),
246
- _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$v, [
245
+ }, null, 42, _hoisted_3$C),
246
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$w, [
247
247
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
248
248
  ])) : createCommentVNode("", true)
249
249
  ], 2),
@@ -258,7 +258,7 @@ const _hoisted_1$Q = {
258
258
  class: "tao-input-group__addon tao-input-group__addon--before"
259
259
  };
260
260
  const _hoisted_2$J = { class: "tao-input-group__field" };
261
- const _hoisted_3$A = {
261
+ const _hoisted_3$B = {
262
262
  key: 1,
263
263
  class: "tao-input-group__addon tao-input-group__addon--after"
264
264
  };
@@ -293,7 +293,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
293
293
  createElementVNode("div", _hoisted_2$J, [
294
294
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
295
295
  ]),
296
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
296
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
297
297
  renderSlot(_ctx.$slots, "after", {}, void 0, true)
298
298
  ])) : createCommentVNode("", true)
299
299
  ], 34);
@@ -649,8 +649,8 @@ const _hoisted_2$I = {
649
649
  key: 0,
650
650
  class: "tao-input-number__steppers"
651
651
  };
652
- const _hoisted_3$z = ["aria-label", "disabled"];
653
- const _hoisted_4$u = { "aria-hidden": "true" };
652
+ const _hoisted_3$A = ["aria-label", "disabled"];
653
+ const _hoisted_4$v = { "aria-hidden": "true" };
654
654
  const _hoisted_5$n = ["aria-label", "disabled"];
655
655
  const _hoisted_6$i = { "aria-hidden": "true" };
656
656
  const _sfc_main$_ = /* @__PURE__ */ defineComponent({
@@ -824,12 +824,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
824
824
  disabled: __props.disabled || atMax.value,
825
825
  onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
826
826
  }, [
827
- createElementVNode("span", _hoisted_4$u, [
827
+ createElementVNode("span", _hoisted_4$v, [
828
828
  renderSlot(_ctx.$slots, "increment-icon", {}, () => [
829
829
  _cache[2] || (_cache[2] = createTextVNode("+", -1))
830
830
  ], true)
831
831
  ])
832
- ], 8, _hoisted_3$z),
832
+ ], 8, _hoisted_3$A),
833
833
  createElementVNode("button", {
834
834
  type: "button",
835
835
  class: "tao-input-number__step",
@@ -852,8 +852,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
852
852
  const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-0594919d"]]);
853
853
  const _hoisted_1$O = ["aria-label", "disabled"];
854
854
  const _hoisted_2$H = { "aria-hidden": "true" };
855
- const _hoisted_3$y = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
856
- const _hoisted_4$t = ["aria-label", "disabled"];
855
+ const _hoisted_3$z = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
856
+ const _hoisted_4$u = ["aria-label", "disabled"];
857
857
  const _hoisted_5$m = { "aria-hidden": "true" };
858
858
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
859
859
  ...{ name: "TaoQuantity" },
@@ -1023,7 +1023,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
1023
1023
  onFocus,
1024
1024
  onBlur,
1025
1025
  onKeydown
1026
- }, null, 40, _hoisted_3$y),
1026
+ }, null, 40, _hoisted_3$z),
1027
1027
  createElementVNode("button", {
1028
1028
  type: "button",
1029
1029
  class: "tao-quantity__btn tao-quantity__btn--inc",
@@ -1036,7 +1036,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
1036
1036
  _cache[1] || (_cache[1] = createTextVNode("+", -1))
1037
1037
  ], true)
1038
1038
  ])
1039
- ], 8, _hoisted_4$t)
1039
+ ], 8, _hoisted_4$u)
1040
1040
  ], 2);
1041
1041
  };
1042
1042
  }
@@ -1050,11 +1050,11 @@ const _hoisted_2$G = {
1050
1050
  key: 0,
1051
1051
  class: "tao-card__overlay"
1052
1052
  };
1053
- const _hoisted_3$x = {
1053
+ const _hoisted_3$y = {
1054
1054
  key: 1,
1055
1055
  class: "tao-card__overlay"
1056
1056
  };
1057
- const _hoisted_4$s = {
1057
+ const _hoisted_4$t = {
1058
1058
  key: 0,
1059
1059
  class: "tao-card__header-title"
1060
1060
  };
@@ -1126,7 +1126,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
1126
1126
  _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
1127
1127
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1128
1128
  ])) : createCommentVNode("", true)
1129
- ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
1129
+ ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
1130
1130
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1131
1131
  ])) : createCommentVNode("", true),
1132
1132
  hasContent.value ? (openBlock(), createElementBlock("div", {
@@ -1134,7 +1134,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
1134
1134
  class: "tao-card__content",
1135
1135
  style: normalizeStyle(paddingStyle.value)
1136
1136
  }, [
1137
- _ctx.$slots.headerTitle ? (openBlock(), createElementBlock("h2", _hoisted_4$s, [
1137
+ _ctx.$slots.headerTitle ? (openBlock(), createElementBlock("h2", _hoisted_4$t, [
1138
1138
  renderSlot(_ctx.$slots, "headerTitle", {}, void 0, true)
1139
1139
  ])) : createCommentVNode("", true),
1140
1140
  _ctx.$slots.header || _ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("div", {
@@ -1226,8 +1226,8 @@ const _hoisted_2$F = {
1226
1226
  key: 0,
1227
1227
  class: "tao-modal__header"
1228
1228
  };
1229
- const _hoisted_3$w = ["id"];
1230
- const _hoisted_4$r = { key: 1 };
1229
+ const _hoisted_3$x = ["id"];
1230
+ const _hoisted_4$s = { key: 1 };
1231
1231
  const _hoisted_5$k = ["aria-label"];
1232
1232
  const _hoisted_6$g = { "aria-hidden": "true" };
1233
1233
  const _hoisted_7$c = { class: "tao-modal__content" };
@@ -1358,7 +1358,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
1358
1358
  key: 0,
1359
1359
  id: unref(titleId),
1360
1360
  class: "tao-modal__title"
1361
- }, toDisplayString(__props.title), 9, _hoisted_3$w)) : (openBlock(), createElementBlock("span", _hoisted_4$r))
1361
+ }, toDisplayString(__props.title), 9, _hoisted_3$x)) : (openBlock(), createElementBlock("span", _hoisted_4$s))
1362
1362
  ], true),
1363
1363
  __props.closable ? (openBlock(), createElementBlock("button", {
1364
1364
  key: 0,
@@ -1611,11 +1611,11 @@ function isMarkActive(markValue, values) {
1611
1611
  }
1612
1612
  const _hoisted_1$K = ["aria-disabled"];
1613
1613
  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"];
1614
- const _hoisted_3$v = {
1614
+ const _hoisted_3$w = {
1615
1615
  key: 0,
1616
1616
  class: "tao-slider__value"
1617
1617
  };
1618
- const _hoisted_4$q = {
1618
+ const _hoisted_4$r = {
1619
1619
  key: 0,
1620
1620
  class: "tao-slider__marks"
1621
1621
  };
@@ -1853,13 +1853,13 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1853
1853
  onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
1854
1854
  }, null, 46, _hoisted_2$D);
1855
1855
  }), 128)),
1856
- __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
1856
+ __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
1857
1857
  renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
1858
1858
  createTextVNode(toDisplayString(barText.value), 1),
1859
1859
  renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
1860
1860
  ])) : createCommentVNode("", true)
1861
1861
  ], 544),
1862
- markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$q, [
1862
+ markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$r, [
1863
1863
  (openBlock(true), createElementBlock(Fragment, null, renderList(markList.value, (mark) => {
1864
1864
  return openBlock(), createElementBlock("button", {
1865
1865
  key: mark.value,
@@ -1950,7 +1950,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1950
1950
  });
1951
1951
  const _hoisted_1$J = { class: "tao-timeline__controls" };
1952
1952
  const _hoisted_2$C = { class: "tao-timeline__track" };
1953
- const _hoisted_3$u = {
1953
+ const _hoisted_3$v = {
1954
1954
  key: 0,
1955
1955
  class: "tao-timeline__time"
1956
1956
  };
@@ -2046,7 +2046,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
2046
2046
  } : void 0
2047
2047
  ]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
2048
2048
  ]),
2049
- __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
2049
+ __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
2050
2050
  renderSlot(_ctx.$slots, "time", {
2051
2051
  time: __props.modelValue,
2052
2052
  length: __props.length,
@@ -2262,7 +2262,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2262
2262
  if (typeof document === "undefined") {
2263
2263
  return;
2264
2264
  }
2265
- document.addEventListener("pointerdown", onDocumentPointer);
2265
+ document.addEventListener("pointerdown", onDocumentPointer, true);
2266
2266
  document.addEventListener("keydown", onDocumentKey);
2267
2267
  window.addEventListener("resize", onViewportChange);
2268
2268
  window.addEventListener("scroll", onViewportChange, true);
@@ -2271,7 +2271,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2271
2271
  if (typeof document === "undefined") {
2272
2272
  return;
2273
2273
  }
2274
- document.removeEventListener("pointerdown", onDocumentPointer);
2274
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
2275
2275
  document.removeEventListener("keydown", onDocumentKey);
2276
2276
  window.removeEventListener("resize", onViewportChange);
2277
2277
  window.removeEventListener("scroll", onViewportChange, true);
@@ -2422,15 +2422,15 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2422
2422
  };
2423
2423
  }
2424
2424
  });
2425
- const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-3e488e1b"]]);
2425
+ const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-9a1e8080"]]);
2426
2426
  const spoilerGroupKey = Symbol("taoSpoilerGroup");
2427
2427
  const _hoisted_1$H = { class: "tao-spoiler" };
2428
2428
  const _hoisted_2$B = ["aria-expanded", "aria-controls"];
2429
- const _hoisted_3$t = {
2429
+ const _hoisted_3$u = {
2430
2430
  key: 0,
2431
2431
  class: "tao-spoiler__title"
2432
2432
  };
2433
- const _hoisted_4$p = ["id"];
2433
+ const _hoisted_4$q = ["id"];
2434
2434
  const _hoisted_5$i = { class: "tao-spoiler__content-inner" };
2435
2435
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2436
2436
  ...{ name: "TaoSpoiler" },
@@ -2499,7 +2499,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2499
2499
  createElementVNode("span", {
2500
2500
  class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
2501
2501
  }, "▶", 2),
2502
- __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
2502
+ __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
2503
2503
  renderSlot(_ctx.$slots, "title", {}, () => [
2504
2504
  createTextVNode(toDisplayString(__props.title), 1)
2505
2505
  ], true)
@@ -2521,7 +2521,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2521
2521
  createElementVNode("div", _hoisted_5$i, [
2522
2522
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
2523
2523
  ])
2524
- ], 8, _hoisted_4$p)) : createCommentVNode("", true)
2524
+ ], 8, _hoisted_4$q)) : createCommentVNode("", true)
2525
2525
  ]),
2526
2526
  _: 3
2527
2527
  })
@@ -2856,8 +2856,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
2856
2856
  const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-ad288026"]]);
2857
2857
  const _hoisted_1$E = { class: "tao-split__pane tao-split__pane--start" };
2858
2858
  const _hoisted_2$A = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
2859
- const _hoisted_3$s = { class: "tao-split__pane tao-split__pane--end" };
2860
- const _hoisted_4$o = {
2859
+ const _hoisted_3$t = { class: "tao-split__pane tao-split__pane--end" };
2860
+ const _hoisted_4$p = {
2861
2861
  key: 0,
2862
2862
  class: "tao-split__shield"
2863
2863
  };
@@ -3182,10 +3182,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
3182
3182
  onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
3183
3183
  }, ["prevent"]))
3184
3184
  }, null, 40, _hoisted_2$A),
3185
- createElementVNode("div", _hoisted_3$s, [
3185
+ createElementVNode("div", _hoisted_3$t, [
3186
3186
  renderSlot(_ctx.$slots, "end", {}, void 0, true)
3187
3187
  ]),
3188
- isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$o)) : createCommentVNode("", true)
3188
+ isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$p)) : createCommentVNode("", true)
3189
3189
  ], 6);
3190
3190
  };
3191
3191
  }
@@ -3283,7 +3283,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
3283
3283
  const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-49a9f1b2"]]);
3284
3284
  const _hoisted_1$C = { class: "tao-image" };
3285
3285
  const _hoisted_2$z = ["src", "alt", "loading"];
3286
- const _hoisted_3$r = { class: "tao-image__placeholder" };
3286
+ const _hoisted_3$s = { class: "tao-image__placeholder" };
3287
3287
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
3288
3288
  ...{ name: "TaoImage" },
3289
3289
  __name: "TaoImage",
@@ -3328,7 +3328,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
3328
3328
  onError: handleError
3329
3329
  }, null, 42, _hoisted_2$z)) : createCommentVNode("", true),
3330
3330
  !__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
3331
- createElementVNode("div", _hoisted_3$r, toDisplayString(__props.placeholderText), 1)
3331
+ createElementVNode("div", _hoisted_3$s, toDisplayString(__props.placeholderText), 1)
3332
3332
  ], true, 1) : createCommentVNode("", true)
3333
3333
  ]);
3334
3334
  };
@@ -3337,11 +3337,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
3337
3337
  const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-61f47c52"]]);
3338
3338
  const _hoisted_1$B = ["for"];
3339
3339
  const _hoisted_2$y = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
3340
- const _hoisted_3$q = {
3340
+ const _hoisted_3$r = {
3341
3341
  key: 0,
3342
3342
  class: "tao-checkbox__label"
3343
3343
  };
3344
- const _hoisted_4$n = {
3344
+ const _hoisted_4$o = {
3345
3345
  key: 1,
3346
3346
  class: "tao-checkbox__label"
3347
3347
  };
@@ -3425,7 +3425,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
3425
3425
  onChange: onInputChange
3426
3426
  }, null, 40, _hoisted_2$y),
3427
3427
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
3428
- __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, [
3428
+ __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$r, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, [
3429
3429
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
3430
3430
  ])),
3431
3431
  renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
@@ -3439,8 +3439,8 @@ const _hoisted_1$A = {
3439
3439
  class: "tao-tag__prefix"
3440
3440
  };
3441
3441
  const _hoisted_2$x = { class: "tao-tag__text" };
3442
- const _hoisted_3$p = ["aria-label"];
3443
- const _hoisted_4$m = { "aria-hidden": "true" };
3442
+ const _hoisted_3$q = ["aria-label"];
3443
+ const _hoisted_4$n = { "aria-hidden": "true" };
3444
3444
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
3445
3445
  ...{ name: "TaoTag" },
3446
3446
  __name: "TaoTag",
@@ -3506,12 +3506,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
3506
3506
  "aria-label": unref(l10n).closeLabel,
3507
3507
  onClick: withModifiers(onClose, ["stop"])
3508
3508
  }, [
3509
- createElementVNode("span", _hoisted_4$m, [
3509
+ createElementVNode("span", _hoisted_4$n, [
3510
3510
  renderSlot(_ctx.$slots, "close-icon", {}, () => [
3511
3511
  _cache[0] || (_cache[0] = createTextVNode("✕", -1))
3512
3512
  ], true)
3513
3513
  ])
3514
- ], 8, _hoisted_3$p)) : createCommentVNode("", true)
3514
+ ], 8, _hoisted_3$q)) : createCommentVNode("", true)
3515
3515
  ], 6);
3516
3516
  };
3517
3517
  }
@@ -3522,7 +3522,7 @@ const _hoisted_2$w = {
3522
3522
  key: 1,
3523
3523
  class: "tao-divider__text"
3524
3524
  };
3525
- const _hoisted_3$o = {
3525
+ const _hoisted_3$p = {
3526
3526
  key: 2,
3527
3527
  class: "tao-divider__line tao-divider__line--end"
3528
3528
  };
@@ -3565,7 +3565,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
3565
3565
  createTextVNode(toDisplayString(__props.text), 1)
3566
3566
  ], true)
3567
3567
  ])) : createCommentVNode("", true),
3568
- __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$o)) : createCommentVNode("", true)
3568
+ __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$p)) : createCommentVNode("", true)
3569
3569
  ], 10, _hoisted_1$z);
3570
3570
  };
3571
3571
  }
@@ -3955,8 +3955,8 @@ const _hoisted_2$s = {
3955
3955
  key: 0,
3956
3956
  class: "tao-progress__side"
3957
3957
  };
3958
- const _hoisted_3$n = { class: "tao-progress__main" };
3959
- const _hoisted_4$l = {
3958
+ const _hoisted_3$o = { class: "tao-progress__main" };
3959
+ const _hoisted_4$m = {
3960
3960
  key: 0,
3961
3961
  class: "tao-progress__percentage"
3962
3962
  };
@@ -4007,8 +4007,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
4007
4007
  _ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
4008
4008
  renderSlot(_ctx.$slots, "left", {}, void 0, true)
4009
4009
  ])) : createCommentVNode("", true),
4010
- createElementVNode("div", _hoisted_3$n, [
4011
- showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$l, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
4010
+ createElementVNode("div", _hoisted_3$o, [
4011
+ showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
4012
4012
  createElementVNode("div", {
4013
4013
  class: "tao-progress__track",
4014
4014
  style: normalizeStyle({ height: `${__props.height}px` })
@@ -4088,8 +4088,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
4088
4088
  });
4089
4089
  const _hoisted_1$u = { class: "tao-file-drop__row" };
4090
4090
  const _hoisted_2$r = ["aria-label"];
4091
- const _hoisted_3$m = { "aria-hidden": "true" };
4092
- const _hoisted_4$k = ["accept", "multiple"];
4091
+ const _hoisted_3$n = { "aria-hidden": "true" };
4092
+ const _hoisted_4$l = ["accept", "multiple"];
4093
4093
  const _hoisted_5$g = {
4094
4094
  key: 0,
4095
4095
  class: "tao-file-drop__list"
@@ -4246,7 +4246,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
4246
4246
  "aria-label": unref(l10n).clearLabel,
4247
4247
  onClick: requestClear
4248
4248
  }, [
4249
- createElementVNode("span", _hoisted_3$m, [
4249
+ createElementVNode("span", _hoisted_3$n, [
4250
4250
  renderSlot(_ctx.$slots, "clear-icon", {}, () => [
4251
4251
  _cache[1] || (_cache[1] = createTextVNode("✕", -1))
4252
4252
  ], true)
@@ -4271,7 +4271,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
4271
4271
  onChange: handleFileSelect,
4272
4272
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
4273
4273
  }, ["stop"]))
4274
- }, null, 40, _hoisted_4$k)
4274
+ }, null, 40, _hoisted_4$l)
4275
4275
  ], 34)
4276
4276
  ]),
4277
4277
  __props.list && __props.modelValue.length ? (openBlock(), createElementBlock("ul", _hoisted_5$g, [
@@ -4307,8 +4307,8 @@ const _hoisted_2$q = {
4307
4307
  key: 1,
4308
4308
  "aria-hidden": "true"
4309
4309
  };
4310
- const _hoisted_3$l = ["onClick", "onMouseenter"];
4311
- const _hoisted_4$j = { key: 1 };
4310
+ const _hoisted_3$m = ["onClick", "onMouseenter"];
4311
+ const _hoisted_4$k = { key: 1 };
4312
4312
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
4313
4313
  ...{ name: "TaoDropdownMenu" },
4314
4314
  __name: "TaoDropdownMenu",
@@ -4423,12 +4423,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4423
4423
  }
4424
4424
  }
4425
4425
  onMounted(() => {
4426
- document.addEventListener("pointerdown", onDocumentPointer);
4426
+ document.addEventListener("pointerdown", onDocumentPointer, true);
4427
4427
  window.addEventListener("scroll", onWinScroll, true);
4428
4428
  window.addEventListener("resize", updatePosition);
4429
4429
  });
4430
4430
  onBeforeUnmount(() => {
4431
- document.removeEventListener("pointerdown", onDocumentPointer);
4431
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
4432
4432
  window.removeEventListener("scroll", onWinScroll, true);
4433
4433
  window.removeEventListener("resize", updatePosition);
4434
4434
  });
@@ -4481,8 +4481,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4481
4481
  id: action.id,
4482
4482
  ico: action.ico,
4483
4483
  text: action.name
4484
- }, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(action.name), 1))
4485
- ], 42, _hoisted_3$l);
4484
+ }, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(action.name), 1))
4485
+ ], 42, _hoisted_3$m);
4486
4486
  }), 128))
4487
4487
  ], 36)) : createCommentVNode("", true)
4488
4488
  ]))
@@ -4490,14 +4490,60 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4490
4490
  };
4491
4491
  }
4492
4492
  });
4493
- const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-5db490aa"]]);
4493
+ const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-de4a2254"]]);
4494
+ const PIN_CELL = "#";
4495
+ function parsePinFormat(format) {
4496
+ const mask = [...format];
4497
+ const before = [];
4498
+ let pending = "";
4499
+ for (const ch of mask) {
4500
+ if (ch === PIN_CELL) {
4501
+ before.push(pending);
4502
+ pending = "";
4503
+ } else {
4504
+ pending += ch;
4505
+ }
4506
+ }
4507
+ return { mask, cells: before.length, before, after: pending, hasSeparators: mask.some((ch) => ch !== PIN_CELL) };
4508
+ }
4509
+ function separatorAfter(format, index) {
4510
+ return index === format.cells - 1 ? format.after : format.before[index + 1] ?? "";
4511
+ }
4512
+ function pinFromPaste(text, format, cells, accept) {
4513
+ const chars = [...text.trim()];
4514
+ if ((format == null ? void 0 : format.hasSeparators) && chars.length === format.mask.length) {
4515
+ const cellChars = [];
4516
+ const matches = format.mask.every((expected, i) => {
4517
+ const ch = chars[i];
4518
+ if (expected !== PIN_CELL) return ch === expected;
4519
+ const accepted = accept(ch);
4520
+ if (!accepted) return false;
4521
+ cellChars.push(accepted);
4522
+ return true;
4523
+ });
4524
+ if (matches) return cellChars;
4525
+ }
4526
+ if (chars.length === cells && chars.every((ch) => accept(ch))) return chars.map((ch) => accept(ch));
4527
+ return null;
4528
+ }
4494
4529
  const _hoisted_1$s = ["aria-invalid", "aria-describedby"];
4495
- const _hoisted_2$p = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
4530
+ const _hoisted_2$p = {
4531
+ key: 0,
4532
+ class: "tao-pin-code__separator",
4533
+ "aria-hidden": "true"
4534
+ };
4535
+ const _hoisted_3$l = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
4536
+ const _hoisted_4$j = {
4537
+ key: 0,
4538
+ class: "tao-pin-code__separator",
4539
+ "aria-hidden": "true"
4540
+ };
4496
4541
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
4497
4542
  ...{ name: "TaoPinCode" },
4498
4543
  __name: "TaoPinCode",
4499
4544
  props: {
4500
4545
  length: {},
4546
+ format: {},
4501
4547
  masked: { type: Boolean, default: false },
4502
4548
  hidden: { type: Boolean, default: false },
4503
4549
  placeholder: { default: "" },
@@ -4518,6 +4564,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4518
4564
  const invalid = computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
4519
4565
  const isMasked = computed(() => props.masked || props.hidden);
4520
4566
  const describedBy = computed(() => field == null ? void 0 : field.describedBy.value);
4567
+ const layout = computed(() => props.format === void 0 ? null : parsePinFormat(props.format));
4568
+ const count = computed(() => {
4569
+ var _a;
4570
+ return ((_a = layout.value) == null ? void 0 : _a.cells) ?? props.length ?? 0;
4571
+ });
4521
4572
  const numbers = ref([]);
4522
4573
  const inputRefs = ref([]);
4523
4574
  const activeNumber = ref(-1);
@@ -4532,7 +4583,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4532
4583
  }
4533
4584
  function cellsFromModel(value) {
4534
4585
  const raw = value ?? "";
4535
- return Array.from({ length: props.length }, (_, index) => acceptChar(raw[index] ?? ""));
4586
+ return Array.from({ length: count.value }, (_, index) => acceptChar(raw[index] ?? ""));
4536
4587
  }
4537
4588
  function serialize() {
4538
4589
  return numbers.value.join("");
@@ -4553,18 +4604,19 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4553
4604
  (_a = inputRefs.value[index]) == null ? void 0 : _a.focus();
4554
4605
  }
4555
4606
  function isFilled() {
4556
- return numbers.value.length === props.length && numbers.value.every((cell) => cell !== "");
4607
+ return numbers.value.length === count.value && numbers.value.every((cell) => cell !== "");
4557
4608
  }
4558
- function applyChars(index, raw) {
4609
+ function applyChars(index, raw, pasted = false) {
4559
4610
  var _a;
4560
- const chars = [...raw].map((ch) => acceptChar(ch)).filter(Boolean);
4611
+ const whole = pasted ? pinFromPaste(raw, layout.value, count.value, acceptChar) : null;
4612
+ const chars = whole ?? [...raw].map((ch) => acceptChar(ch)).filter(Boolean);
4561
4613
  if (!chars.length) {
4562
4614
  return;
4563
4615
  }
4564
4616
  numbers.value = [...numbers.value];
4565
- let cursor = index;
4617
+ let cursor = whole ? 0 : index;
4566
4618
  for (const ch of chars) {
4567
- if (cursor >= props.length) {
4619
+ if (cursor >= count.value) {
4568
4620
  break;
4569
4621
  }
4570
4622
  numbers.value[cursor] = ch;
@@ -4576,7 +4628,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4576
4628
  emit("complete", serialize());
4577
4629
  return;
4578
4630
  }
4579
- if (cursor < props.length) {
4631
+ if (cursor < count.value) {
4580
4632
  focusCell(cursor);
4581
4633
  }
4582
4634
  }
@@ -4588,6 +4640,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4588
4640
  }
4589
4641
  const next = acceptChar(v);
4590
4642
  if (props.numbersOnly && v && !next) {
4643
+ if (layout.value && numbers.value[index] && v === separatorAfter(layout.value, index) && index + 1 < count.value) {
4644
+ const el2 = inputRefs.value[index];
4645
+ if (el2) {
4646
+ el2.value = numbers.value[index] ?? "";
4647
+ }
4648
+ focusCell(index + 1);
4649
+ return;
4650
+ }
4591
4651
  const el = inputRefs.value[index];
4592
4652
  if (el) {
4593
4653
  el.value = numbers.value[index] ?? "";
@@ -4607,7 +4667,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4607
4667
  }
4608
4668
  const nextEmpty = numbers.value.findIndex((cell, cellIndex) => cellIndex > index && !cell);
4609
4669
  const target = nextEmpty !== -1 ? nextEmpty : index + 1;
4610
- if (target < props.length) {
4670
+ if (target < count.value) {
4611
4671
  focusCell(target);
4612
4672
  }
4613
4673
  }
@@ -4618,12 +4678,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4618
4678
  return;
4619
4679
  }
4620
4680
  event.preventDefault();
4621
- applyChars(index, text);
4681
+ applyChars(index, text, true);
4622
4682
  }
4623
4683
  function onFocus(index) {
4624
4684
  if (props.clearOn === "input") {
4625
4685
  const firstEmpty = firstEmptyIndex();
4626
- if (firstEmpty < props.length && index > firstEmpty) {
4686
+ if (firstEmpty < count.value && index > firstEmpty) {
4627
4687
  focusCell(firstEmpty);
4628
4688
  return;
4629
4689
  }
@@ -4669,7 +4729,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4669
4729
  });
4670
4730
  }
4671
4731
  watch(
4672
- () => [props.modelValue, props.length, props.numbersOnly],
4732
+ () => [props.modelValue, count.value, props.numbersOnly],
4673
4733
  () => {
4674
4734
  const next = cellsFromModel(props.modelValue ?? "");
4675
4735
  if (next.join("") !== numbers.value.join("") || next.length !== numbers.value.length) {
@@ -4682,6 +4742,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4682
4742
  hidden: "use `masked`"
4683
4743
  });
4684
4744
  return (_ctx, _cache) => {
4745
+ var _a;
4685
4746
  return openBlock(), createElementBlock("div", {
4686
4747
  class: normalizeClass(["tao-pin-code", [unref(sizeClass)(__props.size), { "tao-pin-code--disabled": __props.disabled }]]),
4687
4748
  role: "group",
@@ -4689,36 +4750,40 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4689
4750
  "aria-describedby": describedBy.value
4690
4751
  }, [
4691
4752
  (openBlock(true), createElementBlock(Fragment, null, renderList(numbers.value, (num, index) => {
4692
- return openBlock(), createElementBlock("input", {
4693
- id: index === 0 ? controlId.value : void 0,
4694
- key: index,
4695
- ref_for: true,
4696
- ref: (el) => inputRefs.value[index] = el,
4697
- class: normalizeClass(["tao-pin-code__value", {
4698
- "tao-pin-code__value--active": activeNumber.value === index,
4699
- "tao-pin-code__value--invalid": invalid.value
4700
- }]),
4701
- value: num,
4702
- placeholder: __props.placeholder,
4703
- type: isMasked.value ? "password" : "text",
4704
- disabled: __props.disabled,
4705
- "aria-invalid": invalid.value || void 0,
4706
- inputmode: __props.numbersOnly ? "numeric" : "text",
4707
- pattern: __props.numbersOnly ? "[0-9]" : void 0,
4708
- autocomplete: "one-time-code",
4709
- maxlength: index === 0 ? __props.length : 1,
4710
- onInput: ($event) => onChange($event, index),
4711
- onPaste: ($event) => onPaste($event, index),
4712
- onKeydown: ($event) => onKeydown($event, index),
4713
- onFocus: ($event) => onFocus(index),
4714
- onBlur
4715
- }, null, 42, _hoisted_2$p);
4716
- }), 128))
4753
+ var _a2;
4754
+ return openBlock(), createElementBlock(Fragment, { key: index }, [
4755
+ ((_a2 = layout.value) == null ? void 0 : _a2.before[index]) ? (openBlock(), createElementBlock("span", _hoisted_2$p, toDisplayString(layout.value.before[index]), 1)) : createCommentVNode("", true),
4756
+ createElementVNode("input", {
4757
+ id: index === 0 ? controlId.value : void 0,
4758
+ ref_for: true,
4759
+ ref: (el) => inputRefs.value[index] = el,
4760
+ class: normalizeClass(["tao-pin-code__value", {
4761
+ "tao-pin-code__value--active": activeNumber.value === index,
4762
+ "tao-pin-code__value--invalid": invalid.value
4763
+ }]),
4764
+ value: num,
4765
+ placeholder: __props.placeholder,
4766
+ type: isMasked.value ? "password" : "text",
4767
+ disabled: __props.disabled,
4768
+ "aria-invalid": invalid.value || void 0,
4769
+ inputmode: __props.numbersOnly ? "numeric" : "text",
4770
+ pattern: __props.numbersOnly ? "[0-9]" : void 0,
4771
+ autocomplete: "one-time-code",
4772
+ maxlength: index === 0 ? count.value : 1,
4773
+ onInput: ($event) => onChange($event, index),
4774
+ onPaste: ($event) => onPaste($event, index),
4775
+ onKeydown: ($event) => onKeydown($event, index),
4776
+ onFocus: ($event) => onFocus(index),
4777
+ onBlur
4778
+ }, null, 42, _hoisted_3$l)
4779
+ ], 64);
4780
+ }), 128)),
4781
+ ((_a = layout.value) == null ? void 0 : _a.after) ? (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(layout.value.after), 1)) : createCommentVNode("", true)
4717
4782
  ], 10, _hoisted_1$s);
4718
4783
  };
4719
4784
  }
4720
4785
  });
4721
- const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-6f0df8bd"]]);
4786
+ const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-45c2201a"]]);
4722
4787
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
4723
4788
  ...{ name: "TaoLink" },
4724
4789
  __name: "TaoLink",
@@ -5026,17 +5091,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5026
5091
  watch(open, (isOpen) => {
5027
5092
  if (isOpen) {
5028
5093
  panelSize.value = resolveSize(triggerRef.value, props.size);
5029
- document.addEventListener("pointerdown", onDocumentPointer);
5094
+ document.addEventListener("pointerdown", onDocumentPointer, true);
5030
5095
  window.addEventListener("resize", onViewportChange);
5031
5096
  window.addEventListener("scroll", onViewportChange, true);
5032
5097
  return;
5033
5098
  }
5034
- document.removeEventListener("pointerdown", onDocumentPointer);
5099
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
5035
5100
  window.removeEventListener("resize", onViewportChange);
5036
5101
  window.removeEventListener("scroll", onViewportChange, true);
5037
5102
  });
5038
5103
  onBeforeUnmount(() => {
5039
- document.removeEventListener("pointerdown", onDocumentPointer);
5104
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
5040
5105
  window.removeEventListener("resize", onViewportChange);
5041
5106
  window.removeEventListener("scroll", onViewportChange, true);
5042
5107
  });
@@ -5125,7 +5190,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5125
5190
  };
5126
5191
  }
5127
5192
  });
5128
- const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-47d327a3"]]);
5193
+ const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a3dccaa5"]]);
5129
5194
  const clamp = (v, lo, hi) => Math.min(Math.max(v, lo), hi);
5130
5195
  const byte = (v) => Math.round(clamp(v, 0, 255));
5131
5196
  const hex2 = (v) => byte(v).toString(16).padStart(2, "0");
@@ -5806,7 +5871,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5806
5871
  };
5807
5872
  }
5808
5873
  });
5809
- const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9fe54966"]]);
5874
+ const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9870ed0d"]]);
5810
5875
  const _hoisted_1$m = ["disabled", "aria-label", "aria-expanded"];
5811
5876
  const _hoisted_2$k = { class: "tao-color-input__swatch" };
5812
5877
  const _hoisted_3$h = { class: "tao-color-input__text" };
@@ -6247,12 +6312,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6247
6312
  watch(open, (isOpen) => {
6248
6313
  if (isOpen) {
6249
6314
  panelSize.value = resolveSize(fieldRef.value, props.size);
6250
- document.addEventListener("pointerdown", onDocumentPointer);
6315
+ document.addEventListener("pointerdown", onDocumentPointer, true);
6251
6316
  window.addEventListener("resize", onViewportChange);
6252
6317
  window.addEventListener("scroll", onViewportChange, true);
6253
6318
  return;
6254
6319
  }
6255
- document.removeEventListener("pointerdown", onDocumentPointer);
6320
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
6256
6321
  window.removeEventListener("resize", onViewportChange);
6257
6322
  window.removeEventListener("scroll", onViewportChange, true);
6258
6323
  });
@@ -6264,7 +6329,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6264
6329
  });
6265
6330
  onBeforeUnmount(() => {
6266
6331
  stopFocusLoss == null ? void 0 : stopFocusLoss();
6267
- document.removeEventListener("pointerdown", onDocumentPointer);
6332
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
6268
6333
  window.removeEventListener("resize", onViewportChange);
6269
6334
  window.removeEventListener("scroll", onViewportChange, true);
6270
6335
  });
@@ -6383,7 +6448,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6383
6448
  };
6384
6449
  }
6385
6450
  });
6386
- const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-e75a5550"]]);
6451
+ const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c030f18f"]]);
6387
6452
  const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
6388
6453
  function formatTaoDateIso(parts) {
6389
6454
  return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
@@ -6748,17 +6813,17 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6748
6813
  }
6749
6814
  watch(open, (isOpen) => {
6750
6815
  if (isOpen) {
6751
- document.addEventListener("pointerdown", onDocumentPointer);
6816
+ document.addEventListener("pointerdown", onDocumentPointer, true);
6752
6817
  window.addEventListener("resize", onViewportChange);
6753
6818
  window.addEventListener("scroll", onViewportChange, true);
6754
6819
  return;
6755
6820
  }
6756
- document.removeEventListener("pointerdown", onDocumentPointer);
6821
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
6757
6822
  window.removeEventListener("resize", onViewportChange);
6758
6823
  window.removeEventListener("scroll", onViewportChange, true);
6759
6824
  });
6760
6825
  onBeforeUnmount(() => {
6761
- document.removeEventListener("pointerdown", onDocumentPointer);
6826
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
6762
6827
  window.removeEventListener("resize", onViewportChange);
6763
6828
  window.removeEventListener("scroll", onViewportChange, true);
6764
6829
  });
@@ -6935,7 +7000,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6935
7000
  };
6936
7001
  }
6937
7002
  });
6938
- const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-97f71e11"]]);
7003
+ const TaoDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6a9754ce"]]);
6939
7004
  const _hoisted_1$j = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
6940
7005
  const _hoisted_2$h = { class: "tao-date-range__value" };
6941
7006
  const _hoisted_3$e = {
@@ -7199,14 +7264,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
7199
7264
  }
7200
7265
  watch(open, (isOpen) => {
7201
7266
  if (isOpen) {
7202
- document.addEventListener("pointerdown", onDocumentPointer);
7267
+ document.addEventListener("pointerdown", onDocumentPointer, true);
7203
7268
  window.addEventListener("resize", onViewportChange);
7204
7269
  window.addEventListener("scroll", onViewportChange, true);
7205
7270
  return;
7206
7271
  }
7207
7272
  draftStart.value = null;
7208
7273
  hoverIso.value = null;
7209
- document.removeEventListener("pointerdown", onDocumentPointer);
7274
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
7210
7275
  window.removeEventListener("resize", onViewportChange);
7211
7276
  window.removeEventListener("scroll", onViewportChange, true);
7212
7277
  });
@@ -7218,7 +7283,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
7218
7283
  });
7219
7284
  onBeforeUnmount(() => {
7220
7285
  stopFocusLoss == null ? void 0 : stopFocusLoss();
7221
- document.removeEventListener("pointerdown", onDocumentPointer);
7286
+ document.removeEventListener("pointerdown", onDocumentPointer, true);
7222
7287
  window.removeEventListener("resize", onViewportChange);
7223
7288
  window.removeEventListener("scroll", onViewportChange, true);
7224
7289
  });
@@ -7404,7 +7469,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
7404
7469
  };
7405
7470
  }
7406
7471
  });
7407
- const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-da3794c7"]]);
7472
+ const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-fc2e92f1"]]);
7408
7473
  const _hoisted_1$i = ["for"];
7409
7474
  const _hoisted_2$g = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
7410
7475
  const _hoisted_3$d = {