@douyinfe/semi-ui 2.16.1 → 2.17.0-beta.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/collapse/__test__/collapse.test.js +22 -2
- package/collapse/_story/accordion.stories.js +2 -2
- package/collapse/item.tsx +20 -6
- package/datePicker/__test__/datePicker.test.js +5 -5
- package/datePicker/_story/datePicker.stories.js +138 -22
- package/datePicker/datePicker.tsx +42 -7
- package/datePicker/monthsGrid.tsx +22 -10
- package/datePicker/quickControl.tsx +62 -16
- package/datePicker/yearAndMonth.tsx +31 -5
- package/dist/css/semi.css +289 -32
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +45706 -45192
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/collapse/item.d.ts +8 -0
- package/lib/cjs/collapse/item.js +19 -8
- package/lib/cjs/datePicker/datePicker.d.ts +3 -0
- package/lib/cjs/datePicker/datePicker.js +56 -9
- package/lib/cjs/datePicker/monthsGrid.d.ts +3 -0
- package/lib/cjs/datePicker/monthsGrid.js +14 -3
- package/lib/cjs/datePicker/quickControl.d.ts +6 -0
- package/lib/cjs/datePicker/quickControl.js +61 -14
- package/lib/cjs/datePicker/yearAndMonth.d.ts +3 -0
- package/lib/cjs/datePicker/yearAndMonth.js +15 -3
- package/lib/cjs/popover/index.d.ts +3 -0
- package/lib/cjs/popover/index.js +4 -2
- package/lib/cjs/select/index.d.ts +6 -1
- package/lib/cjs/select/index.js +130 -72
- package/lib/cjs/select/option.js +4 -2
- package/lib/cjs/tag/index.js +6 -4
- package/lib/cjs/tag/interface.d.ts +1 -0
- package/lib/cjs/tagInput/index.d.ts +13 -1
- package/lib/cjs/tagInput/index.js +217 -91
- package/lib/cjs/tooltip/index.d.ts +4 -0
- package/lib/cjs/tooltip/index.js +5 -3
- package/lib/es/collapse/item.d.ts +8 -0
- package/lib/es/collapse/item.js +19 -8
- package/lib/es/datePicker/datePicker.d.ts +3 -0
- package/lib/es/datePicker/datePicker.js +56 -9
- package/lib/es/datePicker/monthsGrid.d.ts +3 -0
- package/lib/es/datePicker/monthsGrid.js +14 -3
- package/lib/es/datePicker/quickControl.d.ts +6 -0
- package/lib/es/datePicker/quickControl.js +61 -15
- package/lib/es/datePicker/yearAndMonth.d.ts +3 -0
- package/lib/es/datePicker/yearAndMonth.js +14 -3
- package/lib/es/popover/index.d.ts +3 -0
- package/lib/es/popover/index.js +4 -2
- package/lib/es/select/index.d.ts +6 -1
- package/lib/es/select/index.js +129 -71
- package/lib/es/select/option.js +4 -2
- package/lib/es/tag/index.js +6 -4
- package/lib/es/tag/interface.d.ts +1 -0
- package/lib/es/tagInput/index.d.ts +13 -1
- package/lib/es/tagInput/index.js +217 -93
- package/lib/es/tooltip/index.d.ts +4 -0
- package/lib/es/tooltip/index.js +5 -3
- package/package.json +7 -7
- package/popover/index.tsx +4 -1
- package/select/__test__/select.test.js +5 -3
- package/select/index.tsx +65 -30
- package/select/option.tsx +2 -0
- package/tag/index.tsx +3 -2
- package/tag/interface.ts +1 -0
- package/tagInput/_story/tagInput.stories.js +18 -0
- package/tagInput/index.tsx +126 -26
- package/tooltip/index.tsx +5 -2
|
@@ -2,52 +2,98 @@
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { cssClasses } from '@douyinfe/semi-foundation/datePicker/constants';
|
|
5
|
+
import { cssClasses, strings } from '@douyinfe/semi-foundation/datePicker/constants';
|
|
6
6
|
import Button from '../button/index';
|
|
7
|
+
import Typography from '../typography/index';
|
|
7
8
|
import { noop } from '@douyinfe/semi-foundation/utils/function';
|
|
8
9
|
import { PresetsType, PresetType } from '@douyinfe/semi-foundation/datePicker/foundation';
|
|
9
10
|
|
|
10
11
|
const prefixCls = cssClasses.PREFIX;
|
|
12
|
+
const { Text } = Typography;
|
|
11
13
|
|
|
12
14
|
export interface QuickControlProps {
|
|
13
15
|
presets: PresetsType;
|
|
16
|
+
presetPosition: typeof strings.PRESET_POSITION_SET[number];
|
|
14
17
|
onPresetClick: (preset: PresetType, e: React.MouseEvent) => void;
|
|
15
18
|
type: string;
|
|
19
|
+
insetInput: boolean;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
class QuickControl extends PureComponent<QuickControlProps> {
|
|
19
23
|
static propTypes = {
|
|
20
24
|
presets: PropTypes.array,
|
|
25
|
+
presetPosition: PropTypes.oneOf(strings.PRESET_POSITION_SET),
|
|
21
26
|
onPresetClick: PropTypes.func,
|
|
22
|
-
type: PropTypes.string
|
|
27
|
+
type: PropTypes.string,
|
|
28
|
+
insetInput: PropTypes.bool
|
|
23
29
|
};
|
|
24
30
|
|
|
25
31
|
static defaultProps = {
|
|
26
32
|
presets: [] as PresetsType,
|
|
33
|
+
presetPosition: 'bottom',
|
|
27
34
|
onPresetClick: noop,
|
|
28
35
|
};
|
|
29
36
|
|
|
30
37
|
render() {
|
|
31
|
-
const { presets, onPresetClick, type } = this.props;
|
|
38
|
+
const { presets, onPresetClick, type, presetPosition, insetInput } = this.props;
|
|
39
|
+
const isTypeRange = type === 'dateRange' || type === 'dateTimeRange';
|
|
40
|
+
const isPanelTopAndBottom = presetPosition === 'top' || presetPosition === 'bottom';
|
|
41
|
+
const isMonth = type === 'month';
|
|
42
|
+
const isTopAndBottomRange = isPanelTopAndBottom && isTypeRange;
|
|
43
|
+
const isTopAndBottomMonth = isPanelTopAndBottom && isMonth;
|
|
44
|
+
|
|
32
45
|
const wrapperCls = classNames(`${prefixCls}-quick-control`, {
|
|
33
|
-
[`${prefixCls}-quick-control-${type}`]: type
|
|
46
|
+
[`${prefixCls}-quick-control-${type}`]: type,
|
|
47
|
+
[`${prefixCls}-quick-control-${presetPosition}`]: true,
|
|
48
|
+
});
|
|
49
|
+
const headerCls = classNames({
|
|
50
|
+
[`${prefixCls}-quick-control-header`]: true,
|
|
51
|
+
});
|
|
52
|
+
const contentWrapperCls = classNames({
|
|
53
|
+
[`${prefixCls}-quick-control-${presetPosition}-content-wrapper`]: true,
|
|
54
|
+
});
|
|
55
|
+
const contentCls = classNames({
|
|
56
|
+
[`${prefixCls}-quick-control-${presetPosition}-content`]: !isTopAndBottomRange && !isTopAndBottomMonth,
|
|
57
|
+
[`${prefixCls}-quick-control-${presetPosition}-range-content`]: isTopAndBottomRange,
|
|
58
|
+
[`${prefixCls}-quick-control-${presetPosition}-month-content`]: isTopAndBottomMonth,
|
|
34
59
|
});
|
|
35
|
-
const itemCls = classNames(
|
|
60
|
+
const itemCls = classNames({
|
|
61
|
+
[`${prefixCls}-quick-control-${presetPosition}-content-item`]: !isTopAndBottomRange && !isTopAndBottomMonth,
|
|
62
|
+
[`${prefixCls}-quick-control-${presetPosition}-range-content-item`]: isTopAndBottomRange,
|
|
63
|
+
[`${prefixCls}-quick-control-${presetPosition}-month-content-item`]: isTopAndBottomMonth,
|
|
64
|
+
});
|
|
65
|
+
const ellipsisCls = classNames({
|
|
66
|
+
[`${prefixCls}-quick-control-${presetPosition}-content-item-ellipsis`]: !isTopAndBottomRange && !isTopAndBottomMonth,
|
|
67
|
+
[`${prefixCls}-quick-control-${presetPosition}-range-content-item-ellipsis`]: isTopAndBottomRange,
|
|
68
|
+
[`${prefixCls}-quick-control-${presetPosition}-month-content-item-ellipsis`]: isTopAndBottomMonth,
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
|
|
36
72
|
if (!presets.length) {
|
|
37
73
|
return null;
|
|
38
74
|
}
|
|
39
75
|
return (
|
|
40
|
-
<div className={wrapperCls}>
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
76
|
+
<div className={wrapperCls} x-insetinput={insetInput ? "true" : "false"}>
|
|
77
|
+
{ !isPanelTopAndBottom && <div className={headerCls}>快捷选择</div>}
|
|
78
|
+
<div className={contentWrapperCls}>
|
|
79
|
+
<div className={contentCls}>
|
|
80
|
+
{presets.map((item, index) => {
|
|
81
|
+
const _item: PresetType = typeof item === 'function' ? item() : item;
|
|
82
|
+
return (
|
|
83
|
+
<Button size="small" type="primary" onClick={e => onPresetClick(_item, e)} key={index}>
|
|
84
|
+
<div className={itemCls}>
|
|
85
|
+
<Text
|
|
86
|
+
ellipsis={{ showTooltip: true }}
|
|
87
|
+
className={ellipsisCls}
|
|
88
|
+
>
|
|
89
|
+
{_item.text}
|
|
90
|
+
</Text>
|
|
91
|
+
</div>
|
|
92
|
+
</Button>
|
|
93
|
+
);
|
|
94
|
+
})}
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
51
97
|
</div>
|
|
52
98
|
);
|
|
53
99
|
}
|
|
@@ -15,6 +15,8 @@ import { BASE_CLASS_PREFIX } from '@douyinfe/semi-foundation/base/constants';
|
|
|
15
15
|
import { noop, stubFalse } from 'lodash';
|
|
16
16
|
import { setYear, setMonth } from 'date-fns';
|
|
17
17
|
import { Locale } from '../locale/interface';
|
|
18
|
+
import { strings } from '@douyinfe/semi-foundation/datePicker/constants';
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
const prefixCls = `${BASE_CLASS_PREFIX}-datepicker`;
|
|
20
22
|
|
|
@@ -36,6 +38,9 @@ class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonthState> {
|
|
|
36
38
|
noBackBtn: PropTypes.bool,
|
|
37
39
|
disabledDate: PropTypes.func,
|
|
38
40
|
density: PropTypes.string,
|
|
41
|
+
presetPosition: PropTypes.oneOf(strings.PRESET_POSITION_SET),
|
|
42
|
+
renderQuickControls: PropTypes.node,
|
|
43
|
+
renderDateInput: PropTypes.node
|
|
39
44
|
};
|
|
40
45
|
|
|
41
46
|
static defaultProps = {
|
|
@@ -195,7 +200,7 @@ class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonthState> {
|
|
|
195
200
|
};
|
|
196
201
|
|
|
197
202
|
render() {
|
|
198
|
-
const { locale, noBackBtn, density } = this.props;
|
|
203
|
+
const { locale, noBackBtn, density, presetPosition, renderQuickControls, renderDateInput } = this.props;
|
|
199
204
|
const prefix = `${prefixCls}-yearmonth-header`;
|
|
200
205
|
// i18n
|
|
201
206
|
const selectDateText = locale.selectDate;
|
|
@@ -216,10 +221,31 @@ class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonthState> {
|
|
|
216
221
|
</IconButton>
|
|
217
222
|
</div>
|
|
218
223
|
)}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
{
|
|
225
|
+
presetPosition ? (
|
|
226
|
+
<div style={{ display: 'flex' }}>
|
|
227
|
+
{presetPosition === "left" && renderQuickControls}
|
|
228
|
+
<div>
|
|
229
|
+
{renderDateInput}
|
|
230
|
+
<ScrollList>
|
|
231
|
+
{this.renderColYear()}
|
|
232
|
+
{this.renderColMonth()}
|
|
233
|
+
</ScrollList>
|
|
234
|
+
</div>
|
|
235
|
+
{presetPosition === "right" && renderQuickControls}
|
|
236
|
+
</div>
|
|
237
|
+
) :
|
|
238
|
+
<>
|
|
239
|
+
{renderDateInput}
|
|
240
|
+
<ScrollList>
|
|
241
|
+
{this.renderColYear()}
|
|
242
|
+
{this.renderColMonth()}
|
|
243
|
+
</ScrollList>
|
|
244
|
+
</>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
}
|
|
248
|
+
|
|
223
249
|
</React.Fragment>
|
|
224
250
|
);
|
|
225
251
|
}
|
package/dist/css/semi.css
CHANGED
|
@@ -3782,6 +3782,12 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
3782
3782
|
.semi-collapse-header:active {
|
|
3783
3783
|
background-color: var(--semi-color-fill-1);
|
|
3784
3784
|
}
|
|
3785
|
+
.semi-collapse-header-disabled {
|
|
3786
|
+
color: var(--semi-color-disabled-text);
|
|
3787
|
+
}
|
|
3788
|
+
.semi-collapse-header-disabled:hover {
|
|
3789
|
+
background-color: transparent;
|
|
3790
|
+
}
|
|
3785
3791
|
.semi-collapse-content {
|
|
3786
3792
|
padding: 4px 16px 8px 16px;
|
|
3787
3793
|
color: var(--semi-color-text-1);
|
|
@@ -3840,11 +3846,11 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
3840
3846
|
}
|
|
3841
3847
|
.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],
|
|
3842
3848
|
.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year] {
|
|
3843
|
-
min-height:
|
|
3849
|
+
min-height: 317px;
|
|
3844
3850
|
}
|
|
3845
3851
|
.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],
|
|
3846
3852
|
.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time] {
|
|
3847
|
-
min-height:
|
|
3853
|
+
min-height: 317px;
|
|
3848
3854
|
}
|
|
3849
3855
|
.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-navigation {
|
|
3850
3856
|
padding-top: 8px;
|
|
@@ -3856,6 +3862,9 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
3856
3862
|
.semi-datepicker-month-grid[x-insetinput=true][x-type=dateTime] .semi-datepicker-yam, .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTimeRange] .semi-datepicker-yam {
|
|
3857
3863
|
height: 100%;
|
|
3858
3864
|
}
|
|
3865
|
+
.semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month, .semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month {
|
|
3866
|
+
height: 253px;
|
|
3867
|
+
}
|
|
3859
3868
|
.semi-datepicker-month-grid .semi-datepicker-yearmonth-header {
|
|
3860
3869
|
background: var(--semi-color-bg-3);
|
|
3861
3870
|
padding: 12px 16px;
|
|
@@ -3903,7 +3912,7 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
3903
3912
|
min-height: 216px;
|
|
3904
3913
|
}
|
|
3905
3914
|
.semi-datepicker-panel-yam {
|
|
3906
|
-
max-width:
|
|
3915
|
+
max-width: 484px;
|
|
3907
3916
|
}
|
|
3908
3917
|
.semi-datepicker-panel-yam .semi-scrolllist {
|
|
3909
3918
|
box-shadow: none;
|
|
@@ -4163,23 +4172,147 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
4163
4172
|
}
|
|
4164
4173
|
.semi-datepicker-quick-control {
|
|
4165
4174
|
box-sizing: border-box;
|
|
4166
|
-
border-top: 1px solid var(--semi-color-border);
|
|
4167
|
-
display: flex;
|
|
4168
|
-
align-items: center;
|
|
4169
4175
|
background-color: transparent;
|
|
4170
|
-
padding: 16px;
|
|
4171
|
-
border-radius: 0 0 var(--semi-border-radius-medium) var(--semi-border-radius-medium);
|
|
4172
|
-
flex-wrap: wrap;
|
|
4173
4176
|
}
|
|
4174
|
-
.semi-datepicker-quick-control-
|
|
4175
|
-
|
|
4177
|
+
.semi-datepicker-quick-control-header {
|
|
4178
|
+
padding: 18px 12px 0;
|
|
4179
|
+
font-weight: 600;
|
|
4180
|
+
}
|
|
4181
|
+
.semi-datepicker-quick-control-left {
|
|
4182
|
+
border-right: 1px solid var(--semi-color-border);
|
|
4183
|
+
}
|
|
4184
|
+
.semi-datepicker-quick-control-right {
|
|
4185
|
+
border-left: 1px solid var(--semi-color-border);
|
|
4186
|
+
}
|
|
4187
|
+
.semi-datepicker-quick-control-top {
|
|
4188
|
+
border-bottom: 1px solid var(--semi-color-border);
|
|
4189
|
+
}
|
|
4190
|
+
.semi-datepicker-quick-control-bottom {
|
|
4191
|
+
border-top: 1px solid var(--semi-color-border);
|
|
4192
|
+
}
|
|
4193
|
+
.semi-datepicker-quick-control-left-content-wrapper, .semi-datepicker-quick-control-right-content-wrapper {
|
|
4194
|
+
max-width: 200px;
|
|
4195
|
+
margin-top: 14px;
|
|
4196
|
+
overflow-y: auto;
|
|
4197
|
+
}
|
|
4198
|
+
.semi-datepicker-quick-control-top-content-wrapper, .semi-datepicker-quick-control-bottom-content-wrapper {
|
|
4199
|
+
overflow-y: auto;
|
|
4200
|
+
max-height: 100px;
|
|
4201
|
+
}
|
|
4202
|
+
.semi-datepicker-quick-control-left-content, .semi-datepicker-quick-control-right-content {
|
|
4203
|
+
box-sizing: border-box;
|
|
4204
|
+
display: grid;
|
|
4205
|
+
align-content: flex-start;
|
|
4206
|
+
grid-gap: 8px;
|
|
4207
|
+
grid-template-columns: repeat(2, minmax(76.5px, 84px));
|
|
4208
|
+
padding: 0 12px 12px;
|
|
4209
|
+
}
|
|
4210
|
+
.semi-datepicker-quick-control-left-content-item, .semi-datepicker-quick-control-right-content-item {
|
|
4211
|
+
max-width: 84px;
|
|
4212
|
+
}
|
|
4213
|
+
.semi-datepicker-quick-control-left-content-item-ellipsis, .semi-datepicker-quick-control-right-content-item-ellipsis {
|
|
4214
|
+
width: 68px;
|
|
4215
|
+
color: var(--semi-color-primary);
|
|
4216
|
+
}
|
|
4217
|
+
.semi-datepicker-quick-control-top-content, .semi-datepicker-quick-control-bottom-content {
|
|
4218
|
+
display: grid;
|
|
4219
|
+
grid-gap: 8px;
|
|
4220
|
+
grid-template-columns: repeat(3, minmax(71px, 76px));
|
|
4221
|
+
align-content: flex-start;
|
|
4222
|
+
padding: 8px 20px;
|
|
4176
4223
|
}
|
|
4177
|
-
.semi-datepicker-quick-control-
|
|
4224
|
+
.semi-datepicker-quick-control-top-content-item, .semi-datepicker-quick-control-bottom-content-item {
|
|
4225
|
+
max-width: 76px;
|
|
4226
|
+
}
|
|
4227
|
+
.semi-datepicker-quick-control-top-content-item-ellipsis, .semi-datepicker-quick-control-bottom-content-item-ellipsis {
|
|
4228
|
+
width: 60px;
|
|
4229
|
+
color: var(--semi-color-primary);
|
|
4230
|
+
}
|
|
4231
|
+
.semi-datepicker-quick-control-top-range-content, .semi-datepicker-quick-control-bottom-range-content {
|
|
4232
|
+
box-sizing: border-box;
|
|
4233
|
+
display: grid;
|
|
4234
|
+
align-content: flex-start;
|
|
4235
|
+
grid-template-columns: repeat(5, minmax(96.2px, 99.2px));
|
|
4236
|
+
grid-gap: 8px;
|
|
4237
|
+
padding: 8px 20px;
|
|
4238
|
+
}
|
|
4239
|
+
.semi-datepicker-quick-control-top-range-content-item, .semi-datepicker-quick-control-bottom-range-content-item {
|
|
4240
|
+
max-width: 99.2px;
|
|
4241
|
+
}
|
|
4242
|
+
.semi-datepicker-quick-control-top-range-content-item-ellipsis, .semi-datepicker-quick-control-bottom-range-content-item-ellipsis {
|
|
4243
|
+
width: 83.2px;
|
|
4244
|
+
color: var(--semi-color-primary);
|
|
4245
|
+
}
|
|
4246
|
+
.semi-datepicker-quick-control-top-month-content, .semi-datepicker-quick-control-bottom-month-content {
|
|
4247
|
+
box-sizing: border-box;
|
|
4248
|
+
display: grid;
|
|
4249
|
+
grid-template-columns: repeat(2, minmax(65.5px, 73px));
|
|
4250
|
+
grid-gap: 8px;
|
|
4251
|
+
align-content: flex-start;
|
|
4252
|
+
padding: 8px 20px;
|
|
4253
|
+
}
|
|
4254
|
+
.semi-datepicker-quick-control-top-month-content-item, .semi-datepicker-quick-control-bottom-month-content-item {
|
|
4255
|
+
max-width: 73px;
|
|
4256
|
+
}
|
|
4257
|
+
.semi-datepicker-quick-control-top-month-content-item-ellipsis, .semi-datepicker-quick-control-bottom-month-content-item-ellipsis {
|
|
4258
|
+
max-width: 57px;
|
|
4259
|
+
color: var(--semi-color-primary);
|
|
4260
|
+
}
|
|
4261
|
+
.semi-datepicker-quick-control-month {
|
|
4178
4262
|
max-width: 284px;
|
|
4179
4263
|
}
|
|
4180
|
-
.semi-datepicker-quick-control-
|
|
4264
|
+
.semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4265
|
+
.semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4266
|
+
max-height: 258px;
|
|
4267
|
+
}
|
|
4268
|
+
.semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,
|
|
4269
|
+
.semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper {
|
|
4270
|
+
max-height: 214px;
|
|
4271
|
+
}
|
|
4272
|
+
.semi-datepicker-quick-control-date {
|
|
4273
|
+
max-width: 284px;
|
|
4274
|
+
}
|
|
4275
|
+
.semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4276
|
+
.semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4277
|
+
max-height: 309px;
|
|
4278
|
+
}
|
|
4279
|
+
.semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,
|
|
4280
|
+
.semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper {
|
|
4281
|
+
max-height: 273px;
|
|
4282
|
+
}
|
|
4283
|
+
.semi-datepicker-quick-control-dateTime {
|
|
4284
|
+
max-width: 284px;
|
|
4285
|
+
}
|
|
4286
|
+
.semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4287
|
+
.semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4288
|
+
max-height: 309px;
|
|
4289
|
+
}
|
|
4290
|
+
.semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,
|
|
4291
|
+
.semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper {
|
|
4292
|
+
max-height: 326px;
|
|
4293
|
+
}
|
|
4294
|
+
.semi-datepicker-quick-control-dateRange {
|
|
4295
|
+
max-width: 568px;
|
|
4296
|
+
}
|
|
4297
|
+
.semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4298
|
+
.semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4299
|
+
max-height: 309px;
|
|
4300
|
+
}
|
|
4301
|
+
.semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,
|
|
4302
|
+
.semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper {
|
|
4303
|
+
max-height: 273px;
|
|
4304
|
+
}
|
|
4305
|
+
.semi-datepicker-quick-control-dateTimeRange {
|
|
4181
4306
|
max-width: 568px;
|
|
4182
4307
|
}
|
|
4308
|
+
.semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4309
|
+
.semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4310
|
+
max-height: 309px;
|
|
4311
|
+
}
|
|
4312
|
+
.semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,
|
|
4313
|
+
.semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper {
|
|
4314
|
+
max-height: 326px;
|
|
4315
|
+
}
|
|
4183
4316
|
.semi-datepicker-topSlot {
|
|
4184
4317
|
border-bottom: 1px solid var(--semi-color-border);
|
|
4185
4318
|
}
|
|
@@ -4390,11 +4523,14 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
4390
4523
|
border-right: 1px solid var(--semi-color-border);
|
|
4391
4524
|
}
|
|
4392
4525
|
.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yam-showing {
|
|
4393
|
-
min-height:
|
|
4526
|
+
min-height: 288px;
|
|
4394
4527
|
min-width: 216px;
|
|
4395
4528
|
}
|
|
4396
4529
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam-showing {
|
|
4397
|
-
min-height:
|
|
4530
|
+
min-height: 256px;
|
|
4531
|
+
}
|
|
4532
|
+
.semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month, .semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month {
|
|
4533
|
+
height: 220px;
|
|
4398
4534
|
}
|
|
4399
4535
|
.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-header {
|
|
4400
4536
|
box-sizing: border-box;
|
|
@@ -4430,14 +4566,14 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
4430
4566
|
}
|
|
4431
4567
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],
|
|
4432
4568
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year] {
|
|
4433
|
-
min-height:
|
|
4569
|
+
min-height: 256px;
|
|
4434
4570
|
}
|
|
4435
4571
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],
|
|
4436
4572
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time] {
|
|
4437
|
-
min-height:
|
|
4573
|
+
min-height: 256px;
|
|
4438
4574
|
}
|
|
4439
4575
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-yam-showing {
|
|
4440
|
-
min-height:
|
|
4576
|
+
min-height: 256px;
|
|
4441
4577
|
}
|
|
4442
4578
|
.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-tpk {
|
|
4443
4579
|
min-height: 100%;
|
|
@@ -4546,15 +4682,130 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
4546
4682
|
.semi-datepicker-compact .semi-datepicker-switch-text {
|
|
4547
4683
|
padding-left: 0;
|
|
4548
4684
|
}
|
|
4549
|
-
.semi-datepicker-compact .semi-datepicker-quick-control {
|
|
4550
|
-
padding: 12px;
|
|
4685
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-header {
|
|
4686
|
+
padding: 16px 12px 0;
|
|
4687
|
+
font-weight: 600;
|
|
4551
4688
|
}
|
|
4552
|
-
.semi-datepicker-compact .semi-datepicker-quick-control-
|
|
4689
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-left-content-wrapper, .semi-datepicker-compact .semi-datepicker-quick-control-right-content-wrapper {
|
|
4690
|
+
margin-top: 12px;
|
|
4691
|
+
}
|
|
4692
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-left-content, .semi-datepicker-compact .semi-datepicker-quick-control-right-content {
|
|
4693
|
+
box-sizing: border-box;
|
|
4694
|
+
display: grid;
|
|
4695
|
+
align-content: flex-start;
|
|
4696
|
+
grid-gap: 8px;
|
|
4697
|
+
grid-template-columns: repeat(2, minmax(76.5px, 84px));
|
|
4698
|
+
padding: 0 12px 12px;
|
|
4699
|
+
}
|
|
4700
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-left-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-right-content-item {
|
|
4701
|
+
max-width: 84px;
|
|
4702
|
+
}
|
|
4703
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-left-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-right-content-item-ellipsis {
|
|
4704
|
+
width: 68px;
|
|
4705
|
+
font-size: 12px;
|
|
4706
|
+
color: var(--semi-color-primary);
|
|
4707
|
+
}
|
|
4708
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-content, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-content {
|
|
4709
|
+
box-sizing: border-box;
|
|
4710
|
+
display: grid;
|
|
4711
|
+
grid-gap: 8px;
|
|
4712
|
+
grid-template-columns: repeat(3, minmax(55px, 60px));
|
|
4713
|
+
align-content: flex-start;
|
|
4714
|
+
padding: 8px 10px;
|
|
4715
|
+
}
|
|
4716
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item {
|
|
4717
|
+
max-width: 60px;
|
|
4718
|
+
}
|
|
4719
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item-ellipsis {
|
|
4720
|
+
width: 44px;
|
|
4721
|
+
font-size: 12px;
|
|
4722
|
+
color: var(--semi-color-primary);
|
|
4723
|
+
}
|
|
4724
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content {
|
|
4725
|
+
display: grid;
|
|
4726
|
+
grid-template-columns: repeat(5, minmax(73px, 76px));
|
|
4727
|
+
grid-gap: 8px;
|
|
4728
|
+
align-content: flex-start;
|
|
4729
|
+
padding: 8px 10px;
|
|
4730
|
+
}
|
|
4731
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item {
|
|
4732
|
+
max-width: 76px;
|
|
4733
|
+
}
|
|
4734
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item-ellipsis {
|
|
4735
|
+
width: 60px;
|
|
4736
|
+
font-size: 12px;
|
|
4737
|
+
color: var(--semi-color-primary);
|
|
4738
|
+
}
|
|
4739
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content {
|
|
4740
|
+
display: grid;
|
|
4741
|
+
grid-template-columns: repeat(2, minmax(75.5px, 83px));
|
|
4742
|
+
grid-gap: 8px;
|
|
4743
|
+
align-content: flex-start;
|
|
4744
|
+
padding: 8px 10px;
|
|
4745
|
+
}
|
|
4746
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item {
|
|
4747
|
+
max-width: 83px;
|
|
4748
|
+
}
|
|
4749
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item-ellipsis {
|
|
4750
|
+
max-width: 67px;
|
|
4751
|
+
font-size: 12px;
|
|
4752
|
+
color: var(--semi-color-primary);
|
|
4753
|
+
}
|
|
4754
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-month {
|
|
4553
4755
|
max-width: 216px;
|
|
4554
4756
|
}
|
|
4555
|
-
.semi-datepicker-compact .semi-datepicker-quick-control-
|
|
4757
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4758
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4759
|
+
max-height: 254px;
|
|
4760
|
+
}
|
|
4761
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,
|
|
4762
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper {
|
|
4763
|
+
max-height: 218px;
|
|
4764
|
+
}
|
|
4765
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-date {
|
|
4766
|
+
max-width: 216px;
|
|
4767
|
+
}
|
|
4768
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4769
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4770
|
+
max-height: 248px;
|
|
4771
|
+
}
|
|
4772
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,
|
|
4773
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper {
|
|
4774
|
+
max-height: 208px;
|
|
4775
|
+
}
|
|
4776
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTime {
|
|
4777
|
+
max-width: 216px;
|
|
4778
|
+
}
|
|
4779
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4780
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4781
|
+
max-height: 248px;
|
|
4782
|
+
}
|
|
4783
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,
|
|
4784
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper {
|
|
4785
|
+
max-height: 240px;
|
|
4786
|
+
}
|
|
4787
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateRange {
|
|
4556
4788
|
max-width: 432px;
|
|
4557
4789
|
}
|
|
4790
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4791
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4792
|
+
max-height: 248px;
|
|
4793
|
+
}
|
|
4794
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,
|
|
4795
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper {
|
|
4796
|
+
max-height: 208px;
|
|
4797
|
+
}
|
|
4798
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange {
|
|
4799
|
+
max-width: 432px;
|
|
4800
|
+
}
|
|
4801
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
|
|
4802
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
|
|
4803
|
+
max-height: 248px;
|
|
4804
|
+
}
|
|
4805
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,
|
|
4806
|
+
.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper {
|
|
4807
|
+
max-height: 240px;
|
|
4808
|
+
}
|
|
4558
4809
|
.semi-datepicker-compact .semi-datepicker-footer {
|
|
4559
4810
|
padding-top: 10px;
|
|
4560
4811
|
padding-right: 8px;
|
|
@@ -4654,11 +4905,6 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
4654
4905
|
padding-left: 0;
|
|
4655
4906
|
padding-right: 8px;
|
|
4656
4907
|
}
|
|
4657
|
-
.semi-rtl .semi-datepicker-quick-control-item,
|
|
4658
|
-
.semi-portal-rtl .semi-datepicker-quick-control-item {
|
|
4659
|
-
margin-left: 0;
|
|
4660
|
-
margin-right: 8px;
|
|
4661
|
-
}
|
|
4662
4908
|
.semi-rtl .semi-datepicker-navigation .semi-icon-chevron_left,
|
|
4663
4909
|
.semi-rtl .semi-datepicker-navigation .semi-icon-chevron_right,
|
|
4664
4910
|
.semi-rtl .semi-datepicker-navigation .semi-icon-double_chevron_left,
|
|
@@ -15033,10 +15279,6 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
15033
15279
|
background-color: var(--semi-color-fill-1);
|
|
15034
15280
|
border: 1px solid transparent;
|
|
15035
15281
|
}
|
|
15036
|
-
.semi-select:active {
|
|
15037
|
-
background-color: var(--semi-color-fill-2);
|
|
15038
|
-
border: 1px solid var(--semi-color-focus-border);
|
|
15039
|
-
}
|
|
15040
15282
|
.semi-select:focus {
|
|
15041
15283
|
border: 1px solid var(--semi-color-focus-border);
|
|
15042
15284
|
outline: 0;
|
|
@@ -15062,6 +15304,10 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
15062
15304
|
background-color: var(--semi-color-fill-0);
|
|
15063
15305
|
border: 1px solid var(--semi-color-focus-border);
|
|
15064
15306
|
}
|
|
15307
|
+
.semi-select-open:active, .semi-select-focus:active {
|
|
15308
|
+
background-color: var(--semi-color-fill-2);
|
|
15309
|
+
border: 1px solid var(--semi-color-focus-border);
|
|
15310
|
+
}
|
|
15065
15311
|
.semi-select-warning {
|
|
15066
15312
|
background-color: var(--semi-color-warning-light-default);
|
|
15067
15313
|
border-color: var(--semi-color-warning-light-default);
|
|
@@ -15102,7 +15348,7 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
15102
15348
|
background-color: var(--semi-color-disabled-fill);
|
|
15103
15349
|
}
|
|
15104
15350
|
.semi-select-disabled:focus {
|
|
15105
|
-
border: 1px solid
|
|
15351
|
+
border: 1px solid transparent;
|
|
15106
15352
|
}
|
|
15107
15353
|
.semi-select-disabled .semi-select-selection,
|
|
15108
15354
|
.semi-select-disabled .semi-select-selection-placeholder {
|
|
@@ -18134,6 +18380,14 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
18134
18380
|
width: 100%;
|
|
18135
18381
|
box-sizing: border-box;
|
|
18136
18382
|
}
|
|
18383
|
+
.semi-tagInput-drag-item {
|
|
18384
|
+
display: flex;
|
|
18385
|
+
align-items: center;
|
|
18386
|
+
}
|
|
18387
|
+
.semi-tagInput-drag-handler {
|
|
18388
|
+
margin-right: 4px;
|
|
18389
|
+
cursor: move;
|
|
18390
|
+
}
|
|
18137
18391
|
.semi-tagInput-hover {
|
|
18138
18392
|
background-color: var(--semi-color-fill-1);
|
|
18139
18393
|
border: 1px transparent solid;
|
|
@@ -18212,6 +18466,9 @@ body[theme-mode=dark], body .semi-always-dark {
|
|
|
18212
18466
|
margin-top: 3px;
|
|
18213
18467
|
margin-bottom: 3px;
|
|
18214
18468
|
}
|
|
18469
|
+
.semi-tagInput-wrapper-tag-icon {
|
|
18470
|
+
padding-left: 4px;
|
|
18471
|
+
}
|
|
18215
18472
|
.semi-tagInput-wrapper-typo {
|
|
18216
18473
|
font-size: 12px;
|
|
18217
18474
|
}
|