@1337exp/taoui 3.4.1 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -37,11 +37,15 @@
37
37
  disabled: { type: Boolean, default: false },
38
38
  loading: { type: Boolean, default: false },
39
39
  block: { type: Boolean, default: false },
40
- icon: { default: "" }
40
+ icon: { default: "" },
41
+ minWidth: { default: void 0 }
41
42
  },
42
43
  emits: ["click"],
43
44
  setup(__props, { emit: __emit }) {
44
45
  const props = __props;
46
+ const minWidthStyle = vue.computed(
47
+ () => props.minWidth === void 0 ? void 0 : { "--tao-button-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
48
+ );
45
49
  const emit = __emit;
46
50
  function handleClick(event) {
47
51
  if (!props.disabled && !props.loading) {
@@ -61,6 +65,7 @@
61
65
  [`tao-button--tone-${__props.tone}`]: !!__props.tone
62
66
  }
63
67
  ]]),
68
+ style: vue.normalizeStyle(minWidthStyle.value),
64
69
  type: __props.type,
65
70
  disabled: __props.disabled || __props.loading,
66
71
  onClick: handleClick
@@ -70,7 +75,7 @@
70
75
  vue.createElementVNode("span", _hoisted_4$x, [
71
76
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
72
77
  ])
73
- ], 10, _hoisted_1$S);
78
+ ], 14, _hoisted_1$S);
74
79
  };
75
80
  }
76
81
  });
@@ -81,7 +86,7 @@
81
86
  }
82
87
  return target;
83
88
  };
84
- const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2e564683"]]);
89
+ const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2b4000a6"]]);
85
90
  function toCssLength(value) {
86
91
  if (value === void 0 || value === null || value === "") {
87
92
  return void 0;
@@ -304,98 +309,98 @@
304
309
  }
305
310
  });
306
311
  const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-55b2d297"]]);
307
- const localeRu = {
308
- code: "ru-RU",
309
- alert: { closeLabel: "Закрыть" },
312
+ const localeEn = {
313
+ code: "en-US",
314
+ alert: { closeLabel: "Close" },
310
315
  avatar: {
311
- fallbackLabel: "Аватар",
312
- notificationsLabel: "{count} уведомлений",
316
+ fallbackLabel: "Avatar",
317
+ notificationsLabel: "{count} notifications",
313
318
  dotLabels: {
314
- success: "в сети",
315
- danger: "занят",
316
- warning: "отошёл",
317
- info: "статус",
318
- neutral: "не в сети"
319
+ success: "online",
320
+ danger: "busy",
321
+ warning: "away",
322
+ info: "status",
323
+ neutral: "offline"
319
324
  }
320
325
  },
321
- breadcrumb: { ariaLabel: "Хлебные крошки" },
326
+ breadcrumb: { ariaLabel: "Breadcrumb" },
322
327
  carousel: {
323
- ariaLabel: "Лента",
324
- prevLabel: "Назад",
325
- nextLabel: "Вперёд",
326
- dotsLabel: "Слайды",
327
- slideLabel: "Слайд {n} из {count}"
328
+ ariaLabel: "Carousel",
329
+ prevLabel: "Previous",
330
+ nextLabel: "Next",
331
+ dotsLabel: "Slides",
332
+ slideLabel: "Slide {n} of {count}"
328
333
  },
329
334
  combobox: {
330
- placeholder: "Начните вводить",
331
- emptyText: "Ничего не найдено",
332
- clearText: "Очистить",
333
- createText: "Добавить «{text}»"
335
+ placeholder: "Start typing",
336
+ emptyText: "Nothing found",
337
+ clearText: "Clear",
338
+ createText: "Add “{text}”"
334
339
  },
335
- confirm: { ok: "ОК", cancel: "Отмена" },
336
- copy: { copyLabel: "Копировать", successText: "Скопировано!" },
340
+ confirm: { ok: "OK", cancel: "Cancel" },
341
+ copy: { copyLabel: "Copy", successText: "Copied!" },
337
342
  date: {
338
- placeholder: "Дата",
339
- todayText: "Сегодня",
340
- clearText: "Очистить",
341
- prevMonthLabel: "Предыдущий месяц",
342
- nextMonthLabel: "Следующий месяц"
343
+ placeholder: "Date",
344
+ todayText: "Today",
345
+ clearText: "Clear",
346
+ prevMonthLabel: "Previous month",
347
+ nextMonthLabel: "Next month"
343
348
  },
344
349
  dateRange: {
345
- placeholder: "Период",
346
- todayText: "Сегодня",
347
- clearText: "Очистить",
348
- prevMonthLabel: "Предыдущий месяц",
349
- nextMonthLabel: "Следующий месяц"
350
+ placeholder: "Period",
351
+ todayText: "Today",
352
+ clearText: "Clear",
353
+ prevMonthLabel: "Previous month",
354
+ nextMonthLabel: "Next month"
350
355
  },
351
- drawer: { closeLabel: "Закрыть" },
352
- dropdownMenu: { menuLabel: "Меню" },
353
- empty: { title: "Ничего нет" },
356
+ drawer: { closeLabel: "Close" },
357
+ dropdownMenu: { menuLabel: "Menu" },
358
+ empty: { title: "Nothing here" },
354
359
  fileDrop: {
355
- clearLabel: "Очистить файлы",
356
- removeLabel: "Убрать «{name}»",
357
- zoneText: "Перетащите файл сюда или нажмите, чтобы выбрать",
358
- units: ["Б", "КБ", "МБ"],
359
- decimalSeparator: ","
360
+ clearLabel: "Clear files",
361
+ removeLabel: "Remove “{name}”",
362
+ zoneText: "Drop a file here or click to choose",
363
+ units: ["B", "KB", "MB"],
364
+ decimalSeparator: "."
360
365
  },
361
- inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
362
- list: { emptyText: "Ничего нет" },
363
- modal: { closeLabel: "Закрыть" },
366
+ inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
367
+ list: { emptyText: "Nothing here" },
368
+ modal: { closeLabel: "Close" },
364
369
  pagination: {
365
- ariaLabel: "Пагинация",
366
- prevLabel: "Назад",
367
- nextLabel: "Вперёд",
368
- pageLabel: "Страница {page}",
369
- jumpPrevLabel: "Назад на {n} страниц",
370
- jumpNextLabel: "Вперёд на {n} страниц",
371
- totalText: "{from}–{to} из {total}",
372
- emptyTotalText: "0 из 0"
370
+ ariaLabel: "Pagination",
371
+ prevLabel: "Previous",
372
+ nextLabel: "Next",
373
+ pageLabel: "Page {page}",
374
+ jumpPrevLabel: "Back {n} pages",
375
+ jumpNextLabel: "Forward {n} pages",
376
+ totalText: "{from}–{to} of {total}",
377
+ emptyTotalText: "0 of 0"
373
378
  },
374
- quantity: { decrementLabel: "Уменьшить", removeLabel: "Убрать", incrementLabel: "Увеличить" },
375
- scrollTop: { ariaLabel: "Наверх" },
376
- select: { placeholder: "Выберите", clearText: "Очистить" },
379
+ quantity: { decrementLabel: "Decrease", removeLabel: "Remove", incrementLabel: "Increase" },
380
+ scrollTop: { ariaLabel: "Back to top" },
381
+ select: { placeholder: "Select", clearText: "Clear" },
377
382
  stages: {
378
- ariaLabel: "Стадии",
379
- statusLabels: { wait: "ожидание", work: "в работе", ok: "готово", bad: "ошибка" }
383
+ ariaLabel: "Stages",
384
+ statusLabels: { wait: "pending", work: "in progress", ok: "done", bad: "failed" }
380
385
  },
381
- table: { emptyText: "Нет данных" },
382
- tag: { closeLabel: "Убрать" },
386
+ table: { emptyText: "No data" },
387
+ tag: { closeLabel: "Remove" },
383
388
  colorPicker: {
384
- areaLabel: "Насыщенность и яркость",
385
- hueLabel: "Оттенок",
386
- alphaLabel: "Прозрачность",
387
- hexLabel: "Цвет в hex",
388
- modeLabel: "Способ ввода",
389
- swatchesLabel: "Образцы",
390
- eyedropperLabel: "Пипетка",
391
- chooseLabel: "Выбрать цвет"
389
+ areaLabel: "Saturation and brightness",
390
+ hueLabel: "Hue",
391
+ alphaLabel: "Opacity",
392
+ hexLabel: "Color in hex",
393
+ modeLabel: "Input mode",
394
+ swatchesLabel: "Swatches",
395
+ eyedropperLabel: "Eyedropper",
396
+ chooseLabel: "Choose color"
392
397
  },
393
- timeline: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
394
- toast: { closeLabel: "Закрыть уведомление" }
398
+ timeline: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
399
+ toast: { closeLabel: "Close notification" }
395
400
  };
396
401
  const confirmDefaults = {
397
- ok: localeRu.confirm.ok,
398
- cancel: localeRu.confirm.cancel,
402
+ ok: localeEn.confirm.ok,
403
+ cancel: localeEn.confirm.cancel,
399
404
  surface: "glass"
400
405
  };
401
406
  const currentConfirm = vue.ref(null);
@@ -452,7 +457,7 @@
452
457
  timeout: 3e3,
453
458
  closable: true,
454
459
  progress: true,
455
- closeLabel: localeRu.toast.closeLabel,
460
+ closeLabel: localeEn.toast.closeLabel,
456
461
  surface: "glass"
457
462
  };
458
463
  const toasts = vue.ref([]);
@@ -518,96 +523,96 @@
518
523
  }
519
524
  return Boolean(document.querySelector("[data-tao-toast-viewport]"));
520
525
  }
521
- const localeEn = {
522
- code: "en-US",
523
- alert: { closeLabel: "Close" },
526
+ const localeRu = {
527
+ code: "ru-RU",
528
+ alert: { closeLabel: "Закрыть" },
524
529
  avatar: {
525
- fallbackLabel: "Avatar",
526
- notificationsLabel: "{count} notifications",
530
+ fallbackLabel: "Аватар",
531
+ notificationsLabel: "{count} уведомлений",
527
532
  dotLabels: {
528
- success: "online",
529
- danger: "busy",
530
- warning: "away",
531
- info: "status",
532
- neutral: "offline"
533
+ success: "в сети",
534
+ danger: "занят",
535
+ warning: "отошёл",
536
+ info: "статус",
537
+ neutral: "не в сети"
533
538
  }
534
539
  },
535
- breadcrumb: { ariaLabel: "Breadcrumb" },
540
+ breadcrumb: { ariaLabel: "Хлебные крошки" },
536
541
  carousel: {
537
- ariaLabel: "Carousel",
538
- prevLabel: "Previous",
539
- nextLabel: "Next",
540
- dotsLabel: "Slides",
541
- slideLabel: "Slide {n} of {count}"
542
+ ariaLabel: "Лента",
543
+ prevLabel: "Назад",
544
+ nextLabel: "Вперёд",
545
+ dotsLabel: "Слайды",
546
+ slideLabel: "Слайд {n} из {count}"
542
547
  },
543
548
  combobox: {
544
- placeholder: "Start typing",
545
- emptyText: "Nothing found",
546
- clearText: "Clear",
547
- createText: "Add “{text}”"
549
+ placeholder: "Начните вводить",
550
+ emptyText: "Ничего не найдено",
551
+ clearText: "Очистить",
552
+ createText: "Добавить «{text}»"
548
553
  },
549
- confirm: { ok: "OK", cancel: "Cancel" },
550
- copy: { copyLabel: "Copy", successText: "Copied!" },
554
+ confirm: { ok: "ОК", cancel: "Отмена" },
555
+ copy: { copyLabel: "Копировать", successText: "Скопировано!" },
551
556
  date: {
552
- placeholder: "Date",
553
- todayText: "Today",
554
- clearText: "Clear",
555
- prevMonthLabel: "Previous month",
556
- nextMonthLabel: "Next month"
557
+ placeholder: "Дата",
558
+ todayText: "Сегодня",
559
+ clearText: "Очистить",
560
+ prevMonthLabel: "Предыдущий месяц",
561
+ nextMonthLabel: "Следующий месяц"
557
562
  },
558
563
  dateRange: {
559
- placeholder: "Period",
560
- todayText: "Today",
561
- clearText: "Clear",
562
- prevMonthLabel: "Previous month",
563
- nextMonthLabel: "Next month"
564
+ placeholder: "Период",
565
+ todayText: "Сегодня",
566
+ clearText: "Очистить",
567
+ prevMonthLabel: "Предыдущий месяц",
568
+ nextMonthLabel: "Следующий месяц"
564
569
  },
565
- drawer: { closeLabel: "Close" },
566
- dropdownMenu: { menuLabel: "Menu" },
567
- empty: { title: "Nothing here" },
570
+ drawer: { closeLabel: "Закрыть" },
571
+ dropdownMenu: { menuLabel: "Меню" },
572
+ empty: { title: "Ничего нет" },
568
573
  fileDrop: {
569
- clearLabel: "Clear files",
570
- removeLabel: "Remove “{name}”",
571
- zoneText: "Drop a file here or click to choose",
572
- units: ["B", "KB", "MB"],
573
- decimalSeparator: "."
574
+ clearLabel: "Очистить файлы",
575
+ removeLabel: "Убрать «{name}»",
576
+ zoneText: "Перетащите файл сюда или нажмите, чтобы выбрать",
577
+ units: ["Б", "КБ", "МБ"],
578
+ decimalSeparator: ","
574
579
  },
575
- inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
576
- list: { emptyText: "Nothing here" },
577
- modal: { closeLabel: "Close" },
580
+ inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
581
+ list: { emptyText: "Ничего нет" },
582
+ modal: { closeLabel: "Закрыть" },
578
583
  pagination: {
579
- ariaLabel: "Pagination",
580
- prevLabel: "Previous",
581
- nextLabel: "Next",
582
- pageLabel: "Page {page}",
583
- jumpPrevLabel: "Back {n} pages",
584
- jumpNextLabel: "Forward {n} pages",
585
- totalText: "{from}–{to} of {total}",
586
- emptyTotalText: "0 of 0"
584
+ ariaLabel: "Пагинация",
585
+ prevLabel: "Назад",
586
+ nextLabel: "Вперёд",
587
+ pageLabel: "Страница {page}",
588
+ jumpPrevLabel: "Назад на {n} страниц",
589
+ jumpNextLabel: "Вперёд на {n} страниц",
590
+ totalText: "{from}–{to} из {total}",
591
+ emptyTotalText: "0 из 0"
587
592
  },
588
- quantity: { decrementLabel: "Decrease", removeLabel: "Remove", incrementLabel: "Increase" },
589
- scrollTop: { ariaLabel: "Back to top" },
590
- select: { placeholder: "Select", clearText: "Clear" },
593
+ quantity: { decrementLabel: "Уменьшить", removeLabel: "Убрать", incrementLabel: "Увеличить" },
594
+ scrollTop: { ariaLabel: "Наверх" },
595
+ select: { placeholder: "Выберите", clearText: "Очистить" },
591
596
  stages: {
592
- ariaLabel: "Stages",
593
- statusLabels: { wait: "pending", work: "in progress", ok: "done", bad: "failed" }
597
+ ariaLabel: "Стадии",
598
+ statusLabels: { wait: "ожидание", work: "в работе", ok: "готово", bad: "ошибка" }
594
599
  },
595
- table: { emptyText: "No data" },
596
- tag: { closeLabel: "Remove" },
600
+ table: { emptyText: "Нет данных" },
601
+ tag: { closeLabel: "Убрать" },
597
602
  colorPicker: {
598
- areaLabel: "Saturation and brightness",
599
- hueLabel: "Hue",
600
- alphaLabel: "Opacity",
601
- hexLabel: "Color in hex",
602
- modeLabel: "Input mode",
603
- swatchesLabel: "Swatches",
604
- eyedropperLabel: "Eyedropper",
605
- chooseLabel: "Choose color"
603
+ areaLabel: "Насыщенность и яркость",
604
+ hueLabel: "Оттенок",
605
+ alphaLabel: "Прозрачность",
606
+ hexLabel: "Цвет в hex",
607
+ modeLabel: "Способ ввода",
608
+ swatchesLabel: "Образцы",
609
+ eyedropperLabel: "Пипетка",
610
+ chooseLabel: "Выбрать цвет"
606
611
  },
607
- timeline: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
608
- toast: { closeLabel: "Close notification" }
612
+ timeline: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
613
+ toast: { closeLabel: "Закрыть уведомление" }
609
614
  };
610
- const current = vue.shallowRef(localeRu);
615
+ const current = vue.shallowRef(localeEn);
611
616
  function taoLocale() {
612
617
  return current.value;
613
618
  }
@@ -626,7 +631,7 @@
626
631
  }
627
632
  return out;
628
633
  }
629
- function setTaoLocale(locale, base = localeRu) {
634
+ function setTaoLocale(locale, base = localeEn) {
630
635
  current.value = merge(base, locale);
631
636
  configureToastDefaults({ closeLabel: current.value.toast.closeLabel });
632
637
  configureConfirmDefaults({ ok: current.value.confirm.ok, cancel: current.value.confirm.cancel });
@@ -3829,11 +3834,10 @@
3829
3834
  const _hoisted_1$w = ["tabindex", "aria-label"];
3830
3835
  const _hoisted_2$t = { class: "tao-scroll-top__content" };
3831
3836
  const _hoisted_3$p = {
3832
- key: 1,
3837
+ key: 0,
3833
3838
  class: "tao-scroll-top__text",
3834
3839
  "aria-hidden": "true"
3835
3840
  };
3836
- const RIPPLE_DURATION = 750;
3837
3841
  const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
3838
3842
  ...{ name: "TaoScrollTop", inheritAttrs: false },
3839
3843
  __name: "TaoScrollTop",
@@ -3872,14 +3876,7 @@
3872
3876
  const captionSide = vue.computed(() => props.labelSide ?? (props.side === "right" ? "left" : "right"));
3873
3877
  const caption = vue.computed(() => props.label ?? (isText.value ? l10n.value.ariaLabel : void 0));
3874
3878
  const accessibleName = vue.computed(() => props.ariaLabel || props.label || l10n.value.ariaLabel);
3875
- const rippleStyle = vue.reactive({
3876
- top: fmtProp(-1 * props.size),
3877
- left: fmtProp(-1 * props.size),
3878
- width: "200%",
3879
- height: "200%"
3880
- });
3881
3879
  const isActive = vue.ref(false);
3882
- const isRippleActive = vue.ref(false);
3883
3880
  function getScrollValue() {
3884
3881
  if (typeof window.pageYOffset !== "undefined") {
3885
3882
  return window.pageYOffset;
@@ -3913,23 +3910,6 @@
3913
3910
  prevPos = pY;
3914
3911
  isActive.value = tooFar && activeBack;
3915
3912
  }
3916
- function onClick(e) {
3917
- if (!isText.value && !isRippleActive.value) {
3918
- const elTarget = e.currentTarget;
3919
- if (elTarget) {
3920
- const rect = elTarget.getBoundingClientRect();
3921
- const top = e.clientY - rect.top;
3922
- const left = e.clientX - rect.left;
3923
- rippleStyle.top = fmtProp(top - props.size);
3924
- rippleStyle.left = fmtProp(left - props.size);
3925
- }
3926
- isRippleActive.value = true;
3927
- setTimeout(() => {
3928
- isRippleActive.value = false;
3929
- }, RIPPLE_DURATION);
3930
- }
3931
- goToTop();
3932
- }
3933
3913
  vue.onBeforeMount(() => {
3934
3914
  window.addEventListener("scroll", onScroll);
3935
3915
  });
@@ -3958,14 +3938,9 @@
3958
3938
  isText.value && `tao-scroll-top--caption-${captionSide.value}`
3959
3939
  ]],
3960
3940
  "aria-label": accessibleName.value,
3961
- onClick: vue.withModifiers(onClick, ["prevent"])
3941
+ onClick: vue.withModifiers(goToTop, ["prevent"])
3962
3942
  }), [
3963
3943
  vue.createElementVNode("span", _hoisted_2$t, [
3964
- !isText.value ? (vue.openBlock(), vue.createElementBlock("span", {
3965
- key: 0,
3966
- class: vue.normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
3967
- style: vue.normalizeStyle(rippleStyle)
3968
- }, null, 6)) : vue.createCommentVNode("", true),
3969
3944
  isText.value && caption.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, vue.toDisplayString(caption.value), 1)) : vue.createCommentVNode("", true),
3970
3945
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
3971
3946
  _cache[0] || (_cache[0] = vue.createElementVNode("svg", {
@@ -3992,7 +3967,7 @@
3992
3967
  };
3993
3968
  }
3994
3969
  });
3995
- const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-89b8959a"]]);
3970
+ const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-7bcb0179"]]);
3996
3971
  const _hoisted_1$v = { class: "tao-progress" };
3997
3972
  const _hoisted_2$s = {
3998
3973
  key: 0,
@@ -5349,7 +5324,8 @@
5349
5324
  disabled: { type: Boolean, default: false },
5350
5325
  error: { type: Boolean, default: false },
5351
5326
  size: {},
5352
- block: { type: Boolean, default: false }
5327
+ block: { type: Boolean, default: false },
5328
+ minWidth: {}
5353
5329
  },
5354
5330
  emits: ["update:modelValue", "change"],
5355
5331
  setup(__props, { emit: __emit }) {
@@ -5362,6 +5338,9 @@
5362
5338
  const groupDisabled = vue.computed(() => props.disabled);
5363
5339
  const invalid = vue.computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
5364
5340
  const describedBy = vue.computed(() => field == null ? void 0 : field.describedBy.value);
5341
+ const minWidthStyle = vue.computed(
5342
+ () => props.minWidth === void 0 ? void 0 : { "--tao-segmented-option-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
5343
+ );
5365
5344
  const trackRef = vue.ref(null);
5366
5345
  const thumbStyle = vue.ref({ opacity: "0" });
5367
5346
  let resizeObserver = null;
@@ -5444,6 +5423,7 @@
5444
5423
  }
5445
5424
  ]]),
5446
5425
  disabled: __props.disabled,
5426
+ style: vue.normalizeStyle(minWidthStyle.value),
5447
5427
  "aria-describedby": describedBy.value,
5448
5428
  "aria-invalid": invalid.value || void 0,
5449
5429
  "aria-labelledby": __props.legend ? void 0 : vue.unref(field) ? `${vue.unref(field).id}-label` : void 0,
@@ -5462,11 +5442,11 @@
5462
5442
  }, null, 4),
5463
5443
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
5464
5444
  ], 512)
5465
- ], 10, _hoisted_1$p);
5445
+ ], 14, _hoisted_1$p);
5466
5446
  };
5467
5447
  }
5468
5448
  });
5469
- const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7dc6820f"]]);
5449
+ const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e4e082a4"]]);
5470
5450
  const _hoisted_1$o = ["for"];
5471
5451
  const _hoisted_2$m = ["id", "name", "value", "checked", "disabled", "aria-label"];
5472
5452
  const _hoisted_3$j = { class: "tao-segmented-option__face" };
@@ -5575,7 +5555,7 @@
5575
5555
  };
5576
5556
  }
5577
5557
  });
5578
- const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-fba7ca12"]]);
5558
+ const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-588d637d"]]);
5579
5559
  const _hoisted_1$n = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
5580
5560
  const _hoisted_2$l = { class: "tao-color-picker__strips" };
5581
5561
  const _hoisted_3$i = { class: "tao-color-picker__row" };
@@ -6565,7 +6545,7 @@
6565
6545
  }
6566
6546
  return true;
6567
6547
  }
6568
- function formatTaoDateLabel(iso, locale = "ru-RU") {
6548
+ function formatTaoDateLabel(iso, locale = "en-US") {
6569
6549
  const parts = parseTaoDate(iso);
6570
6550
  if (!parts) {
6571
6551
  return "";
@@ -6590,7 +6570,7 @@
6590
6570
  }
6591
6571
  return sortTaoDateRange(formatTaoDateIso(start), formatTaoDateIso(end));
6592
6572
  }
6593
- function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
6573
+ function formatTaoDateRangeLabel(start, end, locale = "en-US") {
6594
6574
  const fromParts = parseTaoDate(start);
6595
6575
  const toParts = parseTaoDate(end);
6596
6576
  if (!fromParts || !toParts) {
@@ -6606,7 +6586,7 @@
6606
6586
  });
6607
6587
  return `${from} — ${formatTaoDateLabel(end, locale)}`;
6608
6588
  }
6609
- function formatTaoMonthLabel(year, month, locale = "ru-RU") {
6589
+ function formatTaoMonthLabel(year, month, locale = "en-US") {
6610
6590
  const label = new Date(year, month - 1, 1).toLocaleDateString(locale, {
6611
6591
  month: "long",
6612
6592
  year: "numeric"
@@ -6620,7 +6600,7 @@
6620
6600
  }
6621
6601
  return (new Date(parts.y, parts.m - 1, parts.d).getDay() + 6) % 7;
6622
6602
  }
6623
- function taoWeekdayLabels(locale = "ru-RU") {
6603
+ function taoWeekdayLabels(locale = "en-US") {
6624
6604
  return Array.from({ length: 7 }, (_, index) => {
6625
6605
  const label = new Date(2026, 0, 5 + index).toLocaleDateString(locale, { weekday: "short" });
6626
6606
  return label.replace(/\.$/, "");