@qn-pandora/pandora-component 5.1.0 → 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.
Files changed (280) hide show
  1. package/README.md +36 -36
  2. package/es/components/AutoComplete/index.js +2 -2
  3. package/es/components/AutoComplete/style.css +127 -39
  4. package/es/components/AutoComplete/style.less +8 -8
  5. package/es/components/Breadcrumb/style.css +13 -3
  6. package/es/components/Breadcrumb/style.less +9 -9
  7. package/es/components/Button/style.css +282 -176
  8. package/es/components/Button/style.less +51 -51
  9. package/es/components/Card/RowExtra/style.css +6 -0
  10. package/es/components/Card/RowExtra/style.less +8 -8
  11. package/es/components/Card/SearchInput/style.less +8 -8
  12. package/es/components/Card/style.css +61 -66
  13. package/es/components/Card/style.less +11 -11
  14. package/es/components/CheckTransformList/style.css +345 -121
  15. package/es/components/CheckTransformList/style.less +35 -35
  16. package/es/components/Checkbox/index.js +9 -1
  17. package/es/components/Checkbox/style.css +5 -0
  18. package/es/components/Checkbox/style.less +5 -5
  19. package/es/components/CheckboxList/style.css +10 -5
  20. package/es/components/CheckboxList/style.less +11 -11
  21. package/es/components/Collapse/style.css +35 -3
  22. package/es/components/Collapse/style.less +58 -58
  23. package/es/components/CollapsiblePanel/style.less +63 -63
  24. package/es/components/DateTimePicker/Base/index.d.ts +3 -0
  25. package/es/components/DateTimePicker/Base/index.js +51 -6
  26. package/es/components/DateTimePicker/Base/style.css +508 -112
  27. package/es/components/DateTimePicker/Base/style.less +167 -160
  28. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  29. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  30. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  31. package/es/components/DateTimePicker/DisplayInput/index.js +3 -1
  32. package/es/components/DateTimePicker/DisplayInput/style.css +231 -53
  33. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  34. package/es/components/DateTimePicker/constants.d.ts +9 -3
  35. package/es/components/DateTimePicker/constants.js +1 -0
  36. package/es/components/DateTimePicker/index.js +1 -1
  37. package/es/components/DateTimePicker/style.css +77 -46
  38. package/es/components/DateTimePicker/style.less +19 -19
  39. package/es/components/DateTimePicker/time.d.ts +1 -0
  40. package/es/components/DateTimePicker/time.js +1 -0
  41. package/es/components/DateTimePicker/transform.js +4 -2
  42. package/es/components/Descriptions/style.css +77 -46
  43. package/es/components/Descriptions/style.less +16 -16
  44. package/es/components/Drawer/CloseIcon/style.less +8 -8
  45. package/es/components/Drawer/index.d.ts +6 -6
  46. package/es/components/Drawer/index.js +4 -4
  47. package/es/components/Drawer/style.css +244 -169
  48. package/es/components/Drawer/style.less +69 -61
  49. package/es/components/FileResumable/index.js +2 -3
  50. package/es/components/FileResumable/style.css +20 -50
  51. package/es/components/FileResumable/style.less +94 -94
  52. package/es/components/FlameGraph/customTooltip.d.ts +22 -0
  53. package/es/components/FlameGraph/customTooltip.js +91 -0
  54. package/es/components/FlameGraph/index.d.ts +16 -0
  55. package/es/components/FlameGraph/index.js +96 -0
  56. package/es/components/FlameGraph/style.css +8 -0
  57. package/es/components/FlameGraph/style.less +14 -0
  58. package/es/components/Input/index.d.ts +1 -1
  59. package/es/components/Input/style.css +231 -53
  60. package/es/components/Input/style.less +12 -12
  61. package/es/components/KeyValuePair/style.less +25 -25
  62. package/es/components/Menu/Option.d.ts +1 -1
  63. package/es/components/Menu/Option.js +12 -4
  64. package/es/components/Menu/style.css +31 -22
  65. package/es/components/Menu/style.less +18 -18
  66. package/es/components/Modal/style.css +11 -8
  67. package/es/components/Modal/style.less +30 -30
  68. package/es/components/NameExplainTooltip/style.css +1 -1
  69. package/es/components/NameExplainTooltip/style.less +10 -10
  70. package/es/components/NameLimiter/index.js +1 -1
  71. package/es/components/NameLimiter/style.css +83 -55
  72. package/es/components/NameLimiter/style.less +19 -19
  73. package/es/components/OptionList/InlineOptionList/style.css +22 -9
  74. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  75. package/es/components/OptionList/OptionItem/style.css +85 -57
  76. package/es/components/OptionList/OptionItem/style.less +25 -25
  77. package/es/components/OptionList/PopoverOptionList/index.js +1 -1
  78. package/es/components/OptionList/PopoverOptionList/style.css +80 -49
  79. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  80. package/es/components/OptionList/style.css +187 -115
  81. package/es/components/OptionList/style.less +3 -3
  82. package/es/components/RadioGroup/style.css +51 -40
  83. package/es/components/RadioGroup/style.less +41 -41
  84. package/es/components/RangeInput/style.css +604 -87
  85. package/es/components/RangeInput/style.less +37 -37
  86. package/es/components/RemarkName/style.css +83 -55
  87. package/es/components/RemarkName/style.less +2 -2
  88. package/es/components/Selector/style.css +127 -39
  89. package/es/components/Selector/style.less +99 -99
  90. package/es/components/Spin/style.css +10 -8
  91. package/es/components/Spin/style.less +26 -26
  92. package/es/components/Steps/ControlButton/style.less +5 -5
  93. package/es/components/Steps/style.css +59 -21
  94. package/es/components/Steps/style.less +48 -48
  95. package/es/components/Table/ColumnSetting/index.d.ts +1 -0
  96. package/es/components/Table/ColumnSetting/index.js +19 -14
  97. package/es/components/Table/ColumnSetting/style.css +2 -5
  98. package/es/components/Table/ColumnSetting/style.less +50 -51
  99. package/es/components/Table/ColumnTag/style.css +4 -4
  100. package/es/components/Table/ColumnTag/style.less +40 -40
  101. package/es/components/Table/EmptyText.d.ts +7 -0
  102. package/es/components/Table/EmptyText.js +22 -0
  103. package/es/components/Table/ResizableTitle/style.less +25 -25
  104. package/es/components/Table/index.d.ts +19 -88
  105. package/es/components/Table/index.js +142 -326
  106. package/es/components/Table/style.css +146 -98
  107. package/es/components/Table/style.less +364 -345
  108. package/es/components/Table/type.d.ts +63 -0
  109. package/es/components/Table/type.js +5 -0
  110. package/es/components/Table/util.d.ts +58 -0
  111. package/es/components/Table/util.js +218 -0
  112. package/es/components/Tabs/style.css +127 -78
  113. package/es/components/Tabs/style.less +33 -33
  114. package/es/components/TagList/Tag/style.css +5 -5
  115. package/es/components/TagList/Tag/style.less +72 -72
  116. package/es/components/TagList/TagSwitch/style.css +1 -1
  117. package/es/components/TagList/TagSwitch/style.less +28 -28
  118. package/es/components/TagList/style.css +6 -6
  119. package/es/components/TagList/style.less +28 -28
  120. package/es/components/Timeline/TimelineItem/style.css +1 -1
  121. package/es/components/Timeline/TimelineItem/style.less +49 -49
  122. package/es/components/Timeline/style.less +23 -23
  123. package/es/components/TopologyChart/index.d.ts +7 -0
  124. package/es/components/TopologyChart/index.js +19 -0
  125. package/es/components/TopologyChart/style.css +14 -0
  126. package/es/components/TopologyChart/style.less +14 -0
  127. package/es/components/Transfer/List/style.less +19 -19
  128. package/es/components/Transfer/ListBody/style.less +18 -18
  129. package/es/components/Transfer/style.less +14 -14
  130. package/es/components/TreeSelector/style.css +42 -30
  131. package/es/components/TreeSelector/style.less +56 -56
  132. package/es/constants/language/datetime/en.js +4 -2
  133. package/es/constants/language/datetime/type.d.ts +4 -2
  134. package/es/constants/language/datetime/zh.js +4 -2
  135. package/es/index.css +9067 -7963
  136. package/es/index.d.ts +2 -0
  137. package/es/index.js +2 -0
  138. package/es/index.less +56 -54
  139. package/es/style/mixin.less +45 -45
  140. package/es/style/theme.less +416 -416
  141. package/lib/components/AutoComplete/index.js +2 -2
  142. package/lib/components/AutoComplete/style.css +127 -39
  143. package/lib/components/AutoComplete/style.less +8 -8
  144. package/lib/components/Breadcrumb/style.css +13 -3
  145. package/lib/components/Breadcrumb/style.less +9 -9
  146. package/lib/components/Button/style.css +282 -176
  147. package/lib/components/Button/style.less +51 -51
  148. package/lib/components/Card/RowExtra/style.css +6 -0
  149. package/lib/components/Card/RowExtra/style.less +8 -8
  150. package/lib/components/Card/SearchInput/style.less +8 -8
  151. package/lib/components/Card/style.css +61 -66
  152. package/lib/components/Card/style.less +11 -11
  153. package/lib/components/CheckTransformList/style.css +345 -121
  154. package/lib/components/CheckTransformList/style.less +35 -35
  155. package/lib/components/Checkbox/index.js +9 -1
  156. package/lib/components/Checkbox/style.css +5 -0
  157. package/lib/components/Checkbox/style.less +5 -5
  158. package/lib/components/CheckboxList/style.css +10 -5
  159. package/lib/components/CheckboxList/style.less +11 -11
  160. package/lib/components/Collapse/style.css +35 -3
  161. package/lib/components/Collapse/style.less +58 -58
  162. package/lib/components/CollapsiblePanel/style.less +63 -63
  163. package/lib/components/DateTimePicker/Base/index.d.ts +3 -0
  164. package/lib/components/DateTimePicker/Base/index.js +51 -6
  165. package/lib/components/DateTimePicker/Base/style.css +508 -112
  166. package/lib/components/DateTimePicker/Base/style.less +167 -160
  167. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  168. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  169. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  170. package/lib/components/DateTimePicker/DisplayInput/index.js +3 -1
  171. package/lib/components/DateTimePicker/DisplayInput/style.css +231 -53
  172. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  173. package/lib/components/DateTimePicker/constants.d.ts +9 -3
  174. package/lib/components/DateTimePicker/constants.js +1 -0
  175. package/lib/components/DateTimePicker/index.js +1 -1
  176. package/lib/components/DateTimePicker/style.css +77 -46
  177. package/lib/components/DateTimePicker/style.less +19 -19
  178. package/lib/components/DateTimePicker/time.d.ts +1 -0
  179. package/lib/components/DateTimePicker/time.js +1 -0
  180. package/lib/components/DateTimePicker/transform.js +4 -2
  181. package/lib/components/Descriptions/style.css +77 -46
  182. package/lib/components/Descriptions/style.less +16 -16
  183. package/lib/components/Drawer/CloseIcon/style.less +8 -8
  184. package/lib/components/Drawer/index.d.ts +6 -6
  185. package/lib/components/Drawer/index.js +4 -4
  186. package/lib/components/Drawer/style.css +244 -169
  187. package/lib/components/Drawer/style.less +69 -61
  188. package/lib/components/FileResumable/index.js +2 -3
  189. package/lib/components/FileResumable/style.css +20 -50
  190. package/lib/components/FileResumable/style.less +94 -94
  191. package/lib/components/FlameGraph/customTooltip.d.ts +22 -0
  192. package/lib/components/FlameGraph/customTooltip.js +114 -0
  193. package/lib/components/FlameGraph/index.d.ts +16 -0
  194. package/lib/components/FlameGraph/index.js +117 -0
  195. package/lib/components/FlameGraph/style.css +8 -0
  196. package/lib/components/FlameGraph/style.less +14 -0
  197. package/lib/components/Input/index.d.ts +1 -1
  198. package/lib/components/Input/style.css +231 -53
  199. package/lib/components/Input/style.less +12 -12
  200. package/lib/components/KeyValuePair/style.less +25 -25
  201. package/lib/components/Menu/Option.d.ts +1 -1
  202. package/lib/components/Menu/Option.js +17 -25
  203. package/lib/components/Menu/style.css +31 -22
  204. package/lib/components/Menu/style.less +18 -18
  205. package/lib/components/Modal/style.css +11 -8
  206. package/lib/components/Modal/style.less +30 -30
  207. package/lib/components/NameExplainTooltip/style.css +1 -1
  208. package/lib/components/NameExplainTooltip/style.less +10 -10
  209. package/lib/components/NameLimiter/index.js +1 -1
  210. package/lib/components/NameLimiter/style.css +83 -55
  211. package/lib/components/NameLimiter/style.less +19 -19
  212. package/lib/components/OptionList/InlineOptionList/style.css +22 -9
  213. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  214. package/lib/components/OptionList/OptionItem/style.css +85 -57
  215. package/lib/components/OptionList/OptionItem/style.less +25 -25
  216. package/lib/components/OptionList/PopoverOptionList/index.js +1 -1
  217. package/lib/components/OptionList/PopoverOptionList/style.css +80 -49
  218. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  219. package/lib/components/OptionList/style.css +187 -115
  220. package/lib/components/OptionList/style.less +3 -3
  221. package/lib/components/RadioGroup/style.css +51 -40
  222. package/lib/components/RadioGroup/style.less +41 -41
  223. package/lib/components/RangeInput/style.css +604 -87
  224. package/lib/components/RangeInput/style.less +37 -37
  225. package/lib/components/RemarkName/style.css +83 -55
  226. package/lib/components/RemarkName/style.less +2 -2
  227. package/lib/components/Selector/style.css +127 -39
  228. package/lib/components/Selector/style.less +99 -99
  229. package/lib/components/Spin/style.css +10 -8
  230. package/lib/components/Spin/style.less +26 -26
  231. package/lib/components/Steps/ControlButton/style.less +5 -5
  232. package/lib/components/Steps/style.css +59 -21
  233. package/lib/components/Steps/style.less +48 -48
  234. package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
  235. package/lib/components/Table/ColumnSetting/index.js +19 -14
  236. package/lib/components/Table/ColumnSetting/style.css +2 -5
  237. package/lib/components/Table/ColumnSetting/style.less +50 -51
  238. package/lib/components/Table/ColumnTag/style.css +4 -4
  239. package/lib/components/Table/ColumnTag/style.less +40 -40
  240. package/lib/components/Table/EmptyText.d.ts +7 -0
  241. package/lib/components/Table/EmptyText.js +27 -0
  242. package/lib/components/Table/ResizableTitle/style.less +25 -25
  243. package/lib/components/Table/index.d.ts +19 -88
  244. package/lib/components/Table/index.js +145 -327
  245. package/lib/components/Table/style.css +146 -98
  246. package/lib/components/Table/style.less +364 -345
  247. package/lib/components/Table/type.d.ts +63 -0
  248. package/lib/components/Table/type.js +8 -0
  249. package/lib/components/Table/util.d.ts +58 -0
  250. package/lib/components/Table/util.js +227 -0
  251. package/lib/components/Tabs/style.css +127 -78
  252. package/lib/components/Tabs/style.less +33 -33
  253. package/lib/components/TagList/Tag/style.css +5 -5
  254. package/lib/components/TagList/Tag/style.less +72 -72
  255. package/lib/components/TagList/TagSwitch/style.css +1 -1
  256. package/lib/components/TagList/TagSwitch/style.less +28 -28
  257. package/lib/components/TagList/style.css +6 -6
  258. package/lib/components/TagList/style.less +28 -28
  259. package/lib/components/Timeline/TimelineItem/style.css +1 -1
  260. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  261. package/lib/components/Timeline/style.less +23 -23
  262. package/lib/components/TopologyChart/index.d.ts +7 -0
  263. package/lib/components/TopologyChart/index.js +28 -0
  264. package/lib/components/TopologyChart/style.css +14 -0
  265. package/lib/components/TopologyChart/style.less +14 -0
  266. package/lib/components/Transfer/List/style.less +19 -19
  267. package/lib/components/Transfer/ListBody/style.less +18 -18
  268. package/lib/components/Transfer/style.less +14 -14
  269. package/lib/components/TreeSelector/style.css +42 -30
  270. package/lib/components/TreeSelector/style.less +56 -56
  271. package/lib/constants/language/datetime/en.js +4 -2
  272. package/lib/constants/language/datetime/type.d.ts +4 -2
  273. package/lib/constants/language/datetime/zh.js +4 -2
  274. package/lib/index.css +4782 -3678
  275. package/lib/index.d.ts +2 -0
  276. package/lib/index.js +8 -1
  277. package/lib/index.less +56 -54
  278. package/lib/style/mixin.less +45 -45
  279. package/lib/style/theme.less +416 -416
  280. package/package.json +10 -6
@@ -17,19 +17,20 @@
17
17
  border-radius: 2px;
18
18
  -webkit-transition: all 0.3s;
19
19
  transition: all 0.3s;
20
- /* stylelint-disable-next-line selector-no-vendor-prefix */
21
20
  display: -webkit-inline-box;
22
21
  display: -ms-inline-flexbox;
23
22
  display: inline-flex;
24
23
  }
25
- .ant-input-affix-wrapper::-moz-placeholder {
26
- opacity: 1;
27
- }
28
24
  .ant-input-affix-wrapper::-webkit-input-placeholder {
29
25
  color: #bfbfbf;
30
26
  -webkit-user-select: none;
31
27
  user-select: none;
32
28
  }
29
+ .ant-input-affix-wrapper::-moz-placeholder {
30
+ color: #bfbfbf;
31
+ -moz-user-select: none;
32
+ user-select: none;
33
+ }
33
34
  .ant-input-affix-wrapper::-ms-input-placeholder {
34
35
  color: #bfbfbf;
35
36
  -ms-user-select: none;
@@ -46,8 +47,8 @@
46
47
  text-overflow: ellipsis;
47
48
  }
48
49
  .ant-input-affix-wrapper:hover {
49
- border-color: #2c6dd2;
50
- border-right-width: 1px !important;
50
+ border-color: #436bff;
51
+ border-right-width: 1px;
51
52
  }
52
53
  .ant-input-rtl .ant-input-affix-wrapper:hover {
53
54
  border-right-width: 0;
@@ -55,10 +56,10 @@
55
56
  }
56
57
  .ant-input-affix-wrapper:focus,
57
58
  .ant-input-affix-wrapper-focused {
58
- border-color: #9ca0a6;
59
- -webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
60
- box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
61
- border-right-width: 1px !important;
59
+ border-color: #6b90ff;
60
+ -webkit-box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
61
+ box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
62
+ border-right-width: 1px;
62
63
  outline: 0;
63
64
  }
64
65
  .ant-input-rtl .ant-input-affix-wrapper:focus,
@@ -77,7 +78,7 @@
77
78
  }
78
79
  .ant-input-affix-wrapper-disabled:hover {
79
80
  border-color: #bfbfbf;
80
- border-right-width: 1px !important;
81
+ border-right-width: 1px;
81
82
  }
82
83
  .ant-input-affix-wrapper[disabled] {
83
84
  color: rgba(0, 0, 0, 0.25);
@@ -90,7 +91,7 @@
90
91
  }
91
92
  .ant-input-affix-wrapper[disabled]:hover {
92
93
  border-color: #bfbfbf;
93
- border-right-width: 1px !important;
94
+ border-right-width: 1px;
94
95
  }
95
96
  .ant-input-affix-wrapper-borderless,
96
97
  .ant-input-affix-wrapper-borderless:hover,
@@ -123,8 +124,8 @@ textarea.ant-input-affix-wrapper {
123
124
  direction: rtl;
124
125
  }
125
126
  .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
126
- border-color: #2c6dd2;
127
- border-right-width: 1px !important;
127
+ border-color: #436bff;
128
+ border-right-width: 1px;
128
129
  z-index: 1;
129
130
  }
130
131
  .ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
@@ -139,18 +140,22 @@ textarea.ant-input-affix-wrapper {
139
140
  z-index: 1;
140
141
  }
141
142
  .ant-input-affix-wrapper-disabled .ant-input[disabled] {
142
- background: transparent;
143
+ background: rgba(255, 255, 255, 0);
143
144
  }
144
- .ant-input-affix-wrapper > input.ant-input {
145
- padding: 0;
145
+ .ant-input-affix-wrapper > .ant-input {
146
+ font-size: inherit;
146
147
  border: none;
147
148
  outline: none;
148
149
  }
149
- .ant-input-affix-wrapper > input.ant-input:focus {
150
+ .ant-input-affix-wrapper > .ant-input:focus {
150
151
  -webkit-box-shadow: none !important;
151
152
  box-shadow: none !important;
152
153
  }
154
+ .ant-input-affix-wrapper > .ant-input:not(textarea) {
155
+ padding: 0;
156
+ }
153
157
  .ant-input-affix-wrapper::before {
158
+ display: inline-block;
154
159
  width: 0;
155
160
  visibility: hidden;
156
161
  content: '\a0';
@@ -167,13 +172,24 @@ textarea.ant-input-affix-wrapper {
167
172
  -ms-flex-align: center;
168
173
  align-items: center;
169
174
  }
175
+ .ant-input-prefix > *:not(:last-child),
176
+ .ant-input-suffix > *:not(:last-child) {
177
+ margin-right: 8px;
178
+ }
179
+ .ant-input-show-count-suffix {
180
+ color: rgba(0, 0, 0, 0.45);
181
+ }
182
+ .ant-input-show-count-has-suffix {
183
+ margin-right: 2px;
184
+ }
170
185
  .ant-input-prefix {
171
186
  margin-right: 4px;
172
187
  }
173
188
  .ant-input-suffix {
174
189
  margin-left: 4px;
175
190
  }
176
- .anticon.ant-input-clear-icon {
191
+ .anticon.ant-input-clear-icon,
192
+ .ant-input-clear-icon {
177
193
  margin: 0;
178
194
  color: rgba(0, 0, 0, 0.25);
179
195
  font-size: 12px;
@@ -182,28 +198,109 @@ textarea.ant-input-affix-wrapper {
182
198
  -webkit-transition: color 0.3s;
183
199
  transition: color 0.3s;
184
200
  }
185
- .anticon.ant-input-clear-icon:hover {
201
+ .anticon.ant-input-clear-icon:hover,
202
+ .ant-input-clear-icon:hover {
186
203
  color: rgba(0, 0, 0, 0.45);
187
204
  }
188
- .anticon.ant-input-clear-icon:active {
205
+ .anticon.ant-input-clear-icon:active,
206
+ .ant-input-clear-icon:active {
189
207
  color: rgba(0, 0, 0, 0.65);
190
208
  }
191
- .anticon.ant-input-clear-icon-hidden {
209
+ .anticon.ant-input-clear-icon-hidden,
210
+ .ant-input-clear-icon-hidden {
192
211
  visibility: hidden;
193
212
  }
194
- .anticon.ant-input-clear-icon-has-suffix {
213
+ .anticon.ant-input-clear-icon-has-suffix,
214
+ .ant-input-clear-icon-has-suffix {
195
215
  margin: 0 4px;
196
216
  }
197
- .ant-input-affix-wrapper-textarea-with-clear-btn {
198
- padding: 0 !important;
199
- border: 0 !important;
217
+ .ant-input-affix-wrapper.ant-input-affix-wrapper-textarea-with-clear-btn {
218
+ padding: 0;
200
219
  }
201
- .ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {
220
+ .ant-input-affix-wrapper.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {
202
221
  position: absolute;
203
222
  top: 8px;
204
223
  right: 8px;
205
224
  z-index: 1;
206
225
  }
226
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
227
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
228
+ background: transparent;
229
+ border-color: #f5222d;
230
+ }
231
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
232
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
233
+ border-color: #ff4d4f;
234
+ -webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
235
+ box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
236
+ border-right-width: 1px;
237
+ outline: 0;
238
+ }
239
+ .ant-input-status-error .ant-input-prefix {
240
+ color: #f5222d;
241
+ }
242
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
243
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
244
+ background: transparent;
245
+ border-color: #f0a818;
246
+ }
247
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
248
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
249
+ border-color: #fcc442;
250
+ -webkit-box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
251
+ box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
252
+ border-right-width: 1px;
253
+ outline: 0;
254
+ }
255
+ .ant-input-status-warning .ant-input-prefix {
256
+ color: #f0a818;
257
+ }
258
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
259
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
260
+ background: transparent;
261
+ border-color: #f5222d;
262
+ }
263
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
264
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
265
+ border-color: #ff4d4f;
266
+ -webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
267
+ box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
268
+ border-right-width: 1px;
269
+ outline: 0;
270
+ }
271
+ .ant-input-affix-wrapper-status-error .ant-input-prefix {
272
+ color: #f5222d;
273
+ }
274
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
275
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
276
+ background: transparent;
277
+ border-color: #f0a818;
278
+ }
279
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
280
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
281
+ border-color: #fcc442;
282
+ -webkit-box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
283
+ box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
284
+ border-right-width: 1px;
285
+ outline: 0;
286
+ }
287
+ .ant-input-affix-wrapper-status-warning .ant-input-prefix {
288
+ color: #f0a818;
289
+ }
290
+ .ant-input-textarea-status-error.ant-input-textarea-has-feedback .ant-input,
291
+ .ant-input-textarea-status-warning.ant-input-textarea-has-feedback .ant-input,
292
+ .ant-input-textarea-status-success.ant-input-textarea-has-feedback .ant-input,
293
+ .ant-input-textarea-status-validating.ant-input-textarea-has-feedback .ant-input {
294
+ padding-right: 24px;
295
+ }
296
+ .ant-input-group-wrapper-status-error .ant-input-group-addon {
297
+ color: #f5222d;
298
+ border-color: #f5222d;
299
+ }
300
+ .ant-input-group-wrapper-status-warning .ant-input-group-addon {
301
+ color: #f0a818;
302
+ border-color: #f0a818;
303
+ }
207
304
  .ant-input {
208
305
  -webkit-box-sizing: border-box;
209
306
  box-sizing: border-box;
@@ -228,16 +325,17 @@ textarea.ant-input-affix-wrapper {
228
325
  border-radius: 2px;
229
326
  -webkit-transition: all 0.3s;
230
327
  transition: all 0.3s;
231
- /* stylelint-disable-next-line selector-no-vendor-prefix */
232
- }
233
- .ant-input::-moz-placeholder {
234
- opacity: 1;
235
328
  }
236
329
  .ant-input::-webkit-input-placeholder {
237
330
  color: #bfbfbf;
238
331
  -webkit-user-select: none;
239
332
  user-select: none;
240
333
  }
334
+ .ant-input::-moz-placeholder {
335
+ color: #bfbfbf;
336
+ -moz-user-select: none;
337
+ user-select: none;
338
+ }
241
339
  .ant-input::-ms-input-placeholder {
242
340
  color: #bfbfbf;
243
341
  -ms-user-select: none;
@@ -254,8 +352,8 @@ textarea.ant-input-affix-wrapper {
254
352
  text-overflow: ellipsis;
255
353
  }
256
354
  .ant-input:hover {
257
- border-color: #2c6dd2;
258
- border-right-width: 1px !important;
355
+ border-color: #436bff;
356
+ border-right-width: 1px;
259
357
  }
260
358
  .ant-input-rtl .ant-input:hover {
261
359
  border-right-width: 0;
@@ -263,10 +361,10 @@ textarea.ant-input-affix-wrapper {
263
361
  }
264
362
  .ant-input:focus,
265
363
  .ant-input-focused {
266
- border-color: #9ca0a6;
267
- -webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
268
- box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
269
- border-right-width: 1px !important;
364
+ border-color: #6b90ff;
365
+ -webkit-box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
366
+ box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
367
+ border-right-width: 1px;
270
368
  outline: 0;
271
369
  }
272
370
  .ant-input-rtl .ant-input:focus,
@@ -285,7 +383,7 @@ textarea.ant-input-affix-wrapper {
285
383
  }
286
384
  .ant-input-disabled:hover {
287
385
  border-color: #bfbfbf;
288
- border-right-width: 1px !important;
386
+ border-right-width: 1px;
289
387
  }
290
388
  .ant-input[disabled] {
291
389
  color: rgba(0, 0, 0, 0.25);
@@ -298,7 +396,7 @@ textarea.ant-input-affix-wrapper {
298
396
  }
299
397
  .ant-input[disabled]:hover {
300
398
  border-color: #bfbfbf;
301
- border-right-width: 1px !important;
399
+ border-right-width: 1px;
302
400
  }
303
401
  .ant-input-borderless,
304
402
  .ant-input-borderless:hover,
@@ -419,7 +517,7 @@ textarea.ant-input {
419
517
  }
420
518
  .ant-input-group-addon .ant-select-open .ant-select-selector,
421
519
  .ant-input-group-addon .ant-select-focused .ant-select-selector {
422
- color: #7a869a;
520
+ color: #436bff;
423
521
  }
424
522
  .ant-input-group-addon .ant-cascader-picker {
425
523
  margin: -9px -12px;
@@ -526,11 +624,8 @@ textarea.ant-input {
526
624
  vertical-align: top;
527
625
  border-radius: 0;
528
626
  }
529
- .ant-input-group.ant-input-group-compact > .ant-input-affix-wrapper {
530
- display: -webkit-inline-box;
531
- display: -ms-inline-flexbox;
532
- display: inline-flex;
533
- }
627
+ .ant-input-group.ant-input-group-compact > .ant-input-affix-wrapper,
628
+ .ant-input-group.ant-input-group-compact > .ant-input-number-affix-wrapper,
534
629
  .ant-input-group.ant-input-group-compact > .ant-picker-range {
535
630
  display: -webkit-inline-box;
536
631
  display: -ms-inline-flexbox;
@@ -609,6 +704,7 @@ textarea.ant-input {
609
704
  .ant-input-group-rtl .ant-input-group-addon:last-child {
610
705
  border-right: 0;
611
706
  border-left: 1px solid #bfbfbf;
707
+ border-radius: 2px 0 0 2px;
612
708
  }
613
709
  .ant-input-group-rtl.ant-input-group > .ant-input:last-child,
614
710
  .ant-input-group-rtl.ant-input-group-addon:last-child {
@@ -652,13 +748,13 @@ textarea.ant-input {
652
748
  text-align: start;
653
749
  vertical-align: top;
654
750
  }
655
- .ant-input-password-icon {
751
+ .ant-input-password-icon.anticon {
656
752
  color: rgba(0, 0, 0, 0.45);
657
753
  cursor: pointer;
658
754
  -webkit-transition: all 0.3s;
659
755
  transition: all 0.3s;
660
756
  }
661
- .ant-input-password-icon:hover {
757
+ .ant-input-password-icon.anticon:hover {
662
758
  color: rgba(0, 0, 0, 0.85);
663
759
  }
664
760
  .ant-input[type='color'] {
@@ -672,6 +768,9 @@ textarea.ant-input {
672
768
  padding-top: 3px;
673
769
  padding-bottom: 3px;
674
770
  }
771
+ .ant-input-textarea-show-count > .ant-input {
772
+ height: 100%;
773
+ }
675
774
  .ant-input-textarea-show-count::after {
676
775
  float: right;
677
776
  color: rgba(0, 0, 0, 0.45);
@@ -679,13 +778,63 @@ textarea.ant-input {
679
778
  content: attr(data-count);
680
779
  pointer-events: none;
681
780
  }
781
+ .ant-input-textarea-show-count.ant-input-textarea-in-form-item::after {
782
+ margin-bottom: -22px;
783
+ }
784
+ .ant-input-textarea-suffix {
785
+ position: absolute;
786
+ top: 0;
787
+ right: 11px;
788
+ bottom: 0;
789
+ z-index: 1;
790
+ display: -webkit-inline-box;
791
+ display: -ms-inline-flexbox;
792
+ display: inline-flex;
793
+ -webkit-box-align: center;
794
+ -ms-flex-align: center;
795
+ align-items: center;
796
+ margin: auto;
797
+ }
798
+ .ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
799
+ margin-right: -1px;
800
+ }
801
+ .ant-input-compact-item:not(.ant-input-compact-last-item).ant-input-compact-item-rtl {
802
+ margin-left: -1px;
803
+ }
804
+ .ant-input-compact-item:hover,
805
+ .ant-input-compact-item:focus,
806
+ .ant-input-compact-item:active {
807
+ z-index: 2;
808
+ }
809
+ .ant-input-compact-item[disabled] {
810
+ z-index: 0;
811
+ }
812
+ .ant-input-compact-item:not(.ant-input-compact-first-item):not(.ant-input-compact-last-item).ant-input {
813
+ border-radius: 0;
814
+ }
815
+ .ant-input-compact-item.ant-input.ant-input-compact-first-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
816
+ border-top-right-radius: 0;
817
+ border-bottom-right-radius: 0;
818
+ }
819
+ .ant-input-compact-item.ant-input.ant-input-compact-last-item:not(.ant-input-compact-first-item):not(.ant-input-compact-item-rtl) {
820
+ border-top-left-radius: 0;
821
+ border-bottom-left-radius: 0;
822
+ }
823
+ .ant-input-compact-item.ant-input.ant-input-compact-item-rtl.ant-input-compact-first-item:not(.ant-input-compact-last-item) {
824
+ border-top-left-radius: 0;
825
+ border-bottom-left-radius: 0;
826
+ }
827
+ .ant-input-compact-item.ant-input.ant-input-compact-item-rtl.ant-input-compact-last-item:not(.ant-input-compact-first-item) {
828
+ border-top-right-radius: 0;
829
+ border-bottom-right-radius: 0;
830
+ }
682
831
  .ant-input-search .ant-input:hover,
683
832
  .ant-input-search .ant-input:focus {
684
- border-color: #2c6dd2;
833
+ border-color: #436bff;
685
834
  }
686
835
  .ant-input-search .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),
687
836
  .ant-input-search .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {
688
- border-left-color: #2c6dd2;
837
+ border-left-color: #436bff;
689
838
  }
690
839
  .ant-input-search .ant-input-affix-wrapper {
691
840
  border-radius: 0;
@@ -725,6 +874,32 @@ textarea.ant-input {
725
874
  .ant-input-search-small .ant-input-search-button {
726
875
  height: 26px;
727
876
  }
877
+ .ant-input-search.ant-input-compact-item:not(.ant-input-compact-item-rtl):not(.ant-input-compact-last-item) .ant-input-group-addon .ant-input-search-button {
878
+ margin-right: -1px;
879
+ border-radius: 0;
880
+ }
881
+ .ant-input-search.ant-input-compact-item:not(.ant-input-compact-first-item) .ant-input,
882
+ .ant-input-search.ant-input-compact-item:not(.ant-input-compact-first-item) .ant-input-affix-wrapper {
883
+ border-radius: 0;
884
+ }
885
+ .ant-input-search.ant-input-compact-item > .ant-input-group-addon .ant-input-search-button:hover,
886
+ .ant-input-search.ant-input-compact-item > .ant-input:hover,
887
+ .ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:hover,
888
+ .ant-input-search.ant-input-compact-item > .ant-input-group-addon .ant-input-search-button:focus,
889
+ .ant-input-search.ant-input-compact-item > .ant-input:focus,
890
+ .ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:focus,
891
+ .ant-input-search.ant-input-compact-item > .ant-input-group-addon .ant-input-search-button:active,
892
+ .ant-input-search.ant-input-compact-item > .ant-input:active,
893
+ .ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:active {
894
+ z-index: 2;
895
+ }
896
+ .ant-input-search.ant-input-compact-item > .ant-input-affix-wrapper-focused {
897
+ z-index: 2;
898
+ }
899
+ .ant-input-search.ant-input-compact-item-rtl:not(.ant-input-compact-last-item) .ant-input-group-addon:last-child .ant-input-search-button {
900
+ margin-left: -1px;
901
+ border-radius: 0;
902
+ }
728
903
  .ant-input-group-wrapper-rtl {
729
904
  direction: rtl;
730
905
  }
@@ -760,18 +935,21 @@ textarea.ant-input {
760
935
  }
761
936
  .ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),
762
937
  .ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {
763
- border-right-color: #2c6dd2;
764
938
  border-left-color: #e5e5e5;
765
939
  }
940
+ .ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover,
941
+ .ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover {
942
+ border-left-color: #436bff;
943
+ }
766
944
  .ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover,
767
945
  .ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {
768
- border-right-color: #2c6dd2;
946
+ border-right-color: #436bff;
769
947
  }
770
- .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon {
948
+ .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon:last-child {
771
949
  right: -1px;
772
950
  left: auto;
773
951
  }
774
- .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {
952
+ .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {
775
953
  border-radius: 2px 0 0 2px;
776
954
  }
777
955
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
@@ -1,9 +1,9 @@
1
- @import 'antd/lib/input/style/index.less';
2
- @import '../../../style/theme.less';
3
-
4
- .@{sdk-prefix}-datetime-pick-input {
5
- .@{ant-prefix}-input-suffix {
6
- pointer-events: none;
7
- color: @font-color-3;
8
- }
9
- }
1
+ @import 'antd/lib/input/style/index.less';
2
+ @import '../../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-datetime-pick-input {
5
+ .@{ant-prefix}-input-suffix {
6
+ pointer-events: none;
7
+ color: @font-color-3;
8
+ }
9
+ }
@@ -6,7 +6,8 @@ export declare enum TimeType {
6
6
  Preset = "1",
7
7
  Relative = "2",
8
8
  Absolute = "3",
9
- Quarter = "4"
9
+ Quarter = "4",
10
+ OnlyTradingDay = "onlyTradingDay"
10
11
  }
11
12
  export declare enum EPresetMode {
12
13
  EXTRA = "extra",
@@ -44,7 +45,7 @@ export interface IRelativeTimeUnit {
44
45
  time: (num: number) => moment().startOf('day').subtract(num, 'days')
45
46
  }
46
47
  *
47
-
48
+
48
49
  * 像 昨天、前天、上个月,不需要用户再额外输入数字。
49
50
  * {
50
51
  text: '昨天',
@@ -93,7 +94,7 @@ export declare const relativeTimeUnitsWithoutNowStatic: {
93
94
  time: (num: number) => moment().startOf('day').subtract(num, 'days')
94
95
  }
95
96
  *
96
-
97
+
97
98
  * 像 昨天、前天、上个月,不需要用户再额外输入数字。
98
99
  * {
99
100
  text: '昨天',
@@ -148,6 +149,10 @@ export interface ITime {
148
149
  * 季度
149
150
  */
150
151
  quarterTime?: IQuarterTime;
152
+ /**
153
+ * 仅查看交易日
154
+ */
155
+ onlyTradingDay?: boolean;
151
156
  }
152
157
  export interface IBaseProps {
153
158
  /**
@@ -262,6 +267,7 @@ export interface ITimeRange {
262
267
  to?: string | null;
263
268
  rangePreset?: RangePreset;
264
269
  quarterTime?: IQuarterTime;
270
+ onlyTradingDay?: boolean;
265
271
  }
266
272
  export declare enum TimeShiftUnit {
267
273
  Second = "seconds",
@@ -17,6 +17,7 @@ export var TimeType;
17
17
  TimeType["Relative"] = "2";
18
18
  TimeType["Absolute"] = "3";
19
19
  TimeType["Quarter"] = "4";
20
+ TimeType["OnlyTradingDay"] = "onlyTradingDay"; // 交易日
20
21
  })(TimeType || (TimeType = {}));
21
22
  export var EPresetMode;
22
23
  (function (EPresetMode) {
@@ -84,7 +84,7 @@ var DateTimePicker = /** @class */ (function (_super) {
84
84
  var ismobile = isMobileDevice() && showTimeType && showTimeType.length;
85
85
  return (React.createElement("div", null,
86
86
  ismobile && (React.createElement(BaseMobile, __assign({}, restProps, { showTimeType: showTimeType, buttonType: EButtonType.Normal, value: value || this.props.defaultValue, onChange: this.handleChange }))),
87
- !ismobile && (React.createElement(Popover, { placement: this.props.placement, trigger: "click", visible: this.visible, overlayClassName: classnames(SDK_PREFIX + "-datetime-pick-popover-root", overlayClassName), getPopupContainer: getPopupContainer, onVisibleChange: this.setVisible, getTooltipContainer: this.props.getPopupContainer, content: React.createElement(Base, __assign({}, restProps, { showTimeType: showTimeType, onChange: this.handleChange, className: classnames(SDK_PREFIX + "-datetime-pick-popover", timeClassName), getPopupContainer: getPopupContainer, value: value || this.props.defaultValue })) }, children || (React.createElement(DisplayInput, { value: value || this.props.defaultValue, timeFormat: this.props.timeFormat, presets: this.props.presets, className: contentClassName }))))));
87
+ !ismobile && (React.createElement(Popover, { placement: this.props.placement, trigger: "click", open: this.visible, overlayClassName: classnames(SDK_PREFIX + "-datetime-pick-popover-root", overlayClassName), getPopupContainer: getPopupContainer, onOpenChange: this.setVisible, getTooltipContainer: this.props.getPopupContainer, content: React.createElement(Base, __assign({}, restProps, { showTimeType: showTimeType, onChange: this.handleChange, className: classnames(SDK_PREFIX + "-datetime-pick-popover", timeClassName), getPopupContainer: getPopupContainer, value: value || this.props.defaultValue })) }, children || (React.createElement(DisplayInput, { value: value || this.props.defaultValue, timeFormat: this.props.timeFormat, presets: this.props.presets, className: contentClassName }))))));
88
88
  };
89
89
  DateTimePicker.Base = Base;
90
90
  DateTimePicker.BaseMobile = BaseMobile;