@chaoswise/business 1.0.4 → 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.
Files changed (33) hide show
  1. package/lib/AggregateSearch/CLSPL/CLQLLexer.js +1 -1
  2. package/lib/AggregateSearch/CLSPL/CLQLParser.js +170 -170
  3. package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +1 -1
  4. package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +1 -1
  5. package/lib/AggregateSearch/CLSPL/SPLStagy.js +1 -1
  6. package/lib/AggregateSearch/CLSPL/index.js +1 -1
  7. package/lib/AggregateSearch/components/DropDown/index.js +80 -88
  8. package/lib/AggregateSearch/hooks/useDropDown.js +1 -1
  9. package/lib/AggregateSearch/index.js +49 -66
  10. package/lib/AggregateSearch/utils/index.js +1 -1
  11. package/lib/ContentEditableSearch/index.js +17 -19
  12. package/lib/I18nInput/index.js +278 -0
  13. package/lib/I18nInput/index.less +7 -0
  14. package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/index.js +2 -2
  15. package/lib/PropertyControlViewer/components/DoAppIcon/index.js +2 -2
  16. package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +1 -1
  17. package/lib/PropertyControlViewer/components/DoImage.js +13 -13
  18. package/lib/PropertyControlViewer/components/DoSelect.js +1 -1
  19. package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +1 -1
  20. package/lib/PropertyControlViewer/config/utils.js +1 -1
  21. package/lib/PropertyControlViewer/index.js +3 -3
  22. package/lib/Watermark/index.js +20 -23
  23. package/lib/index.js +2 -1
  24. package/lib/locales/en_US.json +1 -1
  25. package/lib/locales/index.js +31 -12
  26. package/lib/locales/intl.js +80 -25
  27. package/lib/locales/ja_JP.json +1 -0
  28. package/lib/locales/localeCode.js +13 -0
  29. package/lib/locales/withLocale.js +1 -1
  30. package/lib/locales/zh_CN.json +1 -1
  31. package/lib/locales/zh_HK.json +1 -0
  32. package/lib/locales/zh_TW.json +1 -1
  33. package/package.json +12 -9
@@ -8,14 +8,15 @@ 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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
+ 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 }; })(); }
12
+ 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); }
12
13
  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); }
13
14
  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); }); }; }
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; }
15
+ 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; }
16
+ 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
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; }
17
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- 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); }
19
+ 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); }
19
20
  import React, { useEffect, useState, useRef, useCallback } from "react";
20
21
  import PropTypes from "prop-types";
21
22
  import moment from "moment";
@@ -40,11 +41,11 @@ var WatermarkCom = function WatermarkCom(_ref) {
40
41
  var _ref$type = _ref.type,
41
42
  type = _ref$type === void 0 ? "desktop" : _ref$type,
42
43
  _ref$fetchWatermark = _ref.fetchWatermark,
43
- fetchWatermark = _ref$fetchWatermark === void 0 ? /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
44
- return _regeneratorRuntime().wrap(function _callee$(_context) {
45
- while (1) switch (_context.prev = _context.next) {
44
+ fetchWatermark = _ref$fetchWatermark === void 0 ? /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
45
+ return _regenerator().w(function (_context) {
46
+ while (1) switch (_context.n) {
46
47
  case 0:
47
- return _context.abrupt("return", fetch("/docp/gateway/douc/api/v1/watermark/query").then(function (res) {
48
+ return _context.a(2, fetch("/docp/gateway/douc/api/v1/watermark/query").then(function (res) {
48
49
  return res.json();
49
50
  }).then(function (res) {
50
51
  if (res && res.code === 100000) {
@@ -55,9 +56,6 @@ var WatermarkCom = function WatermarkCom(_ref) {
55
56
  })["catch"](function (error) {
56
57
  console.error(error);
57
58
  }));
58
- case 1:
59
- case "end":
60
- return _context.stop();
61
59
  }
62
60
  }, _callee);
63
61
  })) : _ref$fetchWatermark,
@@ -90,21 +88,21 @@ var WatermarkCom = function WatermarkCom(_ref) {
90
88
  }, [densityConfig, type]);
91
89
  useEffect(function () {
92
90
  var fetchWatermarkFn = /*#__PURE__*/function () {
93
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
91
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
94
92
  var watermarkInfo, status, params, density, size, transparency, rotation, timeStrField, props;
95
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
96
- while (1) switch (_context2.prev = _context2.next) {
93
+ return _regenerator().w(function (_context2) {
94
+ while (1) switch (_context2.n) {
97
95
  case 0:
98
- _context2.next = 2;
96
+ _context2.n = 1;
99
97
  return fetchWatermark();
100
- case 2:
101
- watermarkInfo = _context2.sent;
98
+ case 1:
99
+ watermarkInfo = _context2.v;
102
100
  if (watermarkInfo) {
103
- _context2.next = 5;
101
+ _context2.n = 2;
104
102
  break;
105
103
  }
106
- return _context2.abrupt("return");
107
- case 5:
104
+ return _context2.a(2);
105
+ case 2:
108
106
  status = watermarkInfo.status, params = watermarkInfo.params, density = watermarkInfo.density, size = watermarkInfo.size, transparency = watermarkInfo.transparency, rotation = watermarkInfo.rotation; // 处理时间戳
109
107
  timeStrField = params === null || params === void 0 ? void 0 : params.find(function (filed) {
110
108
  return filed.key === "timeStr";
@@ -127,9 +125,8 @@ var WatermarkCom = function WatermarkCom(_ref) {
127
125
  };
128
126
  setVisible(!!status);
129
127
  setWatermarkProps(props);
130
- case 11:
131
- case "end":
132
- return _context2.stop();
128
+ case 3:
129
+ return _context2.a(2);
133
130
  }
134
131
  }, _callee2);
135
132
  }));
package/lib/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as PropertyControlViewer } from "./PropertyControlViewer";
2
2
  export { default as AggregateSearch } from "./AggregateSearch";
3
3
  export { default as Watermark } from "./Watermark";
4
- export { default as ContentEditableSearch } from "./ContentEditableSearch";
4
+ export { default as ContentEditableSearch } from "./ContentEditableSearch";
5
+ export { default as I18nInput } from "./I18nInput";
@@ -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":"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","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":"Email:","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}","b2df07f1-b093-4f56-9ec2-af471999634d":"Location","b59f74be-dff0-4e3e-92db-354b475c3efd":"Username:","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":"Phone:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"is","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":"The component is not registered yet","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"exact match: \"hello world\""}
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\""}
@@ -1,7 +1,14 @@
1
- import { useEffect, useContext, useMemo } from "react";
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
- var map = {
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
- if (TagInitInstance.getCurrentLocale() === currentLocale) {
33
- return;
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;
@@ -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, 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 _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 { ReactIntlUniversal } from 'react-intl-universal';
16
- var IntlInstance = new ReactIntlUniversal();
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 initFunc = function initFunc(currentLocale, data) {
49
- IntlInstance.init({
50
- currentLocale: currentLocale,
51
- locales: _defineProperty({}, currentLocale, data)
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
- if (currentLocale === "zh_TW") {
67
- import("./zh_TW.json").then(function (res) {
68
- initFunc(currentLocale, res["default"]);
69
- cb();
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, 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); }
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; }
@@ -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:“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\""}
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\""}
@@ -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:“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\""}
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",
4
+ "version": "1.1.0",
5
5
  "description": "业务组件库",
6
6
  "keywords": [
7
7
  "ui",
@@ -28,9 +28,10 @@
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/intl": "^2.1.0",
33
- "@chaoswise/ui": "2.5.2",
33
+ "@chaoswise/ui": "^2.8.0",
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",
@@ -75,11 +76,11 @@
75
76
  },
76
77
  "dependencies": {
77
78
  "antlr4": "4.9.2",
78
- "react-copy-to-clipboard": "^5.1.0",
79
- "react-intl-universal": "^2.9.1"
79
+ "react-copy-to-clipboard": "^5.1.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@chaoswise/ui": ">=2.4.0"
82
+ "@chaoswise/ui": ">=2.8.0",
83
+ "@chaoswise/intl": ">=3.2.0"
83
84
  },
84
85
  "author": "cloudwiser",
85
86
  "homepage": "",
@@ -106,11 +107,13 @@
106
107
  "build-tar": "node ./scripts/build-tar.js",
107
108
  "intl-init": "chaoswise-intl init",
108
109
  "intl-collect": "chaoswise-intl collect",
109
- "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"
110
114
  },
111
115
  "publishConfig": {
112
116
  "access": "public"
113
117
  },
114
- "license": "MIT",
115
- "gitHead": "6986b1b02941387dce633e0be6bcd202e3dd8028"
118
+ "license": "MIT"
116
119
  }