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