@1337exp/taoui 3.1.1 → 3.2.1

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
  };
@@ -1071,7 +1071,7 @@ const _hoisted_8$c = {
1071
1071
  key: 1,
1072
1072
  class: "tao-card__sub"
1073
1073
  };
1074
- const _hoisted_9$5 = {
1074
+ const _hoisted_9$6 = {
1075
1075
  key: 3,
1076
1076
  class: "tao-card__body"
1077
1077
  };
@@ -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", {
@@ -1156,7 +1156,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
1156
1156
  renderSlot(_ctx.$slots, "sub", {}, void 0, true)
1157
1157
  ])) : createCommentVNode("", true)
1158
1158
  ])) : createCommentVNode("", true),
1159
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
1159
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
1160
1160
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
1161
1161
  ])) : createCommentVNode("", true),
1162
1162
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_10$4, [
@@ -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,
@@ -2426,11 +2426,11 @@ const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data
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"
@@ -4097,7 +4097,7 @@ const _hoisted_5$g = {
4097
4097
  const _hoisted_6$d = { class: "tao-file-drop__name" };
4098
4098
  const _hoisted_7$b = { class: "tao-file-drop__meta" };
4099
4099
  const _hoisted_8$a = ["aria-label", "onClick"];
4100
- const _hoisted_9$4 = { "aria-hidden": "true" };
4100
+ const _hoisted_9$5 = { "aria-hidden": "true" };
4101
4101
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
4102
4102
  ...{ name: "TaoFileDrop" },
4103
4103
  __name: "TaoFileDrop",
@@ -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, [
@@ -4288,7 +4288,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
4288
4288
  "aria-label": unref(l10n).removeLabel.replace("{name}", file.name),
4289
4289
  onClick: ($event) => removeAt(index)
4290
4290
  }, [
4291
- createElementVNode("span", _hoisted_9$4, [
4291
+ createElementVNode("span", _hoisted_9$5, [
4292
4292
  renderSlot(_ctx.$slots, "remove-icon", {}, () => [
4293
4293
  _cache[2] || (_cache[2] = createTextVNode("✕", -1))
4294
4294
  ], true)
@@ -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",
@@ -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
  ]))
@@ -4491,13 +4491,59 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4491
4491
  }
4492
4492
  });
4493
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",
@@ -5473,12 +5538,16 @@ const _hoisted_2$l = { class: "tao-color-picker__strips" };
5473
5538
  const _hoisted_3$i = { class: "tao-color-picker__row" };
5474
5539
  const _hoisted_4$g = { class: "tao-color-picker__preview" };
5475
5540
  const _hoisted_5$e = {
5541
+ key: 0,
5542
+ class: "tao-color-picker__hex"
5543
+ };
5544
+ const _hoisted_6$b = {
5476
5545
  key: 1,
5477
5546
  class: "tao-color-picker__channels"
5478
5547
  };
5479
- const _hoisted_6$b = ["disabled", "aria-label", "title"];
5480
- const _hoisted_7$9 = ["aria-label"];
5481
- const _hoisted_8$9 = ["disabled", "aria-label", "title", "onClick"];
5548
+ const _hoisted_7$9 = ["disabled", "aria-label", "title"];
5549
+ const _hoisted_8$9 = ["aria-label"];
5550
+ const _hoisted_9$4 = ["disabled", "aria-label", "title", "onClick"];
5482
5551
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
5483
5552
  ...{ name: "TaoColorPicker" },
5484
5553
  __name: "TaoColorPicker",
@@ -5742,18 +5811,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5742
5811
  style: normalizeStyle({ backgroundColor: hex.value })
5743
5812
  }, null, 4)
5744
5813
  ]),
5745
- activeMode.value === "hex" ? (openBlock(), createBlock(TaoInput, {
5746
- key: 0,
5747
- modelValue: hexText.value,
5748
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => hexText.value = $event),
5749
- class: "tao-color-picker__hex",
5750
- size: "small",
5751
- error: hexInvalid.value,
5752
- disabled: __props.disabled,
5753
- "aria-label": unref(l10n).hexLabel,
5754
- onBlur: commitHex,
5755
- onKeydown: withKeys(commitHex, ["enter"])
5756
- }, null, 8, ["modelValue", "error", "disabled", "aria-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$e, [
5814
+ activeMode.value === "hex" ? (openBlock(), createElementBlock("label", _hoisted_5$e, [
5815
+ _cache[6] || (_cache[6] = createElementVNode("span", null, "HEX", -1)),
5816
+ createVNode(TaoInput, {
5817
+ modelValue: hexText.value,
5818
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => hexText.value = $event),
5819
+ size: "small",
5820
+ error: hexInvalid.value,
5821
+ disabled: __props.disabled,
5822
+ "aria-label": unref(l10n).hexLabel,
5823
+ onBlur: commitHex,
5824
+ onKeydown: withKeys(commitHex, ["enter"])
5825
+ }, null, 8, ["modelValue", "error", "disabled", "aria-label"])
5826
+ ])) : (openBlock(), createElementBlock("div", _hoisted_6$b, [
5757
5827
  (openBlock(true), createElementBlock(Fragment, null, renderList(channels.value, (c) => {
5758
5828
  return openBlock(), createElementBlock("label", {
5759
5829
  key: c.key,
@@ -5781,7 +5851,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5781
5851
  "aria-label": unref(l10n).eyedropperLabel,
5782
5852
  title: unref(l10n).eyedropperLabel,
5783
5853
  onClick: eyedrop
5784
- }, " ✎ ", 8, _hoisted_6$b)) : createCommentVNode("", true)
5854
+ }, " ✎ ", 8, _hoisted_7$9)) : createCommentVNode("", true)
5785
5855
  ]),
5786
5856
  ((_a = __props.swatches) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", {
5787
5857
  key: 1,
@@ -5799,14 +5869,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5799
5869
  "aria-label": s,
5800
5870
  title: s,
5801
5871
  onClick: ($event) => pick(s)
5802
- }, null, 14, _hoisted_8$9);
5872
+ }, null, 14, _hoisted_9$4);
5803
5873
  }), 128))
5804
- ], 8, _hoisted_7$9)) : createCommentVNode("", true)
5874
+ ], 8, _hoisted_8$9)) : createCommentVNode("", true)
5805
5875
  ], 2);
5806
5876
  };
5807
5877
  }
5808
5878
  });
5809
- const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9fe54966"]]);
5879
+ const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-bebf52dc"]]);
5810
5880
  const _hoisted_1$m = ["disabled", "aria-label", "aria-expanded"];
5811
5881
  const _hoisted_2$k = { class: "tao-color-input__swatch" };
5812
5882
  const _hoisted_3$h = { class: "tao-color-input__text" };