@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.
Files changed (244) hide show
  1. package/README.md +36 -36
  2. package/es/components/AutoComplete/style.css +17 -17
  3. package/es/components/AutoComplete/style.less +8 -8
  4. package/es/components/Breadcrumb/style.less +9 -9
  5. package/es/components/Button/style.css +69 -69
  6. package/es/components/Button/style.less +51 -51
  7. package/es/components/Card/RowExtra/style.less +8 -8
  8. package/es/components/Card/SearchInput/style.less +8 -8
  9. package/es/components/Card/style.css +11 -11
  10. package/es/components/Card/style.less +11 -11
  11. package/es/components/CheckTransformList/style.css +19 -19
  12. package/es/components/CheckTransformList/style.less +35 -35
  13. package/es/components/Checkbox/index.js +9 -1
  14. package/es/components/Checkbox/style.less +5 -5
  15. package/es/components/CheckboxList/style.css +5 -5
  16. package/es/components/CheckboxList/style.less +11 -11
  17. package/es/components/Collapse/style.css +1 -1
  18. package/es/components/Collapse/style.less +58 -58
  19. package/es/components/CollapsiblePanel/style.less +63 -63
  20. package/es/components/DateTimePicker/Base/index.d.ts +3 -0
  21. package/es/components/DateTimePicker/Base/index.js +51 -6
  22. package/es/components/DateTimePicker/Base/style.css +67 -61
  23. package/es/components/DateTimePicker/Base/style.less +167 -160
  24. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  25. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  26. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  27. package/es/components/DateTimePicker/DisplayInput/index.js +3 -1
  28. package/es/components/DateTimePicker/DisplayInput/style.css +14 -14
  29. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  30. package/es/components/DateTimePicker/constants.d.ts +9 -3
  31. package/es/components/DateTimePicker/constants.js +1 -0
  32. package/es/components/DateTimePicker/style.less +19 -19
  33. package/es/components/DateTimePicker/time.d.ts +1 -0
  34. package/es/components/DateTimePicker/time.js +1 -0
  35. package/es/components/DateTimePicker/transform.js +4 -2
  36. package/es/components/Descriptions/style.less +16 -16
  37. package/es/components/Drawer/CloseIcon/style.less +8 -8
  38. package/es/components/Drawer/index.d.ts +1 -1
  39. package/es/components/Drawer/style.less +69 -69
  40. package/es/components/FileResumable/index.js +2 -3
  41. package/es/components/FileResumable/style.css +8 -8
  42. package/es/components/FileResumable/style.less +94 -94
  43. package/es/components/FlameGraph/customTooltip.d.ts +22 -0
  44. package/es/components/FlameGraph/customTooltip.js +91 -0
  45. package/es/components/FlameGraph/index.d.ts +16 -0
  46. package/es/components/FlameGraph/index.js +96 -0
  47. package/es/components/FlameGraph/style.css +8 -0
  48. package/es/components/FlameGraph/style.less +14 -0
  49. package/es/components/Input/style.css +14 -14
  50. package/es/components/Input/style.less +12 -12
  51. package/es/components/KeyValuePair/style.less +25 -25
  52. package/es/components/Menu/Option.d.ts +1 -1
  53. package/es/components/Menu/Option.js +12 -4
  54. package/es/components/Menu/style.css +23 -23
  55. package/es/components/Menu/style.less +18 -18
  56. package/es/components/Modal/style.css +1 -1
  57. package/es/components/Modal/style.less +30 -30
  58. package/es/components/NameExplainTooltip/style.css +1 -1
  59. package/es/components/NameExplainTooltip/style.less +10 -10
  60. package/es/components/NameLimiter/style.less +19 -19
  61. package/es/components/OptionList/InlineOptionList/style.css +1 -1
  62. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  63. package/es/components/OptionList/OptionItem/style.css +2 -2
  64. package/es/components/OptionList/OptionItem/style.less +25 -25
  65. package/es/components/OptionList/PopoverOptionList/style.css +3 -3
  66. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  67. package/es/components/OptionList/style.css +6 -6
  68. package/es/components/OptionList/style.less +3 -3
  69. package/es/components/RadioGroup/style.css +32 -32
  70. package/es/components/RadioGroup/style.less +41 -41
  71. package/es/components/RangeInput/style.css +29 -29
  72. package/es/components/RangeInput/style.less +37 -37
  73. package/es/components/RemarkName/style.less +2 -2
  74. package/es/components/Selector/style.css +17 -17
  75. package/es/components/Selector/style.less +99 -99
  76. package/es/components/Spin/style.css +2 -2
  77. package/es/components/Spin/style.less +26 -26
  78. package/es/components/Steps/ControlButton/style.less +5 -5
  79. package/es/components/Steps/style.css +16 -16
  80. package/es/components/Steps/style.less +48 -48
  81. package/es/components/Table/ColumnSetting/index.d.ts +1 -0
  82. package/es/components/Table/ColumnSetting/index.js +19 -14
  83. package/es/components/Table/ColumnSetting/style.less +50 -50
  84. package/es/components/Table/ColumnTag/style.css +4 -4
  85. package/es/components/Table/ColumnTag/style.less +40 -40
  86. package/es/components/Table/EmptyText.d.ts +7 -0
  87. package/es/components/Table/EmptyText.js +22 -0
  88. package/es/components/Table/ResizableTitle/style.less +25 -25
  89. package/es/components/Table/index.d.ts +11 -83
  90. package/es/components/Table/index.js +113 -286
  91. package/es/components/Table/style.css +54 -44
  92. package/es/components/Table/style.less +364 -345
  93. package/es/components/Table/type.d.ts +63 -0
  94. package/es/components/Table/type.js +5 -0
  95. package/es/components/Table/util.d.ts +58 -0
  96. package/es/components/Table/util.js +218 -0
  97. package/es/components/Tabs/style.css +10 -10
  98. package/es/components/Tabs/style.less +33 -33
  99. package/es/components/TagList/Tag/style.css +5 -5
  100. package/es/components/TagList/Tag/style.less +72 -72
  101. package/es/components/TagList/TagSwitch/style.css +1 -1
  102. package/es/components/TagList/TagSwitch/style.less +28 -28
  103. package/es/components/TagList/style.css +6 -6
  104. package/es/components/TagList/style.less +28 -28
  105. package/es/components/Timeline/TimelineItem/style.css +1 -1
  106. package/es/components/Timeline/TimelineItem/style.less +49 -49
  107. package/es/components/Timeline/style.less +23 -23
  108. package/es/components/TopologyChart/style.less +14 -14
  109. package/es/components/Transfer/List/style.less +19 -19
  110. package/es/components/Transfer/ListBody/style.less +18 -18
  111. package/es/components/Transfer/style.less +14 -14
  112. package/es/components/TreeSelector/style.css +21 -21
  113. package/es/components/TreeSelector/style.less +56 -56
  114. package/es/constants/language/datetime/en.js +4 -2
  115. package/es/constants/language/datetime/type.d.ts +4 -2
  116. package/es/constants/language/datetime/zh.js +4 -2
  117. package/es/index.css +6268 -6244
  118. package/es/index.d.ts +1 -0
  119. package/es/index.js +1 -0
  120. package/es/index.less +56 -55
  121. package/es/style/mixin.less +45 -45
  122. package/es/style/theme.less +416 -416
  123. package/lib/components/AutoComplete/style.css +17 -17
  124. package/lib/components/AutoComplete/style.less +8 -8
  125. package/lib/components/Breadcrumb/style.less +9 -9
  126. package/lib/components/Button/style.css +69 -69
  127. package/lib/components/Button/style.less +51 -51
  128. package/lib/components/Card/RowExtra/style.less +8 -8
  129. package/lib/components/Card/SearchInput/style.less +8 -8
  130. package/lib/components/Card/style.css +11 -11
  131. package/lib/components/Card/style.less +11 -11
  132. package/lib/components/CheckTransformList/style.css +19 -19
  133. package/lib/components/CheckTransformList/style.less +35 -35
  134. package/lib/components/Checkbox/index.js +9 -1
  135. package/lib/components/Checkbox/style.less +5 -5
  136. package/lib/components/CheckboxList/style.css +5 -5
  137. package/lib/components/CheckboxList/style.less +11 -11
  138. package/lib/components/Collapse/style.css +1 -1
  139. package/lib/components/Collapse/style.less +58 -58
  140. package/lib/components/CollapsiblePanel/style.less +63 -63
  141. package/lib/components/DateTimePicker/Base/index.d.ts +3 -0
  142. package/lib/components/DateTimePicker/Base/index.js +51 -6
  143. package/lib/components/DateTimePicker/Base/style.css +67 -61
  144. package/lib/components/DateTimePicker/Base/style.less +167 -160
  145. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  146. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  147. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  148. package/lib/components/DateTimePicker/DisplayInput/index.js +3 -1
  149. package/lib/components/DateTimePicker/DisplayInput/style.css +14 -14
  150. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  151. package/lib/components/DateTimePicker/constants.d.ts +9 -3
  152. package/lib/components/DateTimePicker/constants.js +1 -0
  153. package/lib/components/DateTimePicker/style.less +19 -19
  154. package/lib/components/DateTimePicker/time.d.ts +1 -0
  155. package/lib/components/DateTimePicker/time.js +1 -0
  156. package/lib/components/DateTimePicker/transform.js +4 -2
  157. package/lib/components/Descriptions/style.less +16 -16
  158. package/lib/components/Drawer/CloseIcon/style.less +8 -8
  159. package/lib/components/Drawer/index.d.ts +1 -1
  160. package/lib/components/Drawer/style.less +69 -69
  161. package/lib/components/FileResumable/index.js +2 -3
  162. package/lib/components/FileResumable/style.css +8 -8
  163. package/lib/components/FileResumable/style.less +94 -94
  164. package/lib/components/FlameGraph/customTooltip.d.ts +22 -0
  165. package/lib/components/FlameGraph/customTooltip.js +114 -0
  166. package/lib/components/FlameGraph/index.d.ts +16 -0
  167. package/lib/components/FlameGraph/index.js +117 -0
  168. package/lib/components/FlameGraph/style.css +8 -0
  169. package/lib/components/FlameGraph/style.less +14 -0
  170. package/lib/components/Input/style.css +14 -14
  171. package/lib/components/Input/style.less +12 -12
  172. package/lib/components/KeyValuePair/style.less +25 -25
  173. package/lib/components/Menu/Option.d.ts +1 -1
  174. package/lib/components/Menu/Option.js +17 -25
  175. package/lib/components/Menu/style.css +23 -23
  176. package/lib/components/Menu/style.less +18 -18
  177. package/lib/components/Modal/style.css +1 -1
  178. package/lib/components/Modal/style.less +30 -30
  179. package/lib/components/NameExplainTooltip/style.css +1 -1
  180. package/lib/components/NameExplainTooltip/style.less +10 -10
  181. package/lib/components/NameLimiter/style.less +19 -19
  182. package/lib/components/OptionList/InlineOptionList/style.css +1 -1
  183. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  184. package/lib/components/OptionList/OptionItem/style.css +2 -2
  185. package/lib/components/OptionList/OptionItem/style.less +25 -25
  186. package/lib/components/OptionList/PopoverOptionList/style.css +3 -3
  187. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  188. package/lib/components/OptionList/style.css +6 -6
  189. package/lib/components/OptionList/style.less +3 -3
  190. package/lib/components/RadioGroup/style.css +32 -32
  191. package/lib/components/RadioGroup/style.less +41 -41
  192. package/lib/components/RangeInput/style.css +29 -29
  193. package/lib/components/RangeInput/style.less +37 -37
  194. package/lib/components/RemarkName/style.less +2 -2
  195. package/lib/components/Selector/style.css +17 -17
  196. package/lib/components/Selector/style.less +99 -99
  197. package/lib/components/Spin/style.css +2 -2
  198. package/lib/components/Spin/style.less +26 -26
  199. package/lib/components/Steps/ControlButton/style.less +5 -5
  200. package/lib/components/Steps/style.css +16 -16
  201. package/lib/components/Steps/style.less +48 -48
  202. package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
  203. package/lib/components/Table/ColumnSetting/index.js +19 -14
  204. package/lib/components/Table/ColumnSetting/style.less +50 -50
  205. package/lib/components/Table/ColumnTag/style.css +4 -4
  206. package/lib/components/Table/ColumnTag/style.less +40 -40
  207. package/lib/components/Table/EmptyText.d.ts +7 -0
  208. package/lib/components/Table/EmptyText.js +27 -0
  209. package/lib/components/Table/ResizableTitle/style.less +25 -25
  210. package/lib/components/Table/index.d.ts +11 -83
  211. package/lib/components/Table/index.js +117 -288
  212. package/lib/components/Table/style.css +54 -44
  213. package/lib/components/Table/style.less +364 -345
  214. package/lib/components/Table/type.d.ts +63 -0
  215. package/lib/components/Table/type.js +8 -0
  216. package/lib/components/Table/util.d.ts +58 -0
  217. package/lib/components/Table/util.js +227 -0
  218. package/lib/components/Tabs/style.css +10 -10
  219. package/lib/components/Tabs/style.less +33 -33
  220. package/lib/components/TagList/Tag/style.css +5 -5
  221. package/lib/components/TagList/Tag/style.less +72 -72
  222. package/lib/components/TagList/TagSwitch/style.css +1 -1
  223. package/lib/components/TagList/TagSwitch/style.less +28 -28
  224. package/lib/components/TagList/style.css +6 -6
  225. package/lib/components/TagList/style.less +28 -28
  226. package/lib/components/Timeline/TimelineItem/style.css +1 -1
  227. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  228. package/lib/components/Timeline/style.less +23 -23
  229. package/lib/components/TopologyChart/style.less +14 -14
  230. package/lib/components/Transfer/List/style.less +19 -19
  231. package/lib/components/Transfer/ListBody/style.less +18 -18
  232. package/lib/components/Transfer/style.less +14 -14
  233. package/lib/components/TreeSelector/style.css +21 -21
  234. package/lib/components/TreeSelector/style.less +56 -56
  235. package/lib/constants/language/datetime/en.js +4 -2
  236. package/lib/constants/language/datetime/type.d.ts +4 -2
  237. package/lib/constants/language/datetime/zh.js +4 -2
  238. package/lib/index.css +4726 -4702
  239. package/lib/index.d.ts +1 -0
  240. package/lib/index.js +3 -1
  241. package/lib/index.less +56 -55
  242. package/lib/style/mixin.less +45 -45
  243. package/lib/style/theme.less +416 -416
  244. 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: #7a869a;
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: #7a869a;
139
+ border-color: #436bff;
140
140
  }
141
141
  .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {
142
- color: #7a869a;
142
+ color: #436bff;
143
143
  }
144
144
  .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {
145
- background: #7a869a;
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: #7a869a;
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: #7a869a;
170
+ border-color: #436bff;
171
171
  }
172
172
  .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon {
173
- color: #7a869a;
173
+ color: #436bff;
174
174
  }
175
175
  .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {
176
- background: #7a869a;
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: #7a869a;
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: #7a869a;
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: #7a869a;
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: #7a869a;
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: #7a869a;
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: #7a869a;
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: #7a869a;
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: #2c6dd2;
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
- React.createElement(ReactSortable, { onChange: onMove, options: {
86
- group: 'setting-config',
87
- animation: 150,
88
- preventOnFilter: false
89
- } }, realOptions.map(function (item) {
90
- return (React.createElement("div", { key: item.value, "data-id": item.value },
91
- React.createElement("div", { className: SDK_PREFIX + "-table-column-setting-checkbox-container" },
92
- React.createElement("div", { className: SDK_PREFIX + "-table-column-setting-dragholder" },
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(44, 109, 210, 0.1);
4
+ background: rgba(67, 107, 255, 0.1);
5
5
  margin-right: 4px;
6
- color: #7a869a;
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: #2c6dd2;
29
- border-color: #2c6dd2;
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,7 @@
1
+ import React from 'react';
2
+ import { Locale } from 'antd/es/locale-provider';
3
+ declare function EmptyTextComp({ emptyText, locale }: {
4
+ emptyText?: React.ReactNode;
5
+ locale: Locale | undefined;
6
+ }): React.JSX.Element;
7
+ export default EmptyTextComp;
@@ -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
+ }