@kdcloudjs/table 1.0.1 → 1.0.4

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 (207) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +34 -33
  3. package/dist/@kdcloudjs/table.css +1 -1
  4. package/dist/@kdcloudjs/table.css.map +1 -1
  5. package/dist/@kdcloudjs/table.js +6555 -3388
  6. package/dist/@kdcloudjs/table.js.map +1 -1
  7. package/dist/@kdcloudjs/table.min.css +1 -1
  8. package/dist/@kdcloudjs/table.min.js +32 -24
  9. package/dist/@kdcloudjs/table.min.js.map +1 -1
  10. package/es/_utils/hooks.js +1 -2
  11. package/es/_utils/numberUtil.js +3 -4
  12. package/es/locale/locale.js +1 -2
  13. package/es/table/base/calculations.js +3 -4
  14. package/es/table/base/empty.js +2 -2
  15. package/es/table/base/header.d.ts +6 -2
  16. package/es/table/base/header.js +41 -22
  17. package/es/table/base/helpers/SpanManager.js +1 -1
  18. package/es/table/base/helpers/TableDOMUtils.d.ts +3 -0
  19. package/es/table/base/helpers/TableDOMUtils.js +23 -5
  20. package/es/table/base/helpers/getRichVisibleRectsStream.d.ts +23 -0
  21. package/es/table/base/helpers/getRichVisibleRectsStream.js +216 -0
  22. package/es/table/base/html-table.d.ts +3 -1
  23. package/es/table/base/html-table.js +43 -26
  24. package/es/table/base/interfaces.d.ts +1 -0
  25. package/es/table/base/renderTemplates.d.ts +1 -0
  26. package/es/table/base/renderTemplates.js +344 -0
  27. package/es/table/base/styles.d.ts +24 -0
  28. package/es/table/base/styles.js +31 -9
  29. package/es/table/base/table.d.ts +12 -4
  30. package/es/table/base/table.js +183 -136
  31. package/es/table/base/utils.d.ts +6 -3
  32. package/es/table/base/utils.js +27 -6
  33. package/es/table/common-views.js +3 -3
  34. package/es/table/pipeline/features/autoFill.js +7 -1
  35. package/es/table/pipeline/features/columnDrag.js +168 -59
  36. package/es/table/pipeline/features/columnFilter.js +7 -9
  37. package/es/table/pipeline/features/columnResizeWidth.d.ts +3 -0
  38. package/es/table/pipeline/features/columnResizeWidth.js +11 -4
  39. package/es/table/pipeline/features/contextMenu.js +78 -31
  40. package/es/table/pipeline/features/filter/Filter.js +74 -37
  41. package/es/table/pipeline/features/index.d.ts +1 -0
  42. package/es/table/pipeline/features/index.js +2 -1
  43. package/es/table/pipeline/features/multiSelect.js +85 -79
  44. package/es/table/pipeline/features/rangeSelection.d.ts +10 -0
  45. package/es/table/pipeline/features/rangeSelection.js +231 -0
  46. package/es/table/pipeline/features/rowDetail.js +39 -16
  47. package/es/table/pipeline/features/rowGrouping.js +2 -1
  48. package/es/table/pipeline/features/singleSelect.js +4 -1
  49. package/es/table/pipeline/features/sort.js +2 -3
  50. package/es/table/pipeline/features/treeMode.js +4 -4
  51. package/es/table/pipeline/pipeline.d.ts +8 -0
  52. package/es/table/pipeline/pipeline.js +49 -5
  53. package/es/table/pivot/cross-table/buildCrossTable.js +1 -2
  54. package/es/table/pivot/cross-tree-table/buildCrossTreeTable.js +1 -2
  55. package/es/table/pivot/pivot-utils/builders.js +1 -2
  56. package/es/table/pivot/pivot-utils/convert-utils.js +5 -4
  57. package/es/table/transforms/autoWidth.js +1 -2
  58. package/es/table/transforms/sort.js +1 -2
  59. package/es/table/transforms/treeMode.js +1 -2
  60. package/es/table/utils/applyTransforms.js +1 -3
  61. package/es/table/utils/browserType.d.ts +6 -0
  62. package/es/table/utils/browserType.js +6 -0
  63. package/es/table/utils/buildTree.js +4 -5
  64. package/es/table/utils/collectNodes.js +1 -2
  65. package/es/table/utils/exportTableAsExcel.js +1 -2
  66. package/es/table/utils/getTreeDepth.js +1 -2
  67. package/es/table/utils/groupBy.js +1 -2
  68. package/es/table/utils/index.d.ts +1 -0
  69. package/es/table/utils/index.js +2 -1
  70. package/es/table/utils/layeredSort.js +5 -2
  71. package/es/table/utils/makeRecursiveMapper.js +4 -5
  72. package/es/table/utils/others.d.ts +1 -1
  73. package/es/table/utils/others.js +20 -14
  74. package/es/table/utils/traverseColumn.js +1 -2
  75. package/es/table/utils/tree-data-helpers/StrictTreeDataHelper.js +4 -5
  76. package/es/table/utils/tree-data-helpers/TreeDataHelper.js +4 -5
  77. package/lib/_utils/formatUtil.js +1 -1
  78. package/lib/_utils/hooks.js +2 -4
  79. package/lib/_utils/numberUtil.js +7 -9
  80. package/lib/_utils/usePopper.js +9 -1
  81. package/lib/config-provider/configProvider.js +9 -1
  82. package/lib/config-provider/index.js +5 -5
  83. package/lib/locale/index.js +14 -6
  84. package/lib/locale/locale.js +2 -4
  85. package/lib/table/base/calculations.js +4 -6
  86. package/lib/table/base/empty.js +11 -3
  87. package/lib/table/base/header.d.ts +6 -2
  88. package/lib/table/base/header.js +39 -19
  89. package/lib/table/base/helpers/SpanManager.js +1 -1
  90. package/lib/table/base/helpers/TableDOMUtils.d.ts +3 -0
  91. package/lib/table/base/helpers/TableDOMUtils.js +21 -5
  92. package/lib/table/base/helpers/getRichVisibleRectsStream.d.ts +23 -0
  93. package/lib/table/base/helpers/getRichVisibleRectsStream.js +246 -0
  94. package/lib/table/base/html-table.d.ts +3 -1
  95. package/lib/table/base/html-table.js +44 -26
  96. package/lib/table/base/index.js +4 -4
  97. package/lib/table/base/interfaces.d.ts +1 -0
  98. package/lib/table/base/renderTemplates.d.ts +1 -0
  99. package/lib/table/base/renderTemplates.js +370 -0
  100. package/lib/table/base/styles.d.ts +24 -0
  101. package/lib/table/base/styles.js +42 -13
  102. package/lib/table/base/table.d.ts +12 -4
  103. package/lib/table/base/table.js +191 -137
  104. package/lib/table/base/utils.d.ts +6 -3
  105. package/lib/table/base/utils.js +47 -10
  106. package/lib/table/common-views.js +3 -3
  107. package/lib/table/pipeline/features/autoFill.js +9 -2
  108. package/lib/table/pipeline/features/columnDrag.js +168 -59
  109. package/lib/table/pipeline/features/columnFilter.js +6 -9
  110. package/lib/table/pipeline/features/columnResizeWidth.d.ts +3 -0
  111. package/lib/table/pipeline/features/columnResizeWidth.js +21 -5
  112. package/lib/table/pipeline/features/contextMenu.js +89 -32
  113. package/lib/table/pipeline/features/filter/DefaultFilterContent.js +10 -2
  114. package/lib/table/pipeline/features/filter/Filter.js +88 -37
  115. package/lib/table/pipeline/features/filter/FilterPanel.js +10 -2
  116. package/lib/table/pipeline/features/filter/index.js +4 -4
  117. package/lib/table/pipeline/features/index.d.ts +1 -0
  118. package/lib/table/pipeline/features/index.js +37 -27
  119. package/lib/table/pipeline/features/multiSelect.js +81 -75
  120. package/lib/table/pipeline/features/rangeSelection.d.ts +10 -0
  121. package/lib/table/pipeline/features/rangeSelection.js +256 -0
  122. package/lib/table/pipeline/features/rowDetail.js +42 -16
  123. package/lib/table/pipeline/features/rowGrouping.js +3 -1
  124. package/lib/table/pipeline/features/singleSelect.js +4 -1
  125. package/lib/table/pipeline/features/sort.js +2 -4
  126. package/lib/table/pipeline/features/treeMode.js +6 -6
  127. package/lib/table/pipeline/index.js +11 -3
  128. package/lib/table/pipeline/pipeline.d.ts +8 -0
  129. package/lib/table/pipeline/pipeline.js +50 -7
  130. package/lib/table/pivot/cross-table/buildCrossTable.js +1 -3
  131. package/lib/table/pivot/cross-table/index.js +4 -4
  132. package/lib/table/pivot/cross-tree-table/buildCrossTreeTable.js +1 -3
  133. package/lib/table/pivot/pivot-utils/builders.js +2 -4
  134. package/lib/table/pivot/pivot-utils/convert-utils.js +7 -5
  135. package/lib/table/pivot/pivot-utils/index.js +4 -4
  136. package/lib/table/transforms/autoWidth.js +10 -4
  137. package/lib/table/transforms/columnResize.js +10 -2
  138. package/lib/table/transforms/index.js +32 -32
  139. package/lib/table/transforms/sort.js +10 -4
  140. package/lib/table/transforms/treeMode.js +9 -3
  141. package/lib/table/utils/applyTransforms.js +1 -5
  142. package/lib/table/utils/browserType.d.ts +6 -0
  143. package/lib/table/utils/browserType.js +13 -0
  144. package/lib/table/utils/buildTree.js +1 -3
  145. package/lib/table/utils/collectNodes.js +1 -3
  146. package/lib/table/utils/copyToClipboard.js +1 -1
  147. package/lib/table/utils/element.js +3 -3
  148. package/lib/table/utils/exportTableAsExcel.js +1 -3
  149. package/lib/table/utils/getTreeDepth.js +1 -3
  150. package/lib/table/utils/groupBy.js +1 -3
  151. package/lib/table/utils/index.d.ts +1 -0
  152. package/lib/table/utils/index.js +57 -49
  153. package/lib/table/utils/layeredSort.js +6 -2
  154. package/lib/table/utils/makeRecursiveMapper.js +1 -3
  155. package/lib/table/utils/others.d.ts +1 -1
  156. package/lib/table/utils/others.js +23 -18
  157. package/lib/table/utils/traverseColumn.js +1 -3
  158. package/lib/table/utils/tree-data-helpers/StrictTreeDataHelper.js +5 -7
  159. package/lib/table/utils/tree-data-helpers/TreeDataHelper.js +5 -7
  160. package/package.json +6 -2
  161. package/dist/kd-table.css +0 -422
  162. package/dist/kd-table.css.map +0 -1
  163. package/dist/kd-table.js +0 -38578
  164. package/dist/kd-table.js.map +0 -1
  165. package/dist/kd-table.min.css +0 -9
  166. package/dist/kd-table.min.js +0 -208
  167. package/dist/kd-table.min.js.map +0 -1
  168. package/es/table/base/helpers/__test__/visible-part.test.d.ts +0 -1
  169. package/es/table/base/helpers/__test__/visible-part.test.js +0 -28
  170. package/es/table/base/helpers/visible-part.d.ts +0 -23
  171. package/es/table/base/helpers/visible-part.js +0 -58
  172. package/es/table/pipeline/features/__test__/multiSelect.test.d.ts +0 -1
  173. package/es/table/pipeline/features/__test__/multiSelect.test.js +0 -152
  174. package/es/table/pipeline/features/__test__/rowDetail.test.d.ts +0 -1
  175. package/es/table/pipeline/features/__test__/rowDetail.test.js +0 -223
  176. package/es/table/pipeline/features/__test__/rowGrouping.test.d.ts +0 -1
  177. package/es/table/pipeline/features/__test__/rowGrouping.test.js +0 -120
  178. package/es/table/pipeline/features/__test__/singleSelect.test.d.ts +0 -1
  179. package/es/table/pipeline/features/__test__/singleSelect.test.js +0 -191
  180. package/es/table/pipeline/features/__test__/sort.test.d.ts +0 -1
  181. package/es/table/pipeline/features/__test__/sort.test.js +0 -213
  182. package/es/table/pipeline/features/__test__/tips.test.d.ts +0 -1
  183. package/es/table/pipeline/features/__test__/tips.test.js +0 -123
  184. package/es/table/pipeline/features/__test__/treeMode.test.d.ts +0 -1
  185. package/es/table/pipeline/features/__test__/treeMode.test.js +0 -202
  186. package/es/table/pipeline/features/filter/__test__/Filter.test.d.ts +0 -1
  187. package/es/table/pipeline/features/filter/__test__/Filter.test.js +0 -29
  188. package/lib/table/base/helpers/__test__/visible-part.test.d.ts +0 -1
  189. package/lib/table/base/helpers/__test__/visible-part.test.js +0 -31
  190. package/lib/table/base/helpers/visible-part.d.ts +0 -23
  191. package/lib/table/base/helpers/visible-part.js +0 -72
  192. package/lib/table/pipeline/features/__test__/multiSelect.test.d.ts +0 -1
  193. package/lib/table/pipeline/features/__test__/multiSelect.test.js +0 -163
  194. package/lib/table/pipeline/features/__test__/rowDetail.test.d.ts +0 -1
  195. package/lib/table/pipeline/features/__test__/rowDetail.test.js +0 -230
  196. package/lib/table/pipeline/features/__test__/rowGrouping.test.d.ts +0 -1
  197. package/lib/table/pipeline/features/__test__/rowGrouping.test.js +0 -129
  198. package/lib/table/pipeline/features/__test__/singleSelect.test.d.ts +0 -1
  199. package/lib/table/pipeline/features/__test__/singleSelect.test.js +0 -201
  200. package/lib/table/pipeline/features/__test__/sort.test.d.ts +0 -1
  201. package/lib/table/pipeline/features/__test__/sort.test.js +0 -218
  202. package/lib/table/pipeline/features/__test__/tips.test.d.ts +0 -1
  203. package/lib/table/pipeline/features/__test__/tips.test.js +0 -133
  204. package/lib/table/pipeline/features/__test__/treeMode.test.d.ts +0 -1
  205. package/lib/table/pipeline/features/__test__/treeMode.test.js +0 -206
  206. package/lib/table/pipeline/features/filter/__test__/Filter.test.d.ts +0 -1
  207. package/lib/table/pipeline/features/filter/__test__/Filter.test.js +0 -36
@@ -8,8 +8,6 @@ var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
8
8
 
9
9
  var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
10
10
 
11
- var _getIterator = require("@babel/runtime-corejs3/core-js/get-iterator");
12
-
13
11
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
12
 
15
13
  Object.defineProperty(exports, "__esModule", {
@@ -23,7 +21,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
23
21
 
24
22
  var _isLeafNode = _interopRequireDefault(require("./isLeafNode"));
25
23
 
26
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof _Symbol === "undefined" || _getIteratorMethod(o) == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = _getIterator(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
24
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
27
25
 
28
26
  function _unsupportedIterableToArray(o, minLen) { var _context; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context = Object.prototype.toString.call(o)).call(_context, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
27
 
@@ -8,8 +8,6 @@ var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
8
8
 
9
9
  var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
10
10
 
11
- var _getIterator = require("@babel/runtime-corejs3/core-js/get-iterator");
12
-
13
11
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
12
 
15
13
  Object.defineProperty(exports, "__esModule", {
@@ -21,26 +19,26 @@ var _set = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable
21
19
 
22
20
  var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/map"));
23
21
 
24
- var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
25
-
26
22
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
27
23
 
24
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
25
+
28
26
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
29
27
 
30
28
  var _isLeafNode = _interopRequireDefault(require("../isLeafNode"));
31
29
 
32
30
  var _others = require("../others");
33
31
 
34
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof _Symbol === "undefined" || _getIteratorMethod(o) == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = _getIterator(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
32
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
35
33
 
36
34
  function _unsupportedIterableToArray(o, minLen) { var _context; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context = Object.prototype.toString.call(o)).call(_context, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
35
 
38
36
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
39
37
 
40
- var Wrapper = function Wrapper(input) {
38
+ var Wrapper = /*#__PURE__*/(0, _createClass2.default)(function Wrapper(input) {
41
39
  (0, _classCallCheck2.default)(this, Wrapper);
42
40
  (0, _extends2.default)(this, input);
43
- };
41
+ });
44
42
 
45
43
  var StrictTreeDataHelper = /*#__PURE__*/function () {
46
44
  function StrictTreeDataHelper(opts) {
@@ -8,8 +8,6 @@ var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
8
8
 
9
9
  var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
10
10
 
11
- var _getIterator = require("@babel/runtime-corejs3/core-js/get-iterator");
12
-
13
11
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
12
 
15
13
  Object.defineProperty(exports, "__esModule", {
@@ -25,10 +23,10 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
25
23
 
26
24
  var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
27
25
 
28
- var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
29
-
30
26
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
31
27
 
28
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
29
+
32
30
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
33
31
 
34
32
  var _isLeafNode = _interopRequireDefault(require("../isLeafNode"));
@@ -37,16 +35,16 @@ var _others = require("../others");
37
35
 
38
36
  var _console = _interopRequireDefault(require("../console"));
39
37
 
40
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof _Symbol === "undefined" || _getIteratorMethod(o) == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = _getIterator(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
38
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
41
39
 
42
40
  function _unsupportedIterableToArray(o, minLen) { var _context3; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context3 = Object.prototype.toString.call(o)).call(_context3, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
43
41
 
44
42
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
45
43
 
46
- var Wrapper = function Wrapper(input) {
44
+ var Wrapper = /*#__PURE__*/(0, _createClass2.default)(function Wrapper(input) {
47
45
  (0, _classCallCheck2.default)(this, Wrapper);
48
46
  (0, _extends2.default)(this, input);
49
- };
47
+ });
50
48
 
51
49
  var TreeDataHelper = /*#__PURE__*/function () {
52
50
  function TreeDataHelper(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/table",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "金蝶 react table 组件",
5
5
  "title": "table",
6
6
  "keywords": [
@@ -68,6 +68,7 @@
68
68
  "dependencies": {
69
69
  "@babel/runtime": "^7.10.4",
70
70
  "@babel/runtime-corejs3": "^7.11.2",
71
+ "@popperjs/core": "^2.9.1",
71
72
  "classnames": "^2.2.6",
72
73
  "core-js": "^3.16.1",
73
74
  "css-vars-ponyfill": "^2.4.3",
@@ -87,6 +88,7 @@
87
88
  "@babel/preset-react": "^7.10.4",
88
89
  "@babel/preset-typescript": "^7.10.4",
89
90
  "@commitlint/config-conventional": "^9.1.2",
91
+ "@kdcloudjs/kdesign": "^1.3.1",
90
92
  "@testing-library/react-hooks": "^7.0.2",
91
93
  "@types/classnames": "^2.2.10",
92
94
  "@types/enzyme": "^3.10.7",
@@ -164,7 +166,9 @@
164
166
  "post-loader": "^2.0.0",
165
167
  "postcss": "^7.0.32",
166
168
  "prettier": "^2.1.0",
169
+ "prism-react-renderer": "^1.3.3",
167
170
  "react": "^16.13.0",
171
+ "react-dom": "^16.13.0",
168
172
  "react-live": "^2.2.2",
169
173
  "rimraf": "^3.0.2",
170
174
  "scrollama": "^2.2.1",
@@ -209,6 +213,6 @@
209
213
  "commitizen": {
210
214
  "path": "./node_modules/cz-customizable"
211
215
  }
212
- },
216
+ },
213
217
  "license": "Apache-2.0"
214
218
  }
package/dist/kd-table.css DELETED
@@ -1,422 +0,0 @@
1
- /*!
2
- *
3
- * kd-table v0.0.1-beta.17
4
- *
5
- * Copyright 2020-present, Kingdee, Inc.
6
- * All rights reserved.
7
- *
8
- */
9
- /* ----------- color ——————---- start */
10
- /* ----------- color ——————---- end */
11
- /* ----------- font ——————---- start */
12
- /* ----------- font ——————---- end */
13
- /* ----------- zIndex ——————---- start */
14
- /*
15
- 普通组件内部自身层级应设置在0-100间
16
- */
17
- /* ----------- zIndex ——————---- end */
18
- /* ----------- transition ——————---- start */
19
- /* ----------- transition ——————---- end */
20
- /* ----------- Button ——————---- start */
21
- /* ----------- Button ——————---- end */
22
- /* ----------- Collapse ——————---- start */
23
- /* ----------- Collapse ——————---- end */
24
- /* ----------- Switch ——————---- start */
25
- /* ----------- Switch ——————---- end */
26
- /* ----------- Input ——————---- start */
27
- /* ----------- Input ——————---- end */
28
- /* ----------- InputNumber ——————---- start */
29
- /* ----------- InputNumber ——————---- end */
30
- /* ----------- checkbox ——————---- start */
31
- /* ----------- checkbox ——————---- end */
32
- /* ----------- Radio ——————---- start */
33
- /* ----------- Radio ——————---- end */
34
- /* ----------- icon ——————---- start */
35
- /* ----------- icon ——————---- end */
36
- /* ----------- Popconfirm ——————---- start */
37
- /* ----------- Popconfirm ——————---- end */
38
- /* ----------- Popover ——————---- start */
39
- /* ----------- Popover ——————---- end */
40
- /* ----------- Progress ——————---- start */
41
- /* ----------- Progress ——————---- end */
42
- /* ----------- Pagination ——————---- start */
43
- /* ----------- Pagination ——————---- end */
44
- /* ----------- Timeline ——————---- start */
45
- /* ----------- Timeline ——————---- end */
46
- /* ----------- Tabs ——————---- start */
47
- /* ----------- Tabs ——————---- end */
48
- /* ----------- Select ——————---- start */
49
- /* ----------- Select ——————---- end */
50
- /* ----------- Rate ——————---- start */
51
- /* ----------- Rate ——————---- end */
52
- /* ----------- Dropdown ——————---- start */
53
- /* ----------- Dropdown ——————---- end */
54
- /* ----------- Tooltip ——————---- start */
55
- /* ----------- Tooltip ——————---- end */
56
- /* ----------- Transfer ——————---- start */
57
- /* ----------- Transfer ——————---- end */
58
- /* ----------- Alert ——————---- start */
59
- /* ----------- Alert ——————---- end */
60
- /* ----------- Split-Panel ——————---- start */
61
- /* ----------- Split-Panel ——————---- end */
62
- /* ----------- Modal ——————---- start */
63
- /* ----------- Modal ——————---- end */
64
- /* ----------- Steps ——————---- start */
65
- /* ----------- Steps ——————---- end */
66
- /* ----------- Tag ——————---- start */
67
- /* ----------- Tag ——————---- end */
68
- @-webkit-keyframes loadingcircle {
69
- 100% {
70
- -webkit-transform: rotate(360deg);
71
- transform: rotate(360deg);
72
- }
73
- }
74
- @keyframes loadingcircle {
75
- 100% {
76
- -webkit-transform: rotate(360deg);
77
- transform: rotate(360deg);
78
- }
79
- }
80
- @-webkit-keyframes waveEffect {
81
- 100% {
82
- -webkit-box-shadow: 0 0 0 6px #5582f3;
83
- box-shadow: 0 0 0 6px #5582f3;
84
- }
85
- }
86
- @keyframes waveEffect {
87
- 100% {
88
- -webkit-box-shadow: 0 0 0 6px #5582f3;
89
- box-shadow: 0 0 0 6px #5582f3;
90
- }
91
- }
92
- @-webkit-keyframes fadeEffect {
93
- 100% {
94
- opacity: 0;
95
- }
96
- }
97
- @keyframes fadeEffect {
98
- 100% {
99
- opacity: 0;
100
- }
101
- }
102
- @-webkit-keyframes kdRadioEffect {
103
- 0% {
104
- -webkit-transform: translateY(-50%) scale(0.5);
105
- transform: translateY(-50%) scale(0.5);
106
- opacity: 0;
107
- }
108
- 100% {
109
- -webkit-transform: translateY(-50%) scale(1);
110
- transform: translateY(-50%) scale(1);
111
- opacity: 1;
112
- }
113
- }
114
- @keyframes kdRadioEffect {
115
- 0% {
116
- -webkit-transform: translateY(-50%) scale(0.5);
117
- transform: translateY(-50%) scale(0.5);
118
- opacity: 0;
119
- }
120
- 100% {
121
- -webkit-transform: translateY(-50%) scale(1);
122
- transform: translateY(-50%) scale(1);
123
- opacity: 1;
124
- }
125
- }
126
- @-webkit-keyframes kdSlideDownIn {
127
- 0% {
128
- -webkit-transform: scaleY(0.8);
129
- transform: scaleY(0.8);
130
- -webkit-transform-origin: 50% 0%;
131
- transform-origin: 50% 0%;
132
- opacity: 0;
133
- }
134
- 100% {
135
- -webkit-transform: scaleY(1);
136
- transform: scaleY(1);
137
- -webkit-transform-origin: 50% 0%;
138
- transform-origin: 50% 0%;
139
- opacity: 1;
140
- }
141
- }
142
- @keyframes kdSlideDownIn {
143
- 0% {
144
- -webkit-transform: scaleY(0.8);
145
- transform: scaleY(0.8);
146
- -webkit-transform-origin: 50% 0%;
147
- transform-origin: 50% 0%;
148
- opacity: 0;
149
- }
150
- 100% {
151
- -webkit-transform: scaleY(1);
152
- transform: scaleY(1);
153
- -webkit-transform-origin: 50% 0%;
154
- transform-origin: 50% 0%;
155
- opacity: 1;
156
- }
157
- }
158
- @-webkit-keyframes kdSlideDownOut {
159
- 0% {
160
- -webkit-transform: scaleY(1);
161
- transform: scaleY(1);
162
- -webkit-transform-origin: 50% 0%;
163
- transform-origin: 50% 0%;
164
- opacity: 1;
165
- }
166
- 100% {
167
- -webkit-transform: scaleY(0.9);
168
- transform: scaleY(0.9);
169
- -webkit-transform-origin: 50% 0%;
170
- transform-origin: 50% 0%;
171
- opacity: 0;
172
- }
173
- }
174
- @keyframes kdSlideDownOut {
175
- 0% {
176
- -webkit-transform: scaleY(1);
177
- transform: scaleY(1);
178
- -webkit-transform-origin: 50% 0%;
179
- transform-origin: 50% 0%;
180
- opacity: 1;
181
- }
182
- 100% {
183
- -webkit-transform: scaleY(0.9);
184
- transform: scaleY(0.9);
185
- -webkit-transform-origin: 50% 0%;
186
- transform-origin: 50% 0%;
187
- opacity: 0;
188
- }
189
- }
190
- @-webkit-keyframes kdSlideUpIn {
191
- 0% {
192
- -webkit-transform-origin: 50% 100%;
193
- transform-origin: 50% 100%;
194
- opacity: 0;
195
- }
196
- 5% {
197
- -webkit-transform: scaleY(0.8);
198
- transform: scaleY(0.8);
199
- }
200
- 100% {
201
- -webkit-transform: scaleY(1);
202
- transform: scaleY(1);
203
- -webkit-transform-origin: 50% 100%;
204
- transform-origin: 50% 100%;
205
- opacity: 1;
206
- }
207
- }
208
- @keyframes kdSlideUpIn {
209
- 0% {
210
- -webkit-transform-origin: 50% 100%;
211
- transform-origin: 50% 100%;
212
- opacity: 0;
213
- }
214
- 5% {
215
- -webkit-transform: scaleY(0.8);
216
- transform: scaleY(0.8);
217
- }
218
- 100% {
219
- -webkit-transform: scaleY(1);
220
- transform: scaleY(1);
221
- -webkit-transform-origin: 50% 100%;
222
- transform-origin: 50% 100%;
223
- opacity: 1;
224
- }
225
- }
226
- @-webkit-keyframes kdSlideUpOut {
227
- 0% {
228
- -webkit-transform: scaleY(1);
229
- transform: scaleY(1);
230
- -webkit-transform-origin: 50% 100%;
231
- transform-origin: 50% 100%;
232
- opacity: 1;
233
- }
234
- 100% {
235
- -webkit-transform: scaleY(0.9);
236
- transform: scaleY(0.9);
237
- -webkit-transform-origin: 50% 100%;
238
- transform-origin: 50% 100%;
239
- opacity: 0;
240
- }
241
- }
242
- @keyframes kdSlideUpOut {
243
- 0% {
244
- -webkit-transform: scaleY(1);
245
- transform: scaleY(1);
246
- -webkit-transform-origin: 50% 100%;
247
- transform-origin: 50% 100%;
248
- opacity: 1;
249
- }
250
- 100% {
251
- -webkit-transform: scaleY(0.9);
252
- transform: scaleY(0.9);
253
- -webkit-transform-origin: 50% 100%;
254
- transform-origin: 50% 100%;
255
- opacity: 0;
256
- }
257
- }
258
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
259
- /* normalize.css 和现有产品的结合版本, 根据兼容性进行了调整 */
260
- /* Document
261
- ========================================================================== */
262
- /* Sections
263
- ========================================================================== */
264
- /**
265
- * Remove the margin in all browsers.
266
- */
267
- html,
268
- body {
269
- height: 100%;
270
- padding: 0;
271
- margin: 0;
272
- font-size: 12px;
273
- }
274
- html,
275
- body,
276
- input,
277
- textarea,
278
- select,
279
- button {
280
- font-family: "Microsoft YaHei", "PingFangSC-Regular", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
281
- }
282
- body {
283
- -webkit-box-sizing: border-box;
284
- box-sizing: border-box;
285
- }
286
- /**
287
- * Remove the gray background on active links in IE 10.
288
- */
289
- a {
290
- background-color: transparent;
291
- }
292
- /* Forms
293
- ========================================================================== */
294
- /**
295
- */
296
- input {
297
- padding: 0;
298
- margin: 0;
299
- }
300
- /**
301
- * 1. Change the font styles in all browsers.
302
- * 2. Remove the margin in Firefox and Safari.
303
- */
304
- button,
305
- input,
306
- optgroup,
307
- select,
308
- textarea {
309
- margin: 0;
310
- /* 2 */
311
- }
312
- /**
313
- * Show the overflow in IE.
314
- * 1. Show the overflow in Edge.
315
- */
316
- button,
317
- input {
318
- /* 1 */
319
- overflow: visible;
320
- }
321
- /**
322
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
323
- * 1. Remove the inheritance of text transform in Firefox.
324
- */
325
- button,
326
- select {
327
- /* 1 */
328
- text-transform: none;
329
- }
330
- /**
331
- * Correct the inability to style clickable types in iOS and Safari.
332
- */
333
- button,
334
- [type="button"],
335
- [type="reset"],
336
- [type="submit"] {
337
- -webkit-appearance: button;
338
- }
339
- /**
340
- * Remove the inner border and padding in Firefox.
341
- */
342
- button::-moz-focus-inner,
343
- [type="button"]::-moz-focus-inner,
344
- [type="reset"]::-moz-focus-inner,
345
- [type="submit"]::-moz-focus-inner {
346
- border-style: none;
347
- padding: 0;
348
- }
349
- /**
350
- * Restore the focus styles unset by the previous rule.
351
- */
352
- button:-moz-focusring,
353
- [type="button"]:-moz-focusring,
354
- [type="reset"]:-moz-focusring,
355
- [type="submit"]:-moz-focusring {
356
- outline: 1px dotted ButtonText;
357
- }
358
- /**
359
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
360
- */
361
- progress {
362
- vertical-align: baseline;
363
- }
364
- /**
365
- * Remove the default vertical scrollbar in IE 10+.
366
- */
367
- textarea {
368
- overflow: auto;
369
- }
370
- /**
371
- * 1. Add the correct box sizing in IE 10.
372
- * 2. Remove the padding in IE 10.
373
- */
374
- [type="checkbox"],
375
- [type="radio"] {
376
- -webkit-box-sizing: border-box;
377
- box-sizing: border-box;
378
- /* 1 */
379
- padding: 0;
380
- /* 2 */
381
- }
382
- /**
383
- * Correct the cursor style of increment and decrement buttons in Chrome.
384
- */
385
- [type="number"]::-webkit-inner-spin-button,
386
- [type="number"]::-webkit-outer-spin-button {
387
- height: auto;
388
- }
389
- /**
390
- * 1. Correct the odd appearance in Chrome and Safari.
391
- * 2. Correct the outline style in Safari.
392
- */
393
- [type="search"] {
394
- -webkit-appearance: textfield;
395
- /* 1 */
396
- outline-offset: -2px;
397
- /* 2 */
398
- }
399
- /**
400
- * Remove the inner padding in Chrome and Safari on macOS.
401
- */
402
- [type="search"]::-webkit-search-decoration {
403
- -webkit-appearance: none;
404
- }
405
- /* Misc
406
- ========================================================================== */
407
- /**
408
- * Add the correct display in IE 10+.
409
- */
410
- template {
411
- display: none;
412
- }
413
- /**
414
- * Add the correct display in IE 10.
415
- */
416
- [hidden] {
417
- display: none;
418
- }
419
-
420
-
421
-
422
- /*# sourceMappingURL=kd-table.css.map*/
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://kdui/components/style/index.less","webpack://kdui/./components/style/core/motion/other.less","webpack://kdui/./components/style/core/motion/slide.less","webpack://kdui/./components/style/core/reset.less"],"names":[],"mappings":"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","file":"kd-table.css","sourcesContent":["/* ----------- color ——————---- start */\n/* ----------- color ——————---- end */\n/* ----------- font ——————---- start */\n/* ----------- font ——————---- end */\n/* ----------- zIndex ——————---- start */\n/*\n 普通组件内部自身层级应设置在0-100间\n*/\n/* ----------- zIndex ——————---- end */\n/* ----------- transition ——————---- start */\n/* ----------- transition ——————---- end */\n/* ----------- Button ——————---- start */\n/* ----------- Button ——————---- end */\n/* ----------- Collapse ——————---- start */\n/* ----------- Collapse ——————---- end */\n/* ----------- Switch ——————---- start */\n/* ----------- Switch ——————---- end */\n/* ----------- Input ——————---- start */\n/* ----------- Input ——————---- end */\n/* ----------- InputNumber ——————---- start */\n/* ----------- InputNumber ——————---- end */\n/* ----------- checkbox ——————---- start */\n/* ----------- checkbox ——————---- end */\n/* ----------- Radio ——————---- start */\n/* ----------- Radio ——————---- end */\n/* ----------- icon ——————---- start */\n/* ----------- icon ——————---- end */\n/* ----------- Popconfirm ——————---- start */\n/* ----------- Popconfirm ——————---- end */\n/* ----------- Popover ——————---- start */\n/* ----------- Popover ——————---- end */\n/* ----------- Progress ——————---- start */\n/* ----------- Progress ——————---- end */\n/* ----------- Pagination ——————---- start */\n/* ----------- Pagination ——————---- end */\n/* ----------- Timeline ——————---- start */\n/* ----------- Timeline ——————---- end */\n/* ----------- Tabs ——————---- start */\n/* ----------- Tabs ——————---- end */\n/* ----------- Select ——————---- start */\n/* ----------- Select ——————---- end */\n/* ----------- Rate ——————---- start */\n/* ----------- Rate ——————---- end */\n/* ----------- Dropdown ——————---- start */\n/* ----------- Dropdown ——————---- end */\n/* ----------- Tooltip ——————---- start */\n/* ----------- Tooltip ——————---- end */\n/* ----------- Transfer ——————---- start */\n/* ----------- Transfer ——————---- end */\n/* ----------- Alert ——————---- start */\n/* ----------- Alert ——————---- end */\n/* ----------- Split-Panel ——————---- start */\n/* ----------- Split-Panel ——————---- end */\n/* ----------- Modal ——————---- start */\n/* ----------- Modal ——————---- end */\n/* ----------- Steps ——————---- start */\n/* ----------- Steps ——————---- end */\n/* ----------- Tag ——————---- start */\n/* ----------- Tag ——————---- end */\n@keyframes loadingcircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes waveEffect {\n 100% {\n box-shadow: 0 0 0 6px #5582f3;\n }\n}\n@keyframes fadeEffect {\n 100% {\n opacity: 0;\n }\n}\n@keyframes kdRadioEffect {\n 0% {\n transform: translateY(-50%) scale(0.5);\n opacity: 0;\n }\n 100% {\n transform: translateY(-50%) scale(1);\n opacity: 1;\n }\n}\n@keyframes kdSlideDownIn {\n 0% {\n transform: scaleY(0.8);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 50% 0%;\n opacity: 1;\n }\n}\n@keyframes kdSlideDownOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 50% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.9);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n}\n@keyframes kdSlideUpIn {\n 0% {\n transform-origin: 50% 100%;\n opacity: 0;\n }\n 5% {\n transform: scaleY(0.8);\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 50% 100%;\n opacity: 1;\n }\n}\n@keyframes kdSlideUpOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 50% 100%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.9);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n}\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* normalize.css 和现有产品的结合版本, 根据兼容性进行了调整 */\n/* Document\n ========================================================================== */\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nhtml,\nbody {\n height: 100%;\n padding: 0;\n margin: 0;\n font-size: 12px;\n}\nhtml,\nbody,\ninput,\ntextarea,\nselect,\nbutton {\n font-family: \"Microsoft YaHei\", \"PingFangSC-Regular\", \"Helvetica Neue\", Helvetica, Arial, \"Hiragino Sans GB\", \"WenQuanYi Micro Hei\", sans-serif;\n}\nbody {\n box-sizing: border-box;\n}\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n/* Forms\n ========================================================================== */\n/**\n */\ninput {\n padding: 0;\n margin: 0;\n}\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n /* 2 */\n}\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box;\n /* 1 */\n padding: 0;\n /* 2 */\n}\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=\"search\"] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\n","@keyframes loadingcircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes waveEffect {\n 100% {\n box-shadow: 0 0 0 6px @theme-color;\n }\n}\n\n@keyframes fadeEffect {\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes kdRadioEffect {\n 0% {\n transform: translateY(-50%) scale(0.5);\n opacity: 0;\n }\n 100% {\n transform: translateY(-50%) scale(1);\n opacity: 1;\n }\n}","@keyframes kdSlideDownIn {\n 0% {\n transform: scaleY(0.8);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 50% 0%;\n opacity: 1;\n }\n}\n\n@keyframes kdSlideDownOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 50% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.9);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n}\n\n@keyframes kdSlideUpIn {\n 0% {\n transform-origin: 50% 100%;\n opacity: 0;\n }\n 5% {\n transform: scaleY(0.8);\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 50% 100%;\n opacity: 1;\n }\n}\n\n@keyframes kdSlideUpOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 50% 100%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.9);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n}\n","/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* normalize.css 和现有产品的结合版本, 根据兼容性进行了调整 */\n/* Document\n ========================================================================== */\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n html,body {\n\theight: 100%;\n\tpadding: 0;\n\tmargin: 0;\n\tfont-size:12px;\n\n}\n\nhtml,body,input, textarea, select, button{\n\tfont-family:\"Microsoft YaHei\",\"PingFangSC-Regular\",\"Helvetica Neue\", Helvetica, Arial,\"Hiragino Sans GB\",\"WenQuanYi Micro Hei\", sans-serif;\n}\n\nbody {\n\tbox-sizing: border-box;\n}\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n\n/* Forms\n ========================================================================== */\n\n/**\n */\ninput {\n padding: 0;\n margin: 0;\n}\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}"],"sourceRoot":""}