@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/CHANGELOG.md +32 -0
- package/README.md +12 -6
- package/README.ru.md +12 -6
- package/dist/index.cjs +267 -217
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +55 -9
- package/dist/index.mjs +268 -218
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, toDisplayString, createElementVNode, renderSlot,
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, toDisplayString, createElementVNode, renderSlot, getCurrentInstance, camelize, inject, useId, ref, shallowRef, watch, createTextVNode, useSlots, onBeforeUnmount, createBlock, Teleport, createVNode, Transition, withCtx, nextTick, Fragment, renderList, onMounted, mergeProps, createSlots, normalizeProps, guardReactiveProps, provide, resolveDynamicComponent, withModifiers, useCssVars, reactive, onBeforeMount, withKeys, TransitionGroup, onUpdated, createApp } from "vue";
|
|
2
2
|
const sizes = ["small", "medium", "large"];
|
|
3
3
|
function sizeClass(size) {
|
|
4
4
|
return size ? `tao-size-${size}` : void 0;
|
|
@@ -18,7 +18,7 @@ const _hoisted_2$L = {
|
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "tao-button__loader"
|
|
20
20
|
};
|
|
21
|
-
const _hoisted_3$
|
|
21
|
+
const _hoisted_3$E = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "tao-button__icon"
|
|
24
24
|
};
|
|
@@ -34,11 +34,15 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
disabled: { type: Boolean, default: false },
|
|
35
35
|
loading: { type: Boolean, default: false },
|
|
36
36
|
block: { type: Boolean, default: false },
|
|
37
|
-
icon: { default: "" }
|
|
37
|
+
icon: { default: "" },
|
|
38
|
+
minWidth: { default: void 0 }
|
|
38
39
|
},
|
|
39
40
|
emits: ["click"],
|
|
40
41
|
setup(__props, { emit: __emit }) {
|
|
41
42
|
const props = __props;
|
|
43
|
+
const minWidthStyle = computed(
|
|
44
|
+
() => props.minWidth === void 0 ? void 0 : { "--tao-button-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
|
|
45
|
+
);
|
|
42
46
|
const emit = __emit;
|
|
43
47
|
function handleClick(event) {
|
|
44
48
|
if (!props.disabled && !props.loading) {
|
|
@@ -58,16 +62,17 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
58
62
|
[`tao-button--tone-${__props.tone}`]: !!__props.tone
|
|
59
63
|
}
|
|
60
64
|
]]),
|
|
65
|
+
style: normalizeStyle(minWidthStyle.value),
|
|
61
66
|
type: __props.type,
|
|
62
67
|
disabled: __props.disabled || __props.loading,
|
|
63
68
|
onClick: handleClick
|
|
64
69
|
}, [
|
|
65
70
|
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$L)) : createCommentVNode("", true),
|
|
66
|
-
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
71
|
+
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$E, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
|
|
67
72
|
createElementVNode("span", _hoisted_4$x, [
|
|
68
73
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
69
74
|
])
|
|
70
|
-
],
|
|
75
|
+
], 14, _hoisted_1$S);
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
});
|
|
@@ -78,7 +83,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
78
83
|
}
|
|
79
84
|
return target;
|
|
80
85
|
};
|
|
81
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
86
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2b4000a6"]]);
|
|
82
87
|
function toCssLength(value) {
|
|
83
88
|
if (value === void 0 || value === null || value === "") {
|
|
84
89
|
return void 0;
|
|
@@ -160,7 +165,7 @@ const _hoisted_2$K = {
|
|
|
160
165
|
key: 0,
|
|
161
166
|
class: "tao-input__affix tao-input__affix--prefix"
|
|
162
167
|
};
|
|
163
|
-
const _hoisted_3$
|
|
168
|
+
const _hoisted_3$D = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
|
|
164
169
|
const _hoisted_4$w = {
|
|
165
170
|
key: 1,
|
|
166
171
|
class: "tao-input__affix tao-input__affix--suffix"
|
|
@@ -242,7 +247,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
242
247
|
onInput: handleInput,
|
|
243
248
|
onBlur: handleBlur,
|
|
244
249
|
onFocus: handleFocus
|
|
245
|
-
}, null, 42, _hoisted_3$
|
|
250
|
+
}, null, 42, _hoisted_3$D),
|
|
246
251
|
_ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$w, [
|
|
247
252
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
248
253
|
])) : createCommentVNode("", true)
|
|
@@ -258,7 +263,7 @@ const _hoisted_1$Q = {
|
|
|
258
263
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
259
264
|
};
|
|
260
265
|
const _hoisted_2$J = { class: "tao-input-group__field" };
|
|
261
|
-
const _hoisted_3$
|
|
266
|
+
const _hoisted_3$C = {
|
|
262
267
|
key: 1,
|
|
263
268
|
class: "tao-input-group__addon tao-input-group__addon--after"
|
|
264
269
|
};
|
|
@@ -293,7 +298,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
293
298
|
createElementVNode("div", _hoisted_2$J, [
|
|
294
299
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
295
300
|
]),
|
|
296
|
-
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
301
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
297
302
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
298
303
|
])) : createCommentVNode("", true)
|
|
299
304
|
], 34);
|
|
@@ -301,98 +306,98 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
301
306
|
}
|
|
302
307
|
});
|
|
303
308
|
const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-55b2d297"]]);
|
|
304
|
-
const
|
|
305
|
-
code: "
|
|
306
|
-
alert: { closeLabel: "
|
|
309
|
+
const localeEn = {
|
|
310
|
+
code: "en-US",
|
|
311
|
+
alert: { closeLabel: "Close" },
|
|
307
312
|
avatar: {
|
|
308
|
-
fallbackLabel: "
|
|
309
|
-
notificationsLabel: "{count}
|
|
313
|
+
fallbackLabel: "Avatar",
|
|
314
|
+
notificationsLabel: "{count} notifications",
|
|
310
315
|
dotLabels: {
|
|
311
|
-
success: "
|
|
312
|
-
danger: "
|
|
313
|
-
warning: "
|
|
314
|
-
info: "
|
|
315
|
-
neutral: "
|
|
316
|
+
success: "online",
|
|
317
|
+
danger: "busy",
|
|
318
|
+
warning: "away",
|
|
319
|
+
info: "status",
|
|
320
|
+
neutral: "offline"
|
|
316
321
|
}
|
|
317
322
|
},
|
|
318
|
-
breadcrumb: { ariaLabel: "
|
|
323
|
+
breadcrumb: { ariaLabel: "Breadcrumb" },
|
|
319
324
|
carousel: {
|
|
320
|
-
ariaLabel: "
|
|
321
|
-
prevLabel: "
|
|
322
|
-
nextLabel: "
|
|
323
|
-
dotsLabel: "
|
|
324
|
-
slideLabel: "
|
|
325
|
+
ariaLabel: "Carousel",
|
|
326
|
+
prevLabel: "Previous",
|
|
327
|
+
nextLabel: "Next",
|
|
328
|
+
dotsLabel: "Slides",
|
|
329
|
+
slideLabel: "Slide {n} of {count}"
|
|
325
330
|
},
|
|
326
331
|
combobox: {
|
|
327
|
-
placeholder: "
|
|
328
|
-
emptyText: "
|
|
329
|
-
clearText: "
|
|
330
|
-
createText: "
|
|
332
|
+
placeholder: "Start typing",
|
|
333
|
+
emptyText: "Nothing found",
|
|
334
|
+
clearText: "Clear",
|
|
335
|
+
createText: "Add “{text}”"
|
|
331
336
|
},
|
|
332
|
-
confirm: { ok: "
|
|
333
|
-
copy: { copyLabel: "
|
|
337
|
+
confirm: { ok: "OK", cancel: "Cancel" },
|
|
338
|
+
copy: { copyLabel: "Copy", successText: "Copied!" },
|
|
334
339
|
date: {
|
|
335
|
-
placeholder: "
|
|
336
|
-
todayText: "
|
|
337
|
-
clearText: "
|
|
338
|
-
prevMonthLabel: "
|
|
339
|
-
nextMonthLabel: "
|
|
340
|
+
placeholder: "Date",
|
|
341
|
+
todayText: "Today",
|
|
342
|
+
clearText: "Clear",
|
|
343
|
+
prevMonthLabel: "Previous month",
|
|
344
|
+
nextMonthLabel: "Next month"
|
|
340
345
|
},
|
|
341
346
|
dateRange: {
|
|
342
|
-
placeholder: "
|
|
343
|
-
todayText: "
|
|
344
|
-
clearText: "
|
|
345
|
-
prevMonthLabel: "
|
|
346
|
-
nextMonthLabel: "
|
|
347
|
+
placeholder: "Period",
|
|
348
|
+
todayText: "Today",
|
|
349
|
+
clearText: "Clear",
|
|
350
|
+
prevMonthLabel: "Previous month",
|
|
351
|
+
nextMonthLabel: "Next month"
|
|
347
352
|
},
|
|
348
|
-
drawer: { closeLabel: "
|
|
349
|
-
dropdownMenu: { menuLabel: "
|
|
350
|
-
empty: { title: "
|
|
353
|
+
drawer: { closeLabel: "Close" },
|
|
354
|
+
dropdownMenu: { menuLabel: "Menu" },
|
|
355
|
+
empty: { title: "Nothing here" },
|
|
351
356
|
fileDrop: {
|
|
352
|
-
clearLabel: "
|
|
353
|
-
removeLabel: "
|
|
354
|
-
zoneText: "
|
|
355
|
-
units: ["
|
|
356
|
-
decimalSeparator: "
|
|
357
|
+
clearLabel: "Clear files",
|
|
358
|
+
removeLabel: "Remove “{name}”",
|
|
359
|
+
zoneText: "Drop a file here or click to choose",
|
|
360
|
+
units: ["B", "KB", "MB"],
|
|
361
|
+
decimalSeparator: "."
|
|
357
362
|
},
|
|
358
|
-
inputNumber: { incrementLabel: "
|
|
359
|
-
list: { emptyText: "
|
|
360
|
-
modal: { closeLabel: "
|
|
363
|
+
inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
|
|
364
|
+
list: { emptyText: "Nothing here" },
|
|
365
|
+
modal: { closeLabel: "Close" },
|
|
361
366
|
pagination: {
|
|
362
|
-
ariaLabel: "
|
|
363
|
-
prevLabel: "
|
|
364
|
-
nextLabel: "
|
|
365
|
-
pageLabel: "
|
|
366
|
-
jumpPrevLabel: "
|
|
367
|
-
jumpNextLabel: "
|
|
368
|
-
totalText: "{from}–{to}
|
|
369
|
-
emptyTotalText: "0
|
|
367
|
+
ariaLabel: "Pagination",
|
|
368
|
+
prevLabel: "Previous",
|
|
369
|
+
nextLabel: "Next",
|
|
370
|
+
pageLabel: "Page {page}",
|
|
371
|
+
jumpPrevLabel: "Back {n} pages",
|
|
372
|
+
jumpNextLabel: "Forward {n} pages",
|
|
373
|
+
totalText: "{from}–{to} of {total}",
|
|
374
|
+
emptyTotalText: "0 of 0"
|
|
370
375
|
},
|
|
371
|
-
quantity: { decrementLabel: "
|
|
372
|
-
scrollTop: { ariaLabel: "
|
|
373
|
-
select: { placeholder: "
|
|
376
|
+
quantity: { decrementLabel: "Decrease", removeLabel: "Remove", incrementLabel: "Increase" },
|
|
377
|
+
scrollTop: { ariaLabel: "Back to top" },
|
|
378
|
+
select: { placeholder: "Select", clearText: "Clear" },
|
|
374
379
|
stages: {
|
|
375
|
-
ariaLabel: "
|
|
376
|
-
statusLabels: { wait: "
|
|
380
|
+
ariaLabel: "Stages",
|
|
381
|
+
statusLabels: { wait: "pending", work: "in progress", ok: "done", bad: "failed" }
|
|
377
382
|
},
|
|
378
|
-
table: { emptyText: "
|
|
379
|
-
tag: { closeLabel: "
|
|
383
|
+
table: { emptyText: "No data" },
|
|
384
|
+
tag: { closeLabel: "Remove" },
|
|
380
385
|
colorPicker: {
|
|
381
|
-
areaLabel: "
|
|
382
|
-
hueLabel: "
|
|
383
|
-
alphaLabel: "
|
|
384
|
-
hexLabel: "
|
|
385
|
-
modeLabel: "
|
|
386
|
-
swatchesLabel: "
|
|
387
|
-
eyedropperLabel: "
|
|
388
|
-
chooseLabel: "
|
|
386
|
+
areaLabel: "Saturation and brightness",
|
|
387
|
+
hueLabel: "Hue",
|
|
388
|
+
alphaLabel: "Opacity",
|
|
389
|
+
hexLabel: "Color in hex",
|
|
390
|
+
modeLabel: "Input mode",
|
|
391
|
+
swatchesLabel: "Swatches",
|
|
392
|
+
eyedropperLabel: "Eyedropper",
|
|
393
|
+
chooseLabel: "Choose color"
|
|
389
394
|
},
|
|
390
|
-
timeline: { playLabel: "
|
|
391
|
-
toast: { closeLabel: "
|
|
395
|
+
timeline: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
|
|
396
|
+
toast: { closeLabel: "Close notification" }
|
|
392
397
|
};
|
|
393
398
|
const confirmDefaults = {
|
|
394
|
-
ok:
|
|
395
|
-
cancel:
|
|
399
|
+
ok: localeEn.confirm.ok,
|
|
400
|
+
cancel: localeEn.confirm.cancel,
|
|
396
401
|
surface: "glass"
|
|
397
402
|
};
|
|
398
403
|
const currentConfirm = ref(null);
|
|
@@ -449,7 +454,7 @@ const toastDefaults = {
|
|
|
449
454
|
timeout: 3e3,
|
|
450
455
|
closable: true,
|
|
451
456
|
progress: true,
|
|
452
|
-
closeLabel:
|
|
457
|
+
closeLabel: localeEn.toast.closeLabel,
|
|
453
458
|
surface: "glass"
|
|
454
459
|
};
|
|
455
460
|
const toasts = ref([]);
|
|
@@ -515,96 +520,96 @@ function hasToastViewport() {
|
|
|
515
520
|
}
|
|
516
521
|
return Boolean(document.querySelector("[data-tao-toast-viewport]"));
|
|
517
522
|
}
|
|
518
|
-
const
|
|
519
|
-
code: "
|
|
520
|
-
alert: { closeLabel: "
|
|
523
|
+
const localeRu = {
|
|
524
|
+
code: "ru-RU",
|
|
525
|
+
alert: { closeLabel: "Закрыть" },
|
|
521
526
|
avatar: {
|
|
522
|
-
fallbackLabel: "
|
|
523
|
-
notificationsLabel: "{count}
|
|
527
|
+
fallbackLabel: "Аватар",
|
|
528
|
+
notificationsLabel: "{count} уведомлений",
|
|
524
529
|
dotLabels: {
|
|
525
|
-
success: "
|
|
526
|
-
danger: "
|
|
527
|
-
warning: "
|
|
528
|
-
info: "
|
|
529
|
-
neutral: "
|
|
530
|
+
success: "в сети",
|
|
531
|
+
danger: "занят",
|
|
532
|
+
warning: "отошёл",
|
|
533
|
+
info: "статус",
|
|
534
|
+
neutral: "не в сети"
|
|
530
535
|
}
|
|
531
536
|
},
|
|
532
|
-
breadcrumb: { ariaLabel: "
|
|
537
|
+
breadcrumb: { ariaLabel: "Хлебные крошки" },
|
|
533
538
|
carousel: {
|
|
534
|
-
ariaLabel: "
|
|
535
|
-
prevLabel: "
|
|
536
|
-
nextLabel: "
|
|
537
|
-
dotsLabel: "
|
|
538
|
-
slideLabel: "
|
|
539
|
+
ariaLabel: "Лента",
|
|
540
|
+
prevLabel: "Назад",
|
|
541
|
+
nextLabel: "Вперёд",
|
|
542
|
+
dotsLabel: "Слайды",
|
|
543
|
+
slideLabel: "Слайд {n} из {count}"
|
|
539
544
|
},
|
|
540
545
|
combobox: {
|
|
541
|
-
placeholder: "
|
|
542
|
-
emptyText: "
|
|
543
|
-
clearText: "
|
|
544
|
-
createText: "
|
|
546
|
+
placeholder: "Начните вводить",
|
|
547
|
+
emptyText: "Ничего не найдено",
|
|
548
|
+
clearText: "Очистить",
|
|
549
|
+
createText: "Добавить «{text}»"
|
|
545
550
|
},
|
|
546
|
-
confirm: { ok: "
|
|
547
|
-
copy: { copyLabel: "
|
|
551
|
+
confirm: { ok: "ОК", cancel: "Отмена" },
|
|
552
|
+
copy: { copyLabel: "Копировать", successText: "Скопировано!" },
|
|
548
553
|
date: {
|
|
549
|
-
placeholder: "
|
|
550
|
-
todayText: "
|
|
551
|
-
clearText: "
|
|
552
|
-
prevMonthLabel: "
|
|
553
|
-
nextMonthLabel: "
|
|
554
|
+
placeholder: "Дата",
|
|
555
|
+
todayText: "Сегодня",
|
|
556
|
+
clearText: "Очистить",
|
|
557
|
+
prevMonthLabel: "Предыдущий месяц",
|
|
558
|
+
nextMonthLabel: "Следующий месяц"
|
|
554
559
|
},
|
|
555
560
|
dateRange: {
|
|
556
|
-
placeholder: "
|
|
557
|
-
todayText: "
|
|
558
|
-
clearText: "
|
|
559
|
-
prevMonthLabel: "
|
|
560
|
-
nextMonthLabel: "
|
|
561
|
+
placeholder: "Период",
|
|
562
|
+
todayText: "Сегодня",
|
|
563
|
+
clearText: "Очистить",
|
|
564
|
+
prevMonthLabel: "Предыдущий месяц",
|
|
565
|
+
nextMonthLabel: "Следующий месяц"
|
|
561
566
|
},
|
|
562
|
-
drawer: { closeLabel: "
|
|
563
|
-
dropdownMenu: { menuLabel: "
|
|
564
|
-
empty: { title: "
|
|
567
|
+
drawer: { closeLabel: "Закрыть" },
|
|
568
|
+
dropdownMenu: { menuLabel: "Меню" },
|
|
569
|
+
empty: { title: "Ничего нет" },
|
|
565
570
|
fileDrop: {
|
|
566
|
-
clearLabel: "
|
|
567
|
-
removeLabel: "
|
|
568
|
-
zoneText: "
|
|
569
|
-
units: ["
|
|
570
|
-
decimalSeparator: "
|
|
571
|
+
clearLabel: "Очистить файлы",
|
|
572
|
+
removeLabel: "Убрать «{name}»",
|
|
573
|
+
zoneText: "Перетащите файл сюда или нажмите, чтобы выбрать",
|
|
574
|
+
units: ["Б", "КБ", "МБ"],
|
|
575
|
+
decimalSeparator: ","
|
|
571
576
|
},
|
|
572
|
-
inputNumber: { incrementLabel: "
|
|
573
|
-
list: { emptyText: "
|
|
574
|
-
modal: { closeLabel: "
|
|
577
|
+
inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
|
|
578
|
+
list: { emptyText: "Ничего нет" },
|
|
579
|
+
modal: { closeLabel: "Закрыть" },
|
|
575
580
|
pagination: {
|
|
576
|
-
ariaLabel: "
|
|
577
|
-
prevLabel: "
|
|
578
|
-
nextLabel: "
|
|
579
|
-
pageLabel: "
|
|
580
|
-
jumpPrevLabel: "
|
|
581
|
-
jumpNextLabel: "
|
|
582
|
-
totalText: "{from}–{to}
|
|
583
|
-
emptyTotalText: "0
|
|
581
|
+
ariaLabel: "Пагинация",
|
|
582
|
+
prevLabel: "Назад",
|
|
583
|
+
nextLabel: "Вперёд",
|
|
584
|
+
pageLabel: "Страница {page}",
|
|
585
|
+
jumpPrevLabel: "Назад на {n} страниц",
|
|
586
|
+
jumpNextLabel: "Вперёд на {n} страниц",
|
|
587
|
+
totalText: "{from}–{to} из {total}",
|
|
588
|
+
emptyTotalText: "0 из 0"
|
|
584
589
|
},
|
|
585
|
-
quantity: { decrementLabel: "
|
|
586
|
-
scrollTop: { ariaLabel: "
|
|
587
|
-
select: { placeholder: "
|
|
590
|
+
quantity: { decrementLabel: "Уменьшить", removeLabel: "Убрать", incrementLabel: "Увеличить" },
|
|
591
|
+
scrollTop: { ariaLabel: "Наверх" },
|
|
592
|
+
select: { placeholder: "Выберите", clearText: "Очистить" },
|
|
588
593
|
stages: {
|
|
589
|
-
ariaLabel: "
|
|
590
|
-
statusLabels: { wait: "
|
|
594
|
+
ariaLabel: "Стадии",
|
|
595
|
+
statusLabels: { wait: "ожидание", work: "в работе", ok: "готово", bad: "ошибка" }
|
|
591
596
|
},
|
|
592
|
-
table: { emptyText: "
|
|
593
|
-
tag: { closeLabel: "
|
|
597
|
+
table: { emptyText: "Нет данных" },
|
|
598
|
+
tag: { closeLabel: "Убрать" },
|
|
594
599
|
colorPicker: {
|
|
595
|
-
areaLabel: "
|
|
596
|
-
hueLabel: "
|
|
597
|
-
alphaLabel: "
|
|
598
|
-
hexLabel: "
|
|
599
|
-
modeLabel: "
|
|
600
|
-
swatchesLabel: "
|
|
601
|
-
eyedropperLabel: "
|
|
602
|
-
chooseLabel: "
|
|
600
|
+
areaLabel: "Насыщенность и яркость",
|
|
601
|
+
hueLabel: "Оттенок",
|
|
602
|
+
alphaLabel: "Прозрачность",
|
|
603
|
+
hexLabel: "Цвет в hex",
|
|
604
|
+
modeLabel: "Способ ввода",
|
|
605
|
+
swatchesLabel: "Образцы",
|
|
606
|
+
eyedropperLabel: "Пипетка",
|
|
607
|
+
chooseLabel: "Выбрать цвет"
|
|
603
608
|
},
|
|
604
|
-
timeline: { playLabel: "
|
|
605
|
-
toast: { closeLabel: "
|
|
609
|
+
timeline: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
|
|
610
|
+
toast: { closeLabel: "Закрыть уведомление" }
|
|
606
611
|
};
|
|
607
|
-
const current = shallowRef(
|
|
612
|
+
const current = shallowRef(localeEn);
|
|
608
613
|
function taoLocale() {
|
|
609
614
|
return current.value;
|
|
610
615
|
}
|
|
@@ -623,7 +628,7 @@ function merge(base, overrides) {
|
|
|
623
628
|
}
|
|
624
629
|
return out;
|
|
625
630
|
}
|
|
626
|
-
function setTaoLocale(locale, base =
|
|
631
|
+
function setTaoLocale(locale, base = localeEn) {
|
|
627
632
|
current.value = merge(base, locale);
|
|
628
633
|
configureToastDefaults({ closeLabel: current.value.toast.closeLabel });
|
|
629
634
|
configureConfirmDefaults({ ok: current.value.confirm.ok, cancel: current.value.confirm.cancel });
|
|
@@ -649,7 +654,7 @@ const _hoisted_2$I = {
|
|
|
649
654
|
key: 0,
|
|
650
655
|
class: "tao-input-number__steppers"
|
|
651
656
|
};
|
|
652
|
-
const _hoisted_3$
|
|
657
|
+
const _hoisted_3$B = ["aria-label", "disabled"];
|
|
653
658
|
const _hoisted_4$v = { "aria-hidden": "true" };
|
|
654
659
|
const _hoisted_5$n = ["aria-label", "disabled"];
|
|
655
660
|
const _hoisted_6$i = { "aria-hidden": "true" };
|
|
@@ -829,7 +834,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
829
834
|
_cache[2] || (_cache[2] = createTextVNode("+", -1))
|
|
830
835
|
], true)
|
|
831
836
|
])
|
|
832
|
-
], 8, _hoisted_3$
|
|
837
|
+
], 8, _hoisted_3$B),
|
|
833
838
|
createElementVNode("button", {
|
|
834
839
|
type: "button",
|
|
835
840
|
class: "tao-input-number__step",
|
|
@@ -852,7 +857,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
852
857
|
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3f4e6197"]]);
|
|
853
858
|
const _hoisted_1$O = ["aria-label", "disabled"];
|
|
854
859
|
const _hoisted_2$H = { "aria-hidden": "true" };
|
|
855
|
-
const _hoisted_3$
|
|
860
|
+
const _hoisted_3$A = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
856
861
|
const _hoisted_4$u = ["aria-label", "disabled"];
|
|
857
862
|
const _hoisted_5$m = { "aria-hidden": "true" };
|
|
858
863
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
@@ -1023,7 +1028,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1023
1028
|
onFocus,
|
|
1024
1029
|
onBlur,
|
|
1025
1030
|
onKeydown
|
|
1026
|
-
}, null, 40, _hoisted_3$
|
|
1031
|
+
}, null, 40, _hoisted_3$A),
|
|
1027
1032
|
createElementVNode("button", {
|
|
1028
1033
|
type: "button",
|
|
1029
1034
|
class: "tao-quantity__btn tao-quantity__btn--inc",
|
|
@@ -1050,7 +1055,7 @@ const _hoisted_2$G = {
|
|
|
1050
1055
|
key: 0,
|
|
1051
1056
|
class: "tao-card__overlay"
|
|
1052
1057
|
};
|
|
1053
|
-
const _hoisted_3$
|
|
1058
|
+
const _hoisted_3$z = {
|
|
1054
1059
|
key: 1,
|
|
1055
1060
|
class: "tao-card__overlay"
|
|
1056
1061
|
};
|
|
@@ -1126,7 +1131,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
1126
1131
|
_ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
|
|
1127
1132
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1128
1133
|
])) : createCommentVNode("", true)
|
|
1129
|
-
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1134
|
+
])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
1130
1135
|
renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
|
|
1131
1136
|
])) : createCommentVNode("", true),
|
|
1132
1137
|
hasContent.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -1194,7 +1199,15 @@ function trapTab(event, root) {
|
|
|
1194
1199
|
if (!event.shiftKey && document.activeElement === last) {
|
|
1195
1200
|
event.preventDefault();
|
|
1196
1201
|
first.focus();
|
|
1202
|
+
return;
|
|
1197
1203
|
}
|
|
1204
|
+
const backwards = event.shiftKey;
|
|
1205
|
+
setTimeout(() => {
|
|
1206
|
+
if (!root.isConnected || root.contains(document.activeElement)) {
|
|
1207
|
+
return;
|
|
1208
|
+
}
|
|
1209
|
+
(backwards ? last : first).focus();
|
|
1210
|
+
}, 0);
|
|
1198
1211
|
}
|
|
1199
1212
|
let locks = 0;
|
|
1200
1213
|
let previousOverflow = "";
|
|
@@ -1226,7 +1239,7 @@ const _hoisted_2$F = {
|
|
|
1226
1239
|
key: 0,
|
|
1227
1240
|
class: "tao-modal__header"
|
|
1228
1241
|
};
|
|
1229
|
-
const _hoisted_3$
|
|
1242
|
+
const _hoisted_3$y = ["id"];
|
|
1230
1243
|
const _hoisted_4$s = { key: 1 };
|
|
1231
1244
|
const _hoisted_5$k = ["aria-label"];
|
|
1232
1245
|
const _hoisted_6$g = { "aria-hidden": "true" };
|
|
@@ -1358,7 +1371,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
1358
1371
|
key: 0,
|
|
1359
1372
|
id: unref(titleId),
|
|
1360
1373
|
class: "tao-modal__title"
|
|
1361
|
-
}, toDisplayString(__props.title), 9, _hoisted_3$
|
|
1374
|
+
}, toDisplayString(__props.title), 9, _hoisted_3$y)) : (openBlock(), createElementBlock("span", _hoisted_4$s))
|
|
1362
1375
|
], true),
|
|
1363
1376
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
1364
1377
|
key: 0,
|
|
@@ -1611,7 +1624,7 @@ function isMarkActive(markValue, values) {
|
|
|
1611
1624
|
}
|
|
1612
1625
|
const _hoisted_1$K = ["aria-disabled"];
|
|
1613
1626
|
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"];
|
|
1614
|
-
const _hoisted_3$
|
|
1627
|
+
const _hoisted_3$x = {
|
|
1615
1628
|
key: 0,
|
|
1616
1629
|
class: "tao-slider__value"
|
|
1617
1630
|
};
|
|
@@ -1853,7 +1866,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
1853
1866
|
onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
|
|
1854
1867
|
}, null, 46, _hoisted_2$D);
|
|
1855
1868
|
}), 128)),
|
|
1856
|
-
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1869
|
+
__props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
1857
1870
|
renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
|
|
1858
1871
|
createTextVNode(toDisplayString(barText.value), 1),
|
|
1859
1872
|
renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
|
|
@@ -1950,7 +1963,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
1950
1963
|
});
|
|
1951
1964
|
const _hoisted_1$J = { class: "tao-timeline__controls" };
|
|
1952
1965
|
const _hoisted_2$C = { class: "tao-timeline__track" };
|
|
1953
|
-
const _hoisted_3$
|
|
1966
|
+
const _hoisted_3$w = {
|
|
1954
1967
|
key: 0,
|
|
1955
1968
|
class: "tao-timeline__time"
|
|
1956
1969
|
};
|
|
@@ -2046,7 +2059,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
2046
2059
|
} : void 0
|
|
2047
2060
|
]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
|
|
2048
2061
|
]),
|
|
2049
|
-
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2062
|
+
__props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
|
|
2050
2063
|
renderSlot(_ctx.$slots, "time", {
|
|
2051
2064
|
time: __props.modelValue,
|
|
2052
2065
|
length: __props.length,
|
|
@@ -2426,7 +2439,7 @@ const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data
|
|
|
2426
2439
|
const spoilerGroupKey = Symbol("taoSpoilerGroup");
|
|
2427
2440
|
const _hoisted_1$H = { class: "tao-spoiler" };
|
|
2428
2441
|
const _hoisted_2$B = ["aria-expanded", "aria-controls"];
|
|
2429
|
-
const _hoisted_3$
|
|
2442
|
+
const _hoisted_3$v = {
|
|
2430
2443
|
key: 0,
|
|
2431
2444
|
class: "tao-spoiler__title"
|
|
2432
2445
|
};
|
|
@@ -2499,7 +2512,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2499
2512
|
createElementVNode("span", {
|
|
2500
2513
|
class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
|
|
2501
2514
|
}, "▶", 2),
|
|
2502
|
-
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2515
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
2503
2516
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2504
2517
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2505
2518
|
], true)
|
|
@@ -2856,7 +2869,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
2856
2869
|
const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-ad288026"]]);
|
|
2857
2870
|
const _hoisted_1$E = { class: "tao-split__pane tao-split__pane--start" };
|
|
2858
2871
|
const _hoisted_2$A = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
|
|
2859
|
-
const _hoisted_3$
|
|
2872
|
+
const _hoisted_3$u = { class: "tao-split__pane tao-split__pane--end" };
|
|
2860
2873
|
const _hoisted_4$p = {
|
|
2861
2874
|
key: 0,
|
|
2862
2875
|
class: "tao-split__shield"
|
|
@@ -3182,7 +3195,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
3182
3195
|
onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
3183
3196
|
}, ["prevent"]))
|
|
3184
3197
|
}, null, 40, _hoisted_2$A),
|
|
3185
|
-
createElementVNode("div", _hoisted_3$
|
|
3198
|
+
createElementVNode("div", _hoisted_3$u, [
|
|
3186
3199
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
3187
3200
|
]),
|
|
3188
3201
|
isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$p)) : createCommentVNode("", true)
|
|
@@ -3283,7 +3296,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
3283
3296
|
const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-49a9f1b2"]]);
|
|
3284
3297
|
const _hoisted_1$C = { class: "tao-image" };
|
|
3285
3298
|
const _hoisted_2$z = ["src", "alt", "loading"];
|
|
3286
|
-
const _hoisted_3$
|
|
3299
|
+
const _hoisted_3$t = { class: "tao-image__placeholder" };
|
|
3287
3300
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
3288
3301
|
...{ name: "TaoImage" },
|
|
3289
3302
|
__name: "TaoImage",
|
|
@@ -3328,7 +3341,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
3328
3341
|
onError: handleError
|
|
3329
3342
|
}, null, 42, _hoisted_2$z)) : createCommentVNode("", true),
|
|
3330
3343
|
!__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3331
|
-
createElementVNode("div", _hoisted_3$
|
|
3344
|
+
createElementVNode("div", _hoisted_3$t, toDisplayString(__props.placeholderText), 1)
|
|
3332
3345
|
], true, 1) : createCommentVNode("", true)
|
|
3333
3346
|
]);
|
|
3334
3347
|
};
|
|
@@ -3337,7 +3350,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
3337
3350
|
const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-61f47c52"]]);
|
|
3338
3351
|
const _hoisted_1$B = ["for"];
|
|
3339
3352
|
const _hoisted_2$y = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
3340
|
-
const _hoisted_3$
|
|
3353
|
+
const _hoisted_3$s = {
|
|
3341
3354
|
key: 0,
|
|
3342
3355
|
class: "tao-checkbox__label"
|
|
3343
3356
|
};
|
|
@@ -3425,7 +3438,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3425
3438
|
onChange: onInputChange
|
|
3426
3439
|
}, null, 40, _hoisted_2$y),
|
|
3427
3440
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
|
|
3428
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3441
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_3$s, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, [
|
|
3429
3442
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3430
3443
|
])),
|
|
3431
3444
|
renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
|
|
@@ -3439,7 +3452,7 @@ const _hoisted_1$A = {
|
|
|
3439
3452
|
class: "tao-tag__prefix"
|
|
3440
3453
|
};
|
|
3441
3454
|
const _hoisted_2$x = { class: "tao-tag__text" };
|
|
3442
|
-
const _hoisted_3$
|
|
3455
|
+
const _hoisted_3$r = ["aria-label"];
|
|
3443
3456
|
const _hoisted_4$n = { "aria-hidden": "true" };
|
|
3444
3457
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
3445
3458
|
...{ name: "TaoTag" },
|
|
@@ -3511,7 +3524,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3511
3524
|
_cache[0] || (_cache[0] = createTextVNode("✕", -1))
|
|
3512
3525
|
], true)
|
|
3513
3526
|
])
|
|
3514
|
-
], 8, _hoisted_3$
|
|
3527
|
+
], 8, _hoisted_3$r)) : createCommentVNode("", true)
|
|
3515
3528
|
], 6);
|
|
3516
3529
|
};
|
|
3517
3530
|
}
|
|
@@ -3522,7 +3535,7 @@ const _hoisted_2$w = {
|
|
|
3522
3535
|
key: 1,
|
|
3523
3536
|
class: "tao-divider__text"
|
|
3524
3537
|
};
|
|
3525
|
-
const _hoisted_3$
|
|
3538
|
+
const _hoisted_3$q = {
|
|
3526
3539
|
key: 2,
|
|
3527
3540
|
class: "tao-divider__line tao-divider__line--end"
|
|
3528
3541
|
};
|
|
@@ -3565,7 +3578,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
3565
3578
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
3566
3579
|
], true)
|
|
3567
3580
|
])) : createCommentVNode("", true),
|
|
3568
|
-
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3581
|
+
__props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$q)) : createCommentVNode("", true)
|
|
3569
3582
|
], 10, _hoisted_1$z);
|
|
3570
3583
|
};
|
|
3571
3584
|
}
|
|
@@ -3817,13 +3830,23 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
3817
3830
|
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fb037862"]]);
|
|
3818
3831
|
const _hoisted_1$w = ["tabindex", "aria-label"];
|
|
3819
3832
|
const _hoisted_2$t = { class: "tao-scroll-top__content" };
|
|
3833
|
+
const _hoisted_3$p = {
|
|
3834
|
+
key: 1,
|
|
3835
|
+
class: "tao-scroll-top__text",
|
|
3836
|
+
"aria-hidden": "true"
|
|
3837
|
+
};
|
|
3820
3838
|
const RIPPLE_DURATION = 750;
|
|
3821
3839
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
3822
|
-
...{ name: "TaoScrollTop" },
|
|
3840
|
+
...{ name: "TaoScrollTop", inheritAttrs: false },
|
|
3823
3841
|
__name: "TaoScrollTop",
|
|
3824
3842
|
props: {
|
|
3843
|
+
variant: { default: "solid" },
|
|
3844
|
+
side: { default: "right" },
|
|
3845
|
+
offset: { default: void 0 },
|
|
3846
|
+
label: { default: void 0 },
|
|
3847
|
+
labelSide: { default: void 0 },
|
|
3825
3848
|
size: { default: 40 },
|
|
3826
|
-
right: { default:
|
|
3849
|
+
right: { default: void 0 },
|
|
3827
3850
|
bottom: { default: 24 },
|
|
3828
3851
|
zIndex: { default: 1e3 },
|
|
3829
3852
|
boundary: { default: 300 },
|
|
@@ -3834,17 +3857,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
3834
3857
|
},
|
|
3835
3858
|
setup(__props) {
|
|
3836
3859
|
const props = __props;
|
|
3837
|
-
useLocaleText(props, "scrollTop");
|
|
3860
|
+
const l10n = useLocaleText(props, "scrollTop");
|
|
3838
3861
|
const fmtProp = (value, unit = "px") => typeof value === "number" ? value + unit : value;
|
|
3839
3862
|
let prevPos = 0;
|
|
3840
3863
|
let activeBack = false;
|
|
3841
|
-
const
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
right: fmtProp(props.right),
|
|
3864
|
+
const isText = computed(() => props.variant === "text");
|
|
3865
|
+
const wrapStyle = computed(() => ({
|
|
3866
|
+
[props.side]: fmtProp(props.offset ?? props.right ?? 24),
|
|
3845
3867
|
bottom: fmtProp(props.bottom),
|
|
3846
3868
|
zIndex: props.zIndex
|
|
3847
|
-
});
|
|
3869
|
+
}));
|
|
3870
|
+
const mainStyle = computed(() => ({
|
|
3871
|
+
height: fmtProp(props.size),
|
|
3872
|
+
...isText.value ? {} : { width: fmtProp(props.size) }
|
|
3873
|
+
}));
|
|
3874
|
+
const captionSide = computed(() => props.labelSide ?? (props.side === "right" ? "left" : "right"));
|
|
3875
|
+
const caption = computed(() => props.label ?? (isText.value ? l10n.value.ariaLabel : void 0));
|
|
3876
|
+
const accessibleName = computed(() => props.ariaLabel || props.label || l10n.value.ariaLabel);
|
|
3848
3877
|
const rippleStyle = reactive({
|
|
3849
3878
|
top: fmtProp(-1 * props.size),
|
|
3850
3879
|
left: fmtProp(-1 * props.size),
|
|
@@ -3887,7 +3916,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
3887
3916
|
isActive.value = tooFar && activeBack;
|
|
3888
3917
|
}
|
|
3889
3918
|
function onClick(e) {
|
|
3890
|
-
if (!isRippleActive.value) {
|
|
3919
|
+
if (!isText.value && !isRippleActive.value) {
|
|
3891
3920
|
const elTarget = e.currentTarget;
|
|
3892
3921
|
if (elTarget) {
|
|
3893
3922
|
const rect = elTarget.getBoundingClientRect();
|
|
@@ -3916,40 +3945,56 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
3916
3945
|
return (_ctx, _cache) => {
|
|
3917
3946
|
return openBlock(), createBlock(Transition, { name: "tao-scroll-top-fade" }, {
|
|
3918
3947
|
default: withCtx(() => [
|
|
3919
|
-
isActive.value ? (openBlock(), createElementBlock("
|
|
3948
|
+
isActive.value ? (openBlock(), createElementBlock("div", {
|
|
3920
3949
|
key: 0,
|
|
3921
|
-
|
|
3922
|
-
style: normalizeStyle(
|
|
3923
|
-
tabindex: props.tabindex,
|
|
3924
|
-
class: normalizeClass(["tao-scroll-top", { "tao-scroll-top--no-outline": (props.outline ?? props.hasOutline) === false }]),
|
|
3925
|
-
"aria-label": props.ariaLabel,
|
|
3926
|
-
onClick: withModifiers(onClick, ["prevent"])
|
|
3950
|
+
class: "tao-scroll-top-wrap",
|
|
3951
|
+
style: normalizeStyle(wrapStyle.value)
|
|
3927
3952
|
}, [
|
|
3928
|
-
createElementVNode("
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3953
|
+
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
3954
|
+
type: "button",
|
|
3955
|
+
style: mainStyle.value,
|
|
3956
|
+
tabindex: props.tabindex,
|
|
3957
|
+
class: ["tao-scroll-top", [
|
|
3958
|
+
`tao-scroll-top--${props.variant}`,
|
|
3959
|
+
{ "tao-scroll-top--no-outline": (props.outline ?? props.hasOutline) === false },
|
|
3960
|
+
isText.value && `tao-scroll-top--caption-${captionSide.value}`
|
|
3961
|
+
]],
|
|
3962
|
+
"aria-label": accessibleName.value,
|
|
3963
|
+
onClick: withModifiers(onClick, ["prevent"])
|
|
3964
|
+
}), [
|
|
3965
|
+
createElementVNode("span", _hoisted_2$t, [
|
|
3966
|
+
!isText.value ? (openBlock(), createElementBlock("span", {
|
|
3967
|
+
key: 0,
|
|
3968
|
+
class: normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
|
|
3969
|
+
style: normalizeStyle(rippleStyle)
|
|
3970
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
3971
|
+
isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
|
|
3972
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3973
|
+
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
3974
|
+
class: "tao-scroll-top__icon",
|
|
3975
|
+
viewBox: "0 0 24 24",
|
|
3976
|
+
width: "16",
|
|
3977
|
+
height: "16",
|
|
3978
|
+
fill: "currentColor"
|
|
3979
|
+
}, [
|
|
3980
|
+
createElementVNode("path", { d: "M12 6l-7 7 1.4 1.4L12 8.8l5.6 5.6L19 13z" })
|
|
3981
|
+
], -1))
|
|
3982
|
+
], true)
|
|
3983
|
+
])
|
|
3984
|
+
], 16, _hoisted_1$w),
|
|
3985
|
+
!isText.value && caption.value ? (openBlock(), createElementBlock("span", {
|
|
3986
|
+
key: 0,
|
|
3987
|
+
class: normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
|
|
3988
|
+
"aria-hidden": "true"
|
|
3989
|
+
}, toDisplayString(caption.value), 3)) : createCommentVNode("", true)
|
|
3990
|
+
], 4)) : createCommentVNode("", true)
|
|
3946
3991
|
]),
|
|
3947
3992
|
_: 3
|
|
3948
3993
|
});
|
|
3949
3994
|
};
|
|
3950
3995
|
}
|
|
3951
3996
|
});
|
|
3952
|
-
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
3997
|
+
const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-89b8959a"]]);
|
|
3953
3998
|
const _hoisted_1$v = { class: "tao-progress" };
|
|
3954
3999
|
const _hoisted_2$s = {
|
|
3955
4000
|
key: 0,
|
|
@@ -5306,7 +5351,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5306
5351
|
disabled: { type: Boolean, default: false },
|
|
5307
5352
|
error: { type: Boolean, default: false },
|
|
5308
5353
|
size: {},
|
|
5309
|
-
block: { type: Boolean, default: false }
|
|
5354
|
+
block: { type: Boolean, default: false },
|
|
5355
|
+
minWidth: {}
|
|
5310
5356
|
},
|
|
5311
5357
|
emits: ["update:modelValue", "change"],
|
|
5312
5358
|
setup(__props, { emit: __emit }) {
|
|
@@ -5319,6 +5365,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5319
5365
|
const groupDisabled = computed(() => props.disabled);
|
|
5320
5366
|
const invalid = computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
|
|
5321
5367
|
const describedBy = computed(() => field == null ? void 0 : field.describedBy.value);
|
|
5368
|
+
const minWidthStyle = computed(
|
|
5369
|
+
() => props.minWidth === void 0 ? void 0 : { "--tao-segmented-option-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
|
|
5370
|
+
);
|
|
5322
5371
|
const trackRef = ref(null);
|
|
5323
5372
|
const thumbStyle = ref({ opacity: "0" });
|
|
5324
5373
|
let resizeObserver = null;
|
|
@@ -5401,6 +5450,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5401
5450
|
}
|
|
5402
5451
|
]]),
|
|
5403
5452
|
disabled: __props.disabled,
|
|
5453
|
+
style: normalizeStyle(minWidthStyle.value),
|
|
5404
5454
|
"aria-describedby": describedBy.value,
|
|
5405
5455
|
"aria-invalid": invalid.value || void 0,
|
|
5406
5456
|
"aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
|
|
@@ -5419,11 +5469,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5419
5469
|
}, null, 4),
|
|
5420
5470
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5421
5471
|
], 512)
|
|
5422
|
-
],
|
|
5472
|
+
], 14, _hoisted_1$p);
|
|
5423
5473
|
};
|
|
5424
5474
|
}
|
|
5425
5475
|
});
|
|
5426
|
-
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
5476
|
+
const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e4e082a4"]]);
|
|
5427
5477
|
const _hoisted_1$o = ["for"];
|
|
5428
5478
|
const _hoisted_2$m = ["id", "name", "value", "checked", "disabled", "aria-label"];
|
|
5429
5479
|
const _hoisted_3$j = { class: "tao-segmented-option__face" };
|
|
@@ -5532,7 +5582,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5532
5582
|
};
|
|
5533
5583
|
}
|
|
5534
5584
|
});
|
|
5535
|
-
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-
|
|
5585
|
+
const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-588d637d"]]);
|
|
5536
5586
|
const _hoisted_1$n = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
|
|
5537
5587
|
const _hoisted_2$l = { class: "tao-color-picker__strips" };
|
|
5538
5588
|
const _hoisted_3$i = { class: "tao-color-picker__row" };
|
|
@@ -6522,7 +6572,7 @@ function isTaoDateInRange(iso, min, max) {
|
|
|
6522
6572
|
}
|
|
6523
6573
|
return true;
|
|
6524
6574
|
}
|
|
6525
|
-
function formatTaoDateLabel(iso, locale = "
|
|
6575
|
+
function formatTaoDateLabel(iso, locale = "en-US") {
|
|
6526
6576
|
const parts = parseTaoDate(iso);
|
|
6527
6577
|
if (!parts) {
|
|
6528
6578
|
return "";
|
|
@@ -6547,7 +6597,7 @@ function parseTaoDateRange(value) {
|
|
|
6547
6597
|
}
|
|
6548
6598
|
return sortTaoDateRange(formatTaoDateIso(start), formatTaoDateIso(end));
|
|
6549
6599
|
}
|
|
6550
|
-
function formatTaoDateRangeLabel(start, end, locale = "
|
|
6600
|
+
function formatTaoDateRangeLabel(start, end, locale = "en-US") {
|
|
6551
6601
|
const fromParts = parseTaoDate(start);
|
|
6552
6602
|
const toParts = parseTaoDate(end);
|
|
6553
6603
|
if (!fromParts || !toParts) {
|
|
@@ -6563,7 +6613,7 @@ function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
|
|
|
6563
6613
|
});
|
|
6564
6614
|
return `${from} — ${formatTaoDateLabel(end, locale)}`;
|
|
6565
6615
|
}
|
|
6566
|
-
function formatTaoMonthLabel(year, month, locale = "
|
|
6616
|
+
function formatTaoMonthLabel(year, month, locale = "en-US") {
|
|
6567
6617
|
const label = new Date(year, month - 1, 1).toLocaleDateString(locale, {
|
|
6568
6618
|
month: "long",
|
|
6569
6619
|
year: "numeric"
|
|
@@ -6577,7 +6627,7 @@ function taoDateWeekdayIndex(iso) {
|
|
|
6577
6627
|
}
|
|
6578
6628
|
return (new Date(parts.y, parts.m - 1, parts.d).getDay() + 6) % 7;
|
|
6579
6629
|
}
|
|
6580
|
-
function taoWeekdayLabels(locale = "
|
|
6630
|
+
function taoWeekdayLabels(locale = "en-US") {
|
|
6581
6631
|
return Array.from({ length: 7 }, (_, index) => {
|
|
6582
6632
|
const label = new Date(2026, 0, 5 + index).toLocaleDateString(locale, { weekday: "short" });
|
|
6583
6633
|
return label.replace(/\.$/, "");
|