@1337exp/taoui 5.25.0 → 5.27.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, Teleport, Transition, withCtx, nextTick, Fragment, renderList, createTextVNode, onMounted, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, withModifiers, onBeforeMount, resolveComponent, toRef, withDirectives, vShow, getCurrentInstance, reactive, withKeys, vModelText, TransitionGroup, onUpdated, createApp } from "vue";
1
+ import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, Teleport, Transition, withCtx, nextTick, Fragment, renderList, createTextVNode, onMounted, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, withModifiers, onBeforeMount, resolveComponent, toRef, withDirectives, vShow, getCurrentInstance, reactive, withKeys, vModelText, TransitionGroup, onUpdated, createApp } from "vue";
2
2
  function isDev() {
3
3
  try {
4
4
  return process.env.NODE_ENV !== "production";
@@ -159,7 +159,7 @@ const localeEn = {
159
159
  pinCode: { successText: "The code is correct", errorText: "Wrong code", cellLabel: "Character {n} of {count}" },
160
160
  avatar: {
161
161
  fallbackLabel: "Avatar",
162
- notificationsLabel: "{count} notifications",
162
+ notificationsLabel: { one: "{count} notification", other: "{count} notifications" },
163
163
  dotLabels: {
164
164
  success: "online",
165
165
  danger: "busy",
@@ -228,8 +228,8 @@ const localeEn = {
228
228
  prevLabel: "Previous",
229
229
  nextLabel: "Next",
230
230
  pageLabel: "Page {page}",
231
- jumpPrevLabel: "Back {n} pages",
232
- jumpNextLabel: "Forward {n} pages",
231
+ jumpPrevLabel: { one: "Back {n} page", other: "Back {n} pages" },
232
+ jumpNextLabel: { one: "Forward {n} page", other: "Forward {n} pages" },
233
233
  goToText: "Go to",
234
234
  goToLabel: "Go to page, 1 to {count}",
235
235
  perPageText: "Per page",
@@ -253,7 +253,9 @@ const localeEn = {
253
253
  modeLabel: "Input mode",
254
254
  swatchesLabel: "Swatches",
255
255
  eyedropperLabel: "Eyedropper",
256
- chooseLabel: "Choose color"
256
+ chooseLabel: "Choose color",
257
+ placeholder: "Not set",
258
+ clearText: "Clear"
257
259
  },
258
260
  scrubber: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
259
261
  toast: { closeLabel: "Close notification" }
@@ -390,7 +392,7 @@ const localeRu = {
390
392
  pinCode: { successText: "Код верный", errorText: "Неверный код", cellLabel: "Символ {n} из {count}" },
391
393
  avatar: {
392
394
  fallbackLabel: "Аватар",
393
- notificationsLabel: "{count} уведомлений",
395
+ notificationsLabel: { one: "{count} уведомление", few: "{count} уведомления", many: "{count} уведомлений", other: "{count} уведомления" },
394
396
  dotLabels: {
395
397
  success: "в сети",
396
398
  danger: "занят",
@@ -459,8 +461,8 @@ const localeRu = {
459
461
  prevLabel: "Назад",
460
462
  nextLabel: "Вперёд",
461
463
  pageLabel: "Страница {page}",
462
- jumpPrevLabel: "Назад на {n} страниц",
463
- jumpNextLabel: "Вперёд на {n} страниц",
464
+ jumpPrevLabel: { one: "Назад на {n} страницу", few: "Назад на {n} страницы", many: "Назад на {n} страниц", other: "Назад на {n} страницы" },
465
+ jumpNextLabel: { one: "Вперёд на {n} страницу", few: "Вперёд на {n} страницы", many: "Вперёд на {n} страниц", other: "Вперёд на {n} страницы" },
464
466
  goToText: "Перейти",
465
467
  goToLabel: "Перейти на страницу, от 1 до {count}",
466
468
  perPageText: "На странице",
@@ -484,11 +486,37 @@ const localeRu = {
484
486
  modeLabel: "Способ ввода",
485
487
  swatchesLabel: "Образцы",
486
488
  eyedropperLabel: "Пипетка",
487
- chooseLabel: "Выбрать цвет"
489
+ chooseLabel: "Выбрать цвет",
490
+ placeholder: "Не задан",
491
+ clearText: "Очистить"
488
492
  },
489
493
  scrubber: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
490
494
  toast: { closeLabel: "Закрыть уведомление" }
491
495
  };
496
+ const language = (tag) => tag.toLowerCase().split(/[-_]/)[0] ?? "";
497
+ function matchTaoLanguage(requested, supported, fallback = supported[0] ?? "") {
498
+ for (const wish of requested) {
499
+ const found = supported.find((tag) => tag.toLowerCase() === wish.toLowerCase()) ?? supported.find((tag) => language(tag) === language(wish));
500
+ if (found) {
501
+ return found;
502
+ }
503
+ }
504
+ return fallback;
505
+ }
506
+ function parseAcceptLanguage(header) {
507
+ if (!header) {
508
+ return [];
509
+ }
510
+ return header.split(",").map((part, index) => {
511
+ const [tag = "", ...params] = part.trim().split(";");
512
+ const q = params.map((p) => /^\s*q\s*=\s*([\d.]+)\s*$/.exec(p)?.[1]).find((v) => v !== void 0);
513
+ return { tag: tag.trim(), q: q === void 0 ? 1 : Number(q), index };
514
+ }).filter((entry) => entry.tag && entry.tag !== "*" && entry.q > 0).sort((a, b) => b.q - a.q || a.index - b.index).map((entry) => entry.tag);
515
+ }
516
+ function detectTaoLanguage(supported, options = {}) {
517
+ const browser = typeof navigator !== "undefined" ? [...navigator.languages?.length ? navigator.languages : [navigator.language]] : [];
518
+ return matchTaoLanguage(options.requested ?? browser.filter(Boolean), supported, options.fallback);
519
+ }
492
520
  const current = shallowRef(localeEn);
493
521
  const localeKey = Symbol("taoLocale");
494
522
  function taoLocale() {
@@ -538,8 +566,20 @@ function useLocaleText(props, section) {
538
566
  return out;
539
567
  });
540
568
  }
541
- function formatText(template, values) {
542
- return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
569
+ function formatText(template, values, code) {
570
+ const text = typeof template === "string" ? template : pluralForm(template, Number(values.count ?? values.n), code ?? current.value.code);
571
+ return text.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
572
+ }
573
+ function pluralForm(forms, n, code) {
574
+ if (!Number.isFinite(n)) {
575
+ return forms.other;
576
+ }
577
+ let category = "other";
578
+ try {
579
+ category = new Intl.PluralRules(code).select(n);
580
+ } catch {
581
+ }
582
+ return forms[category] ?? forms.other;
543
583
  }
544
584
  const _hoisted_1$17 = ["role", "aria-hidden"];
545
585
  const _hoisted_2$Z = {
@@ -547,18 +587,23 @@ const _hoisted_2$Z = {
547
587
  class: "tao-loader__ellipsis",
548
588
  "aria-hidden": "true"
549
589
  };
550
- const _hoisted_3$R = {
590
+ const _hoisted_3$Q = {
551
591
  key: 1,
552
592
  class: "tao-loader__ring",
553
593
  "aria-hidden": "true"
554
594
  };
555
595
  const _hoisted_4$G = {
556
596
  key: 2,
557
- class: "tao-loader__pulse",
597
+ class: "tao-loader__swap",
558
598
  "aria-hidden": "true"
559
599
  };
560
600
  const _hoisted_5$w = {
561
601
  key: 3,
602
+ class: "tao-loader__pulse",
603
+ "aria-hidden": "true"
604
+ };
605
+ const _hoisted_6$q = {
606
+ key: 4,
562
607
  class: "tao-sr-only"
563
608
  };
564
609
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
@@ -604,19 +649,21 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
604
649
  createElementVNode("div", null, null, -1),
605
650
  createElementVNode("div", null, null, -1),
606
651
  createElementVNode("div", null, null, -1)
607
- ])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$R)) : (openBlock(), createElementBlock("span", _hoisted_4$G)),
608
- !__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_5$w, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
652
+ ])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$Q)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$G, [..._cache[1] || (_cache[1] = [
653
+ createStaticVNode('<span class="tao-loader__axis" data-v-03f29efb><i class="tao-loader__swap-left" data-v-03f29efb></i><i class="tao-loader__swap-right" data-v-03f29efb></i><i class="tao-loader__swap-hollow" data-v-03f29efb></i></span><span class="tao-loader__axis tao-loader__axis--cross" data-v-03f29efb><i class="tao-loader__swap-left" data-v-03f29efb></i><i class="tao-loader__swap-right" data-v-03f29efb></i><i class="tao-loader__swap-hollow" data-v-03f29efb></i></span>', 2)
654
+ ])])) : (openBlock(), createElementBlock("span", _hoisted_5$w)),
655
+ !__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$q, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
609
656
  ], 14, _hoisted_1$17);
610
657
  };
611
658
  }
612
659
  });
613
- const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-77dd8549"]]);
660
+ const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-03f29efb"]]);
614
661
  const _hoisted_1$16 = ["type", "aria-pressed", "aria-keyshortcuts", "aria-busy", "disabled"];
615
662
  const _hoisted_2$Y = {
616
663
  key: 2,
617
664
  class: "tao-button__content"
618
665
  };
619
- const _hoisted_3$Q = {
666
+ const _hoisted_3$P = {
620
667
  key: 4,
621
668
  class: "tao-button__shortcut",
622
669
  "aria-hidden": "true"
@@ -703,7 +750,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
703
750
  class: "tao-button__icon",
704
751
  name: __props.iconEnd
705
752
  }, null, 8, ["name"])) : createCommentVNode("", true),
706
- __props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_3$Q, toDisplayString(__props.shortcut), 1)) : createCommentVNode("", true)
753
+ __props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_3$P, toDisplayString(__props.shortcut), 1)) : createCommentVNode("", true)
707
754
  ], 14, _hoisted_1$16);
708
755
  };
709
756
  }
@@ -787,7 +834,7 @@ const _hoisted_1$15 = {
787
834
  class: "tao-input__affix tao-input__affix--prefix"
788
835
  };
789
836
  const _hoisted_2$X = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
790
- const _hoisted_3$P = {
837
+ const _hoisted_3$O = {
791
838
  key: 1,
792
839
  class: "tao-input__affix tao-input__affix--suffix"
793
840
  };
@@ -853,7 +900,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
853
900
  onBlur: handleBlur,
854
901
  onFocus: handleFocus
855
902
  }), null, 16, _hoisted_2$X),
856
- _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$P, [
903
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3$O, [
857
904
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
858
905
  ])) : createCommentVNode("", true)
859
906
  ], 2)
@@ -867,7 +914,7 @@ const _hoisted_1$14 = {
867
914
  class: "tao-input-group__addon tao-input-group__addon--before"
868
915
  };
869
916
  const _hoisted_2$W = { class: "tao-input-group__field" };
870
- const _hoisted_3$O = {
917
+ const _hoisted_3$N = {
871
918
  key: 1,
872
919
  class: "tao-input-group__addon tao-input-group__addon--after"
873
920
  };
@@ -902,7 +949,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
902
949
  createElementVNode("div", _hoisted_2$W, [
903
950
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
904
951
  ]),
905
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$O, [
952
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$N, [
906
953
  renderSlot(_ctx.$slots, "after", {}, void 0, true)
907
954
  ])) : createCommentVNode("", true)
908
955
  ], 34);
@@ -915,7 +962,7 @@ const _hoisted_2$V = {
915
962
  key: 0,
916
963
  class: "tao-input-number__steppers"
917
964
  };
918
- const _hoisted_3$N = ["aria-label", "disabled"];
965
+ const _hoisted_3$M = ["aria-label", "disabled"];
919
966
  const _hoisted_4$F = { "aria-hidden": "true" };
920
967
  const _hoisted_5$v = ["aria-label", "disabled"];
921
968
  const _hoisted_6$p = { "aria-hidden": "true" };
@@ -1093,7 +1140,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
1093
1140
  createVNode(TaoIcon, { name: "tao-plus" })
1094
1141
  ], true)
1095
1142
  ])
1096
- ], 8, _hoisted_3$N),
1143
+ ], 8, _hoisted_3$M),
1097
1144
  createElementVNode("button", {
1098
1145
  type: "button",
1099
1146
  class: "tao-input-number__step",
@@ -1116,7 +1163,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
1116
1163
  const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-dc5bb759"]]);
1117
1164
  const _hoisted_1$12 = ["aria-label", "disabled"];
1118
1165
  const _hoisted_2$U = { "aria-hidden": "true" };
1119
- const _hoisted_3$M = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
1166
+ const _hoisted_3$L = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
1120
1167
  const _hoisted_4$E = ["aria-label", "disabled"];
1121
1168
  const _hoisted_5$u = { "aria-hidden": "true" };
1122
1169
  const _sfc_main$1d = /* @__PURE__ */ defineComponent({
@@ -1284,7 +1331,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
1284
1331
  onFocus,
1285
1332
  onBlur,
1286
1333
  onKeydown: onKeydown2
1287
- }), null, 16, _hoisted_3$M),
1334
+ }), null, 16, _hoisted_3$L),
1288
1335
  createElementVNode("button", {
1289
1336
  type: "button",
1290
1337
  class: "tao-quantity__btn tao-quantity__btn--inc",
@@ -1311,7 +1358,7 @@ const _hoisted_2$T = {
1311
1358
  key: 0,
1312
1359
  class: "tao-card__overlay"
1313
1360
  };
1314
- const _hoisted_3$L = {
1361
+ const _hoisted_3$K = {
1315
1362
  key: 1,
1316
1363
  class: "tao-card__overlay"
1317
1364
  };
@@ -1402,7 +1449,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
1402
1449
  _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$T, [
1403
1450
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1404
1451
  ])) : createCommentVNode("", true)
1405
- ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$L, [
1452
+ ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$K, [
1406
1453
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1407
1454
  ])) : createCommentVNode("", true),
1408
1455
  hasContent.value ? (openBlock(), createElementBlock("div", {
@@ -1574,7 +1621,7 @@ const _hoisted_2$S = {
1574
1621
  key: 0,
1575
1622
  class: "tao-modal__header"
1576
1623
  };
1577
- const _hoisted_3$K = ["id"];
1624
+ const _hoisted_3$J = ["id"];
1578
1625
  const _hoisted_4$C = { key: 1 };
1579
1626
  const _hoisted_5$s = ["aria-label"];
1580
1627
  const _hoisted_6$n = { "aria-hidden": "true" };
@@ -1671,7 +1718,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1671
1718
  key: 0,
1672
1719
  id: unref(titleId),
1673
1720
  class: "tao-modal__title"
1674
- }, toDisplayString(__props.title), 9, _hoisted_3$K)) : (openBlock(), createElementBlock("span", _hoisted_4$C))
1721
+ }, toDisplayString(__props.title), 9, _hoisted_3$J)) : (openBlock(), createElementBlock("span", _hoisted_4$C))
1675
1722
  ], true),
1676
1723
  __props.closable ? (openBlock(), createElementBlock("button", {
1677
1724
  key: 0,
@@ -2330,7 +2377,7 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
2330
2377
  }
2331
2378
  const _hoisted_1$_ = ["aria-disabled"];
2332
2379
  const _hoisted_2$Q = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
2333
- const _hoisted_3$J = {
2380
+ const _hoisted_3$I = {
2334
2381
  key: 2,
2335
2382
  class: "tao-slider__value"
2336
2383
  };
@@ -2632,7 +2679,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
2632
2679
  ], 6)) : createCommentVNode("", true)
2633
2680
  ], 64);
2634
2681
  }), 128)),
2635
- __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$J, [
2682
+ __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
2636
2683
  renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
2637
2684
  createTextVNode(toDisplayString(barText.value), 1),
2638
2685
  renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
@@ -2738,7 +2785,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
2738
2785
  });
2739
2786
  const _hoisted_1$Z = { class: "tao-scrubber__controls" };
2740
2787
  const _hoisted_2$P = { class: "tao-scrubber__track" };
2741
- const _hoisted_3$I = {
2788
+ const _hoisted_3$H = {
2742
2789
  key: 0,
2743
2790
  class: "tao-scrubber__time"
2744
2791
  };
@@ -2836,7 +2883,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
2836
2883
  } : void 0
2837
2884
  ]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
2838
2885
  ]),
2839
- __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$I, [
2886
+ __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$H, [
2840
2887
  renderSlot(_ctx.$slots, "time", {
2841
2888
  time: __props.modelValue,
2842
2889
  length: __props.length,
@@ -3179,7 +3226,7 @@ const _hoisted_2$O = {
3179
3226
  key: 0,
3180
3227
  class: "tao-spoiler__title"
3181
3228
  };
3182
- const _hoisted_3$H = ["id"];
3229
+ const _hoisted_3$G = ["id"];
3183
3230
  const _hoisted_4$A = { class: "tao-spoiler__content-inner" };
3184
3231
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3185
3232
  ...{ name: "TaoSpoiler" },
@@ -3275,7 +3322,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3275
3322
  createElementVNode("div", _hoisted_4$A, [
3276
3323
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
3277
3324
  ])
3278
- ], 8, _hoisted_3$H)) : createCommentVNode("", true)
3325
+ ], 8, _hoisted_3$G)) : createCommentVNode("", true)
3279
3326
  ]),
3280
3327
  _: 3
3281
3328
  })
@@ -3548,7 +3595,7 @@ const _hoisted_2$N = {
3548
3595
  class: "tao-tour__dim",
3549
3596
  "aria-hidden": "true"
3550
3597
  };
3551
- const _hoisted_3$G = ["aria-labelledby", "aria-describedby"];
3598
+ const _hoisted_3$F = ["aria-labelledby", "aria-describedby"];
3552
3599
  const _hoisted_4$z = ["id"];
3553
3600
  const _hoisted_5$q = ["id"];
3554
3601
  const _hoisted_6$l = { class: "tao-tour__footer" };
@@ -3813,7 +3860,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3813
3860
  })
3814
3861
  ])
3815
3862
  ])
3816
- ], 46, _hoisted_3$G)
3863
+ ], 46, _hoisted_3$F)
3817
3864
  ])) : createCommentVNode("", true)
3818
3865
  ]);
3819
3866
  };
@@ -3983,7 +4030,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
3983
4030
  const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-d42e5e67"]]);
3984
4031
  const _hoisted_1$S = { class: "tao-split__pane tao-split__pane--start" };
3985
4032
  const _hoisted_2$M = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
3986
- const _hoisted_3$F = { class: "tao-split__pane tao-split__pane--end" };
4033
+ const _hoisted_3$E = { class: "tao-split__pane tao-split__pane--end" };
3987
4034
  const _hoisted_4$y = {
3988
4035
  key: 0,
3989
4036
  class: "tao-split__shield"
@@ -4309,7 +4356,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
4309
4356
  onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
4310
4357
  }, ["prevent"]))
4311
4358
  }, null, 40, _hoisted_2$M),
4312
- createElementVNode("div", _hoisted_3$F, [
4359
+ createElementVNode("div", _hoisted_3$E, [
4313
4360
  renderSlot(_ctx.$slots, "end", {}, void 0, true)
4314
4361
  ]),
4315
4362
  isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$y)) : createCommentVNode("", true)
@@ -4320,7 +4367,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
4320
4367
  const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-316b0d45"]]);
4321
4368
  const _hoisted_1$R = { class: "tao-image" };
4322
4369
  const _hoisted_2$L = ["src", "alt", "loading"];
4323
- const _hoisted_3$E = { class: "tao-image__placeholder" };
4370
+ const _hoisted_3$D = { class: "tao-image__placeholder" };
4324
4371
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
4325
4372
  ...{ name: "TaoImage" },
4326
4373
  __name: "TaoImage",
@@ -4365,7 +4412,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
4365
4412
  onError: handleError
4366
4413
  }, null, 42, _hoisted_2$L)) : createCommentVNode("", true),
4367
4414
  !__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
4368
- createElementVNode("div", _hoisted_3$E, toDisplayString(__props.placeholderText), 1)
4415
+ createElementVNode("div", _hoisted_3$D, toDisplayString(__props.placeholderText), 1)
4369
4416
  ], true, 1) : createCommentVNode("", true)
4370
4417
  ]);
4371
4418
  };
@@ -4374,7 +4421,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
4374
4421
  const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-61f47c52"]]);
4375
4422
  const _hoisted_1$Q = ["for"];
4376
4423
  const _hoisted_2$K = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
4377
- const _hoisted_3$D = {
4424
+ const _hoisted_3$C = {
4378
4425
  key: 0,
4379
4426
  class: "tao-checkbox__label"
4380
4427
  };
@@ -4455,7 +4502,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
4455
4502
  onChange: onInputChange
4456
4503
  }), null, 16, _hoisted_2$K),
4457
4504
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
4458
- __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$D, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$x, [
4505
+ __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$C, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$x, [
4459
4506
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
4460
4507
  ])),
4461
4508
  renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
@@ -4469,7 +4516,7 @@ const _hoisted_1$P = {
4469
4516
  class: "tao-tag__prefix"
4470
4517
  };
4471
4518
  const _hoisted_2$J = { class: "tao-tag__text" };
4472
- const _hoisted_3$C = ["aria-label"];
4519
+ const _hoisted_3$B = ["aria-label"];
4473
4520
  const _hoisted_4$w = { "aria-hidden": "true" };
4474
4521
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
4475
4522
  ...{ name: "TaoTag" },
@@ -4531,7 +4578,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
4531
4578
  createVNode(TaoIcon, { name: "tao-close" })
4532
4579
  ], true)
4533
4580
  ])
4534
- ], 8, _hoisted_3$C)) : createCommentVNode("", true)
4581
+ ], 8, _hoisted_3$B)) : createCommentVNode("", true)
4535
4582
  ], 6);
4536
4583
  };
4537
4584
  }
@@ -4542,7 +4589,7 @@ const _hoisted_2$I = {
4542
4589
  key: 1,
4543
4590
  class: "tao-divider__text"
4544
4591
  };
4545
- const _hoisted_3$B = {
4592
+ const _hoisted_3$A = {
4546
4593
  key: 2,
4547
4594
  class: "tao-divider__line tao-divider__line--end"
4548
4595
  };
@@ -4582,7 +4629,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
4582
4629
  createTextVNode(toDisplayString(__props.text), 1)
4583
4630
  ], true)
4584
4631
  ])) : createCommentVNode("", true),
4585
- __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$B)) : createCommentVNode("", true)
4632
+ __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$A)) : createCommentVNode("", true)
4586
4633
  ], 10, _hoisted_1$O);
4587
4634
  };
4588
4635
  }
@@ -4815,7 +4862,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4815
4862
  const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9aaf7131"]]);
4816
4863
  const _hoisted_1$L = ["aria-label"];
4817
4864
  const _hoisted_2$F = { class: "tao-scroll-top__content" };
4818
- const _hoisted_3$A = {
4865
+ const _hoisted_3$z = {
4819
4866
  key: 0,
4820
4867
  class: "tao-scroll-top__text",
4821
4868
  "aria-hidden": "true"
@@ -4916,7 +4963,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
4916
4963
  onClick: withModifiers(goToTop, ["prevent"])
4917
4964
  }), [
4918
4965
  createElementVNode("span", _hoisted_2$F, [
4919
- isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
4966
+ isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
4920
4967
  renderSlot(_ctx.$slots, "default", {}, () => [
4921
4968
  createVNode(TaoIcon, {
4922
4969
  class: "tao-scroll-top__icon",
@@ -4944,7 +4991,7 @@ const _hoisted_2$E = {
4944
4991
  key: 0,
4945
4992
  class: "tao-progress__side"
4946
4993
  };
4947
- const _hoisted_3$z = { class: "tao-progress__main" };
4994
+ const _hoisted_3$y = { class: "tao-progress__main" };
4948
4995
  const _hoisted_4$v = {
4949
4996
  key: 0,
4950
4997
  class: "tao-progress__percentage"
@@ -4994,7 +5041,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
4994
5041
  _ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
4995
5042
  renderSlot(_ctx.$slots, "left", {}, void 0, true)
4996
5043
  ])) : createCommentVNode("", true),
4997
- createElementVNode("div", _hoisted_3$z, [
5044
+ createElementVNode("div", _hoisted_3$y, [
4998
5045
  showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$v, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
4999
5046
  createElementVNode("div", {
5000
5047
  class: "tao-progress__track",
@@ -5111,7 +5158,7 @@ function partitionByAccept(files, accept) {
5111
5158
  }
5112
5159
  const _hoisted_1$J = { class: "tao-file-drop__row" };
5113
5160
  const _hoisted_2$D = ["aria-label"];
5114
- const _hoisted_3$y = { "aria-hidden": "true" };
5161
+ const _hoisted_3$x = { "aria-hidden": "true" };
5115
5162
  const _hoisted_4$u = ["accept", "multiple"];
5116
5163
  const _hoisted_5$o = {
5117
5164
  key: 0,
@@ -5247,7 +5294,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5247
5294
  "aria-label": unref(l10n).clearLabel,
5248
5295
  onClick: requestClear
5249
5296
  }, [
5250
- createElementVNode("span", _hoisted_3$y, [
5297
+ createElementVNode("span", _hoisted_3$x, [
5251
5298
  renderSlot(_ctx.$slots, "clear-icon", {}, () => [
5252
5299
  createVNode(TaoIcon, { name: "tao-close" })
5253
5300
  ], true)
@@ -5405,7 +5452,7 @@ const _hoisted_2$C = {
5405
5452
  class: "tao-menu__separator",
5406
5453
  role: "separator"
5407
5454
  };
5408
- const _hoisted_3$x = {
5455
+ const _hoisted_3$w = {
5409
5456
  key: 1,
5410
5457
  class: "tao-menu__label",
5411
5458
  role: "presentation"
@@ -5604,7 +5651,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5604
5651
  return openBlock(), createElementBlock(Fragment, {
5605
5652
  key: "id" in item ? item.id : `${item.type}-${index}`
5606
5653
  }, [
5607
- item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$C)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
5654
+ item.type === "separator" ? (openBlock(), createElementBlock("div", _hoisted_2$C)) : item.type === "label" ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString(item.label), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
5608
5655
  createElementVNode("div", {
5609
5656
  id: itemId(index),
5610
5657
  ref_for: true,
@@ -5664,7 +5711,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5664
5711
  });
5665
5712
  const _hoisted_1$H = { class: "tao-dropdown-menu" };
5666
5713
  const _hoisted_2$B = ["tabindex", "aria-expanded", "aria-label"];
5667
- const _hoisted_3$w = {
5714
+ const _hoisted_3$v = {
5668
5715
  key: 1,
5669
5716
  "aria-hidden": "true"
5670
5717
  };
@@ -5715,7 +5762,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5715
5762
  onClick: toggleMenu,
5716
5763
  onKeydown: onTriggerKeydown
5717
5764
  }, [
5718
- _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$w, [
5765
+ _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$v, [
5719
5766
  renderSlot(_ctx.$slots, "icon", {}, () => [
5720
5767
  createVNode(TaoIcon, { name: "tao-more-vertical" })
5721
5768
  ], true)
@@ -6346,7 +6393,7 @@ const _hoisted_2$z = {
6346
6393
  preserveAspectRatio: "none",
6347
6394
  "aria-hidden": "true"
6348
6395
  };
6349
- const _hoisted_3$v = ["d"];
6396
+ const _hoisted_3$u = ["d"];
6350
6397
  const _hoisted_4$s = ["d"];
6351
6398
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
6352
6399
  ...{ name: "TaoSparkline" },
@@ -6385,7 +6432,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6385
6432
  key: 0,
6386
6433
  class: "tao-sparkline__area",
6387
6434
  d: fill.value
6388
- }, null, 8, _hoisted_3$v)) : createCommentVNode("", true),
6435
+ }, null, 8, _hoisted_3$u)) : createCommentVNode("", true),
6389
6436
  createElementVNode("path", {
6390
6437
  class: "tao-sparkline__line",
6391
6438
  d: line.value
@@ -6408,7 +6455,7 @@ const _hoisted_2$y = {
6408
6455
  class: "tao-meter__head",
6409
6456
  "aria-hidden": "true"
6410
6457
  };
6411
- const _hoisted_3$u = { class: "tao-meter__label" };
6458
+ const _hoisted_3$t = { class: "tao-meter__label" };
6412
6459
  const _hoisted_4$r = {
6413
6460
  key: 0,
6414
6461
  class: "tao-meter__value"
@@ -6449,7 +6496,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6449
6496
  "aria-label": __props.label
6450
6497
  }, [
6451
6498
  __props.label || shown.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
6452
- createElementVNode("span", _hoisted_3$u, toDisplayString(__props.label), 1),
6499
+ createElementVNode("span", _hoisted_3$t, toDisplayString(__props.label), 1),
6453
6500
  shown.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(shown.value), 1)) : createCommentVNode("", true)
6454
6501
  ])) : createCommentVNode("", true),
6455
6502
  createElementVNode("div", _hoisted_5$m, [
@@ -6465,7 +6512,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6465
6512
  const TaoMeter = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-17e24a8e"]]);
6466
6513
  const _hoisted_1$A = ["aria-label"];
6467
6514
  const _hoisted_2$x = ["viewBox", "width", "height"];
6468
- const _hoisted_3$t = ["cx", "cy", "r", "stroke-width"];
6515
+ const _hoisted_3$s = ["cx", "cy", "r", "stroke-width"];
6469
6516
  const _hoisted_4$q = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
6470
6517
  const _hoisted_5$l = {
6471
6518
  key: 0,
@@ -6540,7 +6587,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
6540
6587
  cy: centre.value,
6541
6588
  r: radius.value,
6542
6589
  "stroke-width": __props.thickness
6543
- }, null, 8, _hoisted_3$t),
6590
+ }, null, 8, _hoisted_3$s),
6544
6591
  (openBlock(true), createElementBlock(Fragment, null, renderList(arcs.value, (arc) => {
6545
6592
  return withDirectives((openBlock(), createElementBlock("circle", {
6546
6593
  key: arc.key,
@@ -6588,7 +6635,7 @@ const _hoisted_2$w = {
6588
6635
  class: "tao-heatmap__row tao-heatmap__head",
6589
6636
  role: "row"
6590
6637
  };
6591
- const _hoisted_3$s = {
6638
+ const _hoisted_3$r = {
6592
6639
  class: "tao-heatmap__name",
6593
6640
  role: "rowheader"
6594
6641
  };
@@ -6776,7 +6823,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6776
6823
  class: "tao-heatmap__row",
6777
6824
  role: "row"
6778
6825
  }, [
6779
- createElementVNode("span", _hoisted_3$s, toDisplayString(row), 1),
6826
+ createElementVNode("span", _hoisted_3$r, toDisplayString(row), 1),
6780
6827
  (openBlock(true), createElementBlock(Fragment, null, renderList(grid.value[r], (cell, c) => {
6781
6828
  return openBlock(), createElementBlock("span", {
6782
6829
  key: cell.key,
@@ -6847,7 +6894,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6847
6894
  const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-496996ae"]]);
6848
6895
  const _hoisted_1$y = { class: "tao-nav__shell" };
6849
6896
  const _hoisted_2$v = ["aria-label"];
6850
- const _hoisted_3$r = { class: "tao-nav__column" };
6897
+ const _hoisted_3$q = { class: "tao-nav__column" };
6851
6898
  const _hoisted_4$o = {
6852
6899
  key: 0,
6853
6900
  class: "tao-nav__action"
@@ -6945,7 +6992,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6945
6992
  class: normalizeClass(["tao-nav__panel", unref(surfaceClass)(__props.surface)]),
6946
6993
  "aria-label": unref(l10n).ariaLabel
6947
6994
  }, [
6948
- createElementVNode("div", _hoisted_3$r, [
6995
+ createElementVNode("div", _hoisted_3$q, [
6949
6996
  _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
6950
6997
  renderSlot(_ctx.$slots, "action", {}, void 0, true)
6951
6998
  ])) : createCommentVNode("", true),
@@ -7084,7 +7131,7 @@ function toggleCheck(node, checked2, children) {
7084
7131
  }
7085
7132
  const _hoisted_1$x = ["aria-label", "aria-multiselectable"];
7086
7133
  const _hoisted_2$u = ["id", "tabindex", "aria-level", "aria-setsize", "aria-posinset", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled", "aria-busy", "onKeydown", "onClick", "onFocus"];
7087
- const _hoisted_3$q = ["onClick"];
7134
+ const _hoisted_3$p = ["onClick"];
7088
7135
  const _hoisted_4$n = ["title"];
7089
7136
  const _hoisted_5$i = ["onClick"];
7090
7137
  const _hoisted_6$e = {
@@ -7367,7 +7414,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7367
7414
  key: 1,
7368
7415
  name: "tao-chevron-right"
7369
7416
  })) : createCommentVNode("", true)
7370
- ], 10, _hoisted_3$q),
7417
+ ], 10, _hoisted_3$p),
7371
7418
  __props.checkable ? (openBlock(), createElementBlock("span", {
7372
7419
  key: 0,
7373
7420
  class: normalizeClass(["tao-tree__check", `tao-tree__check--${stateOf(row)}`]),
@@ -7408,7 +7455,7 @@ const _hoisted_2$t = {
7408
7455
  key: 0,
7409
7456
  class: "tao-checklist__legend"
7410
7457
  };
7411
- const _hoisted_3$p = { key: 0 };
7458
+ const _hoisted_3$o = { key: 0 };
7412
7459
  const _hoisted_4$m = {
7413
7460
  key: 1,
7414
7461
  class: "tao-checklist__counter",
@@ -7486,7 +7533,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7486
7533
  "aria-labelledby": labelledBy.value
7487
7534
  }, [
7488
7535
  __props.legend || __props.counter ? (openBlock(), createElementBlock("legend", _hoisted_2$t, [
7489
- __props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
7536
+ __props.legend ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
7490
7537
  __props.counter ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(unref(formatText)(unref(l10n).counterText, { checked: checkedCount.value, total: __props.items.length })), 1)) : createCommentVNode("", true)
7491
7538
  ])) : createCommentVNode("", true),
7492
7539
  __props.selectAll ? (openBlock(), createBlock(TaoCheckbox, {
@@ -7545,7 +7592,7 @@ const _hoisted_2$s = {
7545
7592
  class: "tao-timeline__rail",
7546
7593
  "aria-hidden": "true"
7547
7594
  };
7548
- const _hoisted_3$o = {
7595
+ const _hoisted_3$n = {
7549
7596
  key: 0,
7550
7597
  class: "tao-timeline__line"
7551
7598
  };
@@ -7593,7 +7640,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7593
7640
  }, null, 8, ["name"])) : createCommentVNode("", true)
7594
7641
  ], true)
7595
7642
  ], 2),
7596
- index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$o)) : createCommentVNode("", true)
7643
+ index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$n)) : createCommentVNode("", true)
7597
7644
  ]),
7598
7645
  createElementVNode("div", _hoisted_4$l, [
7599
7646
  item.time ? (openBlock(), createElementBlock("time", {
@@ -7618,7 +7665,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7618
7665
  const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-48847c47"]]);
7619
7666
  const _hoisted_1$u = ["tabindex", "aria-hidden", "inert"];
7620
7667
  const _hoisted_2$r = { class: "tao-marquee__item" };
7621
- const _hoisted_3$n = {
7668
+ const _hoisted_3$m = {
7622
7669
  key: 0,
7623
7670
  class: "tao-marquee__item",
7624
7671
  "aria-hidden": "true",
@@ -7742,7 +7789,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
7742
7789
  createTextVNode(toDisplayString(__props.text), 1)
7743
7790
  ], 64))
7744
7791
  ]),
7745
- running.value ? (openBlock(), createElementBlock("span", _hoisted_3$n, [
7792
+ running.value ? (openBlock(), createElementBlock("span", _hoisted_3$m, [
7746
7793
  hasSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7747
7794
  createTextVNode(toDisplayString(__props.text), 1)
7748
7795
  ], 64))
@@ -7794,7 +7841,7 @@ const _hoisted_2$q = {
7794
7841
  class: "tao-pin-code__separator",
7795
7842
  "aria-hidden": "true"
7796
7843
  };
7797
- const _hoisted_3$m = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
7844
+ const _hoisted_3$l = ["id", "value", "placeholder", "type", "disabled", "aria-invalid", "inputmode", "pattern", "aria-label", "maxlength", "onInput", "onPaste", "onKeydown", "onFocus"];
7798
7845
  const _hoisted_4$k = {
7799
7846
  key: 0,
7800
7847
  class: "tao-pin-code__separator",
@@ -8058,7 +8105,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
8058
8105
  onKeydown: ($event) => onKeydown2($event, index),
8059
8106
  onFocus: ($event) => onFocus(index),
8060
8107
  onBlur
8061
- }, null, 46, _hoisted_3$m)
8108
+ }, null, 46, _hoisted_3$l)
8062
8109
  ], 64);
8063
8110
  }), 128)),
8064
8111
  layout.value?.after ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(layout.value.after), 1)) : createCommentVNode("", true),
@@ -8179,7 +8226,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
8179
8226
  const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-f0778b06"]]);
8180
8227
  const _hoisted_1$r = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
8181
8228
  const _hoisted_2$p = { class: "tao-select__value" };
8182
- const _hoisted_3$l = ["aria-activedescendant"];
8229
+ const _hoisted_3$k = ["aria-activedescendant"];
8183
8230
  const _hoisted_4$j = ["id", "aria-selected", "aria-disabled", "data-tao-select-index", "onClick", "onMouseenter"];
8184
8231
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
8185
8232
  ...{ name: "TaoSelect", inheritAttrs: false },
@@ -8374,7 +8421,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
8374
8421
  onMouseenter: ($event) => !option.disabled && (activeIndex.value = index)
8375
8422
  }, toDisplayString(option.label), 43, _hoisted_4$j);
8376
8423
  }), 128))
8377
- ], 40, _hoisted_3$l),
8424
+ ], 40, _hoisted_3$k),
8378
8425
  __props.clearable && selected.value ? (openBlock(), createElementBlock("button", {
8379
8426
  key: 0,
8380
8427
  type: "button",
@@ -8532,7 +8579,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
8532
8579
  const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-98154a39"]]);
8533
8580
  const _hoisted_1$p = ["for"];
8534
8581
  const _hoisted_2$n = ["id", "name", "value", "checked", "disabled", "aria-label"];
8535
- const _hoisted_3$k = { class: "tao-segmented-option__face" };
8582
+ const _hoisted_3$j = { class: "tao-segmented-option__face" };
8536
8583
  const _hoisted_4$i = {
8537
8584
  key: 0,
8538
8585
  class: "tao-segmented-option__icon",
@@ -8621,7 +8668,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8621
8668
  "aria-label": __props.ariaLabel,
8622
8669
  onChange
8623
8670
  }, null, 40, _hoisted_2$n),
8624
- createElementVNode("span", _hoisted_3$k, [
8671
+ createElementVNode("span", _hoisted_3$j, [
8625
8672
  __props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$i, [
8626
8673
  renderSlot(_ctx.$slots, "icon", {}, () => [
8627
8674
  createVNode(TaoIcon, { name: __props.icon }, null, 8, ["name"])
@@ -8641,7 +8688,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8641
8688
  const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-d2951a99"]]);
8642
8689
  const _hoisted_1$o = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
8643
8690
  const _hoisted_2$m = { class: "tao-color-picker__strips" };
8644
- const _hoisted_3$j = { class: "tao-color-picker__row" };
8691
+ const _hoisted_3$i = { class: "tao-color-picker__row" };
8645
8692
  const _hoisted_4$h = { class: "tao-color-picker__preview" };
8646
8693
  const _hoisted_5$d = {
8647
8694
  key: 0,
@@ -8910,7 +8957,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
8910
8957
  ]),
8911
8958
  _: 1
8912
8959
  }, 8, ["modelValue", "aria-label", "disabled"])) : createCommentVNode("", true),
8913
- createElementVNode("div", _hoisted_3$j, [
8960
+ createElementVNode("div", _hoisted_3$i, [
8914
8961
  createElementVNode("span", _hoisted_4$h, [
8915
8962
  createElementVNode("span", {
8916
8963
  style: normalizeStyle({ backgroundColor: hex.value })
@@ -8983,8 +9030,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
8983
9030
  });
8984
9031
  const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-54d56769"]]);
8985
9032
  const _hoisted_1$n = ["disabled", "aria-label", "aria-expanded"];
8986
- const _hoisted_2$l = { class: "tao-color-input__swatch" };
8987
- const _hoisted_3$i = { class: "tao-color-input__text" };
9033
+ const _hoisted_2$l = ["disabled"];
8988
9034
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
8989
9035
  ...{ name: "TaoColorInput", inheritAttrs: false },
8990
9036
  __name: "TaoColorInput",
@@ -8999,7 +9045,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8999
9045
  error: { type: Boolean, default: false },
9000
9046
  placement: { default: "bottom-start" },
9001
9047
  size: {},
9002
- chooseLabel: {}
9048
+ chooseLabel: {},
9049
+ placeholder: {},
9050
+ clearable: { type: Boolean, default: false },
9051
+ clearText: {}
9003
9052
  },
9004
9053
  emits: ["update:modelValue", "update:mode", "change"],
9005
9054
  setup(__props, { emit: __emit }) {
@@ -9008,7 +9057,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
9008
9057
  const emit = __emit;
9009
9058
  const l10n = useLocaleText(props, "colorPicker");
9010
9059
  const shown = computed(() => normalizeHex(props.modelValue, props.alpha) ?? props.modelValue);
9011
- const buttonLabel = (given) => `${typeof given === "string" && given ? given : l10n.value.chooseLabel}: ${shown.value}`;
9060
+ const empty = computed(() => props.modelValue === "");
9061
+ const text = computed(() => empty.value ? l10n.value.placeholder : shown.value);
9062
+ function clear() {
9063
+ emit("update:modelValue", "");
9064
+ emit("change", "");
9065
+ }
9066
+ function onKeydown2(event) {
9067
+ if ((event.key === "Backspace" || event.key === "Delete") && props.clearable && !empty.value && !props.disabled) {
9068
+ event.preventDefault();
9069
+ clear();
9070
+ }
9071
+ }
9072
+ const buttonLabel = (given) => `${typeof given === "string" && given ? given : l10n.value.chooseLabel}: ${text.value}`;
9012
9073
  return (_ctx, _cache) => {
9013
9074
  return openBlock(), createBlock(TaoPopover, mergeProps(unref(rootAttrs)(), {
9014
9075
  placement: __props.placement,
@@ -9022,14 +9083,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
9022
9083
  disabled: __props.disabled,
9023
9084
  "aria-label": buttonLabel(_ctx.$attrs["aria-label"]),
9024
9085
  "aria-haspopup": "dialog",
9025
- "aria-expanded": open
9086
+ "aria-expanded": open,
9087
+ onKeydown: onKeydown2
9026
9088
  }), [
9027
- createElementVNode("span", _hoisted_2$l, [
9089
+ createElementVNode("span", {
9090
+ class: normalizeClass(["tao-color-input__swatch", { "tao-color-input__swatch--empty": empty.value }])
9091
+ }, [
9028
9092
  createElementVNode("span", {
9029
9093
  style: normalizeStyle({ backgroundColor: shown.value })
9030
9094
  }, null, 4)
9031
- ]),
9032
- createElementVNode("span", _hoisted_3$i, toDisplayString(shown.value), 1)
9095
+ ], 2),
9096
+ createElementVNode("span", {
9097
+ class: normalizeClass(["tao-color-input__text", { "tao-color-input__text--empty": empty.value }])
9098
+ }, toDisplayString(text.value), 3)
9033
9099
  ], 16, _hoisted_1$n)
9034
9100
  ]),
9035
9101
  default: withCtx(() => [
@@ -9044,14 +9110,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
9044
9110
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
9045
9111
  "onUpdate:mode": _cache[1] || (_cache[1] = ($event) => emit("update:mode", $event)),
9046
9112
  onChange: _cache[2] || (_cache[2] = ($event) => emit("change", $event))
9047
- }, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"])
9113
+ }, null, 8, ["model-value", "alpha", "swatches", "modes", "mode", "eyedropper", "size"]),
9114
+ __props.clearable ? (openBlock(), createElementBlock("button", {
9115
+ key: 0,
9116
+ type: "button",
9117
+ class: "tao-color-input__clear",
9118
+ disabled: empty.value,
9119
+ onClick: clear
9120
+ }, toDisplayString(unref(l10n).clearText), 9, _hoisted_2$l)) : createCommentVNode("", true)
9048
9121
  ]),
9049
9122
  _: 1
9050
9123
  }, 16, ["placement", "disabled"]);
9051
9124
  };
9052
9125
  }
9053
9126
  });
9054
- const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0df653c0"]]);
9127
+ const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-7e3f5d62"]]);
9055
9128
  const _hoisted_1$m = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
9056
9129
  const _hoisted_2$k = {
9057
9130
  key: 0,
@@ -11157,7 +11230,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
11157
11230
  key: 0,
11158
11231
  type: "button",
11159
11232
  class: "tao-pagination__btn tao-pagination__btn--jump",
11160
- "aria-label": item.id === "left" ? unref(l10n).jumpPrevLabel.replace("{n}", String(__props.jump)) : unref(l10n).jumpNextLabel.replace("{n}", String(__props.jump)),
11233
+ "aria-label": unref(formatText)(item.id === "left" ? unref(l10n).jumpPrevLabel : unref(l10n).jumpNextLabel, { n: __props.jump }, unref(appLocale).code),
11161
11234
  disabled: __props.disabled,
11162
11235
  onClick: ($event) => goTo(item.id === "left" ? current2.value - __props.jump : current2.value + __props.jump)
11163
11236
  }, " … ", 8, _hoisted_9$2)) : item.type === "ellipsis" ? (openBlock(), createElementBlock("span", _hoisted_10$1, "…")) : (openBlock(), createElementBlock("button", {
@@ -11211,7 +11284,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
11211
11284
  };
11212
11285
  }
11213
11286
  });
11214
- const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-a576ce4e"]]);
11287
+ const TaoPagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3d273f57"]]);
11215
11288
  const _hoisted_1$c = { class: "tao-empty" };
11216
11289
  const _hoisted_2$a = {
11217
11290
  key: 0,
@@ -11870,7 +11943,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
11870
11943
  extra.push(props.dotLabels[dotTone.value] ?? appLocale.value.avatar.dotLabels[dotTone.value]);
11871
11944
  }
11872
11945
  if (badge.value) {
11873
- extra.push(l10n.value.notificationsLabel.replace("{count}", badge.value));
11946
+ extra.push(formatText(l10n.value.notificationsLabel, { count: badge.value }, appLocale.value.code));
11874
11947
  }
11875
11948
  return extra.length ? `${base}, ${extra.join(", ")}` : base;
11876
11949
  });
@@ -11913,7 +11986,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
11913
11986
  };
11914
11987
  }
11915
11988
  });
11916
- const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-0b2fa82e"]]);
11989
+ const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-83b7bf11"]]);
11917
11990
  const _hoisted_1$6 = ["aria-label"];
11918
11991
  const _hoisted_2$5 = { class: "tao-breadcrumb__list" };
11919
11992
  const _hoisted_3$4 = {
@@ -13784,17 +13857,21 @@ export {
13784
13857
  confirm,
13785
13858
  contrastRatio,
13786
13859
  TaoUI as default,
13860
+ detectTaoLanguage,
13787
13861
  formatTaoDateIso,
13788
13862
  formatTaoDateLabel,
13789
13863
  formatTaoDateRangeLabel,
13790
13864
  formatTaoDateShort,
13865
+ formatText as formatTaoText,
13791
13866
  hslToRgb,
13792
13867
  hsvaToRgba,
13793
13868
  linearToSrgb,
13794
13869
  localeEn,
13795
13870
  localeRu,
13871
+ matchTaoLanguage,
13796
13872
  menuReturnsFocus,
13797
13873
  normalizeHex,
13874
+ parseAcceptLanguage,
13798
13875
  parseColor,
13799
13876
  parseTaoDate,
13800
13877
  parseTaoDateInput,