ep-craft 0.1.2 → 0.1.4
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/button/EpButton.vue.d.ts +7 -7
- package/dist/components/button/button.d.ts +4 -4
- package/dist/components/button/index.d.ts +2 -4
- package/dist/components/button/index.js +4 -6
- package/dist/index.css +1 -2
- package/dist/resolver.js +9 -12
- package/package.json +4 -2
- package/theme-chalk/src/affix.scss +7 -0
- package/theme-chalk/src/alert.scss +115 -0
- package/theme-chalk/src/anchor-link.scss +45 -0
- package/theme-chalk/src/anchor.scss +93 -0
- package/theme-chalk/src/aside.scss +8 -0
- package/theme-chalk/src/autocomplete.scss +95 -0
- package/theme-chalk/src/avatar-group.scss +25 -0
- package/theme-chalk/src/avatar.scss +55 -0
- package/theme-chalk/src/backtop.scss +29 -0
- package/theme-chalk/src/badge.scss +58 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +9 -0
- package/theme-chalk/src/button-group.scss +133 -0
- package/theme-chalk/src/button.scss +374 -0
- package/theme-chalk/src/calendar.scss +94 -0
- package/theme-chalk/src/card.scss +49 -0
- package/theme-chalk/src/carousel-item.scss +58 -0
- package/theme-chalk/src/carousel.scss +195 -0
- package/theme-chalk/src/cascader-panel.scss +150 -0
- package/theme-chalk/src/cascader.scss +289 -0
- package/theme-chalk/src/check-tag.scss +60 -0
- package/theme-chalk/src/checkbox-button.scss +142 -0
- package/theme-chalk/src/checkbox-group.scss +7 -0
- package/theme-chalk/src/checkbox.scss +300 -0
- package/theme-chalk/src/col.scss +56 -0
- package/theme-chalk/src/collapse-item.scss +72 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +29 -0
- package/theme-chalk/src/color/index.scss +20 -0
- package/theme-chalk/src/color-picker-panel.scss +294 -0
- package/theme-chalk/src/color-picker.scss +165 -0
- package/theme-chalk/src/common/popup.scss +47 -0
- package/theme-chalk/src/common/transition.scss +125 -0
- package/theme-chalk/src/common/var.scss +1748 -0
- package/theme-chalk/src/config-provider.scss +0 -0
- package/theme-chalk/src/container.scss +14 -0
- package/theme-chalk/src/dark/css-vars.scss +45 -0
- package/theme-chalk/src/dark/var.scss +224 -0
- package/theme-chalk/src/date-picker/date-picker.scss +121 -0
- package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
- package/theme-chalk/src/date-picker/date-table.scss +164 -0
- package/theme-chalk/src/date-picker/month-table.scss +112 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
- package/theme-chalk/src/date-picker/picker.scss +217 -0
- package/theme-chalk/src/date-picker/time-picker.scss +90 -0
- package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
- package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
- package/theme-chalk/src/date-picker/utils.scss +14 -0
- package/theme-chalk/src/date-picker/year-table.scss +108 -0
- package/theme-chalk/src/date-picker-panel.scss +34 -0
- package/theme-chalk/src/date-picker.scss +0 -0
- package/theme-chalk/src/descriptions-item.scss +77 -0
- package/theme-chalk/src/descriptions.scss +151 -0
- package/theme-chalk/src/dialog.scss +207 -0
- package/theme-chalk/src/display.scss +12 -0
- package/theme-chalk/src/divider.scss +48 -0
- package/theme-chalk/src/drawer.scss +251 -0
- package/theme-chalk/src/dropdown-item.scss +0 -0
- package/theme-chalk/src/dropdown-menu.scss +0 -0
- package/theme-chalk/src/dropdown.scss +208 -0
- package/theme-chalk/src/empty.scss +49 -0
- package/theme-chalk/src/footer.scss +12 -0
- package/theme-chalk/src/form-item.scss +246 -0
- package/theme-chalk/src/form.scss +28 -0
- package/theme-chalk/src/header.scss +12 -0
- package/theme-chalk/src/icon.scss +41 -0
- package/theme-chalk/src/image-viewer.scss +161 -0
- package/theme-chalk/src/image.scss +49 -0
- package/theme-chalk/src/index.scss +116 -0
- package/theme-chalk/src/infinite-scroll.scss +0 -0
- package/theme-chalk/src/input-number.scss +192 -0
- package/theme-chalk/src/input-otp.scss +191 -0
- package/theme-chalk/src/input-tag.scss +249 -0
- package/theme-chalk/src/input.scss +541 -0
- package/theme-chalk/src/link.scss +90 -0
- package/theme-chalk/src/loading.scss +104 -0
- package/theme-chalk/src/main.scss +14 -0
- package/theme-chalk/src/mention.scss +88 -0
- package/theme-chalk/src/menu-item-group.scss +0 -0
- package/theme-chalk/src/menu-item.scss +0 -0
- package/theme-chalk/src/menu.scss +376 -0
- package/theme-chalk/src/message-box.scss +220 -0
- package/theme-chalk/src/message.scss +123 -0
- package/theme-chalk/src/mixins/_button.scss +240 -0
- package/theme-chalk/src/mixins/_col.scss +41 -0
- package/theme-chalk/src/mixins/_var.scss +67 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +99 -0
- package/theme-chalk/src/mixins/mixins.scss +257 -0
- package/theme-chalk/src/mixins/utils.scss +39 -0
- package/theme-chalk/src/notification.scss +109 -0
- package/theme-chalk/src/option-group.scss +33 -0
- package/theme-chalk/src/option.scss +71 -0
- package/theme-chalk/src/overlay.scss +17 -0
- package/theme-chalk/src/page-header.scss +60 -0
- package/theme-chalk/src/pagination.scss +235 -0
- package/theme-chalk/src/popconfirm.scss +17 -0
- package/theme-chalk/src/popover.scss +61 -0
- package/theme-chalk/src/popper.scss +117 -0
- package/theme-chalk/src/progress.scss +179 -0
- package/theme-chalk/src/radio-button.scss +165 -0
- package/theme-chalk/src/radio-group.scss +9 -0
- package/theme-chalk/src/radio.scss +220 -0
- package/theme-chalk/src/rate.scss +121 -0
- package/theme-chalk/src/reset.scss +99 -0
- package/theme-chalk/src/result.scss +57 -0
- package/theme-chalk/src/row.scss +34 -0
- package/theme-chalk/src/scrollbar.scss +97 -0
- package/theme-chalk/src/segmented.scss +186 -0
- package/theme-chalk/src/select-dropdown-v2.scss +1 -0
- package/theme-chalk/src/select-dropdown.scss +57 -0
- package/theme-chalk/src/select-v2.scss +4 -0
- package/theme-chalk/src/select.scss +269 -0
- package/theme-chalk/src/skeleton-item.scss +83 -0
- package/theme-chalk/src/skeleton.scss +44 -0
- package/theme-chalk/src/slider.scss +212 -0
- package/theme-chalk/src/space.scss +20 -0
- package/theme-chalk/src/spinner.scss +43 -0
- package/theme-chalk/src/splitter-panel.scss +8 -0
- package/theme-chalk/src/splitter.scss +148 -0
- package/theme-chalk/src/statistic.scss +35 -0
- package/theme-chalk/src/step.scss +320 -0
- package/theme-chalk/src/steps.scss +22 -0
- package/theme-chalk/src/sub-menu.scss +0 -0
- package/theme-chalk/src/switch.scss +294 -0
- package/theme-chalk/src/tab-pane.scss +0 -0
- package/theme-chalk/src/table-column.scss +100 -0
- package/theme-chalk/src/table-v2.scss +239 -0
- package/theme-chalk/src/table.scss +698 -0
- package/theme-chalk/src/tabs.scss +699 -0
- package/theme-chalk/src/tag.scss +195 -0
- package/theme-chalk/src/text.scss +51 -0
- package/theme-chalk/src/time-picker.scss +5 -0
- package/theme-chalk/src/time-select.scss +37 -0
- package/theme-chalk/src/timeline-item.scss +135 -0
- package/theme-chalk/src/timeline.scss +101 -0
- package/theme-chalk/src/tooltip.scss +0 -0
- package/theme-chalk/src/tour.scss +187 -0
- package/theme-chalk/src/transfer.scss +201 -0
- package/theme-chalk/src/tree-select.scss +41 -0
- package/theme-chalk/src/tree.scss +134 -0
- package/theme-chalk/src/upload.scss +660 -0
- package/theme-chalk/src/var.scss +87 -0
- package/theme-chalk/src/virtual-list.scss +40 -0
- package/dist/components/button/EpButton.vue.js +0 -171
- package/dist/components/button/EpButton2.vue.js +0 -4
- package/dist/components/button/button.js +0 -95
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use '../common/var' as *;
|
|
2
|
+
@use '../mixins/mixins' as *;
|
|
3
|
+
|
|
4
|
+
@include b(date-table) {
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
user-select: none;
|
|
7
|
+
|
|
8
|
+
@include when(week-mode) {
|
|
9
|
+
.#{$namespace}-date-table__row {
|
|
10
|
+
&:hover {
|
|
11
|
+
.#{$namespace}-date-table-cell {
|
|
12
|
+
background-color: getCssVar('datepicker-inrange-bg-color');
|
|
13
|
+
}
|
|
14
|
+
td.available:hover {
|
|
15
|
+
color: getCssVar('datepicker-text-color');
|
|
16
|
+
}
|
|
17
|
+
td:first-child .#{$namespace}-date-table-cell {
|
|
18
|
+
margin-left: 5px;
|
|
19
|
+
border-top-left-radius: 15px;
|
|
20
|
+
border-bottom-left-radius: 15px;
|
|
21
|
+
}
|
|
22
|
+
td:last-child .#{$namespace}-date-table-cell {
|
|
23
|
+
margin-right: 5px;
|
|
24
|
+
border-top-right-radius: 15px;
|
|
25
|
+
border-bottom-right-radius: 15px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.current .#{$namespace}-date-table-cell {
|
|
30
|
+
background-color: getCssVar('datepicker-inrange-bg-color');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
td {
|
|
36
|
+
width: 32px;
|
|
37
|
+
height: 30px;
|
|
38
|
+
padding: 4px 0;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
text-align: center;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
position: relative;
|
|
43
|
+
|
|
44
|
+
@include b(date-table-cell) {
|
|
45
|
+
height: 30px;
|
|
46
|
+
padding: 3px 0;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
@include b(date-table-cell__text) {
|
|
49
|
+
width: 24px;
|
|
50
|
+
height: 24px;
|
|
51
|
+
display: block;
|
|
52
|
+
margin: 0 auto;
|
|
53
|
+
line-height: 24px;
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 50%;
|
|
56
|
+
transform: translateX(-50%);
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.next-month,
|
|
62
|
+
&.prev-month {
|
|
63
|
+
color: getCssVar('datepicker-off-text-color');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.today {
|
|
67
|
+
position: relative;
|
|
68
|
+
.#{$namespace}-date-table-cell__text {
|
|
69
|
+
color: getCssVar('color-primary');
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
}
|
|
72
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
73
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
74
|
+
color: $color-white;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.available:hover {
|
|
79
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.in-range .#{$namespace}-date-table-cell {
|
|
83
|
+
background-color: getCssVar('datepicker-inrange-bg-color');
|
|
84
|
+
&:hover {
|
|
85
|
+
background-color: getCssVar('datepicker-inrange-hover-bg-color');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.current:not(.disabled) {
|
|
90
|
+
.#{$namespace}-date-table-cell__text {
|
|
91
|
+
color: $color-white;
|
|
92
|
+
background-color: getCssVar('datepicker-active-color');
|
|
93
|
+
}
|
|
94
|
+
&:focus-visible {
|
|
95
|
+
.#{$namespace}-date-table-cell__text {
|
|
96
|
+
outline: 2px solid getCssVar('datepicker-active-color');
|
|
97
|
+
outline-offset: 1px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
&.start-date .#{$namespace}-date-table-cell,
|
|
102
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
103
|
+
color: $color-white;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
107
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
108
|
+
background-color: getCssVar('datepicker-active-color');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.start-date .#{$namespace}-date-table-cell {
|
|
112
|
+
margin-left: 5px;
|
|
113
|
+
border-top-left-radius: 15px;
|
|
114
|
+
border-bottom-left-radius: 15px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
118
|
+
margin-right: 5px;
|
|
119
|
+
border-top-right-radius: 15px;
|
|
120
|
+
border-bottom-right-radius: 15px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.disabled .#{$namespace}-date-table-cell {
|
|
124
|
+
background-color: getCssVar('fill-color', 'light');
|
|
125
|
+
opacity: 1;
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
color: getCssVar('text-color', 'placeholder');
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.selected .#{$namespace}-date-table-cell {
|
|
131
|
+
margin-left: 5px;
|
|
132
|
+
margin-right: 5px;
|
|
133
|
+
border-radius: 15px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.selected .#{$namespace}-date-table-cell__text {
|
|
137
|
+
background-color: getCssVar('datepicker-active-color');
|
|
138
|
+
color: $color-white;
|
|
139
|
+
border-radius: 15px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.week {
|
|
143
|
+
font-size: 80%;
|
|
144
|
+
color: getCssVar('datepicker-off-text-color');
|
|
145
|
+
cursor: default;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:focus {
|
|
149
|
+
outline: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
th {
|
|
154
|
+
padding: 5px;
|
|
155
|
+
color: getCssVar('datepicker-header-text-color');
|
|
156
|
+
font-weight: 400;
|
|
157
|
+
border-bottom: solid 1px getCssVar('border-color-lighter');
|
|
158
|
+
|
|
159
|
+
&.#{$namespace}-date-table__week-header {
|
|
160
|
+
padding: 0;
|
|
161
|
+
width: 24px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(month-table) {
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
margin: -1px;
|
|
7
|
+
border-collapse: collapse;
|
|
8
|
+
|
|
9
|
+
td {
|
|
10
|
+
width: 68px;
|
|
11
|
+
text-align: center;
|
|
12
|
+
padding: 8px 0;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
@include b(date-table-cell) {
|
|
17
|
+
height: 48px;
|
|
18
|
+
padding: 6px 0;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.today {
|
|
23
|
+
.#{$namespace}-date-table-cell__text {
|
|
24
|
+
color: getCssVar('color-primary');
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
29
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
30
|
+
color: $color-white;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.disabled .#{$namespace}-date-table-cell__text {
|
|
35
|
+
background-color: getCssVar('fill-color', 'light');
|
|
36
|
+
cursor: not-allowed;
|
|
37
|
+
color: getCssVar('text-color', 'placeholder');
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
color: getCssVar('text-color', 'placeholder');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include b(date-table-cell__text) {
|
|
45
|
+
width: 54px;
|
|
46
|
+
height: 36px;
|
|
47
|
+
display: block;
|
|
48
|
+
line-height: 36px;
|
|
49
|
+
color: getCssVar('datepicker-text-color');
|
|
50
|
+
margin: 0 auto;
|
|
51
|
+
border-radius: 18px;
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 50%;
|
|
54
|
+
transform: translateX(-50%);
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.in-range .#{$namespace}-date-table-cell {
|
|
62
|
+
background-color: getCssVar('datepicker-inrange-bg-color');
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
background-color: getCssVar('datepicker-inrange-hover-bg-color');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.start-date .#{$namespace}-date-table-cell,
|
|
70
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
71
|
+
color: $color-white;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
75
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
76
|
+
color: $color-white;
|
|
77
|
+
background-color: getCssVar('datepicker-active-color');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.start-date .#{$namespace}-date-table-cell {
|
|
81
|
+
margin-left: 3px;
|
|
82
|
+
border-top-left-radius: 24px;
|
|
83
|
+
border-bottom-left-radius: 24px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
87
|
+
margin-right: 3px;
|
|
88
|
+
border-top-right-radius: 24px;
|
|
89
|
+
border-bottom-right-radius: 24px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.current:not(.disabled) .#{$namespace}-date-table-cell {
|
|
93
|
+
border-radius: 24px;
|
|
94
|
+
margin-left: 3px;
|
|
95
|
+
margin-right: 3px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.current:not(.disabled) .#{$namespace}-date-table-cell__text {
|
|
99
|
+
color: $color-white;
|
|
100
|
+
background-color: getCssVar('datepicker-active-color');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:focus-visible {
|
|
104
|
+
outline: none;
|
|
105
|
+
|
|
106
|
+
.#{$namespace}-date-table-cell__text {
|
|
107
|
+
outline: 2px solid getCssVar('datepicker-active-color');
|
|
108
|
+
outline-offset: 1px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
@use './utils.scss' as *;
|
|
4
|
+
|
|
5
|
+
@include b(picker-panel) {
|
|
6
|
+
color: getCssVar('text-color', 'regular');
|
|
7
|
+
background: getCssVar('datepicker', 'bg-color');
|
|
8
|
+
border-radius: getCssVarWithDefault(
|
|
9
|
+
('popper', 'border-radius'),
|
|
10
|
+
getCssVar('border-radius-base')
|
|
11
|
+
);
|
|
12
|
+
line-height: 30px;
|
|
13
|
+
|
|
14
|
+
.#{$namespace}-time-panel {
|
|
15
|
+
margin: 5px 0;
|
|
16
|
+
border: solid 1px getCssVar('datepicker-border-color');
|
|
17
|
+
background-color: getCssVar('datepicker', 'bg-color');
|
|
18
|
+
box-shadow: getCssVar('box-shadow-light');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include e((body, body-wrapper)) {
|
|
22
|
+
&::after {
|
|
23
|
+
content: '';
|
|
24
|
+
display: table;
|
|
25
|
+
clear: both;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include e(content) {
|
|
30
|
+
position: relative;
|
|
31
|
+
margin: 15px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(footer) {
|
|
35
|
+
border-top: 1px solid getCssVar('datepicker-inner-border-color');
|
|
36
|
+
padding: 4px 12px;
|
|
37
|
+
text-align: right;
|
|
38
|
+
background-color: getCssVar('datepicker', 'bg-color');
|
|
39
|
+
position: relative;
|
|
40
|
+
font-size: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include e(shortcut) {
|
|
44
|
+
display: block;
|
|
45
|
+
width: 100%;
|
|
46
|
+
border: 0;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
line-height: 28px;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
color: getCssVar('datepicker-text-color');
|
|
51
|
+
padding-left: 12px;
|
|
52
|
+
text-align: left;
|
|
53
|
+
outline: none;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.active {
|
|
61
|
+
background-color: #e6f1fe;
|
|
62
|
+
color: getCssVar('datepicker-active-color');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@include e(btn) {
|
|
67
|
+
border: 1px solid getCssVar('fill-color', 'darker');
|
|
68
|
+
color: getCssVar('text-color', 'primary');
|
|
69
|
+
line-height: 24px;
|
|
70
|
+
border-radius: 2px;
|
|
71
|
+
padding: 0 20px;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
outline: none;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
|
|
77
|
+
&[disabled] {
|
|
78
|
+
color: getCssVar('text-color', 'disabled');
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include e(icon-btn) {
|
|
84
|
+
font-size: 12px;
|
|
85
|
+
color: getCssVar('datepicker-icon-color');
|
|
86
|
+
border: 0;
|
|
87
|
+
background: transparent;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
outline: none;
|
|
90
|
+
line-height: 1;
|
|
91
|
+
margin-top: 8px;
|
|
92
|
+
padding: 1px 6px;
|
|
93
|
+
|
|
94
|
+
&:hover {
|
|
95
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:focus-visible {
|
|
99
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@include when(disabled) {
|
|
103
|
+
@include disable;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& .#{$namespace}-icon {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
font-size: inherit;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include e(link-btn) {
|
|
113
|
+
vertical-align: middle;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@include when(disabled) {
|
|
117
|
+
@include e(prev-btn) {
|
|
118
|
+
@include disable;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include e(next-btn) {
|
|
122
|
+
@include disable;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@include e(icon-btn) {
|
|
126
|
+
@include disable;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include e(shortcut) {
|
|
130
|
+
@include disable;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.#{$namespace}-picker-panel *[slot='sidebar'],
|
|
136
|
+
.#{$namespace}-picker-panel__sidebar {
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: 0;
|
|
139
|
+
bottom: 0;
|
|
140
|
+
width: 110px;
|
|
141
|
+
border-right: 1px solid getCssVar('datepicker-inner-border-color');
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
padding-top: 6px;
|
|
144
|
+
overflow: auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.#{$namespace}-picker-panel
|
|
148
|
+
*[slot='sidebar']
|
|
149
|
+
+ .#{$namespace}-picker-panel__body,
|
|
150
|
+
.#{$namespace}-picker-panel__sidebar + .#{$namespace}-picker-panel__body {
|
|
151
|
+
margin-left: 110px;
|
|
152
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use '../mixins/mixins' as *;
|
|
4
|
+
@use '../mixins/var' as *;
|
|
5
|
+
@use '../common/var' as *;
|
|
6
|
+
@use '../common/transition' as *;
|
|
7
|
+
|
|
8
|
+
@include b(picker) {
|
|
9
|
+
@include e(popper) {
|
|
10
|
+
@include set-css-var-type('datepicker', 'border-color', $datepicker);
|
|
11
|
+
@include picker-popper(
|
|
12
|
+
getCssVar('bg-color', 'overlay'),
|
|
13
|
+
1px solid getCssVar('datepicker', 'border-color'),
|
|
14
|
+
getCssVar('box-shadow', 'light')
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include b(date-editor) {
|
|
20
|
+
@include set-component-css-var('date-editor', $date-editor);
|
|
21
|
+
@include set-component-css-var('input', $input);
|
|
22
|
+
position: relative;
|
|
23
|
+
text-align: left;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
|
|
26
|
+
&.#{$namespace}-input__wrapper {
|
|
27
|
+
@include inset-input-border(
|
|
28
|
+
var(
|
|
29
|
+
#{getCssVarName('input-border-color')},
|
|
30
|
+
map.get($input, 'border-color')
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
@include inset-input-border(#{getCssVar('input', 'hover-border-color')});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include when(focus) {
|
|
40
|
+
.#{$namespace}-input__wrapper {
|
|
41
|
+
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.#{$namespace}-input,
|
|
46
|
+
&.#{$namespace}-input__wrapper {
|
|
47
|
+
width: getCssVar('date-editor-width');
|
|
48
|
+
height: var(#{getCssVarName('input-height')}, getCssVar('component-size'));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include m((monthrange)) {
|
|
52
|
+
@include css-var-from-global(
|
|
53
|
+
'date-editor-width',
|
|
54
|
+
'date-editor-monthrange-width'
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include m((daterange, timerange)) {
|
|
59
|
+
@include css-var-from-global(
|
|
60
|
+
'date-editor-width',
|
|
61
|
+
'date-editor-daterange-width'
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include m(datetimerange) {
|
|
66
|
+
@include css-var-from-global(
|
|
67
|
+
'date-editor-width',
|
|
68
|
+
'date-editor-datetimerange-width'
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@include m(dates) {
|
|
73
|
+
.#{$namespace}-input__wrapper {
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.close-icon {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.clear-icon {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
color: getCssVar('input-clear-hover-color');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.#{$namespace}-range__icon {
|
|
92
|
+
height: inherit;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
color: getCssVar('text-color', 'placeholder');
|
|
95
|
+
float: left;
|
|
96
|
+
|
|
97
|
+
svg {
|
|
98
|
+
vertical-align: middle;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$namespace}-range-input {
|
|
103
|
+
appearance: none;
|
|
104
|
+
border: none;
|
|
105
|
+
outline: none;
|
|
106
|
+
display: inline-block;
|
|
107
|
+
height: #{map.get($input-height, 'default') - 2};
|
|
108
|
+
line-height: #{map.get($input-height, 'default') - 2};
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding: 0;
|
|
111
|
+
width: 39%;
|
|
112
|
+
text-align: center;
|
|
113
|
+
font-size: getCssVar('font-size', 'base');
|
|
114
|
+
color: getCssVar('text-color', 'regular');
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
|
|
117
|
+
&::placeholder {
|
|
118
|
+
color: getCssVar('text-color', 'placeholder');
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.#{$namespace}-range-separator {
|
|
123
|
+
flex: 1;
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
height: 100%;
|
|
128
|
+
padding: 0 5px;
|
|
129
|
+
margin: 0;
|
|
130
|
+
font-size: 14px;
|
|
131
|
+
overflow-wrap: break-word;
|
|
132
|
+
color: getCssVar('text-color', 'primary');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.#{$namespace}-range__close-icon {
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
color: getCssVar('text-color', 'placeholder');
|
|
138
|
+
height: inherit;
|
|
139
|
+
width: unset;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
|
|
142
|
+
&:hover {
|
|
143
|
+
color: getCssVar('input-clear-hover-color');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
svg {
|
|
147
|
+
vertical-align: middle;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&--hidden {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
visibility: hidden;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@include b(range-editor) {
|
|
158
|
+
&.#{$namespace}-input__wrapper {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
padding: 0 10px;
|
|
162
|
+
vertical-align: middle;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@include when(active) {
|
|
166
|
+
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
|
|
167
|
+
&:hover {
|
|
168
|
+
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@each $size in (large, small) {
|
|
173
|
+
@include m($size) {
|
|
174
|
+
line-height: getCssVar('component-size', $size);
|
|
175
|
+
|
|
176
|
+
&.#{$namespace}-input__wrapper {
|
|
177
|
+
height: getCssVar('component-size', $size);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.#{$namespace}-range-separator {
|
|
181
|
+
line-height: map.get($input-line-height, $size);
|
|
182
|
+
font-size: map.get($input-font-size, $size);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.#{$namespace}-range-input {
|
|
186
|
+
height: #{map.get($input-height, $size) - 2};
|
|
187
|
+
line-height: #{map.get($input-height, $size) - 2};
|
|
188
|
+
font-size: map.get($input-font-size, $size);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@include when(disabled) {
|
|
194
|
+
background-color: map.get($input-disabled, 'fill');
|
|
195
|
+
border-color: map.get($input-disabled, 'border');
|
|
196
|
+
color: map.get($input-disabled, 'text-color');
|
|
197
|
+
cursor: not-allowed;
|
|
198
|
+
|
|
199
|
+
&:hover,
|
|
200
|
+
&:focus {
|
|
201
|
+
border-color: map.get($input-disabled, 'border');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
input {
|
|
205
|
+
background-color: map.get($input-disabled, 'fill');
|
|
206
|
+
color: map.get($input-disabled, 'text-color');
|
|
207
|
+
cursor: not-allowed;
|
|
208
|
+
&::placeholder {
|
|
209
|
+
color: map.get($input-disabled, 'placeholder-color');
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.#{$namespace}-range-separator {
|
|
214
|
+
color: map.get($input-disabled, 'text-color');
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|