@1337exp/taoui 3.3.1 → 4.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
@@ -21,7 +21,7 @@
21
21
  key: 0,
22
22
  class: "tao-button__loader"
23
23
  };
24
- const _hoisted_3$D = {
24
+ const _hoisted_3$E = {
25
25
  key: 1,
26
26
  class: "tao-button__icon"
27
27
  };
@@ -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,16 +65,17 @@
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
67
72
  }, [
68
73
  __props.loading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$L)) : vue.createCommentVNode("", true),
69
- __props.icon ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$D, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true),
74
+ __props.icon ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$E, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true),
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;
@@ -163,7 +168,7 @@
163
168
  key: 0,
164
169
  class: "tao-input__affix tao-input__affix--prefix"
165
170
  };
166
- const _hoisted_3$C = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
171
+ const _hoisted_3$D = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
167
172
  const _hoisted_4$w = {
168
173
  key: 1,
169
174
  class: "tao-input__affix tao-input__affix--suffix"
@@ -245,7 +250,7 @@
245
250
  onInput: handleInput,
246
251
  onBlur: handleBlur,
247
252
  onFocus: handleFocus
248
- }, null, 42, _hoisted_3$C),
253
+ }, null, 42, _hoisted_3$D),
249
254
  _ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$w, [
250
255
  vue.renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
251
256
  ])) : vue.createCommentVNode("", true)
@@ -261,7 +266,7 @@
261
266
  class: "tao-input-group__addon tao-input-group__addon--before"
262
267
  };
263
268
  const _hoisted_2$J = { class: "tao-input-group__field" };
264
- const _hoisted_3$B = {
269
+ const _hoisted_3$C = {
265
270
  key: 1,
266
271
  class: "tao-input-group__addon tao-input-group__addon--after"
267
272
  };
@@ -296,7 +301,7 @@
296
301
  vue.createElementVNode("div", _hoisted_2$J, [
297
302
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
298
303
  ]),
299
- _ctx.$slots.after ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
304
+ _ctx.$slots.after ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
300
305
  vue.renderSlot(_ctx.$slots, "after", {}, void 0, true)
301
306
  ])) : vue.createCommentVNode("", true)
302
307
  ], 34);
@@ -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 });
@@ -652,7 +657,7 @@
652
657
  key: 0,
653
658
  class: "tao-input-number__steppers"
654
659
  };
655
- const _hoisted_3$A = ["aria-label", "disabled"];
660
+ const _hoisted_3$B = ["aria-label", "disabled"];
656
661
  const _hoisted_4$v = { "aria-hidden": "true" };
657
662
  const _hoisted_5$n = ["aria-label", "disabled"];
658
663
  const _hoisted_6$i = { "aria-hidden": "true" };
@@ -832,7 +837,7 @@
832
837
  _cache[2] || (_cache[2] = vue.createTextVNode("+", -1))
833
838
  ], true)
834
839
  ])
835
- ], 8, _hoisted_3$A),
840
+ ], 8, _hoisted_3$B),
836
841
  vue.createElementVNode("button", {
837
842
  type: "button",
838
843
  class: "tao-input-number__step",
@@ -855,7 +860,7 @@
855
860
  const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3f4e6197"]]);
856
861
  const _hoisted_1$O = ["aria-label", "disabled"];
857
862
  const _hoisted_2$H = { "aria-hidden": "true" };
858
- const _hoisted_3$z = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
863
+ const _hoisted_3$A = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
859
864
  const _hoisted_4$u = ["aria-label", "disabled"];
860
865
  const _hoisted_5$m = { "aria-hidden": "true" };
861
866
  const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
@@ -1026,7 +1031,7 @@
1026
1031
  onFocus,
1027
1032
  onBlur,
1028
1033
  onKeydown
1029
- }, null, 40, _hoisted_3$z),
1034
+ }, null, 40, _hoisted_3$A),
1030
1035
  vue.createElementVNode("button", {
1031
1036
  type: "button",
1032
1037
  class: "tao-quantity__btn tao-quantity__btn--inc",
@@ -1053,7 +1058,7 @@
1053
1058
  key: 0,
1054
1059
  class: "tao-card__overlay"
1055
1060
  };
1056
- const _hoisted_3$y = {
1061
+ const _hoisted_3$z = {
1057
1062
  key: 1,
1058
1063
  class: "tao-card__overlay"
1059
1064
  };
@@ -1129,7 +1134,7 @@
1129
1134
  _ctx.$slots.overlay ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$G, [
1130
1135
  vue.renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1131
1136
  ])) : vue.createCommentVNode("", true)
1132
- ])) : _ctx.$slots.overlay ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
1137
+ ])) : _ctx.$slots.overlay ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
1133
1138
  vue.renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1134
1139
  ])) : vue.createCommentVNode("", true),
1135
1140
  hasContent.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -1197,7 +1202,15 @@
1197
1202
  if (!event.shiftKey && document.activeElement === last) {
1198
1203
  event.preventDefault();
1199
1204
  first.focus();
1205
+ return;
1200
1206
  }
1207
+ const backwards = event.shiftKey;
1208
+ setTimeout(() => {
1209
+ if (!root.isConnected || root.contains(document.activeElement)) {
1210
+ return;
1211
+ }
1212
+ (backwards ? last : first).focus();
1213
+ }, 0);
1201
1214
  }
1202
1215
  let locks = 0;
1203
1216
  let previousOverflow = "";
@@ -1229,7 +1242,7 @@
1229
1242
  key: 0,
1230
1243
  class: "tao-modal__header"
1231
1244
  };
1232
- const _hoisted_3$x = ["id"];
1245
+ const _hoisted_3$y = ["id"];
1233
1246
  const _hoisted_4$s = { key: 1 };
1234
1247
  const _hoisted_5$k = ["aria-label"];
1235
1248
  const _hoisted_6$g = { "aria-hidden": "true" };
@@ -1361,7 +1374,7 @@
1361
1374
  key: 0,
1362
1375
  id: vue.unref(titleId),
1363
1376
  class: "tao-modal__title"
1364
- }, vue.toDisplayString(__props.title), 9, _hoisted_3$x)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$s))
1377
+ }, vue.toDisplayString(__props.title), 9, _hoisted_3$y)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$s))
1365
1378
  ], true),
1366
1379
  __props.closable ? (vue.openBlock(), vue.createElementBlock("button", {
1367
1380
  key: 0,
@@ -1614,7 +1627,7 @@
1614
1627
  }
1615
1628
  const _hoisted_1$K = ["aria-disabled"];
1616
1629
  const _hoisted_2$D = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
1617
- const _hoisted_3$w = {
1630
+ const _hoisted_3$x = {
1618
1631
  key: 0,
1619
1632
  class: "tao-slider__value"
1620
1633
  };
@@ -1856,7 +1869,7 @@
1856
1869
  onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
1857
1870
  }, null, 46, _hoisted_2$D);
1858
1871
  }), 128)),
1859
- __props.showValue ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, [
1872
+ __props.showValue ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x, [
1860
1873
  vue.renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
1861
1874
  vue.createTextVNode(vue.toDisplayString(barText.value), 1),
1862
1875
  vue.renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
@@ -1953,7 +1966,7 @@
1953
1966
  });
1954
1967
  const _hoisted_1$J = { class: "tao-timeline__controls" };
1955
1968
  const _hoisted_2$C = { class: "tao-timeline__track" };
1956
- const _hoisted_3$v = {
1969
+ const _hoisted_3$w = {
1957
1970
  key: 0,
1958
1971
  class: "tao-timeline__time"
1959
1972
  };
@@ -2049,7 +2062,7 @@
2049
2062
  } : void 0
2050
2063
  ]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
2051
2064
  ]),
2052
- __props.showTime ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
2065
+ __props.showTime ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, [
2053
2066
  vue.renderSlot(_ctx.$slots, "time", {
2054
2067
  time: __props.modelValue,
2055
2068
  length: __props.length,
@@ -2429,7 +2442,7 @@
2429
2442
  const spoilerGroupKey = Symbol("taoSpoilerGroup");
2430
2443
  const _hoisted_1$H = { class: "tao-spoiler" };
2431
2444
  const _hoisted_2$B = ["aria-expanded", "aria-controls"];
2432
- const _hoisted_3$u = {
2445
+ const _hoisted_3$v = {
2433
2446
  key: 0,
2434
2447
  class: "tao-spoiler__title"
2435
2448
  };
@@ -2502,7 +2515,7 @@
2502
2515
  vue.createElementVNode("span", {
2503
2516
  class: vue.normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
2504
2517
  }, "▶", 2),
2505
- __props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$u, [
2518
+ __props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$v, [
2506
2519
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
2507
2520
  vue.createTextVNode(vue.toDisplayString(__props.title), 1)
2508
2521
  ], true)
@@ -2859,7 +2872,7 @@
2859
2872
  const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-ad288026"]]);
2860
2873
  const _hoisted_1$E = { class: "tao-split__pane tao-split__pane--start" };
2861
2874
  const _hoisted_2$A = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
2862
- const _hoisted_3$t = { class: "tao-split__pane tao-split__pane--end" };
2875
+ const _hoisted_3$u = { class: "tao-split__pane tao-split__pane--end" };
2863
2876
  const _hoisted_4$p = {
2864
2877
  key: 0,
2865
2878
  class: "tao-split__shield"
@@ -3185,7 +3198,7 @@
3185
3198
  onDragstart: _cache[0] || (_cache[0] = vue.withModifiers(() => {
3186
3199
  }, ["prevent"]))
3187
3200
  }, null, 40, _hoisted_2$A),
3188
- vue.createElementVNode("div", _hoisted_3$t, [
3201
+ vue.createElementVNode("div", _hoisted_3$u, [
3189
3202
  vue.renderSlot(_ctx.$slots, "end", {}, void 0, true)
3190
3203
  ]),
3191
3204
  isDragging.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p)) : vue.createCommentVNode("", true)
@@ -3286,7 +3299,7 @@
3286
3299
  const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-49a9f1b2"]]);
3287
3300
  const _hoisted_1$C = { class: "tao-image" };
3288
3301
  const _hoisted_2$z = ["src", "alt", "loading"];
3289
- const _hoisted_3$s = { class: "tao-image__placeholder" };
3302
+ const _hoisted_3$t = { class: "tao-image__placeholder" };
3290
3303
  const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
3291
3304
  ...{ name: "TaoImage" },
3292
3305
  __name: "TaoImage",
@@ -3331,7 +3344,7 @@
3331
3344
  onError: handleError
3332
3345
  }, null, 42, _hoisted_2$z)) : vue.createCommentVNode("", true),
3333
3346
  !__props.src || hasError.value ? vue.renderSlot(_ctx.$slots, "default", {}, () => [
3334
- vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(__props.placeholderText), 1)
3347
+ vue.createElementVNode("div", _hoisted_3$t, vue.toDisplayString(__props.placeholderText), 1)
3335
3348
  ], true, 1) : vue.createCommentVNode("", true)
3336
3349
  ]);
3337
3350
  };
@@ -3340,7 +3353,7 @@
3340
3353
  const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-61f47c52"]]);
3341
3354
  const _hoisted_1$B = ["for"];
3342
3355
  const _hoisted_2$y = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
3343
- const _hoisted_3$r = {
3356
+ const _hoisted_3$s = {
3344
3357
  key: 0,
3345
3358
  class: "tao-checkbox__label"
3346
3359
  };
@@ -3428,7 +3441,7 @@
3428
3441
  onChange: onInputChange
3429
3442
  }, null, 40, _hoisted_2$y),
3430
3443
  _cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
3431
- __props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$r, vue.toDisplayString(__props.label), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$o, [
3444
+ __props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$s, vue.toDisplayString(__props.label), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$o, [
3432
3445
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
3433
3446
  ])),
3434
3447
  vue.renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
@@ -3442,7 +3455,7 @@
3442
3455
  class: "tao-tag__prefix"
3443
3456
  };
3444
3457
  const _hoisted_2$x = { class: "tao-tag__text" };
3445
- const _hoisted_3$q = ["aria-label"];
3458
+ const _hoisted_3$r = ["aria-label"];
3446
3459
  const _hoisted_4$n = { "aria-hidden": "true" };
3447
3460
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
3448
3461
  ...{ name: "TaoTag" },
@@ -3514,7 +3527,7 @@
3514
3527
  _cache[0] || (_cache[0] = vue.createTextVNode("✕", -1))
3515
3528
  ], true)
3516
3529
  ])
3517
- ], 8, _hoisted_3$q)) : vue.createCommentVNode("", true)
3530
+ ], 8, _hoisted_3$r)) : vue.createCommentVNode("", true)
3518
3531
  ], 6);
3519
3532
  };
3520
3533
  }
@@ -3525,7 +3538,7 @@
3525
3538
  key: 1,
3526
3539
  class: "tao-divider__text"
3527
3540
  };
3528
- const _hoisted_3$p = {
3541
+ const _hoisted_3$q = {
3529
3542
  key: 2,
3530
3543
  class: "tao-divider__line tao-divider__line--end"
3531
3544
  };
@@ -3568,7 +3581,7 @@
3568
3581
  vue.createTextVNode(vue.toDisplayString(__props.text), 1)
3569
3582
  ], true)
3570
3583
  ])) : vue.createCommentVNode("", true),
3571
- __props.variant !== "gap" && hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p)) : vue.createCommentVNode("", true)
3584
+ __props.variant !== "gap" && hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$q)) : vue.createCommentVNode("", true)
3572
3585
  ], 10, _hoisted_1$z);
3573
3586
  };
3574
3587
  }
@@ -3820,13 +3833,23 @@
3820
3833
  const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fb037862"]]);
3821
3834
  const _hoisted_1$w = ["tabindex", "aria-label"];
3822
3835
  const _hoisted_2$t = { class: "tao-scroll-top__content" };
3836
+ const _hoisted_3$p = {
3837
+ key: 1,
3838
+ class: "tao-scroll-top__text",
3839
+ "aria-hidden": "true"
3840
+ };
3823
3841
  const RIPPLE_DURATION = 750;
3824
3842
  const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
3825
- ...{ name: "TaoScrollTop" },
3843
+ ...{ name: "TaoScrollTop", inheritAttrs: false },
3826
3844
  __name: "TaoScrollTop",
3827
3845
  props: {
3846
+ variant: { default: "solid" },
3847
+ side: { default: "right" },
3848
+ offset: { default: void 0 },
3849
+ label: { default: void 0 },
3850
+ labelSide: { default: void 0 },
3828
3851
  size: { default: 40 },
3829
- right: { default: 24 },
3852
+ right: { default: void 0 },
3830
3853
  bottom: { default: 24 },
3831
3854
  zIndex: { default: 1e3 },
3832
3855
  boundary: { default: 300 },
@@ -3837,17 +3860,23 @@
3837
3860
  },
3838
3861
  setup(__props) {
3839
3862
  const props = __props;
3840
- useLocaleText(props, "scrollTop");
3863
+ const l10n = useLocaleText(props, "scrollTop");
3841
3864
  const fmtProp = (value, unit = "px") => typeof value === "number" ? value + unit : value;
3842
3865
  let prevPos = 0;
3843
3866
  let activeBack = false;
3844
- const mainStyle = vue.reactive({
3845
- width: fmtProp(props.size),
3846
- height: fmtProp(props.size),
3847
- right: fmtProp(props.right),
3867
+ const isText = vue.computed(() => props.variant === "text");
3868
+ const wrapStyle = vue.computed(() => ({
3869
+ [props.side]: fmtProp(props.offset ?? props.right ?? 24),
3848
3870
  bottom: fmtProp(props.bottom),
3849
3871
  zIndex: props.zIndex
3850
- });
3872
+ }));
3873
+ const mainStyle = vue.computed(() => ({
3874
+ height: fmtProp(props.size),
3875
+ ...isText.value ? {} : { width: fmtProp(props.size) }
3876
+ }));
3877
+ const captionSide = vue.computed(() => props.labelSide ?? (props.side === "right" ? "left" : "right"));
3878
+ const caption = vue.computed(() => props.label ?? (isText.value ? l10n.value.ariaLabel : void 0));
3879
+ const accessibleName = vue.computed(() => props.ariaLabel || props.label || l10n.value.ariaLabel);
3851
3880
  const rippleStyle = vue.reactive({
3852
3881
  top: fmtProp(-1 * props.size),
3853
3882
  left: fmtProp(-1 * props.size),
@@ -3890,7 +3919,7 @@
3890
3919
  isActive.value = tooFar && activeBack;
3891
3920
  }
3892
3921
  function onClick(e) {
3893
- if (!isRippleActive.value) {
3922
+ if (!isText.value && !isRippleActive.value) {
3894
3923
  const elTarget = e.currentTarget;
3895
3924
  if (elTarget) {
3896
3925
  const rect = elTarget.getBoundingClientRect();
@@ -3919,40 +3948,56 @@
3919
3948
  return (_ctx, _cache) => {
3920
3949
  return vue.openBlock(), vue.createBlock(vue.Transition, { name: "tao-scroll-top-fade" }, {
3921
3950
  default: vue.withCtx(() => [
3922
- isActive.value ? (vue.openBlock(), vue.createElementBlock("button", {
3951
+ isActive.value ? (vue.openBlock(), vue.createElementBlock("div", {
3923
3952
  key: 0,
3924
- type: "button",
3925
- style: vue.normalizeStyle(mainStyle),
3926
- tabindex: props.tabindex,
3927
- class: vue.normalizeClass(["tao-scroll-top", { "tao-scroll-top--no-outline": (props.outline ?? props.hasOutline) === false }]),
3928
- "aria-label": props.ariaLabel,
3929
- onClick: vue.withModifiers(onClick, ["prevent"])
3953
+ class: "tao-scroll-top-wrap",
3954
+ style: vue.normalizeStyle(wrapStyle.value)
3930
3955
  }, [
3931
- vue.createElementVNode("div", _hoisted_2$t, [
3932
- vue.createElementVNode("div", {
3933
- class: vue.normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
3934
- style: vue.normalizeStyle(rippleStyle)
3935
- }, null, 6),
3936
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
3937
- _cache[0] || (_cache[0] = vue.createElementVNode("svg", {
3938
- class: "tao-scroll-top__icon",
3939
- viewBox: "0 0 24 24",
3940
- width: "16",
3941
- height: "16",
3942
- fill: "currentColor"
3943
- }, [
3944
- vue.createElementVNode("path", { d: "M12 6l-7 7 1.4 1.4L12 8.8l5.6 5.6L19 13z" })
3945
- ], -1))
3946
- ], true)
3947
- ])
3948
- ], 14, _hoisted_1$w)) : vue.createCommentVNode("", true)
3956
+ vue.createElementVNode("button", vue.mergeProps(_ctx.$attrs, {
3957
+ type: "button",
3958
+ style: mainStyle.value,
3959
+ tabindex: props.tabindex,
3960
+ class: ["tao-scroll-top", [
3961
+ `tao-scroll-top--${props.variant}`,
3962
+ { "tao-scroll-top--no-outline": (props.outline ?? props.hasOutline) === false },
3963
+ isText.value && `tao-scroll-top--caption-${captionSide.value}`
3964
+ ]],
3965
+ "aria-label": accessibleName.value,
3966
+ onClick: vue.withModifiers(onClick, ["prevent"])
3967
+ }), [
3968
+ vue.createElementVNode("span", _hoisted_2$t, [
3969
+ !isText.value ? (vue.openBlock(), vue.createElementBlock("span", {
3970
+ key: 0,
3971
+ class: vue.normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
3972
+ style: vue.normalizeStyle(rippleStyle)
3973
+ }, null, 6)) : vue.createCommentVNode("", true),
3974
+ isText.value && caption.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, vue.toDisplayString(caption.value), 1)) : vue.createCommentVNode("", true),
3975
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
3976
+ _cache[0] || (_cache[0] = vue.createElementVNode("svg", {
3977
+ class: "tao-scroll-top__icon",
3978
+ viewBox: "0 0 24 24",
3979
+ width: "16",
3980
+ height: "16",
3981
+ fill: "currentColor"
3982
+ }, [
3983
+ vue.createElementVNode("path", { d: "M12 6l-7 7 1.4 1.4L12 8.8l5.6 5.6L19 13z" })
3984
+ ], -1))
3985
+ ], true)
3986
+ ])
3987
+ ], 16, _hoisted_1$w),
3988
+ !isText.value && caption.value ? (vue.openBlock(), vue.createElementBlock("span", {
3989
+ key: 0,
3990
+ class: vue.normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
3991
+ "aria-hidden": "true"
3992
+ }, vue.toDisplayString(caption.value), 3)) : vue.createCommentVNode("", true)
3993
+ ], 4)) : vue.createCommentVNode("", true)
3949
3994
  ]),
3950
3995
  _: 3
3951
3996
  });
3952
3997
  };
3953
3998
  }
3954
3999
  });
3955
- const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-89d2feaa"]]);
4000
+ const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-89b8959a"]]);
3956
4001
  const _hoisted_1$v = { class: "tao-progress" };
3957
4002
  const _hoisted_2$s = {
3958
4003
  key: 0,
@@ -5309,7 +5354,8 @@
5309
5354
  disabled: { type: Boolean, default: false },
5310
5355
  error: { type: Boolean, default: false },
5311
5356
  size: {},
5312
- block: { type: Boolean, default: false }
5357
+ block: { type: Boolean, default: false },
5358
+ minWidth: {}
5313
5359
  },
5314
5360
  emits: ["update:modelValue", "change"],
5315
5361
  setup(__props, { emit: __emit }) {
@@ -5322,6 +5368,9 @@
5322
5368
  const groupDisabled = vue.computed(() => props.disabled);
5323
5369
  const invalid = vue.computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
5324
5370
  const describedBy = vue.computed(() => field == null ? void 0 : field.describedBy.value);
5371
+ const minWidthStyle = vue.computed(
5372
+ () => props.minWidth === void 0 ? void 0 : { "--tao-segmented-option-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
5373
+ );
5325
5374
  const trackRef = vue.ref(null);
5326
5375
  const thumbStyle = vue.ref({ opacity: "0" });
5327
5376
  let resizeObserver = null;
@@ -5404,6 +5453,7 @@
5404
5453
  }
5405
5454
  ]]),
5406
5455
  disabled: __props.disabled,
5456
+ style: vue.normalizeStyle(minWidthStyle.value),
5407
5457
  "aria-describedby": describedBy.value,
5408
5458
  "aria-invalid": invalid.value || void 0,
5409
5459
  "aria-labelledby": __props.legend ? void 0 : vue.unref(field) ? `${vue.unref(field).id}-label` : void 0,
@@ -5422,11 +5472,11 @@
5422
5472
  }, null, 4),
5423
5473
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
5424
5474
  ], 512)
5425
- ], 10, _hoisted_1$p);
5475
+ ], 14, _hoisted_1$p);
5426
5476
  };
5427
5477
  }
5428
5478
  });
5429
- const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7dc6820f"]]);
5479
+ const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e4e082a4"]]);
5430
5480
  const _hoisted_1$o = ["for"];
5431
5481
  const _hoisted_2$m = ["id", "name", "value", "checked", "disabled", "aria-label"];
5432
5482
  const _hoisted_3$j = { class: "tao-segmented-option__face" };
@@ -5535,7 +5585,7 @@
5535
5585
  };
5536
5586
  }
5537
5587
  });
5538
- const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-fba7ca12"]]);
5588
+ const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-588d637d"]]);
5539
5589
  const _hoisted_1$n = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
5540
5590
  const _hoisted_2$l = { class: "tao-color-picker__strips" };
5541
5591
  const _hoisted_3$i = { class: "tao-color-picker__row" };
@@ -6525,7 +6575,7 @@
6525
6575
  }
6526
6576
  return true;
6527
6577
  }
6528
- function formatTaoDateLabel(iso, locale = "ru-RU") {
6578
+ function formatTaoDateLabel(iso, locale = "en-US") {
6529
6579
  const parts = parseTaoDate(iso);
6530
6580
  if (!parts) {
6531
6581
  return "";
@@ -6550,7 +6600,7 @@
6550
6600
  }
6551
6601
  return sortTaoDateRange(formatTaoDateIso(start), formatTaoDateIso(end));
6552
6602
  }
6553
- function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
6603
+ function formatTaoDateRangeLabel(start, end, locale = "en-US") {
6554
6604
  const fromParts = parseTaoDate(start);
6555
6605
  const toParts = parseTaoDate(end);
6556
6606
  if (!fromParts || !toParts) {
@@ -6566,7 +6616,7 @@
6566
6616
  });
6567
6617
  return `${from} — ${formatTaoDateLabel(end, locale)}`;
6568
6618
  }
6569
- function formatTaoMonthLabel(year, month, locale = "ru-RU") {
6619
+ function formatTaoMonthLabel(year, month, locale = "en-US") {
6570
6620
  const label = new Date(year, month - 1, 1).toLocaleDateString(locale, {
6571
6621
  month: "long",
6572
6622
  year: "numeric"
@@ -6580,7 +6630,7 @@
6580
6630
  }
6581
6631
  return (new Date(parts.y, parts.m - 1, parts.d).getDay() + 6) % 7;
6582
6632
  }
6583
- function taoWeekdayLabels(locale = "ru-RU") {
6633
+ function taoWeekdayLabels(locale = "en-US") {
6584
6634
  return Array.from({ length: 7 }, (_, index) => {
6585
6635
  const label = new Date(2026, 0, 5 + index).toLocaleDateString(locale, { weekday: "short" });
6586
6636
  return label.replace(/\.$/, "");