@chaoswise/business 1.0.3 → 1.0.5
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/AggregateSearch/CLSPL/CLQLLexer.js +16 -18
- package/lib/AggregateSearch/CLSPL/CLQLParser.js +171 -244
- package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +14 -16
- package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +14 -16
- package/lib/AggregateSearch/CLSPL/SPLStagy.js +14 -16
- package/lib/AggregateSearch/CLSPL/index.js +24 -28
- package/lib/AggregateSearch/components/CloseAllIcon/index.js +1 -1
- package/lib/AggregateSearch/components/DropDown/index.js +19 -20
- package/lib/AggregateSearch/hooks/useDropDown.js +41 -17
- package/lib/AggregateSearch/index.js +98 -27
- package/lib/AggregateSearch/index.less +29 -17
- package/lib/AggregateSearch/utils/index.js +12 -12
- package/lib/ContentEditableSearch/components/CloseAllIcon/index.js +1 -1
- package/lib/ContentEditableSearch/index.js +8 -8
- package/lib/ContentEditableSearch/utils/index.js +6 -6
- package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/index.js +4 -4
- package/lib/PropertyControlViewer/components/DoAppIcon/index.js +3 -3
- package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +3 -3
- package/lib/PropertyControlViewer/components/DoCommon.js +1 -1
- package/lib/PropertyControlViewer/components/DoImage.js +10 -10
- package/lib/PropertyControlViewer/components/DoQuote/components/QuoteView.js +3 -3
- package/lib/PropertyControlViewer/components/DoSelect.js +8 -8
- package/lib/PropertyControlViewer/components/DoUser.js +1 -1
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +9 -9
- package/lib/PropertyControlViewer/config/utils.js +2 -2
- package/lib/PropertyControlViewer/index.js +5 -5
- package/lib/Watermark/index.js +17 -16
- package/lib/locales/intl.js +10 -11
- package/lib/locales/withLocale.js +14 -16
- package/package.json +5 -5
package/lib/locales/intl.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
function _defineProperty(
|
|
3
|
-
function _classCallCheck(
|
|
4
|
-
function _defineProperties(
|
|
5
|
-
function _createClass(
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
2
|
+
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; }
|
|
3
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
4
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
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 _slicedToArray(
|
|
8
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
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
|
-
function _unsupportedIterableToArray(
|
|
11
|
-
function _arrayLikeToArray(
|
|
10
|
+
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; } }
|
|
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
|
-
function _arrayWithHoles(
|
|
13
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
14
14
|
import { useCallback, useState } from 'react';
|
|
15
15
|
import { ReactIntlUniversal } from 'react-intl-universal';
|
|
16
16
|
var IntlInstance = new ReactIntlUniversal();
|
|
@@ -31,7 +31,7 @@ var TagInit = /*#__PURE__*/function () {
|
|
|
31
31
|
_classCallCheck(this, TagInit);
|
|
32
32
|
this.currentLocale = '';
|
|
33
33
|
}
|
|
34
|
-
_createClass(TagInit, [{
|
|
34
|
+
return _createClass(TagInit, [{
|
|
35
35
|
key: "setCurrentLocale",
|
|
36
36
|
value: function setCurrentLocale(currentLocale) {
|
|
37
37
|
this.currentLocale = currentLocale;
|
|
@@ -42,7 +42,6 @@ var TagInit = /*#__PURE__*/function () {
|
|
|
42
42
|
return this.currentLocale;
|
|
43
43
|
}
|
|
44
44
|
}]);
|
|
45
|
-
return TagInit;
|
|
46
45
|
}();
|
|
47
46
|
export var injectLocale = function injectLocale(currentLocale) {
|
|
48
47
|
var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
@@ -1,28 +1,27 @@
|
|
|
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
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
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
|
-
function
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
13
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { injectLocale } from './intl';
|
|
16
16
|
import { intlContext } from '@chaoswise/ui/lib/ConfigProvider/ConfigProvider';
|
|
17
17
|
export default function withLocale(WrappedComponent) {
|
|
18
18
|
var WithLocale = /*#__PURE__*/function (_React$Component) {
|
|
19
|
-
_inherits(WithLocale, _React$Component);
|
|
20
|
-
var _super = _createSuper(WithLocale);
|
|
21
19
|
function WithLocale(props) {
|
|
22
20
|
_classCallCheck(this, WithLocale);
|
|
23
|
-
return
|
|
21
|
+
return _callSuper(this, WithLocale, [props]);
|
|
24
22
|
}
|
|
25
|
-
|
|
23
|
+
_inherits(WithLocale, _React$Component);
|
|
24
|
+
return _createClass(WithLocale, [{
|
|
26
25
|
key: "render",
|
|
27
26
|
value: function render() {
|
|
28
27
|
var _this = this;
|
|
@@ -31,7 +30,6 @@ export default function withLocale(WrappedComponent) {
|
|
|
31
30
|
});
|
|
32
31
|
}
|
|
33
32
|
}]);
|
|
34
|
-
return WithLocale;
|
|
35
33
|
}(React.Component);
|
|
36
34
|
return WithLocale;
|
|
37
35
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaoswise/business",
|
|
3
3
|
"packageName": "chaoswiseBusiness",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"description": "业务组件库",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ui",
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
"@babel/preset-env": "^7.16.11",
|
|
30
30
|
"@babel/preset-typescript": "^7.16.7",
|
|
31
31
|
"@babel/runtime-corejs3": "^7.11.2",
|
|
32
|
-
"@chaoswise/intl": "^2.1.
|
|
33
|
-
"@chaoswise/ui": "2.5
|
|
32
|
+
"@chaoswise/intl": "^2.1.8",
|
|
33
|
+
"@chaoswise/ui": "^2.7.5",
|
|
34
|
+
"@chaoswise/utils": "^1.0.0",
|
|
34
35
|
"@storybook/addon-actions": "^6.4.22",
|
|
35
36
|
"@storybook/addon-essentials": "^6.4.22",
|
|
36
37
|
"@storybook/addon-interactions": "^6.4.22",
|
|
@@ -111,6 +112,5 @@
|
|
|
111
112
|
"publishConfig": {
|
|
112
113
|
"access": "public"
|
|
113
114
|
},
|
|
114
|
-
"license": "MIT"
|
|
115
|
-
"gitHead": "a40f0c7abb1409464f97cd5de28518b8535ebc43"
|
|
115
|
+
"license": "MIT"
|
|
116
116
|
}
|