adtec-core-package 0.0.2 → 0.0.3
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/package.json +9 -4
- package/src/App.vue +0 -3
- package/src/assets/base.css +0 -86
- package/src/assets/main.css +0 -35
- package/src/css/elementUI/affix.scss +7 -0
- package/src/css/elementUI/alert.scss +115 -0
- package/src/css/elementUI/anchor-link.scss +41 -0
- package/src/css/elementUI/anchor.scss +88 -0
- package/src/css/elementUI/aside.scss +8 -0
- package/src/css/elementUI/autocomplete.scss +89 -0
- package/src/css/elementUI/avatar.scss +55 -0
- package/src/css/elementUI/backtop.scss +29 -0
- package/src/css/elementUI/badge.scss +58 -0
- package/src/css/elementUI/base.scss +3 -0
- package/src/css/elementUI/breadcrumb-item.scss +0 -0
- package/src/css/elementUI/breadcrumb.scss +62 -0
- package/src/css/elementUI/button-group.scss +80 -0
- package/src/css/elementUI/button.scss +304 -0
- package/src/css/elementUI/calendar.scss +80 -0
- package/src/css/elementUI/card.scss +45 -0
- package/src/css/elementUI/carousel-item.scss +58 -0
- package/src/css/elementUI/carousel.scss +188 -0
- package/src/css/elementUI/cascader-panel.scss +138 -0
- package/src/css/elementUI/cascader.scss +230 -0
- package/src/css/elementUI/check-tag.scss +60 -0
- package/src/css/elementUI/checkbox-button.scss +140 -0
- package/src/css/elementUI/checkbox-group.scss +7 -0
- package/src/css/elementUI/checkbox.scss +298 -0
- package/src/css/elementUI/col.scss +48 -0
- package/src/css/elementUI/collapse-item.scss +0 -0
- package/src/css/elementUI/collapse-transition.scss +0 -0
- package/src/css/elementUI/collapse.scss +70 -0
- package/src/css/elementUI/color/index.scss +20 -0
- package/src/css/elementUI/color-picker.scss +392 -0
- package/src/css/elementUI/common/popup.scss +47 -0
- package/src/css/elementUI/common/transition.scss +122 -0
- package/src/css/elementUI/common/var.scss +1549 -0
- package/src/css/elementUI/config-provider.scss +0 -0
- package/src/css/elementUI/container.scss +14 -0
- package/src/css/elementUI/dark/css-vars.scss +39 -0
- package/src/css/elementUI/dark/var.scss +222 -0
- package/src/css/elementUI/date-picker/date-picker.scss +110 -0
- package/src/css/elementUI/date-picker/date-range-picker.scss +113 -0
- package/src/css/elementUI/date-picker/date-table.scss +158 -0
- package/src/css/elementUI/date-picker/month-table.scss +112 -0
- package/src/css/elementUI/date-picker/picker-panel.scss +131 -0
- package/src/css/elementUI/date-picker/picker.scss +219 -0
- package/src/css/elementUI/date-picker/time-picker.scss +90 -0
- package/src/css/elementUI/date-picker/time-range-picker.scss +33 -0
- package/src/css/elementUI/date-picker/time-spinner.scss +111 -0
- package/src/css/elementUI/date-picker/year-table.scss +108 -0
- package/src/css/elementUI/date-picker.scss +9 -0
- package/src/css/elementUI/descriptions-item.scss +73 -0
- package/src/css/elementUI/descriptions.scss +152 -0
- package/src/css/elementUI/dialog.scss +199 -0
- package/src/css/elementUI/display.scss +12 -0
- package/src/css/elementUI/divider.scss +48 -0
- package/src/css/elementUI/drawer.scss +164 -0
- package/src/css/elementUI/dropdown-item.scss +0 -0
- package/src/css/elementUI/dropdown-menu.scss +0 -0
- package/src/css/elementUI/dropdown.scss +208 -0
- package/src/css/elementUI/empty.scss +49 -0
- package/src/css/elementUI/footer.scss +12 -0
- package/src/css/elementUI/form-item.scss +0 -0
- package/src/css/elementUI/form.scss +243 -0
- package/src/css/elementUI/header.scss +12 -0
- package/src/css/elementUI/icon.scss +45 -0
- package/src/css/elementUI/image-viewer.scss +139 -0
- package/src/css/elementUI/image.scss +49 -0
- package/src/css/elementUI/index.scss +110 -0
- package/src/css/elementUI/infinite-scroll.scss +0 -0
- package/src/css/elementUI/input-number.scss +178 -0
- package/src/css/elementUI/input.scss +478 -0
- package/src/css/elementUI/link.scss +90 -0
- package/src/css/elementUI/loading.scss +104 -0
- package/src/css/elementUI/main.scss +14 -0
- package/src/css/elementUI/mention.scss +88 -0
- package/src/css/elementUI/menu-item-group.scss +0 -0
- package/src/css/elementUI/menu-item.scss +0 -0
- package/src/css/elementUI/menu.scss +339 -0
- package/src/css/elementUI/message-box.scss +213 -0
- package/src/css/elementUI/message.scss +98 -0
- package/src/css/elementUI/mixins/_button.scss +165 -0
- package/src/css/elementUI/mixins/_col.scss +33 -0
- package/src/css/elementUI/mixins/_var.scss +67 -0
- package/src/css/elementUI/mixins/config.scss +5 -0
- package/src/css/elementUI/mixins/function.scss +88 -0
- package/src/css/elementUI/mixins/mixins.scss +237 -0
- package/src/css/elementUI/mixins/utils.scss +39 -0
- package/src/css/elementUI/notification.scss +104 -0
- package/src/css/elementUI/option-group.scss +33 -0
- package/src/css/elementUI/option.scss +71 -0
- package/src/css/elementUI/overlay.scss +17 -0
- package/src/css/elementUI/page-header.scss +60 -0
- package/src/css/elementUI/pagination.scss +238 -0
- package/src/css/elementUI/popconfirm.scss +16 -0
- package/src/css/elementUI/popover.scss +61 -0
- package/src/css/elementUI/popper.scss +106 -0
- package/src/css/elementUI/progress.scss +179 -0
- package/src/css/elementUI/radio-button.scss +169 -0
- package/src/css/elementUI/radio-group.scss +9 -0
- package/src/css/elementUI/radio.scss +215 -0
- package/src/css/elementUI/rate.scss +108 -0
- package/src/css/elementUI/reset.scss +98 -0
- package/src/css/elementUI/result.scss +57 -0
- package/src/css/elementUI/row.scss +35 -0
- package/src/css/elementUI/scrollbar.scss +97 -0
- package/src/css/elementUI/segmented.scss +183 -0
- package/src/css/elementUI/select-dropdown-v2.scss +1 -0
- package/src/css/elementUI/select-dropdown.scss +57 -0
- package/src/css/elementUI/select-v2.scss +4 -0
- package/src/css/elementUI/select.scss +253 -0
- package/src/css/elementUI/skeleton-item.scss +83 -0
- package/src/css/elementUI/skeleton.scss +44 -0
- package/src/css/elementUI/slider.scss +212 -0
- package/src/css/elementUI/space.scss +20 -0
- package/src/css/elementUI/spinner.scss +43 -0
- package/src/css/elementUI/statistic.scss +35 -0
- package/src/css/elementUI/step.scss +316 -0
- package/src/css/elementUI/steps.scss +21 -0
- package/src/css/elementUI/sub-menu.scss +0 -0
- package/src/css/elementUI/switch.scss +300 -0
- package/src/css/elementUI/tab-pane.scss +0 -0
- package/src/css/elementUI/table-column.scss +98 -0
- package/src/css/elementUI/table-v2.scss +236 -0
- package/src/css/elementUI/table.scss +694 -0
- package/src/css/elementUI/tabs.scss +659 -0
- package/src/css/elementUI/tag.scss +181 -0
- package/src/css/elementUI/text.scss +51 -0
- package/src/css/elementUI/time-picker.scss +5 -0
- package/src/css/elementUI/time-select.scss +37 -0
- package/src/css/elementUI/timeline-item.scss +84 -0
- package/src/css/elementUI/timeline.scss +46 -0
- package/src/css/elementUI/tooltip-v2.scss +95 -0
- package/src/css/elementUI/tooltip.scss +0 -0
- package/src/css/elementUI/tour.scss +187 -0
- package/src/css/elementUI/transfer.scss +203 -0
- package/src/css/elementUI/tree-select.scss +41 -0
- package/src/css/elementUI/tree.scss +134 -0
- package/src/css/elementUI/upload.scss +654 -0
- package/src/css/elementUI/var.scss +87 -0
- package/src/css/elementUI/virtual-list.scss +40 -0
- package/src/views/HomeView.vue +2 -2
- package/vite.config.ts +2 -9
- package/src/components/HelloWorld.vue +0 -41
- package/src/components/TheWelcome.vue +0 -94
- package/src/components/WelcomeItem.vue +0 -87
- package/src/components/icons/IconCommunity.vue +0 -7
- package/src/components/icons/IconDocumentation.vue +0 -7
- package/src/components/icons/IconEcosystem.vue +0 -7
- package/src/components/icons/IconSupport.vue +0 -7
- package/src/components/icons/IconTooling.vue +0 -19
|
@@ -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,131 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(picker-panel) {
|
|
5
|
+
color: getCssVar('text-color', 'regular');
|
|
6
|
+
background: getCssVar('bg-color', 'overlay');
|
|
7
|
+
border-radius: getCssVar('border-radius-base');
|
|
8
|
+
line-height: 30px;
|
|
9
|
+
|
|
10
|
+
.#{$namespace}-time-panel {
|
|
11
|
+
margin: 5px 0;
|
|
12
|
+
border: solid 1px getCssVar('datepicker-border-color');
|
|
13
|
+
background-color: getCssVar('bg-color', 'overlay');
|
|
14
|
+
box-shadow: getCssVar('box-shadow-light');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include e((body, body-wrapper)) {
|
|
18
|
+
&::after {
|
|
19
|
+
content: '';
|
|
20
|
+
display: table;
|
|
21
|
+
clear: both;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include e(content) {
|
|
26
|
+
position: relative;
|
|
27
|
+
margin: 15px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include e(footer) {
|
|
31
|
+
border-top: 1px solid getCssVar('datepicker-inner-border-color');
|
|
32
|
+
padding: 4px 12px;
|
|
33
|
+
text-align: right;
|
|
34
|
+
background-color: getCssVar('bg-color', 'overlay');
|
|
35
|
+
position: relative;
|
|
36
|
+
font-size: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include e(shortcut) {
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
border: 0;
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
line-height: 28px;
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
color: getCssVar('datepicker-text-color');
|
|
47
|
+
padding-left: 12px;
|
|
48
|
+
text-align: left;
|
|
49
|
+
outline: none;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.active {
|
|
57
|
+
background-color: #e6f1fe;
|
|
58
|
+
color: getCssVar('datepicker-active-color');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include e(btn) {
|
|
63
|
+
border: 1px solid getCssVar('fill-color', 'darker');
|
|
64
|
+
color: getCssVar('text-color', 'primary');
|
|
65
|
+
line-height: 24px;
|
|
66
|
+
border-radius: 2px;
|
|
67
|
+
padding: 0 20px;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
background-color: transparent;
|
|
70
|
+
outline: none;
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
|
|
73
|
+
&[disabled] {
|
|
74
|
+
color: getCssVar('text-color', 'disabled');
|
|
75
|
+
cursor: not-allowed;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include e(icon-btn) {
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
color: getCssVar('datepicker-icon-color');
|
|
82
|
+
border: 0;
|
|
83
|
+
background: transparent;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
outline: none;
|
|
86
|
+
margin-top: 8px;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
90
|
+
}
|
|
91
|
+
&:focus-visible {
|
|
92
|
+
color: getCssVar('datepicker-hover-text-color');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include when(disabled) {
|
|
96
|
+
color: getCssVar('text-color-disabled');
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
cursor: not-allowed;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
& .#{$namespace}-icon {
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
font-size: inherit;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@include e(link-btn) {
|
|
109
|
+
vertical-align: middle;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.#{$namespace}-picker-panel *[slot='sidebar'],
|
|
114
|
+
.#{$namespace}-picker-panel__sidebar {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
bottom: 0;
|
|
118
|
+
width: 110px;
|
|
119
|
+
border-right: 1px solid getCssVar('datepicker-inner-border-color');
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
padding-top: 6px;
|
|
122
|
+
background-color: getCssVar('bg-color', 'overlay');
|
|
123
|
+
overflow: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.#{$namespace}-picker-panel
|
|
127
|
+
*[slot='sidebar']
|
|
128
|
+
+ .#{$namespace}-picker-panel__body,
|
|
129
|
+
.#{$namespace}-picker-panel__sidebar + .#{$namespace}-picker-panel__body {
|
|
130
|
+
margin-left: 110px;
|
|
131
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
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
|
+
.el-input__suffix{
|
|
39
|
+
position: absolute;
|
|
40
|
+
right: 25px;
|
|
41
|
+
}
|
|
42
|
+
.el-input__prefix{
|
|
43
|
+
position: absolute;
|
|
44
|
+
right: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.#{$namespace}-input,
|
|
48
|
+
&.#{$namespace}-input__wrapper {
|
|
49
|
+
width: getCssVar('date-editor-width');
|
|
50
|
+
height: var(#{getCssVarName('input-height')}, getCssVar('component-size'));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include m((monthrange)) {
|
|
54
|
+
@include css-var-from-global(
|
|
55
|
+
'date-editor-width',
|
|
56
|
+
'date-editor-monthrange-width'
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include m((daterange, timerange)) {
|
|
61
|
+
@include css-var-from-global(
|
|
62
|
+
'date-editor-width',
|
|
63
|
+
'date-editor-daterange-width'
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include m(datetimerange) {
|
|
68
|
+
@include css-var-from-global(
|
|
69
|
+
'date-editor-width',
|
|
70
|
+
'date-editor-datetimerange-width'
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@include m(dates) {
|
|
75
|
+
.#{$namespace}-input__wrapper {
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.close-icon {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.clear-icon {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
color: getCssVar('text-color', 'secondary');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.#{$namespace}-range__icon {
|
|
94
|
+
height: inherit;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
color: getCssVar('text-color', 'placeholder');
|
|
97
|
+
float: left;
|
|
98
|
+
|
|
99
|
+
svg {
|
|
100
|
+
vertical-align: middle;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.#{$namespace}-range-input {
|
|
105
|
+
appearance: none;
|
|
106
|
+
border: none;
|
|
107
|
+
outline: none;
|
|
108
|
+
display: inline-block;
|
|
109
|
+
height: #{map.get($input-height, 'default') - 2};
|
|
110
|
+
line-height: #{map.get($input-height, 'default') - 2};
|
|
111
|
+
margin: 0;
|
|
112
|
+
padding: 0;
|
|
113
|
+
width: 39%;
|
|
114
|
+
text-align: center;
|
|
115
|
+
font-size: getCssVar('font-size', 'base');
|
|
116
|
+
color: getCssVar('text-color', 'regular');
|
|
117
|
+
background-color: transparent;
|
|
118
|
+
|
|
119
|
+
&::placeholder {
|
|
120
|
+
color: getCssVar('text-color', 'placeholder');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.#{$namespace}-range-separator {
|
|
125
|
+
flex: 1;
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
align-items: center;
|
|
129
|
+
height: 100%;
|
|
130
|
+
padding: 0 5px;
|
|
131
|
+
margin: 0;
|
|
132
|
+
font-size: 14px;
|
|
133
|
+
overflow-wrap: break-word;
|
|
134
|
+
color: getCssVar('text-color', 'primary');
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.#{$namespace}-range__close-icon {
|
|
138
|
+
font-size: 14px;
|
|
139
|
+
color: getCssVar('text-color', 'placeholder');
|
|
140
|
+
height: inherit;
|
|
141
|
+
width: unset;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
color: getCssVar('text-color', 'secondary');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
svg {
|
|
149
|
+
vertical-align: middle;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&--hidden {
|
|
153
|
+
opacity: 0;
|
|
154
|
+
visibility: hidden;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@include b(range-editor) {
|
|
160
|
+
&.#{$namespace}-input__wrapper {
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
padding: 0 10px;
|
|
164
|
+
vertical-align: middle;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include when(active) {
|
|
168
|
+
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
|
|
169
|
+
&:hover {
|
|
170
|
+
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@each $size in (large, small) {
|
|
175
|
+
@include m($size) {
|
|
176
|
+
line-height: getCssVar('component-size', $size);
|
|
177
|
+
|
|
178
|
+
&.#{$namespace}-input__wrapper {
|
|
179
|
+
height: getCssVar('component-size', $size);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.#{$namespace}-range-separator {
|
|
183
|
+
line-height: map.get($input-line-height, $size);
|
|
184
|
+
font-size: map.get($input-font-size, $size);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.#{$namespace}-range-input {
|
|
188
|
+
height: #{map.get($input-height, $size) - 2};
|
|
189
|
+
line-height: #{map.get($input-height, $size) - 2};
|
|
190
|
+
font-size: map.get($input-font-size, $size);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@include when(disabled) {
|
|
196
|
+
background-color: map.get($input-disabled, 'fill');
|
|
197
|
+
border-color: map.get($input-disabled, 'border');
|
|
198
|
+
color: map.get($input-disabled, 'text-color');
|
|
199
|
+
cursor: not-allowed;
|
|
200
|
+
|
|
201
|
+
&:hover,
|
|
202
|
+
&:focus {
|
|
203
|
+
border-color: map.get($input-disabled, 'border');
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
input {
|
|
207
|
+
background-color: map.get($input-disabled, 'fill');
|
|
208
|
+
color: map.get($input-disabled, 'text-color');
|
|
209
|
+
cursor: not-allowed;
|
|
210
|
+
&::placeholder {
|
|
211
|
+
color: map.get($input-disabled, 'placeholder-color');
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.#{$namespace}-range-separator {
|
|
216
|
+
color: map.get($input-disabled, 'text-color');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(time-panel) {
|
|
5
|
+
border-radius: 2px;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 180px;
|
|
8
|
+
left: 0;
|
|
9
|
+
z-index: getCssVar('index-top');
|
|
10
|
+
user-select: none;
|
|
11
|
+
box-sizing: content-box;
|
|
12
|
+
|
|
13
|
+
@include e(content) {
|
|
14
|
+
font-size: 0;
|
|
15
|
+
position: relative;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
|
|
18
|
+
&::after,
|
|
19
|
+
&::before {
|
|
20
|
+
content: '';
|
|
21
|
+
top: 50%;
|
|
22
|
+
position: absolute;
|
|
23
|
+
margin-top: -16px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
z-index: -1;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
padding-top: 6px;
|
|
30
|
+
text-align: left;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&::after {
|
|
34
|
+
left: 50%;
|
|
35
|
+
margin-left: 12%;
|
|
36
|
+
margin-right: 12%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::before {
|
|
40
|
+
padding-left: 50%;
|
|
41
|
+
margin-right: 12%;
|
|
42
|
+
margin-left: 12%;
|
|
43
|
+
border-top: 1px solid getCssVar('border-color-light');
|
|
44
|
+
border-bottom: 1px solid getCssVar('border-color-light');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.has-seconds {
|
|
48
|
+
&::after {
|
|
49
|
+
left: calc(100% / 3 * 2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
padding-left: calc(100% / 3);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include e(footer) {
|
|
59
|
+
border-top: 1px solid
|
|
60
|
+
var(
|
|
61
|
+
#{getCssVarName('timepicker-inner-border-color')},
|
|
62
|
+
#{getCssVar('border-color-light')}
|
|
63
|
+
);
|
|
64
|
+
padding: 4px;
|
|
65
|
+
height: 36px;
|
|
66
|
+
line-height: 25px;
|
|
67
|
+
text-align: right;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include e(btn) {
|
|
72
|
+
border: none;
|
|
73
|
+
line-height: 28px;
|
|
74
|
+
padding: 0 5px;
|
|
75
|
+
margin: 0 5px;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
outline: none;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
color: getCssVar('text-color', 'primary');
|
|
81
|
+
|
|
82
|
+
&.confirm {
|
|
83
|
+
font-weight: 800;
|
|
84
|
+
color: var(
|
|
85
|
+
#{getCssVarName('timepicker-active-color')},
|
|
86
|
+
#{getCssVar('color-primary')}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(time-range-picker) {
|
|
5
|
+
width: 354px;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
|
|
8
|
+
@include e(content) {
|
|
9
|
+
position: relative;
|
|
10
|
+
text-align: center;
|
|
11
|
+
padding: 10px;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include e(cell) {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 4px 7px 7px;
|
|
19
|
+
width: 50%;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include e(header) {
|
|
24
|
+
margin-bottom: 5px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include e(body) {
|
|
30
|
+
border-radius: 2px;
|
|
31
|
+
border: 1px solid getCssVar('datepicker-border-color');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@use '../mixins/mixins' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(time-spinner) {
|
|
5
|
+
&.has-seconds {
|
|
6
|
+
.#{$namespace}-time-spinner__wrapper {
|
|
7
|
+
width: 33.3%;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@include e(wrapper) {
|
|
12
|
+
max-height: 192px;
|
|
13
|
+
overflow: auto;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
width: 50%;
|
|
16
|
+
vertical-align: top;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
&.#{$namespace}-scrollbar__wrap:not(.#{$namespace}-scrollbar__wrap--hidden-default) {
|
|
20
|
+
padding-bottom: 15px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include when(arrow) {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
text-align: center;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
|
|
28
|
+
.#{$namespace}-time-spinner__list {
|
|
29
|
+
transform: translateY(-32px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
|
|
33
|
+
background: getCssVar('fill-color', 'light');
|
|
34
|
+
cursor: default;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include e(arrow) {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
color: getCssVar('text-color', 'secondary');
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
width: 100%;
|
|
45
|
+
z-index: getCssVar('index-normal');
|
|
46
|
+
text-align: center;
|
|
47
|
+
height: 30px;
|
|
48
|
+
line-height: 30px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
color: getCssVar('color-primary');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.arrow-up {
|
|
56
|
+
top: 10px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.arrow-down {
|
|
60
|
+
bottom: 10px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include e(input) {
|
|
65
|
+
&.#{$namespace}-input {
|
|
66
|
+
width: 70%;
|
|
67
|
+
|
|
68
|
+
.#{$namespace}-input__inner {
|
|
69
|
+
padding: 0;
|
|
70
|
+
text-align: center;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include e(list) {
|
|
76
|
+
padding: 0;
|
|
77
|
+
margin: 0;
|
|
78
|
+
list-style: none;
|
|
79
|
+
text-align: center;
|
|
80
|
+
|
|
81
|
+
&::after,
|
|
82
|
+
&::before {
|
|
83
|
+
content: '';
|
|
84
|
+
display: block;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 80px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@include e(item) {
|
|
91
|
+
height: 32px;
|
|
92
|
+
line-height: 32px;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
color: getCssVar('text-color', 'regular');
|
|
95
|
+
|
|
96
|
+
&:hover:not(.is-disabled):not(.is-active) {
|
|
97
|
+
background: getCssVar('fill-color', 'light');
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.is-active:not(.is-disabled) {
|
|
102
|
+
color: getCssVar('text-color', 'primary');
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.is-disabled {
|
|
107
|
+
color: getCssVar('text-color', 'placeholder');
|
|
108
|
+
cursor: not-allowed;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|