adtec-core-package 2.3.0 → 2.3.2

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.
Files changed (139) hide show
  1. package/.editorconfig +6 -6
  2. package/.prettierrc.json +7 -7
  3. package/.vscode/extensions.json +8 -8
  4. package/README.md +39 -39
  5. package/env.d.ts +1 -1
  6. package/eslint.config.js +56 -56
  7. package/index.html +13 -13
  8. package/package.json +1 -1
  9. package/src/App.vue +9 -9
  10. package/src/assets/base.css +86 -86
  11. package/src/assets/logo.svg +1 -1
  12. package/src/assets/main.css +35 -35
  13. package/src/assets/style/transition.scss +49 -49
  14. package/src/components/icon/ElIcons.vue +38 -38
  15. package/src/css/elementUI/affix.scss +7 -7
  16. package/src/css/elementUI/alert.scss +115 -115
  17. package/src/css/elementUI/anchor-link.scss +41 -41
  18. package/src/css/elementUI/anchor.scss +88 -88
  19. package/src/css/elementUI/aside.scss +8 -8
  20. package/src/css/elementUI/avatar.scss +55 -55
  21. package/src/css/elementUI/backtop.scss +29 -29
  22. package/src/css/elementUI/badge.scss +58 -58
  23. package/src/css/elementUI/base.scss +3 -3
  24. package/src/css/elementUI/breadcrumb.scss +62 -62
  25. package/src/css/elementUI/button-group.scss +80 -80
  26. package/src/css/elementUI/button.scss +304 -304
  27. package/src/css/elementUI/calendar.scss +80 -80
  28. package/src/css/elementUI/card.scss +45 -45
  29. package/src/css/elementUI/carousel-item.scss +58 -58
  30. package/src/css/elementUI/carousel.scss +188 -188
  31. package/src/css/elementUI/cascader-panel.scss +138 -138
  32. package/src/css/elementUI/cascader.scss +230 -230
  33. package/src/css/elementUI/check-tag.scss +60 -60
  34. package/src/css/elementUI/checkbox-button.scss +140 -140
  35. package/src/css/elementUI/checkbox-group.scss +7 -7
  36. package/src/css/elementUI/col.scss +48 -48
  37. package/src/css/elementUI/collapse.scss +70 -70
  38. package/src/css/elementUI/color/index.scss +20 -20
  39. package/src/css/elementUI/color-picker.scss +392 -392
  40. package/src/css/elementUI/common/popup.scss +47 -47
  41. package/src/css/elementUI/common/transition.scss +122 -122
  42. package/src/css/elementUI/container.scss +14 -14
  43. package/src/css/elementUI/dark/css-vars.scss +39 -39
  44. package/src/css/elementUI/dark/var.scss +222 -222
  45. package/src/css/elementUI/date-picker/date-picker.scss +110 -110
  46. package/src/css/elementUI/date-picker/date-range-picker.scss +113 -113
  47. package/src/css/elementUI/date-picker/date-table.scss +158 -158
  48. package/src/css/elementUI/date-picker/month-table.scss +112 -112
  49. package/src/css/elementUI/date-picker/picker-panel.scss +131 -131
  50. package/src/css/elementUI/date-picker/time-picker.scss +90 -90
  51. package/src/css/elementUI/date-picker/time-range-picker.scss +33 -33
  52. package/src/css/elementUI/date-picker/time-spinner.scss +111 -111
  53. package/src/css/elementUI/date-picker/year-table.scss +108 -108
  54. package/src/css/elementUI/date-picker.scss +9 -9
  55. package/src/css/elementUI/descriptions-item.scss +73 -73
  56. package/src/css/elementUI/dialog.scss +199 -199
  57. package/src/css/elementUI/display.scss +12 -12
  58. package/src/css/elementUI/divider.scss +48 -48
  59. package/src/css/elementUI/dropdown.scss +208 -208
  60. package/src/css/elementUI/empty.scss +49 -49
  61. package/src/css/elementUI/footer.scss +12 -12
  62. package/src/css/elementUI/form.scss +243 -243
  63. package/src/css/elementUI/header.scss +12 -12
  64. package/src/css/elementUI/icon.scss +45 -45
  65. package/src/css/elementUI/image-viewer.scss +139 -139
  66. package/src/css/elementUI/image.scss +49 -49
  67. package/src/css/elementUI/index.scss +110 -110
  68. package/src/css/elementUI/input-number.scss +178 -178
  69. package/src/css/elementUI/input.scss +478 -478
  70. package/src/css/elementUI/link.scss +90 -90
  71. package/src/css/elementUI/loading.scss +104 -104
  72. package/src/css/elementUI/main.scss +14 -14
  73. package/src/css/elementUI/mention.scss +88 -88
  74. package/src/css/elementUI/menu.scss +339 -339
  75. package/src/css/elementUI/message-box.scss +213 -213
  76. package/src/css/elementUI/message.scss +98 -98
  77. package/src/css/elementUI/mixins/_button.scss +165 -165
  78. package/src/css/elementUI/mixins/_col.scss +33 -33
  79. package/src/css/elementUI/mixins/_var.scss +67 -67
  80. package/src/css/elementUI/mixins/config.scss +5 -5
  81. package/src/css/elementUI/mixins/function.scss +88 -88
  82. package/src/css/elementUI/mixins/mixins.scss +237 -237
  83. package/src/css/elementUI/mixins/utils.scss +39 -39
  84. package/src/css/elementUI/notification.scss +104 -104
  85. package/src/css/elementUI/option-group.scss +33 -33
  86. package/src/css/elementUI/option.scss +71 -71
  87. package/src/css/elementUI/overlay.scss +17 -17
  88. package/src/css/elementUI/page-header.scss +60 -60
  89. package/src/css/elementUI/pagination.scss +238 -238
  90. package/src/css/elementUI/popconfirm.scss +16 -16
  91. package/src/css/elementUI/popover.scss +61 -61
  92. package/src/css/elementUI/popper.scss +106 -106
  93. package/src/css/elementUI/progress.scss +179 -179
  94. package/src/css/elementUI/radio-button.scss +169 -169
  95. package/src/css/elementUI/radio-group.scss +9 -9
  96. package/src/css/elementUI/rate.scss +108 -108
  97. package/src/css/elementUI/reset.scss +98 -98
  98. package/src/css/elementUI/result.scss +57 -57
  99. package/src/css/elementUI/row.scss +35 -35
  100. package/src/css/elementUI/scrollbar.scss +97 -97
  101. package/src/css/elementUI/segmented.scss +183 -183
  102. package/src/css/elementUI/select-dropdown-v2.scss +1 -1
  103. package/src/css/elementUI/select-dropdown.scss +57 -57
  104. package/src/css/elementUI/select-v2.scss +4 -4
  105. package/src/css/elementUI/select.scss +253 -253
  106. package/src/css/elementUI/skeleton-item.scss +83 -83
  107. package/src/css/elementUI/skeleton.scss +44 -44
  108. package/src/css/elementUI/slider.scss +212 -212
  109. package/src/css/elementUI/space.scss +20 -20
  110. package/src/css/elementUI/spinner.scss +43 -43
  111. package/src/css/elementUI/statistic.scss +35 -35
  112. package/src/css/elementUI/step.scss +316 -316
  113. package/src/css/elementUI/steps.scss +21 -21
  114. package/src/css/elementUI/switch.scss +300 -300
  115. package/src/css/elementUI/table-column.scss +98 -98
  116. package/src/css/elementUI/table-v2.scss +236 -236
  117. package/src/css/elementUI/table.scss +2 -2
  118. package/src/css/elementUI/tag.scss +181 -181
  119. package/src/css/elementUI/text.scss +51 -51
  120. package/src/css/elementUI/time-picker.scss +5 -5
  121. package/src/css/elementUI/time-select.scss +37 -37
  122. package/src/css/elementUI/timeline-item.scss +84 -84
  123. package/src/css/elementUI/timeline.scss +46 -46
  124. package/src/css/elementUI/tooltip-v2.scss +95 -95
  125. package/src/css/elementUI/tour.scss +187 -187
  126. package/src/css/elementUI/transfer.scss +203 -203
  127. package/src/css/elementUI/tree-select.scss +41 -41
  128. package/src/css/elementUI/tree.scss +134 -134
  129. package/src/css/elementUI/upload.scss +654 -654
  130. package/src/css/elementUI/var.scss +87 -87
  131. package/src/css/elementUI/virtual-list.scss +40 -40
  132. package/src/css/vxeTableUI/components/table.scss +1 -1
  133. package/src/interface/enum/FlexEnum.ts +85 -85
  134. package/src/main.ts +14 -14
  135. package/src/router/index.ts +23 -23
  136. package/tsconfig.app.json +12 -12
  137. package/tsconfig.json +11 -11
  138. package/tsconfig.node.json +18 -18
  139. package/vite.config.ts +38 -38
@@ -1,222 +1,222 @@
1
- @use 'sass:map';
2
- @use 'sass:math';
3
- @use 'sass:color';
4
-
5
- @use '../common/var.scss' as common;
6
- @use '../mixins/mixins.scss' as *;
7
- @use '../color/index.scss' as *;
8
-
9
- $colors: () !default;
10
- @each $type in common.$types {
11
- $colors: map.deep-merge(
12
- (
13
- $type: (
14
- 'base': map.get(common.$colors, $type, 'base'),
15
- ),
16
- ),
17
- $colors
18
- ) !global;
19
- }
20
-
21
- // https://sass-lang.com/documentation/values/maps#immutability
22
- // mix colors with white/black to generate light/dark level
23
- @mixin set-color-mix-level(
24
- $type,
25
- $number,
26
- $mode: 'light',
27
- $mix-color: $color-white
28
- ) {
29
- // hex mix color
30
- $colors: map.deep-merge(
31
- (
32
- $type: (
33
- '#{$mode}-#{$number}':
34
- color.mix(
35
- $mix-color,
36
- map.get($colors, $type, 'base'),
37
- math.percentage(math.div($number, 10))
38
- ),
39
- ),
40
- ),
41
- $colors
42
- ) !global;
43
-
44
- // for designer to view transparent
45
- // $colors: map.deep-merge(
46
- // (
47
- // $type: (
48
- // '#{$mode}-#{$number}':
49
- // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
50
- // ),
51
- // ),
52
- // $colors
53
- // ) !global;
54
- }
55
-
56
- // Background
57
- $bg-color: () !default;
58
- $bg-color: map.merge(
59
- (
60
- 'page': #0a0a0a,
61
- '': #141414,
62
- 'overlay': #1d1e1f,
63
- ),
64
- $bg-color
65
- );
66
-
67
- // dark-mode
68
- @each $type in common.$types {
69
- @for $i from 1 through 9 {
70
- @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
71
- }
72
- }
73
- @each $type in common.$types {
74
- @include set-color-mix-level($type, 2, 'dark', common.$color-white);
75
- }
76
-
77
- // border
78
- $border-color-base: #f5f8ff;
79
- $border-color: () !default;
80
- $border-color: map.merge(
81
- (
82
- 'darker': rgba($border-color-base, 0.35),
83
- 'dark': rgba($border-color-base, 0.3),
84
- '': rgba($border-color-base, 0.25),
85
- 'light': rgba($border-color-base, 0.2),
86
- 'lighter': rgba($border-color-base, 0.15),
87
- 'extra-light': rgba($border-color-base, 0.1),
88
- ),
89
- $border-color
90
- );
91
-
92
- // mix to hex to avoid overlay issues
93
- @each $key, $val in $border-color {
94
- $border-color: map.merge(
95
- $border-color,
96
- (
97
- $key: mix-overlay-color($val, map.get($bg-color, '')),
98
- )
99
- ) !global;
100
- }
101
-
102
- // Box-shadow
103
- $box-shadow: () !default;
104
- $box-shadow: map.merge(
105
- (
106
- '': (
107
- 0px 12px 32px 4px rgba(0, 0, 0, 0.36),
108
- 0px 8px 20px rgba(0, 0, 0, 0.72),
109
- ),
110
- 'light': (
111
- 0px 0px 12px rgba(0, 0, 0, 0.72),
112
- ),
113
- 'lighter': (
114
- 0px 0px 6px rgba(0, 0, 0, 0.72),
115
- ),
116
- 'dark': (
117
- 0px 16px 48px 16px rgba(0, 0, 0, 0.72),
118
- 0px 12px 32px #000000,
119
- 0px 8px 16px -8px #000000,
120
- ),
121
- ),
122
- $box-shadow
123
- );
124
-
125
- // fill
126
- $fill-color-base: #fafcff;
127
- $fill-color: () !default;
128
- $fill-color: map.merge(
129
- (
130
- 'darker': rgba($fill-color-base, 0.2),
131
- 'dark': rgba($fill-color-base, 0.16),
132
- '': rgba($fill-color-base, 0.12),
133
- 'light': rgba($fill-color-base, 0.08),
134
- 'lighter': rgba($fill-color-base, 0.04),
135
- 'extra-light': rgba($fill-color-base, 0.02),
136
- 'blank': transparent,
137
- ),
138
- $fill-color
139
- );
140
-
141
- // mix to hex to avoid overlay issues
142
- @each $key, $val in $fill-color {
143
- @if ($key != 'blank') {
144
- $fill-color: map.merge(
145
- $fill-color,
146
- (
147
- $key: mix-overlay-color($val, map.get($bg-color, '')),
148
- )
149
- ) !global;
150
- }
151
- }
152
-
153
- // text
154
- $text-color-base: #f0f5ff;
155
- $text-color: () !default;
156
- $text-color: map.merge(
157
- (
158
- 'primary': rgba($text-color-base, 0.95),
159
- 'regular': rgba($text-color-base, 0.85),
160
- 'secondary': rgba($text-color-base, 0.65),
161
- 'placeholder': rgba($text-color-base, 0.55),
162
- 'disabled': rgba($text-color-base, 0.4),
163
- ),
164
- $text-color
165
- );
166
- // mix to hex to avoid overlay issues
167
- @each $key, $val in $text-color {
168
- $text-color: map.merge(
169
- $text-color,
170
- (
171
- $key: mix-overlay-color($val, map.get($bg-color, '')),
172
- )
173
- ) !global;
174
- }
175
-
176
- // mask
177
- $mask-color: () !default;
178
- $mask-color: map.merge(
179
- (
180
- '': rgba(0, 0, 0, 0.8),
181
- 'extra-light': rgba(0, 0, 0, 0.3),
182
- ),
183
- $mask-color
184
- );
185
-
186
- // Button
187
- // css3 var in packages/theme-chalk/src/button.scss
188
- $button: () !default;
189
- $button: map.merge(
190
- (
191
- 'disabled-text-color': rgba(255, 255, 255, 0.5),
192
- ),
193
- $button
194
- );
195
-
196
- // card
197
- $card: () !default;
198
- $card: map.merge(
199
- (
200
- 'bg-color': getCssVar('bg-color', 'overlay'),
201
- ),
202
- $card
203
- );
204
-
205
- // Empty
206
- // css3 var in packages/theme-chalk/src/empty.scss
207
- $empty: () !default;
208
- $empty: map.merge(
209
- (
210
- 'fill-color-0': getCssVar('color-black'),
211
- 'fill-color-1': #4b4b52,
212
- 'fill-color-2': #36383d,
213
- 'fill-color-3': #1e1e20,
214
- 'fill-color-4': #262629,
215
- 'fill-color-5': #202124,
216
- 'fill-color-6': #212224,
217
- 'fill-color-7': #1b1c1f,
218
- 'fill-color-8': #1c1d1f,
219
- 'fill-color-9': #18181a,
220
- ),
221
- $empty
222
- );
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:color';
4
+
5
+ @use '../common/var.scss' as common;
6
+ @use '../mixins/mixins.scss' as *;
7
+ @use '../color/index.scss' as *;
8
+
9
+ $colors: () !default;
10
+ @each $type in common.$types {
11
+ $colors: map.deep-merge(
12
+ (
13
+ $type: (
14
+ 'base': map.get(common.$colors, $type, 'base'),
15
+ ),
16
+ ),
17
+ $colors
18
+ ) !global;
19
+ }
20
+
21
+ // https://sass-lang.com/documentation/values/maps#immutability
22
+ // mix colors with white/black to generate light/dark level
23
+ @mixin set-color-mix-level(
24
+ $type,
25
+ $number,
26
+ $mode: 'light',
27
+ $mix-color: $color-white
28
+ ) {
29
+ // hex mix color
30
+ $colors: map.deep-merge(
31
+ (
32
+ $type: (
33
+ '#{$mode}-#{$number}':
34
+ color.mix(
35
+ $mix-color,
36
+ map.get($colors, $type, 'base'),
37
+ math.percentage(math.div($number, 10))
38
+ ),
39
+ ),
40
+ ),
41
+ $colors
42
+ ) !global;
43
+
44
+ // for designer to view transparent
45
+ // $colors: map.deep-merge(
46
+ // (
47
+ // $type: (
48
+ // '#{$mode}-#{$number}':
49
+ // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
50
+ // ),
51
+ // ),
52
+ // $colors
53
+ // ) !global;
54
+ }
55
+
56
+ // Background
57
+ $bg-color: () !default;
58
+ $bg-color: map.merge(
59
+ (
60
+ 'page': #0a0a0a,
61
+ '': #141414,
62
+ 'overlay': #1d1e1f,
63
+ ),
64
+ $bg-color
65
+ );
66
+
67
+ // dark-mode
68
+ @each $type in common.$types {
69
+ @for $i from 1 through 9 {
70
+ @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
71
+ }
72
+ }
73
+ @each $type in common.$types {
74
+ @include set-color-mix-level($type, 2, 'dark', common.$color-white);
75
+ }
76
+
77
+ // border
78
+ $border-color-base: #f5f8ff;
79
+ $border-color: () !default;
80
+ $border-color: map.merge(
81
+ (
82
+ 'darker': rgba($border-color-base, 0.35),
83
+ 'dark': rgba($border-color-base, 0.3),
84
+ '': rgba($border-color-base, 0.25),
85
+ 'light': rgba($border-color-base, 0.2),
86
+ 'lighter': rgba($border-color-base, 0.15),
87
+ 'extra-light': rgba($border-color-base, 0.1),
88
+ ),
89
+ $border-color
90
+ );
91
+
92
+ // mix to hex to avoid overlay issues
93
+ @each $key, $val in $border-color {
94
+ $border-color: map.merge(
95
+ $border-color,
96
+ (
97
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
98
+ )
99
+ ) !global;
100
+ }
101
+
102
+ // Box-shadow
103
+ $box-shadow: () !default;
104
+ $box-shadow: map.merge(
105
+ (
106
+ '': (
107
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.36),
108
+ 0px 8px 20px rgba(0, 0, 0, 0.72),
109
+ ),
110
+ 'light': (
111
+ 0px 0px 12px rgba(0, 0, 0, 0.72),
112
+ ),
113
+ 'lighter': (
114
+ 0px 0px 6px rgba(0, 0, 0, 0.72),
115
+ ),
116
+ 'dark': (
117
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.72),
118
+ 0px 12px 32px #000000,
119
+ 0px 8px 16px -8px #000000,
120
+ ),
121
+ ),
122
+ $box-shadow
123
+ );
124
+
125
+ // fill
126
+ $fill-color-base: #fafcff;
127
+ $fill-color: () !default;
128
+ $fill-color: map.merge(
129
+ (
130
+ 'darker': rgba($fill-color-base, 0.2),
131
+ 'dark': rgba($fill-color-base, 0.16),
132
+ '': rgba($fill-color-base, 0.12),
133
+ 'light': rgba($fill-color-base, 0.08),
134
+ 'lighter': rgba($fill-color-base, 0.04),
135
+ 'extra-light': rgba($fill-color-base, 0.02),
136
+ 'blank': transparent,
137
+ ),
138
+ $fill-color
139
+ );
140
+
141
+ // mix to hex to avoid overlay issues
142
+ @each $key, $val in $fill-color {
143
+ @if ($key != 'blank') {
144
+ $fill-color: map.merge(
145
+ $fill-color,
146
+ (
147
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
148
+ )
149
+ ) !global;
150
+ }
151
+ }
152
+
153
+ // text
154
+ $text-color-base: #f0f5ff;
155
+ $text-color: () !default;
156
+ $text-color: map.merge(
157
+ (
158
+ 'primary': rgba($text-color-base, 0.95),
159
+ 'regular': rgba($text-color-base, 0.85),
160
+ 'secondary': rgba($text-color-base, 0.65),
161
+ 'placeholder': rgba($text-color-base, 0.55),
162
+ 'disabled': rgba($text-color-base, 0.4),
163
+ ),
164
+ $text-color
165
+ );
166
+ // mix to hex to avoid overlay issues
167
+ @each $key, $val in $text-color {
168
+ $text-color: map.merge(
169
+ $text-color,
170
+ (
171
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
172
+ )
173
+ ) !global;
174
+ }
175
+
176
+ // mask
177
+ $mask-color: () !default;
178
+ $mask-color: map.merge(
179
+ (
180
+ '': rgba(0, 0, 0, 0.8),
181
+ 'extra-light': rgba(0, 0, 0, 0.3),
182
+ ),
183
+ $mask-color
184
+ );
185
+
186
+ // Button
187
+ // css3 var in packages/theme-chalk/src/button.scss
188
+ $button: () !default;
189
+ $button: map.merge(
190
+ (
191
+ 'disabled-text-color': rgba(255, 255, 255, 0.5),
192
+ ),
193
+ $button
194
+ );
195
+
196
+ // card
197
+ $card: () !default;
198
+ $card: map.merge(
199
+ (
200
+ 'bg-color': getCssVar('bg-color', 'overlay'),
201
+ ),
202
+ $card
203
+ );
204
+
205
+ // Empty
206
+ // css3 var in packages/theme-chalk/src/empty.scss
207
+ $empty: () !default;
208
+ $empty: map.merge(
209
+ (
210
+ 'fill-color-0': getCssVar('color-black'),
211
+ 'fill-color-1': #4b4b52,
212
+ 'fill-color-2': #36383d,
213
+ 'fill-color-3': #1e1e20,
214
+ 'fill-color-4': #262629,
215
+ 'fill-color-5': #202124,
216
+ 'fill-color-6': #212224,
217
+ 'fill-color-7': #1b1c1f,
218
+ 'fill-color-8': #1c1d1f,
219
+ 'fill-color-9': #18181a,
220
+ ),
221
+ $empty
222
+ );
@@ -1,110 +1,110 @@
1
- @use '../common/var' as *;
2
- @use '../mixins/mixins' as *;
3
- @use '../mixins/var' as *;
4
- @use './picker-panel.scss';
5
-
6
- @include b(date-picker) {
7
- @include set-component-css-var('datepicker', $datepicker);
8
- }
9
-
10
- @include b(date-picker) {
11
- width: 322px;
12
-
13
- &.has-sidebar.has-time {
14
- width: 434px;
15
- }
16
-
17
- &.has-sidebar {
18
- width: 438px;
19
- }
20
-
21
- &.has-time .#{$namespace}-picker-panel__body-wrapper {
22
- position: relative;
23
- }
24
-
25
- .#{$namespace}-picker-panel__content {
26
- width: 292px;
27
- }
28
-
29
- table {
30
- table-layout: fixed;
31
- width: 100%;
32
- }
33
-
34
- @include e(editor-wrap) {
35
- position: relative;
36
- display: table-cell;
37
- padding: 0 5px;
38
- }
39
-
40
- @include e(time-header) {
41
- position: relative;
42
- border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
43
- font-size: 12px;
44
- padding: 8px 5px 5px;
45
- display: table;
46
- width: 100%;
47
- box-sizing: border-box;
48
- }
49
-
50
- @include e(header) {
51
- padding: 12px 12px 0;
52
- text-align: center;
53
-
54
- @include m(bordered) {
55
- margin-bottom: 0;
56
- padding-bottom: 12px;
57
- border-bottom: solid 1px getCssVar('border-color-lighter');
58
-
59
- & + .#{$namespace}-picker-panel__content {
60
- margin-top: 0;
61
- }
62
- }
63
- }
64
-
65
- @include e(header-label) {
66
- font-size: 16px;
67
- font-weight: 500;
68
- padding: 0 5px;
69
- line-height: 22px;
70
- text-align: center;
71
- cursor: pointer;
72
- color: getCssVar('text-color', 'regular');
73
-
74
- &:hover {
75
- color: getCssVar('datepicker-hover-text-color');
76
- }
77
- &:focus-visible {
78
- outline: none;
79
- color: getCssVar('datepicker-hover-text-color');
80
- }
81
-
82
- &.active {
83
- color: getCssVar('datepicker-active-color');
84
- }
85
- }
86
-
87
- @include e(prev-btn) {
88
- float: left;
89
- }
90
-
91
- @include e(next-btn) {
92
- float: right;
93
- }
94
-
95
- @include e(time-wrap) {
96
- padding: 10px;
97
- text-align: center;
98
- }
99
-
100
- @include e(time-label) {
101
- float: left;
102
- cursor: pointer;
103
- line-height: 30px;
104
- margin-left: 10px;
105
- }
106
-
107
- .#{$namespace}-time-panel {
108
- position: absolute;
109
- }
110
- }
1
+ @use '../common/var' as *;
2
+ @use '../mixins/mixins' as *;
3
+ @use '../mixins/var' as *;
4
+ @use './picker-panel.scss';
5
+
6
+ @include b(date-picker) {
7
+ @include set-component-css-var('datepicker', $datepicker);
8
+ }
9
+
10
+ @include b(date-picker) {
11
+ width: 322px;
12
+
13
+ &.has-sidebar.has-time {
14
+ width: 434px;
15
+ }
16
+
17
+ &.has-sidebar {
18
+ width: 438px;
19
+ }
20
+
21
+ &.has-time .#{$namespace}-picker-panel__body-wrapper {
22
+ position: relative;
23
+ }
24
+
25
+ .#{$namespace}-picker-panel__content {
26
+ width: 292px;
27
+ }
28
+
29
+ table {
30
+ table-layout: fixed;
31
+ width: 100%;
32
+ }
33
+
34
+ @include e(editor-wrap) {
35
+ position: relative;
36
+ display: table-cell;
37
+ padding: 0 5px;
38
+ }
39
+
40
+ @include e(time-header) {
41
+ position: relative;
42
+ border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
43
+ font-size: 12px;
44
+ padding: 8px 5px 5px;
45
+ display: table;
46
+ width: 100%;
47
+ box-sizing: border-box;
48
+ }
49
+
50
+ @include e(header) {
51
+ padding: 12px 12px 0;
52
+ text-align: center;
53
+
54
+ @include m(bordered) {
55
+ margin-bottom: 0;
56
+ padding-bottom: 12px;
57
+ border-bottom: solid 1px getCssVar('border-color-lighter');
58
+
59
+ & + .#{$namespace}-picker-panel__content {
60
+ margin-top: 0;
61
+ }
62
+ }
63
+ }
64
+
65
+ @include e(header-label) {
66
+ font-size: 16px;
67
+ font-weight: 500;
68
+ padding: 0 5px;
69
+ line-height: 22px;
70
+ text-align: center;
71
+ cursor: pointer;
72
+ color: getCssVar('text-color', 'regular');
73
+
74
+ &:hover {
75
+ color: getCssVar('datepicker-hover-text-color');
76
+ }
77
+ &:focus-visible {
78
+ outline: none;
79
+ color: getCssVar('datepicker-hover-text-color');
80
+ }
81
+
82
+ &.active {
83
+ color: getCssVar('datepicker-active-color');
84
+ }
85
+ }
86
+
87
+ @include e(prev-btn) {
88
+ float: left;
89
+ }
90
+
91
+ @include e(next-btn) {
92
+ float: right;
93
+ }
94
+
95
+ @include e(time-wrap) {
96
+ padding: 10px;
97
+ text-align: center;
98
+ }
99
+
100
+ @include e(time-label) {
101
+ float: left;
102
+ cursor: pointer;
103
+ line-height: 30px;
104
+ margin-left: 10px;
105
+ }
106
+
107
+ .#{$namespace}-time-panel {
108
+ position: absolute;
109
+ }
110
+ }