cloud-b2b 1.1.52 → 1.1.53

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 (307) hide show
  1. package/es/Area/Area.js +141 -0
  2. package/es/Card/Card.js +19 -0
  3. package/es/CodeInput/CodeInput.js +123 -0
  4. package/es/Control/Control.js +444 -0
  5. package/es/Control/event.js +43 -0
  6. package/es/Enhance/Dialogs.js +52 -0
  7. package/es/Enhance/Loading.js +131 -0
  8. package/{src → es}/Enhance/index.js +6 -8
  9. package/es/Header/Header.js +162 -0
  10. package/es/Header/Vertical.js +106 -0
  11. package/es/ImageView/ImageView.js +100 -0
  12. package/es/Indent/Indent.js +19 -0
  13. package/es/InpurCascader/InputCascader.js +108 -0
  14. package/es/InputEditor/InputEditor.js +173 -0
  15. package/es/InputSearch/InputSearch.js +266 -0
  16. package/es/InputSelect/InputSelect.js +160 -0
  17. package/es/InputTreeSelect/InputTreeSelect.js +121 -0
  18. package/es/InputWriting/InputWriting.js +85 -0
  19. package/es/Layout/Layout.js +201 -0
  20. package/es/LayoutLink/LayoutLink.js +73 -0
  21. package/es/Link/Link.js +85 -0
  22. package/es/Loading/Loading.js +13 -0
  23. package/es/Loading2/Loading2.js +9 -0
  24. package/es/ModalWithDrag/ModalWithDrag.js +29 -0
  25. package/{src → es}/ModalWithDrag/drag.js +116 -128
  26. package/es/NumberInput/NumberInput.js +200 -0
  27. package/es/Search/Search.js +497 -0
  28. package/es/Sidebar/Sidebar.js +144 -0
  29. package/es/Sidebar2/Sidebar.js +165 -0
  30. package/es/SuperForm/SuperForm.js +593 -0
  31. package/es/SuperForm2/SuperForm.js +687 -0
  32. package/es/SuperIcon/SuperIcon.js +27 -0
  33. package/es/SuperPagination/SuperPagination.js +109 -0
  34. package/es/SuperTab/SuperTab.js +107 -0
  35. package/es/SuperTab2/SuperTab2.js +145 -0
  36. package/es/SuperTable/DragSortRow.js +97 -0
  37. package/es/SuperTable/FilterDropDown.js +164 -0
  38. package/es/SuperTable/SuperTable.js +808 -0
  39. package/es/SuperTable/fixed.js +34 -0
  40. package/es/SuperTable2/SuperTable2.js +894 -0
  41. package/es/SuperTable2/SuperTableCell.js +198 -0
  42. package/es/SuperTable3/FilterDropDown.js +164 -0
  43. package/es/SuperTable3/SuperTable.js +665 -0
  44. package/es/SuperTable3/fixed.js +34 -0
  45. package/es/SuperToolbar/SuperToolbar.js +195 -0
  46. package/es/SuperUpload/SuperUpload.js +356 -0
  47. package/es/Title/Title.js +33 -0
  48. package/es/Viewer/ImageViews.js +258 -0
  49. package/es/Viewer/Viewer.js +122 -0
  50. package/es/WingBlank/WingBlank.js +16 -0
  51. package/es/helper.js +240 -0
  52. package/{src → es}/history.js +6 -6
  53. package/es/index.js +37 -0
  54. package/es/variables.js +6 -0
  55. package/lib/Area/Area.js +149 -0
  56. package/lib/Area/package.json +6 -0
  57. package/lib/Card/Card.js +27 -0
  58. package/lib/Card/package.json +6 -0
  59. package/lib/CodeInput/CodeInput.js +131 -0
  60. package/lib/CodeInput/package.json +6 -0
  61. package/lib/Control/Control.js +450 -0
  62. package/lib/Control/event.js +51 -0
  63. package/lib/Control/package.json +6 -0
  64. package/lib/Enhance/Dialogs.js +60 -0
  65. package/lib/Enhance/Loading.js +138 -0
  66. package/lib/Enhance/index.js +25 -0
  67. package/lib/Enhance/package.json +6 -0
  68. package/lib/Header/Header.js +169 -0
  69. package/lib/Header/Header.less +95 -0
  70. package/lib/Header/Vertical.js +114 -0
  71. package/lib/Header/Vertical.less +60 -0
  72. package/lib/Header/package.json +6 -0
  73. package/lib/ImageView/ImageView.js +108 -0
  74. package/lib/ImageView/ImageView.less +14 -0
  75. package/lib/ImageView/package.json +6 -0
  76. package/lib/Indent/Indent.js +27 -0
  77. package/lib/Indent/package.json +6 -0
  78. package/lib/InpurCascader/InputCascader.js +115 -0
  79. package/lib/InpurCascader/package.json +6 -0
  80. package/lib/InputEditor/InputEditor.js +181 -0
  81. package/lib/InputEditor/inputEditor.less +8 -0
  82. package/lib/InputEditor/package.json +6 -0
  83. package/lib/InputSearch/InputSearch.js +274 -0
  84. package/lib/InputSearch/package.json +6 -0
  85. package/lib/InputSelect/InputSelect.js +168 -0
  86. package/lib/InputSelect/package.json +6 -0
  87. package/lib/InputTreeSelect/InputTreeSelect.js +128 -0
  88. package/lib/InputTreeSelect/package.json +6 -0
  89. package/lib/InputWriting/InputWriting.js +93 -0
  90. package/lib/InputWriting/package.json +6 -0
  91. package/lib/Layout/Layout.js +209 -0
  92. package/lib/Layout/Layout.less +28 -0
  93. package/lib/Layout/package.json +6 -0
  94. package/lib/LayoutLink/LayoutLink.js +86 -0
  95. package/lib/LayoutLink/LayoutLink.less +53 -0
  96. package/lib/LayoutLink/package.json +6 -0
  97. package/lib/Link/Link.js +93 -0
  98. package/lib/Link/package.json +6 -0
  99. package/lib/Loading/Loading.js +21 -0
  100. package/lib/Loading/Loading.less +13 -0
  101. package/lib/Loading/package.json +6 -0
  102. package/lib/Loading2/Loading2.js +17 -0
  103. package/lib/Loading2/Loading2.less +19 -0
  104. package/lib/Loading2/package.json +6 -0
  105. package/lib/ModalWithDrag/ModalWithDrag.js +37 -0
  106. package/lib/ModalWithDrag/ModalWithDrag.less +6 -0
  107. package/lib/ModalWithDrag/drag.js +124 -0
  108. package/lib/ModalWithDrag/package.json +6 -0
  109. package/lib/NumberInput/NumberInput.js +208 -0
  110. package/lib/NumberInput/package.json +6 -0
  111. package/lib/Search/Search.js +510 -0
  112. package/lib/Search/Search.less +63 -0
  113. package/lib/Search/package.json +6 -0
  114. package/lib/Sidebar/Sidebar.js +152 -0
  115. package/lib/Sidebar/Sidebar.less +78 -0
  116. package/lib/Sidebar/package.json +6 -0
  117. package/lib/Sidebar2/Sidebar.js +173 -0
  118. package/lib/Sidebar2/Sidebar.less +153 -0
  119. package/lib/Sidebar2/package.json +6 -0
  120. package/lib/SuperForm/SuperForm.js +605 -0
  121. package/lib/SuperForm/SuperForm.less +52 -0
  122. package/lib/SuperForm/package.json +6 -0
  123. package/lib/SuperForm2/SuperForm.js +699 -0
  124. package/lib/SuperForm2/SuperForm.less +52 -0
  125. package/lib/SuperForm2/package.json +6 -0
  126. package/lib/SuperIcon/SuperIcon.js +35 -0
  127. package/lib/SuperIcon/package.json +6 -0
  128. package/lib/SuperPagination/SuperPagination.js +117 -0
  129. package/lib/SuperPagination/package.json +6 -0
  130. package/lib/SuperTab/SuperTab.js +115 -0
  131. package/lib/SuperTab/SuperTab.less +43 -0
  132. package/lib/SuperTab/package.json +6 -0
  133. package/lib/SuperTab2/SuperTab2.js +153 -0
  134. package/lib/SuperTab2/SuperTab2.less +18 -0
  135. package/lib/SuperTab2/package.json +6 -0
  136. package/lib/SuperTable/DragSortRow.js +105 -0
  137. package/lib/SuperTable/DragSortRow.less +17 -0
  138. package/lib/SuperTable/FilterDropDown.js +172 -0
  139. package/lib/SuperTable/FilterDropDown.less +30 -0
  140. package/lib/SuperTable/SuperTable.js +816 -0
  141. package/lib/SuperTable/SuperTable.less +132 -0
  142. package/lib/SuperTable/fixed.js +42 -0
  143. package/lib/SuperTable/package.json +6 -0
  144. package/lib/SuperTable2/SuperTable2.js +907 -0
  145. package/lib/SuperTable2/SuperTable2.less +118 -0
  146. package/lib/SuperTable2/SuperTableCell.js +203 -0
  147. package/lib/SuperTable2/package.json +6 -0
  148. package/lib/SuperTable3/FilterDropDown.js +172 -0
  149. package/lib/SuperTable3/FilterDropDown.less +29 -0
  150. package/lib/SuperTable3/SuperTable.js +673 -0
  151. package/lib/SuperTable3/SuperTable.less +99 -0
  152. package/lib/SuperTable3/fixed.js +42 -0
  153. package/lib/SuperTable3/package.json +6 -0
  154. package/lib/SuperToolbar/SuperToolbar.js +203 -0
  155. package/lib/SuperToolbar/SuperToolbar.less +17 -0
  156. package/lib/SuperToolbar/package.json +6 -0
  157. package/lib/SuperUpload/SuperUpload.js +368 -0
  158. package/lib/SuperUpload/SuperUpload.less +28 -0
  159. package/lib/SuperUpload/package.json +6 -0
  160. package/lib/Title/Title.js +41 -0
  161. package/lib/Title/Title.less +35 -0
  162. package/lib/Title/package.json +6 -0
  163. package/lib/Viewer/ImageViews.js +266 -0
  164. package/lib/Viewer/Viewer.js +130 -0
  165. package/lib/Viewer/Viewer.less +67 -0
  166. package/lib/Viewer/imgView.less +59 -0
  167. package/lib/Viewer/package.json +7 -0
  168. package/lib/WingBlank/WingBlank.js +24 -0
  169. package/lib/WingBlank/WingBlank.less +12 -0
  170. package/lib/WingBlank/package.json +6 -0
  171. package/lib/adjust.less +89 -0
  172. package/lib/helper.js +246 -0
  173. package/lib/history.js +12 -0
  174. package/lib/index.js +271 -0
  175. package/lib/index.less +31 -0
  176. package/lib/style.less +30 -0
  177. package/lib/variables.js +14 -0
  178. package/lib/variables.less +73 -0
  179. package/package.json +22 -44
  180. package/src/Area/Area.js +0 -94
  181. package/src/Card/Card.js +0 -16
  182. package/src/CodeInput/CodeInput.js +0 -76
  183. package/src/Control/Control.js +0 -338
  184. package/src/Control/event.js +0 -45
  185. package/src/Enhance/Dialogs.js +0 -24
  186. package/src/Enhance/Loading.js +0 -83
  187. package/src/Header/Header.js +0 -149
  188. package/src/Header/Vertical.js +0 -74
  189. package/src/ImageView/ImageView.js +0 -62
  190. package/src/Indent/Indent.js +0 -12
  191. package/src/InpurCascader/InputCascader.js +0 -83
  192. package/src/InputEditor/InputEditor.js +0 -93
  193. package/src/InputSearch/InputSearch.js +0 -186
  194. package/src/InputSelect/InputSelect.js +0 -103
  195. package/src/InputTreeSelect/InputTreeSelect.js +0 -87
  196. package/src/InputWriting/InputWriting.js +0 -65
  197. package/src/Layout/Layout.js +0 -121
  198. package/src/LayoutLink/LayoutLink.js +0 -59
  199. package/src/Link/Link.js +0 -57
  200. package/src/Loading/Loading.js +0 -15
  201. package/src/Loading2/Loading2.js +0 -15
  202. package/src/ModalWithDrag/ModalWithDrag.js +0 -17
  203. package/src/NumberInput/NumberInput.js +0 -137
  204. package/src/Search/Search.js +0 -368
  205. package/src/Sidebar/Sidebar.js +0 -111
  206. package/src/Sidebar2/Sidebar.js +0 -143
  207. package/src/SuperForm/SuperForm.js +0 -516
  208. package/src/SuperForm2/SuperForm.js +0 -588
  209. package/src/SuperIcon/SuperIcon.js +0 -14
  210. package/src/SuperPagination/SuperPagination.js +0 -65
  211. package/src/SuperTab/SuperTab.js +0 -84
  212. package/src/SuperTab2/SuperTab2.js +0 -94
  213. package/src/SuperTable/DragSortRow.js +0 -62
  214. package/src/SuperTable/FilterDropDown.js +0 -111
  215. package/src/SuperTable/SuperTable.js +0 -590
  216. package/src/SuperTable/fixed.js +0 -34
  217. package/src/SuperTable2/SuperTable2.js +0 -600
  218. package/src/SuperTable2/SuperTableCell.js +0 -144
  219. package/src/SuperTable3/FilterDropDown.js +0 -111
  220. package/src/SuperTable3/SuperTable.js +0 -498
  221. package/src/SuperTable3/fixed.js +0 -34
  222. package/src/SuperToolbar/SuperToolbar.js +0 -128
  223. package/src/SuperUpload/SuperUpload.js +0 -137
  224. package/src/Title/Title.js +0 -18
  225. package/src/Viewer/ImageViews.js +0 -220
  226. package/src/Viewer/Viewer.js +0 -97
  227. package/src/WingBlank/WingBlank.js +0 -14
  228. package/src/helper.js +0 -185
  229. package/src/index.js +0 -38
  230. package/src/variables.js +0 -5
  231. package/test/index.html +0 -10
  232. package/test/test.js +0 -16
  233. package/test/test.less +0 -12
  234. package/test/webpack.config.js +0 -71
  235. package/tools/babel.config.js +0 -14
  236. package/tools/build.js +0 -70
  237. package/tools/publish.js +0 -9
  238. package/tools/util.js +0 -53
  239. /package/{src → es}/Area/package.json +0 -0
  240. /package/{src → es}/Card/package.json +0 -0
  241. /package/{src → es}/CodeInput/package.json +0 -0
  242. /package/{src → es}/Control/package.json +0 -0
  243. /package/{src → es}/Enhance/package.json +0 -0
  244. /package/{src → es}/Header/Header.less +0 -0
  245. /package/{src → es}/Header/Vertical.less +0 -0
  246. /package/{src → es}/Header/package.json +0 -0
  247. /package/{src → es}/ImageView/ImageView.less +0 -0
  248. /package/{src → es}/ImageView/package.json +0 -0
  249. /package/{src → es}/Indent/package.json +0 -0
  250. /package/{src → es}/InpurCascader/package.json +0 -0
  251. /package/{src → es}/InputEditor/inputEditor.less +0 -0
  252. /package/{src → es}/InputEditor/package.json +0 -0
  253. /package/{src → es}/InputSearch/package.json +0 -0
  254. /package/{src → es}/InputSelect/package.json +0 -0
  255. /package/{src → es}/InputTreeSelect/package.json +0 -0
  256. /package/{src → es}/InputWriting/package.json +0 -0
  257. /package/{src → es}/Layout/Layout.less +0 -0
  258. /package/{src → es}/Layout/package.json +0 -0
  259. /package/{src → es}/LayoutLink/LayoutLink.less +0 -0
  260. /package/{src → es}/LayoutLink/package.json +0 -0
  261. /package/{src → es}/Link/package.json +0 -0
  262. /package/{src → es}/Loading/Loading.less +0 -0
  263. /package/{src → es}/Loading/package.json +0 -0
  264. /package/{src → es}/Loading2/Loading2.less +0 -0
  265. /package/{src → es}/Loading2/package.json +0 -0
  266. /package/{src → es}/ModalWithDrag/ModalWithDrag.less +0 -0
  267. /package/{src → es}/ModalWithDrag/package.json +0 -0
  268. /package/{src → es}/NumberInput/package.json +0 -0
  269. /package/{src → es}/Search/Search.less +0 -0
  270. /package/{src → es}/Search/package.json +0 -0
  271. /package/{src → es}/Sidebar/Sidebar.less +0 -0
  272. /package/{src → es}/Sidebar/package.json +0 -0
  273. /package/{src → es}/Sidebar2/Sidebar.less +0 -0
  274. /package/{src → es}/Sidebar2/package.json +0 -0
  275. /package/{src → es}/SuperForm/SuperForm.less +0 -0
  276. /package/{src → es}/SuperForm/package.json +0 -0
  277. /package/{src → es}/SuperForm2/SuperForm.less +0 -0
  278. /package/{src → es}/SuperForm2/package.json +0 -0
  279. /package/{src → es}/SuperIcon/package.json +0 -0
  280. /package/{src → es}/SuperPagination/package.json +0 -0
  281. /package/{src → es}/SuperTab/SuperTab.less +0 -0
  282. /package/{src → es}/SuperTab/package.json +0 -0
  283. /package/{src → es}/SuperTab2/SuperTab2.less +0 -0
  284. /package/{src → es}/SuperTab2/package.json +0 -0
  285. /package/{src → es}/SuperTable/DragSortRow.less +0 -0
  286. /package/{src → es}/SuperTable/FilterDropDown.less +0 -0
  287. /package/{src → es}/SuperTable/SuperTable.less +0 -0
  288. /package/{src → es}/SuperTable/package.json +0 -0
  289. /package/{src → es}/SuperTable2/SuperTable2.less +0 -0
  290. /package/{src → es}/SuperTable2/package.json +0 -0
  291. /package/{src → es}/SuperTable3/FilterDropDown.less +0 -0
  292. /package/{src → es}/SuperTable3/SuperTable.less +0 -0
  293. /package/{src → es}/SuperTable3/package.json +0 -0
  294. /package/{src → es}/SuperToolbar/SuperToolbar.less +0 -0
  295. /package/{src → es}/SuperToolbar/package.json +0 -0
  296. /package/{src → es}/SuperUpload/SuperUpload.less +0 -0
  297. /package/{src → es}/SuperUpload/package.json +0 -0
  298. /package/{src → es}/Title/Title.less +0 -0
  299. /package/{src → es}/Title/package.json +0 -0
  300. /package/{src → es}/Viewer/Viewer.less +0 -0
  301. /package/{src → es}/Viewer/imgView.less +0 -0
  302. /package/{src → es}/Viewer/package.json +0 -0
  303. /package/{src → es}/WingBlank/WingBlank.less +0 -0
  304. /package/{src → es}/WingBlank/package.json +0 -0
  305. /package/{src → es}/adjust.less +0 -0
  306. /package/{src → es}/style.less +0 -0
  307. /package/{src → es}/variables.less +0 -0
@@ -0,0 +1,510 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
+ var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
5
+ var _Object$keys2 = require("@babel/runtime-corejs3/core-js-stable/object/keys");
6
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
7
+ var _filterInstanceProperty2 = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
8
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
9
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
10
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
11
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
12
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
13
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
14
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
15
+ _Object$defineProperty(exports, "__esModule", {
16
+ value: true
17
+ });
18
+ exports["default"] = void 0;
19
+ var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
20
+ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
21
+ var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
22
+ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
23
+ var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
24
+ var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
25
+ var _sort = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/sort"));
26
+ var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
27
+ var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
28
+ var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
29
+ var _row = _interopRequireDefault(require("antd/lib/row"));
30
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
31
+ var _col = _interopRequireDefault(require("antd/lib/col"));
32
+ var _icon = _interopRequireDefault(require("antd/lib/icon"));
33
+ var _button = _interopRequireDefault(require("antd/lib/button"));
34
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
35
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
36
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
37
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
38
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
39
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
40
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
41
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
42
+ var _form = _interopRequireDefault(require("antd/lib/form"));
43
+ var _react = _interopRequireDefault(require("react"));
44
+ var _propTypes = _interopRequireDefault(require("prop-types"));
45
+ var _reactDom = _interopRequireDefault(require("react-dom"));
46
+ var _Control = _interopRequireWildcard(require("../Control"));
47
+ var _helper = require("../helper");
48
+ var _variables = _interopRequireDefault(require("../variables"));
49
+ function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
50
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
51
+ function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
52
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context12, _context13; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context12 = ownKeys(Object(t), !0)).call(_context12, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context13 = ownKeys(Object(t))).call(_context13, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
53
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
54
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
55
+ var FormItem = _form["default"].Item;
56
+ var defaultSize = 'small';
57
+ var defaultColNum = 4;
58
+ var TYPE = ['text', 'search', 'select', 'number', 'date', 'readonly', 'selectSearch', 'cascader',
59
+ //级联选择下拉
60
+ 'treeSelect' //树选择
61
+ ];
62
+
63
+ /**
64
+ * search: 搜索按钮的标题
65
+ * more:更多按钮的标题
66
+ * reset:重置按钮的标题
67
+ * sort:排序按钮的标题
68
+ */
69
+ var ConfigType = {
70
+ search: _propTypes["default"].string.isRequired,
71
+ reset: _propTypes["default"].string,
72
+ sort: _propTypes["default"].string,
73
+ more: _propTypes["default"].string
74
+ };
75
+
76
+ /**
77
+ * key: 唯一标识一个表单元素
78
+ * title:表单元素旁边的标题
79
+ * type:表单元素的类型
80
+ * props:传递给表单元素的额外属性
81
+ */
82
+ var FilterType = {
83
+ key: _propTypes["default"].string.isRequired,
84
+ title: _propTypes["default"].string.isRequired,
85
+ type: _propTypes["default"].oneOf(TYPE).isRequired,
86
+ options: _propTypes["default"].array,
87
+ props: _propTypes["default"].object
88
+ };
89
+
90
+ /**
91
+ * data:传递给filters的默认值,为key:value的形式,此处的key为FilterType中的key
92
+ * isSort:是否需要排序按钮,默认false,当设置为true时,onClick函数需要实现key为sort的响应函数
93
+ * options: 作用同FilterType.options类似,但优先级高于它
94
+ * onClick:按钮点击事件,原型为func(key)
95
+ * onChange:表单控件内容改变时触发,原型为func(key, value)
96
+ * onSearch:search控件发出的事件,原型为func(key, value)
97
+ * displayRow:折叠时需要展示的行数,整数,默认为1
98
+ */
99
+ var Search = /*#__PURE__*/function (_React$Component) {
100
+ (0, _inherits2["default"])(Search, _React$Component);
101
+ var _super = _createSuper(Search);
102
+ function Search() {
103
+ var _context;
104
+ var _this;
105
+ (0, _classCallCheck2["default"])(this, Search);
106
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
107
+ args[_key] = arguments[_key];
108
+ }
109
+ _this = _super.call.apply(_super, (0, _concat["default"])(_context = [this]).call(_context, args));
110
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
111
+ more: false
112
+ });
113
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onClick", function (key) {
114
+ var onClick = _this.props.onClick;
115
+ onClick && onClick(key);
116
+ });
117
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onMore", function () {
118
+ var onHeightChange = _this.props.onHeightChange;
119
+ _this.setState({
120
+ more: !_this.state.more
121
+ });
122
+ onHeightChange && onHeightChange(_this.calHeight(!_this.state.more));
123
+ });
124
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (dictionary, key, value) {
125
+ var _context2, _context3;
126
+ var onChange = _this.props.onChange;
127
+ if (value && key === 'queryGroup' && dictionary && global.dictionary && global.dictionary[dictionary] && !(0, _includes["default"])(_context2 = (0, _map["default"])(_context3 = global.dictionary[dictionary]).call(_context3, function (item) {
128
+ return item.value;
129
+ })).call(_context2, value)) {
130
+ var _context4;
131
+ var realValue = JSON.parse(value);
132
+ _this.onClick('reset');
133
+ (0, _map["default"])(_context4 = (0, _keys["default"])(realValue)).call(_context4, function (objectKey) {
134
+ onChange && objectKey !== 'queryId' && onChange(objectKey, realValue[objectKey]);
135
+ });
136
+ }
137
+ onChange && onChange(key, value);
138
+ });
139
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onPressEnter", function () {
140
+ _reactDom["default"].findDOMNode(_this.refs.search).click();
141
+ });
142
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toButton", function (key) {
143
+ var _context5;
144
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
145
+ var config = _this.props.config;
146
+ var onClick = (0, _bind["default"])(_context5 = _this.onClick).call(_context5, (0, _assertThisInitialized2["default"])(_this), key);
147
+ return /*#__PURE__*/_react["default"].createElement(_button["default"], (0, _extends2["default"])({
148
+ size: defaultSize,
149
+ onClick: onClick
150
+ }, props), config[key]);
151
+ });
152
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toMore", function () {
153
+ return /*#__PURE__*/_react["default"].createElement("a", {
154
+ role: "more",
155
+ onClick: _this.onMore
156
+ }, _this.props.config.more, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
157
+ type: "down",
158
+ "data-status": !_this.state.more ? 'down' : 'up'
159
+ }));
160
+ });
161
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toButtons", function () {
162
+ var config = _this.props.config;
163
+ return /*#__PURE__*/_react["default"].createElement("div", {
164
+ role: "buttons"
165
+ }, _this.toButton('search', {
166
+ ref: 'search',
167
+ type: 'primary'
168
+ }), config.reset ? _this.toButton('reset') : null, _this.isSort() ? _this.toButton('sort') : null, _this.isMore() ? _this.toMore() : null);
169
+ });
170
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isSort", function () {
171
+ var _this$props = _this.props,
172
+ config = _this$props.config,
173
+ _this$props$colNum = _this$props.colNum,
174
+ colNum = _this$props$colNum === void 0 ? defaultColNum : _this$props$colNum,
175
+ filters = _this$props.filters,
176
+ _this$props$isSort = _this$props.isSort,
177
+ isSort = _this$props$isSort === void 0 ? false : _this$props$isSort;
178
+ return isSort && (0, _sort["default"])(config) && filters.length > colNum;
179
+ });
180
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMore", function () {
181
+ var _this$props2 = _this.props,
182
+ config = _this$props2.config,
183
+ _this$props2$colNum = _this$props2.colNum,
184
+ colNum = _this$props2$colNum === void 0 ? defaultColNum : _this$props2$colNum,
185
+ filters = _this$props2.filters,
186
+ _this$props2$displayR = _this$props2.displayRow,
187
+ displayRow = _this$props2$displayR === void 0 ? 1 : _this$props2$displayR;
188
+ return config.more && (0, _filter["default"])(filters).call(filters, function (item) {
189
+ return !item.hide;
190
+ }).length > colNum * displayRow;
191
+ });
192
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getOptions", function (filter) {
193
+ var options = _this.props.options;
194
+ if (options && (0, _isArray["default"])(options[filter.key])) {
195
+ return options[filter.key];
196
+ } else {
197
+ return filter.options || filter.typeRelated || [];
198
+ }
199
+ });
200
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getContainer", function () {
201
+ return _this.props.getContainer;
202
+ });
203
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getControlProps", function (control) {
204
+ var _context6;
205
+ var _this$props$data = _this.props.data,
206
+ data = _this$props$data === void 0 ? {} : _this$props$data;
207
+ return _objectSpread(_objectSpread({}, control.props || {}), {}, {
208
+ size: defaultSize,
209
+ type: control.type,
210
+ value: (0, _Control.makeString)(data[control.key]),
211
+ onChange: (0, _bind["default"])(_context6 = _this.onChange).call(_context6, (0, _assertThisInitialized2["default"])(_this), control.dictionary, control.key)
212
+ });
213
+ });
214
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "validDate", function (_ref) {
215
+ var key = _ref.key,
216
+ type = _ref.type;
217
+ return function (date) {
218
+ var _this$props$data2 = _this.props.data,
219
+ data = _this$props$data2 === void 0 ? {} : _this$props$data2;
220
+ if (!date || !data[key]) {
221
+ return false;
222
+ } else {
223
+ if (type === '>') {
224
+ return date.format('YYYY-MM-DD HH:mm:ss') <= data[key].valueOf();
225
+ } else if (type === '<') {
226
+ return date.format('YYYY-MM-DD HH:mm:ss') >= data[key].valueOf();
227
+ } else {
228
+ return false;
229
+ }
230
+ }
231
+ };
232
+ });
233
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toText", function (props) {
234
+ props.onPressEnter = _this.onPressEnter;
235
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
236
+ });
237
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toNumber", function (props) {
238
+ props.defaultValue = props.value;
239
+ delete props.value;
240
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
241
+ });
242
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getQueryGroupOptions", function (_ref2) {
243
+ var dictionary = _ref2.dictionary,
244
+ _ref2$configCode = _ref2.configCode,
245
+ configCode = _ref2$configCode === void 0 ? 'unknown' : _ref2$configCode;
246
+ var realOptions = [];
247
+ if (dictionary && global.dictionary) {
248
+ var dicOptions = global.dictionary[dictionary] || [];
249
+ realOptions = (0, _concat["default"])(realOptions).call(realOptions, dicOptions);
250
+ }
251
+ var state = global.store.getState();
252
+ var path = ['layout', 'tableColsSetting', configCode];
253
+ var _ref3 = (0, _helper.getPathValue)(state, path) || {},
254
+ _ref3$queryList = _ref3.queryList,
255
+ queryList = _ref3$queryList === void 0 ? [] : _ref3$queryList;
256
+ return (0, _concat["default"])(realOptions).call(realOptions, (0, _map["default"])(queryList).call(queryList, function (item) {
257
+ return {
258
+ title: item.name,
259
+ value: (0, _stringify["default"])(item.query)
260
+ };
261
+ }));
262
+ });
263
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toSelect", function (props, filter) {
264
+ var container = _this.getContainer();
265
+ container && (props.getPopupContainer = container);
266
+ props.options = filter.key === 'queryGroup' ? _this.getQueryGroupOptions(filter) : _this.getOptions(filter);
267
+ props.dropdownMatchSelectWidth = false;
268
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
269
+ });
270
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "createSearchEvent", function (filter) {
271
+ if (_this.props.onSearch) {
272
+ return function (value) {
273
+ return _this.props.onSearch(filter.key, value, filter);
274
+ };
275
+ } else {
276
+ return null;
277
+ }
278
+ });
279
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toSearch", function (props, filter) {
280
+ var container = _this.getContainer();
281
+ container && (props.getPopupContainer = container);
282
+ props.options = _this.getOptions(filter);
283
+ props.onSearch = _this.createSearchEvent(filter);
284
+ props.dropdownMatchSelectWidth = false;
285
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
286
+ });
287
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "selectSearch", function (props, filter) {
288
+ var container = _this.getContainer();
289
+ container && (props.getPopupContainer = container);
290
+ props.options = _this.getOptions(filter);
291
+ props.onSearch = _this.createSearchEvent(filter);
292
+ props.dropdownMatchSelectWidth = false;
293
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
294
+ });
295
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toDate", function (props, _ref4) {
296
+ var rule = _ref4.rule;
297
+ var container = _this.getContainer();
298
+ container && (props.getCalendarContainer = container);
299
+ rule && (props.disabledDate = _this.validDate(rule));
300
+ props.style = {
301
+ width: '100%'
302
+ };
303
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
304
+ });
305
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toReadonly", function (props, filter) {
306
+ props.value = (0, _Control.getTitle)(props.value, _this.getOptions(filter));
307
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
308
+ });
309
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toCascader", function (props, filter) {
310
+ var container = _this.getContainer();
311
+ container && (props.getPopupContainer = container);
312
+ props.options = _this.getOptions(filter);
313
+ props.onSearch = _this.createSearchEvent(filter);
314
+ props.placeholder = filter.placeholder || '';
315
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
316
+ });
317
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toTreeSelect", function (props, filter) {
318
+ var container = _this.getContainer();
319
+ container && (props.getPopupContainer = container);
320
+ props.options = _this.getOptions(filter);
321
+ props.onSearch = _this.createSearchEvent(filter);
322
+ props.placeholder = filter.placeholder || '';
323
+ return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
324
+ });
325
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toControl", function (control) {
326
+ var props = _this.getControlProps(control);
327
+ switch (control.type) {
328
+ case 'text':
329
+ return _this.toText(props, control);
330
+ case 'number':
331
+ return _this.toNumber(props, control);
332
+ case 'select':
333
+ return _this.toSelect(props, control);
334
+ case 'selectSearch':
335
+ return _this.selectSearch(props, control);
336
+ case 'search':
337
+ return _this.toSearch(props, control);
338
+ case 'date':
339
+ return _this.toDate(props, control);
340
+ case 'readonly':
341
+ return _this.toReadonly(props, control);
342
+ case 'cascader':
343
+ return _this.toCascader(props, control);
344
+ case 'treeSelect':
345
+ return _this.toTreeSelect(props, control);
346
+ default:
347
+ return 'type error';
348
+ }
349
+ });
350
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toLabel", function (_ref5) {
351
+ var title = _ref5.title,
352
+ key = _ref5.key,
353
+ dictionary = _ref5.dictionary,
354
+ _ref5$configCode = _ref5.configCode,
355
+ configCode = _ref5$configCode === void 0 ? 'unknown' : _ref5$configCode;
356
+ if (key === 'queryGroup') {
357
+ var _context7, _context8;
358
+ //查询组合
359
+ return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
360
+ role: "icon",
361
+ type: "plus-circle-o",
362
+ onClick: (0, _bind["default"])(_context7 = _this.onAddQueryGroup).call(_context7, (0, _assertThisInitialized2["default"])(_this), configCode, _this.props.data, dictionary)
363
+ }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
364
+ role: "icon",
365
+ type: "minus-circle-o",
366
+ onClick: (0, _bind["default"])(_context8 = _this.onDelQueryGroup).call(_context8, (0, _assertThisInitialized2["default"])(_this), configCode, _this.props.data, dictionary)
367
+ }));
368
+ } else {
369
+ return title;
370
+ }
371
+ });
372
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toCol", function (span, control, more) {
373
+ var factor = control.span || 1;
374
+ return /*#__PURE__*/_react["default"].createElement(_col["default"], {
375
+ span: span * factor,
376
+ key: control.key,
377
+ onFocus: more ? function () {
378
+ _this.setState({
379
+ more: true
380
+ });
381
+ } : undefined
382
+ }, /*#__PURE__*/_react["default"].createElement(FormItem, {
383
+ label: _this.toLabel(control),
384
+ required: control.required
385
+ }, _this.toControl(control)));
386
+ });
387
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toCols", function () {
388
+ var _context9;
389
+ var _this$props3 = _this.props,
390
+ _this$props3$colNum = _this$props3.colNum,
391
+ colNum = _this$props3$colNum === void 0 ? defaultColNum : _this$props3$colNum,
392
+ filters = _this$props3.filters,
393
+ _this$props3$displayR = _this$props3.displayRow,
394
+ displayRow = _this$props3$displayR === void 0 ? 1 : _this$props3$displayR;
395
+ var span = 24 / Math.min(colNum, (0, _filter["default"])(filters).call(filters, function (item) {
396
+ return !item.hide;
397
+ }).length);
398
+ return (0, _map["default"])(_context9 = (0, _filter["default"])(filters).call(filters, function (item) {
399
+ return !item.hide;
400
+ })).call(_context9, function (control, index) {
401
+ return _this.toCol(span, control, index >= colNum * displayRow);
402
+ });
403
+ });
404
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "calWidth", function () {
405
+ var _this$props4 = _this.props,
406
+ _this$props4$colNum = _this$props4.colNum,
407
+ colNum = _this$props4$colNum === void 0 ? defaultColNum : _this$props4$colNum,
408
+ filters = _this$props4.filters;
409
+ var length = (0, _filter["default"])(filters).call(filters, function (item) {
410
+ return !item.hide;
411
+ }).length;
412
+ if (length < colNum) {
413
+ return "".concat(length * 18, "%");
414
+ } else {
415
+ return "".concat(defaultColNum * 18, "%");
416
+ }
417
+ });
418
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "calHeight", function (more) {
419
+ var _this$props5 = _this.props,
420
+ _this$props5$colNum = _this$props5.colNum,
421
+ colNum = _this$props5$colNum === void 0 ? defaultColNum : _this$props5$colNum,
422
+ filters = _this$props5.filters,
423
+ _this$props5$displayR = _this$props5.displayRow,
424
+ displayRow = _this$props5$displayR === void 0 ? 1 : _this$props5$displayR;
425
+ if (more) {
426
+ var row = Math.ceil((0, _filter["default"])(filters).call(filters, function (item) {
427
+ return !item.hide;
428
+ }).length / colNum);
429
+ return row * 36 + (row - 1) * 10;
430
+ } else {
431
+ return displayRow * 36 + (displayRow - 1) * 10;
432
+ }
433
+ });
434
+ return _this;
435
+ }
436
+ (0, _createClass2["default"])(Search, [{
437
+ key: "onAddQueryGroup",
438
+ value: function () {
439
+ var _onAddQueryGroup = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(configCode, searchData, dictionary) {
440
+ var onAddQueryGroup;
441
+ return _regenerator["default"].wrap(function _callee$(_context10) {
442
+ while (1) switch (_context10.prev = _context10.next) {
443
+ case 0:
444
+ onAddQueryGroup = this.props.onAddQueryGroup;
445
+ onAddQueryGroup && onAddQueryGroup(configCode, searchData, dictionary);
446
+ case 2:
447
+ case "end":
448
+ return _context10.stop();
449
+ }
450
+ }, _callee, this);
451
+ }));
452
+ function onAddQueryGroup(_x, _x2, _x3) {
453
+ return _onAddQueryGroup.apply(this, arguments);
454
+ }
455
+ return onAddQueryGroup;
456
+ }()
457
+ }, {
458
+ key: "onDelQueryGroup",
459
+ value: function () {
460
+ var _onDelQueryGroup = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(configCode, searchData, dictionary) {
461
+ var onDelQueryGroup;
462
+ return _regenerator["default"].wrap(function _callee2$(_context11) {
463
+ while (1) switch (_context11.prev = _context11.next) {
464
+ case 0:
465
+ onDelQueryGroup = this.props.onDelQueryGroup;
466
+ onDelQueryGroup && onDelQueryGroup(configCode, searchData, dictionary);
467
+ case 2:
468
+ case "end":
469
+ return _context11.stop();
470
+ }
471
+ }, _callee2, this);
472
+ }));
473
+ function onDelQueryGroup(_x4, _x5, _x6) {
474
+ return _onDelQueryGroup.apply(this, arguments);
475
+ }
476
+ return onDelQueryGroup;
477
+ }()
478
+ }, {
479
+ key: "render",
480
+ value: function render() {
481
+ return /*#__PURE__*/_react["default"].createElement("div", {
482
+ className: (0, _variables["default"])('Search'),
483
+ style: {
484
+ height: this.calHeight(this.state.more)
485
+ }
486
+ }, /*#__PURE__*/_react["default"].createElement(_form["default"], {
487
+ layout: "vertical",
488
+ style: {
489
+ width: this.calWidth()
490
+ }
491
+ }, /*#__PURE__*/_react["default"].createElement(_row["default"], {
492
+ gutter: 20
493
+ }, this.toCols())), this.toButtons());
494
+ }
495
+ }]);
496
+ return Search;
497
+ }(_react["default"].Component);
498
+ (0, _defineProperty2["default"])(Search, "propTypes", {
499
+ config: _propTypes["default"].shape(ConfigType).isRequired,
500
+ filters: _propTypes["default"].arrayOf(_propTypes["default"].shape(FilterType)).isRequired,
501
+ data: _propTypes["default"].object,
502
+ options: _propTypes["default"].object,
503
+ getContainer: _propTypes["default"].func,
504
+ onClick: _propTypes["default"].func,
505
+ onChange: _propTypes["default"].func,
506
+ onSearch: _propTypes["default"].func,
507
+ onHeightChange: _propTypes["default"].func,
508
+ displayRow: _propTypes["default"].number
509
+ });
510
+ var _default = exports["default"] = Search;
@@ -0,0 +1,63 @@
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-Search {
4
+ transition: all 0.3s;
5
+
6
+ > *:first-child {
7
+ display: inline-block;
8
+ vertical-align: top;
9
+ margin-bottom: -10px;
10
+
11
+ :global(.ant-form-item) {
12
+ margin-bottom: 10px;
13
+
14
+ :global(.ant-select-selection--multiple) {
15
+ border-top-width: 1px;
16
+ height: 22px;
17
+ overflow: auto;
18
+ }
19
+
20
+ [role='icon'] {
21
+ cursor: pointer;
22
+ margin-left: 10px;
23
+ color: @primary-color;
24
+ }
25
+ }
26
+ }
27
+
28
+ > *:last-child {
29
+ display: inline-block;
30
+ vertical-align: top;
31
+ padding-left: 20px;
32
+ padding-top: 14px;
33
+ width: 25%;
34
+ }
35
+
36
+ :global(.ant-form-item-control) input,
37
+ :global(.ant-calendar-picker),
38
+ :global(.ant-select) {
39
+ display: block;
40
+ }
41
+
42
+ [role='buttons'] > * {
43
+ margin-right: 5px;
44
+ }
45
+
46
+ [role='more'] {
47
+ color: rgba(0, 0, 0, 0.65);
48
+ user-select: none;
49
+
50
+ &:hover {
51
+ color: @brand-primary;
52
+ }
53
+
54
+ > i {
55
+ transform: scale(0.75);
56
+ transition: all 0.2s;
57
+
58
+ &[data-status='up'] {
59
+ transform: scale(0.75) rotate(-180deg);
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "Search",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./Search.js"
6
+ }