@1337exp/taoui 3.1.1 → 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.cjs CHANGED
@@ -21,11 +21,11 @@
21
21
  key: 0,
22
22
  class: "tao-button__loader"
23
23
  };
24
- const _hoisted_3$C = {
24
+ const _hoisted_3$D = {
25
25
  key: 1,
26
26
  class: "tao-button__icon"
27
27
  };
28
- const _hoisted_4$w = { class: "tao-button__content" };
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$C, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true),
70
- vue.createElementVNode("span", _hoisted_4$w, [
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$B = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
167
- const _hoisted_4$v = {
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$B),
249
- _ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$v, [
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$A = {
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$A, [
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$z = ["aria-label", "disabled"];
656
- const _hoisted_4$u = { "aria-hidden": "true" };
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$u, [
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$z),
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$y = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
859
- const _hoisted_4$t = ["aria-label", "disabled"];
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$y),
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$t)
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$x = {
1056
+ const _hoisted_3$y = {
1057
1057
  key: 1,
1058
1058
  class: "tao-card__overlay"
1059
1059
  };
1060
- const _hoisted_4$s = {
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$x, [
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$s, [
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$w = ["id"];
1233
- const _hoisted_4$r = { key: 1 };
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$w)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r))
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$v = {
1617
+ const _hoisted_3$w = {
1618
1618
  key: 0,
1619
1619
  class: "tao-slider__value"
1620
1620
  };
1621
- const _hoisted_4$q = {
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$v, [
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$q, [
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$u = {
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$u, [
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,
@@ -2429,11 +2429,11 @@
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$t = {
2432
+ const _hoisted_3$u = {
2433
2433
  key: 0,
2434
2434
  class: "tao-spoiler__title"
2435
2435
  };
2436
- const _hoisted_4$p = ["id"];
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$t, [
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$p)) : vue.createCommentVNode("", true)
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$s = { class: "tao-split__pane tao-split__pane--end" };
2863
- const _hoisted_4$o = {
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$s, [
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$o)) : vue.createCommentVNode("", true)
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$r = { class: "tao-image__placeholder" };
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$r, vue.toDisplayString(__props.placeholderText), 1)
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$q = {
3343
+ const _hoisted_3$r = {
3344
3344
  key: 0,
3345
3345
  class: "tao-checkbox__label"
3346
3346
  };
3347
- const _hoisted_4$n = {
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$q, vue.toDisplayString(__props.label), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$n, [
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$p = ["aria-label"];
3446
- const _hoisted_4$m = { "aria-hidden": "true" };
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$m, [
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$p)) : vue.createCommentVNode("", true)
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$o = {
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$o)) : vue.createCommentVNode("", true)
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$n = { class: "tao-progress__main" };
3962
- const _hoisted_4$l = {
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$n, [
4014
- showOverPercent.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$l, vue.toDisplayString(__props.progress) + "%", 1)) : vue.createCommentVNode("", true),
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$m = { "aria-hidden": "true" };
4095
- const _hoisted_4$k = ["accept", "multiple"];
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$m, [
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$k)
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$l = ["onClick", "onMouseenter"];
4314
- const _hoisted_4$j = { key: 1 };
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",
@@ -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$j, vue.toDisplayString(action.name), 1))
4488
- ], 42, _hoisted_3$l);
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
  ]))
@@ -4494,13 +4494,59 @@
4494
4494
  }
4495
4495
  });
4496
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 = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
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: props.length }, (_, index) => acceptChar(raw[index] ?? ""));
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 === props.length && numbers.value.every((cell) => cell !== "");
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 chars = [...raw].map((ch) => acceptChar(ch)).filter(Boolean);
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 >= props.length) {
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 < props.length) {
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 < props.length) {
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 < props.length && index > 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, props.length, props.numbersOnly],
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
- return vue.openBlock(), vue.createElementBlock("input", {
4696
- id: index === 0 ? controlId.value : void 0,
4697
- key: index,
4698
- ref_for: true,
4699
- ref: (el) => inputRefs.value[index] = el,
4700
- class: vue.normalizeClass(["tao-pin-code__value", {
4701
- "tao-pin-code__value--active": activeNumber.value === index,
4702
- "tao-pin-code__value--invalid": invalid.value
4703
- }]),
4704
- value: num,
4705
- placeholder: __props.placeholder,
4706
- type: isMasked.value ? "password" : "text",
4707
- disabled: __props.disabled,
4708
- "aria-invalid": invalid.value || void 0,
4709
- inputmode: __props.numbersOnly ? "numeric" : "text",
4710
- pattern: __props.numbersOnly ? "[0-9]" : void 0,
4711
- autocomplete: "one-time-code",
4712
- maxlength: index === 0 ? __props.length : 1,
4713
- onInput: ($event) => onChange($event, index),
4714
- onPaste: ($event) => onPaste($event, index),
4715
- onKeydown: ($event) => onKeydown($event, index),
4716
- onFocus: ($event) => onFocus(index),
4717
- onBlur
4718
- }, null, 42, _hoisted_2$p);
4719
- }), 128))
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-6f0df8bd"]]);
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",
@@ -5809,7 +5874,7 @@
5809
5874
  };
5810
5875
  }
5811
5876
  });
5812
- const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9fe54966"]]);
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" };