@chaoswise/ui 2.7.7 → 2.7.9
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.
- package/lib/AbreastLayout/index.js +2 -2
- package/lib/AdaptiveLayout/index.js +2 -2
- package/lib/Alert/index.js +2 -2
- package/lib/AlgorithmChart/index.js +2 -2
- package/lib/Antd/Drawer.js +2 -2
- package/lib/Antd4Form/FieldList.js +2 -2
- package/lib/Antd4Form/Form.js +2 -2
- package/lib/Antd4Form/FormItem.js +2 -2
- package/lib/Antd4Form/FormItemChildren.js +2 -2
- package/lib/BasicLayout/Breadcrumb.js +2 -2
- package/lib/BasicLayout/Footer.js +2 -2
- package/lib/BasicLayout/Sider.js +2 -2
- package/lib/BasicLayout/index.js +5 -5
- package/lib/BasicLayout/locale/index.js +2 -0
- package/lib/BasicLayout/locale/ja_JP.js +4 -0
- package/lib/Button/index.js +2 -2
- package/lib/CWCascader/Cascader/index.js +2 -2
- package/lib/CWCascader/rc-cascader/Cascader.js +2 -2
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +17 -18
- package/lib/CWMessage/MessageContent/TabList/index.js +10 -10
- package/lib/CWMessage/MessageContent/index.js +46 -30
- package/lib/CWMessage/index.js +36 -39
- package/lib/CWMessage/locale/index.js +2 -0
- package/lib/CWMessage/locale/ja_JP.js +8 -0
- package/lib/CWRadioTabs/index.js +2 -2
- package/lib/CWRangePicker/DropdownMenu/index.js +2 -2
- package/lib/CWRangePicker/Refresh/index.js +2 -2
- package/lib/CWRangePicker/index.js +13 -13
- package/lib/CWRangePicker/locale/index.js +2 -0
- package/lib/CWRangePicker/locale/ja_JP.js +29 -0
- package/lib/CWSelect/antd-select.js +2 -2
- package/lib/CWSelect/index.js +5 -5
- package/lib/CWSelect/locale/index.js +2 -0
- package/lib/CWSelect/locale/ja_JP.js +4 -0
- package/lib/CWTable/CWTable.js +25 -25
- package/lib/CWTable/EditLine.js +2 -2
- package/lib/CWTable/header.js +2 -2
- package/lib/CWTable/locale/index.js +2 -0
- package/lib/CWTable/locale/ja_JP.js +6 -0
- package/lib/CWTree/index.js +2 -2
- package/lib/CWTree/locale/index.js +2 -0
- package/lib/CWTree/locale/ja_JP.js +3 -0
- package/lib/CWUpload/locale/index.js +2 -0
- package/lib/CWUpload/locale/ja_JP.js +6 -0
- package/lib/CardSelect/index.js +2 -2
- package/lib/Checkbox/Checkbox.js +2 -2
- package/lib/Checkbox/Group.js +2 -2
- package/lib/Collapse/index.js +2 -2
- package/lib/ColorPicker/locale/index.js +2 -0
- package/lib/ColorPicker/locale/ja_JP.js +4 -0
- package/lib/ConfigProvider/ConfigProvider.js +13 -5
- package/lib/CustomNotification/PurePanel.js +2 -2
- package/lib/CustomNotification/useNotification.js +2 -2
- package/lib/CustomScrollBar/index.js +2 -2
- package/lib/DateRangePicker/RangeDatePicker.js +2 -2
- package/lib/DateRangePicker/RangeDateTimePicker.js +5 -5
- package/lib/DateRangePicker/index.js +2 -2
- package/lib/DateRangePicker/locale/index.js +2 -0
- package/lib/DateRangePicker/locale/ja_JP.js +5 -0
- package/lib/Documentation/index.js +2 -2
- package/lib/Drawer/index.js +2 -2
- package/lib/DropdownDatePicker/DropdownMenu/index.js +2 -2
- package/lib/DropdownDatePicker/index.js +5 -5
- package/lib/DropdownDatePicker/locale/index.js +2 -0
- package/lib/DropdownDatePicker/locale/ja_JP.js +21 -0
- package/lib/EchartsArea/index.js +2 -2
- package/lib/EchartsBar/index.js +2 -2
- package/lib/EchartsBarRow/index.js +2 -2
- package/lib/EchartsBase/index.js +2 -2
- package/lib/EchartsLine/index.js +2 -2
- package/lib/EchartsPie/index.js +2 -2
- package/lib/EchartsRing/index.js +2 -2
- package/lib/EditableText/index.js +2 -2
- package/lib/Empty/index.js +2 -2
- package/lib/Empty/locale/index.js +2 -0
- package/lib/Empty/locale/ja_JP.js +3 -0
- package/lib/ErrorBoundary/locale/index.js +2 -0
- package/lib/ErrorBoundary/locale/ja_JP.js +5 -0
- package/lib/Exception/locale/index.js +2 -0
- package/lib/Exception/locale/ja_JP.js +9 -0
- package/lib/FilterDropDown/locale/index.js +2 -0
- package/lib/FilterDropDown/locale/ja_JP.js +3 -0
- package/lib/Footer/index.js +2 -2
- package/lib/Form/FormItem.js +2 -2
- package/lib/FormItemWrapper/index.js +2 -2
- package/lib/Formily/FieldList/index.js +2 -2
- package/lib/Formily/FormItem/index.js +2 -2
- package/lib/Formily/FormItem/items/formItemWrapper.js +2 -2
- package/lib/Formily/subscribeFields/index.js +2 -2
- package/lib/GlobalTabs/TabPane.js +2 -2
- package/lib/GlobalTabs/index.js +2 -2
- package/lib/Header/CommonDropMenu.js +2 -2
- package/lib/Header/LocaleSwitcher.js +2 -2
- package/lib/Header/Message/index.js +2 -2
- package/lib/IconSelect/locale/index.js +2 -0
- package/lib/IconSelect/locale/ja_JP.js +11 -0
- package/lib/ImagePreview/index.js +2 -2
- package/lib/Input/InputComponent.js +2 -2
- package/lib/InputNumber/index.js +2 -2
- package/lib/IntersectionInput/index.js +2 -2
- package/lib/Joyride/index.js +5 -5
- package/lib/Joyride/locale/index.js +2 -0
- package/lib/Joyride/locale/ja_JP.js +25 -0
- package/lib/LayoutBreadcrumb/index.js +2 -2
- package/lib/LayoutWrapper/Footer.js +2 -2
- package/lib/LayoutWrapper/Header.js +2 -2
- package/lib/LazyLoadingTreeSelect/index.js +2 -2
- package/lib/Modal/Modal.js +2 -2
- package/lib/Modal/index.js +2 -2
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +40 -41
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +22 -23
- package/lib/ModuleTitle/index.js +2 -2
- package/lib/OutlineNumber/index.js +2 -2
- package/lib/Pagination/index.js +2 -2
- package/lib/Pagination/locale/index.js +2 -0
- package/lib/Pagination/locale/ja_JP.js +8 -0
- package/lib/PolymerizationSearch/index.js +7 -7
- package/lib/Popconfirm/index.js +2 -2
- package/lib/Progress/index.js +2 -2
- package/lib/Progress/locale/index.js +2 -0
- package/lib/Progress/locale/ja_JP.js +3 -0
- package/lib/QuickRangePicker/index.js +2 -2
- package/lib/QuickTransfer/index.js +15 -15
- package/lib/QuickTransfer/locale/index.js +2 -0
- package/lib/QuickTransfer/locale/ja_JP.js +8 -0
- package/lib/Radio/Radio.js +2 -2
- package/lib/RangePicker/index.js +2 -2
- package/lib/RangePicker/locale/index.js +2 -0
- package/lib/RangePicker/locale/ja_JP.js +5 -0
- package/lib/ReactSelect/CustomControl.js +2 -2
- package/lib/ReactSelect/CustomMultiValueLabel.js +2 -2
- package/lib/ReactSelect/CustomOption.js +2 -2
- package/lib/ReactSelect/CustomSingleValue.js +2 -2
- package/lib/ReactSelect/index.js +2 -2
- package/lib/ScrollLoad/index.js +2 -2
- package/lib/SearchBar/index.js +9 -9
- package/lib/SearchBar/locale/index.js +2 -0
- package/lib/SearchBar/locale/ja_JP.js +6 -0
- package/lib/SelectBackup/index.js +2 -2
- package/lib/SiderMenu/Item.js +2 -2
- package/lib/SiderMenu/index.js +2 -2
- package/lib/SiderMenu/sub-menu.js +2 -2
- package/lib/SimpleCard/index.js +2 -2
- package/lib/SingleSpa/index.js +24 -26
- package/lib/Tabs/index.js +2 -2
- package/lib/Tag/CheckableTag.js +2 -2
- package/lib/Tag/index.js +2 -2
- package/lib/ThemeProvider/main.js +2 -2
- package/lib/TimeRangeSlider/Refresh/index.js +2 -2
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +3 -3
- package/lib/TimeRangeSlider/index.js +8 -8
- package/lib/TimeRangeSlider/locale/index.js +2 -0
- package/lib/TimeRangeSlider/locale/ja_JP.js +31 -0
- package/lib/TimeZoneSelect/index.js +23 -24
- package/lib/Tooltip/index.js +2 -2
- package/lib/TooltipText/index.js +2 -2
- package/lib/TreeSelect111/index.js +2 -2
- package/lib/TreeSelect111/locale/index.js +2 -0
- package/lib/TreeSelect111/locale/ja_JP.js +3 -0
- package/lib/Upload-back/index.js +2 -2
- package/lib/VerticalLayout/index.js +2 -2
- package/lib/WangEditor/editor4.js +2 -2
- package/lib/WangEditor/index.js +4 -3
- package/lib/WangEditor/locale/index.js +31 -0
- package/lib/configHoc/index.js +2 -2
- package/lib/useLocale/index.js +2 -2
- package/package.json +3 -4
|
@@ -1,10 +1,10 @@
|
|
|
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
1
|
import "@chaoswise/ui/lib/CWSelect/index.less";
|
|
3
2
|
import _CWSelect from "@chaoswise/ui/lib/CWSelect";
|
|
4
3
|
var _excluded = ["getSystemTimeZoneInfoApi", "onInitialChange", "getOptions"],
|
|
5
4
|
_excluded2 = ["isSelected"];
|
|
6
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); }
|
|
7
|
-
function
|
|
6
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
7
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
8
8
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
9
9
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
10
10
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -13,8 +13,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
13
13
|
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; }
|
|
14
14
|
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; } }
|
|
15
15
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
18
|
// TimeZoneSelect.js
|
|
19
19
|
import React, { useState, useEffect } from "react";
|
|
20
20
|
import PropTypes from "prop-types";
|
|
@@ -35,17 +35,17 @@ var TimeZoneSelect = function TimeZoneSelect(_ref) {
|
|
|
35
35
|
useEffect(function () {
|
|
36
36
|
// 组件初始化时调用接口获取时区列表
|
|
37
37
|
var fetchTimeZones = /*#__PURE__*/function () {
|
|
38
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
39
|
-
var response, data, timeZoneData, _timeZoneData, initialTimeZone;
|
|
40
|
-
return
|
|
41
|
-
while (1) switch (_context.
|
|
38
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
39
|
+
var response, data, timeZoneData, _timeZoneData, initialTimeZone, _t;
|
|
40
|
+
return _regenerator().w(function (_context) {
|
|
41
|
+
while (1) switch (_context.p = _context.n) {
|
|
42
42
|
case 0:
|
|
43
43
|
setLoading(true);
|
|
44
|
-
_context.
|
|
45
|
-
_context.
|
|
44
|
+
_context.p = 1;
|
|
45
|
+
_context.n = 2;
|
|
46
46
|
return getSystemTimeZoneInfoApi();
|
|
47
|
-
case
|
|
48
|
-
response = _context.
|
|
47
|
+
case 2:
|
|
48
|
+
response = _context.v;
|
|
49
49
|
if (response.status === "success" && response.code == 100000) {
|
|
50
50
|
data = response.data;
|
|
51
51
|
timeZoneData = (data || []).map(function (item) {
|
|
@@ -75,21 +75,20 @@ var TimeZoneSelect = function TimeZoneSelect(_ref) {
|
|
|
75
75
|
getOptions(_timeZoneData);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
_context.
|
|
78
|
+
_context.n = 4;
|
|
79
79
|
break;
|
|
80
|
-
case
|
|
81
|
-
_context.
|
|
82
|
-
|
|
83
|
-
console.error("获取时区列表失败:",
|
|
84
|
-
case
|
|
85
|
-
_context.
|
|
80
|
+
case 3:
|
|
81
|
+
_context.p = 3;
|
|
82
|
+
_t = _context.v;
|
|
83
|
+
console.error("获取时区列表失败:", _t);
|
|
84
|
+
case 4:
|
|
85
|
+
_context.p = 4;
|
|
86
86
|
setLoading(false);
|
|
87
|
-
return _context.
|
|
88
|
-
case
|
|
89
|
-
|
|
90
|
-
return _context.stop();
|
|
87
|
+
return _context.f(4);
|
|
88
|
+
case 5:
|
|
89
|
+
return _context.a(2);
|
|
91
90
|
}
|
|
92
|
-
}, _callee, null, [[1,
|
|
91
|
+
}, _callee, null, [[1, 3, 4, 5]]);
|
|
93
92
|
}));
|
|
94
93
|
return function fetchTimeZones() {
|
|
95
94
|
return _ref2.apply(this, arguments);
|
package/lib/Tooltip/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import "antd/es/tooltip/style";
|
|
|
2
2
|
import _Tooltip from "antd/es/tooltip";
|
|
3
3
|
var _excluded = ["useUiRule", "overlayClassName"];
|
|
4
4
|
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
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
6
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
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
|
import React, { forwardRef } from 'react';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import PropTypes from 'prop-types';
|
package/lib/TooltipText/index.js
CHANGED
|
@@ -8,8 +8,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
8
8
|
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; }
|
|
9
9
|
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; } }
|
|
10
10
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
12
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
13
|
import React, { useRef, useEffect, useState, useMemo, memo } from 'react';
|
|
14
14
|
import classnames from 'classnames';
|
|
15
15
|
import PropTypes from 'prop-types';
|
|
@@ -19,8 +19,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
19
19
|
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; }
|
|
20
20
|
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; } }
|
|
21
21
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
23
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
22
|
+
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; }
|
|
23
|
+
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; }
|
|
24
24
|
import React, { useState, useEffect, useMemo, forwardRef, Fragment, useRef } from "react";
|
|
25
25
|
import CWTreeSelect from "../Antd4/tree-select";
|
|
26
26
|
import PropTypes from "prop-types";
|
package/lib/Upload-back/index.js
CHANGED
|
@@ -16,8 +16,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
16
16
|
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; }
|
|
17
17
|
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; } }
|
|
18
18
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
19
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
20
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
21
|
import React, { Fragment, useState } from 'react';
|
|
22
22
|
var Dragger = _Upload.Dragger;
|
|
23
23
|
import PropTypes from 'prop-types';
|
|
@@ -3,8 +3,8 @@ import _Icon from "antd/es/icon";
|
|
|
3
3
|
import "@chaoswise/ui/lib/Header/index.less";
|
|
4
4
|
import _Header from "@chaoswise/ui/lib/Header";
|
|
5
5
|
var _excluded = ["children", "type", "breadCrumb", "backNavigationTitle", "onClickBack", "className", "contentClassName", "backIcon", "hasFooter"];
|
|
6
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
7
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { useHistory } from 'react-router-dom';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["isSeparation", "customAlert", "htmlContent", "appendHtmlContent", "getHtml", "getText", "getJSON", "setJSON", "clearContent", "compatibleMode", "highLight", "fullScreen", "onChange", "onFocus", "onBlur", "linkImgCallback", "onlineVideoCallback", "onlineVideoCheck", "linkCheck", "pasteTextHandle", "customUploadImg", "customUploadVideo", "disable", "onCatalogChange", "headId"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
4
|
import React, { useEffect, Fragment } from 'react';
|
|
5
5
|
import E from 'wangeditor';
|
|
6
6
|
import hljs from 'highlight.js';
|
package/lib/WangEditor/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import _ConfigProvider from "@chaoswise/ui/lib/ConfigProvider";
|
|
2
2
|
var _excluded = ["isSeparation", "htmlContent", "value", "disabled", "onChange", "onFocus", "onBlur", "pasteTextHandle", "autoFocus", "isUsePreview", "dropListPosition"];
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { useEffect, Fragment, useRef, forwardRef } from "react";
|
|
6
6
|
import E from "./wangEditor";
|
|
7
7
|
import PropTypes from "prop-types";
|
|
8
8
|
import "./index.less";
|
|
9
|
-
import { localeObj, localObjTW } from "./locale/index";
|
|
9
|
+
import { localeObj, localObjTW, localObjJA } from "./locale/index";
|
|
10
10
|
import usePreview from "../usePreview";
|
|
11
11
|
import resizeable from "./resizeable";
|
|
12
12
|
var localOptionsMap = {
|
|
13
13
|
en: localeObj,
|
|
14
14
|
en_US: localeObj,
|
|
15
15
|
zh_TW: localObjTW,
|
|
16
|
+
ja_JP: localObjJA,
|
|
16
17
|
zh: {},
|
|
17
18
|
zh_CN: {}
|
|
18
19
|
};
|
|
@@ -59,4 +59,35 @@ export var localObjTW = {
|
|
|
59
59
|
插入: "插入",
|
|
60
60
|
创建: "創建",
|
|
61
61
|
图片: "圖片"
|
|
62
|
+
};
|
|
63
|
+
export var localObjJA = {
|
|
64
|
+
设置标题: "見出し",
|
|
65
|
+
正文: "本文",
|
|
66
|
+
链接文字: "リンクテキスト",
|
|
67
|
+
链接: "リンク",
|
|
68
|
+
上传图片: "ローカル",
|
|
69
|
+
上传: "アップロード",
|
|
70
|
+
有序列表: "順序付きリスト",
|
|
71
|
+
无序列表: "順序なしリスト",
|
|
72
|
+
靠左: "左揃え",
|
|
73
|
+
居中: "中央揃え",
|
|
74
|
+
靠右: "右揃え",
|
|
75
|
+
字号: "フォントサイズ",
|
|
76
|
+
字体: "フォント",
|
|
77
|
+
文字颜色: "文字色",
|
|
78
|
+
背景色: "背景色",
|
|
79
|
+
设置列表: "リスト",
|
|
80
|
+
插入代码: "コード",
|
|
81
|
+
插入视频: "動画",
|
|
82
|
+
格式如: "形式例",
|
|
83
|
+
插入表格: "テーブル",
|
|
84
|
+
列的表格: "列",
|
|
85
|
+
行: "行",
|
|
86
|
+
默认: "デフォルト",
|
|
87
|
+
新浪: "Sina",
|
|
88
|
+
对齐方式: "配置",
|
|
89
|
+
网络图片: "Web",
|
|
90
|
+
插入: "挿入",
|
|
91
|
+
创建: "作成",
|
|
92
|
+
图片: "画像"
|
|
62
93
|
};
|
package/lib/configHoc/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["forwardedRef"];
|
|
2
2
|
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
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import { ConfigConsumer } from 'antd/es/config-provider';
|
|
7
7
|
var configHoc = function configHoc(Com) {
|
package/lib/useLocale/index.js
CHANGED
|
@@ -6,8 +6,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
10
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
9
|
+
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; }
|
|
10
|
+
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
11
|
function useLocale(langConfig) {
|
|
12
12
|
var _ConfigProvider$useLo = _ConfigProvider.useLocale(),
|
|
13
13
|
locale = _ConfigProvider$useLo.locale,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaoswise/ui",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.9",
|
|
4
4
|
"description": "公共UI库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"react-custom-scrollbars": "^4.2.1",
|
|
108
108
|
"react-dnd": "^13.1.1",
|
|
109
109
|
"react-dnd-html5-backend": "^12.1.1",
|
|
110
|
-
"react-draggable": "
|
|
110
|
+
"react-draggable": "4.4.6",
|
|
111
111
|
"react-infinite-scroller": "^1.2.4",
|
|
112
112
|
"react-intl": "^6.0.5",
|
|
113
113
|
"react-joyride": "2.3.2",
|
|
@@ -151,6 +151,5 @@
|
|
|
151
151
|
"license": "MIT",
|
|
152
152
|
"overrides": {
|
|
153
153
|
"node-fetch": "^2.7.0"
|
|
154
|
-
}
|
|
155
|
-
"gitHead": "cf3568b1947cf3833fbaa6f6f7fa493c5282562b"
|
|
154
|
+
}
|
|
156
155
|
}
|