@chaoswise/ui 2.7.7 → 2.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/lib/AbreastLayout/index.js +2 -2
  2. package/lib/AdaptiveLayout/index.js +2 -2
  3. package/lib/Alert/index.js +2 -2
  4. package/lib/AlgorithmChart/index.js +2 -2
  5. package/lib/Antd/Drawer.js +2 -2
  6. package/lib/Antd4Form/FieldList.js +2 -2
  7. package/lib/Antd4Form/Form.js +2 -2
  8. package/lib/Antd4Form/FormItem.js +2 -2
  9. package/lib/Antd4Form/FormItemChildren.js +2 -2
  10. package/lib/BasicLayout/Breadcrumb.js +2 -2
  11. package/lib/BasicLayout/Footer.js +2 -2
  12. package/lib/BasicLayout/Sider.js +2 -2
  13. package/lib/BasicLayout/index.js +5 -5
  14. package/lib/BasicLayout/locale/index.js +2 -0
  15. package/lib/BasicLayout/locale/ja_JP.js +4 -0
  16. package/lib/Button/index.js +2 -2
  17. package/lib/CWCascader/Cascader/index.js +2 -2
  18. package/lib/CWCascader/rc-cascader/Cascader.js +2 -2
  19. package/lib/CWCascader/rc-cascader/OptionList/Column.js +17 -18
  20. package/lib/CWMessage/MessageContent/TabList/index.js +10 -10
  21. package/lib/CWMessage/MessageContent/index.js +46 -30
  22. package/lib/CWMessage/index.js +36 -39
  23. package/lib/CWMessage/locale/index.js +2 -0
  24. package/lib/CWMessage/locale/ja_JP.js +8 -0
  25. package/lib/CWRadioTabs/index.js +2 -2
  26. package/lib/CWRangePicker/DropdownMenu/index.js +2 -2
  27. package/lib/CWRangePicker/Refresh/index.js +2 -2
  28. package/lib/CWRangePicker/index.js +13 -13
  29. package/lib/CWRangePicker/locale/index.js +2 -0
  30. package/lib/CWRangePicker/locale/ja_JP.js +29 -0
  31. package/lib/CWSelect/antd-select.js +2 -2
  32. package/lib/CWSelect/index.js +5 -5
  33. package/lib/CWSelect/locale/index.js +2 -0
  34. package/lib/CWSelect/locale/ja_JP.js +4 -0
  35. package/lib/CWTable/CWTable.js +25 -25
  36. package/lib/CWTable/EditLine.js +2 -2
  37. package/lib/CWTable/header.js +2 -2
  38. package/lib/CWTable/locale/index.js +2 -0
  39. package/lib/CWTable/locale/ja_JP.js +6 -0
  40. package/lib/CWTree/index.js +2 -2
  41. package/lib/CWTree/locale/index.js +2 -0
  42. package/lib/CWTree/locale/ja_JP.js +3 -0
  43. package/lib/CWUpload/locale/index.js +2 -0
  44. package/lib/CWUpload/locale/ja_JP.js +6 -0
  45. package/lib/CardSelect/index.js +2 -2
  46. package/lib/Checkbox/Checkbox.js +2 -2
  47. package/lib/Checkbox/Group.js +2 -2
  48. package/lib/Collapse/index.js +2 -2
  49. package/lib/ColorPicker/locale/index.js +2 -0
  50. package/lib/ColorPicker/locale/ja_JP.js +4 -0
  51. package/lib/ConfigProvider/ConfigProvider.js +13 -5
  52. package/lib/CustomNotification/PurePanel.js +2 -2
  53. package/lib/CustomNotification/useNotification.js +2 -2
  54. package/lib/CustomScrollBar/index.js +2 -2
  55. package/lib/DateRangePicker/RangeDatePicker.js +2 -2
  56. package/lib/DateRangePicker/RangeDateTimePicker.js +5 -5
  57. package/lib/DateRangePicker/index.js +2 -2
  58. package/lib/DateRangePicker/locale/index.js +2 -0
  59. package/lib/DateRangePicker/locale/ja_JP.js +5 -0
  60. package/lib/Documentation/index.js +2 -2
  61. package/lib/Drawer/index.js +2 -2
  62. package/lib/DropdownDatePicker/DropdownMenu/index.js +2 -2
  63. package/lib/DropdownDatePicker/index.js +5 -5
  64. package/lib/DropdownDatePicker/locale/index.js +2 -0
  65. package/lib/DropdownDatePicker/locale/ja_JP.js +21 -0
  66. package/lib/EchartsArea/index.js +2 -2
  67. package/lib/EchartsBar/index.js +2 -2
  68. package/lib/EchartsBarRow/index.js +2 -2
  69. package/lib/EchartsBase/index.js +2 -2
  70. package/lib/EchartsLine/index.js +2 -2
  71. package/lib/EchartsPie/index.js +2 -2
  72. package/lib/EchartsRing/index.js +2 -2
  73. package/lib/EditableText/index.js +2 -2
  74. package/lib/Empty/index.js +2 -2
  75. package/lib/Empty/locale/index.js +2 -0
  76. package/lib/Empty/locale/ja_JP.js +3 -0
  77. package/lib/ErrorBoundary/locale/index.js +2 -0
  78. package/lib/ErrorBoundary/locale/ja_JP.js +5 -0
  79. package/lib/Exception/locale/index.js +2 -0
  80. package/lib/Exception/locale/ja_JP.js +9 -0
  81. package/lib/FilterDropDown/locale/index.js +2 -0
  82. package/lib/FilterDropDown/locale/ja_JP.js +3 -0
  83. package/lib/Footer/index.js +2 -2
  84. package/lib/Form/FormItem.js +2 -2
  85. package/lib/FormItemWrapper/index.js +2 -2
  86. package/lib/Formily/FieldList/index.js +2 -2
  87. package/lib/Formily/FormItem/index.js +2 -2
  88. package/lib/Formily/FormItem/items/formItemWrapper.js +2 -2
  89. package/lib/Formily/subscribeFields/index.js +2 -2
  90. package/lib/GlobalTabs/TabPane.js +2 -2
  91. package/lib/GlobalTabs/index.js +2 -2
  92. package/lib/Header/CommonDropMenu.js +2 -2
  93. package/lib/Header/LocaleSwitcher.js +2 -2
  94. package/lib/Header/Message/index.js +2 -2
  95. package/lib/IconSelect/locale/index.js +2 -0
  96. package/lib/IconSelect/locale/ja_JP.js +11 -0
  97. package/lib/ImagePreview/index.js +2 -2
  98. package/lib/Input/InputComponent.js +2 -2
  99. package/lib/InputNumber/index.js +2 -2
  100. package/lib/IntersectionInput/index.js +2 -2
  101. package/lib/Joyride/index.js +5 -5
  102. package/lib/Joyride/locale/index.js +2 -0
  103. package/lib/Joyride/locale/ja_JP.js +25 -0
  104. package/lib/LayoutBreadcrumb/index.js +2 -2
  105. package/lib/LayoutWrapper/Footer.js +2 -2
  106. package/lib/LayoutWrapper/Header.js +2 -2
  107. package/lib/LazyLoadingTreeSelect/index.js +2 -2
  108. package/lib/Modal/Modal.js +2 -2
  109. package/lib/Modal/index.js +2 -2
  110. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +40 -41
  111. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +22 -23
  112. package/lib/ModuleTitle/index.js +2 -2
  113. package/lib/OutlineNumber/index.js +2 -2
  114. package/lib/Pagination/index.js +2 -2
  115. package/lib/Pagination/locale/index.js +2 -0
  116. package/lib/Pagination/locale/ja_JP.js +8 -0
  117. package/lib/PolymerizationSearch/index.js +7 -7
  118. package/lib/Popconfirm/index.js +2 -2
  119. package/lib/Progress/index.js +2 -2
  120. package/lib/Progress/locale/index.js +2 -0
  121. package/lib/Progress/locale/ja_JP.js +3 -0
  122. package/lib/QuickRangePicker/index.js +2 -2
  123. package/lib/QuickTransfer/index.js +15 -15
  124. package/lib/QuickTransfer/locale/index.js +2 -0
  125. package/lib/QuickTransfer/locale/ja_JP.js +8 -0
  126. package/lib/Radio/Radio.js +2 -2
  127. package/lib/RangePicker/index.js +2 -2
  128. package/lib/RangePicker/locale/index.js +2 -0
  129. package/lib/RangePicker/locale/ja_JP.js +5 -0
  130. package/lib/ReactSelect/CustomControl.js +2 -2
  131. package/lib/ReactSelect/CustomMultiValueLabel.js +2 -2
  132. package/lib/ReactSelect/CustomOption.js +2 -2
  133. package/lib/ReactSelect/CustomSingleValue.js +2 -2
  134. package/lib/ReactSelect/index.js +2 -2
  135. package/lib/ScrollLoad/index.js +2 -2
  136. package/lib/SearchBar/index.js +9 -9
  137. package/lib/SearchBar/locale/index.js +2 -0
  138. package/lib/SearchBar/locale/ja_JP.js +6 -0
  139. package/lib/SelectBackup/index.js +2 -2
  140. package/lib/SiderMenu/Item.js +2 -2
  141. package/lib/SiderMenu/index.js +2 -2
  142. package/lib/SiderMenu/sub-menu.js +2 -2
  143. package/lib/SimpleCard/index.js +2 -2
  144. package/lib/SingleSpa/index.js +24 -26
  145. package/lib/Tabs/index.js +2 -2
  146. package/lib/Tag/CheckableTag.js +2 -2
  147. package/lib/Tag/index.js +2 -2
  148. package/lib/ThemeProvider/main.js +2 -2
  149. package/lib/TimeRangeSlider/Refresh/index.js +2 -2
  150. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +3 -3
  151. package/lib/TimeRangeSlider/index.js +8 -8
  152. package/lib/TimeRangeSlider/locale/index.js +2 -0
  153. package/lib/TimeRangeSlider/locale/ja_JP.js +31 -0
  154. package/lib/TimeZoneSelect/index.js +23 -24
  155. package/lib/Tooltip/index.js +2 -2
  156. package/lib/TooltipText/index.js +2 -2
  157. package/lib/TreeSelect111/index.js +2 -2
  158. package/lib/TreeSelect111/locale/index.js +2 -0
  159. package/lib/TreeSelect111/locale/ja_JP.js +3 -0
  160. package/lib/Upload-back/index.js +2 -2
  161. package/lib/VerticalLayout/index.js +2 -2
  162. package/lib/WangEditor/editor4.js +2 -2
  163. package/lib/WangEditor/index.js +4 -3
  164. package/lib/WangEditor/locale/index.js +31 -0
  165. package/lib/configHoc/index.js +2 -2
  166. package/lib/useLocale/index.js +2 -2
  167. package/package.json +3 -4
@@ -17,7 +17,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
17
17
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- function _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; }
20
+ 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 }; })(); }
21
+ 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); }
21
22
  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); }
22
23
  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); }); }; }
23
24
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -40,7 +41,25 @@ var localOptionsMap = {
40
41
  en_US: "enName",
41
42
  zh_TW: "name",
42
43
  zh: "name",
43
- zh_CN: "name"
44
+ zh_CN: "name",
45
+ ja: "jaName",
46
+ ja_JP: "jaName"
47
+ };
48
+
49
+ // 获取本地化字段名的方法,提供兜底逻辑
50
+ var getLocalizedField = function getLocalizedField(locale) {
51
+ return localOptionsMap[locale];
52
+ };
53
+
54
+ // 获取本地化的 tab 名称,最终兜底到 name 字段
55
+ var getLocalizedTabName = function getLocalizedTabName(item, locale) {
56
+ var fieldName = getLocalizedField(locale);
57
+ // 判断 item 中是否包含转换后的字段
58
+ if (fieldName && fieldName in item) {
59
+ return item[fieldName];
60
+ }
61
+ // 否则使用 name 字段
62
+ return item.name;
44
63
  };
45
64
  var MessageContent = function MessageContent(props) {
46
65
  var hideOnSinglePage = props.hideOnSinglePage,
@@ -85,16 +104,16 @@ var MessageContent = function MessageContent(props) {
85
104
  _getMessageListApi = requestOption.getMessageListApi,
86
105
  _getMessageUnreadCountApi = requestOption.getMessageUnreadCountApi;
87
106
  useEffect(function () {
88
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
107
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
89
108
  var resRequestApi, res, _data$, data, params;
90
- return _regeneratorRuntime().wrap(function _callee$(_context) {
91
- while (1) switch (_context.prev = _context.next) {
109
+ return _regenerator().w(function (_context) {
110
+ while (1) switch (_context.n) {
92
111
  case 0:
93
112
  resRequestApi = _getMessageTypeApi || getMessageTypeApi;
94
- _context.next = 3;
113
+ _context.n = 1;
95
114
  return resRequestApi(gatewayPrefix);
96
- case 3:
97
- res = _context.sent;
115
+ case 1:
116
+ res = _context.v;
98
117
  if (res && res.status == "success") {
99
118
  data = res.data;
100
119
  setTabOption(data);
@@ -104,9 +123,8 @@ var MessageContent = function MessageContent(props) {
104
123
  getMessageList(params);
105
124
  }
106
125
  getMessageUnreadCount();
107
- case 6:
108
- case "end":
109
- return _context.stop();
126
+ case 2:
127
+ return _context.a(2);
110
128
  }
111
129
  }, _callee);
112
130
  }))();
@@ -117,27 +135,26 @@ var MessageContent = function MessageContent(props) {
117
135
  locale = _useLocale$locale === void 0 ? "zh_CN" : _useLocale$locale;
118
136
  // 查询消息列表(接口)
119
137
  var getMessageList = /*#__PURE__*/function () {
120
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
138
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(params) {
121
139
  var resRequestApi, res, _res$data, _total, _res$data$records, records;
122
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
123
- while (1) switch (_context2.prev = _context2.next) {
140
+ return _regenerator().w(function (_context2) {
141
+ while (1) switch (_context2.n) {
124
142
  case 0:
125
143
  setLoading(true);
126
144
  conditionsRef.current = _objectSpread(_objectSpread({}, conditionsRef.current), params);
127
145
  resRequestApi = _getMessageListApi || getMessageListApi;
128
- _context2.next = 5;
146
+ _context2.n = 1;
129
147
  return resRequestApi(conditionsRef.current, gatewayPrefix);
130
- case 5:
131
- res = _context2.sent;
148
+ case 1:
149
+ res = _context2.v;
132
150
  if (res && res.status == "success") {
133
151
  _res$data = res.data, _total = _res$data.total, _res$data$records = _res$data.records, records = _res$data$records === void 0 ? [] : _res$data$records;
134
152
  setDataSource(records);
135
153
  setTotal(_total);
136
154
  }
137
155
  setLoading(false);
138
- case 8:
139
- case "end":
140
- return _context2.stop();
156
+ case 2:
157
+ return _context2.a(2);
141
158
  }
142
159
  }, _callee2);
143
160
  }));
@@ -147,24 +164,23 @@ var MessageContent = function MessageContent(props) {
147
164
  }();
148
165
  // 查询所有类型的未读消息数(接口)
149
166
  var getMessageUnreadCount = /*#__PURE__*/function () {
150
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
167
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
151
168
  var resRequestApi, res, _res$data$byType, byType, _unreadTypeArr;
152
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
153
- while (1) switch (_context3.prev = _context3.next) {
169
+ return _regenerator().w(function (_context3) {
170
+ while (1) switch (_context3.n) {
154
171
  case 0:
155
172
  resRequestApi = _getMessageUnreadCountApi || getMessageUnreadCountApi;
156
- _context3.next = 3;
173
+ _context3.n = 1;
157
174
  return resRequestApi(gatewayPrefix);
158
- case 3:
159
- res = _context3.sent;
175
+ case 1:
176
+ res = _context3.v;
160
177
  if (res && res.status == "success") {
161
178
  _res$data$byType = res.data.byType, byType = _res$data$byType === void 0 ? {} : _res$data$byType;
162
179
  _unreadTypeArr = Object.keys(byType || {});
163
180
  setUnreadTypeArr(_unreadTypeArr);
164
181
  }
165
- case 5:
166
- case "end":
167
- return _context3.stop();
182
+ case 2:
183
+ return _context3.a(2);
168
184
  }
169
185
  }, _callee3);
170
186
  }));
@@ -226,7 +242,7 @@ var MessageContent = function MessageContent(props) {
226
242
  className: "cw-message-content-tabs",
227
243
  animated: false
228
244
  }, tabOption.map(function (item) {
229
- var tabName = item[localOptionsMap[locale]];
245
+ var tabName = getLocalizedTabName(item, locale);
230
246
  var moreTitle = formatMessage(localeObj["more"]);
231
247
  return /*#__PURE__*/React.createElement(TabPane, {
232
248
  tab: unreadTypeArr.includes(item.code) ? /*#__PURE__*/React.createElement(_Badge, {
@@ -11,7 +11,8 @@ import _useConfigContext2 from "@chaoswise/ui/lib/useConfigContext";
11
11
  var _excluded = ["count"],
12
12
  _excluded2 = ["onClickStrongMessageItem"];
13
13
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
- 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; }
14
+ 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 }; })(); }
15
+ 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); }
15
16
  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); }
16
17
  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); }); }; }
17
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -25,8 +26,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
25
26
  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; }
26
27
  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; } }
27
28
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
28
- 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; }
29
- 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; }
29
+ 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; }
30
+ 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; }
30
31
  import React, { useState, useEffect, useMemo, useRef } from "react";
31
32
  import messageIcon from "./message.svg";
32
33
  import CommonIcon from "./CommonIcon";
@@ -115,9 +116,9 @@ function Message(props) {
115
116
  current: 1,
116
117
  pageSize: 30
117
118
  }),
118
- _useState10 = _slicedToArray(_useState9, 2),
119
- pageInfo = _useState10[0],
120
- setPageInfo = _useState10[1];
119
+ _useState0 = _slicedToArray(_useState9, 2),
120
+ pageInfo = _useState0[0],
121
+ setPageInfo = _useState0[1];
121
122
  // 初始化条件
122
123
  var conditionsRef = useRef({
123
124
  current: 1,
@@ -209,20 +210,20 @@ function Message(props) {
209
210
  }
210
211
  };
211
212
  var openNotification = /*#__PURE__*/function () {
212
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(time, id) {
213
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(time, id) {
213
214
  var params, resRequestApi, res, data, _ref2, userMessageId, title, summary;
214
- return _regeneratorRuntime().wrap(function _callee$(_context) {
215
- while (1) switch (_context.prev = _context.next) {
215
+ return _regenerator().w(function (_context) {
216
+ while (1) switch (_context.n) {
216
217
  case 0:
217
218
  params = {
218
219
  userMessageId: id,
219
220
  clientType: "BROWSER"
220
221
  };
221
222
  resRequestApi = _getMessageDetailApi || getMessageDetailApi;
222
- _context.next = 4;
223
+ _context.n = 1;
223
224
  return resRequestApi(params, gatewayPrefix);
224
- case 4:
225
- res = _context.sent;
225
+ case 1:
226
+ res = _context.v;
226
227
  if (res && res.status == "success") {
227
228
  data = res.data;
228
229
  _ref2 = data || {}, userMessageId = _ref2.userMessageId, title = _ref2.title, summary = _ref2.summary; // 消息语音提示
@@ -245,9 +246,8 @@ function Message(props) {
245
246
  key: id
246
247
  }, restStrongMessageOption));
247
248
  }
248
- case 6:
249
- case "end":
250
- return _context.stop();
249
+ case 2:
250
+ return _context.a(2);
251
251
  }
252
252
  }, _callee);
253
253
  }));
@@ -256,16 +256,15 @@ function Message(props) {
256
256
  };
257
257
  }();
258
258
  var readInnerMessage = /*#__PURE__*/function () {
259
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
259
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(params) {
260
260
  var resRequestApi;
261
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
262
- while (1) switch (_context2.prev = _context2.next) {
261
+ return _regenerator().w(function (_context2) {
262
+ while (1) switch (_context2.n) {
263
263
  case 0:
264
264
  resRequestApi = _readInnerMessageApi || readInnerMessageApi;
265
265
  resRequestApi(params, gatewayPrefix);
266
- case 2:
267
- case "end":
268
- return _context2.stop();
266
+ case 1:
267
+ return _context2.a(2);
269
268
  }
270
269
  }, _callee2);
271
270
  }));
@@ -302,17 +301,17 @@ function Message(props) {
302
301
  }
303
302
  };
304
303
  var connectSocket = /*#__PURE__*/function () {
305
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
304
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
306
305
  var resRequestApi, res, finalOrigin, socket;
307
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
308
- while (1) switch (_context3.prev = _context3.next) {
306
+ return _regenerator().w(function (_context3) {
307
+ while (1) switch (_context3.n) {
309
308
  case 0:
310
309
  // 获取sessionId
311
310
  resRequestApi = _getSessionId || getSessionId;
312
- _context3.next = 3;
311
+ _context3.n = 1;
313
312
  return resRequestApi(gatewayPrefix);
314
- case 3:
315
- res = _context3.sent;
313
+ case 1:
314
+ res = _context3.v;
316
315
  if (res && res.status == "success") {
317
316
  finalOrigin = socketOrigin || "ws://".concat(window.location.host); // 连接到后端socket服务器
318
317
  socket = io(finalOrigin, {
@@ -334,9 +333,8 @@ function Message(props) {
334
333
  };
335
334
  });
336
335
  }
337
- case 5:
338
- case "end":
339
- return _context3.stop();
336
+ case 2:
337
+ return _context3.a(2);
340
338
  }
341
339
  }, _callee3);
342
340
  }));
@@ -345,23 +343,22 @@ function Message(props) {
345
343
  };
346
344
  }();
347
345
  var getMessageQuerySettings = /*#__PURE__*/function () {
348
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
346
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
349
347
  var resRequestApi, res, data;
350
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
351
- while (1) switch (_context4.prev = _context4.next) {
348
+ return _regenerator().w(function (_context4) {
349
+ while (1) switch (_context4.n) {
352
350
  case 0:
353
351
  resRequestApi = _getMessageQuerySettingsApi || getMessageQuerySettingsApi;
354
- _context4.next = 3;
352
+ _context4.n = 1;
355
353
  return resRequestApi(gatewayPrefix);
356
- case 3:
357
- res = _context4.sent;
354
+ case 1:
355
+ res = _context4.v;
358
356
  if (res && res.status === "success") {
359
357
  data = res.data;
360
358
  messageOptionRef.current = data || {};
361
359
  }
362
- case 5:
363
- case "end":
364
- return _context4.stop();
360
+ case 2:
361
+ return _context4.a(2);
365
362
  }
366
363
  }, _callee4);
367
364
  }));
@@ -1,10 +1,12 @@
1
1
  import zh_CN from './zh_CN.js';
2
2
  import en_US from './en_US.js';
3
3
  import zh_TW from './zh_TW.js';
4
+ import ja_JP from './ja_JP.js';
4
5
  export default {
5
6
  zh_CN: zh_CN,
6
7
  en_US: en_US,
7
8
  zh_TW: zh_TW,
9
+ ja_JP: ja_JP,
8
10
  // 兼容
9
11
  zh: zh_CN,
10
12
  en: en_US
@@ -0,0 +1,8 @@
1
+ export default {
2
+ "markAllRead": "すべて既読にする",
3
+ "no_new_messages": "新しいメッセージはありません",
4
+ "more": "さらに表示",
5
+ "totalItems": "合計{total}件",
6
+ "ok": "OK",
7
+ "playAutomatically": "メッセージ通知の自動再生にはユーザー操作が必要です"
8
+ };
@@ -12,8 +12,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
12
12
  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; }
13
13
  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; } }
14
14
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
15
- 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; }
16
- 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; }
17
17
  import React, { forwardRef, useState, useEffect, useMemo } from "react";
18
18
  import PropTypes from "prop-types";
19
19
  import classnames from "classnames";
@@ -20,8 +20,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
20
20
  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; }
21
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
22
  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); }
23
- 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; }
24
- 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; }
23
+ 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; }
24
+ 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; }
25
25
  import React from "react";
26
26
  import classnames from "classnames";
27
27
  import CalendarSvg from "../assets/Calendar";
@@ -5,8 +5,8 @@ import "@chaoswise/ui/lib/Button/index.less";
5
5
  import _Button from "@chaoswise/ui/lib/Button";
6
6
  import _useLocale2 from "@chaoswise/ui/lib/useLocale";
7
7
  var _excluded = ["value", "key"];
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  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; }
@@ -29,8 +29,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
29
29
  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; }
30
30
  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; } }
31
31
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
32
- 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; }
33
- 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; }
32
+ 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; }
33
+ 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; }
34
34
  import React, { forwardRef, useState, useEffect, useMemo, useRef, useImperativeHandle } from "react";
35
35
  import PropTypes from "prop-types";
36
36
  import classnames from "classnames";
@@ -135,19 +135,19 @@ var CWRangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
135
135
  setIsAutoRefresh = _useState8[1];
136
136
  // 日历选择器时间
137
137
  var _useState9 = useState([]),
138
- _useState10 = _slicedToArray(_useState9, 2),
139
- rangePickerValue = _useState10[0],
140
- setRangePickerValue = _useState10[1];
138
+ _useState0 = _slicedToArray(_useState9, 2),
139
+ rangePickerValue = _useState0[0],
140
+ setRangePickerValue = _useState0[1];
141
141
  // 是否切换到日历选择
142
- var _useState11 = useState(false),
143
- _useState12 = _slicedToArray(_useState11, 2),
144
- isCalendar = _useState12[0],
145
- setIsCalendar = _useState12[1];
142
+ var _useState1 = useState(false),
143
+ _useState10 = _slicedToArray(_useState1, 2),
144
+ isCalendar = _useState10[0],
145
+ setIsCalendar = _useState10[1];
146
146
  // 历史记录列表存储
147
- var _useState13 = useState([]),
148
- _useState14 = _slicedToArray(_useState13, 2),
149
- historyList = _useState14[0],
150
- setHistoryList = _useState14[1];
147
+ var _useState11 = useState([]),
148
+ _useState12 = _slicedToArray(_useState11, 2),
149
+ historyList = _useState12[0],
150
+ setHistoryList = _useState12[1];
151
151
  // 特殊时间选择器外壳容器
152
152
  var calendarRef = useRef(null);
153
153
  // 定时器计数
@@ -1,10 +1,12 @@
1
1
  import zh_CN from './zh_CN.js';
2
2
  import en_US from './en_US.js';
3
3
  import zh_TW from './zh_TW.js';
4
+ import ja_JP from './ja_JP.js';
4
5
  export default {
5
6
  zh_CN: zh_CN,
6
7
  en_US: en_US,
7
8
  zh_TW: zh_TW,
9
+ ja_JP: ja_JP,
8
10
  // 兼容
9
11
  zh: zh_CN,
10
12
  en: en_US
@@ -0,0 +1,29 @@
1
+ export default {
2
+ recover: "デフォルトに戻す",
3
+ forwardSmooth: "前方スムージング",
4
+ backSmooth: "後方スムージング",
5
+ ExpandSpan: "時間範囲を{span}倍に拡大",
6
+ refresh: "リフレッシュ",
7
+ autoRefresh: "自動リフレッシュ",
8
+ s: "秒",
9
+ m: "分",
10
+ h: "時間",
11
+ d: "日",
12
+ mo: "月",
13
+ y: "年",
14
+ more: "さらに表示",
15
+ "select-calendar": "カレンダーから選択",
16
+ recently: "最近",
17
+ relative: "相対",
18
+ absolute: "絶対",
19
+ unixTimestamp: "Unix",
20
+ other: "その他",
21
+ history: '履歴',
22
+ clear: 'クリア',
23
+ "enter manually": "以下の形式で手動入力できます",
24
+ "fit-the-input-format": "入力形式に適合",
25
+ "does-not-match-the-input-format": "入力形式に一致しません。再入力してください",
26
+ "the-selected-time-does-not-meet-the-rule-limit": "選択した時刻が同じか現在時刻を超えています。別の時刻を選択してください",
27
+ "the-maximum-time-span-is-exceeded": "最大時間範囲を超過しています。再入力してください",
28
+ "unconverted-title": "未変換のタイトル"
29
+ };
@@ -4,8 +4,8 @@ import _Icon from "@chaoswise/ui/lib/Icon";
4
4
  var _excluded = ["prefixCls", "className", "size", "mode", "getPopupContainer", "removeIcon", "clearIcon", "menuItemSelectedIcon", "showArrow", "showCheckbox", "children", "labelInValue", "activeKey", "onArrowClick", "dropdownClassName", "allowDrag"];
5
5
  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); }
6
6
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
7
- function _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; }
8
- 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; }
7
+ 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; }
8
+ 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; }
9
9
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
10
10
  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); } }
11
11
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -23,8 +23,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
23
23
  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; }
24
24
  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; } }
25
25
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
26
- 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; }
27
- 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; }
26
+ 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; }
27
+ 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; }
28
28
  import React, { useEffect, useState, forwardRef, useRef, useCallback, useMemo } from "react";
29
29
  import ReactDom from "react-dom";
30
30
  import RCSelect from "./antd-select";
@@ -107,9 +107,9 @@ var CWSelect = /*#__PURE__*/forwardRef(function (props, ref) {
107
107
  activeKey = _useState8[0],
108
108
  setActiveKey = _useState8[1];
109
109
  var _useState9 = useState(false),
110
- _useState10 = _slicedToArray(_useState9, 2),
111
- resOpen = _useState10[0],
112
- setResOpen = _useState10[1];
110
+ _useState0 = _slicedToArray(_useState9, 2),
111
+ resOpen = _useState0[0],
112
+ setResOpen = _useState0[1];
113
113
  var _showCheckbox = useMemo(function () {
114
114
  return mode === "multiple" && (showCheckbox || multipleOptions.showCheckbox);
115
115
  }, [mode, showCheckbox, multipleOptions.showCheckbox]);