@chaoswise/ui 3.1.4 → 3.1.6

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 (234) hide show
  1. package/lib/AbreastLayout/index.js +2 -2
  2. package/lib/AdaptiveLayout/index.js +2 -2
  3. package/lib/Alert/index.js +2 -2
  4. package/lib/Alert/index.style.js +2 -0
  5. package/lib/Antd5/alert/Alert.js +2 -2
  6. package/lib/Antd5/avatar/avatar.js +2 -2
  7. package/lib/Antd5/badge/ScrollNumber.js +2 -2
  8. package/lib/Antd5/badge/index.js +2 -2
  9. package/lib/Antd5/breadcrumb/Breadcrumb.js +2 -2
  10. package/lib/Antd5/breadcrumb/BreadcrumbItem.js +2 -2
  11. package/lib/Antd5/breadcrumb/useItemRender.js +2 -2
  12. package/lib/Antd5/breadcrumb/useItems.js +2 -2
  13. package/lib/Antd5/button/button-group.js +2 -2
  14. package/lib/Antd5/button/button.js +2 -2
  15. package/lib/Antd5/card/Card.js +2 -2
  16. package/lib/Antd5/card/Grid.js +2 -2
  17. package/lib/Antd5/card/Meta.js +2 -2
  18. package/lib/Antd5/carousel/index.js +2 -2
  19. package/lib/Antd5/cascader/index.js +2 -2
  20. package/lib/Antd5/checkbox/Checkbox.js +2 -2
  21. package/lib/Antd5/checkbox/Group.js +2 -2
  22. package/lib/Antd5/color-picker/ColorPicker.js +2 -2
  23. package/lib/Antd5/color-picker/components/ColorSlider.js +2 -2
  24. package/lib/Antd5/color-picker/components/ColorTrigger.js +2 -2
  25. package/lib/Antd5/color-picker/components/PanelPicker/index.js +2 -2
  26. package/lib/Antd5/config-provider/index.js +2 -2
  27. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +2 -2
  28. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +2 -2
  29. package/lib/Antd5/descriptions/hooks/useItems.js +2 -2
  30. package/lib/Antd5/descriptions/hooks/useRow.js +2 -2
  31. package/lib/Antd5/descriptions/index.js +2 -2
  32. package/lib/Antd5/divider/index.js +2 -2
  33. package/lib/Antd5/drawer/index.js +2 -2
  34. package/lib/Antd5/dropdown/dropdown-button.js +2 -2
  35. package/lib/Antd5/empty/index.js +2 -2
  36. package/lib/Antd5/flex/index.js +2 -2
  37. package/lib/Antd5/float-button/BackTop.js +2 -2
  38. package/lib/Antd5/float-button/FloatButton.js +2 -2
  39. package/lib/Antd5/float-button/FloatButtonGroup.js +2 -2
  40. package/lib/Antd5/float-button/PurePanel.js +2 -2
  41. package/lib/Antd5/form/Form.js +2 -2
  42. package/lib/Antd5/form/FormItem/ItemHolder.js +2 -2
  43. package/lib/Antd5/form/FormItemInput.js +2 -2
  44. package/lib/Antd5/form/FormItemLabel.js +2 -2
  45. package/lib/Antd5/form/FormList.js +2 -2
  46. package/lib/Antd5/grid/col.js +2 -2
  47. package/lib/Antd5/grid/row.js +2 -2
  48. package/lib/Antd5/image/PreviewGroup.js +2 -2
  49. package/lib/Antd5/image/index.js +2 -2
  50. package/lib/Antd5/input/Input.js +2 -2
  51. package/lib/Antd5/input/OTP/OTPInput.js +2 -2
  52. package/lib/Antd5/input/OTP/index.js +2 -2
  53. package/lib/Antd5/input/Password.js +2 -2
  54. package/lib/Antd5/input/Search.js +2 -2
  55. package/lib/Antd5/input/TextArea.js +2 -2
  56. package/lib/Antd5/input-number/index.js +2 -2
  57. package/lib/Antd5/layout/Sider.js +2 -2
  58. package/lib/Antd5/layout/layout.js +2 -2
  59. package/lib/Antd5/list/Item.js +2 -2
  60. package/lib/Antd5/list/index.js +2 -2
  61. package/lib/Antd5/mentions/index.js +2 -2
  62. package/lib/Antd5/menu/MenuDivider.js +2 -2
  63. package/lib/Antd5/menu/OverrideContext.js +2 -2
  64. package/lib/Antd5/menu/menu.js +2 -2
  65. package/lib/Antd5/message/PurePanel.js +2 -2
  66. package/lib/Antd5/message/useMessage.js +2 -2
  67. package/lib/Antd5/modal/ConfirmDialog.js +2 -2
  68. package/lib/Antd5/modal/Modal.js +2 -2
  69. package/lib/Antd5/modal/PurePanel.js +2 -2
  70. package/lib/Antd5/modal/useModal/HookModal.js +2 -2
  71. package/lib/Antd5/notification/PurePanel.js +2 -2
  72. package/lib/Antd5/notification/useNotification.js +2 -2
  73. package/lib/Antd5/pagination/Pagination.js +2 -2
  74. package/lib/Antd5/popconfirm/PurePanel.js +2 -2
  75. package/lib/Antd5/popconfirm/index.js +2 -2
  76. package/lib/Antd5/popover/PurePanel.js +2 -2
  77. package/lib/Antd5/popover/index.js +2 -2
  78. package/lib/Antd5/progress/Line.js +2 -2
  79. package/lib/Antd5/progress/progress.js +2 -2
  80. package/lib/Antd5/qr-code/index.js +2 -2
  81. package/lib/Antd5/radio/radio.js +2 -2
  82. package/lib/Antd5/radio/radioButton.js +2 -2
  83. package/lib/Antd5/rate/index.js +2 -2
  84. package/lib/Antd5/segmented/index.js +2 -2
  85. package/lib/Antd5/select/index.js +2 -2
  86. package/lib/Antd5/slider/index.js +2 -2
  87. package/lib/Antd5/space/Compact.js +2 -2
  88. package/lib/Antd5/space/index.js +2 -2
  89. package/lib/Antd5/spin/index.js +2 -2
  90. package/lib/Antd5/splitter/hooks/useItems.js +2 -2
  91. package/lib/Antd5/splitter/hooks/useResize.js +2 -2
  92. package/lib/Antd5/statistic/Countdown.js +2 -2
  93. package/lib/Antd5/statistic/Statistic.js +2 -2
  94. package/lib/Antd5/steps/index.js +2 -2
  95. package/lib/Antd5/switch/index.js +2 -2
  96. package/lib/Antd5/table/hooks/usePagination.js +2 -2
  97. package/lib/Antd5/tabs/hooks/useLegacyItems.js +2 -2
  98. package/lib/Antd5/tabs/index.js +2 -2
  99. package/lib/Antd5/tag/CheckableTag.js +2 -2
  100. package/lib/Antd5/tag/index.js +2 -2
  101. package/lib/Antd5/theme/useToken.js +2 -2
  102. package/lib/Antd5/theme/util/alias.js +2 -2
  103. package/lib/Antd5/time-picker/index.js +2 -2
  104. package/lib/Antd5/timeline/Timeline.js +2 -2
  105. package/lib/Antd5/timeline/TimelineItem.js +2 -2
  106. package/lib/Antd5/timeline/TimelineItemList.js +2 -2
  107. package/lib/Antd5/tooltip/index.js +2 -2
  108. package/lib/Antd5/tour/PurePanel.js +2 -2
  109. package/lib/Antd5/tour/index.js +2 -2
  110. package/lib/Antd5/tree/DirectoryTree.js +2 -2
  111. package/lib/Antd5/tree-select/index.js +2 -2
  112. package/lib/Antd5/typography/Base/index.js +2 -2
  113. package/lib/Antd5/typography/Link.js +2 -2
  114. package/lib/Antd5/typography/Text.js +2 -2
  115. package/lib/Antd5/typography/Title.js +2 -2
  116. package/lib/Antd5/typography/Typography.js +2 -2
  117. package/lib/Antd5/upload/Dragger.js +2 -2
  118. package/lib/Badge/index.style.js +9 -7
  119. package/lib/BasicLayout/Breadcrumb.js +5 -6
  120. package/lib/BasicLayout/Footer.js +5 -7
  121. package/lib/BasicLayout/Sider.js +4 -4
  122. package/lib/BasicLayout/index.js +2 -2
  123. package/lib/Button/index.js +2 -2
  124. package/lib/Button/index.style.js +3 -1
  125. package/lib/CWCascader/Cascader/index.js +3 -3
  126. package/lib/CWCascader/rc-cascader/Cascader.js +2 -2
  127. package/lib/CWMessage/index.js +2 -2
  128. package/lib/CWRadioTabs/index.js +2 -2
  129. package/lib/CWRangePicker/DropdownMenu/index.js +2 -2
  130. package/lib/CWRangePicker/Refresh/index.js +2 -2
  131. package/lib/CWRangePicker/index.js +2 -2
  132. package/lib/CWSelect/DragTag.js +48 -0
  133. package/lib/CWSelect/Tag.js +43 -0
  134. package/lib/CWSelect/index.js +323 -9
  135. package/lib/CWSelect/index.style.js +62 -10
  136. package/lib/CWTable/CWTable.js +2 -2
  137. package/lib/CWTable/header.js +2 -2
  138. package/lib/CWTable/index.style.js +2 -0
  139. package/lib/CWTree/index.js +2 -2
  140. package/lib/CardSelect/index.js +2 -2
  141. package/lib/CardSelect/index.style.js +3 -1
  142. package/lib/Collapse/index.js +2 -2
  143. package/lib/Collapse/index.style.js +2 -0
  144. package/lib/ConfigProvider/ConfigProvider.js +2 -2
  145. package/lib/ConfigProvider/theme/common.js +4 -2
  146. package/lib/ConfigProvider/theme/default.js +2 -1
  147. package/lib/ConfigProvider/theme/utils.js +2 -2
  148. package/lib/CustomScrollBar/index.js +2 -2
  149. package/lib/DataView/index.style.js +2 -0
  150. package/lib/Drawer/index.js +2 -2
  151. package/lib/Drawer/index.style.js +3 -1
  152. package/lib/Dropdown/DropdownButton.js +2 -2
  153. package/lib/Dropdown/index.js +2 -2
  154. package/lib/Dropdown/index.style.js +2 -0
  155. package/lib/EchartsArea/index.js +2 -2
  156. package/lib/EchartsBar/index.js +2 -2
  157. package/lib/EchartsBarRow/index.js +2 -2
  158. package/lib/EchartsBase/index.js +2 -2
  159. package/lib/EchartsLine/index.js +2 -2
  160. package/lib/EchartsPie/index.js +2 -2
  161. package/lib/EchartsRing/index.js +2 -2
  162. package/lib/Empty/index.js +2 -2
  163. package/lib/Empty/index.style.js +2 -0
  164. package/lib/Flow/BasicLayout/Chain.js +2 -2
  165. package/lib/Flow/Flow.js +2 -2
  166. package/lib/Form/FormItem.js +2 -2
  167. package/lib/Form/index.js +2 -2
  168. package/lib/Form/index.style.js +2 -0
  169. package/lib/FormItemWrapper/index.js +2 -2
  170. package/lib/GlobalTabs/index.js +2 -2
  171. package/lib/GlobalTabs/index.style.js +3 -1
  172. package/lib/Header/CommonDropMenu.js +2 -2
  173. package/lib/Header/LocaleSwitcher.js +2 -2
  174. package/lib/Header/Message/index.js +2 -2
  175. package/lib/Icon/index.js +2 -2
  176. package/lib/Input/InputComponent.js +2 -2
  177. package/lib/Input/index.style.js +2 -0
  178. package/lib/InputNumber/index.js +2 -2
  179. package/lib/Joyride/index.js +2 -2
  180. package/lib/LayoutBreadcrumb/index.js +2 -2
  181. package/lib/LayoutWrapper/Footer.js +2 -2
  182. package/lib/LayoutWrapper/Header.js +2 -2
  183. package/lib/Modal/Modal.js +2 -2
  184. package/lib/Modal/index.js +2 -2
  185. package/lib/Modal/index.style.js +2 -0
  186. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +2 -2
  187. package/lib/ModuleTitle/index.js +2 -2
  188. package/lib/Pagination/index.js +3 -4
  189. package/lib/Pagination/index.style.js +3 -1
  190. package/lib/QuickRangePicker/index.js +2 -2
  191. package/lib/QuickTransfer/index.js +2 -2
  192. package/lib/RangePicker/index.js +2 -2
  193. package/lib/ScrollLoad/index.js +2 -2
  194. package/lib/SearchBar/index.js +2 -2
  195. package/lib/SiderMenu/index.js +2 -2
  196. package/lib/SimpleCard/index.js +2 -2
  197. package/lib/SimplePagination/index.js +2 -0
  198. package/lib/SimplePagination/index.style.js +2 -1
  199. package/lib/SingleSpa/index.js +2 -2
  200. package/lib/Slider/index.js +2 -2
  201. package/lib/Tabs/index.js +2 -2
  202. package/lib/Tag/CheckableTag.js +2 -2
  203. package/lib/Tag/index.js +2 -2
  204. package/lib/Tag/index.style.js +2 -2
  205. package/lib/ThemeProvider/main.js +2 -2
  206. package/lib/TimeRangeSlider/Refresh/index.js +2 -2
  207. package/lib/TimeRangeSlider/index.js +2 -2
  208. package/lib/TimeZoneSelect/index.js +2 -2
  209. package/lib/Tooltip/index.js +2 -2
  210. package/lib/TooltipText/index.js +2 -2
  211. package/lib/WangEditor/editor4.js +2 -2
  212. package/lib/WangEditor/index.js +2 -2
  213. package/lib/antd-style/factories/createStyleProvider/index.js +2 -2
  214. package/lib/antd-style/factories/createStyles/index.js +2 -2
  215. package/lib/antd-style/factories/createThemeProvider/AntdProvider.js +2 -2
  216. package/lib/antd-style/factories/createThemeProvider/TokenContainer.js +2 -2
  217. package/lib/antd-style/factories/createThemeProvider/index.js +2 -2
  218. package/lib/configHoc/index.js +2 -2
  219. package/lib/locales/en_US.json +3 -0
  220. package/lib/locales/zh_CN.json +3 -0
  221. package/lib/locales/zh_TW.json +3 -0
  222. package/lib/treeLoad/index.js +56 -20
  223. package/lib/useLocale/index.js +2 -2
  224. package/package.json +8 -3
  225. package/lib/BasicLayout/locale/en_US.js +0 -4
  226. package/lib/BasicLayout/locale/index.js +0 -11
  227. package/lib/BasicLayout/locale/zh_CN.js +0 -4
  228. package/lib/BasicLayout/locale/zh_TW.js +0 -4
  229. package/lib/CWTree/locale/en_US.js +0 -3
  230. package/lib/CWTree/locale/index.js +0 -11
  231. package/lib/CWTree/locale/zh_CN.js +0 -3
  232. package/lib/CWTree/locale/zh_TW.js +0 -3
  233. package/lib/ConfigProvider/customTheme.js +0 -266
  234. package/lib/ConfigProvider/customToken.js +0 -43
@@ -5,8 +5,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  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); }
7
7
  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); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import * as React from 'react';
12
12
  import { devUseWarning } from '../_util/warning';
@@ -5,8 +5,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  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); }
7
7
  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); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import * as React from 'react';
12
12
  import omit from 'rc-util/lib/omit';
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  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); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import * as React from 'react';
12
12
  import { devUseWarning } from '../_util/warning';
@@ -11,8 +11,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
11
11
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12
12
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
13
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
14
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import * as React from 'react';
18
18
  import classNames from 'classnames';
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  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); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import * as React from 'react';
12
12
  import Upload from './Upload';
@@ -17,14 +17,14 @@ var k_loadingK = new Keyframes("k_loadingK", {
17
17
  },
18
18
  "100%": {
19
19
  left: 0,
20
- transform: 'scale(1.1)',
20
+ transform: "scale(1.1)",
21
21
  zIndex: 0
22
22
  }
23
23
  });
24
24
  var k_loadingL = new Keyframes("k_loadingL", {
25
25
  "0%": {
26
26
  left: "100%",
27
- transform: 'scale(1.1)',
27
+ transform: "scale(1.1)",
28
28
  zIndex: 1
29
29
  },
30
30
  "50%": {
@@ -34,7 +34,7 @@ var k_loadingL = new Keyframes("k_loadingL", {
34
34
  },
35
35
  "100%": {
36
36
  left: "100%",
37
- transform: 'scale(1.1)',
37
+ transform: "scale(1.1)",
38
38
  zIndex: 0
39
39
  }
40
40
  });
@@ -64,14 +64,14 @@ var genCustomBadgeStyle = function genCustomBadgeStyle(token) {
64
64
  "&::before": {
65
65
  background: token.colorPrimary,
66
66
  animationName: k_loadingK,
67
- animationDuration: '1s',
68
- animationIterationCount: 'infinite'
67
+ animationDuration: "1s",
68
+ animationIterationCount: "infinite"
69
69
  },
70
70
  "&:after": {
71
71
  background: token.colorSuccess,
72
72
  animationName: k_loadingL,
73
- animationDuration: '1s',
74
- animationIterationCount: 'infinite'
73
+ animationDuration: "1s",
74
+ animationIterationCount: "infinite"
75
75
  }
76
76
  }), "".concat(badgePrefix, "-processing-text"), {
77
77
  display: "inline-block",
@@ -98,4 +98,6 @@ export default genStyleHooks("CWBadge", function (token) {
98
98
  return [
99
99
  //
100
100
  genCustomBadgeStyle(token)];
101
+ }, null, {
102
+ resetStyle: false
101
103
  });
@@ -7,11 +7,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
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
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
11
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
10
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
11
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
12
12
  import React, { useMemo } from 'react';
13
- import { useHistory } from 'react-router-dom';
14
- import { Link } from 'react-router-dom';
13
+ import { useHistory, Link } from 'react-router-dom';
15
14
  function BreadcrumbShow(_ref) {
16
15
  var _ref$routes = _ref.routes,
17
16
  routes = _ref$routes === void 0 ? [] : _ref$routes,
@@ -55,15 +54,15 @@ function BreadcrumbShow(_ref) {
55
54
  }
56
55
  return data;
57
56
  }, [routes, pathname, formatData]);
57
+ var _breadcrumbData = breadData ? breadData : breadcrumbData;
58
58
  if (render) {
59
59
  return render({
60
60
  routes: routes,
61
- data: data,
61
+ data: _breadcrumbData,
62
62
  currentPath: currentPath,
63
63
  breadcrumbOptions: breadcrumbOptions
64
64
  });
65
65
  }
66
- var _breadcrumbData = breadData ? breadData : breadcrumbData;
67
66
  return /*#__PURE__*/React.createElement(_Breadcrumb, _extends({
68
67
  style: _objectSpread({}, style)
69
68
  }, resP), _breadcrumbData.map(function (bread, index) {
@@ -1,4 +1,5 @@
1
- var _excluded = ["children", "id"];
1
+ import _useConfigContext2 from "@chaoswise/ui/lib/useConfigContext";
2
+ var _excluded = ["children"];
2
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
4
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
5
  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."); }
@@ -6,19 +7,16 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
6
7
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
8
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
9
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
10
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
11
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
11
12
  import React, { useLayoutEffect, useRef, useEffect } from "react";
12
- import useConfigContext from "../useConfigContext";
13
13
  import { eventManager } from "../utils";
14
14
  import classnames from "classnames";
15
15
  import useStyle from "./style/footer";
16
16
  function Footer(_ref) {
17
17
  var children = _ref.children,
18
- _ref$id = _ref.id,
19
- id = _ref$id === void 0 ? "" : _ref$id,
20
18
  res = _objectWithoutProperties(_ref, _excluded);
21
- var _useConfigContext = useConfigContext(),
19
+ var _useConfigContext = _useConfigContext2(),
22
20
  getPrefixCls = _useConfigContext.getPrefixCls;
23
21
  var prefixCls = getPrefixCls("basic-layout");
24
22
  var dom = useRef(null);
@@ -1,6 +1,7 @@
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
2
  import _Tooltip from "@chaoswise/ui/lib/Tooltip";
3
3
  import _SiderMenu from "@chaoswise/ui/lib/SiderMenu";
4
+ import _useConfigContext2 from "@chaoswise/ui/lib/useConfigContext";
4
5
  import _Layout from "@chaoswise/ui/lib/Layout";
5
6
  var _excluded = ["canDrag", "enable", "maxDragWidth", "resizeBarColor", "onResizeStart", "onResizeStop", "onResize", "siderDragWidth"],
6
7
  _excluded2 = ["menuData", "resizableProps"];
@@ -10,8 +11,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
11
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
12
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
13
  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); }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
16
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16
17
  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."); }
17
18
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -23,7 +24,6 @@ import { Resizable } from "re-resizable";
23
24
  import { MenuFoldOutlined, MenuUnfoldOutlined } from "@ant-design/icons";
24
25
  import { useTheme } from '../antd-style';
25
26
  import classnames from 'classnames';
26
- import useConfigContext from "../useConfigContext";
27
27
  import useStyle from "./style/sider";
28
28
  var AntSider = _Layout.Sider;
29
29
  function Sider(_ref) {
@@ -38,7 +38,7 @@ function Sider(_ref) {
38
38
  _setSiderDragWidth = _ref._setSiderDragWidth,
39
39
  menuOptions = _ref.menuOptions,
40
40
  onCollapse = _ref.onCollapse;
41
- var _useConfigContext = useConfigContext(),
41
+ var _useConfigContext = _useConfigContext2(),
42
42
  getPrefixCls = _useConfigContext.getPrefixCls;
43
43
  var prefixCls = getPrefixCls("basic-layout");
44
44
  var _useStyle = useStyle("".concat(prefixCls, "-cw-side")),
@@ -1,5 +1,6 @@
1
1
  import _ErrorBoundary from "@chaoswise/ui/lib/ErrorBoundary";
2
2
  import _Header from "@chaoswise/ui/lib/Header";
3
+ import _useConfigContext2 from "@chaoswise/ui/lib/useConfigContext";
3
4
  import _Layout from "@chaoswise/ui/lib/Layout";
4
5
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
5
6
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -21,7 +22,6 @@ import { eventManager } from '../utils';
21
22
  import { judgeIsIframe } from "./utils";
22
23
  import intl from "../locales";
23
24
  import useStyle from "./style/index";
24
- import useConfigContext from "../useConfigContext";
25
25
  var Content = _Layout.Content,
26
26
  AntHeader = _Layout.Header;
27
27
 
@@ -82,7 +82,7 @@ var BasicLayout = function BasicLayout(_ref) {
82
82
  _ref$style = _ref.style,
83
83
  style = _ref$style === void 0 ? {} : _ref$style;
84
84
  var isInIrame = judgeIsIframe();
85
- var _useConfigContext = useConfigContext(),
85
+ var _useConfigContext = _useConfigContext2(),
86
86
  getPrefixCls = _useConfigContext.getPrefixCls;
87
87
  var prefixCls = getPrefixCls("basic-layout");
88
88
  var _useStyle = useStyle("".concat(prefixCls, "-cw-layout-out")),
@@ -10,8 +10,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
10
10
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
15
  import React, { forwardRef } from "react";
16
16
  import Button from "../Antd5/button";
17
17
  import PropTypes from "prop-types";
@@ -36,4 +36,6 @@ var genCustomButtonStyle = function genCustomButtonStyle(token) {
36
36
  // ============================== Export ==============================
37
37
  export default genStyleHooks("CWButton", function (token) {
38
38
  return [genCustomButtonStyle(token)];
39
- }, prepareComponentToken);
39
+ }, prepareComponentToken, {
40
+ resetStyle: false
41
+ });
@@ -9,8 +9,8 @@ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLim
9
9
  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."); }
10
10
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
11
11
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
12
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
13
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
12
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
13
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
14
14
  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); }
15
15
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
16
16
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -240,7 +240,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
240
240
  // ==================== Render =====================
241
241
  var renderNode = /*#__PURE__*/React.createElement(RcCascader, _extends({
242
242
  prefixCls: prefixCls,
243
- className: classNames(!customizePrefixCls && cascaderPrefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-lg"), mergedSize === "large"), "".concat(prefixCls, "-sm"), mergedSize === "small"), "".concat(prefixCls, "-rtl"), isRtl), "".concat(prefixCls, "-").concat(variant), enableVariantCls), "".concat(prefixCls, "-in-form-item"), isFormItemInput), getStatusClassNames(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, cascader === null || cascader === void 0 ? void 0 : cascader.className, className, rootClassName, rootCls, cascaderRootCls, hashId, cssVarCls),
243
+ className: classNames("".concat(prefixCls, "-outlined"), !customizePrefixCls && cascaderPrefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-lg"), mergedSize === "large"), "".concat(prefixCls, "-sm"), mergedSize === "small"), "".concat(prefixCls, "-rtl"), isRtl), "".concat(prefixCls, "-").concat(variant), enableVariantCls), "".concat(prefixCls, "-in-form-item"), isFormItemInput), getStatusClassNames(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, cascader === null || cascader === void 0 ? void 0 : cascader.className, className, rootClassName, rootCls, cascaderRootCls, hashId, cssVarCls),
244
244
  disabled: mergedDisabled,
245
245
  style: _objectSpread(_objectSpread({}, cascader === null || cascader === void 0 ? void 0 : cascader.style), style)
246
246
  }, restProps, {
@@ -10,8 +10,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
10
10
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
15
  import { BaseSelect } from "rc-select-cascader";
16
16
  import useId from "rc-select-cascader/lib/hooks/useId";
17
17
  import { conductCheck } from "rc-tree-cascader/lib/utils/conductUtil";
@@ -14,8 +14,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
14
14
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
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
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
18
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
17
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
18
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
19
19
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
20
20
  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."); }
21
21
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -10,8 +10,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
10
10
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
15
  import React, { forwardRef, useState, useEffect, useMemo } from "react";
16
16
  import { EllipsisOutlined } from "@ant-design/icons";
17
17
  import PropTypes from "prop-types";
@@ -11,8 +11,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
12
12
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
13
  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); }
14
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
16
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
17
  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."); }
18
18
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  import _Tooltip from "@chaoswise/ui/lib/Tooltip";
3
3
  import _Button from "@chaoswise/ui/lib/Button";
4
4
  var _excluded = ["value", "key"];
5
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
6
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
5
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
6
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
7
7
  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; }
8
8
  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; }
9
9
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -17,8 +17,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
17
17
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  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); }
20
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
20
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
22
22
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
23
23
  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."); }
24
24
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -0,0 +1,48 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ 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."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ import React, { useRef } from "react";
8
+ import CustomTag from "./Tag";
9
+ import { useDrag, useDrop } from "react-dnd";
10
+ var type = "dragableTag";
11
+ var DragTag = function DragTag(props) {
12
+ var tagProps = props.tagProps,
13
+ maxTagTextLength = props.maxTagTextLength,
14
+ tagLabelRender = props.tagLabelRender,
15
+ moveNode = props.moveNode,
16
+ closeIcon = props.closeIcon;
17
+ var index = tagProps.index;
18
+ var dragRef = useRef(null);
19
+ var _useDrop = useDrop({
20
+ accept: type,
21
+ drop: function drop(item) {
22
+ moveNode(item.index, index);
23
+ }
24
+ }, [index, moveNode]),
25
+ _useDrop2 = _slicedToArray(_useDrop, 2),
26
+ drop = _useDrop2[1];
27
+ var _useDrag = useDrag({
28
+ item: {
29
+ type: type,
30
+ index: index
31
+ }
32
+ }),
33
+ _useDrag2 = _slicedToArray(_useDrag, 2),
34
+ drag = _useDrag2[1];
35
+ return /*#__PURE__*/React.createElement("div", {
36
+ ref: drag(drop(dragRef)),
37
+ onMouseDown: function onMouseDown(e) {
38
+ e.stopPropagation();
39
+ }
40
+ }, /*#__PURE__*/React.createElement(CustomTag, {
41
+ maxTagTextLength: maxTagTextLength,
42
+ tagLabelRender: tagLabelRender,
43
+ tagProps: tagProps,
44
+ closeIcon: closeIcon,
45
+ allowDrag: true
46
+ }));
47
+ };
48
+ export default DragTag;
@@ -0,0 +1,43 @@
1
+ import _Tag from "@chaoswise/ui/lib/Tag";
2
+ import React, { useMemo } from "react";
3
+ import useConfigContext from "../useConfigContext";
4
+ var CustomTag = function CustomTag(_ref) {
5
+ var tagProps = _ref.tagProps,
6
+ maxTagTextLength = _ref.maxTagTextLength,
7
+ tagLabelRender = _ref.tagLabelRender,
8
+ closeIcon = _ref.closeIcon,
9
+ allowDrag = _ref.allowDrag;
10
+ var _useConfigContext = useConfigContext(),
11
+ getPrefixCls = _useConfigContext.getPrefixCls;
12
+ var prefixCls = getPrefixCls("select");
13
+ var onPreventMouseDown = function onPreventMouseDown(e) {
14
+ e.preventDefault();
15
+ e.stopPropagation();
16
+ };
17
+ var tooltipLabel = useMemo(function () {
18
+ var tooltipLabel = tagProps === null || tagProps === void 0 ? void 0 : tagProps.label;
19
+ var isStringLabel = typeof tooltipLabel === "string";
20
+ if (tagLabelRender) {
21
+ return tagLabelRender(tooltipLabel, tagProps);
22
+ }
23
+ if (maxTagTextLength && isStringLabel && tooltipLabel.length) {
24
+ return tooltipLabel.slice(0, maxTagTextLength) + "…";
25
+ }
26
+ return tooltipLabel;
27
+ }, [tagProps, maxTagTextLength, tagLabelRender]);
28
+ return /*#__PURE__*/React.createElement(_Tag, {
29
+ className: "".concat(prefixCls, "-custom-tag"),
30
+ type: "custom_type01",
31
+ closeIcon: closeIcon,
32
+ onMouseDown: function onMouseDown(e) {
33
+ !allowDrag && onPreventMouseDown(e);
34
+ },
35
+ onClose: function onClose(e) {
36
+ onPreventMouseDown(e);
37
+ tagProps.onClose(e);
38
+ }
39
+ }, /*#__PURE__*/React.createElement("span", {
40
+ className: "".concat(prefixCls, "-custom-tag-content")
41
+ }, tooltipLabel));
42
+ };
43
+ export default CustomTag;