@chaoswise/business 1.0.5 → 1.1.0
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 +1 -1
- package/lib/AggregateSearch/CLSPL/CLQLParser.js +169 -169
- package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +1 -1
- package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +1 -1
- package/lib/AggregateSearch/CLSPL/SPLStagy.js +1 -1
- package/lib/AggregateSearch/CLSPL/index.js +1 -1
- package/lib/AggregateSearch/components/DropDown/index.js +80 -88
- package/lib/AggregateSearch/hooks/useDropDown.js +1 -1
- package/lib/AggregateSearch/index.js +49 -66
- package/lib/AggregateSearch/utils/index.js +1 -1
- package/lib/ContentEditableSearch/index.js +15 -17
- package/lib/I18nInput/index.js +278 -0
- package/lib/I18nInput/index.less +7 -0
- package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +1 -1
- package/lib/PropertyControlViewer/components/DoImage.js +13 -13
- package/lib/PropertyControlViewer/components/DoSelect.js +1 -1
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +1 -1
- package/lib/PropertyControlViewer/config/utils.js +1 -1
- package/lib/PropertyControlViewer/index.js +1 -1
- package/lib/Watermark/index.js +18 -21
- package/lib/index.js +2 -1
- package/lib/locales/en_US.json +1 -1
- package/lib/locales/index.js +31 -12
- package/lib/locales/intl.js +80 -25
- package/lib/locales/ja_JP.json +1 -0
- package/lib/locales/localeCode.js +13 -0
- package/lib/locales/withLocale.js +1 -1
- package/lib/locales/zh_CN.json +1 -1
- package/lib/locales/zh_HK.json +1 -0
- package/lib/locales/zh_TW.json +1 -1
- package/package.json +10 -7
package/lib/locales/en_US.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"User group:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"search criteria copied","1cd159c8-2a4d-4208-a170-55a34b91f671":"No data available. Please submit the search to search for keywords.","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"Switch to filter mode","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"wildcard: *?","2bf0d704-4106-4359-8488-d0e395f37d34":"Missing {slot1} after {slot0}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"combination symbols","30a2737a-c786-4f9f-bb22-02ca27a557ff":"End","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"Department","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"Group","3431b29b-5fb7-411f-8a1d-8d7676b03264":"Help","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"
|
|
1
|
+
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"User group:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"search criteria copied","19d6c313-9540-4042-b642-ebc6396ca0c7":"Cancel","1cd159c8-2a4d-4208-a170-55a34b91f671":"No data available. Please submit the search to search for keywords.","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"Switch to filter mode","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"wildcard: *?","2bf0d704-4106-4359-8488-d0e395f37d34":"Missing {slot1} after {slot0}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"combination symbols","30a2737a-c786-4f9f-bb22-02ca27a557ff":"End","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"Department","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"Group","3431b29b-5fb7-411f-8a1d-8d7676b03264":"Help","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"Search History","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"Syntax error","43395ce9-35f2-4a6d-9e84-8c277369157b":"Username:","4412a02d-d11d-4231-bf91-fd65afd9ea77":"tag search","47e5459f-882c-4395-a8f1-d49e89b0a263":"is not","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"bracket","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"There is <unknown input>","51b43939-ce6a-4a41-9038-832b8ab4a175":"Loading...","5b412c79-b099-47cd-8745-21264d9212c4":"Name","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"Switch to manual CQL syntax mode","632edd96-893f-4599-b1a3-0406e2146010":"Confirm","7058c2d9-91f3-4fe6-8a38-2c145a627959":"Less than","719234f9-de71-4fc6-ab3f-59287ff20570":"Greater than","79279aa4-ad27-4082-8093-06122d68c611":"Department:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"E-mail:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} followed by the expectation {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"Phone","914a6df4-9561-4345-a98c-0559e3f787ff":"Less than or equal to","94f38306-0e2c-4d1c-beff-64d14bd7da20":"Unnecessary input of {tokenName}, expecting {slot0}","99b301b7-f153-4861-8ca3-22371b6b95d9":"Please enter","b2df07f1-b093-4f56-9ec2-af471999634d":"Location","b59f74be-dff0-4e3e-92db-354b475c3efd":"User name:","bc71d288-1654-454d-8639-5ed225d8d6f6":"User group","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"numeric range","be953f09-653f-4715-a3b9-9e0faef199b3":"full-text search: hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"Name:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"Incomplete statement, missing end","db3f4bef-089e-4144-861d-29f79fa4cd38":"Mobile Phone:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"is","e25f1462-c823-434a-a6b2-4258dd57930a":"Multi-language Configuration","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"Email","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"Greater than or equal to","e7413527-a5ee-4057-b765-3595cd26c09b":"related search: status:(error OR warning) AND NOT service:\"service_a\"","e94234be-e478-4314-bc85-572cc285f5f9":"Description","f2447d25-e81c-4656-9e4c-f66741dd8a52":"matching mode","f307bd91-6737-4667-9e89-daec35b21198":"Description:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"Field name","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"Component not registered yet","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"exact match: \"hello world\""}
|
package/lib/locales/index.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
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 { useEffect, useContext, useMemo, useState } from "react";
|
|
2
8
|
import intl, { useForceUpdate, TagInitInstance, injectLocale } from "./intl";
|
|
3
9
|
import { intlContext } from '@chaoswise/ui/lib/ConfigProvider/ConfigProvider';
|
|
4
10
|
import withLocale from "./withLocale";
|
|
11
|
+
import { normalizeLocale } from './localeCode';
|
|
5
12
|
|
|
6
13
|
// 初始化默认值取消warning
|
|
7
14
|
intl.init({
|
|
@@ -17,26 +24,38 @@ export { TagInitInstance, useForceUpdate, withLocale };
|
|
|
17
24
|
export var useIntl = function useIntl() {
|
|
18
25
|
var _useContext = useContext(intlContext),
|
|
19
26
|
locale = _useContext.locale;
|
|
20
|
-
|
|
21
|
-
// 兼容映射
|
|
22
27
|
var currentLocale = useMemo(function () {
|
|
23
|
-
|
|
24
|
-
zh: "zh_CN",
|
|
25
|
-
en: "en_US"
|
|
26
|
-
};
|
|
27
|
-
return map[locale] || locale;
|
|
28
|
+
return normalizeLocale(locale);
|
|
28
29
|
}, [locale]);
|
|
29
30
|
var forceUpdate = useForceUpdate();
|
|
31
|
+
var _useState = useState(null),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
localeError = _useState2[0],
|
|
34
|
+
setLocaleError = _useState2[1];
|
|
30
35
|
useEffect(function () {
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
// 每次切换都通知加载层(包括切回已初始化语言),由加载层复用请求。
|
|
37
|
+
// 不能按 Tag 提前返回,否则中途未完成的其他语言请求仍可能覆盖实例。
|
|
38
|
+
var cancelled = false;
|
|
39
|
+
setLocaleError(null);
|
|
35
40
|
injectLocale(currentLocale, function () {
|
|
41
|
+
if (cancelled) return;
|
|
36
42
|
TagInitInstance.setCurrentLocale(currentLocale);
|
|
37
43
|
forceUpdate();
|
|
44
|
+
})["catch"](function (error) {
|
|
45
|
+
if (cancelled) return;
|
|
46
|
+
// 在 render 阶段交给宿主 ErrorBoundary,不能静默展示其他地区文案。
|
|
47
|
+
setLocaleError({
|
|
48
|
+
locale: currentLocale,
|
|
49
|
+
error: error
|
|
50
|
+
});
|
|
38
51
|
});
|
|
52
|
+
return function () {
|
|
53
|
+
cancelled = true;
|
|
54
|
+
};
|
|
39
55
|
}, [currentLocale]);
|
|
56
|
+
if (localeError && localeError.locale === currentLocale) {
|
|
57
|
+
throw localeError.error;
|
|
58
|
+
}
|
|
40
59
|
return intl;
|
|
41
60
|
};
|
|
42
61
|
export default intl;
|
package/lib/locales/intl.js
CHANGED
|
@@ -4,7 +4,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
4
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
5
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
-
function _toPrimitive(t,
|
|
7
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
8
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
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; } }
|
|
@@ -12,8 +12,14 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
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
14
|
import { useCallback, useState } from 'react';
|
|
15
|
-
import {
|
|
16
|
-
|
|
15
|
+
import { normalizeLocale } from './localeCode';
|
|
16
|
+
|
|
17
|
+
// 从 @chaoswise/intl 内嵌的 react-intl-universal 类 new 出 business 自己的实例:
|
|
18
|
+
// 1) 底层走 intl-messageformat v7,兼容 zh_CN 下划线 locale,避免外部 riu 2.14
|
|
19
|
+
// 拉入 v11 后 zh_CN 被判非法、ICU 变量不替换;
|
|
20
|
+
// 2) 与宿主共享类但不共享实例,不会污染宿主 @chaoswise/intl 单例的 init 状态。
|
|
21
|
+
import { intl } from '@chaoswise/intl';
|
|
22
|
+
var IntlInstance = new intl.constructor();
|
|
17
23
|
var createNewObject = function createNewObject() {
|
|
18
24
|
return {};
|
|
19
25
|
};
|
|
@@ -42,33 +48,82 @@ var TagInit = /*#__PURE__*/function () {
|
|
|
42
48
|
return this.currentLocale;
|
|
43
49
|
}
|
|
44
50
|
}]);
|
|
45
|
-
}();
|
|
51
|
+
}(); // 支持的语言文件映射表
|
|
52
|
+
var localeFileMap = {
|
|
53
|
+
zh_CN: function zh_CN() {
|
|
54
|
+
return import('./zh_CN.json');
|
|
55
|
+
},
|
|
56
|
+
en_US: function en_US() {
|
|
57
|
+
return import('./en_US.json');
|
|
58
|
+
},
|
|
59
|
+
zh_TW: function zh_TW() {
|
|
60
|
+
return import('./zh_TW.json');
|
|
61
|
+
},
|
|
62
|
+
zh_HK: function zh_HK() {
|
|
63
|
+
return import('./zh_HK.json');
|
|
64
|
+
},
|
|
65
|
+
ja_JP: function ja_JP() {
|
|
66
|
+
return import('./ja_JP.json');
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// 默认语言(不支持的语言时回退到此)
|
|
71
|
+
var DEFAULT_LOCALE = 'zh_CN';
|
|
72
|
+
|
|
73
|
+
// 多个组件共享同一实例:同语言复用请求,切换后旧请求不得再初始化实例。
|
|
74
|
+
var activeRequest = null;
|
|
46
75
|
export var injectLocale = function injectLocale(currentLocale) {
|
|
47
76
|
var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
if (currentLocale === "zh_CN") {
|
|
55
|
-
import("./zh_CN.json").then(function (res) {
|
|
56
|
-
initFunc(currentLocale, res["default"]);
|
|
57
|
-
cb();
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
if (currentLocale === "en_US") {
|
|
61
|
-
import("./en_US.json").then(function (res) {
|
|
62
|
-
initFunc(currentLocale, res["default"]);
|
|
63
|
-
cb();
|
|
77
|
+
var locale = normalizeLocale(currentLocale);
|
|
78
|
+
if (activeRequest && activeRequest.locale === locale) {
|
|
79
|
+
var _request = activeRequest;
|
|
80
|
+
return _request.promise.then(function () {
|
|
81
|
+
if (activeRequest === _request) cb();
|
|
64
82
|
});
|
|
65
83
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
var request = {
|
|
85
|
+
locale: locale,
|
|
86
|
+
promise: null
|
|
87
|
+
};
|
|
88
|
+
activeRequest = request;
|
|
89
|
+
var initFunc = function initFunc(locale, data) {
|
|
90
|
+
return IntlInstance.init({
|
|
91
|
+
currentLocale: locale,
|
|
92
|
+
locales: _defineProperty({}, locale, data)
|
|
70
93
|
});
|
|
71
|
-
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// 加载语言文件的函数
|
|
97
|
+
var _loadLocale = function loadLocale(locale) {
|
|
98
|
+
var loader = localeFileMap[locale];
|
|
99
|
+
if (loader) {
|
|
100
|
+
return loader().then(function (res) {
|
|
101
|
+
if (activeRequest !== request) return;
|
|
102
|
+
return initFunc(locale, res["default"]);
|
|
103
|
+
})["catch"](function (error) {
|
|
104
|
+
if (activeRequest !== request) return;
|
|
105
|
+
console.warn("Failed to load locale file for ".concat(locale, ":"), error);
|
|
106
|
+
// 香港繁体资源失败必须暴露错误,不能伪装为简体支持。
|
|
107
|
+
if (locale === 'zh_HK') throw error;
|
|
108
|
+
// 保留已有语言的失败回退行为。
|
|
109
|
+
if (locale !== DEFAULT_LOCALE) {
|
|
110
|
+
return _loadLocale(DEFAULT_LOCALE);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
} else {
|
|
114
|
+
// 如果语言不支持,回退到默认语言(中文)
|
|
115
|
+
console.warn("Locale ".concat(locale, " is not supported, falling back to ").concat(DEFAULT_LOCALE));
|
|
116
|
+
return _loadLocale(DEFAULT_LOCALE);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
request.promise = _loadLocale(locale)["catch"](function (error) {
|
|
120
|
+
// 当前请求失败后允许错误边界重挂载、重新加载同一语言。
|
|
121
|
+
if (activeRequest === request) activeRequest = null;
|
|
122
|
+
throw error;
|
|
123
|
+
});
|
|
124
|
+
return request.promise.then(function () {
|
|
125
|
+
if (activeRequest === request) cb();
|
|
126
|
+
});
|
|
72
127
|
};
|
|
73
128
|
export var TagInitInstance = new TagInit();
|
|
74
129
|
export default IntlInstance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"ユーザーグループ:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"検索条件をコピーしました","19d6c313-9540-4042-b642-ebc6396ca0c7":"キャンセル","1cd159c8-2a4d-4208-a170-55a34b91f671":"データがありません。検索を実行してキーワードを検索してください","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"フィルタモードに切り替え","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"ワイルドカード:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"{slot0}の後に{slot1}が欠けています","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"組み合わせ記号","30a2737a-c786-4f9f-bb22-02ca27a557ff":"終了","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部門","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"グループ","3431b29b-5fb7-411f-8a1d-8d7676b03264":"ヘルプ","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"検索履歴","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"構文エラー","43395ce9-35f2-4a6d-9e84-8c277369157b":"ユーザー名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"タグ検索","47e5459f-882c-4395-a8f1-d49e89b0a263":"等しくない","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括弧","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"<不明な入力>があります","51b43939-ce6a-4a41-9038-832b8ab4a175":"ロード中.。。","5b412c79-b099-47cd-8745-21264d9212c4":"お名前","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"手動CQL構文モードに切り替え","632edd96-893f-4599-b1a3-0406e2146010":"確認","7058c2d9-91f3-4fe6-8a38-2c145a627959":"より小さい","719234f9-de71-4fc6-ab3f-59287ff20570":"より大きい","79279aa4-ad27-4082-8093-06122d68c611":"部門:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"メールアドレス:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0}の後、{slot1}が期待されます","905a2fe5-4c8a-467e-813a-963fdb268b10":"携帯電話","914a6df4-9561-4345-a98c-0559e3f787ff":"以下","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不要な入力{tokenName}、{slot0}が期待されます","99b301b7-f153-4861-8ca3-22371b6b95d9":"入力してください","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"ユーザー名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"ユーザーグループ","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"数値範囲","be953f09-653f-4715-a3b9-9e0faef199b3":"全文検索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"お名前:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"ステートメントが不完全で、終了部分がありません","db3f4bef-089e-4144-861d-29f79fa4cd38":"携帯電話:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等しい","e25f1462-c823-434a-a6b2-4258dd57930a":"多言語設定","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"メールアドレス","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"以上","e7413527-a5ee-4057-b765-3595cd26c09b":"関連検索:status:(error OR warning) AND NOT service:\"service_a\"","e94234be-e478-4314-bc85-572cc285f5f9":"記述","f2447d25-e81c-4656-9e4c-f66741dd8a52":"一致方法","f307bd91-6737-4667-9e89-daec35b21198":"説明:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"フィールド名","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"未登録のコンポーネント","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"完全一致:\"hello world\""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// 只规范格式;是否支持某种语言由资源注册表和宿主配置决定。
|
|
2
|
+
export var normalizeLocale = function normalizeLocale(locale) {
|
|
3
|
+
if (typeof locale !== 'string') return locale;
|
|
4
|
+
var value = locale.trim();
|
|
5
|
+
var legacy = {
|
|
6
|
+
zh: 'zh_CN',
|
|
7
|
+
en: 'en_US',
|
|
8
|
+
ja: 'ja_JP'
|
|
9
|
+
};
|
|
10
|
+
if (legacy[value]) return legacy[value];
|
|
11
|
+
var match = /^([a-z]{2,3})[-_]([a-z]{2}|\d{3})$/i.exec(value);
|
|
12
|
+
return match ? "".concat(match[1].toLowerCase(), "_").concat(match[2].toUpperCase()) : value;
|
|
13
|
+
};
|
|
@@ -3,7 +3,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
3
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
4
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t,
|
|
6
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
7
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
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
9
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
package/lib/locales/zh_CN.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用户组:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜索条件已复制","1cd159c8-2a4d-4208-a170-55a34b91f671":"暂无数据,提交搜索后搜索关键字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切换为筛选模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 后缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"组合符号","30a2737a-c786-4f9f-bb22-02ca27a557ff":"结束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部门","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分组","3431b29b-5fb7-411f-8a1d-8d7676b03264":"帮助文档","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜索历史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"语法错误","43395ce9-35f2-4a6d-9e84-8c277369157b":"用户名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"标签搜索","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等于","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括号","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知输入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加载中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切换为手写CQL语法模式","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小于","719234f9-de71-4fc6-ab3f-59287ff20570":"大于","79279aa4-ad27-4082-8093-06122d68c611":"部门:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"邮箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 后面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手机","914a6df4-9561-4345-a98c-0559e3f787ff":"小于等于","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要输入 {tokenName} ,期望 {slot0}","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用户名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用户组","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"数值区间","be953f09-653f-4715-a3b9-9e0faef199b3":"全文检索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"语句不完整,缺少结尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手机:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等于","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"邮箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大于等于","e7413527-a5ee-4057-b765-3595cd26c09b":"关联搜索:status:(error OR warning) AND NOT service
|
|
1
|
+
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用户组:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜索条件已复制","19d6c313-9540-4042-b642-ebc6396ca0c7":"取消","1cd159c8-2a4d-4208-a170-55a34b91f671":"暂无数据,提交搜索后搜索关键字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切换为筛选模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 后缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"组合符号","30a2737a-c786-4f9f-bb22-02ca27a557ff":"结束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部门","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分组","3431b29b-5fb7-411f-8a1d-8d7676b03264":"帮助文档","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜索历史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"语法错误","43395ce9-35f2-4a6d-9e84-8c277369157b":"用户名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"标签搜索","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等于","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括号","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知输入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加载中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切换为手写CQL语法模式","632edd96-893f-4599-b1a3-0406e2146010":"确定","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小于","719234f9-de71-4fc6-ab3f-59287ff20570":"大于","79279aa4-ad27-4082-8093-06122d68c611":"部门:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"邮箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 后面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手机","914a6df4-9561-4345-a98c-0559e3f787ff":"小于等于","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要输入 {tokenName} ,期望 {slot0}","99b301b7-f153-4861-8ca3-22371b6b95d9":"请输入","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用户名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用户组","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"数值区间","be953f09-653f-4715-a3b9-9e0faef199b3":"全文检索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"语句不完整,缺少结尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手机:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等于","e25f1462-c823-434a-a6b2-4258dd57930a":"多语言配置","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"邮箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大于等于","e7413527-a5ee-4057-b765-3595cd26c09b":"关联搜索:status:(error OR warning) AND NOT service:\"service_a\"","e94234be-e478-4314-bc85-572cc285f5f9":"描述","f2447d25-e81c-4656-9e4c-f66741dd8a52":"匹配方式","f307bd91-6737-4667-9e89-daec35b21198":"描述:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"字段名称","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"暂未注册组件","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"完全匹配:\"hello world\""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用戶組:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜尋條件已複製","19d6c313-9540-4042-b642-ebc6396ca0c7":"取消","1cd159c8-2a4d-4208-a170-55a34b91f671":"暫無數據,提交搜尋後搜尋關鍵字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切換為篩選模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 後缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"組合符號","30a2737a-c786-4f9f-bb22-02ca27a557ff":"結束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部門","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分組","3431b29b-5fb7-411f-8a1d-8d7676b03264":"幫助文檔","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜尋歷史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"語法錯誤","43395ce9-35f2-4a6d-9e84-8c277369157b":"用戶名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"標籤搜尋","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等於","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括號","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知輸入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加載中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切換為手寫CQL語法模式","632edd96-893f-4599-b1a3-0406e2146010":"確定","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小於","719234f9-de71-4fc6-ab3f-59287ff20570":"大於","79279aa4-ad27-4082-8093-06122d68c611":"部門:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"郵箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 後面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手機","914a6df4-9561-4345-a98c-0559e3f787ff":"小於等於","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要輸入 {tokenName} ,期望 {slot0}","99b301b7-f153-4861-8ca3-22371b6b95d9":"請輸入","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用戶名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用戶組","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"數值區間","be953f09-653f-4715-a3b9-9e0faef199b3":"全文檢索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"語句不完整,缺少結尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手機:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等於","e25f1462-c823-434a-a6b2-4258dd57930a":"多語言配置","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"郵箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大於等於","e7413527-a5ee-4057-b765-3595cd26c09b":"關聯搜尋:status:(error OR warning) AND NOT service:\"service_a\"","e94234be-e478-4314-bc85-572cc285f5f9":"描述","f2447d25-e81c-4656-9e4c-f66741dd8a52":"匹配方式","f307bd91-6737-4667-9e89-daec35b21198":"描述:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"字段名稱","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"暫未註冊組件","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"完全匹配:\"hello world\""}
|
package/lib/locales/zh_TW.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用戶組:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜索條件已複製","1cd159c8-2a4d-4208-a170-55a34b91f671":"暫無數據,提交搜索後搜索關鍵字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切換為篩選模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 後缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"組合符號","30a2737a-c786-4f9f-bb22-02ca27a557ff":"結束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部門","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分組","3431b29b-5fb7-411f-8a1d-8d7676b03264":"幫助文檔","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜索歷史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"語法錯誤","43395ce9-35f2-4a6d-9e84-8c277369157b":"用戶名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"標籤搜索","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等於","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括弧","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知輸入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加載中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切換為手寫CQL語法模式","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小於","719234f9-de71-4fc6-ab3f-59287ff20570":"大於","79279aa4-ad27-4082-8093-06122d68c611":"部門:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"郵箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 後面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手機","914a6df4-9561-4345-a98c-0559e3f787ff":"小於等於","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要輸入 {tokenName} ,期望 {slot0}","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用戶名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用戶組","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"數值區間","be953f09-653f-4715-a3b9-9e0faef199b3":"全文檢索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"語句不完整,缺少結尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手機:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等於","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"郵箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大於等於","e7413527-a5ee-4057-b765-3595cd26c09b":"關聯搜索:status:(error OR warning) AND NOT service
|
|
1
|
+
{"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用戶組:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜索條件已複製","19d6c313-9540-4042-b642-ebc6396ca0c7":"取消","1cd159c8-2a4d-4208-a170-55a34b91f671":"暫無數據,提交搜索後搜索關鍵字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切換為篩選模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 後缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"組合符號","30a2737a-c786-4f9f-bb22-02ca27a557ff":"結束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部門","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分組","3431b29b-5fb7-411f-8a1d-8d7676b03264":"幫助文檔","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜索歷史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"語法錯誤","43395ce9-35f2-4a6d-9e84-8c277369157b":"用戶名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"標籤搜索","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等於","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括弧","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知輸入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加載中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名 ","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切換為手寫CQL語法模式","632edd96-893f-4599-b1a3-0406e2146010":"確定","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小於","719234f9-de71-4fc6-ab3f-59287ff20570":"大於","79279aa4-ad27-4082-8093-06122d68c611":"部門:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"郵箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 後面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手機","914a6df4-9561-4345-a98c-0559e3f787ff":"小於等於","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要輸入 {tokenName} ,期望 {slot0}","99b301b7-f153-4861-8ca3-22371b6b95d9":"請輸入","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用戶名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用戶組","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"數值區間","be953f09-653f-4715-a3b9-9e0faef199b3":"全文檢索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"語句不完整,缺少結尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手機:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等於","e25f1462-c823-434a-a6b2-4258dd57930a":"多語言配置","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"郵箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大於等於","e7413527-a5ee-4057-b765-3595cd26c09b":"關聯搜索:status:(error OR warning) AND NOT service:\"service_a\"","e94234be-e478-4314-bc85-572cc285f5f9":"描述\t","f2447d25-e81c-4656-9e4c-f66741dd8a52":"匹配方式","f307bd91-6737-4667-9e89-daec35b21198":"描述:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"字段名稱","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"暫未註冊組件","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"完全匹配:\"hello world\""}
|
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.1.0",
|
|
5
5
|
"description": "业务组件库",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ui",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@babel/plugin-transform-spread": "^7.16.7",
|
|
29
29
|
"@babel/preset-env": "^7.16.11",
|
|
30
30
|
"@babel/preset-typescript": "^7.16.7",
|
|
31
|
+
"@chaoswise/intl": "^3.2.0",
|
|
31
32
|
"@babel/runtime-corejs3": "^7.11.2",
|
|
32
|
-
"@chaoswise/
|
|
33
|
-
"@chaoswise/ui": "^2.7.5",
|
|
33
|
+
"@chaoswise/ui": "^2.8.0",
|
|
34
34
|
"@chaoswise/utils": "^1.0.0",
|
|
35
35
|
"@storybook/addon-actions": "^6.4.22",
|
|
36
36
|
"@storybook/addon-essentials": "^6.4.22",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"antlr4": "4.9.2",
|
|
79
|
-
"react-copy-to-clipboard": "^5.1.0"
|
|
80
|
-
"react-intl-universal": "^2.9.1"
|
|
79
|
+
"react-copy-to-clipboard": "^5.1.0"
|
|
81
80
|
},
|
|
82
81
|
"peerDependencies": {
|
|
83
|
-
"@chaoswise/ui": ">=2.
|
|
82
|
+
"@chaoswise/ui": ">=2.8.0",
|
|
83
|
+
"@chaoswise/intl": ">=3.2.0"
|
|
84
84
|
},
|
|
85
85
|
"author": "cloudwiser",
|
|
86
86
|
"homepage": "",
|
|
@@ -107,7 +107,10 @@
|
|
|
107
107
|
"build-tar": "node ./scripts/build-tar.js",
|
|
108
108
|
"intl-init": "chaoswise-intl init",
|
|
109
109
|
"intl-collect": "chaoswise-intl collect",
|
|
110
|
-
"intl-update": "chaoswise-intl update"
|
|
110
|
+
"intl-update": "chaoswise-intl update",
|
|
111
|
+
"intl-addLocale": "chaoswise-intl addLocale",
|
|
112
|
+
"intl-verify": "chaoswise-intl verify",
|
|
113
|
+
"intl-verifyFix": "chaoswise-intl verify fix"
|
|
111
114
|
},
|
|
112
115
|
"publishConfig": {
|
|
113
116
|
"access": "public"
|