@veltra/desktop 1.2.33 → 1.3.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/components/action/action-group.vue.d.ts +2 -2
- package/dist/components/action/action.vue.d.ts +2 -2
- package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -2
- package/dist/components/batch-edit/style2.css +0 -3
- package/dist/components/button/style2.css +23 -7
- package/dist/components/calendar/style2.css +3 -0
- package/dist/components/card/style2.css +12 -10
- package/dist/components/cascade/cascade.vue.d.ts +6 -6
- package/dist/components/check-tag/style2.css +6 -1
- package/dist/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/checkbox/style2.css +20 -3
- package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
- package/dist/components/code-editor/style2.css +2 -2
- package/dist/components/contextmenu/style2.css +2 -2
- package/dist/components/date-panel/date-panel.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +3 -3
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +3 -3
- package/dist/components/dialog/style2.css +3 -3
- package/dist/components/drawer/style2.css +1 -1
- package/dist/components/dropdown/style2.css +1 -1
- package/dist/components/empty/empty.vue.d.ts +1 -1
- package/dist/components/float-button/style2.css +1 -1
- package/dist/components/group-nav/style2.css +1 -1
- package/dist/components/input/input.vue.d.ts +4 -4
- package/dist/components/input/style2.css +5 -4
- package/dist/components/message/style2.css +7 -7
- package/dist/components/message-confirm/style2.css +1 -1
- package/dist/components/multi-select/multi-select.vue.d.ts +4 -4
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +6 -6
- package/dist/components/nav/style2.css +2 -2
- package/dist/components/notification/style2.css +1 -1
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- package/dist/components/number-range-input/number-range-input.vue.d.ts +1 -1
- package/dist/components/password-input/password-input.vue.d.ts +1 -1
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/radio/style2.css +12 -0
- package/dist/components/radio-group/radio-group.vue.d.ts +2 -2
- package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
- package/dist/components/rich-text-editor/style2.css +1 -1
- package/dist/components/scroll/style2.css +3 -3
- package/dist/components/select/select.vue.d.ts +3 -3
- package/dist/components/slider/slider-thumb.js +4 -2
- package/dist/components/slider/slider-thumb.js.map +1 -1
- package/dist/components/slider/style2.css +7 -0
- package/dist/components/steps/steps.vue.d.ts +2 -2
- package/dist/components/switch/style2.css +15 -1
- package/dist/components/switch/switch.js +0 -1
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/tabs/style2.css +7 -4
- package/dist/components/text/style2.css +5 -5
- package/dist/components/textarea/textarea.vue.d.ts +4 -4
- package/dist/components/tip/style2.css +2 -2
- package/dist/components/tree-select/tree-select.vue.d.ts +5 -5
- package/package.json +6 -6
- package/src/components/batch-edit/style.scss +0 -5
- package/src/components/button/style.scss +16 -9
- package/src/components/calendar/style.scss +4 -0
- package/src/components/card/style.scss +4 -2
- package/src/components/check-tag/style.scss +7 -1
- package/src/components/checkbox/checkbox.vue +8 -2
- package/src/components/checkbox/style.scss +32 -3
- package/src/components/code-editor/style.scss +2 -2
- package/src/components/contextmenu/style.scss +1 -3
- package/src/components/dialog/style.scss +3 -3
- package/src/components/drawer/style.scss +1 -1
- package/src/components/dropdown/style.scss +1 -1
- package/src/components/float-button/style.scss +1 -1
- package/src/components/group-nav/style.scss +1 -3
- package/src/components/input/style.scss +4 -3
- package/src/components/message/style.scss +2 -2
- package/src/components/message-confirm/style.scss +1 -1
- package/src/components/nav/style.scss +2 -6
- package/src/components/notification/style.scss +1 -1
- package/src/components/radio/radio.vue +8 -9
- package/src/components/radio/style.scss +21 -0
- package/src/components/rich-text-editor/style.scss +1 -1
- package/src/components/scroll/style.scss +3 -3
- package/src/components/slider/slider-thumb.vue +1 -1
- package/src/components/slider/style.scss +10 -0
- package/src/components/switch/style.scss +25 -1
- package/src/components/switch/switch.vue +0 -1
- package/src/components/tabs/style.scss +7 -5
- package/src/components/text/style.scss +5 -5
- package/src/components/tip/style.scss +2 -2
|
@@ -6,10 +6,10 @@ type __VLS_Slots = {
|
|
|
6
6
|
default?: () => VNode[];
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<ActionGroupProps, _ActionGroupExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionGroupProps> & Readonly<{}>, {
|
|
9
|
-
size: "small" | "default" | "large";
|
|
10
|
-
type: import("@veltra/utils").ColorType;
|
|
11
9
|
text: boolean;
|
|
10
|
+
type: import("@veltra/utils").ColorType;
|
|
12
11
|
max: number;
|
|
12
|
+
size: "small" | "default" | "large";
|
|
13
13
|
circle: boolean;
|
|
14
14
|
loading: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,9 +12,9 @@ declare const __VLS_base: import("vue").DefineComponent<ActionProps, {}, {}, {},
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<ActionProps> & Readonly<{
|
|
13
13
|
onRun?: (() => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
size: import("@veltra/utils").ComponentSize;
|
|
16
|
-
type: ButtonType;
|
|
17
15
|
text: boolean;
|
|
16
|
+
type: ButtonType;
|
|
17
|
+
size: import("@veltra/utils").ComponentSize;
|
|
18
18
|
circle: boolean;
|
|
19
19
|
loading: boolean;
|
|
20
20
|
inDropdown: boolean;
|
|
@@ -22,10 +22,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, _Auto
|
|
|
22
22
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
23
|
onSelect?: ((value: string) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
+
clearable: boolean;
|
|
26
|
+
placeholder: string;
|
|
25
27
|
disabled: boolean;
|
|
26
28
|
readonly: boolean;
|
|
27
|
-
placeholder: string;
|
|
28
|
-
clearable: boolean;
|
|
29
29
|
allowCustom: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
.u-button {
|
|
19
19
|
color: var(--u-button-default-color, var(--u-text-color-main));
|
|
20
20
|
box-sizing: border-box;
|
|
21
|
-
border-radius: 9999px;
|
|
22
21
|
line-height: 1;
|
|
23
22
|
outline: none;
|
|
24
23
|
text-decoration: none;
|
|
@@ -30,8 +29,7 @@
|
|
|
30
29
|
border: 1px solid var(--u-button-default-border, transparent);
|
|
31
30
|
background-color: var(--u-button-default-bg, var(--u-color-default));
|
|
32
31
|
box-shadow: var(--u-shadow-emboss);
|
|
33
|
-
transition: background-color
|
|
34
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
32
|
+
transition: background-color var(--u-transition-fast) var(--u-transition-ease), border-color var(--u-transition-fast) var(--u-transition-ease), color var(--u-transition-fast) var(--u-transition-ease), box-shadow var(--u-transition-fast) var(--u-transition-ease);
|
|
35
33
|
-webkit-tap-highlight-color: transparent; /* For some Androids */
|
|
36
34
|
gap: var(--u-gap-small);
|
|
37
35
|
display: inline-flex;
|
|
@@ -46,6 +44,9 @@
|
|
|
46
44
|
.u-button:active {
|
|
47
45
|
box-shadow: none;
|
|
48
46
|
}
|
|
47
|
+
.u-button:focus-visible {
|
|
48
|
+
box-shadow: var(--u-focus-ring);
|
|
49
|
+
}
|
|
49
50
|
.u-button.is-disabled {
|
|
50
51
|
box-shadow: none !important;
|
|
51
52
|
}
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
height: var(--u-form-component-height-small);
|
|
68
69
|
line-height: var(--u-form-component-height-small);
|
|
69
70
|
font-size: var(--u-font-size-main-small);
|
|
71
|
+
border-radius: var(--u-radius-small);
|
|
70
72
|
}
|
|
71
73
|
.u-button--small.is-circle {
|
|
72
74
|
width: var(--u-form-component-height-small);
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
height: var(--u-form-component-height-default);
|
|
79
81
|
line-height: var(--u-form-component-height-default);
|
|
80
82
|
font-size: var(--u-font-size-main-default);
|
|
83
|
+
border-radius: var(--u-radius-default);
|
|
81
84
|
}
|
|
82
85
|
.u-button--default.is-circle {
|
|
83
86
|
width: var(--u-form-component-height-default);
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
height: var(--u-form-component-height-large);
|
|
90
93
|
line-height: var(--u-form-component-height-large);
|
|
91
94
|
font-size: var(--u-font-size-main-large);
|
|
95
|
+
border-radius: var(--u-radius-large);
|
|
92
96
|
}
|
|
93
97
|
.u-button--large.is-circle {
|
|
94
98
|
width: var(--u-form-component-height-large);
|
|
@@ -540,9 +544,21 @@
|
|
|
540
544
|
.u-button-group .u-button {
|
|
541
545
|
border-radius: 0;
|
|
542
546
|
}
|
|
543
|
-
.u-button-group .u-button:first-child {
|
|
544
|
-
border-radius:
|
|
547
|
+
.u-button-group .u-button--small:first-child {
|
|
548
|
+
border-radius: var(--u-radius-small) 0 0 var(--u-radius-small);
|
|
549
|
+
}
|
|
550
|
+
.u-button-group .u-button--small:last-child {
|
|
551
|
+
border-radius: 0 var(--u-radius-small) var(--u-radius-small) 0;
|
|
552
|
+
}
|
|
553
|
+
.u-button-group .u-button--default:first-child {
|
|
554
|
+
border-radius: var(--u-radius-default) 0 0 var(--u-radius-default);
|
|
555
|
+
}
|
|
556
|
+
.u-button-group .u-button--default:last-child {
|
|
557
|
+
border-radius: 0 var(--u-radius-default) var(--u-radius-default) 0;
|
|
558
|
+
}
|
|
559
|
+
.u-button-group .u-button--large:first-child {
|
|
560
|
+
border-radius: var(--u-radius-large) 0 0 var(--u-radius-large);
|
|
545
561
|
}
|
|
546
|
-
.u-button-group .u-button:last-child {
|
|
547
|
-
border-radius: 0
|
|
562
|
+
.u-button-group .u-button--large:last-child {
|
|
563
|
+
border-radius: 0 var(--u-radius-large) var(--u-radius-large) 0;
|
|
548
564
|
}
|
|
@@ -18,12 +18,14 @@
|
|
|
18
18
|
.u-card {
|
|
19
19
|
border-radius: var(--u-radius-default);
|
|
20
20
|
background-color: var(--u-bg-color-top);
|
|
21
|
-
|
|
21
|
+
border: var(--u-border-muted);
|
|
22
|
+
box-shadow: var(--u-shadow-sm);
|
|
22
23
|
backdrop-filter: var(--u-bg-filter);
|
|
23
24
|
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
24
25
|
overflow: hidden;
|
|
25
26
|
}
|
|
26
27
|
.u-card.is-integrate {
|
|
28
|
+
border: none;
|
|
27
29
|
box-shadow: none;
|
|
28
30
|
--u-card-header-bg: transparent;
|
|
29
31
|
--u-card-action-bg: transparent;
|
|
@@ -35,13 +37,13 @@
|
|
|
35
37
|
font-size: var(--u-font-size-main-small);
|
|
36
38
|
}
|
|
37
39
|
.u-card--small .u-card__header {
|
|
38
|
-
padding: var(--u-gap-small);
|
|
40
|
+
padding: var(--u-card-padding-small, var(--u-gap-small));
|
|
39
41
|
}
|
|
40
42
|
.u-card--small .u-card__content {
|
|
41
|
-
padding: var(--u-gap-small);
|
|
43
|
+
padding: var(--u-card-padding-small, var(--u-gap-small));
|
|
42
44
|
}
|
|
43
45
|
.u-card--small .u-card__action {
|
|
44
|
-
padding: var(--u-gap-small);
|
|
46
|
+
padding: var(--u-card-padding-small, var(--u-gap-small));
|
|
45
47
|
}
|
|
46
48
|
.u-card--small .u-card__header {
|
|
47
49
|
font-size: var(--u-font-size-title-small);
|
|
@@ -51,13 +53,13 @@
|
|
|
51
53
|
font-size: var(--u-font-size-main-default);
|
|
52
54
|
}
|
|
53
55
|
.u-card--default .u-card__header {
|
|
54
|
-
padding: var(--u-gap-default);
|
|
56
|
+
padding: var(--u-card-padding-default, var(--u-gap-default));
|
|
55
57
|
}
|
|
56
58
|
.u-card--default .u-card__content {
|
|
57
|
-
padding: var(--u-gap-default);
|
|
59
|
+
padding: var(--u-card-padding-default, var(--u-gap-default));
|
|
58
60
|
}
|
|
59
61
|
.u-card--default .u-card__action {
|
|
60
|
-
padding: var(--u-gap-default);
|
|
62
|
+
padding: var(--u-card-padding-default, var(--u-gap-default));
|
|
61
63
|
}
|
|
62
64
|
.u-card--default .u-card__header {
|
|
63
65
|
font-size: var(--u-font-size-title-default);
|
|
@@ -67,13 +69,13 @@
|
|
|
67
69
|
font-size: var(--u-font-size-main-large);
|
|
68
70
|
}
|
|
69
71
|
.u-card--large .u-card__header {
|
|
70
|
-
padding: var(--u-gap-large);
|
|
72
|
+
padding: var(--u-card-padding-large, var(--u-gap-large));
|
|
71
73
|
}
|
|
72
74
|
.u-card--large .u-card__content {
|
|
73
|
-
padding: var(--u-gap-large);
|
|
75
|
+
padding: var(--u-card-padding-large, var(--u-gap-large));
|
|
74
76
|
}
|
|
75
77
|
.u-card--large .u-card__action {
|
|
76
|
-
padding: var(--u-gap-large);
|
|
78
|
+
padding: var(--u-card-padding-large, var(--u-gap-large));
|
|
77
79
|
}
|
|
78
80
|
.u-card--large .u-card__header {
|
|
79
81
|
font-size: var(--u-font-size-title-large);
|
|
@@ -2,26 +2,26 @@ import { CascadeProps } from "../../types/cascade.js";
|
|
|
2
2
|
//#region src/components/cascade/cascade.vue.d.ts
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<CascadeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
4
|
"update:modelValue": (value?: string | string[] | undefined) => any;
|
|
5
|
-
clear: () => any;
|
|
6
5
|
change: (...args: [item?: Record<string, any> | undefined] | [items: Record<string, any>[]]) => any;
|
|
6
|
+
clear: () => any;
|
|
7
7
|
"update:label": (label?: string | string[] | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<CascadeProps> & Readonly<{
|
|
9
9
|
"onUpdate:modelValue"?: ((value?: string | string[] | undefined) => any) | undefined;
|
|
10
|
-
onClear?: (() => any) | undefined;
|
|
11
10
|
onChange?: ((...args: [item?: Record<string, any> | undefined] | [items: Record<string, any>[]]) => any) | undefined;
|
|
11
|
+
onClear?: (() => any) | undefined;
|
|
12
12
|
"onUpdate:label"?: ((label?: string | string[] | undefined) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
readonly: boolean;
|
|
16
14
|
labelKey: string;
|
|
17
15
|
valueKey: string;
|
|
18
16
|
childrenKey: string;
|
|
19
17
|
data: Record<string, any>[];
|
|
20
|
-
placeholder: string;
|
|
21
18
|
clearable: boolean;
|
|
19
|
+
placeholder: string;
|
|
22
20
|
filterable: boolean;
|
|
23
|
-
separator: string;
|
|
24
21
|
visibilityLimit: number;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
separator: string;
|
|
25
25
|
showFullPath: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
vertical-align: middle;
|
|
24
24
|
height: 24px;
|
|
25
25
|
padding: 0 9px;
|
|
26
|
-
color:
|
|
26
|
+
color: var(--u-text-color-main);
|
|
27
27
|
border: 1px solid var(--u-color-primary);
|
|
28
28
|
border-radius: var(--u-radius-default);
|
|
29
29
|
background: var(--u-color-primary-light-9);
|
|
@@ -37,3 +37,8 @@
|
|
|
37
37
|
border: 1px solid var(--u-color-primary-dark-3);
|
|
38
38
|
background-color: var(--u-color-primary-dark-3);
|
|
39
39
|
}
|
|
40
|
+
.u-check-tag.is-disabled {
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
color: var(--u-text-color-disabled);
|
|
43
|
+
background-color: var(--u-color-disabled);
|
|
44
|
+
}
|
|
@@ -17,9 +17,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
17
17
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
18
18
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
+
type: import("@veltra/utils").ColorType;
|
|
20
21
|
disabled: boolean;
|
|
21
22
|
readonly: boolean;
|
|
22
|
-
type: import("@veltra/utils").ColorType;
|
|
23
23
|
round: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,12 +2,12 @@ import { Transition, computed, createCommentVNode, createElementBlock, createEle
|
|
|
2
2
|
import { useFormFallbackProps } from "@veltra/compositions";
|
|
3
3
|
import { bem, injectFormContext } from "@veltra/utils";
|
|
4
4
|
//#region src/components/checkbox/checkbox.vue
|
|
5
|
-
const _hoisted_1 =
|
|
5
|
+
const _hoisted_1 = ["checked", "disabled"];
|
|
6
|
+
const _hoisted_2 = {
|
|
6
7
|
key: 0,
|
|
7
8
|
viewBox: "0 0 64 64",
|
|
8
9
|
fill: "currentColor"
|
|
9
10
|
};
|
|
10
|
-
const _hoisted_2 = ["checked", "disabled"];
|
|
11
11
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
12
12
|
name: "UCheckbox",
|
|
13
13
|
__name: "checkbox",
|
|
@@ -61,23 +61,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
61
61
|
};
|
|
62
62
|
return (_ctx, _cache) => {
|
|
63
63
|
return openBlock(), createElementBlock("label", { class: normalizeClass(className.value) }, [
|
|
64
|
+
createElementVNode("input", {
|
|
65
|
+
type: "checkbox",
|
|
66
|
+
class: normalizeClass(unref(cls).e("native")),
|
|
67
|
+
checked: checked.value,
|
|
68
|
+
disabled: unref(disabled),
|
|
69
|
+
onClick: handleInput
|
|
70
|
+
}, null, 10, _hoisted_1),
|
|
64
71
|
createElementVNode("span", { class: normalizeClass(unref(cls).e("wrap")) }, [createVNode(Transition, {
|
|
65
72
|
name: "zoom-in",
|
|
66
73
|
mode: "out-in"
|
|
67
74
|
}, {
|
|
68
|
-
default: withCtx(() => [checked.value ? (openBlock(), createElementBlock("svg",
|
|
75
|
+
default: withCtx(() => [checked.value ? (openBlock(), createElementBlock("svg", _hoisted_2, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z" }, null, -1)])])) : __props.indeterminate ? (openBlock(), createElementBlock("span", {
|
|
69
76
|
key: 1,
|
|
70
77
|
class: normalizeClass(unref(cls).m("indeterminate"))
|
|
71
78
|
}, null, 2)) : createCommentVNode("v-if", true)]),
|
|
72
79
|
_: 1
|
|
73
80
|
})], 2),
|
|
74
|
-
createElementVNode("input", {
|
|
75
|
-
type: "checkbox",
|
|
76
|
-
checked: checked.value,
|
|
77
|
-
disabled: unref(disabled),
|
|
78
|
-
hidden: "",
|
|
79
|
-
onClick: handleInput
|
|
80
|
-
}, null, 8, _hoisted_2),
|
|
81
81
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: normalizeClass(unref(cls).e("label"))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","names":["$slots"],"sources":["../../../src/components/checkbox/checkbox.vue"],"sourcesContent":["<template>\n <label :class=\"className\">\n <span :class=\"cls.e('wrap')\">\n <transition name=\"zoom-in\" mode=\"out-in\">\n <svg viewBox=\"0 0 64 64\" v-if=\"checked\" fill=\"currentColor\">\n <path\n d=\"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z\"\n ></path>\n </svg>\n <span v-else-if=\"indeterminate\" :class=\"cls.m('indeterminate')\"></span>\n </transition>\n </span>\n\n <
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":["$slots"],"sources":["../../../src/components/checkbox/checkbox.vue"],"sourcesContent":["<template>\n <label :class=\"className\">\n <input\n type=\"checkbox\"\n :class=\"cls.e('native')\"\n :checked=\"checked\"\n :disabled=\"disabled\"\n @click=\"handleInput\"\n />\n\n <span :class=\"cls.e('wrap')\">\n <transition name=\"zoom-in\" mode=\"out-in\">\n <svg viewBox=\"0 0 64 64\" v-if=\"checked\" fill=\"currentColor\">\n <path\n d=\"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z\"\n ></path>\n </svg>\n <span v-else-if=\"indeterminate\" :class=\"cls.m('indeterminate')\"></span>\n </transition>\n </span>\n\n <span :class=\"cls.e('label')\" v-if=\"$slots.default\"><slot /> </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useFormFallbackProps } from '@veltra/compositions'\nimport { bem } from '@veltra/utils'\nimport { injectFormContext } from '@veltra/utils'\nimport { computed } from 'vue'\n\nimport type { CheckboxProps, CheckboxEmits } from '../../types'\n\ndefineOptions({ name: 'UCheckbox' })\nconst props = withDefaults(defineProps<CheckboxProps>(), {\n disabled: undefined,\n readonly: undefined\n})\n\nconst emit = defineEmits<CheckboxEmits>()\nconst cls = bem('checkbox')\n\nconst checked = defineModel<boolean>()\n\nconst { formProps } = injectFormContext()\n\nconst { size, disabled, readonly } = useFormFallbackProps([formProps ?? {}, props], {\n size: 'default',\n disabled: false,\n readonly: false\n})\n\nconst className = computed(() => {\n return [\n cls.b,\n cls.m(size.value),\n bem.is('disabled', disabled.value),\n bem.is('readonly', readonly.value),\n bem.is('checked', checked.value || props.indeterminate)\n ]\n})\n\nconst handleInput = (e: MouseEvent) => {\n if (readonly.value) return\n const target = e.target as HTMLInputElement\n checked.value = target.checked\n emit('change', target.checked, e)\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ;EAKd,MAAM,OAAO;EACb,MAAM,MAAM,IAAI,UAAU;EAE1B,MAAM,UAAU,SAAoB,SAAA,YAAC;EAErC,MAAM,EAAE,cAAc,kBAAkB;EAExC,MAAM,EAAE,MAAM,UAAU,aAAa,qBAAqB,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG;GAClF,MAAM;GACN,UAAU;GACV,UAAU;EACZ,CAAC;EAED,MAAM,YAAY,eAAe;GAC/B,OAAO;IACL,IAAI;IACJ,IAAI,EAAE,KAAK,KAAK;IAChB,IAAI,GAAG,YAAY,SAAS,KAAK;IACjC,IAAI,GAAG,YAAY,SAAS,KAAK;IACjC,IAAI,GAAG,WAAW,QAAQ,SAAS,MAAM,aAAa;GACxD;EACF,CAAC;EAED,MAAM,eAAe,MAAkB;GACrC,IAAI,SAAS,OAAO;GACpB,MAAM,SAAS,EAAE;GACjB,QAAQ,QAAQ,OAAO;GACvB,KAAK,UAAU,OAAO,SAAS,CAAC;EAClC;;uBAlEE,mBAqBQ,SAAA,EArBA,OAAK,eAAE,UAAA,KAAS,EAAA,GAAA;IACtB,mBAME,SAAA;KALA,MAAK;KACJ,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,QAAA,CAAA;KACZ,SAAS,QAAA;KACT,UAAU,MAAA,QAAA;KACV,SAAO;;IAGV,mBASO,QAAA,EATA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,MAAA,CAAA,EAAA,GAAA,CACjB,YAOa,YAAA;KAPD,MAAK;KAAU,MAAK;;4BAKxB,CAJyB,QAAA,SAAA,UAAA,GAA/B,mBAIM,OAJN,YAIM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAHJ,mBAEQ,QAAA,EADN,GAAE,qRAAoR,GAAA,MAAA,EAAA,CAAA,EAAA,CAAA,KAGzQ,QAAA,iBAAA,UAAA,GAAjB,mBAAuE,QAAA;;MAAtC,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,eAAA,CAAA;;;;IAIbA,KAAAA,OAAO,WAAA,UAAA,GAA3C,mBAAoE,QAAA;;KAA7D,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,OAAA,CAAA;QAAiC,WAAQ,KAAA,QAAA,SAAA,CAAA,GAAA,CAAA,KAAA,mBAAA,QAAA,IAAA"}
|
|
@@ -71,16 +71,30 @@
|
|
|
71
71
|
.u-checkbox--large .u-checkbox__label {
|
|
72
72
|
margin-left: var(--u-gap-large);
|
|
73
73
|
}
|
|
74
|
+
.u-checkbox__native {
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 0;
|
|
77
|
+
height: 0;
|
|
78
|
+
opacity: 0;
|
|
79
|
+
margin: 0;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
74
82
|
.u-checkbox__wrap {
|
|
75
|
-
border: var(--u-border-width) var(--u-border-style) var(--u-checkbox-border,
|
|
76
|
-
border-radius:
|
|
83
|
+
border: var(--u-border-width) var(--u-border-style) var(--u-checkbox-border, var(--u-text-color-assist));
|
|
84
|
+
border-radius: var(--u-radius-small);
|
|
77
85
|
color: var(--u-checkbox-color, #fff);
|
|
78
|
-
transition: background-color
|
|
86
|
+
transition: background-color var(--u-transition-fast) var(--u-transition-ease), border-color var(--u-transition-fast) var(--u-transition-ease), box-shadow var(--u-transition-fast) var(--u-transition-ease);
|
|
79
87
|
display: inline-flex;
|
|
80
88
|
justify-content: center;
|
|
81
89
|
align-items: center;
|
|
82
90
|
flex-wrap: nowrap;
|
|
83
91
|
}
|
|
92
|
+
.u-checkbox:not(.is-disabled):not(.is-readonly):hover .u-checkbox__wrap {
|
|
93
|
+
border-color: var(--u-color-primary);
|
|
94
|
+
}
|
|
95
|
+
.u-checkbox:not(.is-disabled):not(.is-readonly) .u-checkbox__native:focus-visible + .u-checkbox__wrap {
|
|
96
|
+
box-shadow: var(--u-focus-ring);
|
|
97
|
+
}
|
|
84
98
|
.u-checkbox__label {
|
|
85
99
|
line-height: 1em;
|
|
86
100
|
}
|
|
@@ -100,6 +114,9 @@
|
|
|
100
114
|
user-select: none;
|
|
101
115
|
padding: 0 0.8em;
|
|
102
116
|
}
|
|
117
|
+
.u-checkbox-button:focus-visible {
|
|
118
|
+
box-shadow: var(--u-focus-ring);
|
|
119
|
+
}
|
|
103
120
|
.u-checkbox-button--small {
|
|
104
121
|
height: var(--u-form-component-height-small);
|
|
105
122
|
border-radius: var(--u-radius-small);
|
|
@@ -12,10 +12,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
readonly: boolean;
|
|
17
15
|
labelKey: string;
|
|
18
16
|
valueKey: string;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
readonly: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
//#endregion
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
--u-code-editor-fg: var(--u-text-color-main);
|
|
25
25
|
--u-code-editor-border: var(--u-border-muted-color);
|
|
26
26
|
--u-code-editor-gutter-fg: var(--u-text-color-placeholder);
|
|
27
|
-
--u-code-editor-active-bg:
|
|
28
|
-
--u-code-editor-selection-bg:
|
|
27
|
+
--u-code-editor-active-bg: var(--u-color-primary-a-6);
|
|
28
|
+
--u-code-editor-selection-bg: var(--u-color-primary-a-16);
|
|
29
29
|
position: relative;
|
|
30
30
|
width: 100%;
|
|
31
31
|
max-height: 480px;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
background-color: var(--u-bg-color-top);
|
|
29
29
|
border: 1px solid var(--u-border-color);
|
|
30
30
|
border-radius: calc(var(--u-radius-default) + 2px);
|
|
31
|
-
box-shadow:
|
|
31
|
+
box-shadow: var(--u-shadow-lg);
|
|
32
32
|
backdrop-filter: var(--u-bg-filter);
|
|
33
33
|
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
34
34
|
}
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
background-color: var(--u-bg-color-top);
|
|
119
119
|
border: 1px solid var(--u-border-color);
|
|
120
120
|
border-radius: calc(var(--u-radius-default) + 2px);
|
|
121
|
-
box-shadow:
|
|
121
|
+
box-shadow: var(--u-shadow-lg);
|
|
122
122
|
backdrop-filter: var(--u-bg-filter);
|
|
123
123
|
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
124
124
|
}
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<DatePanelProps, {}, {}
|
|
|
7
7
|
"onSelect:range-date"?: ((rangeDate?: [import("@cat-kit/core").Dater, import("@cat-kit/core").Dater] | undefined) => any) | undefined;
|
|
8
8
|
"onSelect:date"?: ((date: import("@cat-kit/core").Dater) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
|
-
size: import("@veltra/utils").ComponentSize;
|
|
11
10
|
type: "date" | "month" | "year";
|
|
11
|
+
size: import("@veltra/utils").ComponentSize;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
//#endregion
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<DatePickerProps, {}, {
|
|
|
5
5
|
}, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
6
6
|
"onUpdate:modelValue"?: ((value?: string | number | Date | undefined) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readonly: boolean;
|
|
10
8
|
type: "date" | "month" | "year";
|
|
11
|
-
placeholder: string;
|
|
12
9
|
clearable: boolean;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
readonly: boolean;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
//#endregion
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<DateRangePickerProps,
|
|
|
5
5
|
}, string, import("vue").PublicProps, Readonly<DateRangePickerProps> & Readonly<{
|
|
6
6
|
"onUpdate:modelValue"?: ((value?: [string, string] | undefined) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readonly: boolean;
|
|
10
8
|
type: "date" | "month" | "year";
|
|
11
|
-
placeholder: [string, string];
|
|
12
9
|
clearable: boolean;
|
|
10
|
+
placeholder: [string, string];
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
readonly: boolean;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
//#endregion
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
max-height: 90vh;
|
|
50
|
-
box-shadow: var(--u-shadow-
|
|
50
|
+
box-shadow: var(--u-shadow-lg);
|
|
51
51
|
flex-wrap: nowrap;
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
}
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
.u-dialog__header {
|
|
73
73
|
height: 49px;
|
|
74
74
|
border-bottom: var(--u-border);
|
|
75
|
-
border-radius: var(--u-
|
|
75
|
+
border-radius: var(--u-radius-large) var(--u-radius-large) 0 0;
|
|
76
76
|
display: flex;
|
|
77
77
|
justify-content: space-between;
|
|
78
78
|
align-items: center;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
border-top: var(--u-border);
|
|
98
98
|
padding: 8px;
|
|
99
99
|
text-align: right;
|
|
100
|
-
border-radius: 0 0 var(--u-
|
|
100
|
+
border-radius: 0 0 var(--u-radius-large) var(--u-radius-large);
|
|
101
101
|
}
|
|
102
102
|
.u-dialog__footer .u-button + .u-button {
|
|
103
103
|
margin-left: var(--u-gap-default);
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
background-color: var(--u-bg-color-top);
|
|
22
22
|
backdrop-filter: var(--u-bg-filter);
|
|
23
23
|
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
24
|
-
box-shadow:
|
|
24
|
+
box-shadow: var(--u-shadow-lg);
|
|
25
25
|
}
|
|
26
26
|
.u-drawer__close {
|
|
27
27
|
position: absolute;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
background-color: var(--u-bg-color-top);
|
|
21
21
|
border: var(--u-border);
|
|
22
22
|
border-radius: var(--u-radius-default);
|
|
23
|
-
box-shadow: var(--u-shadow);
|
|
23
|
+
box-shadow: var(--u-shadow-lg);
|
|
24
24
|
backdrop-filter: var(--u-bg-filter);
|
|
25
25
|
-webkit-backdrop-filter: var(--u-bg-filter);
|
|
26
26
|
top: 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EmptyProps } from "../../types/empty.js";
|
|
2
2
|
//#region src/components/empty/empty.vue.d.ts
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<EmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
|
|
4
|
-
size: number;
|
|
5
4
|
text: string;
|
|
5
|
+
size: number;
|
|
6
6
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const _default: typeof __VLS_export;
|
|
8
8
|
//#endregion
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
background-repeat: no-repeat;
|
|
29
29
|
border: 1px solid var(--u-border-color);
|
|
30
30
|
border-radius: calc(var(--u-radius-large) + 6px);
|
|
31
|
-
box-shadow:
|
|
31
|
+
box-shadow: var(--u-shadow-lg);
|
|
32
32
|
}
|
|
33
33
|
.u-group-nav__container {
|
|
34
34
|
padding: 8px;
|
|
@@ -15,27 +15,27 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, _Inpu
|
|
|
15
15
|
"update:modelValue": (value: string | undefined) => any;
|
|
16
16
|
} & {
|
|
17
17
|
"update:modelValue": (value: string) => any;
|
|
18
|
-
clear: () => any;
|
|
19
18
|
change: (value: string) => any;
|
|
20
19
|
"suffix:click": (value?: string | undefined) => any;
|
|
21
20
|
"prefix:click": (value?: string | undefined) => any;
|
|
22
21
|
focus: (value?: string | undefined) => any;
|
|
22
|
+
clear: () => any;
|
|
23
23
|
blur: (value?: string | undefined) => any;
|
|
24
24
|
"native:input": (ev: Event) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
26
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
-
onClear?: (() => any) | undefined;
|
|
28
27
|
onChange?: ((value: string) => any) | undefined;
|
|
29
28
|
"onSuffix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
30
29
|
"onPrefix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
31
30
|
onFocus?: ((value?: string | undefined) => any) | undefined;
|
|
31
|
+
onClear?: (() => any) | undefined;
|
|
32
32
|
onBlur?: ((value?: string | undefined) => any) | undefined;
|
|
33
33
|
"onNative:input"?: ((ev: Event) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
|
+
clearable: boolean;
|
|
36
|
+
placeholder: string;
|
|
35
37
|
disabled: boolean;
|
|
36
38
|
readonly: boolean;
|
|
37
|
-
placeholder: string;
|
|
38
|
-
clearable: boolean;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
line-height: 1;
|
|
21
21
|
border: var(--u-border-muted);
|
|
22
22
|
box-shadow: var(--u-shadow-emboss);
|
|
23
|
-
transition: border-color
|
|
23
|
+
transition: border-color var(--u-transition-fast) var(--u-transition-ease), box-shadow var(--u-transition-fast) var(--u-transition-ease);
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
width: 100%;
|
|
26
26
|
display: inline-flex;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.u-input--small {
|
|
35
35
|
height: var(--u-form-component-height-small);
|
|
36
36
|
border-radius: var(--u-radius-small);
|
|
37
|
-
padding: 0
|
|
37
|
+
padding: 0 var(--u-gap-small);
|
|
38
38
|
font-size: var(--u-font-size-main-small);
|
|
39
39
|
}
|
|
40
40
|
.u-input--small .u-input__native {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
.u-input--default {
|
|
45
45
|
height: var(--u-form-component-height-default);
|
|
46
46
|
border-radius: var(--u-radius-default);
|
|
47
|
-
padding: 0
|
|
47
|
+
padding: 0 var(--u-gap-default);
|
|
48
48
|
font-size: var(--u-font-size-main-default);
|
|
49
49
|
}
|
|
50
50
|
.u-input--default .u-input__native {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
.u-input--large {
|
|
55
55
|
height: var(--u-form-component-height-large);
|
|
56
56
|
border-radius: var(--u-radius-large);
|
|
57
|
-
padding: 0
|
|
57
|
+
padding: 0 var(--u-gap-large);
|
|
58
58
|
font-size: var(--u-font-size-main-large);
|
|
59
59
|
}
|
|
60
60
|
.u-input--large .u-input__native {
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
.u-input.is-focus {
|
|
65
65
|
border-color: var(--u-color-primary);
|
|
66
|
+
box-shadow: var(--u-focus-ring);
|
|
66
67
|
}
|
|
67
68
|
.u-input__native {
|
|
68
69
|
outline: none;
|