@para-ui/core 4.0.17 → 4.0.19-aplha

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 (128) hide show
  1. package/Breadcrumbs/index.js +2 -2
  2. package/Button/SplitButton.d.ts +1 -1
  3. package/Button/index.js +2 -2
  4. package/ButtonGroup/index.js +2 -2
  5. package/Cascader/OptionList/Column.d.ts +1 -1
  6. package/Cascader/index.js +5 -6
  7. package/ColorPicker/chromePicker/index.d.ts +1 -2
  8. package/ColorPicker/compactPicker/index.d.ts +1 -2
  9. package/ColorPicker/sketchPicker/index.d.ts +1 -2
  10. package/ColorPicker/swatchesPicker/index.d.ts +1 -2
  11. package/ComboSelect/index.js +10 -7
  12. package/Container/index.d.ts +1 -1
  13. package/CopyText/index.js +2 -2
  14. package/CycleSelector/index.js +4 -4
  15. package/DatePicker/PickerButton.d.ts +1 -2
  16. package/DatePicker/PickerTag.d.ts +1 -2
  17. package/DatePicker/index.js +3 -4
  18. package/Descriptions/index.js +2 -2
  19. package/Desktop/index.js +3 -3
  20. package/DragVerify/index.js +3 -2
  21. package/Drawer/index.js +2 -2
  22. package/DynamicMultiBox/formItem.d.ts +1 -2
  23. package/DynamicMultiBox/index.js +10 -8
  24. package/DynamicMultiBox/interface.d.ts +1 -1
  25. package/DynamicMultiBox/rowForm.d.ts +1 -1
  26. package/Empty/images/index.d.ts +2 -3
  27. package/Empty/index.js +4 -3
  28. package/Form/index.js +9 -6
  29. package/FormItem/index.js +9 -6
  30. package/FunctionModal/index.js +4 -5
  31. package/FunctionModal/modalContext.d.ts +1 -2
  32. package/GlobalContext/index.js +3 -39
  33. package/InputLang/index.js +3 -3
  34. package/Message/index.d.ts +1 -1
  35. package/Modal/index.js +4 -5
  36. package/MultiBox/index.js +3 -3
  37. package/OperateBtn/index.js +2 -2
  38. package/PageHeader/index.js +2 -2
  39. package/Pagination/index.js +4 -4
  40. package/ParauiProvider/index.d.ts +2 -2
  41. package/ParauiProvider/index.js +2 -2
  42. package/PopConfirm/index.js +2 -2
  43. package/Prompt/index.d.ts +1 -1
  44. package/Querying/images/index.d.ts +2 -3
  45. package/Querying/index.js +4 -3
  46. package/QuickReply/index.js +3 -3
  47. package/README.md +8 -0
  48. package/Search/index.js +2 -2
  49. package/Select/index.js +4 -4
  50. package/SelectInput/index.js +4 -4
  51. package/Selector/index.js +5 -328
  52. package/SelectorPicker/index.js +4 -3
  53. package/SingleBox/index.js +3 -3
  54. package/Switch/index.js +3 -2
  55. package/Table/index.js +3 -3
  56. package/Tabs/index.js +2 -2
  57. package/TextEditor/index.js +2 -2
  58. package/TextField/index.js +2 -2
  59. package/TimePicker/index.js +3 -4
  60. package/Timeline/TimelineItem.d.ts +1 -1
  61. package/Timeline/index.js +20 -14
  62. package/ToggleButton/index.js +2 -2
  63. package/Tooltip/utils.d.ts +1 -1
  64. package/Transfer/box.d.ts +1 -1
  65. package/Transfer/index.d.ts +1 -1
  66. package/Transfer/index.js +3 -3
  67. package/Tree/index.js +11 -8
  68. package/Tree/utils/treeUtil.d.ts +1 -1
  69. package/Upload/index.js +3 -4
  70. package/_verture/{defineProperty-1d116156.js → defineProperty-51493dbe.js} +10 -2
  71. package/_verture/{index-02b7a0b7.js → index-0447e790.js} +395 -314
  72. package/_verture/index-287ae1b3.js +327 -0
  73. package/_verture/{index-cc76d8d5.js → index-344d4ffe.js} +2 -3
  74. package/_verture/{index-10792f39.js → index-3e98a394.js} +1 -1
  75. package/_verture/{intl-f2f27722.js → index-ca413216.js} +54 -1
  76. package/_verture/{useFormatMessage-eb13cf56.js → useFormatMessage-1fc7c957.js} +1 -1
  77. package/_verture/{useGlobalProps-1e416658.js → useGlobalProps-4ae1a007.js} +1 -1
  78. package/index.js +10 -12
  79. package/package.json +12 -16
  80. package/umd/Breadcrumbs.js +7 -7
  81. package/umd/Button.js +2 -2
  82. package/umd/ButtonGroup.js +4 -4
  83. package/umd/Carousel.js +3 -3
  84. package/umd/Cascader.js +1 -1
  85. package/umd/ColorPicker.js +1 -1
  86. package/umd/ComboSelect.js +5 -5
  87. package/umd/CopyText.js +7 -7
  88. package/umd/CycleSelector.js +5 -5
  89. package/umd/DatePicker.js +2 -2
  90. package/umd/Descriptions.js +7 -7
  91. package/umd/Desktop.js +2 -2
  92. package/umd/DragVerify.js +3 -3
  93. package/umd/Drawer.js +2 -2
  94. package/umd/DynamicMultiBox.js +3 -3
  95. package/umd/Empty.js +1 -1
  96. package/umd/Form.js +3 -3
  97. package/umd/FormItem.js +3 -3
  98. package/umd/FunctionModal.js +7 -7
  99. package/umd/GlobalContext.js +1 -1
  100. package/umd/InputLang.js +2 -2
  101. package/umd/Modal.js +2 -2
  102. package/umd/MultiBox.js +5 -5
  103. package/umd/OperateBtn.js +2 -2
  104. package/umd/PageHeader.js +4 -4
  105. package/umd/Pagination.js +3 -3
  106. package/umd/ParauiProvider.js +1 -1
  107. package/umd/PopConfirm.js +5 -5
  108. package/umd/Querying.js +1 -1
  109. package/umd/QuickReply.js +2 -2
  110. package/umd/Search.js +2 -2
  111. package/umd/Select.js +3 -3
  112. package/umd/SelectInput.js +3 -3
  113. package/umd/Selector.js +2 -2
  114. package/umd/SelectorPicker.js +4 -4
  115. package/umd/SingleBox.js +2 -2
  116. package/umd/Switch.js +2 -2
  117. package/umd/Table.js +5 -5
  118. package/umd/Tabs.js +2 -2
  119. package/umd/TextEditor.js +3 -3
  120. package/umd/TextField.js +2 -2
  121. package/umd/TimePicker.js +2 -2
  122. package/umd/ToggleButton.js +2 -2
  123. package/umd/Transfer.js +8 -8
  124. package/umd/Tree.js +4 -4
  125. package/umd/Upload.js +7 -7
  126. package/_verture/index-c568f272.js +0 -18
  127. package/_verture/typeof-adeedc13.js +0 -11
  128. /package/_verture/{modalContext-b101ffaa.js → modalContext-c8cc3107.js} +0 -0
@@ -0,0 +1,327 @@
1
+ import { _ as _typeof } from './typeof-6ec38efd.js';
2
+
3
+ var regeneratorRuntime$1 = {exports: {}};
4
+
5
+ (function (module) {
6
+ var _typeof$1 = _typeof.exports["default"];
7
+ function _regeneratorRuntime() {
8
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
9
+ return e;
10
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
11
+ var t,
12
+ e = {},
13
+ r = Object.prototype,
14
+ n = r.hasOwnProperty,
15
+ o = Object.defineProperty || function (t, e, r) {
16
+ t[e] = r.value;
17
+ },
18
+ i = "function" == typeof Symbol ? Symbol : {},
19
+ a = i.iterator || "@@iterator",
20
+ c = i.asyncIterator || "@@asyncIterator",
21
+ u = i.toStringTag || "@@toStringTag";
22
+ function define(t, e, r) {
23
+ return Object.defineProperty(t, e, {
24
+ value: r,
25
+ enumerable: !0,
26
+ configurable: !0,
27
+ writable: !0
28
+ }), t[e];
29
+ }
30
+ try {
31
+ define({}, "");
32
+ } catch (t) {
33
+ define = function define(t, e, r) {
34
+ return t[e] = r;
35
+ };
36
+ }
37
+ function wrap(t, e, r, n) {
38
+ var i = e && e.prototype instanceof Generator ? e : Generator,
39
+ a = Object.create(i.prototype),
40
+ c = new Context(n || []);
41
+ return o(a, "_invoke", {
42
+ value: makeInvokeMethod(t, r, c)
43
+ }), a;
44
+ }
45
+ function tryCatch(t, e, r) {
46
+ try {
47
+ return {
48
+ type: "normal",
49
+ arg: t.call(e, r)
50
+ };
51
+ } catch (t) {
52
+ return {
53
+ type: "throw",
54
+ arg: t
55
+ };
56
+ }
57
+ }
58
+ e.wrap = wrap;
59
+ var h = "suspendedStart",
60
+ l = "suspendedYield",
61
+ f = "executing",
62
+ s = "completed",
63
+ y = {};
64
+ function Generator() {}
65
+ function GeneratorFunction() {}
66
+ function GeneratorFunctionPrototype() {}
67
+ var p = {};
68
+ define(p, a, function () {
69
+ return this;
70
+ });
71
+ var d = Object.getPrototypeOf,
72
+ v = d && d(d(values([])));
73
+ v && v !== r && n.call(v, a) && (p = v);
74
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
75
+ function defineIteratorMethods(t) {
76
+ ["next", "throw", "return"].forEach(function (e) {
77
+ define(t, e, function (t) {
78
+ return this._invoke(e, t);
79
+ });
80
+ });
81
+ }
82
+ function AsyncIterator(t, e) {
83
+ function invoke(r, o, i, a) {
84
+ var c = tryCatch(t[r], t, o);
85
+ if ("throw" !== c.type) {
86
+ var u = c.arg,
87
+ h = u.value;
88
+ return h && "object" == _typeof$1(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
89
+ invoke("next", t, i, a);
90
+ }, function (t) {
91
+ invoke("throw", t, i, a);
92
+ }) : e.resolve(h).then(function (t) {
93
+ u.value = t, i(u);
94
+ }, function (t) {
95
+ return invoke("throw", t, i, a);
96
+ });
97
+ }
98
+ a(c.arg);
99
+ }
100
+ var r;
101
+ o(this, "_invoke", {
102
+ value: function value(t, n) {
103
+ function callInvokeWithMethodAndArg() {
104
+ return new e(function (e, r) {
105
+ invoke(t, n, e, r);
106
+ });
107
+ }
108
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
109
+ }
110
+ });
111
+ }
112
+ function makeInvokeMethod(e, r, n) {
113
+ var o = h;
114
+ return function (i, a) {
115
+ if (o === f) throw new Error("Generator is already running");
116
+ if (o === s) {
117
+ if ("throw" === i) throw a;
118
+ return {
119
+ value: t,
120
+ done: !0
121
+ };
122
+ }
123
+ for (n.method = i, n.arg = a;;) {
124
+ var c = n.delegate;
125
+ if (c) {
126
+ var u = maybeInvokeDelegate(c, n);
127
+ if (u) {
128
+ if (u === y) continue;
129
+ return u;
130
+ }
131
+ }
132
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
133
+ if (o === h) throw o = s, n.arg;
134
+ n.dispatchException(n.arg);
135
+ } else "return" === n.method && n.abrupt("return", n.arg);
136
+ o = f;
137
+ var p = tryCatch(e, r, n);
138
+ if ("normal" === p.type) {
139
+ if (o = n.done ? s : l, p.arg === y) continue;
140
+ return {
141
+ value: p.arg,
142
+ done: n.done
143
+ };
144
+ }
145
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
146
+ }
147
+ };
148
+ }
149
+ function maybeInvokeDelegate(e, r) {
150
+ var n = r.method,
151
+ o = e.iterator[n];
152
+ 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;
153
+ var i = tryCatch(o, e.iterator, r.arg);
154
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
155
+ var a = i.arg;
156
+ 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);
157
+ }
158
+ function pushTryEntry(t) {
159
+ var e = {
160
+ tryLoc: t[0]
161
+ };
162
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
163
+ }
164
+ function resetTryEntry(t) {
165
+ var e = t.completion || {};
166
+ e.type = "normal", delete e.arg, t.completion = e;
167
+ }
168
+ function Context(t) {
169
+ this.tryEntries = [{
170
+ tryLoc: "root"
171
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
172
+ }
173
+ function values(e) {
174
+ if (e || "" === e) {
175
+ var r = e[a];
176
+ if (r) return r.call(e);
177
+ if ("function" == typeof e.next) return e;
178
+ if (!isNaN(e.length)) {
179
+ var o = -1,
180
+ i = function next() {
181
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
182
+ return next.value = t, next.done = !0, next;
183
+ };
184
+ return i.next = i;
185
+ }
186
+ }
187
+ throw new TypeError(_typeof$1(e) + " is not iterable");
188
+ }
189
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
190
+ value: GeneratorFunctionPrototype,
191
+ configurable: !0
192
+ }), o(GeneratorFunctionPrototype, "constructor", {
193
+ value: GeneratorFunction,
194
+ configurable: !0
195
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
196
+ var e = "function" == typeof t && t.constructor;
197
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
198
+ }, e.mark = function (t) {
199
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
200
+ }, e.awrap = function (t) {
201
+ return {
202
+ __await: t
203
+ };
204
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
205
+ return this;
206
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
207
+ void 0 === i && (i = Promise);
208
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
209
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
210
+ return t.done ? t.value : a.next();
211
+ });
212
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
213
+ return this;
214
+ }), define(g, "toString", function () {
215
+ return "[object Generator]";
216
+ }), e.keys = function (t) {
217
+ var e = Object(t),
218
+ r = [];
219
+ for (var n in e) r.push(n);
220
+ return r.reverse(), function next() {
221
+ for (; r.length;) {
222
+ var t = r.pop();
223
+ if (t in e) return next.value = t, next.done = !1, next;
224
+ }
225
+ return next.done = !0, next;
226
+ };
227
+ }, e.values = values, Context.prototype = {
228
+ constructor: Context,
229
+ reset: function reset(e) {
230
+ 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);
231
+ },
232
+ stop: function stop() {
233
+ this.done = !0;
234
+ var t = this.tryEntries[0].completion;
235
+ if ("throw" === t.type) throw t.arg;
236
+ return this.rval;
237
+ },
238
+ dispatchException: function dispatchException(e) {
239
+ if (this.done) throw e;
240
+ var r = this;
241
+ function handle(n, o) {
242
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
243
+ }
244
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
245
+ var i = this.tryEntries[o],
246
+ a = i.completion;
247
+ if ("root" === i.tryLoc) return handle("end");
248
+ if (i.tryLoc <= this.prev) {
249
+ var c = n.call(i, "catchLoc"),
250
+ u = n.call(i, "finallyLoc");
251
+ if (c && u) {
252
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
253
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
254
+ } else if (c) {
255
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
256
+ } else {
257
+ if (!u) throw new Error("try statement without catch or finally");
258
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
259
+ }
260
+ }
261
+ }
262
+ },
263
+ abrupt: function abrupt(t, e) {
264
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
265
+ var o = this.tryEntries[r];
266
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
267
+ var i = o;
268
+ break;
269
+ }
270
+ }
271
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
272
+ var a = i ? i.completion : {};
273
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
274
+ },
275
+ complete: function complete(t, e) {
276
+ if ("throw" === t.type) throw t.arg;
277
+ 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;
278
+ },
279
+ finish: function finish(t) {
280
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
281
+ var r = this.tryEntries[e];
282
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
283
+ }
284
+ },
285
+ "catch": function _catch(t) {
286
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
287
+ var r = this.tryEntries[e];
288
+ if (r.tryLoc === t) {
289
+ var n = r.completion;
290
+ if ("throw" === n.type) {
291
+ var o = n.arg;
292
+ resetTryEntry(r);
293
+ }
294
+ return o;
295
+ }
296
+ }
297
+ throw new Error("illegal catch attempt");
298
+ },
299
+ delegateYield: function delegateYield(e, r, n) {
300
+ return this.delegate = {
301
+ iterator: values(e),
302
+ resultName: r,
303
+ nextLoc: n
304
+ }, "next" === this.method && (this.arg = t), y;
305
+ }
306
+ }, e;
307
+ }
308
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
309
+ } (regeneratorRuntime$1));
310
+
311
+ // TODO(Babel 8): Remove this file.
312
+
313
+ var runtime = regeneratorRuntime$1.exports();
314
+ var regenerator = runtime;
315
+
316
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
317
+ try {
318
+ regeneratorRuntime = runtime;
319
+ } catch (accidentalStrictMode) {
320
+ if (typeof globalThis === "object") {
321
+ globalThis.regeneratorRuntime = runtime;
322
+ } else {
323
+ Function("r", "regeneratorRuntime = r")(runtime);
324
+ }
325
+ }
326
+
327
+ export { regenerator as r };
@@ -1,9 +1,8 @@
1
1
  import { _ as __rest } from './tslib.es6-55ed4bd2.js';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-8f4c9589.js';
4
- import { _ as _defineProperty, a as _toPropertyKey } from './defineProperty-1d116156.js';
4
+ import { _ as _defineProperty, a as _typeof$1, b as _toPropertyKey } from './defineProperty-51493dbe.js';
5
5
  import { _ as _slicedToArray, a as _arrayWithHoles, b as _nonIterableRest } from './slicedToArray-a8206399.js';
6
- import { _ as _typeof$1 } from './typeof-adeedc13.js';
7
6
  import * as React$4 from 'react';
8
7
  import React__default, { useState as useState$1, useMemo as useMemo$1, useCallback, useRef, useEffect } from 'react';
9
8
  import ReactDOM, { unstable_batchedUpdates, createPortal, flushSync } from 'react-dom';
@@ -21,7 +20,7 @@ import { Forbid } from '@para-ui/icons';
21
20
  import { $ as $prefixCls } from './constant-5317fc89.js';
22
21
  import LoadingOutlined from '@para-ui/icons/LoadingF';
23
22
  import AutoTips from '../AutoTips/index.js';
24
- import { u as useFormatMessage } from './useFormatMessage-eb13cf56.js';
23
+ import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
25
24
  import { UUID } from '@paraview/lib';
26
25
  import { s as styleInject } from './style-inject.es-300983ab.js';
27
26
 
@@ -11,7 +11,7 @@ import ParaLinkGroup from '@para-ui/icons/LinkGroup';
11
11
  import AutoTips from '../AutoTips/index.js';
12
12
  import { Button } from '../Button/index.js';
13
13
  import UploadIcon from '@para-ui/icons/UploadFile';
14
- import { u as useFormatMessage } from './useFormatMessage-eb13cf56.js';
14
+ import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
15
15
  import { s as styleInject } from './style-inject.es-300983ab.js';
16
16
  import { InputNumber } from '../InputNumber/index.js';
17
17
  import { ComboSelect } from '../ComboSelect/index.js';
@@ -1,3 +1,6 @@
1
+ import React__default from 'react';
2
+ import { GetLanguage } from '@paraview/lib';
3
+
1
4
  // 实现 get 方法
2
5
  // 支持对象和数组/支持默认值/支持路径/支持字符串模版变量/支持jsx/支持.运算符和[]运算符
3
6
  const get = (obj, path, defaultValue) => {
@@ -66,4 +69,54 @@ const i18nIntl = props => {
66
69
  return replaceStrTemplateVars(text, params);
67
70
  };
68
71
 
69
- export { i18nIntl as i };
72
+ var en = {
73
+ cancel: 'Cancel',
74
+ ok: 'Ok'
75
+ };
76
+
77
+ var zh = {
78
+ cancel: '取 消',
79
+ ok: '确 定'
80
+ };
81
+
82
+ var localeJson = {
83
+ zh,
84
+ en,
85
+ 'zh-CN': zh,
86
+ 'en-US': en
87
+ };
88
+
89
+ //confirm 默认中文
90
+ let confirmRuntimeLocale = Object.assign({}, localeJson['zh']);
91
+ const changeConfirmLocale = (newLocale, lang) => {
92
+ const confirmLocale = newLocale['Confirm'];
93
+ if (confirmLocale) {
94
+ confirmRuntimeLocale = Object.assign(Object.assign({}, confirmRuntimeLocale), confirmLocale);
95
+ } else {
96
+ if (!lang) lang = GetLanguage();
97
+ const curLang = (localeJson === null || localeJson === void 0 ? void 0 : localeJson[lang]) || localeJson['zh'] || {};
98
+ confirmRuntimeLocale = Object.assign({}, curLang);
99
+ }
100
+ };
101
+ const getConfirmLocale = () => {
102
+ return confirmRuntimeLocale;
103
+ };
104
+
105
+ const GlobalContext = /*#__PURE__*/React__default.createContext({
106
+ language: GetLanguage(),
107
+ // 防止不包provider,有国际化组件报错
108
+ intlFormat: (comName, defI18nData) => (ops, params) => {
109
+ const lang = GetLanguage();
110
+ return i18nIntl({
111
+ ops,
112
+ i18nData: {},
113
+ lang,
114
+ params,
115
+ defI18nData
116
+ });
117
+ },
118
+ // 每个组件的默认props
119
+ componentsProps: {}
120
+ });
121
+
122
+ export { GlobalContext as G, changeConfirmLocale as c, getConfirmLocale as g, i18nIntl as i, localeJson as l };
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import GlobalContext from '@para-ui/core/GlobalContext';
2
+ import { G as GlobalContext } from './index-ca413216.js';
3
3
 
4
4
  /**
5
5
  * @author linhd
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import GlobalContext from '@para-ui/core/GlobalContext';
2
+ import { G as GlobalContext } from './index-ca413216.js';
3
3
 
4
4
  function useGlobalProps(comProps, comName) {
5
5
  const {
package/index.js CHANGED
@@ -5,7 +5,7 @@ export { Breadcrumbs } from './Breadcrumbs/index.js';
5
5
  export { Button } from './Button/index.js';
6
6
  export { ButtonGroup } from './ButtonGroup/index.js';
7
7
  export { Carousel } from './Carousel/index.js';
8
- export { C as Cascader } from './_verture/index-cc76d8d5.js';
8
+ export { C as Cascader } from './_verture/index-344d4ffe.js';
9
9
  export { Checkbox } from './Checkbox/index.js';
10
10
  export { CheckboxGroup } from './CheckboxGroup/index.js';
11
11
  export { Collapse } from './Collapse/index.js';
@@ -25,9 +25,9 @@ export { D as Dropdown } from './_verture/index-389675ab.js';
25
25
  export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
26
26
  export { default as Empty } from './Empty/index.js';
27
27
  export { default as Form } from './Form/index.js';
28
- export { F as FormItem } from './_verture/index-10792f39.js';
29
- export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-b101ffaa.js';
30
- export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
28
+ export { F as FormItem } from './_verture/index-3e98a394.js';
29
+ export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-c8cc3107.js';
30
+ export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
31
31
  export { default as Help } from './Help/index.js';
32
32
  export { default as HelperText } from './HelperText/index.js';
33
33
  export { InputLang } from './InputLang/index.js';
@@ -74,7 +74,7 @@ export { Title } from './Title/index.js';
74
74
  export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
75
75
  export { Tooltip } from './Tooltip/index.js';
76
76
  export { SSortablejs, Transfer } from './Transfer/index.js';
77
- export { T as Tree } from './_verture/index-02b7a0b7.js';
77
+ export { T as Tree } from './_verture/index-0447e790.js';
78
78
  export { default as Upload } from './Upload/index.js';
79
79
  export { default as Utils, getDateYYYYMMddHHMM, pixelReplacement } from './Utils/index.js';
80
80
  export { default as locale } from './locale/index.js';
@@ -87,8 +87,7 @@ import '@para-ui/icons/More';
87
87
  import './_verture/style-inject.es-300983ab.js';
88
88
  import 'clsx';
89
89
  import '@para-ui/icons/Return';
90
- import './_verture/useFormatMessage-eb13cf56.js';
91
- import '@para-ui/core/GlobalContext';
90
+ import './_verture/useFormatMessage-1fc7c957.js';
92
91
  import './_verture/tslib.es6-55ed4bd2.js';
93
92
  import '@para-ui/icons/LoadingF';
94
93
  import '@para-ui/icons/Down';
@@ -98,8 +97,7 @@ import '@para-ui/icons/RightCircleF';
98
97
  import '@para-ui/icons/LeftCircleF';
99
98
  import './_verture/toConsumableArray-8f4c9589.js';
100
99
  import './_verture/unsupportedIterableToArray-cb478f24.js';
101
- import './_verture/defineProperty-1d116156.js';
102
- import './_verture/typeof-adeedc13.js';
100
+ import './_verture/defineProperty-51493dbe.js';
103
101
  import './_verture/slicedToArray-a8206399.js';
104
102
  import 'rc-motion';
105
103
  import './_verture/typeof-6ec38efd.js';
@@ -117,11 +115,12 @@ import 'react-color';
117
115
  import '@para-ui/icons/Search';
118
116
  import '@para-ui/icons/Close';
119
117
  import './_verture/utils-c17b5265.js';
120
- import './_verture/useGlobalProps-1e416658.js';
118
+ import './_verture/useGlobalProps-4ae1a007.js';
121
119
  import '@para-ui/icons/Copy';
122
120
  import '@para-ui/icons/CheckS';
123
121
  import 'dayjs';
124
122
  import '@para-ui/icons/WarningCircleF';
123
+ import '@para-ui/core/GlobalContext';
125
124
  import 'rc-picker/es/generate/dayjs';
126
125
  import 'rc-picker';
127
126
  import '@para-ui/icons/Calendar';
@@ -144,8 +143,6 @@ import './_verture/index-9bef932a.js';
144
143
  import './_verture/sortable.esm-49896035.js';
145
144
  import '@para-ui/icons/LinkGroup';
146
145
  import '@para-ui/icons/UploadFile';
147
- import './_verture/intl-f2f27722.js';
148
- import './_verture/index-c568f272.js';
149
146
  import '@para-ui/icons/Help';
150
147
  import '@para-ui/icons/Internet';
151
148
  import 'rc-input-number';
@@ -163,6 +160,7 @@ import '@para-ui/icons/Plus';
163
160
  import '@para-ui/icons/EditOutline';
164
161
  import '@para-ui/icons/Message';
165
162
  import '@para-ui/icons/Set';
163
+ import './_verture/index-287ae1b3.js';
166
164
  import 'rc-slider';
167
165
  import './_verture/tinycolor-ece3542d.js';
168
166
  import 'rc-steps';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "4.0.17",
4
+ "version": "4.0.19-aplha",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@monaco-editor/react": "^4.6.0",
31
- "monaco-editor": "^0.44.0",
32
31
  "@para-ui/core": "4.0.9",
33
32
  "@paraview/lib": "^2.0.3",
34
33
  "@wangeditor/editor": "^5.1.15",
35
34
  "@wangeditor/editor-for-react": "^1.0.5",
36
35
  "clsx": "1.1.1",
37
36
  "dayjs": "^1.11.3",
37
+ "monaco-editor": "^0.44.0",
38
38
  "prettier": "^2.6.0",
39
39
  "rc-cascader": "^3.8.0",
40
40
  "rc-collapse": "3.1.2",
@@ -55,13 +55,12 @@
55
55
  "rc-tooltip": "5.1.1",
56
56
  "rc-tree": "4.2.2",
57
57
  "rc-upload": "4.3.1",
58
- "react": "^16.8.0 || ^17.0.0",
58
+ "react": "^17.0.2",
59
59
  "react-color": "2.19.3",
60
- "react-dom": "^16.8.0 || ^17.0.0",
60
+ "react-dom": "^17.0.2",
61
61
  "react-easy-crop": "4.1.4",
62
- "react-intl-hooks": "^1.0.11",
63
62
  "react-router-dom": "^5.3.0",
64
- "react-slick": "0.28.1",
63
+ "react-slick": "0.30.2",
65
64
  "react-sortablejs": "6.1.0",
66
65
  "react-transition-group": "4.4.2",
67
66
  "sortablejs": "^1.15.0",
@@ -88,10 +87,10 @@
88
87
  "@testing-library/react": "^11.2.5",
89
88
  "@types/babel__standalone": "^7.1.5",
90
89
  "@types/jest": "^29.5.1",
91
- "@types/react": "17.0.44",
90
+ "@types/react": "17.0.80",
92
91
  "@types/react-color": "^3.0.6",
93
92
  "@types/react-copy-to-clipboard": "^5.0.2",
94
- "@types/react-dom": "^17.0.2",
93
+ "@types/react-dom": "^17.0.25",
95
94
  "@types/react-router-dom": "^5.1.7",
96
95
  "@types/react-slick": "^0.23.8",
97
96
  "@types/react-syntax-highlighter": "^13.5.2",
@@ -144,7 +143,7 @@
144
143
  "style-loader": "^1.1.3",
145
144
  "stylelint": "^14.9.1",
146
145
  "stylelint-config-prettier": "^9.0.2",
147
- "stylelint-config-recess-order": "^4.0.0",
146
+ "stylelint-config-recess-order": "^3.1.0",
148
147
  "stylelint-config-standard": "^25.0.0",
149
148
  "stylelint-config-standard-scss": "^3.0.0",
150
149
  "stylelint-prettier": "^2.0.0",
@@ -159,12 +158,9 @@
159
158
  "webpack-dev-server": "^4.6.0",
160
159
  "webpack-merge": "^5.8.0"
161
160
  },
162
- "optionalDependencies": {
163
- "@types/react": "17.0.44"
164
- },
165
161
  "peerDependencies": {
166
- "@types/react": "^16.8.6 || ^17.0.0",
167
- "@types/react-dom": "^16.8.6 || ^17.0.0",
162
+ "@types/react": ">=17",
163
+ "@types/react-dom": ">=17",
168
164
  "clsx": "1.1.1",
169
165
  "dayjs": "^1.11.3",
170
166
  "rc-collapse": "3.1.2",
@@ -185,8 +181,8 @@
185
181
  "rc-tooltip": "5.1.1",
186
182
  "rc-tree": "4.2.2",
187
183
  "rc-upload": "4.3.1",
188
- "react": "^16.8.0 || ^17.0.0",
189
- "react-dom": "^16.8.0 || ^17.0.0"
184
+ "react": "^17.0.2",
185
+ "react-dom": "^17.0.2"
190
186
  },
191
187
  "peerDependenciesMeta": {
192
188
  "@types/react": {