@qn-pandora/pandora-component 5.1.1 → 5.1.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.
- package/README.md +36 -36
- package/es/components/AutoComplete/style.css +17 -17
- package/es/components/AutoComplete/style.less +8 -8
- package/es/components/Breadcrumb/style.less +9 -9
- package/es/components/Button/style.css +69 -69
- package/es/components/Button/style.less +51 -51
- package/es/components/Card/RowExtra/style.less +8 -8
- package/es/components/Card/SearchInput/style.less +8 -8
- package/es/components/Card/style.css +11 -11
- package/es/components/Card/style.less +11 -11
- package/es/components/CheckTransformList/style.css +19 -19
- package/es/components/CheckTransformList/style.less +35 -35
- package/es/components/Checkbox/index.js +9 -1
- package/es/components/Checkbox/style.less +5 -5
- package/es/components/CheckboxList/style.css +5 -5
- package/es/components/CheckboxList/style.less +11 -11
- package/es/components/Collapse/style.css +1 -1
- package/es/components/Collapse/style.less +58 -58
- package/es/components/CollapsiblePanel/style.less +63 -63
- package/es/components/DateTimePicker/Base/index.d.ts +3 -0
- package/es/components/DateTimePicker/Base/index.js +51 -6
- package/es/components/DateTimePicker/Base/style.css +67 -61
- package/es/components/DateTimePicker/Base/style.less +167 -160
- package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
- package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
- package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
- package/es/components/DateTimePicker/DisplayInput/index.js +3 -1
- package/es/components/DateTimePicker/DisplayInput/style.css +14 -14
- package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
- package/es/components/DateTimePicker/constants.d.ts +9 -3
- package/es/components/DateTimePicker/constants.js +1 -0
- package/es/components/DateTimePicker/style.less +19 -19
- package/es/components/DateTimePicker/time.d.ts +1 -0
- package/es/components/DateTimePicker/time.js +1 -0
- package/es/components/DateTimePicker/transform.js +4 -2
- package/es/components/Descriptions/style.less +16 -16
- package/es/components/Drawer/CloseIcon/style.less +8 -8
- package/es/components/Drawer/index.d.ts +1 -1
- package/es/components/Drawer/style.less +69 -69
- package/es/components/FileResumable/index.js +2 -3
- package/es/components/FileResumable/style.css +8 -8
- package/es/components/FileResumable/style.less +94 -94
- package/es/components/FlameGraph/customTooltip.d.ts +22 -0
- package/es/components/FlameGraph/customTooltip.js +91 -0
- package/es/components/FlameGraph/index.d.ts +16 -0
- package/es/components/FlameGraph/index.js +96 -0
- package/es/components/FlameGraph/style.css +8 -0
- package/es/components/FlameGraph/style.less +14 -0
- package/es/components/Input/style.css +14 -14
- package/es/components/Input/style.less +12 -12
- package/es/components/KeyValuePair/style.less +25 -25
- package/es/components/Menu/Option.d.ts +1 -1
- package/es/components/Menu/Option.js +12 -4
- package/es/components/Menu/style.css +23 -23
- package/es/components/Menu/style.less +18 -18
- package/es/components/Modal/style.css +1 -1
- package/es/components/Modal/style.less +30 -30
- package/es/components/NameExplainTooltip/style.css +1 -1
- package/es/components/NameExplainTooltip/style.less +10 -10
- package/es/components/NameLimiter/style.less +19 -19
- package/es/components/OptionList/InlineOptionList/style.css +1 -1
- package/es/components/OptionList/InlineOptionList/style.less +16 -16
- package/es/components/OptionList/OptionItem/style.css +2 -2
- package/es/components/OptionList/OptionItem/style.less +25 -25
- package/es/components/OptionList/PopoverOptionList/style.css +3 -3
- package/es/components/OptionList/PopoverOptionList/style.less +30 -30
- package/es/components/OptionList/style.css +6 -6
- package/es/components/OptionList/style.less +3 -3
- package/es/components/RadioGroup/style.css +32 -32
- package/es/components/RadioGroup/style.less +41 -41
- package/es/components/RangeInput/style.css +29 -29
- package/es/components/RangeInput/style.less +37 -37
- package/es/components/RemarkName/style.less +2 -2
- package/es/components/Selector/style.css +17 -17
- package/es/components/Selector/style.less +99 -99
- package/es/components/Spin/style.css +2 -2
- package/es/components/Spin/style.less +26 -26
- package/es/components/Steps/ControlButton/style.less +5 -5
- package/es/components/Steps/style.css +16 -16
- package/es/components/Steps/style.less +48 -48
- package/es/components/Table/ColumnSetting/index.d.ts +1 -0
- package/es/components/Table/ColumnSetting/index.js +19 -14
- package/es/components/Table/ColumnSetting/style.less +50 -50
- package/es/components/Table/ColumnTag/style.css +4 -4
- package/es/components/Table/ColumnTag/style.less +40 -40
- package/es/components/Table/EmptyText.d.ts +7 -0
- package/es/components/Table/EmptyText.js +22 -0
- package/es/components/Table/ResizableTitle/style.less +25 -25
- package/es/components/Table/index.d.ts +11 -83
- package/es/components/Table/index.js +113 -286
- package/es/components/Table/style.css +54 -44
- package/es/components/Table/style.less +364 -345
- package/es/components/Table/type.d.ts +63 -0
- package/es/components/Table/type.js +5 -0
- package/es/components/Table/util.d.ts +58 -0
- package/es/components/Table/util.js +218 -0
- package/es/components/Tabs/style.css +10 -10
- package/es/components/Tabs/style.less +33 -33
- package/es/components/TagList/Tag/style.css +5 -5
- package/es/components/TagList/Tag/style.less +72 -72
- package/es/components/TagList/TagSwitch/style.css +1 -1
- package/es/components/TagList/TagSwitch/style.less +28 -28
- package/es/components/TagList/style.css +6 -6
- package/es/components/TagList/style.less +28 -28
- package/es/components/Timeline/TimelineItem/style.css +1 -1
- package/es/components/Timeline/TimelineItem/style.less +49 -49
- package/es/components/Timeline/style.less +23 -23
- package/es/components/TopologyChart/style.less +14 -14
- package/es/components/Transfer/List/style.less +19 -19
- package/es/components/Transfer/ListBody/style.less +18 -18
- package/es/components/Transfer/style.less +14 -14
- package/es/components/TreeSelector/style.css +21 -21
- package/es/components/TreeSelector/style.less +56 -56
- package/es/constants/language/datetime/en.js +4 -2
- package/es/constants/language/datetime/type.d.ts +4 -2
- package/es/constants/language/datetime/zh.js +4 -2
- package/es/index.css +6268 -6244
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +56 -55
- package/es/style/mixin.less +45 -45
- package/es/style/theme.less +416 -416
- package/lib/components/AutoComplete/style.css +17 -17
- package/lib/components/AutoComplete/style.less +8 -8
- package/lib/components/Breadcrumb/style.less +9 -9
- package/lib/components/Button/style.css +69 -69
- package/lib/components/Button/style.less +51 -51
- package/lib/components/Card/RowExtra/style.less +8 -8
- package/lib/components/Card/SearchInput/style.less +8 -8
- package/lib/components/Card/style.css +11 -11
- package/lib/components/Card/style.less +11 -11
- package/lib/components/CheckTransformList/style.css +19 -19
- package/lib/components/CheckTransformList/style.less +35 -35
- package/lib/components/Checkbox/index.js +9 -1
- package/lib/components/Checkbox/style.less +5 -5
- package/lib/components/CheckboxList/style.css +5 -5
- package/lib/components/CheckboxList/style.less +11 -11
- package/lib/components/Collapse/style.css +1 -1
- package/lib/components/Collapse/style.less +58 -58
- package/lib/components/CollapsiblePanel/style.less +63 -63
- package/lib/components/DateTimePicker/Base/index.d.ts +3 -0
- package/lib/components/DateTimePicker/Base/index.js +51 -6
- package/lib/components/DateTimePicker/Base/style.css +67 -61
- package/lib/components/DateTimePicker/Base/style.less +167 -160
- package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
- package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
- package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
- package/lib/components/DateTimePicker/DisplayInput/index.js +3 -1
- package/lib/components/DateTimePicker/DisplayInput/style.css +14 -14
- package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
- package/lib/components/DateTimePicker/constants.d.ts +9 -3
- package/lib/components/DateTimePicker/constants.js +1 -0
- package/lib/components/DateTimePicker/style.less +19 -19
- package/lib/components/DateTimePicker/time.d.ts +1 -0
- package/lib/components/DateTimePicker/time.js +1 -0
- package/lib/components/DateTimePicker/transform.js +4 -2
- package/lib/components/Descriptions/style.less +16 -16
- package/lib/components/Drawer/CloseIcon/style.less +8 -8
- package/lib/components/Drawer/index.d.ts +1 -1
- package/lib/components/Drawer/style.less +69 -69
- package/lib/components/FileResumable/index.js +2 -3
- package/lib/components/FileResumable/style.css +8 -8
- package/lib/components/FileResumable/style.less +94 -94
- package/lib/components/FlameGraph/customTooltip.d.ts +22 -0
- package/lib/components/FlameGraph/customTooltip.js +114 -0
- package/lib/components/FlameGraph/index.d.ts +16 -0
- package/lib/components/FlameGraph/index.js +117 -0
- package/lib/components/FlameGraph/style.css +8 -0
- package/lib/components/FlameGraph/style.less +14 -0
- package/lib/components/Input/style.css +14 -14
- package/lib/components/Input/style.less +12 -12
- package/lib/components/KeyValuePair/style.less +25 -25
- package/lib/components/Menu/Option.d.ts +1 -1
- package/lib/components/Menu/Option.js +17 -25
- package/lib/components/Menu/style.css +23 -23
- package/lib/components/Menu/style.less +18 -18
- package/lib/components/Modal/style.css +1 -1
- package/lib/components/Modal/style.less +30 -30
- package/lib/components/NameExplainTooltip/style.css +1 -1
- package/lib/components/NameExplainTooltip/style.less +10 -10
- package/lib/components/NameLimiter/style.less +19 -19
- package/lib/components/OptionList/InlineOptionList/style.css +1 -1
- package/lib/components/OptionList/InlineOptionList/style.less +16 -16
- package/lib/components/OptionList/OptionItem/style.css +2 -2
- package/lib/components/OptionList/OptionItem/style.less +25 -25
- package/lib/components/OptionList/PopoverOptionList/style.css +3 -3
- package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
- package/lib/components/OptionList/style.css +6 -6
- package/lib/components/OptionList/style.less +3 -3
- package/lib/components/RadioGroup/style.css +32 -32
- package/lib/components/RadioGroup/style.less +41 -41
- package/lib/components/RangeInput/style.css +29 -29
- package/lib/components/RangeInput/style.less +37 -37
- package/lib/components/RemarkName/style.less +2 -2
- package/lib/components/Selector/style.css +17 -17
- package/lib/components/Selector/style.less +99 -99
- package/lib/components/Spin/style.css +2 -2
- package/lib/components/Spin/style.less +26 -26
- package/lib/components/Steps/ControlButton/style.less +5 -5
- package/lib/components/Steps/style.css +16 -16
- package/lib/components/Steps/style.less +48 -48
- package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
- package/lib/components/Table/ColumnSetting/index.js +19 -14
- package/lib/components/Table/ColumnSetting/style.less +50 -50
- package/lib/components/Table/ColumnTag/style.css +4 -4
- package/lib/components/Table/ColumnTag/style.less +40 -40
- package/lib/components/Table/EmptyText.d.ts +7 -0
- package/lib/components/Table/EmptyText.js +27 -0
- package/lib/components/Table/ResizableTitle/style.less +25 -25
- package/lib/components/Table/index.d.ts +11 -83
- package/lib/components/Table/index.js +117 -288
- package/lib/components/Table/style.css +54 -44
- package/lib/components/Table/style.less +364 -345
- package/lib/components/Table/type.d.ts +63 -0
- package/lib/components/Table/type.js +8 -0
- package/lib/components/Table/util.d.ts +58 -0
- package/lib/components/Table/util.js +227 -0
- package/lib/components/Tabs/style.css +10 -10
- package/lib/components/Tabs/style.less +33 -33
- package/lib/components/TagList/Tag/style.css +5 -5
- package/lib/components/TagList/Tag/style.less +72 -72
- package/lib/components/TagList/TagSwitch/style.css +1 -1
- package/lib/components/TagList/TagSwitch/style.less +28 -28
- package/lib/components/TagList/style.css +6 -6
- package/lib/components/TagList/style.less +28 -28
- package/lib/components/Timeline/TimelineItem/style.css +1 -1
- package/lib/components/Timeline/TimelineItem/style.less +49 -49
- package/lib/components/Timeline/style.less +23 -23
- package/lib/components/TopologyChart/style.less +14 -14
- package/lib/components/Transfer/List/style.less +19 -19
- package/lib/components/Transfer/ListBody/style.less +18 -18
- package/lib/components/Transfer/style.less +14 -14
- package/lib/components/TreeSelector/style.css +21 -21
- package/lib/components/TreeSelector/style.less +56 -56
- package/lib/constants/language/datetime/en.js +4 -2
- package/lib/constants/language/datetime/type.d.ts +4 -2
- package/lib/constants/language/datetime/zh.js +4 -2
- package/lib/index.css +4726 -4702
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/index.less +56 -55
- package/lib/style/mixin.less +45 -45
- package/lib/style/theme.less +416 -416
- package/package.json +7 -4
@@ -63,7 +63,7 @@
|
|
63
63
|
.ant-steps-item-icon .ant-steps-icon {
|
64
64
|
position: relative;
|
65
65
|
top: -0.5px;
|
66
|
-
color: #
|
66
|
+
color: #436bff;
|
67
67
|
line-height: 1;
|
68
68
|
}
|
69
69
|
.ant-steps-item-tail {
|
@@ -136,13 +136,13 @@
|
|
136
136
|
}
|
137
137
|
.ant-steps-item-process .ant-steps-item-icon {
|
138
138
|
background-color: #ffffff;
|
139
|
-
border-color: #
|
139
|
+
border-color: #436bff;
|
140
140
|
}
|
141
141
|
.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {
|
142
|
-
color: #
|
142
|
+
color: #436bff;
|
143
143
|
}
|
144
144
|
.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {
|
145
|
-
background: #
|
145
|
+
background: #436bff;
|
146
146
|
}
|
147
147
|
.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {
|
148
148
|
color: #333;
|
@@ -157,7 +157,7 @@
|
|
157
157
|
background-color: #e5e5e5;
|
158
158
|
}
|
159
159
|
.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
|
160
|
-
background: #
|
160
|
+
background: #436bff;
|
161
161
|
}
|
162
162
|
.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon .ant-steps-icon {
|
163
163
|
color: #fff;
|
@@ -167,25 +167,25 @@
|
|
167
167
|
}
|
168
168
|
.ant-steps-item-finish .ant-steps-item-icon {
|
169
169
|
background-color: #ffffff;
|
170
|
-
border-color: #
|
170
|
+
border-color: #436bff;
|
171
171
|
}
|
172
172
|
.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon {
|
173
|
-
color: #
|
173
|
+
color: #436bff;
|
174
174
|
}
|
175
175
|
.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {
|
176
|
-
background: #
|
176
|
+
background: #436bff;
|
177
177
|
}
|
178
178
|
.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {
|
179
179
|
color: rgba(0, 0, 0, 0.65);
|
180
180
|
}
|
181
181
|
.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
|
182
|
-
background-color: #
|
182
|
+
background-color: #436bff;
|
183
183
|
}
|
184
184
|
.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {
|
185
185
|
color: rgba(0, 0, 0, 0.45);
|
186
186
|
}
|
187
187
|
.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {
|
188
|
-
background-color: #
|
188
|
+
background-color: #436bff;
|
189
189
|
}
|
190
190
|
.ant-steps-item-error .ant-steps-item-icon {
|
191
191
|
background-color: #ffffff;
|
@@ -228,13 +228,13 @@
|
|
228
228
|
.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-title,
|
229
229
|
.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-subtitle,
|
230
230
|
.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-description {
|
231
|
-
color: #
|
231
|
+
color: #436bff;
|
232
232
|
}
|
233
233
|
.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon {
|
234
|
-
border-color: #
|
234
|
+
border-color: #436bff;
|
235
235
|
}
|
236
236
|
.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon .ant-steps-icon {
|
237
|
-
color: #
|
237
|
+
color: #436bff;
|
238
238
|
}
|
239
239
|
.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {
|
240
240
|
padding-left: 16px;
|
@@ -267,7 +267,7 @@
|
|
267
267
|
line-height: 32px;
|
268
268
|
}
|
269
269
|
.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {
|
270
|
-
color: #
|
270
|
+
color: #436bff;
|
271
271
|
}
|
272
272
|
.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon {
|
273
273
|
width: auto;
|
@@ -574,7 +574,7 @@
|
|
574
574
|
display: inline-block;
|
575
575
|
width: 0;
|
576
576
|
height: 2px;
|
577
|
-
background-color: #
|
577
|
+
background-color: #436bff;
|
578
578
|
-webkit-transition: width 0.3s, left 0.3s;
|
579
579
|
transition: width 0.3s, left 0.3s;
|
580
580
|
-webkit-transition-timing-function: ease-out;
|
@@ -814,7 +814,7 @@
|
|
814
814
|
}
|
815
815
|
.pandora-sdk-steps .ant-steps-item .ant-steps-item-icon {
|
816
816
|
border-radius: 2px;
|
817
|
-
background: #
|
817
|
+
background: #436bff;
|
818
818
|
border: none;
|
819
819
|
}
|
820
820
|
.pandora-sdk-steps .ant-steps-item.ant-steps-item-finish .ant-steps-item-icon .ant-steps-icon {
|
@@ -1,48 +1,48 @@
|
|
1
|
-
@import 'antd/lib/steps/style/index.less';
|
2
|
-
@import '../../style/theme.less';
|
3
|
-
|
4
|
-
.@{sdk-prefix}-steps {
|
5
|
-
.@{ant-prefix}-steps-item-icon {
|
6
|
-
width: 24px;
|
7
|
-
height: 24px;
|
8
|
-
font-size: 12px;
|
9
|
-
line-height: 24px;
|
10
|
-
.@{ant-prefix}-steps-icon {
|
11
|
-
font-size: 10px;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
.@{ant-prefix}-steps-item:last-of-type {
|
15
|
-
.@{ant-prefix}-steps-item-title::after {
|
16
|
-
display: none;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
.@{ant-prefix}-steps-item-process .@{ant-prefix}-steps-item-title {
|
21
|
-
font-weight: 400;
|
22
|
-
}
|
23
|
-
|
24
|
-
.@{ant-prefix}-steps-item {
|
25
|
-
.@{ant-prefix}-steps-item-icon {
|
26
|
-
border-radius: 2px;
|
27
|
-
background: @theme-color;
|
28
|
-
border: none;
|
29
|
-
}
|
30
|
-
&.@{ant-prefix}-steps-item-finish {
|
31
|
-
.@{ant-prefix}-steps-item-icon {
|
32
|
-
.@{ant-prefix}-steps-icon {
|
33
|
-
color: @normal-color;
|
34
|
-
span.anticon.anticon-check.@{ant-prefix}-steps-finish-icon {
|
35
|
-
color: @normal-color;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
&.@{ant-prefix}-steps-item-wait .@{ant-prefix}-steps-item-icon {
|
42
|
-
background: @button-disabled-bg;
|
43
|
-
.@{ant-prefix}-steps-icon {
|
44
|
-
color: @icon-color;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
1
|
+
@import 'antd/lib/steps/style/index.less';
|
2
|
+
@import '../../style/theme.less';
|
3
|
+
|
4
|
+
.@{sdk-prefix}-steps {
|
5
|
+
.@{ant-prefix}-steps-item-icon {
|
6
|
+
width: 24px;
|
7
|
+
height: 24px;
|
8
|
+
font-size: 12px;
|
9
|
+
line-height: 24px;
|
10
|
+
.@{ant-prefix}-steps-icon {
|
11
|
+
font-size: 10px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
.@{ant-prefix}-steps-item:last-of-type {
|
15
|
+
.@{ant-prefix}-steps-item-title::after {
|
16
|
+
display: none;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.@{ant-prefix}-steps-item-process .@{ant-prefix}-steps-item-title {
|
21
|
+
font-weight: 400;
|
22
|
+
}
|
23
|
+
|
24
|
+
.@{ant-prefix}-steps-item {
|
25
|
+
.@{ant-prefix}-steps-item-icon {
|
26
|
+
border-radius: 2px;
|
27
|
+
background: @theme-color;
|
28
|
+
border: none;
|
29
|
+
}
|
30
|
+
&.@{ant-prefix}-steps-item-finish {
|
31
|
+
.@{ant-prefix}-steps-item-icon {
|
32
|
+
.@{ant-prefix}-steps-icon {
|
33
|
+
color: @normal-color;
|
34
|
+
span.anticon.anticon-check.@{ant-prefix}-steps-finish-icon {
|
35
|
+
color: @normal-color;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&.@{ant-prefix}-steps-item-wait .@{ant-prefix}-steps-item-icon {
|
42
|
+
background: @button-disabled-bg;
|
43
|
+
.@{ant-prefix}-steps-icon {
|
44
|
+
color: @icon-color;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -11,6 +11,7 @@ export interface ISettingBtnProps {
|
|
11
11
|
hiddenKeys?: string[];
|
12
12
|
options?: IOption[];
|
13
13
|
loading?: boolean;
|
14
|
+
sortable: boolean;
|
14
15
|
}
|
15
16
|
export declare function ColumnSetting(props: ISettingBtnProps): React.JSX.Element;
|
16
17
|
declare const _default: React.MemoExoticComponent<typeof ColumnSetting>;
|
@@ -31,8 +31,17 @@ import { SDK_PREFIX } from '../../../constants/style';
|
|
31
31
|
import NameLimiter from '../../NameLimiter';
|
32
32
|
import Input from '../../Input';
|
33
33
|
export var All = '_all';
|
34
|
+
function Item(_a) {
|
35
|
+
var item = _a.item, checked = _a.checked, onChange = _a.onChange, sortable = _a.sortable;
|
36
|
+
return (React.createElement("div", { key: item.value, "data-id": item.value },
|
37
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-column-setting-checkbox-container" },
|
38
|
+
sortable && (React.createElement("div", { className: SDK_PREFIX + "-table-column-setting-dragholder" },
|
39
|
+
React.createElement(HolderOutlined, null))),
|
40
|
+
React.createElement(Checkbox, { checked: checked, value: item.value, className: SDK_PREFIX + "-table-column-setting-checkbox", onChange: onChange },
|
41
|
+
React.createElement("span", { className: SDK_PREFIX + "-table-column-setting-value" }, typeof item.label === 'string' ? (React.createElement(NameLimiter, { name: item.label })) : (item.label))))));
|
42
|
+
}
|
34
43
|
export function ColumnSetting(props) {
|
35
|
-
var overlayClass = props.overlayClass, _a = props.hiddenKeys, hiddenKeys = _a === void 0 ? [] : _a, onHiddenKeysChange = props.onHiddenKeysChange, onMove = props.onMove, _b = props.options, options = _b === void 0 ? [] : _b, loading = props.loading;
|
44
|
+
var overlayClass = props.overlayClass, _a = props.hiddenKeys, hiddenKeys = _a === void 0 ? [] : _a, onHiddenKeysChange = props.onHiddenKeysChange, onMove = props.onMove, _b = props.options, options = _b === void 0 ? [] : _b, loading = props.loading, sortable = props.sortable;
|
36
45
|
var locale = useContext(ConfigContext).locale;
|
37
46
|
var _c = __read(useState(''), 2), prefix = _c[0], setPrefix = _c[1];
|
38
47
|
var allKeys = useMemo(function () {
|
@@ -81,19 +90,15 @@ export function ColumnSetting(props) {
|
|
81
90
|
React.createElement(Checkbox, { value: All, checked: hiddenKeys.length === 0, onChange: allCheckChange, className: SDK_PREFIX + "-table-column-setting-all-check" }, formatString(TableLocale.check_all, locale)),
|
82
91
|
React.createElement(Input, { value: prefix, allowClear: true, onChange: handlePrefixChange, placeholder: formatString(TableLocale.search, locale), className: SDK_PREFIX + "-table-column-setting-search-input" })),
|
83
92
|
React.createElement("div", null,
|
84
|
-
React.createElement("div", { className: SDK_PREFIX + "-table-column-setting-content" },
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
React.createElement(HolderOutlined, null)),
|
94
|
-
React.createElement(Checkbox, { checked: !!realValues.find(function (v) { return v === item.value; }), value: item.value, className: SDK_PREFIX + "-table-column-setting-checkbox", onChange: handleChange },
|
95
|
-
React.createElement("span", { className: SDK_PREFIX + "-table-column-setting-value" }, typeof item.label === 'string' ? (React.createElement(NameLimiter, { name: item.label })) : (item.label))))));
|
96
|
-
})))))) },
|
93
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-column-setting-content" }, sortable ? (React.createElement(ReactSortable, { onChange: onMove, options: {
|
94
|
+
group: 'setting-config',
|
95
|
+
animation: 150,
|
96
|
+
preventOnFilter: false
|
97
|
+
} }, realOptions.map(function (item) {
|
98
|
+
return (React.createElement(Item, { item: item, checked: !!realValues.find(function (v) { return v === item.value; }), sortable: true, onChange: handleChange, key: item.value.toString() }));
|
99
|
+
}))) : (React.createElement("div", null, realOptions.map(function (item) {
|
100
|
+
return (React.createElement(Item, { item: item, checked: !!realValues.find(function (v) { return v === item.value; }), sortable: false, onChange: handleChange, key: item.value.toString() }));
|
101
|
+
}))))))) },
|
97
102
|
React.createElement(SettingOutlined, { className: SDK_PREFIX + "-table-column-setting-icon", onClick: function (e) {
|
98
103
|
e.stopPropagation();
|
99
104
|
e.preventDefault();
|
@@ -1,50 +1,50 @@
|
|
1
|
-
@import '../../../style/theme.less';
|
2
|
-
|
3
|
-
.@{sdk-prefix}-table-column-setting-popover {
|
4
|
-
padding: 10px;
|
5
|
-
width: 100%;
|
6
|
-
.@{sdk-prefix}-table-column-setting-header {
|
7
|
-
border-bottom: 1px solid @border-color-base;
|
8
|
-
display: flex;
|
9
|
-
padding-bottom: 10px;
|
10
|
-
.@{sdk-prefix}-table-column-setting-all-check {
|
11
|
-
line-height: 32px;
|
12
|
-
}
|
13
|
-
.@{sdk-prefix}-table-column-setting-search-input {
|
14
|
-
width: 200px;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
max-height: 300px;
|
18
|
-
overflow-y: auto;
|
19
|
-
}
|
20
|
-
|
21
|
-
.@{sdk-prefix}-table-column-setting-icon {
|
22
|
-
color: @font-color-7;
|
23
|
-
}
|
24
|
-
|
25
|
-
.@{sdk-prefix}-table-column-setting-content {
|
26
|
-
display: flex;
|
27
|
-
flex-wrap: wrap;
|
28
|
-
}
|
29
|
-
|
30
|
-
.@{sdk-prefix}-table-column-setting-content > div {
|
31
|
-
box-sizing: border-box;
|
32
|
-
position: relative;
|
33
|
-
overflow: hidden;
|
34
|
-
text-overflow: ellipsis;
|
35
|
-
.@{sdk-prefix}-table-column-setting-checkbox-container {
|
36
|
-
margin: 4px 0;
|
37
|
-
display: flex;
|
38
|
-
.@{sdk-prefix}-table-column-setting-dragholder {
|
39
|
-
cursor: move;
|
40
|
-
}
|
41
|
-
.@{sdk-prefix}-table-column-setting-checkbox {
|
42
|
-
width: 100%;
|
43
|
-
min-width: 120px;
|
44
|
-
overflow: hidden;
|
45
|
-
}
|
46
|
-
.@{sdk-prefix}-table-column-setting-checkbox > span:nth-child(2) {
|
47
|
-
overflow: hidden;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
1
|
+
@import '../../../style/theme.less';
|
2
|
+
|
3
|
+
.@{sdk-prefix}-table-column-setting-popover {
|
4
|
+
padding: 10px;
|
5
|
+
width: 100%;
|
6
|
+
.@{sdk-prefix}-table-column-setting-header {
|
7
|
+
border-bottom: 1px solid @border-color-base;
|
8
|
+
display: flex;
|
9
|
+
padding-bottom: 10px;
|
10
|
+
.@{sdk-prefix}-table-column-setting-all-check {
|
11
|
+
line-height: 32px;
|
12
|
+
}
|
13
|
+
.@{sdk-prefix}-table-column-setting-search-input {
|
14
|
+
width: 200px;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
max-height: 300px;
|
18
|
+
overflow-y: auto;
|
19
|
+
}
|
20
|
+
|
21
|
+
.@{sdk-prefix}-table-column-setting-icon {
|
22
|
+
color: @font-color-7;
|
23
|
+
}
|
24
|
+
|
25
|
+
.@{sdk-prefix}-table-column-setting-content {
|
26
|
+
display: flex;
|
27
|
+
flex-wrap: wrap;
|
28
|
+
}
|
29
|
+
|
30
|
+
.@{sdk-prefix}-table-column-setting-content > div {
|
31
|
+
box-sizing: border-box;
|
32
|
+
position: relative;
|
33
|
+
overflow: hidden;
|
34
|
+
text-overflow: ellipsis;
|
35
|
+
.@{sdk-prefix}-table-column-setting-checkbox-container {
|
36
|
+
margin: 4px 0;
|
37
|
+
display: flex;
|
38
|
+
.@{sdk-prefix}-table-column-setting-dragholder {
|
39
|
+
cursor: move;
|
40
|
+
}
|
41
|
+
.@{sdk-prefix}-table-column-setting-checkbox {
|
42
|
+
width: 100%;
|
43
|
+
min-width: 120px;
|
44
|
+
overflow: hidden;
|
45
|
+
}
|
46
|
+
.@{sdk-prefix}-table-column-setting-checkbox > span:nth-child(2) {
|
47
|
+
overflow: hidden;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
.pandora-sdk-table-columnTag-groupTag {
|
2
2
|
padding: 4px;
|
3
3
|
height: 24px;
|
4
|
-
background: rgba(
|
4
|
+
background: rgba(67, 107, 255, 0.1);
|
5
5
|
margin-right: 4px;
|
6
|
-
color: #
|
6
|
+
color: #436bff;
|
7
7
|
white-space: nowrap;
|
8
8
|
font-size: 12px;
|
9
9
|
margin-top: 4px;
|
@@ -25,8 +25,8 @@
|
|
25
25
|
cursor: pointer;
|
26
26
|
}
|
27
27
|
.pandora-sdk-table-columnTag-moreTagsIcon:hover {
|
28
|
-
color: #
|
29
|
-
border-color: #
|
28
|
+
color: #436bff;
|
29
|
+
border-color: #436bff;
|
30
30
|
}
|
31
31
|
.pandora-sdk-table-columnTag-tagPopoverContainer {
|
32
32
|
padding: 6px 10px 10px 10px;
|
@@ -1,40 +1,40 @@
|
|
1
|
-
@import '../../../style/theme.less';
|
2
|
-
.@{sdk-prefix}-table-columnTag-groupTag {
|
3
|
-
padding: 4px;
|
4
|
-
height: 24px;
|
5
|
-
background: @theme-color-010;
|
6
|
-
margin-right: 4px;
|
7
|
-
color: @primary-color;
|
8
|
-
white-space: nowrap;
|
9
|
-
font-size: 12px;
|
10
|
-
margin-top: 4px;
|
11
|
-
}
|
12
|
-
|
13
|
-
.@{sdk-prefix}-table-columnTag-moreTagsIcon {
|
14
|
-
margin-left: 4px;
|
15
|
-
vertical-align: middle;
|
16
|
-
width: 14px;
|
17
|
-
height: 13px;
|
18
|
-
line-height: 6px;
|
19
|
-
border: 1px solid @icon-color;
|
20
|
-
padding: 0 1px;
|
21
|
-
text-align: center;
|
22
|
-
border-radius: 48%;
|
23
|
-
display: inline-block;
|
24
|
-
font-size: 12px;
|
25
|
-
font-weight: 400;
|
26
|
-
color: @icon-color;
|
27
|
-
cursor: pointer;
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
color: @theme-color;
|
31
|
-
border-color: @theme-color;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
.@{sdk-prefix}-table-columnTag-tagPopoverContainer {
|
36
|
-
padding: 6px 10px 10px 10px;
|
37
|
-
display: flex;
|
38
|
-
flex-wrap: wrap;
|
39
|
-
width: 400px;
|
40
|
-
}
|
1
|
+
@import '../../../style/theme.less';
|
2
|
+
.@{sdk-prefix}-table-columnTag-groupTag {
|
3
|
+
padding: 4px;
|
4
|
+
height: 24px;
|
5
|
+
background: @theme-color-010;
|
6
|
+
margin-right: 4px;
|
7
|
+
color: @primary-color;
|
8
|
+
white-space: nowrap;
|
9
|
+
font-size: 12px;
|
10
|
+
margin-top: 4px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.@{sdk-prefix}-table-columnTag-moreTagsIcon {
|
14
|
+
margin-left: 4px;
|
15
|
+
vertical-align: middle;
|
16
|
+
width: 14px;
|
17
|
+
height: 13px;
|
18
|
+
line-height: 6px;
|
19
|
+
border: 1px solid @icon-color;
|
20
|
+
padding: 0 1px;
|
21
|
+
text-align: center;
|
22
|
+
border-radius: 48%;
|
23
|
+
display: inline-block;
|
24
|
+
font-size: 12px;
|
25
|
+
font-weight: 400;
|
26
|
+
color: @icon-color;
|
27
|
+
cursor: pointer;
|
28
|
+
|
29
|
+
&:hover {
|
30
|
+
color: @theme-color;
|
31
|
+
border-color: @theme-color;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.@{sdk-prefix}-table-columnTag-tagPopoverContainer {
|
36
|
+
padding: 6px 10px 10px 10px;
|
37
|
+
display: flex;
|
38
|
+
flex-wrap: wrap;
|
39
|
+
width: 400px;
|
40
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { formatString } from '../../utils/language';
|
3
|
+
import { SDK_PREFIX } from '../../constants/style';
|
4
|
+
import { TableLocale } from '../../constants/language/table/type';
|
5
|
+
import { EmptyIcon } from '@qn-pandora/pandora-component-icons';
|
6
|
+
function EmptyTextComp(_a) {
|
7
|
+
var emptyText = _a.emptyText, locale = _a.locale;
|
8
|
+
if (!emptyText) {
|
9
|
+
return (React.createElement("div", { className: SDK_PREFIX + "-table-empty" },
|
10
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-empty-icon" },
|
11
|
+
React.createElement(EmptyIcon, null)),
|
12
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-empty-text" }, formatString(TableLocale.empty, locale))));
|
13
|
+
}
|
14
|
+
if (typeof emptyText === 'string' || typeof emptyText === 'number') {
|
15
|
+
return (React.createElement("div", { className: SDK_PREFIX + "-table-empty" },
|
16
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-empty-icon" },
|
17
|
+
React.createElement(EmptyIcon, null)),
|
18
|
+
React.createElement("div", { className: SDK_PREFIX + "-table-empty-text" }, emptyText)));
|
19
|
+
}
|
20
|
+
return emptyText;
|
21
|
+
}
|
22
|
+
export default EmptyTextComp;
|
@@ -1,25 +1,25 @@
|
|
1
|
-
@import '../../../style/theme.less';
|
2
|
-
|
3
|
-
.@{sdk-prefix}-table-resizable-th {
|
4
|
-
width: 100%;
|
5
|
-
.@{sdk-prefix}-table-resizable-handle {
|
6
|
-
position: absolute;
|
7
|
-
cursor: col-resize;
|
8
|
-
right: 1px;
|
9
|
-
height: 40%;
|
10
|
-
top: 50%;
|
11
|
-
transform: translateY(-50%);
|
12
|
-
width: 8px;
|
13
|
-
opacity: 0;
|
14
|
-
transition: opacity 0.2s ease-in-out;
|
15
|
-
}
|
16
|
-
&:hover {
|
17
|
-
.@{sdk-prefix}-table-resizable-handle {
|
18
|
-
opacity: 0.3;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
&::before {
|
23
|
-
display: none;
|
24
|
-
}
|
25
|
-
}
|
1
|
+
@import '../../../style/theme.less';
|
2
|
+
|
3
|
+
.@{sdk-prefix}-table-resizable-th {
|
4
|
+
width: 100%;
|
5
|
+
.@{sdk-prefix}-table-resizable-handle {
|
6
|
+
position: absolute;
|
7
|
+
cursor: col-resize;
|
8
|
+
right: 1px;
|
9
|
+
height: 40%;
|
10
|
+
top: 50%;
|
11
|
+
transform: translateY(-50%);
|
12
|
+
width: 8px;
|
13
|
+
opacity: 0;
|
14
|
+
transition: opacity 0.2s ease-in-out;
|
15
|
+
}
|
16
|
+
&:hover {
|
17
|
+
.@{sdk-prefix}-table-resizable-handle {
|
18
|
+
opacity: 0.3;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
&::before {
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
}
|