@chaoswise/ui 2.4.1 → 2.5.1

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 (223) hide show
  1. package/config/babel/index.js +1 -28
  2. package/config/swc.js +5 -0
  3. package/lib/AbreastLayout/CollapsedBtn.js +1 -1
  4. package/lib/AbreastLayout/NavTreeContainer.js +1 -1
  5. package/lib/AbreastLayout/index.js +2 -2
  6. package/lib/Ace/ace.js +2 -2
  7. package/lib/Ace/diff.js +2 -2
  8. package/lib/Ace/split.js +2 -2
  9. package/lib/AdaptiveLayout/index.js +2 -2
  10. package/lib/Alert/index.js +1 -1
  11. package/lib/AlgorithmChart/common/chart.option.js +0 -5
  12. package/lib/Anchor/index.js +3 -0
  13. package/lib/Antd/Drawer.js +2 -2
  14. package/lib/Antd3/es/cascader/index.js +0 -1
  15. package/lib/Antd3/es/message/index.js +0 -2
  16. package/lib/Antd4/message/index-copy.js +0 -2
  17. package/lib/Antd4/notification/index.js +0 -1
  18. package/lib/Antd4/statistic/utils.js +0 -1
  19. package/lib/Antd4/tabs/index.js +1 -1
  20. package/lib/Antd4/tooltip/index.js +0 -1
  21. package/lib/Antd4/tree/Tree.js +0 -1
  22. package/lib/Antd4Form/FieldList.js +2 -2
  23. package/lib/Antd4Form/FormItem.js +2 -2
  24. package/lib/Antd4Form/FormItemChildren.js +2 -2
  25. package/lib/Antd4Form/useForm.js +2 -2
  26. package/lib/AutoComplete/index.js +3 -0
  27. package/lib/Avatar/index.js +3 -0
  28. package/lib/BackTop/index.js +3 -0
  29. package/lib/Badge/index.less +5 -0
  30. package/lib/BasicLayout/Breadcrumb.js +3 -3
  31. package/lib/BasicLayout/Sider.js +5 -5
  32. package/lib/BasicLayout/index.js +2 -3
  33. package/lib/Breadcrumb/Breadcrumb.less +34 -0
  34. package/lib/Breadcrumb/index.js +2 -9
  35. package/lib/CWCascader/Cascader/index.js +2 -2
  36. package/lib/CWCascader/rc-cascader/Cascader.js +3 -3
  37. package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +2 -2
  38. package/lib/CWCascader/rc-cascader/OptionList/Column.js +5 -5
  39. package/lib/CWCascader/rc-cascader/OptionList/index.js +3 -3
  40. package/lib/CWCascader/rc-cascader/OptionList/useActive.js +1 -1
  41. package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +1 -1
  42. package/lib/CWCascader/rc-cascader/hooks/useEntities.js +3 -3
  43. package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +2 -2
  44. package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +2 -2
  45. package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
  46. package/lib/CWMessage/MessageContent/index.js +4 -4
  47. package/lib/CWMessage/index.js +3 -3
  48. package/lib/CWRadioTabs/index.js +2 -2
  49. package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +1 -1
  50. package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +2 -2
  51. package/lib/CWRangePicker/DropdownMenu/index.js +4 -4
  52. package/lib/CWRangePicker/Refresh/index.js +2 -2
  53. package/lib/CWRangePicker/index.js +4 -4
  54. package/lib/CWRangePicker/utils/index.js +2 -2
  55. package/lib/CWSelect/Tag.js +1 -1
  56. package/lib/CWSelect/antd-select.js +3 -4
  57. package/lib/CWSelect/index.js +2 -2
  58. package/lib/CWTable/CWTable.js +4 -6
  59. package/lib/CWTable/EditLine.js +4 -4
  60. package/lib/CWTable/Filter.js +1 -1
  61. package/lib/CWTable/FormTable.js +2 -2
  62. package/lib/CWTable/header.js +23 -22
  63. package/lib/CWTree/index.js +14 -10
  64. package/lib/CWTree/utils/index.js +2 -2
  65. package/lib/CWUpload/upload/DragList.js +2 -2
  66. package/lib/CWUpload/upload/Dragger.js +3 -3
  67. package/lib/CWUpload/upload/Upload.js +4 -4
  68. package/lib/CWUpload/upload/UploadList.js +28 -28
  69. package/lib/Calendar/index.js +3 -0
  70. package/lib/Card/index.js +3 -0
  71. package/lib/CardSelect/index.js +0 -1
  72. package/lib/Carousel/index.js +3 -0
  73. package/lib/ChangeIcon/index.js +1 -1
  74. package/lib/Checkbox/Checkbox.js +2 -2
  75. package/lib/Checkbox/Group.js +2 -2
  76. package/lib/Col/Collapse.less +129 -0
  77. package/lib/Col/index.js +3 -0
  78. package/lib/Collapse/index.js +1 -1
  79. package/lib/ColorPicker/index.js +4 -5
  80. package/lib/Comment/index.js +3 -0
  81. package/lib/ConfigProvider/ConfigProvider.js +2 -2
  82. package/lib/ConfigProvider/Switch.js +1 -1
  83. package/lib/CustomScrollBar/index.js +2 -2
  84. package/lib/DatePicker/DatePicker.js +1 -1
  85. package/lib/DatePicker/MonthPicker.js +1 -1
  86. package/lib/DatePicker/RangePicker.js +1 -1
  87. package/lib/DateRangePicker/components/ExtraTimeFooter.js +2 -2
  88. package/lib/Descriptions/index.js +3 -0
  89. package/lib/Divider/index.js +3 -0
  90. package/lib/Documentation/Tocify.js +2 -2
  91. package/lib/Documentation/index.js +2 -3
  92. package/lib/Drawer/Drawer.less +305 -0
  93. package/lib/Drawer/index.js +120 -0
  94. package/lib/Dropdown/Dropdown.less +124 -0
  95. package/lib/Dropdown/index.js +4 -0
  96. package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.js +2 -2
  97. package/lib/DropdownDatePicker/DropdownMenu/index.js +4 -4
  98. package/lib/DropdownDatePicker/index.js +3 -3
  99. package/lib/DropdownDatePicker/utils/index.js +2 -2
  100. package/lib/EchartsArea/index.js +2 -2
  101. package/lib/EchartsBar/index.js +2 -2
  102. package/lib/EchartsBase/index.js +2 -3
  103. package/lib/EchartsLine/index.js +2 -3
  104. package/lib/ErrorBoundary/history.js +2 -2
  105. package/lib/ErrorBoundary/index.js +2 -2
  106. package/lib/FilterDropDown/DragList.js +3 -4
  107. package/lib/FilterDropDown/index.js +1 -1
  108. package/lib/Flow/Flow.js +0 -2
  109. package/lib/Flow/commons/initCommands.js +0 -2
  110. package/lib/Flow/components/PluginWrapper.js +2 -2
  111. package/lib/Flow/layouts/callChain.js +2 -2
  112. package/lib/Flow/plugins/CommandLifeCycle.js +2 -2
  113. package/lib/Flow/plugins/InitSideBarPlugin.js +2 -2
  114. package/lib/Flow/plugins/InitToolBarPlugin.js +2 -2
  115. package/lib/Flow/shape/nodes/baseNode.js +0 -1
  116. package/lib/Form/FormItem.js +2 -2
  117. package/lib/FormItemWrapper/index.js +2 -2
  118. package/lib/Formily/FieldList/index.js +2 -2
  119. package/lib/Formily/FormItem/index.js +3 -3
  120. package/lib/Formily/FormItem/items/Password.js +2 -2
  121. package/lib/Formily/FormItem/items/Rating.js +1 -1
  122. package/lib/Formily/FormItem/items/Switch.js +1 -1
  123. package/lib/Formily/FormItem/items/Tansfer.js +1 -1
  124. package/lib/Formily/FormItem/items/TimePicker.js +1 -1
  125. package/lib/Formily/MegaLayout/index.js +2 -2
  126. package/lib/Formily/subscribeFields/index.js +2 -2
  127. package/lib/GlobalTabs/index.js +2 -2
  128. package/lib/Header/CommonDropMenu.js +2 -2
  129. package/lib/Header/CommonIcon.js +2 -2
  130. package/lib/Header/TopNavigationMenu/index.js +2 -2
  131. package/lib/Header/UserSetting/index.js +2 -2
  132. package/lib/Header/UserSetting/utils.js +2 -2
  133. package/lib/Header/index.js +2 -2
  134. package/lib/Icon/index.js +3 -0
  135. package/lib/IconSelect/components/CustomImg/index.js +0 -1
  136. package/lib/IconSelect/index.js +1 -1
  137. package/lib/Input/InputComponent.js +2 -2
  138. package/lib/IntersectionInput/index.js +2 -2
  139. package/lib/Joyride/List.js +2 -2
  140. package/lib/Joyride/index.js +3 -3
  141. package/lib/Layout/Layout.less +6 -0
  142. package/lib/Layout/index.js +4 -0
  143. package/lib/LayoutBreadcrumb/index.js +3 -3
  144. package/lib/LazyLoadingTreeSelect/index.js +2 -2
  145. package/lib/List/index.js +3 -0
  146. package/lib/LocaleProvider/index.js +3 -0
  147. package/lib/Mention/index.js +3 -0
  148. package/lib/Mentions/index.js +3 -0
  149. package/lib/Menu/menu/MenuItem.js +2 -3
  150. package/lib/Menu/menu/SubMenu.js +2 -2
  151. package/lib/Menu/menu/index.js +2 -2
  152. package/lib/Modal/Modal.js +2 -2
  153. package/lib/Modal/custom-backup/entiretyDrag.js +2 -2
  154. package/lib/Modal/index.js +3 -4
  155. package/lib/ModuleFederation/ErrorBoundary/index.js +2 -2
  156. package/lib/ModuleFederation/index.js +1 -1
  157. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
  158. package/lib/PageHeader/index.js +3 -0
  159. package/lib/Pagination/index.js +2 -2
  160. package/lib/PolymerizationSearch/index.js +2 -2
  161. package/lib/Popover/index.js +3 -0
  162. package/lib/Progress/index.js +1 -1
  163. package/lib/QuickRangePicker/index.js +5 -5
  164. package/lib/QuickTransfer/Drag.js +0 -1
  165. package/lib/QuickTransfer/DragList.js +1 -1
  166. package/lib/QuickTransfer/NotDragList.js +1 -1
  167. package/lib/QuickTransfer/index.js +2 -2
  168. package/lib/QuickTransfer/utils.js +2 -4
  169. package/lib/Radio/Group.js +2 -2
  170. package/lib/Radio/Radio.js +2 -2
  171. package/lib/RangePicker/components/ExtraTimeFooter.js +3 -3
  172. package/lib/Rate/index.js +3 -0
  173. package/lib/ReactSelect/CustomArrow.js +1 -1
  174. package/lib/ReactSelect/TagMore.js +1 -1
  175. package/lib/ReactSelect/customStyles.js +2 -2
  176. package/lib/ReactSelect/index.js +2 -2
  177. package/lib/Result/index.js +3 -0
  178. package/lib/Row/index.js +3 -0
  179. package/lib/SearchBar/index.js +6 -6
  180. package/lib/Select/TreeSelect.less +10 -0
  181. package/lib/Select/index.js +4 -0
  182. package/lib/SelectBackup/index.js +2 -2
  183. package/lib/SelectBackup/select/index.js +0 -1
  184. package/lib/SiderMenu/Item.js +2 -2
  185. package/lib/SiderMenu/index.js +3 -3
  186. package/lib/SimplePagination/index.js +3 -3
  187. package/lib/SingleSpa/import-html/process-tpl.js +0 -1
  188. package/lib/SingleSpa/index.js +2 -2
  189. package/lib/SingleSpa/singleSpa/single-spa.dev.js +2 -3
  190. package/lib/Skeleton/index.js +3 -0
  191. package/lib/Spin/Spin.less +16 -0
  192. package/lib/Spin/index.js +4 -0
  193. package/lib/Statistic/index.js +3 -0
  194. package/lib/Steps/Steps.less +502 -0
  195. package/lib/Steps/index.js +4 -0
  196. package/lib/Switch/Switch.less +62 -0
  197. package/lib/Switch/index.js +4 -0
  198. package/lib/Table/Table.less +306 -0
  199. package/lib/Table/index.js +4 -0
  200. package/lib/Tabs/index.js +2 -2
  201. package/lib/Tabs/index.less +3 -0
  202. package/lib/ThemeProvider/main.js +2 -2
  203. package/lib/TimePicker/index.js +3 -2
  204. package/lib/Transfer/index.js +3 -0
  205. package/lib/Tree/TreeSelect.less +10 -0
  206. package/lib/Tree/index.js +4 -0
  207. package/lib/TreeList/index.js +2 -2
  208. package/lib/TreeSelect/TreeSelect.less +10 -0
  209. package/lib/TreeSelect/index.js +4 -0
  210. package/lib/TreeSelect111/index.js +2 -2
  211. package/lib/TreeSelect111/utils/index.js +2 -2
  212. package/lib/Typography/index.js +3 -0
  213. package/lib/WangEditor/release/wangEditor.js +0 -6
  214. package/lib/WangEditor/wangEditor.js +0 -3
  215. package/lib/Watermark/index.js +2 -2
  216. package/lib/index.js +145 -0
  217. package/lib/message/index.js +3 -5
  218. package/lib/noticeManager/globalState.js +2 -2
  219. package/lib/portalNoticeManager/usePortalDispatchNotice.js +2 -2
  220. package/lib/useLocale/index.js +2 -2
  221. package/lib/version/index.js +3 -0
  222. package/package.json +5 -2
  223. /package/config/babel/{antdComs.js → antdComs-nouse.js} +0 -0
@@ -0,0 +1,129 @@
1
+ @collapse-prefix-cls: ~'@{ant-prefix}-collapse';
2
+
3
+ .@{collapse-prefix-cls} {
4
+
5
+ background-color: @collapse-header-bg;
6
+ border: @border-width-base @border-style-base @border-color-base;
7
+ border-bottom: 0;
8
+ border-radius: @collapse-panel-border-radius;
9
+
10
+ & > &-item {
11
+ border-bottom: @border-width-base @border-style-base @border-color-base;
12
+
13
+ &:last-child {
14
+ &,
15
+ & > .@{collapse-prefix-cls}-header {
16
+ border-radius: 0 0 @collapse-panel-border-radius @collapse-panel-border-radius;
17
+ }
18
+ }
19
+
20
+ > .@{collapse-prefix-cls}-header {
21
+ position: relative;
22
+ padding: @collapse-header-padding;
23
+ padding-left: @collapse-header-padding-extra;
24
+ color: @heading-color;
25
+ line-height: 22px;
26
+ cursor: pointer;
27
+ transition: all 0.3s;
28
+
29
+ .@{collapse-prefix-cls}-arrow {
30
+
31
+ position: absolute;
32
+ top: 50%;
33
+ left: @padding-md + 8px; // ui规范
34
+ display: inline-block;
35
+ font-size: @font-size-sm;
36
+ transform: translateY(-50%);
37
+
38
+ & svg {
39
+ transition: transform 0.24s;
40
+ }
41
+ }
42
+
43
+ .@{collapse-prefix-cls}-extra {
44
+ float: right;
45
+ }
46
+
47
+ &:focus {
48
+ outline: none;
49
+ }
50
+ }
51
+
52
+ &.@{collapse-prefix-cls}-no-arrow {
53
+ > .@{collapse-prefix-cls}-header {
54
+ padding-left: 12px;
55
+ }
56
+ }
57
+ }
58
+
59
+ // Expand Icon right
60
+ &-icon-position-right {
61
+ & > .@{collapse-prefix-cls}-item {
62
+ > .@{collapse-prefix-cls}-header {
63
+ padding: @collapse-header-padding;
64
+ padding-right: @collapse-header-padding-extra;
65
+
66
+ .@{collapse-prefix-cls}-arrow {
67
+ right: @padding-md + 8px; // ui规范
68
+ left: auto;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ &-anim-active {
75
+ transition: height 0.2s @ease-out;
76
+ }
77
+
78
+ &-content {
79
+ overflow: hidden;
80
+ color: @text-color;
81
+ background-color: @collapse-content-bg;
82
+ border-top: @border-width-base @border-style-base @border-color-base;
83
+
84
+ & > &-box {
85
+ padding: @collapse-content-padding;
86
+ }
87
+
88
+ &-inactive {
89
+ display: none;
90
+ }
91
+ }
92
+
93
+ &-item:last-child {
94
+ > .@{collapse-prefix-cls}-content {
95
+ border-radius: 0 0 @collapse-panel-border-radius @collapse-panel-border-radius;
96
+ }
97
+ }
98
+
99
+ &-borderless {
100
+ background-color: @collapse-header-bg;
101
+ border: 0;
102
+ }
103
+
104
+ &-borderless > &-item {
105
+ border-bottom: @border-width-base @border-style-base @border-color-base;
106
+ }
107
+
108
+ &-borderless > &-item:last-child,
109
+ &-borderless > &-item:last-child &-header {
110
+ border-radius: 0;
111
+ }
112
+
113
+ &-borderless > &-item > &-content {
114
+ background-color: transparent;
115
+ border-top: 0;
116
+ }
117
+
118
+ &-borderless > &-item > &-content > &-content-box {
119
+ padding-top: 4px;
120
+ }
121
+
122
+ & &-item-disabled > &-header {
123
+ &,
124
+ & > .arrow {
125
+ color: @disabled-color;
126
+ cursor: not-allowed;
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,3 @@
1
+ import "antd/es/col/style";
2
+ import _Col from "antd/es/col";
3
+ export default _Col;
@@ -1,6 +1,6 @@
1
1
  import "antd/es/collapse/style";
2
2
  import _Collapse from "antd/es/collapse";
3
- import _Icon from "@chaoswise/ui/lib/Antd/Icon";
3
+ import _Icon from "@chaoswise/ui/lib/Icon";
4
4
  var _excluded = ["size", "expandIcon", "bordered", "className", "expandIconPosition", "ghost", "isHasBackground"];
5
5
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
6
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -1,9 +1,9 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- import _Dropdown from "@chaoswise/ui/lib/Antd/Dropdown";
2
+ import _Dropdown from "@chaoswise/ui/lib/Dropdown";
3
3
  import "@chaoswise/ui/lib/Button/index.less";
4
4
  import _Button from "@chaoswise/ui/lib/Button";
5
5
  import _Space from "@chaoswise/ui/lib/Space";
6
- import _Icon from "@chaoswise/ui/lib/Antd/Icon";
6
+ import _Icon from "@chaoswise/ui/lib/Icon";
7
7
  import "@chaoswise/ui/lib/Input/index.less";
8
8
  import _Input from "@chaoswise/ui/lib/Input";
9
9
  import _useLocale2 from "@chaoswise/ui/lib/useLocale";
@@ -12,8 +12,8 @@ import _Tabs from "@chaoswise/ui/lib/Tabs";
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
17
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
18
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
19
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(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); }
@@ -257,7 +257,6 @@ var ColorPicker = function ColorPicker(_ref) {
257
257
  ColorPicker.defaultProps = {
258
258
  showGradient: false // 是否显示渐变tab
259
259
  };
260
-
261
260
  ColorPicker.propTypes = {
262
261
  defaultValue: PropTypes.shape({
263
262
  color: PropTypes.string,
@@ -0,0 +1,3 @@
1
+ import "antd/es/comment/style";
2
+ import _Comment from "antd/es/comment";
3
+ export default _Comment;
@@ -6,8 +6,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
13
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(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); }
@@ -1,4 +1,4 @@
1
- import _Select from "@chaoswise/ui/lib/Antd/Select";
1
+ import _Select from "@chaoswise/ui/lib/Select";
2
2
  import React from 'react';
3
3
  import useLocale from './useLocale';
4
4
  var LANG_LIST = [{
@@ -6,8 +6,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
11
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
12
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
13
  import React, { useRef } from 'react';
@@ -1,4 +1,4 @@
1
- import _Icon from "@chaoswise/ui/lib/Antd/Icon";
1
+ import _Icon from "@chaoswise/ui/lib/Icon";
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  import DatePicker from '../Antd4/date-picker';
4
4
 
@@ -1,4 +1,4 @@
1
- import _Icon from "@chaoswise/ui/lib/Antd/Icon";
1
+ import _Icon from "@chaoswise/ui/lib/Icon";
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  import React, { forwardRef } from 'react';
4
4
  import DatePicker from '../Antd4/date-picker';
@@ -1,4 +1,4 @@
1
- import _Icon from "@chaoswise/ui/lib/Antd/Icon";
1
+ import _Icon from "@chaoswise/ui/lib/Icon";
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  import React, { forwardRef } from 'react';
4
4
  import DatePicker from '../Antd4/date-picker';
@@ -5,8 +5,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
10
  import React from 'react';
11
11
  import moment from 'moment';
12
12
  export default function ExtraTimeFooter(_ref) {
@@ -0,0 +1,3 @@
1
+ import "antd/es/descriptions/style";
2
+ import _Descriptions from "antd/es/descriptions";
3
+ export default _Descriptions;
@@ -0,0 +1,3 @@
1
+ import "antd/es/divider/style";
2
+ import _Divider from "antd/es/divider";
3
+ export default _Divider;
@@ -4,8 +4,8 @@ import _Anchor from "antd/es/anchor";
4
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
5
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
9
  import React from 'react';
10
10
  import { last } from 'lodash-es';
11
11
  var Link = _Anchor.Link;
@@ -4,8 +4,8 @@ import _AbreastLayout from "@chaoswise/ui/lib/AbreastLayout";
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(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); }
@@ -102,7 +102,6 @@ var Documentation = function Documentation(_ref) {
102
102
  // } catch { }
103
103
  // }
104
104
  };
105
-
106
105
  return /*#__PURE__*/React.createElement("div", {
107
106
  className: classNames('cw-documentation', className),
108
107
  style: _objectSpread({
@@ -0,0 +1,305 @@
1
+ @dawer-prefix-cls: ~'@{ant-prefix}-drawer';
2
+
3
+ @drawer-prefix-cls: @dawer-prefix-cls;
4
+
5
+ .@{drawer-prefix-cls} {
6
+ position: fixed;
7
+ z-index: @zindex-modal;
8
+ width: 0%;
9
+ height: 100%;
10
+ transition: transform @animation-duration-slow @ease-base-out,
11
+ height 0s ease @animation-duration-slow, width 0s ease @animation-duration-slow;
12
+
13
+ >* {
14
+ transition: transform @animation-duration-slow @ease-base-out,
15
+ box-shadow @animation-duration-slow @ease-base-out;
16
+ }
17
+
18
+ &-content-wrapper {
19
+ position: absolute;
20
+ overflow: visible; // UI规范内容区滚动
21
+ }
22
+
23
+ .@{drawer-prefix-cls}-content {
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+
28
+ &-left,
29
+ &-right {
30
+ top: 0;
31
+ width: 0%;
32
+ height: 100%;
33
+
34
+ .@{drawer-prefix-cls}-content-wrapper {
35
+ height: 100%;
36
+ }
37
+
38
+ &.@{drawer-prefix-cls}-open {
39
+ width: 100%;
40
+ transition: transform @animation-duration-slow @ease-base-out;
41
+ }
42
+
43
+ &.@{drawer-prefix-cls}-open.no-mask {
44
+ width: 0%;
45
+ }
46
+ }
47
+
48
+ &-left {
49
+ &.@{drawer-prefix-cls}-open {
50
+ .@{drawer-prefix-cls}-content-wrapper {
51
+ box-shadow: @shadow-1-right;
52
+ }
53
+ }
54
+ }
55
+
56
+ &-right {
57
+ right: 0;
58
+
59
+ .@{drawer-prefix-cls} {
60
+ &-content-wrapper {
61
+ right: 0;
62
+ }
63
+ }
64
+
65
+ &.@{drawer-prefix-cls}-open {
66
+ .@{drawer-prefix-cls}-content-wrapper {
67
+ box-shadow: @shadow-1-left;
68
+ }
69
+
70
+ // https://github.com/ant-design/ant-design/issues/18607, Avoid edge alignment bug.
71
+ &.no-mask {
72
+ right: 1px;
73
+ transform: translateX(1px);
74
+ }
75
+ }
76
+ }
77
+
78
+ &-top,
79
+ &-bottom {
80
+ left: 0;
81
+ width: 100%;
82
+ height: 0%;
83
+
84
+ .@{drawer-prefix-cls}-content-wrapper {
85
+ width: 100%;
86
+ }
87
+
88
+ &.@{drawer-prefix-cls}-open {
89
+ height: 100%;
90
+ transition: transform @animation-duration-slow @ease-base-out;
91
+ }
92
+
93
+ &.@{drawer-prefix-cls}-open.no-mask {
94
+ height: 0%;
95
+ }
96
+ }
97
+
98
+ &-top {
99
+ top: 0;
100
+
101
+ &.@{drawer-prefix-cls}-open {
102
+ .@{drawer-prefix-cls}-content-wrapper {
103
+ box-shadow: @shadow-1-down;
104
+ }
105
+ }
106
+ }
107
+
108
+ &-bottom {
109
+ bottom: 0;
110
+
111
+ .@{drawer-prefix-cls} {
112
+ &-content-wrapper {
113
+ bottom: 0;
114
+ }
115
+ }
116
+
117
+ &.@{drawer-prefix-cls}-open {
118
+ .@{drawer-prefix-cls}-content-wrapper {
119
+ box-shadow: @shadow-1-up;
120
+ }
121
+
122
+ &.no-mask {
123
+ bottom: 1px;
124
+ transform: translateY(1px);
125
+ }
126
+ }
127
+ }
128
+
129
+ &.@{drawer-prefix-cls}-open {
130
+ .@{drawer-prefix-cls} {
131
+ &-mask {
132
+ height: 100%;
133
+ opacity: 1;
134
+ transition: none;
135
+ animation: antdDrawerFadeIn @animation-duration-slow @ease-base-out;
136
+ }
137
+ }
138
+ }
139
+
140
+ &-title {
141
+ margin: 0;
142
+ color: @heading-color;
143
+ font-weight: 500;
144
+ font-size: 16px; // UI规范
145
+ line-height: 24px;
146
+ }
147
+
148
+ &-content {
149
+ position: relative;
150
+ z-index: 1;
151
+ overflow: visible; // UI规范 内容区域滚动
152
+ background-color: @component-background;
153
+ background-clip: padding-box;
154
+ border: 0;
155
+ }
156
+
157
+ &-close {
158
+ position: absolute;
159
+ top: 0;
160
+ right: 24px; // UI规范
161
+ z-index: @zindex-popup-close;
162
+ display: block;
163
+ width: 16px; // UI规范
164
+ height: 51px; // UI规范
165
+ padding: 0;
166
+ color: @text-color;
167
+ font-weight: 700;
168
+ font-size: 16px; // UI规范
169
+ font-style: normal;
170
+ line-height: 51px; // UI规范
171
+ text-align: center;
172
+ text-transform: none;
173
+ text-decoration: none;
174
+ background: transparent;
175
+ border: 0;
176
+ outline: 0;
177
+ cursor: pointer;
178
+ transition: color @animation-duration-slow;
179
+ text-rendering: auto;
180
+
181
+ &:focus,
182
+ &:hover {
183
+ color: @primary-5;
184
+ text-decoration: none;
185
+ }
186
+ }
187
+
188
+ &-header {
189
+ position: relative;
190
+ padding: @drawer-header-padding;
191
+ color: @text-color;
192
+ background: @component-background;
193
+ border-bottom: @border-width-base @border-style-base @border-color-split; // 符合UI规范
194
+ border-radius: @border-radius-base @border-radius-base 0 0;
195
+ }
196
+
197
+ &-header-no-title {
198
+ color: @text-color;
199
+ background: @component-background;
200
+ }
201
+
202
+ &-body {
203
+ padding: @drawer-body-padding;
204
+ font-size: @font-size-base;
205
+ line-height: @line-height-base;
206
+ word-wrap: break-word;
207
+
208
+ .cw-drawer-footer {
209
+ position: absolute;
210
+ right: 0;
211
+ bottom: 0;
212
+ width: 100%;
213
+ border-top: @border-width-base @border-style-base @border-color-split;
214
+ padding: 12px 24px;
215
+ background: @component-background;
216
+ display: flex;
217
+ align-items: center;
218
+ z-index: 10;
219
+ }
220
+ }
221
+
222
+ &-wrapper-body {
223
+ height: 100%;
224
+ overflow: visible; // UI规范内容区滚动
225
+ }
226
+
227
+ &-mask {
228
+ position: absolute;
229
+ top: 0;
230
+ left: 0;
231
+ width: 100%;
232
+ height: 0;
233
+ background-color: @modal-mask-bg;
234
+ opacity: 0;
235
+ filter: ~'alpha(opacity=45)';
236
+ transition: opacity @animation-duration-slow linear, height 0s ease @animation-duration-slow;
237
+ }
238
+
239
+ &-open {
240
+ &-content {
241
+ box-shadow: @shadow-2;
242
+ }
243
+ }
244
+
245
+ // UIUE规范
246
+ &-header {
247
+ .cw-drawer-header {
248
+ display: flex;
249
+ position: relative;
250
+ height: 51px;
251
+ align-items: center;
252
+ justify-content: flex-end;
253
+
254
+ .cw-drawer-title {
255
+ margin-right: 16px;
256
+ }
257
+
258
+ .cw-drawer-extra {
259
+ display: flex;
260
+ flex: 1;
261
+ margin-right: 32px;
262
+
263
+ .cw-drawer-extra-left {
264
+ display: flex;
265
+ flex: 1;
266
+ align-items: center;
267
+ }
268
+
269
+ .cw-drawer-extra-right {
270
+ display: flex;
271
+ align-items: center;
272
+ }
273
+ }
274
+
275
+ .cw-drawer-extra-un-closable {
276
+ margin-right: 0;
277
+ }
278
+ }
279
+ }
280
+
281
+ // 修复width设置百分比定位元素存在问题
282
+ &:not(&-open) {
283
+ .@{drawer-prefix-cls}-header {
284
+ .cw-drawer-header {
285
+ display: none;
286
+ }
287
+ }
288
+
289
+ .@{drawer-prefix-cls}-body {
290
+ .cw-drawer-footer {
291
+ display: none;
292
+ }
293
+ }
294
+ }
295
+ }
296
+
297
+ @keyframes antdDrawerFadeIn {
298
+ 0% {
299
+ opacity: 0;
300
+ }
301
+
302
+ 100% {
303
+ opacity: 1;
304
+ }
305
+ }