@varlet/ui 2.22.3 → 3.0.0-alpha.1707916363117
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/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/es/action-sheet/ActionSheet.mjs +3 -3
- package/es/back-top/BackTop.mjs +0 -1
- package/es/back-top/backTop.css +1 -1
- package/es/badge/badge.css +1 -1
- package/es/bottom-navigation/BottomNavigation.mjs +1 -1
- package/es/bottom-navigation/bottomNavigation.css +1 -1
- package/es/button/Button.mjs +12 -7
- package/es/button/button.css +1 -1
- package/es/button/props.mjs +1 -0
- package/es/card/Card.mjs +0 -1
- package/es/card/card.css +1 -1
- package/es/cell/cell.css +1 -1
- package/es/chip/Chip.mjs +1 -1
- package/es/chip/chip.css +1 -1
- package/es/chip/props.mjs +0 -2
- package/es/collapse-item/collapseItem.css +1 -1
- package/es/countdown/countdown.css +1 -1
- package/es/date-picker/DatePicker.mjs +11 -11
- package/es/date-picker/date-picker.css +1 -1
- package/es/date-picker/props.mjs +0 -2
- package/es/date-picker/src/day-picker-panel.mjs +2 -2
- package/es/date-picker/src/month-picker-panel.mjs +3 -3
- package/es/date-picker/src/panel-header.mjs +11 -9
- package/es/dialog/Dialog.mjs +5 -5
- package/es/divider/divider.css +1 -1
- package/es/fab/Fab.mjs +1 -1
- package/es/fab/fab.css +1 -1
- package/es/field-decorator/FieldDecorator.mjs +33 -15
- package/es/field-decorator/fieldDecorator.css +1 -1
- package/es/field-decorator/props.mjs +4 -0
- package/es/hover-overlay/hoverOverlay.css +1 -1
- package/es/icon/icon.css +1 -1
- package/es/image-preview/ImagePreview.mjs +2 -10
- package/es/image-preview/props.mjs +0 -2
- package/es/index-bar/IndexBar.mjs +1 -1
- package/es/index-bar/props.mjs +0 -2
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +1 -0
- package/es/list/List.mjs +5 -5
- package/es/loading-bar/index.mjs +0 -5
- package/es/locale/en-US.d.ts +2 -2
- package/es/locale/fa-IR.d.ts +2 -2
- package/es/locale/index.mjs +32 -25
- package/es/locale/zh-CN.d.ts +2 -2
- package/es/locale/zh-HK.d.ts +2 -2
- package/es/locale/zh-HK.mjs +2 -2
- package/es/locale/zh-TW.d.ts +2 -2
- package/es/pagination/Pagination.mjs +5 -5
- package/es/pagination/pagination.css +1 -1
- package/es/picker/Picker.mjs +5 -5
- package/es/picker/picker.css +1 -1
- package/es/progress/Progress.mjs +1 -1
- package/es/progress/progress.css +1 -1
- package/es/progress/props.mjs +0 -1
- package/es/slider/slider.css +1 -1
- package/es/step/step.css +1 -1
- package/es/style.css +1 -1
- package/es/styles/common.css +1 -1
- package/es/switch/Switch.mjs +1 -1
- package/es/table/table.css +1 -1
- package/es/themes/dark/badge.mjs +2 -1
- package/es/themes/dark/bottomNavigation.mjs +1 -2
- package/es/themes/dark/button.mjs +3 -1
- package/es/themes/dark/card.mjs +0 -1
- package/es/themes/dark/cell.mjs +1 -2
- package/es/themes/dark/collapse.mjs +1 -2
- package/es/themes/dark/datePicker.mjs +1 -1
- package/es/themes/dark/divider.mjs +0 -1
- package/es/themes/dark/index.mjs +19 -4
- package/es/themes/dark/pagination.mjs +0 -1
- package/es/themes/dark/picker.mjs +0 -1
- package/es/themes/dark/table.mjs +1 -4
- package/es/themes/dark/timePicker.mjs +2 -1
- package/es/themes/index.mjs +3 -1
- package/es/themes/md3-dark/actionSheet.mjs +9 -0
- package/es/themes/md3-dark/appBar.mjs +7 -0
- package/es/themes/md3-dark/avatar.mjs +7 -0
- package/es/themes/md3-dark/backTop.mjs +6 -0
- package/es/themes/md3-dark/badge.mjs +7 -0
- package/es/themes/md3-dark/bottomNavigation.mjs +6 -0
- package/es/themes/md3-dark/bottomNavigationItem.mjs +8 -0
- package/es/themes/md3-dark/breadcrumb.mjs +6 -0
- package/es/themes/md3-dark/button.mjs +10 -0
- package/es/themes/md3-dark/card.mjs +27 -0
- package/es/themes/md3-dark/cell.mjs +6 -0
- package/es/themes/md3-dark/checkbox.mjs +7 -0
- package/es/themes/md3-dark/chip.mjs +8 -0
- package/es/themes/md3-dark/collapse.mjs +7 -0
- package/es/themes/md3-dark/counter.mjs +7 -0
- package/es/themes/md3-dark/datePicker.mjs +19 -0
- package/es/themes/md3-dark/dialog.mjs +15 -0
- package/es/themes/{dark/countdown.mjs → md3-dark/divider.mjs} +1 -1
- package/es/themes/md3-dark/fab.mjs +8 -0
- package/es/themes/md3-dark/fieldDecorator.mjs +7 -0
- package/es/themes/md3-dark/floatingPanel.mjs +10 -0
- package/es/themes/md3-dark/hoverOverlay.mjs +6 -0
- package/es/themes/md3-dark/index.d.ts +5 -0
- package/es/themes/md3-dark/index.mjs +96 -0
- package/es/themes/md3-dark/link.mjs +6 -0
- package/es/themes/md3-dark/menu.mjs +7 -0
- package/es/themes/md3-dark/menuOption.mjs +6 -0
- package/es/themes/md3-dark/menuSelect.mjs +7 -0
- package/es/themes/md3-dark/option.mjs +6 -0
- package/es/themes/md3-dark/pagination.mjs +9 -0
- package/es/themes/md3-dark/paper.mjs +6 -0
- package/es/themes/md3-dark/picker.mjs +10 -0
- package/es/themes/md3-dark/popup.mjs +6 -0
- package/es/themes/md3-dark/progress.mjs +6 -0
- package/es/themes/md3-dark/pullRefresh.mjs +6 -0
- package/es/themes/md3-dark/radio.mjs +7 -0
- package/es/themes/md3-dark/rate.mjs +6 -0
- package/es/themes/md3-dark/result.mjs +16 -0
- package/es/themes/md3-dark/select.mjs +7 -0
- package/es/themes/md3-dark/skeleton.mjs +11 -0
- package/es/themes/md3-dark/slider.mjs +10 -0
- package/es/themes/md3-dark/snackbar.mjs +7 -0
- package/es/themes/md3-dark/steps.mjs +8 -0
- package/es/themes/md3-dark/switch.mjs +7 -0
- package/es/themes/md3-dark/tab.mjs +6 -0
- package/es/themes/md3-dark/table.mjs +9 -0
- package/es/themes/md3-dark/tabs.mjs +6 -0
- package/es/themes/md3-dark/timePicker.mjs +27 -0
- package/es/themes/md3-dark/tooltip.mjs +8 -0
- package/es/themes/md3-dark/uploader.mjs +11 -0
- package/es/themes/md3-dark/watermark.mjs +6 -0
- package/es/themes/md3-light/actionSheet.mjs +9 -0
- package/es/themes/md3-light/avatar.mjs +7 -0
- package/es/themes/md3-light/backTop.mjs +6 -0
- package/es/themes/md3-light/bottomNavigation.mjs +7 -0
- package/es/themes/md3-light/bottomNavigationItem.mjs +7 -0
- package/es/themes/md3-light/breadcrumb.mjs +6 -0
- package/es/themes/md3-light/button.mjs +10 -0
- package/es/themes/md3-light/card.mjs +27 -0
- package/es/themes/md3-light/cell.mjs +6 -0
- package/es/themes/md3-light/checkbox.mjs +7 -0
- package/es/themes/md3-light/chip.mjs +8 -0
- package/es/themes/md3-light/collapse.mjs +7 -0
- package/es/themes/md3-light/datePicker.mjs +19 -0
- package/es/themes/md3-light/dialog.mjs +15 -0
- package/es/themes/md3-light/fab.mjs +8 -0
- package/es/themes/md3-light/fieldDecorator.mjs +7 -0
- package/es/themes/md3-light/floatingPanel.mjs +10 -0
- package/es/themes/md3-light/hoverOverlay.mjs +6 -0
- package/es/themes/md3-light/index.d.ts +5 -0
- package/es/themes/md3-light/index.mjs +86 -0
- package/es/themes/md3-light/link.mjs +6 -0
- package/es/themes/md3-light/menu.mjs +7 -0
- package/es/themes/md3-light/menuOption.mjs +6 -0
- package/es/themes/md3-light/menuSelect.mjs +7 -0
- package/es/themes/md3-light/option.mjs +6 -0
- package/es/themes/md3-light/pagination.mjs +6 -0
- package/es/themes/md3-light/paper.mjs +6 -0
- package/es/themes/md3-light/picker.mjs +8 -0
- package/es/themes/md3-light/popup.mjs +6 -0
- package/es/themes/md3-light/pullRefresh.mjs +6 -0
- package/es/themes/md3-light/radio.mjs +7 -0
- package/es/themes/md3-light/rate.mjs +6 -0
- package/es/themes/md3-light/result.mjs +12 -0
- package/es/themes/md3-light/select.mjs +7 -0
- package/es/themes/md3-light/slider.mjs +10 -0
- package/es/themes/md3-light/snackbar.mjs +7 -0
- package/es/themes/md3-light/switch.mjs +7 -0
- package/es/themes/md3-light/tab.mjs +6 -0
- package/es/themes/md3-light/table.mjs +7 -0
- package/es/themes/md3-light/tabs.mjs +6 -0
- package/es/themes/md3-light/timePicker.mjs +25 -0
- package/es/themes/md3-light/tooltip.mjs +7 -0
- package/es/themes/md3-light/uploader.mjs +11 -0
- package/es/time-picker/TimePicker.mjs +24 -16
- package/es/time-picker/clock.mjs +4 -4
- package/es/time-picker/props.mjs +0 -2
- package/es/time-picker/timePicker.css +1 -1
- package/es/tooltip/tooltip.css +1 -1
- package/es/uploader/uploader.css +1 -1
- package/es/varlet.esm.js +6588 -6082
- package/highlight/web-types.en-US.json +15 -6
- package/highlight/web-types.zh-CN.json +15 -6
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +2190 -1566
- package/package.json +8 -7
- package/types/button.d.ts +1 -0
- package/types/buttonGroup.d.ts +1 -1
- package/types/chip.d.ts +0 -2
- package/types/datePicker.d.ts +0 -2
- package/types/imagePreview.d.ts +0 -6
- package/types/indexBar.d.ts +0 -3
- package/types/loadingBar.d.ts +0 -3
- package/types/locale.d.ts +18 -14
- package/types/progress.d.ts +0 -3
- package/types/styleVars.d.ts +192 -68
- package/types/themes.d.ts +2 -0
- package/types/timePicker.d.ts +0 -2
- package/types/uploader.d.ts +1 -0
- package/umd/varlet.js +7 -5
package/es/locale/index.mjs
CHANGED
|
@@ -20,65 +20,72 @@ import zhTW from "./zh-TW.mjs";
|
|
|
20
20
|
import zhHK from "./zh-HK.mjs";
|
|
21
21
|
import faIR from "./fa-IR.mjs";
|
|
22
22
|
import { ref } from "vue";
|
|
23
|
+
import { hasOwn } from "@varlet/shared";
|
|
23
24
|
function useLocale() {
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const add2 = (lang,
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const messages2 = {};
|
|
26
|
+
const currentMessage2 = ref({});
|
|
27
|
+
const add2 = (lang, message) => {
|
|
28
|
+
message.lang = lang;
|
|
29
|
+
messages2[lang] = message;
|
|
29
30
|
};
|
|
30
31
|
const use2 = (lang) => {
|
|
31
|
-
if (!
|
|
32
|
-
console.warn(`The ${lang} does not exist. You can mount a language
|
|
32
|
+
if (!messages2[lang]) {
|
|
33
|
+
console.warn(`The ${lang} does not exist. You can mount a language message using the add method`);
|
|
33
34
|
return {};
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
currentMessage2.value = messages2[lang];
|
|
36
37
|
};
|
|
37
|
-
const merge2 = (lang,
|
|
38
|
-
if (!
|
|
39
|
-
console.warn(`The ${lang} does not exist. You can mount a language
|
|
38
|
+
const merge2 = (lang, message) => {
|
|
39
|
+
if (!messages2[lang]) {
|
|
40
|
+
console.warn(`The ${lang} does not exist. You can mount a language message using the add method`);
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
+
messages2[lang] = __spreadValues(__spreadValues({}, messages2[lang]), message);
|
|
43
44
|
use2(lang);
|
|
44
45
|
};
|
|
46
|
+
const t2 = (id) => {
|
|
47
|
+
if (hasOwn(currentMessage2.value, id)) {
|
|
48
|
+
return currentMessage2.value[id];
|
|
49
|
+
}
|
|
50
|
+
return id;
|
|
51
|
+
};
|
|
45
52
|
return {
|
|
46
|
-
|
|
47
|
-
|
|
53
|
+
messages: messages2,
|
|
54
|
+
currentMessage: currentMessage2,
|
|
48
55
|
add: add2,
|
|
49
56
|
use: use2,
|
|
50
|
-
merge: merge2
|
|
57
|
+
merge: merge2,
|
|
58
|
+
t: t2
|
|
51
59
|
};
|
|
52
60
|
}
|
|
53
|
-
const {
|
|
61
|
+
const { messages, currentMessage, add, use, merge, t } = useLocale();
|
|
54
62
|
add("zh-CN", zhCN);
|
|
55
63
|
use("zh-CN");
|
|
56
|
-
const _LocaleComponent = { zhCN, enUS,
|
|
64
|
+
const _LocaleComponent = { zhCN, enUS, messages, currentMessage, add, use, merge, t, useLocale };
|
|
57
65
|
var stdin_default = {
|
|
58
66
|
zhCN,
|
|
59
67
|
enUS,
|
|
60
68
|
zhTW,
|
|
61
69
|
zhHK,
|
|
62
70
|
faIR,
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
messages,
|
|
72
|
+
currentMessage,
|
|
65
73
|
add,
|
|
66
74
|
use,
|
|
67
75
|
merge,
|
|
76
|
+
t,
|
|
68
77
|
useLocale
|
|
69
78
|
};
|
|
70
79
|
export {
|
|
71
80
|
_LocaleComponent,
|
|
72
81
|
add,
|
|
82
|
+
currentMessage,
|
|
73
83
|
stdin_default as default,
|
|
74
84
|
enUS,
|
|
75
|
-
faIR,
|
|
76
85
|
merge,
|
|
77
|
-
|
|
78
|
-
|
|
86
|
+
messages,
|
|
87
|
+
t,
|
|
79
88
|
use,
|
|
80
89
|
useLocale,
|
|
81
|
-
zhCN
|
|
82
|
-
zhHK,
|
|
83
|
-
zhTW
|
|
90
|
+
zhCN
|
|
84
91
|
};
|
package/es/locale/zh-CN.d.ts
CHANGED
package/es/locale/zh-HK.d.ts
CHANGED
package/es/locale/zh-HK.mjs
CHANGED
package/es/locale/zh-TW.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import VarInput from "../input/index.mjs";
|
|
|
6
6
|
import { defineComponent, ref, computed, watch } from "vue";
|
|
7
7
|
import { props } from "./props.mjs";
|
|
8
8
|
import { isNumber, toNumber, call } from "@varlet/shared";
|
|
9
|
-
import {
|
|
9
|
+
import { t } from "../locale/index.mjs";
|
|
10
10
|
import { createNamespace, formatElevation } from "../utils/components.mjs";
|
|
11
11
|
const { name, n, classes } = createNamespace("pagination");
|
|
12
12
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, withKeys as _withKeys, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, withModifiers as _withModifiers, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
@@ -161,7 +161,7 @@ function __render__(_ctx, _cache) {
|
|
|
161
161
|
}, {
|
|
162
162
|
default: _withCtx(() => [
|
|
163
163
|
_createTextVNode(
|
|
164
|
-
_toDisplayString(option) + _toDisplayString(_ctx.
|
|
164
|
+
_toDisplayString(option) + _toDisplayString(_ctx.t("paginationItem")) + " / " + _toDisplayString(_ctx.t("paginationPage")),
|
|
165
165
|
1
|
|
166
166
|
/* TEXT */
|
|
167
167
|
)
|
|
@@ -187,7 +187,7 @@ function __render__(_ctx, _cache) {
|
|
|
187
187
|
_createElementVNode(
|
|
188
188
|
"span",
|
|
189
189
|
null,
|
|
190
|
-
_toDisplayString(_ctx.size) + _toDisplayString(_ctx.
|
|
190
|
+
_toDisplayString(_ctx.size) + _toDisplayString(_ctx.t("paginationItem")) + " / " + _toDisplayString(_ctx.t("paginationPage")),
|
|
191
191
|
1
|
|
192
192
|
/* TEXT */
|
|
193
193
|
),
|
|
@@ -216,7 +216,7 @@ function __render__(_ctx, _cache) {
|
|
|
216
216
|
},
|
|
217
217
|
[
|
|
218
218
|
_createTextVNode(
|
|
219
|
-
_toDisplayString(_ctx.
|
|
219
|
+
_toDisplayString(_ctx.t("paginationJump")) + " ",
|
|
220
220
|
1
|
|
221
221
|
/* TEXT */
|
|
222
222
|
),
|
|
@@ -399,7 +399,7 @@ const __sfc__ = defineComponent({
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
return {
|
|
402
|
-
|
|
402
|
+
t,
|
|
403
403
|
current,
|
|
404
404
|
menuVisible,
|
|
405
405
|
size,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --pagination-text-color: #555; --pagination-font-size: var(--font-size-md); --pagination-active-color:
|
|
1
|
+
:root { --pagination-text-color: #555; --pagination-font-size: var(--font-size-md); --pagination-active-color: var(--color-on-primary); --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: rgba(85, 85, 85, 0.15); --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-item-simple-border-radius: 50%; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; margin: 0; font-size: var(--pagination-font-size); padding: 0; color: var(--pagination-text-color);}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background-color: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--hide { display: none;}.var-pagination__item--simple { background: transparent; border-radius: var(--pagination-item-simple-border-radius);}.var-pagination__item--disabled { cursor: not-allowed; color: var(--pagination-disabled-color); background-color: unset;}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--disabled--hover:hover { background-color: inherit;}.var-pagination__item--disabled--active { background-color: var(--pagination-bg-disabled-color);}.var-pagination__item--disabled--active:hover { background-color: var(--pagination-bg-disabled-color);}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin);}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__size--open--disabled { cursor: inherit;}.var-pagination__list { background-color: var(--pagination-list-bg-color); cursor: pointer; transition: all 0.25s;}.var-pagination__list:hover { color: var(--pagination-list-active-color); background-color: var(--pagination-list-active-bg-color);}.var-pagination__list--active { background-color: var(--pagination-list-active-bg-color) !important; color: var(--pagination-list-active-color);}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-field-decorator__middle,.var-pagination__simple [var-pagination-cover] .var-field-decorator__middle { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center;}.var-pagination__quickly-line,.var-pagination__simple-line { height: 1px; background: transparent;}.var-pagination__quickly { margin: var(--pagination-item-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}
|
package/es/picker/Picker.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { props } from "./props.mjs";
|
|
|
5
5
|
import { useTouch, useVModel } from "@varlet/use";
|
|
6
6
|
import { clamp, clampArrayRange, call } from "@varlet/shared";
|
|
7
7
|
import { toPxNum, getTranslateY } from "../utils/elements.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { t } from "../locale/index.mjs";
|
|
9
9
|
import { createNamespace } from "../utils/components.mjs";
|
|
10
10
|
const { name, n, classes } = createNamespace("picker");
|
|
11
11
|
const MOMENTUM_RECORD_TIME = 300;
|
|
@@ -67,7 +67,7 @@ function __render__(_ctx, _cache) {
|
|
|
67
67
|
var _a;
|
|
68
68
|
return [
|
|
69
69
|
_createTextVNode(
|
|
70
|
-
_toDisplayString((_a = _ctx.cancelButtonText) != null ? _a : _ctx.
|
|
70
|
+
_toDisplayString((_a = _ctx.cancelButtonText) != null ? _a : _ctx.t("pickerCancelButtonText")),
|
|
71
71
|
1
|
|
72
72
|
/* TEXT */
|
|
73
73
|
)
|
|
@@ -85,7 +85,7 @@ function __render__(_ctx, _cache) {
|
|
|
85
85
|
{
|
|
86
86
|
class: _normalizeClass(_ctx.n("title"))
|
|
87
87
|
},
|
|
88
|
-
_toDisplayString((_a = _ctx.title) != null ? _a : _ctx.
|
|
88
|
+
_toDisplayString((_a = _ctx.title) != null ? _a : _ctx.t("pickerTitle")),
|
|
89
89
|
3
|
|
90
90
|
/* TEXT, CLASS */
|
|
91
91
|
)
|
|
@@ -103,7 +103,7 @@ function __render__(_ctx, _cache) {
|
|
|
103
103
|
var _a;
|
|
104
104
|
return [
|
|
105
105
|
_createTextVNode(
|
|
106
|
-
_toDisplayString((_a = _ctx.confirmButtonText) != null ? _a : _ctx.
|
|
106
|
+
_toDisplayString((_a = _ctx.confirmButtonText) != null ? _a : _ctx.t("pickerConfirmButtonText")),
|
|
107
107
|
1
|
|
108
108
|
/* TEXT */
|
|
109
109
|
)
|
|
@@ -464,7 +464,7 @@ const __sfc__ = defineComponent({
|
|
|
464
464
|
call(props2.onCancel, values, indexes, options);
|
|
465
465
|
}
|
|
466
466
|
return {
|
|
467
|
-
|
|
467
|
+
t,
|
|
468
468
|
optionHeight,
|
|
469
469
|
optionCount,
|
|
470
470
|
scrollColumns,
|
package/es/picker/picker.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --picker-background: #fff; --picker-toolbar-height: 44px; --picker-confirm-button-text-color: var(--color-primary); --picker-cancel-button-text-color: #888; --picker-picked-border: 1px solid
|
|
1
|
+
:root { --picker-background: #fff; --picker-toolbar-height: 44px; --picker-confirm-button-text-color: var(--color-primary); --picker-cancel-button-text-color: #888; --picker-picked-border: 1px solid var(--color-outline); --picker-title-font-size: var(--font-size-lg); --picker-title-text-color: #555; --picker-option-font-size: var(--font-size-lg); --picker-option-text-color: #555; --picker-toolbar-padding: 0 4px; --picker-mask-background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4)), linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));}.var-picker { width: 100%; background: var(--picker-background); user-select: none; transition: 0.25s background-color;}.var-picker__popup[var-picker-cover] { width: 100%;}.var-picker__columns { position: relative; display: flex; width: 100%; cursor: grab;}.var-picker__column { flex: 1; overflow: hidden;}.var-picker__option { display: flex; justify-content: center; align-items: center; width: 100%; padding: 0 4px;}.var-picker__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--picker-option-text-color); font-size: var(--picker-option-font-size);}.var-picker__scroller { width: 100%; transition-timing-function: cubic-bezier(0.23, 1, 0.68, 1);}.var-picker__picked { position: absolute; z-index: 2; pointer-events: none; width: 100%; left: 0; border-top: var(--picker-picked-border); border-bottom: var(--picker-picked-border); transition: 0.25s border;}.var-picker__mask { position: absolute; pointer-events: none; top: 0; left: 0; width: 100%; height: 100%; background-image: var(--picker-mask-background-image); background-repeat: no-repeat; background-position: top, bottom;}.var-picker__toolbar { display: flex; justify-content: space-between; align-items: center; width: 100%; height: var(--picker-toolbar-height); padding: var(--picker-toolbar-padding);}.var-picker__confirm-button[var-picker-cover] { color: var(--picker-confirm-button-text-color);}.var-picker__cancel-button[var-picker-cover] { color: var(--picker-cancel-button-text-color);}.var-picker__title { color: var(--picker-title-text-color); font-size: var(--picker-title-font-size);}
|
package/es/progress/Progress.mjs
CHANGED
|
@@ -71,7 +71,7 @@ function __render__(_ctx, _cache) {
|
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
73
|
key: 1,
|
|
74
|
-
class: _normalizeClass(_ctx.classes(_ctx.n("linear-certain"), _ctx.n(`linear--${_ctx.type}`)
|
|
74
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("linear-certain"), _ctx.n(`linear--${_ctx.type}`))),
|
|
75
75
|
style: _normalizeStyle({ background: _ctx.progressColor, width: _ctx.linearProps.width })
|
|
76
76
|
},
|
|
77
77
|
null,
|
package/es/progress/progress.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --progress-font-size: var(--font-size-sm); --progress-
|
|
1
|
+
:root { --progress-font-size: var(--font-size-sm); --progress-track-color: #d8d8d8; --progress-label-color: #555; --progress-background: var(--color-primary); --progress-default-color: #f5f5f5; --progress-primary-color: var(--color-primary); --progress-danger-color: var(--color-danger); --progress-success-color: var(--color-success); --progress-warning-color: var(--color-warning); --progress-info-color: var(--color-info); --progress-linear-border-radius: 0px;}.var-progress { position: relative; font-size: var(--progress-font-size);}.var-progress__linear { display: flex; align-items: center;}.var-progress__linear-block { flex: 1; position: relative; overflow: hidden; height: 4px; border-radius: var(--progress-linear-border-radius);}.var-progress__linear-certain { width: 100%; height: 100%; border-radius: var(--progress-linear-border-radius);}.var-progress__linear-background { background-color: var(--progress-track-color);}.var-progress__linear-certain { position: absolute; background-color: var(--progress-background); top: 0; left: 0; transition: all 0.2s, background-color 0.8s;}.var-progress__linear-label { margin-left: 8px; flex: 0; color: var(--progress-label-color);}.var-progress__linear-indeterminate div { bottom: 0; height: inherit; left: 0; position: absolute; right: auto; top: 0; width: auto; will-change: left, right; border-radius: var(--progress-linear-border-radius);}.var-progress__linear-indeterminate div:first-child { animation: progress-linear-long 2.2s infinite;}.var-progress__linear-indeterminate div:last-child { animation: progress-linear-short 2.2s infinite;}.var-progress__linear--success { background-color: var(--progress-success-color);}.var-progress__linear--default { background-color: var(--progress-default-color);}.var-progress__linear--primary { background-color: var(--progress-primary-color);}.var-progress__linear--warning { background-color: var(--progress-warning-color);}.var-progress__linear--danger { background-color: var(--progress-danger-color);}.var-progress__linear--info { background-color: var(--progress-info-color);}@keyframes progress-linear-long { 0% { left: -90%; right: 100%; } 60% { left: -90%; right: 100%; } 100% { left: 100%; right: -35%; }}@keyframes progress-linear-short { 0% { left: -200%; right: 100%; } 60% { left: 107%; right: -8%; } 100% { left: 107%; right: -8%; }}.var-progress__circle { position: relative; width: 40px; height: 40px;}.var-progress__circle-background { stroke: var(--progress-track-color); z-index: 1;}.var-progress__circle-certain { transition: all 0.2s; stroke: var(--progress-background); position: absolute;}.var-progress__circle-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--progress-label-color);}.var-progress__circle--success { stroke: var(--progress-success-color);}.var-progress__circle--default { stroke: var(--progress-default-color);}.var-progress__circle--primary { stroke: var(--progress-primary-color);}.var-progress__circle--warning { stroke: var(--progress-warning-color);}.var-progress__circle--danger { stroke: var(--progress-danger-color);}.var-progress__circle--info { stroke: var(--progress-info-color);}.var-progress__circle-indeterminate svg { animation: progress-circle-rotate 1.4s linear infinite; transform-origin: center center; transition: all 0.2s ease-in-out; width: 100%; height: 100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 0;}.var-progress__circle-overlay { animation: progress-circle-dash 1.4s ease-in-out infinite, progress-circle-rotate 1.4s linear infinite; stroke-dasharray: 25, 200; stroke-dashoffset: 0; stroke-linecap: round; transform-origin: center center; transform: rotate(-90deg); z-index: 2;}@keyframes progress-circle-dash { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100, 200; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100, 200; stroke-dashoffset: -124px; }}@keyframes progress-circle-rotate { 100% { transform: rotate(270deg); }}
|
package/es/progress/props.mjs
CHANGED
package/es/slider/slider.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --slider-error-color: var(--color-danger); --slider-track-background: #bdbdbd; --slider-track-height: 2px; --slider-track-border-radius: 0; --slider-track-fill-border-radius: 0; --slider-track-fill-background: var(--color-primary); --slider-thumb-block-background: var(--color-primary); --slider-thumb-ripple-background: var(--color-primary); --slider-thumb-label-background: var(--color-primary); --slider-thumb-label-font-size: var(--font-size-sm); --slider-thumb-label-text-color:
|
|
1
|
+
:root { --slider-error-color: var(--color-danger); --slider-track-background: #bdbdbd; --slider-track-height: 2px; --slider-track-border-radius: 0; --slider-track-fill-border-radius: 0; --slider-track-fill-background: var(--color-primary); --slider-thumb-block-background: var(--color-primary); --slider-thumb-ripple-background: var(--color-primary); --slider-thumb-label-background: var(--color-primary); --slider-thumb-label-font-size: var(--font-size-sm); --slider-thumb-label-text-color: var(--color-on-primary); --slider-thumb-size: 12px; --slider-disabled-opacity: var(--opacity-disabled);}.var-slider { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%;}.var-slider-block { display: flex; align-items: center; position: relative; flex: 1; user-select: none; height: 36px; margin: 0 6px; transition: filter 0.25s;}.var-slider--disabled { filter: opacity(var(--slider-disabled-opacity)); cursor: not-allowed;}.var-slider-track { width: 100%; align-items: center; position: relative;}.var-slider-track-background { width: 100%; height: var(--slider-track-height); background: var(--slider-track-background); transition: filter, background-color, 0.25s; border-radius: var(--slider-track-border-radius);}.var-slider-track-fill { position: absolute; height: 100%; left: 0; transition: background-color 0.25s; background-color: var(--slider-track-fill-background); border-radius: var(--slider-track-fill-border-radius);}.var-slider-thumb { position: absolute; cursor: pointer;}.var-slider-thumb-block { position: absolute; width: var(--slider-thumb-size); height: var(--slider-thumb-size); border-radius: 50%; transform: translate(-50%, -50%); transition: background-color 0.25s; z-index: 1; background-color: var(--slider-thumb-block-background);}.var-slider-thumb-ripple { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; background: transparent; transition: 0.3s var(--cubic-bezier);}.var-slider-thumb-ripple--active { background: var(--slider-thumb-ripple-background);}.var-slider-thumb-label { height: 24px; width: 24px; background-color: var(--slider-thumb-label-background); display: flex; align-items: center; border: none; justify-content: center; color: var(--slider-thumb-label-text-color); border-radius: 50% 50% 0; padding: 13px; bottom: 60%; user-select: none; position: absolute; left: 45%; transition: 0.3s var(--cubic-bezier); font-size: var(--slider-thumb-label-font-size); overflow: hidden; transform: translateY(0) translateY(0) translateX(-50%) rotate(45deg) scale(0);}.var-slider-thumb-label span { transform: rotate(-45deg);}.var-slider-thumb-label--active { transform: translateY(-20%) translateY(-8px) translateX(-50%) rotate(45deg) scale(1);}.var-slider__form[var-slider-cover] { margin: 0;}.var-slider__horizontal { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%;}.var-slider__horizontal-block { display: flex; align-items: center; position: relative; flex: 1; user-select: none; height: 36px; margin: 0 6px; transition: filter 0.25s;}.var-slider__horizontal--disabled { filter: opacity(var(--slider-disabled-opacity)); cursor: not-allowed;}.var-slider__horizontal-track { width: 100%; align-items: center; position: relative;}.var-slider__horizontal-track-background { width: 100%; height: var(--slider-track-height); background: var(--slider-track-background); transition: filter, background-color, 0.25s; border-radius: var(--slider-track-border-radius);}.var-slider__horizontal-track-fill { position: absolute; height: 100%; left: 0; transition: background-color 0.25s; background-color: var(--slider-track-fill-background); border-radius: var(--slider-track-fill-border-radius);}.var-slider__horizontal-thumb { position: absolute; cursor: pointer;}.var-slider__horizontal-thumb-block { position: absolute; width: var(--slider-thumb-size); height: var(--slider-thumb-size); border-radius: 50%; transform: translate(-50%, -50%); transition: background-color 0.25s; z-index: 1; background-color: var(--slider-thumb-block-background);}.var-slider__horizontal-thumb-ripple { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; background: transparent; transition: 0.3s var(--cubic-bezier);}.var-slider__horizontal-thumb-ripple--active { background: var(--slider-thumb-ripple-background);}.var-slider__horizontal-thumb-label { height: 24px; width: 24px; background-color: var(--slider-thumb-label-background); display: flex; align-items: center; border: none; justify-content: center; color: var(--slider-thumb-label-text-color); border-radius: 50% 50% 0; padding: 13px; bottom: 60%; user-select: none; position: absolute; left: 45%; transition: 0.3s var(--cubic-bezier); font-size: var(--slider-thumb-label-font-size); overflow: hidden; transform: translateY(0) translateY(0) translateX(-50%) rotate(45deg) scale(0);}.var-slider__horizontal-thumb-label span { transform: rotate(-45deg);}.var-slider__horizontal-thumb-label--active { transform: translateY(-20%) translateY(-8px) translateX(-50%) rotate(45deg) scale(1);}.var-slider__horizontal__form[var-slider-cover] { margin: 0;}.var-slider__horizontal--error .var-slider__horizontal-track-background { background-color: var(--slider-error-color) !important; filter: opacity(0.6);}.var-slider__horizontal--error .var-slider__horizontal-track-fill { background-color: var(--slider-error-color) !important;}.var-slider__horizontal--error .var-slider__horizontal-thumb-block { background-color: var(--slider-error-color) !important;}.var-slider__horizontal--error .var-slider__horizontal-thumb-ripple--active { background-color: var(--slider-error-color) !important;}.var-slider__horizontal--error .var-slider__horizontal-thumb-label { background-color: var(--slider-error-color) !important;}.var-slider__vertical { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; height: 100%;}.var-slider__vertical-block { display: flex; align-items: center; position: relative; flex: 1; user-select: none; height: 36px; margin: 0 6px; transition: filter 0.25s;}.var-slider__vertical--disabled { filter: opacity(var(--slider-disabled-opacity)); cursor: not-allowed;}.var-slider__vertical-track { width: 100%; align-items: center; position: relative;}.var-slider__vertical-track-background { width: 100%; height: var(--slider-track-height); background: var(--slider-track-background); transition: filter, background-color, 0.25s; border-radius: var(--slider-track-border-radius);}.var-slider__vertical-track-fill { position: absolute; height: 100%; left: 0; transition: background-color 0.25s; background-color: var(--slider-track-fill-background); border-radius: var(--slider-track-fill-border-radius);}.var-slider__vertical-thumb { position: absolute; cursor: pointer;}.var-slider__vertical-thumb-block { position: absolute; width: var(--slider-thumb-size); height: var(--slider-thumb-size); border-radius: 50%; transform: translate(-50%, -50%); transition: background-color 0.25s; z-index: 1; background-color: var(--slider-thumb-block-background);}.var-slider__vertical-thumb-ripple { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; background: transparent; transition: 0.3s var(--cubic-bezier);}.var-slider__vertical-thumb-ripple--active { background: var(--slider-thumb-ripple-background);}.var-slider__vertical-thumb-label { height: 24px; width: 24px; background-color: var(--slider-thumb-label-background); display: flex; align-items: center; border: none; justify-content: center; color: var(--slider-thumb-label-text-color); border-radius: 50% 50% 0; padding: 13px; bottom: 60%; user-select: none; position: absolute; left: 45%; transition: 0.3s var(--cubic-bezier); font-size: var(--slider-thumb-label-font-size); overflow: hidden; transform: translateY(0) translateY(0) translateX(-50%) rotate(45deg) scale(0);}.var-slider__vertical-thumb-label span { transform: rotate(-45deg);}.var-slider__vertical-thumb-label--active { transform: translateY(-20%) translateY(-8px) translateX(-50%) rotate(45deg) scale(1);}.var-slider__vertical__form[var-slider-cover] { margin: 0;}.var-slider__vertical-block { width: 36px; display: flex; align-items: center; justify-content: center; position: relative; user-select: none; margin: 6px 0; transition: filter 0.25s;}.var-slider__vertical-track { height: 100%; width: fit-content;}.var-slider__vertical-track-background { width: var(--slider-track-height); height: 100%; background: var(--slider-track-background); transition: filter, background-color, 0.25s;}.var-slider__vertical-track-fill { width: 100%; bottom: 0;}.var-slider__vertical-thumb-label { transform: translateX(0) translateX(0) translateY(50%) rotate(-225deg) scale(0);}.var-slider__vertical-thumb-label span { transform: rotate(-135deg);}.var-slider__vertical-thumb-label--active { transform: translateX(20%) translateX(8px) translateY(50%) rotate(-225deg) scale(1);}.var-slider__vertical--error .var-slider__vertical-track-background { background-color: var(--slider-error-color) !important; filter: opacity(0.6);}.var-slider__vertical--error .var-slider__vertical-track-fill { background-color: var(--slider-error-color) !important;}.var-slider__vertical--error .var-slider__vertical-thumb-block { background-color: var(--slider-error-color) !important;}.var-slider__vertical--error .var-slider__vertical-thumb-ripple--active { background-color: var(--slider-error-color) !important;}.var-slider__vertical--error .var-slider__vertical-thumb-label { background-color: var(--slider-error-color) !important;}
|
package/es/step/step.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --step-tag-size: 20px; --step-tag-background: #9e9e9e; --step-tag-font-size: var(--font-size-md); --step-tag-color:
|
|
1
|
+
:root { --step-tag-size: 20px; --step-tag-background: #9e9e9e; --step-tag-font-size: var(--font-size-md); --step-tag-color: var(--color-on-primary); --step-tag-active-color: var(--color-primary); --step-tag-margin: 4px 0; --step-tag-icon-size: var(--font-size-lg); --step-content-font-size: var(--font-size-md); --step-content-color: rgba(0, 0, 0, 0.38); --step-content-active-color: #000; --step-line-background: #000; --step-line-gap: 8px; --step-vertical-tag-margin: 0 4px; --step-vertical-min-height: 50px;}.tag { width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier);}.content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier);}.var-step { position: relative; flex: 1; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-step:last-child .var-step__horizontal-line { width: 0;}.var-step:last-child .var-step__vertical-line { height: 0;}.var-step__horizontal { display: flex; flex-direction: column; align-items: center;}.var-step__horizontal-tag { margin: var(--step-tag-margin); width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier);}.var-step__horizontal-tag--active { background: var(--step-tag-active-color);}.var-step__horizontal-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier);}.var-step__horizontal-content--active { color: var(--step-content-active-color);}.var-step__horizontal-line { position: absolute; top: calc(calc(var(--step-tag-size) + var(--step-line-gap)) / 2); left: calc(50% + calc(var(--step-tag-size) + var(--step-line-gap)) / 2); width: calc(100% - calc(var(--step-tag-size) + var(--step-line-gap))); height: 1px; transform: scaleY(0.5); background: var(--step-line-background);}.var-step__vertical { display: flex; height: 100%; min-height: var(--step-vertical-min-height);}.var-step__vertical-tag { flex-shrink: 0; margin: var(--step-vertical-tag-margin); width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier);}.var-step__vertical-tag--active { background: var(--step-tag-active-color);}.var-step__vertical-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: 0.3s var(--cubic-bezier);}.var-step__vertical-content--active { color: var(--step-content-active-color);}.var-step__vertical-line { position: absolute; height: calc(100% - calc(var(--step-tag-size) + var(--step-line-gap))); left: calc(calc(var(--step-tag-size) + var(--step-line-gap)) / 2); top: calc(calc(var(--step-tag-size) + var(--step-line-gap)) - var(--step-line-gap) / 2); width: 1px; transform: scaleX(0.5); background: var(--step-line-background);}.var-step__icon[var-step-cover] { font-size: var(--step-tag-icon-size);}
|