@unicom-cloud/ui 0.8.61 → 0.8.62

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 (179) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +44 -40
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +7 -7
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +22 -22
  9. package/Button.js +2 -2
  10. package/Calendar.js +106 -104
  11. package/Card.js +1 -1
  12. package/Carousel.js +34 -33
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +12 -12
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +16 -16
  20. package/DatePicker.js +165 -162
  21. package/Descriptions.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +9 -9
  26. package/Empty.js +2 -2
  27. package/Form.js +60 -54
  28. package/Grid.js +2 -2
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +14 -14
  37. package/List.js +3 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +9 -3
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +32 -32
  45. package/PageHeader.js +23 -22
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +7 -7
  49. package/Popover.js +1 -1
  50. package/Progress.js +14 -14
  51. package/Radio.js +2 -2
  52. package/Rate.js +43 -40
  53. package/ResizeBox.js +97 -96
  54. package/Result.js +15 -15
  55. package/Select.js +1 -1
  56. package/SelectView.js +295 -249
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +25 -25
  59. package/Space.js +1 -1
  60. package/SpeechSynthesis.js +32 -29
  61. package/Spin.js +2 -2
  62. package/Statistic.js +1 -1
  63. package/Steps.js +11 -11
  64. package/Switch.js +3 -3
  65. package/Table.js +9 -9
  66. package/Tabs.js +1 -1
  67. package/Tag.js +68 -67
  68. package/TimePicker.js +17 -17
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +1 -1
  71. package/Transfer.js +47 -46
  72. package/Tree.js +2 -2
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +3 -3
  75. package/Typography.js +1 -1
  76. package/Upload.js +2 -2
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/{V6euPXVB.js → -Z968QpN.js} +257 -251
  81. package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
  82. package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
  83. package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
  84. package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
  85. package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
  86. package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
  87. package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
  88. package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
  89. package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
  90. package/chunk/BsWphzcT.js +20 -0
  91. package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
  92. package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
  93. package/chunk/C8o-VGyc.js +376 -0
  94. package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
  95. package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
  96. package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
  97. package/chunk/CT1lZ7ss.js +116 -0
  98. package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
  99. package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
  100. package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
  101. package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
  102. package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
  103. package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
  104. package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
  105. package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
  106. package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
  107. package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
  108. package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
  109. package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
  110. package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
  111. package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
  112. package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
  113. package/hooks/useMergeValue.js +1 -1
  114. package/icons.js +4 -6001
  115. package/index.js +420 -392
  116. package/locale/en-US.js +1 -1
  117. package/locale/tr-TR.js +1 -1
  118. package/package.json +1 -1
  119. package/style.css +1 -1
  120. package/types/cascader/panel/Search.d.ts +1 -1
  121. package/types/config-provider/interface.d.ts +1 -1
  122. package/types/form/interface.d.ts +1 -1
  123. package/types/index.d.ts +1 -1
  124. package/types/message/index.d.ts +2 -2
  125. package/types/notification/index.d.ts +2 -2
  126. package/types/notification-base/index.d.ts +2 -2
  127. package/types/select/interface.d.ts +1 -0
  128. package/types/select-view/interface.d.ts +1 -0
  129. package/types/tree/Context.d.ts +1 -0
  130. package/types/tree/Tree.d.ts +1 -1
  131. package/types/tree/index.d.ts +5 -4
  132. package/types/tree/interface.d.ts +1 -0
  133. package/types/utils/index.d.ts +1 -0
  134. package/types/utils/lodash.d.ts +14 -1
  135. package/types/version/index.d.ts +1 -1
  136. package/utils/CSSTransition.js +1 -1
  137. package/utils/caseName.js +2 -18
  138. package/utils/contextHolder.js +1 -1
  139. package/utils/index.js +220 -191
  140. package/utils/is.js +68 -67
  141. package/utils/lodash.js +32 -6
  142. package/utils/reactDOM.js +1 -1
  143. package/chunk/-LZOUh53.js +0 -29
  144. package/chunk/-jdfq71f.js +0 -23
  145. package/chunk/B0GOLsj_.js +0 -58
  146. package/chunk/B7Zsp3gO.js +0 -29
  147. package/chunk/BDjXkzNj.js +0 -23
  148. package/chunk/BHn4xgbv.js +0 -209
  149. package/chunk/BLSiP_gg.js +0 -32
  150. package/chunk/BMJfSSLX.js +0 -23
  151. package/chunk/B_nfMl0e.js +0 -116
  152. package/chunk/BcS17Pzy.js +0 -66
  153. package/chunk/BdiEwtQO.js +0 -41
  154. package/chunk/Bpug_KxP.js +0 -34
  155. package/chunk/C1u_ckwU.js +0 -29
  156. package/chunk/C43Hv2Bl.js +0 -34
  157. package/chunk/C9vsih_D.js +0 -29
  158. package/chunk/CAfR2wLq.js +0 -41
  159. package/chunk/CAfecMDF.js +0 -46
  160. package/chunk/CKp4rZnD.js +0 -207
  161. package/chunk/CV2Aqv9q.js +0 -52
  162. package/chunk/CYdarMv9.js +0 -32
  163. package/chunk/C_S5Mdvd.js +0 -379
  164. package/chunk/CmB-TL7C.js +0 -46
  165. package/chunk/D-ER56Sf.js +0 -29
  166. package/chunk/D-aYnb6u.js +0 -41
  167. package/chunk/D3xQFJcO.js +0 -23
  168. package/chunk/DJcEys80.js +0 -29
  169. package/chunk/DLIm6rRJ.js +0 -29
  170. package/chunk/DOWEHtqM.js +0 -41
  171. package/chunk/DT37l12z.js +0 -40
  172. package/chunk/DW-B7npC.js +0 -23
  173. package/chunk/D_MTFBb0.js +0 -38
  174. package/chunk/Dx_5J4fO.js +0 -29
  175. package/chunk/Dy487FZ1.js +0 -118
  176. package/chunk/Uz-rNulO.js +0 -98
  177. package/chunk/cDZI_t6o.js +0 -52
  178. package/chunk/sScV-J56.js +0 -206
  179. package/chunk/wI2I1qb0.js +0 -23
@@ -1,4 +1,4 @@
1
- import { V, G as b, z as w } from "./BBVjSFnw.js";
1
+ import { z as V, H as b, G as w } from "./Cqyp4qni.js";
2
2
  import c from "lodash/isObject";
3
3
  import M from "lodash/isArray";
4
4
  import E from "lodash/isEqual";
@@ -54,30 +54,30 @@ const d = "#{field} is not a #{type} type", k = {
54
54
  }
55
55
  }, x = (r, t) => {
56
56
  const e = { ...r };
57
- return Object.keys(t || {}).forEach((s) => {
58
- const i = e[s], l = t == null ? void 0 : t[s];
59
- e[s] = c(i) ? {
60
- ...i,
57
+ return Object.keys(t || {}).forEach((i) => {
58
+ const s = e[i], l = t == null ? void 0 : t[i];
59
+ e[i] = c(s) ? {
60
+ ...s,
61
61
  ...l
62
- } : l || i;
62
+ } : l || s;
63
63
  }), e;
64
64
  }, C = (r, t) => {
65
65
  const e = t.split(".");
66
- let s = r;
67
- for (let i = 0; i < e.length; i++)
68
- if (s = s && s[e[i]], s === void 0)
69
- return s;
70
- return s;
66
+ let i = r;
67
+ for (let s = 0; s < e.length; s++)
68
+ if (i = i && i[e[s]], i === void 0)
69
+ return i;
70
+ return i;
71
71
  };
72
72
  class p {
73
73
  constructor(t, e) {
74
- o(this, "obj"), o(this, "message"), o(this, "type"), o(this, "error"), o(this, "_not"), o(this, "validateMessages"), o(this, "field"), o(this, "getValidateMsg", (s, i = {}) => {
74
+ o(this, "obj"), o(this, "message"), o(this, "type"), o(this, "error"), o(this, "_not"), o(this, "validateMessages"), o(this, "field"), o(this, "getValidateMsg", (i, s = {}) => {
75
75
  const l = {
76
- ...i,
76
+ ...s,
77
77
  value: this.obj,
78
78
  field: this.field,
79
79
  type: this.type
80
- }, a = C(this.validateMessages, s);
80
+ }, a = C(this.validateMessages, i);
81
81
  return S(a) ? a(l) : y(a) ? a.replace(/\#\{.+?\}/g, (u) => {
82
82
  const h = u.slice(2, -1);
83
83
  if (h in l) {
@@ -125,7 +125,7 @@ class p {
125
125
  return (this._not ? t : !t) && this.addError(e), this;
126
126
  }
127
127
  collect(t) {
128
- t && t(this.error);
128
+ t == null || t(this.error);
129
129
  }
130
130
  }
131
131
  class A extends p {
@@ -220,17 +220,17 @@ class R extends p {
220
220
  // @ts-ignore
221
221
  get validate() {
222
222
  const t = this;
223
- return function(e, s) {
224
- let i;
223
+ return function(e, i) {
224
+ let s;
225
225
  if (e)
226
- return i = e(t.obj, t.addError.bind(t)), i && i.then ? (s && i.then(
226
+ return s = e(t.obj, t.addError.bind(t)), s && s.then ? (i && s.then(
227
227
  () => {
228
- s && s(t.error);
228
+ i == null || i(t.error);
229
229
  },
230
230
  (l) => {
231
231
  console.error(l);
232
232
  }
233
- ), [i, t]) : (s && s(t.error), t.error);
233
+ ), [s, t]) : (i == null || i(t.error), t.error);
234
234
  };
235
235
  }
236
236
  }
@@ -390,15 +390,15 @@ m.setGlobalConfig = (r) => {
390
390
  class q {
391
391
  constructor(t, e) {
392
392
  o(this, "number"), o(this, "string"), o(this, "array"), o(this, "object"), o(this, "boolean"), o(this, "type"), o(this, "custom");
393
- const s = m.globalConfig, i = {
394
- ...s,
393
+ const i = m.globalConfig, s = {
394
+ ...i,
395
395
  ...e,
396
396
  validateMessages: x(
397
- s.validateMessages,
397
+ i.validateMessages,
398
398
  e.validateMessages
399
399
  )
400
400
  };
401
- this.string = new P(t, i), this.number = new K(t, i), this.array = new A(t, i), this.object = new D(t, i), this.boolean = new N(t, i), this.type = new G(t, i), this.custom = new R(t, i);
401
+ this.string = new P(t, s), this.number = new K(t, s), this.array = new A(t, s), this.object = new D(t, s), this.boolean = new N(t, s), this.type = new G(t, s), this.custom = new R(t, s);
402
402
  }
403
403
  }
404
404
  class X {
@@ -418,10 +418,10 @@ class X {
418
418
  validate(t, e) {
419
419
  if (!c(t))
420
420
  return;
421
- const s = [];
422
- let i = null;
421
+ const i = [];
422
+ let s = null;
423
423
  function l(a, u) {
424
- i || (i = {}), (!i[a] || u.requiredError) && (i[a] = u);
424
+ s || (s = {}), (!s[a] || u.requiredError) && (s[a] = u);
425
425
  }
426
426
  this.schema && Object.keys(this.schema).forEach((a) => {
427
427
  if (M(this.schema[a]))
@@ -439,7 +439,7 @@ class X {
439
439
  let n = j.type[v] || null;
440
440
  if (!n)
441
441
  if (h.validator) {
442
- n = j.custom.validate(h.validator), Object.prototype.toString.call(n) === "[object Array]" && n[0].then ? s.push({
442
+ n = j.custom.validate(h.validator), Object.prototype.toString.call(n) === "[object Array]" && n[0].then ? i.push({
443
443
  function: n[0],
444
444
  _this: n[1],
445
445
  key: a
@@ -451,18 +451,18 @@ class X {
451
451
  h.required && (n = n.isRequired), g !== "message" && n[g] && h[g] && typeof n[g] == "object" && (n = n[g]), n[g] && h[g] !== void 0 && typeof n[g] == "function" && (n = n[g](h[g]));
452
452
  }), n.collect((g) => {
453
453
  g && l(a, g);
454
- }), i)
454
+ }), s)
455
455
  break;
456
456
  }
457
- }), s.length > 0 ? Promise.all(s.map((a) => a.function)).then(() => {
458
- s.forEach((a) => {
457
+ }), i.length > 0 ? Promise.all(i.map((a) => a.function)).then(() => {
458
+ i.forEach((a) => {
459
459
  a._this.error && l(a.key, a._this.error);
460
- }), e && e(i);
461
- }) : e && e(i);
460
+ }), e == null || e(s);
461
+ }) : e == null || e(s);
462
462
  }
463
463
  }
464
464
  export {
465
465
  X as P,
466
- m as p,
466
+ m,
467
467
  k as z
468
468
  };