@1337exp/taoui 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, toDisplayString, createElementVNode, renderSlot, computed, normalizeStyle, getCurrentInstance, camelize, inject, useId, ref, shallowRef, watch, createTextVNode, useSlots, onBeforeUnmount, createBlock, Teleport, createVNode, Transition, withCtx, nextTick, Fragment, renderList, onMounted, provide, resolveDynamicComponent, withModifiers, useCssVars, reactive, onBeforeMount, withDirectives, vModelText, mergeProps, TransitionGroup, onUpdated, createApp } from "vue";
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, toDisplayString, createElementVNode, renderSlot, computed, normalizeStyle, getCurrentInstance, camelize, inject, useId, ref, shallowRef, watch, createTextVNode, useSlots, onBeforeUnmount, createBlock, Teleport, createVNode, Transition, withCtx, nextTick, Fragment, renderList, onMounted, mergeProps, createSlots, normalizeProps, guardReactiveProps, provide, resolveDynamicComponent, withModifiers, useCssVars, reactive, onBeforeMount, TransitionGroup, onUpdated, createApp } from "vue";
2
2
  const sizes = ["small", "medium", "large"];
3
3
  function sizeClass(size) {
4
4
  return size ? `tao-size-${size}` : void 0;
@@ -13,17 +13,17 @@ function resolveSize(el, size) {
13
13
  const value = getComputedStyle(el).getPropertyValue("--tao-size").trim();
14
14
  return sizes.includes(value) ? value : "medium";
15
15
  }
16
- const _hoisted_1$P = ["type", "disabled"];
17
- const _hoisted_2$I = {
16
+ const _hoisted_1$Q = ["type", "disabled"];
17
+ const _hoisted_2$J = {
18
18
  key: 0,
19
19
  class: "tao-button__loader"
20
20
  };
21
- const _hoisted_3$z = {
21
+ const _hoisted_3$A = {
22
22
  key: 1,
23
23
  class: "tao-button__icon"
24
24
  };
25
- const _hoisted_4$u = { class: "tao-button__content" };
26
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
25
+ const _hoisted_4$v = { class: "tao-button__content" };
26
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
27
27
  ...{ name: "TaoButton" },
28
28
  __name: "TaoButton",
29
29
  props: {
@@ -62,12 +62,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
62
62
  disabled: __props.disabled || __props.loading,
63
63
  onClick: handleClick
64
64
  }, [
65
- __props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$I)) : createCommentVNode("", true),
66
- __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
67
- createElementVNode("span", _hoisted_4$u, [
65
+ __props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$J)) : createCommentVNode("", true),
66
+ __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
67
+ createElementVNode("span", _hoisted_4$v, [
68
68
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
69
69
  ])
70
- ], 10, _hoisted_1$P);
70
+ ], 10, _hoisted_1$Q);
71
71
  };
72
72
  }
73
73
  });
@@ -78,7 +78,7 @@ const _export_sfc = (sfc, props) => {
78
78
  }
79
79
  return target;
80
80
  };
81
- const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-eb25f649"]]);
81
+ const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-eb25f649"]]);
82
82
  function toCssLength(value) {
83
83
  if (value === void 0 || value === null || value === "") {
84
84
  return void 0;
@@ -91,7 +91,7 @@ function toCssBox(value) {
91
91
  function surfaceClass(surface) {
92
92
  return surface && surface !== "flat" ? `tao-surface-${surface}` : void 0;
93
93
  }
94
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
94
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
95
95
  ...{ name: "TaoBlock" },
96
96
  __name: "TaoBlock",
97
97
  props: {
@@ -115,7 +115,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
115
115
  };
116
116
  }
117
117
  });
118
- const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-3d9abbef"]]);
118
+ const TaoBlock = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-3d9abbef"]]);
119
119
  const formFieldKey = Symbol("taoFormField");
120
120
  function isDev() {
121
121
  try {
@@ -155,21 +155,21 @@ function warnDeprecated(component, replacements) {
155
155
  deprecationWarning(component, label, instead);
156
156
  }
157
157
  }
158
- const _hoisted_1$O = ["for"];
159
- const _hoisted_2$H = {
158
+ const _hoisted_1$P = ["for"];
159
+ const _hoisted_2$I = {
160
160
  key: 0,
161
161
  class: "tao-input__affix tao-input__affix--prefix"
162
162
  };
163
- const _hoisted_3$y = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
164
- const _hoisted_4$t = {
163
+ const _hoisted_3$z = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
164
+ const _hoisted_4$u = {
165
165
  key: 1,
166
166
  class: "tao-input__affix tao-input__affix--suffix"
167
167
  };
168
- const _hoisted_5$m = {
168
+ const _hoisted_5$n = {
169
169
  key: 1,
170
170
  class: "tao-input__error"
171
171
  };
172
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
172
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
173
173
  ...{ name: "TaoInput" },
174
174
  __name: "TaoInput",
175
175
  props: {
@@ -217,7 +217,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
217
217
  key: 0,
218
218
  class: "tao-input__label",
219
219
  for: controlId.value
220
- }, toDisplayString(__props.label), 9, _hoisted_1$O)) : createCommentVNode("", true),
220
+ }, toDisplayString(__props.label), 9, _hoisted_1$P)) : createCommentVNode("", true),
221
221
  createElementVNode("div", {
222
222
  class: normalizeClass(["tao-input-shell", {
223
223
  "tao-input-shell--focused": focused.value,
@@ -227,7 +227,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
227
227
  "tao-input-shell--suffix": _ctx.$slots.suffix
228
228
  }])
229
229
  }, [
230
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_2$H, [
230
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_2$I, [
231
231
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
232
232
  ])) : createCommentVNode("", true),
233
233
  createElementVNode("input", {
@@ -242,27 +242,27 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
242
242
  onInput: handleInput,
243
243
  onBlur: handleBlur,
244
244
  onFocus: handleFocus
245
- }, null, 42, _hoisted_3$y),
246
- _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$t, [
245
+ }, null, 42, _hoisted_3$z),
246
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$u, [
247
247
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
248
248
  ])) : createCommentVNode("", true)
249
249
  ], 2),
250
- __props.error && __props.errorMessage ? (openBlock(), createElementBlock("span", _hoisted_5$m, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
250
+ __props.error && __props.errorMessage ? (openBlock(), createElementBlock("span", _hoisted_5$n, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
251
251
  ], 2);
252
252
  };
253
253
  }
254
254
  });
255
- const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-aca887be"]]);
256
- const _hoisted_1$N = {
255
+ const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-aca887be"]]);
256
+ const _hoisted_1$O = {
257
257
  key: 0,
258
258
  class: "tao-input-group__addon tao-input-group__addon--before"
259
259
  };
260
- const _hoisted_2$G = { class: "tao-input-group__field" };
261
- const _hoisted_3$x = {
260
+ const _hoisted_2$H = { class: "tao-input-group__field" };
261
+ const _hoisted_3$y = {
262
262
  key: 1,
263
263
  class: "tao-input-group__addon tao-input-group__addon--after"
264
264
  };
265
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
265
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
266
266
  ...{ name: "TaoInputGroup" },
267
267
  __name: "TaoInputGroup",
268
268
  props: {
@@ -287,20 +287,20 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
287
287
  onFocusin: onFocusIn,
288
288
  onFocusout: onFocusOut
289
289
  }, [
290
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
290
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
291
291
  renderSlot(_ctx.$slots, "before", {}, void 0, true)
292
292
  ])) : createCommentVNode("", true),
293
- createElementVNode("div", _hoisted_2$G, [
293
+ createElementVNode("div", _hoisted_2$H, [
294
294
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
295
295
  ]),
296
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
296
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
297
297
  renderSlot(_ctx.$slots, "after", {}, void 0, true)
298
298
  ])) : createCommentVNode("", true)
299
299
  ], 34);
300
300
  };
301
301
  }
302
302
  });
303
- const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-55b2d297"]]);
303
+ const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-55b2d297"]]);
304
304
  const localeRu = {
305
305
  code: "ru-RU",
306
306
  alert: { closeLabel: "Закрыть" },
@@ -377,6 +377,7 @@ const localeRu = {
377
377
  },
378
378
  table: { emptyText: "Нет данных" },
379
379
  tag: { closeLabel: "Убрать" },
380
+ timeline: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
380
381
  toast: { closeLabel: "Закрыть уведомление" }
381
382
  };
382
383
  const confirmDefaults = {
@@ -580,6 +581,7 @@ const localeEn = {
580
581
  },
581
582
  table: { emptyText: "No data" },
582
583
  tag: { closeLabel: "Remove" },
584
+ timeline: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
583
585
  toast: { closeLabel: "Close notification" }
584
586
  };
585
587
  const current = shallowRef(localeRu);
@@ -622,16 +624,16 @@ function useLocaleText(props, section) {
622
624
  function formatText(template, values) {
623
625
  return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
624
626
  }
625
- const _hoisted_1$M = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
626
- const _hoisted_2$F = {
627
+ const _hoisted_1$N = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
628
+ const _hoisted_2$G = {
627
629
  key: 0,
628
630
  class: "tao-input-number__steppers"
629
631
  };
630
- const _hoisted_3$w = ["aria-label", "disabled"];
631
- const _hoisted_4$s = { "aria-hidden": "true" };
632
- const _hoisted_5$l = ["aria-label", "disabled"];
633
- const _hoisted_6$g = { "aria-hidden": "true" };
634
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
632
+ const _hoisted_3$x = ["aria-label", "disabled"];
633
+ const _hoisted_4$t = { "aria-hidden": "true" };
634
+ const _hoisted_5$m = ["aria-label", "disabled"];
635
+ const _hoisted_6$h = { "aria-hidden": "true" };
636
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
635
637
  ...{ name: "TaoInputNumber" },
636
638
  __name: "TaoInputNumber",
637
639
  props: {
@@ -660,36 +662,37 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
660
662
  const describedBy = computed(() => field == null ? void 0 : field.describedBy.value);
661
663
  const focused = ref(false);
662
664
  const draft = ref(toDraft(props.modelValue));
665
+ let emitted;
663
666
  watch(
664
667
  () => props.modelValue,
665
668
  (value) => {
666
- if (!focused.value) {
669
+ if (!focused.value || value !== emitted) {
667
670
  draft.value = toDraft(value);
668
671
  }
669
672
  }
670
673
  );
671
- function decimalsOf(value) {
674
+ function decimalsOf2(value) {
672
675
  const text = String(value);
673
676
  const dot = text.indexOf(".");
674
677
  return dot === -1 ? 0 : text.length - dot - 1;
675
678
  }
676
- function roundTo(value) {
677
- const digits = props.precision ?? decimalsOf(props.step);
679
+ function roundTo2(value) {
680
+ const digits = props.precision ?? decimalsOf2(props.step);
678
681
  if (digits <= 0) {
679
682
  return Math.round(value);
680
683
  }
681
684
  const factor = 10 ** digits;
682
685
  return Math.round(value * factor) / factor;
683
686
  }
684
- function clamp(value) {
685
- let next = roundTo(value);
687
+ function clamp2(value) {
688
+ let next = roundTo2(value);
686
689
  if (props.min !== void 0 && next < props.min) {
687
690
  next = props.min;
688
691
  }
689
692
  if (props.max !== void 0 && next > props.max) {
690
693
  next = props.max;
691
694
  }
692
- return roundTo(next);
695
+ return roundTo2(next);
693
696
  }
694
697
  function toDraft(value) {
695
698
  if (value === null || value === void 0 || Number.isNaN(value)) {
@@ -715,7 +718,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
715
718
  return /^-?\d*([.,]\d*)?$/.test(text);
716
719
  }
717
720
  function commit(value) {
718
- const next = value === null ? null : clamp(value);
721
+ const next = value === null ? null : clamp2(value);
722
+ emitted = next;
719
723
  emit("update:modelValue", next);
720
724
  draft.value = toDraft(next);
721
725
  emit("commit", next);
@@ -735,7 +739,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
735
739
  draft.value = text;
736
740
  const parsed = parseDraft(text);
737
741
  if (parsed !== "incomplete") {
738
- emit("update:modelValue", parsed === null ? null : clamp(parsed));
742
+ emitted = parsed === null ? null : clamp2(parsed);
743
+ emit("update:modelValue", emitted);
739
744
  }
740
745
  }
741
746
  function onFocus(event) {
@@ -789,8 +794,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
789
794
  onFocus,
790
795
  onBlur,
791
796
  onKeydown
792
- }, null, 40, _hoisted_1$M),
793
- __props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
797
+ }, null, 40, _hoisted_1$N),
798
+ __props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
794
799
  createElementVNode("button", {
795
800
  type: "button",
796
801
  class: "tao-input-number__step",
@@ -799,12 +804,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
799
804
  disabled: __props.disabled || atMax.value,
800
805
  onClick: _cache[0] || (_cache[0] = ($event) => bump(1))
801
806
  }, [
802
- createElementVNode("span", _hoisted_4$s, [
807
+ createElementVNode("span", _hoisted_4$t, [
803
808
  renderSlot(_ctx.$slots, "increment-icon", {}, () => [
804
809
  _cache[2] || (_cache[2] = createTextVNode("+", -1))
805
810
  ], true)
806
811
  ])
807
- ], 8, _hoisted_3$w),
812
+ ], 8, _hoisted_3$x),
808
813
  createElementVNode("button", {
809
814
  type: "button",
810
815
  class: "tao-input-number__step",
@@ -813,24 +818,24 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
813
818
  disabled: __props.disabled || atMin.value,
814
819
  onClick: _cache[1] || (_cache[1] = ($event) => bump(-1))
815
820
  }, [
816
- createElementVNode("span", _hoisted_6$g, [
821
+ createElementVNode("span", _hoisted_6$h, [
817
822
  renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
818
823
  _cache[3] || (_cache[3] = createTextVNode("−", -1))
819
824
  ], true)
820
825
  ])
821
- ], 8, _hoisted_5$l)
826
+ ], 8, _hoisted_5$m)
822
827
  ])) : createCommentVNode("", true)
823
828
  ], 2);
824
829
  };
825
830
  }
826
831
  });
827
- const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-52c1f25a"]]);
828
- const _hoisted_1$L = ["aria-label", "disabled"];
829
- const _hoisted_2$E = { "aria-hidden": "true" };
830
- const _hoisted_3$v = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
831
- const _hoisted_4$r = ["aria-label", "disabled"];
832
- const _hoisted_5$k = { "aria-hidden": "true" };
833
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
832
+ const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-0594919d"]]);
833
+ const _hoisted_1$M = ["aria-label", "disabled"];
834
+ const _hoisted_2$F = { "aria-hidden": "true" };
835
+ const _hoisted_3$w = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
836
+ const _hoisted_4$s = ["aria-label", "disabled"];
837
+ const _hoisted_5$l = { "aria-hidden": "true" };
838
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
834
839
  ...{ name: "TaoQuantity" },
835
840
  __name: "TaoQuantity",
836
841
  props: {
@@ -973,12 +978,12 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
973
978
  disabled: minusDisabled.value,
974
979
  onClick: onDec
975
980
  }, [
976
- createElementVNode("span", _hoisted_2$E, [
981
+ createElementVNode("span", _hoisted_2$F, [
977
982
  renderSlot(_ctx.$slots, "decrement-icon", {}, () => [
978
983
  _cache[0] || (_cache[0] = createTextVNode("−", -1))
979
984
  ], true)
980
985
  ])
981
- ], 8, _hoisted_1$L),
986
+ ], 8, _hoisted_1$M),
982
987
  createElementVNode("input", {
983
988
  id: controlId.value,
984
989
  class: "tao-quantity__input",
@@ -998,7 +1003,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
998
1003
  onFocus,
999
1004
  onBlur,
1000
1005
  onKeydown
1001
- }, null, 40, _hoisted_3$v),
1006
+ }, null, 40, _hoisted_3$w),
1002
1007
  createElementVNode("button", {
1003
1008
  type: "button",
1004
1009
  class: "tao-quantity__btn tao-quantity__btn--inc",
@@ -1006,35 +1011,35 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1006
1011
  disabled: plusDisabled.value,
1007
1012
  onClick: onInc
1008
1013
  }, [
1009
- createElementVNode("span", _hoisted_5$k, [
1014
+ createElementVNode("span", _hoisted_5$l, [
1010
1015
  renderSlot(_ctx.$slots, "increment-icon", {}, () => [
1011
1016
  _cache[1] || (_cache[1] = createTextVNode("+", -1))
1012
1017
  ], true)
1013
1018
  ])
1014
- ], 8, _hoisted_4$r)
1019
+ ], 8, _hoisted_4$s)
1015
1020
  ], 2);
1016
1021
  };
1017
1022
  }
1018
1023
  });
1019
- const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-e27165e3"]]);
1020
- const _hoisted_1$K = {
1024
+ const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-e27165e3"]]);
1025
+ const _hoisted_1$L = {
1021
1026
  key: 0,
1022
1027
  class: "tao-card__cover"
1023
1028
  };
1024
- const _hoisted_2$D = {
1029
+ const _hoisted_2$E = {
1025
1030
  key: 0,
1026
1031
  class: "tao-card__overlay"
1027
1032
  };
1028
- const _hoisted_3$u = {
1033
+ const _hoisted_3$v = {
1029
1034
  key: 1,
1030
1035
  class: "tao-card__overlay"
1031
1036
  };
1032
- const _hoisted_4$q = {
1037
+ const _hoisted_4$r = {
1033
1038
  key: 0,
1034
1039
  class: "tao-card__header-title"
1035
1040
  };
1036
- const _hoisted_5$j = { key: 0 };
1037
- const _hoisted_6$f = {
1041
+ const _hoisted_5$k = { key: 0 };
1042
+ const _hoisted_6$g = {
1038
1043
  key: 2,
1039
1044
  class: "tao-card__title-block"
1040
1045
  };
@@ -1054,7 +1059,7 @@ const _hoisted_10$4 = {
1054
1059
  key: 4,
1055
1060
  class: "tao-card__footer"
1056
1061
  };
1057
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
1062
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
1058
1063
  ...{ name: "TaoCard" },
1059
1064
  __name: "TaoCard",
1060
1065
  props: {
@@ -1096,12 +1101,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1096
1101
  }]]),
1097
1102
  style: normalizeStyle(radiusStyle.value)
1098
1103
  }, [
1099
- _ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
1104
+ _ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
1100
1105
  renderSlot(_ctx.$slots, "cover", {}, void 0, true),
1101
- _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
1106
+ _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
1102
1107
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1103
1108
  ])) : createCommentVNode("", true)
1104
- ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
1109
+ ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
1105
1110
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1106
1111
  ])) : createCommentVNode("", true),
1107
1112
  hasContent.value ? (openBlock(), createElementBlock("div", {
@@ -1109,7 +1114,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1109
1114
  class: "tao-card__content",
1110
1115
  style: normalizeStyle(paddingStyle.value)
1111
1116
  }, [
1112
- _ctx.$slots.headerTitle ? (openBlock(), createElementBlock("h2", _hoisted_4$q, [
1117
+ _ctx.$slots.headerTitle ? (openBlock(), createElementBlock("h2", _hoisted_4$r, [
1113
1118
  renderSlot(_ctx.$slots, "headerTitle", {}, void 0, true)
1114
1119
  ])) : createCommentVNode("", true),
1115
1120
  _ctx.$slots.header || _ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("div", {
@@ -1119,11 +1124,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1119
1124
  createElementVNode("span", null, [
1120
1125
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
1121
1126
  ]),
1122
- _ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("span", _hoisted_5$j, [
1127
+ _ctx.$slots.headerSecondary ? (openBlock(), createElementBlock("span", _hoisted_5$k, [
1123
1128
  renderSlot(_ctx.$slots, "headerSecondary", {}, void 0, true)
1124
1129
  ])) : createCommentVNode("", true)
1125
1130
  ], 2)) : createCommentVNode("", true),
1126
- _ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
1131
+ _ctx.$slots.title || _ctx.$slots.sub ? (openBlock(), createElementBlock("div", _hoisted_6$g, [
1127
1132
  _ctx.$slots.title ? (openBlock(), createElementBlock("h2", _hoisted_7$c, [
1128
1133
  renderSlot(_ctx.$slots, "title", {}, void 0, true)
1129
1134
  ])) : createCommentVNode("", true),
@@ -1142,7 +1147,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1142
1147
  };
1143
1148
  }
1144
1149
  });
1145
- const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-53c366d1"]]);
1150
+ const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-53c366d1"]]);
1146
1151
  const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
1147
1152
  function getFocusable(root) {
1148
1153
  return [...root.querySelectorAll(FOCUSABLE)].filter(
@@ -1196,21 +1201,21 @@ function unlockBodyScroll() {
1196
1201
  previousOverflow = "";
1197
1202
  }
1198
1203
  }
1199
- const _hoisted_1$J = ["aria-labelledby"];
1200
- const _hoisted_2$C = {
1204
+ const _hoisted_1$K = ["aria-labelledby"];
1205
+ const _hoisted_2$D = {
1201
1206
  key: 0,
1202
1207
  class: "tao-modal__header"
1203
1208
  };
1204
- const _hoisted_3$t = ["id"];
1205
- const _hoisted_4$p = { key: 1 };
1206
- const _hoisted_5$i = ["aria-label"];
1207
- const _hoisted_6$e = { "aria-hidden": "true" };
1209
+ const _hoisted_3$u = ["id"];
1210
+ const _hoisted_4$q = { key: 1 };
1211
+ const _hoisted_5$j = ["aria-label"];
1212
+ const _hoisted_6$f = { "aria-hidden": "true" };
1208
1213
  const _hoisted_7$b = { class: "tao-modal__content" };
1209
1214
  const _hoisted_8$a = {
1210
1215
  key: 1,
1211
1216
  class: "tao-modal__footer"
1212
1217
  };
1213
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
1218
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1214
1219
  ...{ name: "TaoModal" },
1215
1220
  __name: "TaoModal",
1216
1221
  props: {
@@ -1327,13 +1332,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1327
1332
  "aria-labelledby": __props.title ? unref(titleId) : void 0,
1328
1333
  tabindex: "-1"
1329
1334
  }, [
1330
- __props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
1335
+ __props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
1331
1336
  renderSlot(_ctx.$slots, "header", {}, () => [
1332
1337
  __props.title ? (openBlock(), createElementBlock("h2", {
1333
1338
  key: 0,
1334
1339
  id: unref(titleId),
1335
1340
  class: "tao-modal__title"
1336
- }, toDisplayString(__props.title), 9, _hoisted_3$t)) : (openBlock(), createElementBlock("span", _hoisted_4$p))
1341
+ }, toDisplayString(__props.title), 9, _hoisted_3$u)) : (openBlock(), createElementBlock("span", _hoisted_4$q))
1337
1342
  ], true),
1338
1343
  __props.closable ? (openBlock(), createElementBlock("button", {
1339
1344
  key: 0,
@@ -1342,12 +1347,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1342
1347
  "aria-label": unref(l10n).closeLabel,
1343
1348
  onClick: close
1344
1349
  }, [
1345
- createElementVNode("span", _hoisted_6$e, [
1350
+ createElementVNode("span", _hoisted_6$f, [
1346
1351
  renderSlot(_ctx.$slots, "close-icon", {}, () => [
1347
1352
  _cache[0] || (_cache[0] = createTextVNode("×", -1))
1348
1353
  ], true)
1349
1354
  ])
1350
- ], 8, _hoisted_5$i)) : createCommentVNode("", true)
1355
+ ], 8, _hoisted_5$j)) : createCommentVNode("", true)
1351
1356
  ])) : createCommentVNode("", true),
1352
1357
  createElementVNode("div", _hoisted_7$b, [
1353
1358
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -1355,7 +1360,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1355
1360
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$a, [
1356
1361
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
1357
1362
  ])) : createCommentVNode("", true)
1358
- ], 8, _hoisted_1$J)
1363
+ ], 8, _hoisted_1$K)
1359
1364
  ], 32)) : createCommentVNode("", true)
1360
1365
  ]),
1361
1366
  _: 3
@@ -1364,13 +1369,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1364
1369
  };
1365
1370
  }
1366
1371
  });
1367
- const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-742274be"]]);
1372
+ const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-742274be"]]);
1368
1373
  function tabValue(tab) {
1369
1374
  return tab.value ?? tab.key;
1370
1375
  }
1371
- const _hoisted_1$I = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
1372
- const _hoisted_2$B = ["id", "aria-labelledby"];
1373
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
1376
+ const _hoisted_1$J = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
1377
+ const _hoisted_2$C = ["id", "aria-labelledby"];
1378
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1374
1379
  ...{ name: "TaoTabs" },
1375
1380
  __name: "TaoTabs",
1376
1381
  props: {
@@ -1475,7 +1480,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1475
1480
  }, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1476
1481
  createTextVNode(toDisplayString(tab.label), 1)
1477
1482
  ], 64))
1478
- ], 8, _hoisted_1$I);
1483
+ ], 8, _hoisted_1$J);
1479
1484
  }), 128))
1480
1485
  ], 36),
1481
1486
  createElementVNode("div", {
@@ -1485,12 +1490,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1485
1490
  "aria-labelledby": tabId(__props.modelValue)
1486
1491
  }, [
1487
1492
  renderSlot(_ctx.$slots, "default", { activeTab: __props.modelValue }, void 0, true)
1488
- ], 8, _hoisted_2$B)
1493
+ ], 8, _hoisted_2$C)
1489
1494
  ], 2);
1490
1495
  };
1491
1496
  }
1492
1497
  });
1493
- const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-a9238d96"]]);
1498
+ const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-a9238d96"]]);
1494
1499
  function listenFocusLoss(onLoss) {
1495
1500
  function onVisibilityChange() {
1496
1501
  if (document.hidden) {
@@ -1506,6 +1511,532 @@ function listenFocusLoss(onLoss) {
1506
1511
  window.removeEventListener("pagehide", onLoss);
1507
1512
  };
1508
1513
  }
1514
+ const clamp = (v, min, max) => Math.min(Math.max(v, min), max);
1515
+ function decimalsOf(step) {
1516
+ if (!Number.isFinite(step) || step <= 0) return 0;
1517
+ const s = String(step);
1518
+ if (s.includes("e-")) return Number(s.split("e-")[1]);
1519
+ return s.includes(".") ? s.split(".")[1].length : 0;
1520
+ }
1521
+ const roundTo = (v, decimals) => {
1522
+ const k = Math.pow(10, decimals);
1523
+ return Math.round(v * k) / k + 0;
1524
+ };
1525
+ function ratioOf(value, min, max) {
1526
+ return max > min ? clamp((value - min) / (max - min), 0, 1) : 0;
1527
+ }
1528
+ function valueAt(ratio, min, max, step) {
1529
+ const raw = min + clamp(ratio, 0, 1) * (max - min);
1530
+ if (!(step > 0)) return clamp(raw, min, max);
1531
+ const snapped = min + Math.round((raw - min) / step) * step;
1532
+ return clamp(roundTo(snapped, Math.max(decimalsOf(step), decimalsOf(min))), min, max);
1533
+ }
1534
+ function nearestMark(value, marks) {
1535
+ let best = value;
1536
+ let bestDistance = Infinity;
1537
+ for (const m of marks) {
1538
+ const d = Math.abs(m - value);
1539
+ if (d < bestDistance || d === bestDistance && m < best) {
1540
+ best = m;
1541
+ bestDistance = d;
1542
+ }
1543
+ }
1544
+ return best;
1545
+ }
1546
+ function stepMark(value, marks, dir) {
1547
+ const sorted = [...marks].sort((a, b) => a - b);
1548
+ const next = dir > 0 ? sorted.find((m) => m > value) : [...sorted].reverse().find((m) => m < value);
1549
+ return next ?? value;
1550
+ }
1551
+ function nearestThumb(values, target, last = 0) {
1552
+ if (values.length < 2) return 0;
1553
+ const d0 = Math.abs(values[0] - target);
1554
+ const d1 = Math.abs(values[1] - target);
1555
+ if (d0 !== d1) return d0 < d1 ? 0 : 1;
1556
+ if (target > values[0]) return 1;
1557
+ if (target < values[0]) return 0;
1558
+ return last === 1 ? 1 : 0;
1559
+ }
1560
+ function moveThumb(values, index, next, min, max, gap = 0) {
1561
+ const [a, b] = values;
1562
+ return index === 0 ? [clamp(next, min, Math.max(min, b - gap)), b] : [a, clamp(next, Math.min(max, a + gap), max)];
1563
+ }
1564
+ function normalizeValue(value, min, max) {
1565
+ const list = Array.isArray(value) ? [value[0], value[1]] : [value];
1566
+ const clamped = list.map((v) => clamp(Number.isFinite(v) ? v : min, min, max));
1567
+ return clamped.length === 2 ? clamped.sort((x, y) => x - y) : clamped;
1568
+ }
1569
+ function niceStep(span, count) {
1570
+ if (!(span > 0)) return 1;
1571
+ const raw = span / Math.max(1, count);
1572
+ const pow = Math.pow(10, Math.floor(Math.log10(raw)));
1573
+ const f = raw / pow;
1574
+ return (f < 1.5 ? 1 : f < 3.5 ? 2 : f < 7.5 ? 5 : 10) * pow;
1575
+ }
1576
+ function niceTicks(min, max, count = 5) {
1577
+ if (!(max > min)) return [min];
1578
+ const step = niceStep(max - min, count);
1579
+ const decimals = decimalsOf(step);
1580
+ const out = [];
1581
+ for (let i = Math.ceil(min / step - 1e-9); i * step <= max + step * 1e-9; i++) out.push(roundTo(i * step, decimals));
1582
+ return out;
1583
+ }
1584
+ function normalizeMarks(marks, min, max, format = String) {
1585
+ if (!marks) return [];
1586
+ const list = marks === true ? niceTicks(min, max).map((value) => ({ value })) : marks.map((m) => typeof m === "number" ? { value: m } : m);
1587
+ return list.filter((m) => m.value >= min && m.value <= max).map((m) => m.label === void 0 ? { ...m, label: format(m.value) } : m).sort((a, b) => a.value - b.value);
1588
+ }
1589
+ function isMarkActive(markValue, values) {
1590
+ return values.length === 2 ? markValue >= values[0] && markValue <= values[1] : markValue <= (values[0] ?? 0);
1591
+ }
1592
+ const _hoisted_1$I = ["aria-disabled"];
1593
+ const _hoisted_2$B = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
1594
+ const _hoisted_3$t = {
1595
+ key: 0,
1596
+ class: "tao-slider__value"
1597
+ };
1598
+ const _hoisted_4$p = {
1599
+ key: 0,
1600
+ class: "tao-slider__marks"
1601
+ };
1602
+ const _hoisted_5$i = ["disabled", "onClick"];
1603
+ const _hoisted_6$e = {
1604
+ key: 0,
1605
+ class: "tao-slider__mark-label"
1606
+ };
1607
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1608
+ ...{ name: "TaoSliderBase" },
1609
+ __name: "TaoSliderBase",
1610
+ props: {
1611
+ min: { default: 0 },
1612
+ max: { default: 100 },
1613
+ step: { default: 1 },
1614
+ minGap: { default: 0 },
1615
+ showValue: { type: Boolean, default: false },
1616
+ marks: { type: [Boolean, Array] },
1617
+ marksSide: { default: "end" },
1618
+ discrete: { type: Boolean, default: false },
1619
+ format: {},
1620
+ flat: { type: Boolean, default: false },
1621
+ vertical: { type: Boolean, default: false },
1622
+ disabled: { type: Boolean, default: false },
1623
+ error: { type: Boolean, default: false },
1624
+ variant: { default: "bar" },
1625
+ size: {},
1626
+ wheel: { default: 0 },
1627
+ modelValue: {}
1628
+ },
1629
+ emits: ["update:modelValue", "change"],
1630
+ setup(__props, { emit: __emit }) {
1631
+ const props = __props;
1632
+ const emit = __emit;
1633
+ const field = inject(formFieldKey, null);
1634
+ const localId = useId();
1635
+ const controlId = computed(() => (field == null ? void 0 : field.id) ?? localId);
1636
+ const describedBy = computed(() => field == null ? void 0 : field.describedBy.value);
1637
+ const invalid = computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
1638
+ const isRange = computed(() => Array.isArray(props.modelValue));
1639
+ const values = computed(() => normalizeValue(props.modelValue, props.min, props.max));
1640
+ const text = (v) => props.format ? props.format(v) : String(v);
1641
+ const markList = computed(() => normalizeMarks(props.marks, props.min, props.max, text));
1642
+ const markValues = computed(() => markList.value.map((m) => m.value));
1643
+ const hasCaptions = computed(() => markList.value.some((m) => m.label));
1644
+ const stepped = computed(() => props.discrete && markValues.value.length > 0);
1645
+ const percent = (v) => ratioOf(v, props.min, props.max) * 100;
1646
+ const place = (v) => props.vertical ? { bottom: `${percent(v)}%` } : { left: `${percent(v)}%` };
1647
+ const fillStyle = computed(() => {
1648
+ const from = isRange.value ? percent(values.value[0]) : 0;
1649
+ const to = percent(values.value[isRange.value ? 1 : 0]);
1650
+ return props.vertical ? { bottom: `${from}%`, height: `${to - from}%` } : { left: `${from}%`, width: `${to - from}%` };
1651
+ });
1652
+ const barText = computed(() => values.value.map(text).join(" – "));
1653
+ function write(next, final = false) {
1654
+ const before = values.value;
1655
+ const value = isRange.value ? [next[0], next[1]] : next[0];
1656
+ const changed = next.some((v, i) => v !== before[i]);
1657
+ emit("update:modelValue", value);
1658
+ if (final && changed) emit("change", value);
1659
+ }
1660
+ function setThumb(index, target, final = false) {
1661
+ if (isRange.value) {
1662
+ write(moveThumb(values.value, index, target, props.min, props.max, props.minGap), final);
1663
+ } else {
1664
+ write([Math.min(Math.max(target, props.min), props.max)], final);
1665
+ }
1666
+ }
1667
+ function valueUnder(event) {
1668
+ const el = railRef.value;
1669
+ if (!el) return props.min;
1670
+ const rect = el.getBoundingClientRect();
1671
+ const ratio = props.vertical ? rect.height ? 1 - (event.clientY - rect.top) / rect.height : 0 : rect.width ? (event.clientX - rect.left) / rect.width : 0;
1672
+ const raw = valueAt(ratio, props.min, props.max, stepped.value ? 0 : props.step);
1673
+ return stepped.value ? nearestMark(raw, markValues.value) : raw;
1674
+ }
1675
+ const railRef = ref(null);
1676
+ const isDragging = ref(false);
1677
+ const activeThumb = ref(0);
1678
+ const pointerFocus = ref(false);
1679
+ let dragPointer = -1;
1680
+ let dragStart = [];
1681
+ let tieAt = null;
1682
+ function releaseDragCapture() {
1683
+ const el = railRef.value;
1684
+ const id = dragPointer;
1685
+ if (!el || id === -1) return;
1686
+ if (typeof el.hasPointerCapture === "function" && !el.hasPointerCapture(id)) return;
1687
+ try {
1688
+ el.releasePointerCapture(id);
1689
+ } catch {
1690
+ }
1691
+ }
1692
+ function endDrag() {
1693
+ if (!isDragging.value) return;
1694
+ isDragging.value = false;
1695
+ releaseDragCapture();
1696
+ dragPointer = -1;
1697
+ tieAt = null;
1698
+ if (values.value.some((v, i) => v !== dragStart[i])) {
1699
+ emit("change", isRange.value ? [values.value[0], values.value[1]] : values.value[0]);
1700
+ }
1701
+ }
1702
+ function onPointerDown(event) {
1703
+ var _a;
1704
+ if (props.disabled || event.button !== 0 || !railRef.value) return;
1705
+ const target = valueUnder(event);
1706
+ dragPointer = event.pointerId;
1707
+ dragStart = [...values.value];
1708
+ isDragging.value = true;
1709
+ activeThumb.value = nearestThumb(values.value, target, activeThumb.value);
1710
+ tieAt = isRange.value && values.value[0] === values.value[1] && target === values.value[0] ? target : null;
1711
+ pointerFocus.value = true;
1712
+ (_a = railRef.value.querySelectorAll(".tao-slider__thumb")[activeThumb.value]) == null ? void 0 : _a.focus({ preventScroll: true });
1713
+ setThumb(activeThumb.value, target);
1714
+ event.preventDefault();
1715
+ try {
1716
+ railRef.value.setPointerCapture(event.pointerId);
1717
+ } catch {
1718
+ }
1719
+ }
1720
+ function onPointerMove(event) {
1721
+ if (!isDragging.value || event.pointerId !== dragPointer) return;
1722
+ const target = valueUnder(event);
1723
+ if (tieAt !== null) {
1724
+ if (target === tieAt) return;
1725
+ activeThumb.value = target > tieAt ? 1 : 0;
1726
+ tieAt = null;
1727
+ }
1728
+ setThumb(activeThumb.value, target);
1729
+ }
1730
+ function onPointerEnd(event) {
1731
+ if (!isDragging.value) return;
1732
+ if (dragPointer !== -1 && event.pointerId !== dragPointer) return;
1733
+ endDrag();
1734
+ }
1735
+ function onKeydown(event, index) {
1736
+ if (props.disabled) return;
1737
+ pointerFocus.value = false;
1738
+ activeThumb.value = index;
1739
+ const at = values.value[index];
1740
+ let next = null;
1741
+ const forward = event.key === "ArrowRight" || event.key === "ArrowUp";
1742
+ const backward = event.key === "ArrowLeft" || event.key === "ArrowDown";
1743
+ if (forward || backward) {
1744
+ const dir = forward ? 1 : -1;
1745
+ next = stepped.value ? stepMark(at, markValues.value, dir) : at + dir * props.step;
1746
+ } else if (event.key === "PageUp" || event.key === "PageDown") {
1747
+ const dir = event.key === "PageUp" ? 1 : -1;
1748
+ next = stepped.value ? stepMark(at, markValues.value, dir) : at + dir * props.step * 10;
1749
+ } else if (event.key === "Home") {
1750
+ next = props.min;
1751
+ } else if (event.key === "End") {
1752
+ next = props.max;
1753
+ }
1754
+ if (next === null) return;
1755
+ event.preventDefault();
1756
+ setThumb(index, stepped.value ? nearestMark(next, markValues.value) : valueAt(ratioOf(next, props.min, props.max), props.min, props.max, props.step), true);
1757
+ }
1758
+ function onWheel(event) {
1759
+ if (props.disabled || props.wheel <= 0 || isRange.value) return;
1760
+ event.preventDefault();
1761
+ setThumb(0, values.value[0] + (event.deltaY < 0 ? props.wheel : -props.wheel), true);
1762
+ }
1763
+ function onMarkClick(mark) {
1764
+ if (props.disabled) return;
1765
+ activeThumb.value = nearestThumb(values.value, mark.value, activeThumb.value);
1766
+ setThumb(activeThumb.value, mark.value, true);
1767
+ }
1768
+ let stopFocusLoss;
1769
+ onMounted(() => {
1770
+ stopFocusLoss = listenFocusLoss(endDrag);
1771
+ });
1772
+ onBeforeUnmount(() => {
1773
+ endDrag();
1774
+ stopFocusLoss == null ? void 0 : stopFocusLoss();
1775
+ });
1776
+ return (_ctx, _cache) => {
1777
+ return openBlock(), createElementBlock("div", {
1778
+ class: normalizeClass(["tao-slider", [
1779
+ `tao-slider--${__props.variant}`,
1780
+ unref(sizeClass)(__props.size),
1781
+ {
1782
+ "tao-slider--vertical": __props.vertical,
1783
+ "tao-slider--flat": __props.flat,
1784
+ "tao-slider--pointer-focus": pointerFocus.value,
1785
+ "tao-slider--collapsed": isRange.value && values.value[0] === values.value[1],
1786
+ "tao-slider--range": isRange.value,
1787
+ "tao-slider--has-marks": markList.value.length > 0,
1788
+ "tao-slider--marks-start": __props.marksSide === "start",
1789
+ "tao-slider--marks-bare": markList.value.length > 0 && !hasCaptions.value,
1790
+ "tao-slider--show-value": __props.showValue,
1791
+ "tao-slider--disabled": __props.disabled,
1792
+ "tao-slider--invalid": invalid.value
1793
+ }
1794
+ ]]),
1795
+ role: "group",
1796
+ "aria-disabled": __props.disabled || void 0,
1797
+ onWheel
1798
+ }, [
1799
+ createElementVNode("div", {
1800
+ ref_key: "railRef",
1801
+ ref: railRef,
1802
+ class: "tao-slider__rail",
1803
+ onPointerdown: onPointerDown,
1804
+ onPointermove: onPointerMove,
1805
+ onPointerup: onPointerEnd,
1806
+ onPointercancel: onPointerEnd,
1807
+ onLostpointercapture: endDrag
1808
+ }, [
1809
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "tao-slider__track" }, null, -1)),
1810
+ createElementVNode("div", {
1811
+ class: "tao-slider__fill",
1812
+ style: normalizeStyle(fillStyle.value)
1813
+ }, null, 4),
1814
+ (openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (v, i) => {
1815
+ return openBlock(), createElementBlock("div", {
1816
+ id: i === 0 ? controlId.value : void 0,
1817
+ key: i,
1818
+ class: normalizeClass(["tao-slider__thumb", { "tao-slider__thumb--active": isDragging.value && activeThumb.value === i }]),
1819
+ style: normalizeStyle(place(v)),
1820
+ role: "slider",
1821
+ tabindex: __props.disabled ? -1 : 0,
1822
+ "aria-valuemin": __props.min,
1823
+ "aria-valuemax": __props.max,
1824
+ "aria-valuenow": v,
1825
+ "aria-valuetext": text(v),
1826
+ "aria-orientation": __props.vertical ? "vertical" : "horizontal",
1827
+ "aria-disabled": __props.disabled || void 0,
1828
+ "aria-invalid": invalid.value || void 0,
1829
+ "aria-describedby": describedBy.value,
1830
+ onKeydown: ($event) => onKeydown($event, i),
1831
+ onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
1832
+ }, null, 46, _hoisted_2$B);
1833
+ }), 128)),
1834
+ __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
1835
+ renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
1836
+ createTextVNode(toDisplayString(barText.value), 1),
1837
+ renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
1838
+ ])) : createCommentVNode("", true)
1839
+ ], 544),
1840
+ markList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
1841
+ (openBlock(true), createElementBlock(Fragment, null, renderList(markList.value, (mark) => {
1842
+ return openBlock(), createElementBlock("button", {
1843
+ key: mark.value,
1844
+ type: "button",
1845
+ class: normalizeClass(["tao-slider__mark", {
1846
+ "tao-slider__mark--active": unref(isMarkActive)(mark.value, values.value),
1847
+ "tao-slider__mark--start": mark.value === __props.min,
1848
+ "tao-slider__mark--end": mark.value === __props.max && __props.max > __props.min
1849
+ }]),
1850
+ style: normalizeStyle(place(mark.value)),
1851
+ disabled: __props.disabled,
1852
+ tabindex: "-1",
1853
+ onClick: ($event) => onMarkClick(mark)
1854
+ }, [
1855
+ _cache[2] || (_cache[2] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
1856
+ mark.label ? (openBlock(), createElementBlock("span", _hoisted_6$e, [
1857
+ renderSlot(_ctx.$slots, "mark", {
1858
+ mark,
1859
+ active: unref(isMarkActive)(mark.value, values.value)
1860
+ }, () => [
1861
+ createTextVNode(toDisplayString(mark.label), 1)
1862
+ ], true)
1863
+ ])) : createCommentVNode("", true)
1864
+ ], 14, _hoisted_5$i);
1865
+ }), 128))
1866
+ ])) : createCommentVNode("", true)
1867
+ ], 42, _hoisted_1$I);
1868
+ };
1869
+ }
1870
+ });
1871
+ const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-9d009dbd"]]);
1872
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1873
+ ...{ name: "TaoSlider" },
1874
+ __name: "TaoSlider",
1875
+ props: {
1876
+ min: {},
1877
+ max: {},
1878
+ step: {},
1879
+ minGap: {},
1880
+ showValue: { type: Boolean },
1881
+ marks: { type: [Boolean, Array] },
1882
+ marksSide: {},
1883
+ discrete: { type: Boolean },
1884
+ format: { type: Function },
1885
+ flat: { type: Boolean },
1886
+ vertical: { type: Boolean },
1887
+ disabled: { type: Boolean },
1888
+ error: { type: Boolean },
1889
+ variant: {},
1890
+ size: {},
1891
+ wheel: {},
1892
+ modelValue: {}
1893
+ },
1894
+ emits: ["update:modelValue", "change"],
1895
+ setup(__props, { emit: __emit }) {
1896
+ const props = __props;
1897
+ const emit = __emit;
1898
+ return (_ctx, _cache) => {
1899
+ return openBlock(), createBlock(TaoSliderBase, mergeProps(props, {
1900
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
1901
+ onChange: _cache[1] || (_cache[1] = ($event) => emit("change", $event))
1902
+ }), createSlots({ _: 2 }, [
1903
+ _ctx.$slots.mark ? {
1904
+ name: "mark",
1905
+ fn: withCtx((slot) => [
1906
+ renderSlot(_ctx.$slots, "mark", normalizeProps(guardReactiveProps(slot)))
1907
+ ]),
1908
+ key: "0"
1909
+ } : void 0,
1910
+ _ctx.$slots["pre-value"] ? {
1911
+ name: "pre-value",
1912
+ fn: withCtx(() => [
1913
+ renderSlot(_ctx.$slots, "pre-value")
1914
+ ]),
1915
+ key: "1"
1916
+ } : void 0,
1917
+ _ctx.$slots["post-value"] ? {
1918
+ name: "post-value",
1919
+ fn: withCtx(() => [
1920
+ renderSlot(_ctx.$slots, "post-value")
1921
+ ]),
1922
+ key: "2"
1923
+ } : void 0
1924
+ ]), 1040);
1925
+ };
1926
+ }
1927
+ });
1928
+ const _hoisted_1$H = { class: "tao-timeline__controls" };
1929
+ const _hoisted_2$A = { class: "tao-timeline__track" };
1930
+ const _hoisted_3$s = {
1931
+ key: 0,
1932
+ class: "tao-timeline__time"
1933
+ };
1934
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1935
+ ...{ name: "TaoTimeline" },
1936
+ __name: "TaoTimeline",
1937
+ props: {
1938
+ modelValue: {},
1939
+ playing: { type: Boolean, default: false },
1940
+ length: {},
1941
+ step: { default: 0.01 },
1942
+ marks: {},
1943
+ marksSide: { default: "end" },
1944
+ format: {},
1945
+ pauseOnScrub: { type: Boolean, default: true },
1946
+ showRestart: { type: Boolean, default: true },
1947
+ showTime: { type: Boolean, default: true },
1948
+ variant: { default: "thin" },
1949
+ size: {},
1950
+ disabled: { type: Boolean, default: false },
1951
+ playLabel: {},
1952
+ pauseLabel: {},
1953
+ restartLabel: {}
1954
+ },
1955
+ emits: ["update:modelValue", "update:playing", "restart", "seek"],
1956
+ setup(__props, { emit: __emit }) {
1957
+ const props = __props;
1958
+ const emit = __emit;
1959
+ const l10n = useLocaleText(props, "timeline");
1960
+ const text = (t) => props.format ? props.format(t) : t.toFixed(2);
1961
+ const label = computed(() => `${text(props.modelValue)} / ${text(props.length)}`);
1962
+ function onScrub(time) {
1963
+ emit("update:modelValue", time);
1964
+ if (props.pauseOnScrub && props.playing) emit("update:playing", false);
1965
+ }
1966
+ function onRestart() {
1967
+ emit("update:modelValue", 0);
1968
+ emit("restart");
1969
+ }
1970
+ return (_ctx, _cache) => {
1971
+ return openBlock(), createElementBlock("div", {
1972
+ class: normalizeClass(["tao-timeline", [unref(sizeClass)(__props.size), `tao-timeline--${__props.variant}`, { "tao-timeline--marks-start": __props.marksSide === "start", "tao-timeline--disabled": __props.disabled }]])
1973
+ }, [
1974
+ createElementVNode("div", _hoisted_1$H, [
1975
+ createVNode(TaoButton, {
1976
+ size: "small",
1977
+ variant: "secondary",
1978
+ disabled: __props.disabled,
1979
+ "aria-label": __props.playing ? unref(l10n).pauseLabel : unref(l10n).playLabel,
1980
+ "aria-pressed": __props.playing,
1981
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("update:playing", !__props.playing))
1982
+ }, {
1983
+ default: withCtx(() => [
1984
+ createTextVNode(toDisplayString(__props.playing ? "❚❚" : "▶"), 1)
1985
+ ]),
1986
+ _: 1
1987
+ }, 8, ["disabled", "aria-label", "aria-pressed"]),
1988
+ __props.showRestart ? (openBlock(), createBlock(TaoButton, {
1989
+ key: 0,
1990
+ size: "small",
1991
+ variant: "ghost",
1992
+ disabled: __props.disabled,
1993
+ "aria-label": unref(l10n).restartLabel,
1994
+ onClick: onRestart
1995
+ }, {
1996
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
1997
+ createTextVNode("⏮", -1)
1998
+ ])]),
1999
+ _: 1
2000
+ }, 8, ["disabled", "aria-label"])) : createCommentVNode("", true)
2001
+ ]),
2002
+ createElementVNode("div", _hoisted_2$A, [
2003
+ createVNode(_sfc_main$S, {
2004
+ "model-value": __props.modelValue,
2005
+ min: 0,
2006
+ max: __props.length,
2007
+ step: __props.step,
2008
+ marks: __props.marks,
2009
+ "marks-side": __props.marksSide,
2010
+ format: text,
2011
+ variant: __props.variant,
2012
+ size: __props.size,
2013
+ disabled: __props.disabled,
2014
+ "onUpdate:modelValue": onScrub,
2015
+ onChange: _cache[1] || (_cache[1] = ($event) => emit("seek", $event))
2016
+ }, createSlots({ _: 2 }, [
2017
+ _ctx.$slots.mark ? {
2018
+ name: "mark",
2019
+ fn: withCtx((slot) => [
2020
+ renderSlot(_ctx.$slots, "mark", normalizeProps(guardReactiveProps(slot)), void 0, true)
2021
+ ]),
2022
+ key: "0"
2023
+ } : void 0
2024
+ ]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
2025
+ ]),
2026
+ __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
2027
+ renderSlot(_ctx.$slots, "time", {
2028
+ time: __props.modelValue,
2029
+ length: __props.length,
2030
+ text: label.value
2031
+ }, () => [
2032
+ createTextVNode(toDisplayString(label.value), 1)
2033
+ ], true)
2034
+ ])) : createCommentVNode("", true)
2035
+ ], 2);
2036
+ };
2037
+ }
2038
+ });
2039
+ const TaoTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-fb8f6331"]]);
1509
2040
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1510
2041
  ...{ name: "TaoTooltip" },
1511
2042
  __name: "TaoTooltip",
@@ -1669,7 +2200,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1669
2200
  }
1670
2201
  });
1671
2202
  const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-09caf2f5"]]);
1672
- const _hoisted_1$H = { class: "tao-popover" };
2203
+ const _hoisted_1$G = { class: "tao-popover" };
1673
2204
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
1674
2205
  ...{ name: "TaoPopover" },
1675
2206
  __name: "TaoPopover",
@@ -1839,7 +2370,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1839
2370
  unbindDismiss();
1840
2371
  });
1841
2372
  return (_ctx, _cache) => {
1842
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
2373
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
1843
2374
  createElementVNode("div", {
1844
2375
  ref_key: "triggerRef",
1845
2376
  ref: triggerRef,
@@ -1870,9 +2401,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1870
2401
  });
1871
2402
  const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-3e488e1b"]]);
1872
2403
  const spoilerGroupKey = Symbol("taoSpoilerGroup");
1873
- const _hoisted_1$G = { class: "tao-spoiler" };
1874
- const _hoisted_2$A = ["aria-expanded", "aria-controls"];
1875
- const _hoisted_3$s = {
2404
+ const _hoisted_1$F = { class: "tao-spoiler" };
2405
+ const _hoisted_2$z = ["aria-expanded", "aria-controls"];
2406
+ const _hoisted_3$r = {
1876
2407
  key: 0,
1877
2408
  class: "tao-spoiler__title"
1878
2409
  };
@@ -1934,7 +2465,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1934
2465
  });
1935
2466
  }
1936
2467
  return (_ctx, _cache) => {
1937
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
2468
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
1938
2469
  createElementVNode("button", {
1939
2470
  type: "button",
1940
2471
  class: "tao-spoiler__header",
@@ -1945,12 +2476,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1945
2476
  createElementVNode("span", {
1946
2477
  class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
1947
2478
  }, "▶", 2),
1948
- __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
2479
+ __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$r, [
1949
2480
  renderSlot(_ctx.$slots, "title", {}, () => [
1950
2481
  createTextVNode(toDisplayString(__props.title), 1)
1951
2482
  ], true)
1952
2483
  ])) : createCommentVNode("", true)
1953
- ], 8, _hoisted_2$A),
2484
+ ], 8, _hoisted_2$z),
1954
2485
  createVNode(Transition, {
1955
2486
  name: "tao-spoiler-slide",
1956
2487
  onBeforeEnter,
@@ -1976,7 +2507,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1976
2507
  }
1977
2508
  });
1978
2509
  const TaoSpoiler = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-5a3147a2"]]);
1979
- const _hoisted_1$F = { class: "tao-spoiler-group" };
2510
+ const _hoisted_1$E = { class: "tao-spoiler-group" };
1980
2511
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
1981
2512
  ...{ name: "TaoSpoilerGroup" },
1982
2513
  __name: "TaoSpoilerGroup",
@@ -2002,14 +2533,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
2002
2533
  setOpen
2003
2534
  });
2004
2535
  return (_ctx, _cache) => {
2005
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
2536
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
2006
2537
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
2007
2538
  ]);
2008
2539
  };
2009
2540
  }
2010
2541
  });
2011
2542
  const TaoSpoilerGroup = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-7986fd2a"]]);
2012
- const _hoisted_1$E = ["aria-label"];
2543
+ const _hoisted_1$D = ["aria-label"];
2013
2544
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
2014
2545
  ...{ name: "TaoCopy" },
2015
2546
  __name: "TaoCopy",
@@ -2151,7 +2682,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
2151
2682
  "stroke-width": "2"
2152
2683
  })
2153
2684
  ], -1)
2154
- ])], 10, _hoisted_1$E)
2685
+ ])], 10, _hoisted_1$D)
2155
2686
  ], true),
2156
2687
  (openBlock(), createBlock(Teleport, { to: "body" }, [
2157
2688
  copied.value && __props.tip && doneText.value ? (openBlock(), createElementBlock("div", {
@@ -2300,9 +2831,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
2300
2831
  }
2301
2832
  });
2302
2833
  const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ad288026"]]);
2303
- const _hoisted_1$D = { class: "tao-split__pane tao-split__pane--start" };
2304
- const _hoisted_2$z = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
2305
- const _hoisted_3$r = { class: "tao-split__pane tao-split__pane--end" };
2834
+ const _hoisted_1$C = { class: "tao-split__pane tao-split__pane--start" };
2835
+ const _hoisted_2$y = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
2836
+ const _hoisted_3$q = { class: "tao-split__pane tao-split__pane--end" };
2306
2837
  const _hoisted_4$n = {
2307
2838
  key: 0,
2308
2839
  class: "tao-split__shield"
@@ -2604,7 +3135,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
2604
3135
  ]]),
2605
3136
  style: normalizeStyle({ "--tao-split-start": `${startPx.value}px` })
2606
3137
  }, [
2607
- createElementVNode("div", _hoisted_1$D, [
3138
+ createElementVNode("div", _hoisted_1$C, [
2608
3139
  renderSlot(_ctx.$slots, "start", {}, void 0, true)
2609
3140
  ]),
2610
3141
  createElementVNode("div", {
@@ -2627,8 +3158,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
2627
3158
  onKeydown,
2628
3159
  onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
2629
3160
  }, ["prevent"]))
2630
- }, null, 40, _hoisted_2$z),
2631
- createElementVNode("div", _hoisted_3$r, [
3161
+ }, null, 40, _hoisted_2$y),
3162
+ createElementVNode("div", _hoisted_3$q, [
2632
3163
  renderSlot(_ctx.$slots, "end", {}, void 0, true)
2633
3164
  ]),
2634
3165
  isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$n)) : createCommentVNode("", true)
@@ -2637,7 +3168,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
2637
3168
  }
2638
3169
  });
2639
3170
  const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f34ab385"]]);
2640
- const _hoisted_1$C = { class: "tao-icon" };
3171
+ const _hoisted_1$B = { class: "tao-icon" };
2641
3172
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
2642
3173
  ...{ name: "TaoIcon" },
2643
3174
  __name: "TaoIcon",
@@ -2653,7 +3184,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
2653
3184
  }));
2654
3185
  const props = __props;
2655
3186
  return (_ctx, _cache) => {
2656
- return openBlock(), createElementBlock("span", _hoisted_1$C, [
3187
+ return openBlock(), createElementBlock("span", _hoisted_1$B, [
2657
3188
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
2658
3189
  createElementVNode("i", {
2659
3190
  class: normalizeClass(["tao-icon__value", [`icon-${props.name}`, { "tao-icon__value--invert": props.invert }]]),
@@ -2727,9 +3258,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2727
3258
  }
2728
3259
  });
2729
3260
  const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-49a9f1b2"]]);
2730
- const _hoisted_1$B = { class: "tao-image" };
2731
- const _hoisted_2$y = ["src", "alt", "loading"];
2732
- const _hoisted_3$q = { class: "tao-image__placeholder" };
3261
+ const _hoisted_1$A = { class: "tao-image" };
3262
+ const _hoisted_2$x = ["src", "alt", "loading"];
3263
+ const _hoisted_3$p = { class: "tao-image__placeholder" };
2733
3264
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
2734
3265
  ...{ name: "TaoImage" },
2735
3266
  __name: "TaoImage",
@@ -2761,7 +3292,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
2761
3292
  hasError.value = false;
2762
3293
  });
2763
3294
  return (_ctx, _cache) => {
2764
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
3295
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
2765
3296
  __props.src && !hasError.value ? (openBlock(), createElementBlock("img", {
2766
3297
  key: 0,
2767
3298
  class: normalizeClass({ "tao-image__img--hidden": !isLoaded.value, "tao-image__img--pixelated": props.pixelated }),
@@ -2772,18 +3303,18 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
2772
3303
  draggable: "false",
2773
3304
  onLoad: handleLoad,
2774
3305
  onError: handleError
2775
- }, null, 42, _hoisted_2$y)) : createCommentVNode("", true),
3306
+ }, null, 42, _hoisted_2$x)) : createCommentVNode("", true),
2776
3307
  !__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
2777
- createElementVNode("div", _hoisted_3$q, toDisplayString(__props.placeholderText), 1)
3308
+ createElementVNode("div", _hoisted_3$p, toDisplayString(__props.placeholderText), 1)
2778
3309
  ], true, 1) : createCommentVNode("", true)
2779
3310
  ]);
2780
3311
  };
2781
3312
  }
2782
3313
  });
2783
3314
  const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-61f47c52"]]);
2784
- const _hoisted_1$A = ["for"];
2785
- const _hoisted_2$x = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
2786
- const _hoisted_3$p = {
3315
+ const _hoisted_1$z = ["for"];
3316
+ const _hoisted_2$w = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
3317
+ const _hoisted_3$o = {
2787
3318
  key: 0,
2788
3319
  class: "tao-checkbox__label"
2789
3320
  };
@@ -2869,23 +3400,23 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2869
3400
  "aria-invalid": invalid.value || void 0,
2870
3401
  "aria-describedby": describedBy.value,
2871
3402
  onChange: onInputChange
2872
- }, null, 40, _hoisted_2$x),
3403
+ }, null, 40, _hoisted_2$w),
2873
3404
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
2874
- __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, [
3405
+ __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, [
2875
3406
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
2876
3407
  ])),
2877
3408
  renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
2878
- ], 10, _hoisted_1$A);
3409
+ ], 10, _hoisted_1$z);
2879
3410
  };
2880
3411
  }
2881
3412
  });
2882
3413
  const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-13f6cd33"]]);
2883
- const _hoisted_1$z = {
3414
+ const _hoisted_1$y = {
2884
3415
  key: 0,
2885
3416
  class: "tao-tag__prefix"
2886
3417
  };
2887
- const _hoisted_2$w = { class: "tao-tag__text" };
2888
- const _hoisted_3$o = ["aria-label"];
3418
+ const _hoisted_2$v = { class: "tao-tag__text" };
3419
+ const _hoisted_3$n = ["aria-label"];
2889
3420
  const _hoisted_4$l = { "aria-hidden": "true" };
2890
3421
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
2891
3422
  ...{ name: "TaoTag" },
@@ -2939,10 +3470,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
2939
3470
  ]]),
2940
3471
  style: normalizeStyle(style.value)
2941
3472
  }, [
2942
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$z, [
3473
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_1$y, [
2943
3474
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
2944
3475
  ])) : createCommentVNode("", true),
2945
- createElementVNode("span", _hoisted_2$w, [
3476
+ createElementVNode("span", _hoisted_2$v, [
2946
3477
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
2947
3478
  ]),
2948
3479
  __props.closable ? (openBlock(), createElementBlock("button", {
@@ -2957,18 +3488,18 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
2957
3488
  _cache[0] || (_cache[0] = createTextVNode("✕", -1))
2958
3489
  ], true)
2959
3490
  ])
2960
- ], 8, _hoisted_3$o)) : createCommentVNode("", true)
3491
+ ], 8, _hoisted_3$n)) : createCommentVNode("", true)
2961
3492
  ], 6);
2962
3493
  };
2963
3494
  }
2964
3495
  });
2965
3496
  const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-ca0b1b42"]]);
2966
- const _hoisted_1$y = ["role", "aria-hidden"];
2967
- const _hoisted_2$v = {
3497
+ const _hoisted_1$x = ["role", "aria-hidden"];
3498
+ const _hoisted_2$u = {
2968
3499
  key: 1,
2969
3500
  class: "tao-divider__text"
2970
3501
  };
2971
- const _hoisted_3$n = {
3502
+ const _hoisted_3$m = {
2972
3503
  key: 2,
2973
3504
  class: "tao-divider__line tao-divider__line--end"
2974
3505
  };
@@ -3006,22 +3537,22 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
3006
3537
  key: 0,
3007
3538
  class: normalizeClass(["tao-divider__line", { "tao-divider__line--start": hasLabel.value }])
3008
3539
  }, null, 2)) : createCommentVNode("", true),
3009
- hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$v, [
3540
+ hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_2$u, [
3010
3541
  renderSlot(_ctx.$slots, "default", {}, () => [
3011
3542
  createTextVNode(toDisplayString(__props.text), 1)
3012
3543
  ], true)
3013
3544
  ])) : createCommentVNode("", true),
3014
- __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$n)) : createCommentVNode("", true)
3015
- ], 10, _hoisted_1$y);
3545
+ __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$m)) : createCommentVNode("", true)
3546
+ ], 10, _hoisted_1$x);
3016
3547
  };
3017
3548
  }
3018
3549
  });
3019
3550
  const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-32544dcc"]]);
3020
- const _hoisted_1$x = {
3551
+ const _hoisted_1$w = {
3021
3552
  key: 0,
3022
3553
  class: "tao-fieldset__legend"
3023
3554
  };
3024
- const _hoisted_2$u = { class: "tao-fieldset__body" };
3555
+ const _hoisted_2$t = { class: "tao-fieldset__body" };
3025
3556
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
3026
3557
  ...{ name: "TaoFieldset" },
3027
3558
  __name: "TaoFieldset",
@@ -3034,12 +3565,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
3034
3565
  return openBlock(), createElementBlock("fieldset", {
3035
3566
  class: normalizeClass(["tao-fieldset", `tao-fieldset--${__props.align}`])
3036
3567
  }, [
3037
- __props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$x, [
3568
+ __props.legend || _ctx.$slots.legend ? (openBlock(), createElementBlock("legend", _hoisted_1$w, [
3038
3569
  renderSlot(_ctx.$slots, "legend", {}, () => [
3039
3570
  createTextVNode(toDisplayString(__props.legend), 1)
3040
3571
  ], true)
3041
3572
  ])) : createCommentVNode("", true),
3042
- createElementVNode("div", _hoisted_2$u, [
3573
+ createElementVNode("div", _hoisted_2$t, [
3043
3574
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
3044
3575
  ])
3045
3576
  ], 2);
@@ -3072,8 +3603,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3072
3603
  }
3073
3604
  });
3074
3605
  const TaoAnimatedBorder = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-c9434028"]]);
3075
- const _hoisted_1$w = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "readonly", "rows", "value", "aria-invalid", "aria-describedby"];
3076
- const _hoisted_2$t = ["id"];
3606
+ const _hoisted_1$v = ["id", "placeholder", "spellcheck", "autocomplete", "minlength", "maxlength", "disabled", "readonly", "rows", "value", "aria-invalid", "aria-describedby"];
3607
+ const _hoisted_2$s = ["id"];
3077
3608
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
3078
3609
  ...{ name: "TaoTextarea" },
3079
3610
  __name: "TaoTextarea",
@@ -3250,19 +3781,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
3250
3781
  onFocus,
3251
3782
  onBlur,
3252
3783
  onKeydown
3253
- }, null, 42, _hoisted_1$w),
3784
+ }, null, 42, _hoisted_1$v),
3254
3785
  __props.count ? (openBlock(), createElementBlock("span", {
3255
3786
  key: 0,
3256
3787
  id: counterId.value,
3257
3788
  class: normalizeClass(["tao-textarea__count", { "tao-textarea__count--limit": atLimit.value }])
3258
- }, toDisplayString(countLabel.value), 11, _hoisted_2$t)) : createCommentVNode("", true)
3789
+ }, toDisplayString(countLabel.value), 11, _hoisted_2$s)) : createCommentVNode("", true)
3259
3790
  ], 2));
3260
3791
  };
3261
3792
  }
3262
3793
  });
3263
3794
  const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-50628dd9"]]);
3264
- const _hoisted_1$v = ["tabindex", "aria-label"];
3265
- const _hoisted_2$s = { class: "tao-scroll-top__content" };
3795
+ const _hoisted_1$u = ["tabindex", "aria-label"];
3796
+ const _hoisted_2$r = { class: "tao-scroll-top__content" };
3266
3797
  const RIPPLE_DURATION = 750;
3267
3798
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
3268
3799
  ...{ name: "TaoScrollTop" },
@@ -3312,7 +3843,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
3312
3843
  const c = getScrollValue();
3313
3844
  if (c > 0) {
3314
3845
  window.requestAnimationFrame(goToTop);
3315
- window.scrollTo(0, c - Math.max(10, c / 8));
3846
+ window.scrollTo({ top: c - Math.max(10, c / 8), left: 0, behavior: "instant" });
3316
3847
  }
3317
3848
  }
3318
3849
  function onScroll() {
@@ -3371,7 +3902,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
3371
3902
  "aria-label": props.ariaLabel,
3372
3903
  onClick: withModifiers(onClick, ["prevent"])
3373
3904
  }, [
3374
- createElementVNode("div", _hoisted_2$s, [
3905
+ createElementVNode("div", _hoisted_2$r, [
3375
3906
  createElementVNode("div", {
3376
3907
  class: normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
3377
3908
  style: normalizeStyle(rippleStyle)
@@ -3388,20 +3919,20 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
3388
3919
  ], -1))
3389
3920
  ], true)
3390
3921
  ])
3391
- ], 14, _hoisted_1$v)) : createCommentVNode("", true)
3922
+ ], 14, _hoisted_1$u)) : createCommentVNode("", true)
3392
3923
  ]),
3393
3924
  _: 3
3394
3925
  });
3395
3926
  };
3396
3927
  }
3397
3928
  });
3398
- const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-9ec6a1a2"]]);
3399
- const _hoisted_1$u = { class: "tao-progress" };
3400
- const _hoisted_2$r = {
3929
+ const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-89d2feaa"]]);
3930
+ const _hoisted_1$t = { class: "tao-progress" };
3931
+ const _hoisted_2$q = {
3401
3932
  key: 0,
3402
3933
  class: "tao-progress__side"
3403
3934
  };
3404
- const _hoisted_3$m = { class: "tao-progress__main" };
3935
+ const _hoisted_3$l = { class: "tao-progress__main" };
3405
3936
  const _hoisted_4$k = {
3406
3937
  key: 0,
3407
3938
  class: "tao-progress__percentage"
@@ -3445,15 +3976,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
3445
3976
  () => hasRight.value ? `(${props.progress}%)` : `${props.progress}%`
3446
3977
  );
3447
3978
  return (_ctx, _cache) => {
3448
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
3979
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
3449
3980
  createElementVNode("div", {
3450
3981
  class: normalizeClass(["tao-progress__container", { "tao-progress__container--over": showOverPercent.value }]),
3451
3982
  style: normalizeStyle({ minWidth: `${minW.value}px`, maxWidth: `${maxW.value}px` })
3452
3983
  }, [
3453
- _ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
3984
+ _ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
3454
3985
  renderSlot(_ctx.$slots, "left", {}, void 0, true)
3455
3986
  ])) : createCommentVNode("", true),
3456
- createElementVNode("div", _hoisted_3$m, [
3987
+ createElementVNode("div", _hoisted_3$l, [
3457
3988
  showOverPercent.value ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString(__props.progress) + "%", 1)) : createCommentVNode("", true),
3458
3989
  createElementVNode("div", {
3459
3990
  class: "tao-progress__track",
@@ -3475,266 +4006,62 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
3475
4006
  }
3476
4007
  });
3477
4008
  const TaoProgress = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-1aae89cd"]]);
3478
- const _hoisted_1$t = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-invalid", "aria-describedby"];
3479
- const _hoisted_2$q = ["placeholder"];
3480
- const _hoisted_3$l = {
3481
- key: 1,
3482
- class: "tao-slider__value"
3483
- };
3484
4009
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
3485
- ...{ name: "TaoSlider" },
3486
- __name: "TaoSlider",
4010
+ ...{ name: "TaoRangeSlider" },
4011
+ __name: "TaoRangeSlider",
3487
4012
  props: {
3488
- min: { default: 0 },
3489
- max: { default: 100 },
3490
- step: { default: 1 },
3491
- showValue: { type: Boolean, default: false },
3492
- placeholder: { default: "" },
3493
- modelValue: {},
3494
- disabled: { type: Boolean, default: false },
3495
- error: { type: Boolean, default: false },
3496
- variant: { default: "bar" },
4013
+ min: {},
4014
+ max: {},
4015
+ step: {},
4016
+ minGap: {},
4017
+ showValue: { type: Boolean },
4018
+ marks: { type: [Boolean, Array] },
4019
+ marksSide: {},
4020
+ discrete: { type: Boolean },
4021
+ format: { type: Function },
4022
+ flat: { type: Boolean },
4023
+ vertical: { type: Boolean },
4024
+ disabled: { type: Boolean },
4025
+ error: { type: Boolean },
4026
+ variant: {},
3497
4027
  size: {},
3498
- wheel: { default: 0 }
4028
+ wheel: {},
4029
+ modelValue: {}
3499
4030
  },
3500
4031
  emits: ["update:modelValue", "change"],
3501
4032
  setup(__props, { emit: __emit }) {
3502
4033
  const props = __props;
3503
4034
  const emit = __emit;
3504
- const field = inject(formFieldKey, null);
3505
- const localId = useId();
3506
- const controlId = computed(() => (field == null ? void 0 : field.id) ?? localId);
3507
- const describedBy = computed(() => field == null ? void 0 : field.describedBy.value);
3508
- const invalid = computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
3509
- function packModelValue(value) {
3510
- return typeof props.modelValue === "string" ? `${value}` : value;
3511
- }
3512
- function unpackModelValue() {
3513
- const raw = typeof props.modelValue === "string" ? parseFloat(props.modelValue) : props.modelValue;
3514
- return Number.isFinite(raw) ? raw : props.min;
3515
- }
3516
- const current2 = computed(() => unpackModelValue());
3517
- const trackRef = ref(null);
3518
- const isDragging = ref(false);
3519
- let dragPointer = -1;
3520
- let dragStartValue = 0;
3521
- const shadowInputRef = ref(null);
3522
- const shadowModel = ref("0");
3523
- const showShadowModel = ref(false);
3524
- const progressPercent = computed(() => {
3525
- const range = props.max - props.min;
3526
- if (range <= 0) {
3527
- return 0;
3528
- }
3529
- return (current2.value - props.min) / range * 100;
3530
- });
3531
- function clampValue(v) {
3532
- return Math.min(Math.max(v, props.min), props.max);
3533
- }
3534
- function commit(value, final = false) {
3535
- const next = clampValue(value);
3536
- const changed = next !== current2.value;
3537
- emit("update:modelValue", packModelValue(next));
3538
- if (final && changed) {
3539
- emit("change", packModelValue(next));
3540
- }
3541
- }
3542
- function calculateValue(event) {
3543
- if (!trackRef.value) {
3544
- return props.min;
3545
- }
3546
- const rect = trackRef.value.getBoundingClientRect();
3547
- const x = Math.min(Math.max(event.clientX - rect.left, 0), rect.width);
3548
- const ratio = rect.width ? x / rect.width : 0;
3549
- const v = props.min + ratio * (props.max - props.min);
3550
- return clampValue(Math.round((v - props.min) / props.step) * props.step + props.min);
3551
- }
3552
- function releaseDragCapture() {
3553
- const el = trackRef.value;
3554
- const id = dragPointer;
3555
- if (!el || id === -1) {
3556
- return;
3557
- }
3558
- if (typeof el.hasPointerCapture === "function" && !el.hasPointerCapture(id)) {
3559
- return;
3560
- }
3561
- try {
3562
- el.releasePointerCapture(id);
3563
- } catch {
3564
- }
3565
- }
3566
- function endDrag() {
3567
- if (!isDragging.value) {
3568
- return;
3569
- }
3570
- isDragging.value = false;
3571
- releaseDragCapture();
3572
- dragPointer = -1;
3573
- if (current2.value !== dragStartValue) {
3574
- emit("change", packModelValue(current2.value));
3575
- }
3576
- }
3577
- function onPointerDown(event) {
3578
- if (props.disabled || showShadowModel.value || event.button !== 0 || !trackRef.value) {
3579
- return;
3580
- }
3581
- dragPointer = event.pointerId;
3582
- dragStartValue = current2.value;
3583
- isDragging.value = true;
3584
- commit(calculateValue(event));
3585
- event.preventDefault();
3586
- try {
3587
- trackRef.value.setPointerCapture(event.pointerId);
3588
- } catch {
3589
- }
3590
- }
3591
- function onPointerMove(event) {
3592
- if (!isDragging.value || event.pointerId !== dragPointer) {
3593
- return;
3594
- }
3595
- commit(calculateValue(event));
3596
- }
3597
- function onPointerEnd(event) {
3598
- if (!isDragging.value) {
3599
- return;
3600
- }
3601
- if (dragPointer !== -1 && event.pointerId !== dragPointer) {
3602
- return;
3603
- }
3604
- endDrag();
3605
- }
3606
- function onLostPointerCapture() {
3607
- endDrag();
3608
- }
3609
- function onKeydown(event) {
3610
- if (props.disabled || showShadowModel.value) {
3611
- return;
3612
- }
3613
- const keys = {
3614
- ArrowLeft: -props.step,
3615
- ArrowDown: -props.step,
3616
- ArrowRight: props.step,
3617
- ArrowUp: props.step,
3618
- PageDown: -props.step * 10,
3619
- PageUp: props.step * 10
3620
- };
3621
- if (event.key in keys) {
3622
- event.preventDefault();
3623
- commit(current2.value + keys[event.key], true);
3624
- return;
3625
- }
3626
- if (event.key === "Home") {
3627
- event.preventDefault();
3628
- commit(props.min, true);
3629
- return;
3630
- }
3631
- if (event.key === "End") {
3632
- event.preventDefault();
3633
- commit(props.max, true);
3634
- }
3635
- }
3636
- function onWheel(event) {
3637
- if (props.disabled || props.wheel <= 0 || showShadowModel.value) {
3638
- return;
3639
- }
3640
- event.preventDefault();
3641
- const delta = event.deltaY < 0 ? props.wheel : -props.wheel;
3642
- commit(current2.value + delta, true);
3643
- }
3644
- function onBlurShadowModel() {
3645
- if (shadowModel.value) {
3646
- const next = clampValue(parseFloat(shadowModel.value) || 0);
3647
- shadowModel.value = `${packModelValue(next)}`;
3648
- commit(next, true);
3649
- }
3650
- showShadowModel.value = false;
3651
- }
3652
- function onShadowKeydown(event) {
3653
- var _a;
3654
- if (event.key === "Enter") {
3655
- (_a = shadowInputRef.value) == null ? void 0 : _a.blur();
3656
- }
3657
- }
3658
- function onContextMenu() {
3659
- if (props.disabled || !props.showValue) {
3660
- return;
3661
- }
3662
- shadowModel.value = `${props.modelValue}`;
3663
- showShadowModel.value = true;
3664
- requestAnimationFrame(() => {
3665
- var _a;
3666
- return (_a = shadowInputRef.value) == null ? void 0 : _a.focus();
3667
- });
3668
- }
3669
- let stopFocusLoss;
3670
- onMounted(() => {
3671
- stopFocusLoss = listenFocusLoss(endDrag);
3672
- });
3673
- onBeforeUnmount(() => {
3674
- endDrag();
3675
- stopFocusLoss == null ? void 0 : stopFocusLoss();
3676
- });
3677
4035
  return (_ctx, _cache) => {
3678
- return openBlock(), createElementBlock("div", {
3679
- id: controlId.value,
3680
- ref_key: "trackRef",
3681
- ref: trackRef,
3682
- class: normalizeClass(["tao-slider", [
3683
- `tao-slider--${__props.variant}`,
3684
- unref(sizeClass)(__props.size),
3685
- { "tao-slider--show-value": __props.showValue, "tao-slider--disabled": __props.disabled, "tao-slider--invalid": invalid.value }
3686
- ]]),
3687
- role: "slider",
3688
- tabindex: __props.disabled ? -1 : 0,
3689
- "aria-valuemin": __props.min,
3690
- "aria-valuemax": __props.max,
3691
- "aria-valuenow": current2.value,
3692
- "aria-disabled": __props.disabled || void 0,
3693
- "aria-invalid": invalid.value || void 0,
3694
- "aria-describedby": describedBy.value,
3695
- onContextmenu: withModifiers(onContextMenu, ["prevent"]),
3696
- onPointerdown: onPointerDown,
3697
- onPointermove: onPointerMove,
3698
- onPointerup: onPointerEnd,
3699
- onPointercancel: onPointerEnd,
3700
- onLostpointercapture: onLostPointerCapture,
3701
- onKeydown,
3702
- onWheel
3703
- }, [
3704
- _cache[2] || (_cache[2] = createElementVNode("div", { class: "tao-slider__track" }, null, -1)),
3705
- createElementVNode("div", {
3706
- class: "tao-slider__fill",
3707
- style: normalizeStyle({ width: `${progressPercent.value}%` })
3708
- }, null, 4),
3709
- createElementVNode("div", {
3710
- class: "tao-slider__thumb",
3711
- style: normalizeStyle({ left: `${progressPercent.value}%` })
3712
- }, null, 4),
3713
- showShadowModel.value ? withDirectives((openBlock(), createElementBlock("input", {
3714
- key: 0,
3715
- ref_key: "shadowInputRef",
3716
- ref: shadowInputRef,
3717
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => shadowModel.value = $event),
3718
- type: "number",
3719
- inputmode: "numeric",
3720
- placeholder: __props.placeholder,
3721
- class: "tao-slider__shadow-input",
3722
- onBlur: onBlurShadowModel,
3723
- onKeydown: onShadowKeydown,
3724
- onPointerdown: _cache[1] || (_cache[1] = withModifiers(() => {
3725
- }, ["stop"]))
3726
- }, null, 40, _hoisted_2$q)), [
3727
- [vModelText, shadowModel.value]
3728
- ]) : __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$l, [
3729
- renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
3730
- createTextVNode(toDisplayString(__props.modelValue), 1),
3731
- renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
3732
- ])) : createCommentVNode("", true)
3733
- ], 42, _hoisted_1$t);
4036
+ return openBlock(), createBlock(TaoSliderBase, mergeProps(props, {
4037
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
4038
+ onChange: _cache[1] || (_cache[1] = ($event) => emit("change", $event))
4039
+ }), createSlots({ _: 2 }, [
4040
+ _ctx.$slots.mark ? {
4041
+ name: "mark",
4042
+ fn: withCtx((slot) => [
4043
+ renderSlot(_ctx.$slots, "mark", normalizeProps(guardReactiveProps(slot)))
4044
+ ]),
4045
+ key: "0"
4046
+ } : void 0,
4047
+ _ctx.$slots["pre-value"] ? {
4048
+ name: "pre-value",
4049
+ fn: withCtx(() => [
4050
+ renderSlot(_ctx.$slots, "pre-value")
4051
+ ]),
4052
+ key: "1"
4053
+ } : void 0,
4054
+ _ctx.$slots["post-value"] ? {
4055
+ name: "post-value",
4056
+ fn: withCtx(() => [
4057
+ renderSlot(_ctx.$slots, "post-value")
4058
+ ]),
4059
+ key: "2"
4060
+ } : void 0
4061
+ ]), 1040);
3734
4062
  };
3735
4063
  }
3736
4064
  });
3737
- const TaoSlider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-47d32e2a"]]);
3738
4065
  const _hoisted_1$s = { class: "tao-file-drop__row" };
3739
4066
  const _hoisted_2$p = ["aria-label"];
3740
4067
  const _hoisted_3$k = { "aria-hidden": "true" };
@@ -9416,6 +9743,7 @@ const components = [
9416
9743
  TaoCard,
9417
9744
  TaoModal,
9418
9745
  TaoTabs,
9746
+ TaoTimeline,
9419
9747
  TaoTooltip,
9420
9748
  TaoPopover,
9421
9749
  TaoSpoiler,
@@ -9438,7 +9766,8 @@ const components = [
9438
9766
  TaoTextarea,
9439
9767
  TaoScrollTop,
9440
9768
  TaoProgress,
9441
- TaoSlider,
9769
+ _sfc_main$S,
9770
+ _sfc_main$u,
9442
9771
  TaoFileDrop,
9443
9772
  TaoDropdownMenu,
9444
9773
  TaoPinCode,
@@ -9523,12 +9852,13 @@ export {
9523
9852
  TaoQuantity,
9524
9853
  TaoRadio,
9525
9854
  TaoRadioGroup,
9855
+ _sfc_main$u as TaoRangeSlider,
9526
9856
  TaoScrollTop,
9527
9857
  TaoSegmented,
9528
9858
  TaoSegmentedOption,
9529
9859
  TaoSelect,
9530
9860
  TaoSkeleton,
9531
- TaoSlider,
9861
+ _sfc_main$S as TaoSlider,
9532
9862
  TaoSpace,
9533
9863
  TaoSplit,
9534
9864
  TaoSpoiler,
@@ -9539,6 +9869,7 @@ export {
9539
9869
  TaoTabs,
9540
9870
  TaoTag,
9541
9871
  TaoTextarea,
9872
+ TaoTimeline,
9542
9873
  TaoToastViewport,
9543
9874
  TaoTooltip,
9544
9875
  TaoUI,