@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,46 +1,46 @@
1
- import { jsx as w, jsxs as ot, Fragment as wt } from "react/jsx-runtime";
1
+ import { jsx as L, jsxs as it } from "react/jsx-runtime";
2
2
  import ee from "lodash/isArray";
3
3
  import kt from "lodash/isFunction";
4
- import te, { useContext as Vt, useState as ye, useMemo as Ze, useRef as K, useCallback as Ue, useEffect as j, useImperativeHandle as St } from "react";
5
- import { C as it } from "./eK7lxdak.js";
6
- import { d as At } from "./Bdh4XVuf.js";
4
+ import te, { useContext as St, useState as ye, useMemo as ze, useRef as K, useCallback as Ue, useEffect as j, useImperativeHandle as Vt } from "react";
5
+ import { C as st } from "./CDJ1EnJ2.js";
6
+ import { d as At } from "./CV1kLw5Z.js";
7
7
  import { useId as Et } from "../hooks/useId.js";
8
8
  import { useMergeProps as Lt } from "../hooks/useMergeProps.js";
9
- import { useMergeValue as ze } from "../hooks/useMergeValue.js";
9
+ import { useMergeValue as et } from "../hooks/useMergeValue.js";
10
10
  import $t from "../SelectView.js";
11
11
  import It from "../Trigger.js";
12
12
  import { y as ce } from "./BzPkh4Zv.js";
13
13
  import Nt from "../utils/getHotkeyHandler.js";
14
14
  import "../utils/is.js";
15
- import { d as Tt, E as et, T as tt, c as Pt, A as Ft } from "./C2lIz2F9.js";
15
+ import { d as Tt, E as tt, T as nt, c as Pt, A as Ft } from "./C2lIz2F9.js";
16
16
  import Re from "../utils/omit.js";
17
17
  import Ut from "../utils/warning.js";
18
18
  import { V as Rt } from "./D3NFxdmG.js";
19
- import { V as Mt } from "./BBVjSFnw.js";
19
+ import { z as Mt } from "./Cqyp4qni.js";
20
20
  import ie from "lodash/get";
21
21
  import Dt from "lodash/isNil";
22
22
  import Gt from "lodash/isNumber";
23
- import x from "lodash/isPlainObject";
23
+ import w from "lodash/isPlainObject";
24
24
  import Ht from "lodash/isString";
25
25
  import Kt from "../utils/fillNBSP.js";
26
26
  import jt from "../utils/getHighlightText.js";
27
27
  function Bt(l, b) {
28
- const { prefixCls: k, label: C, ...R } = l;
29
- return /* @__PURE__ */ w(
28
+ const { prefixCls: x, label: C, ...R } = l;
29
+ return /* @__PURE__ */ L(
30
30
  "li",
31
31
  {
32
32
  ref: b,
33
- className: `${k}-group-title`,
33
+ className: `${x}-group-title`,
34
34
  ...Re(R, ["_key", "children", "isSelectOptGroup"]),
35
35
  children: C
36
36
  }
37
37
  );
38
38
  }
39
- const Qt = te.forwardRef(Bt), st = Qt;
40
- st.__PQB_SELECT_OPTGROUP__ = !0;
39
+ const Qt = te.forwardRef(Bt), lt = Qt;
40
+ lt.__PQB_SELECT_OPTGROUP__ = !0;
41
41
  function Wt(l, b) {
42
42
  const {
43
- style: k,
43
+ style: x,
44
44
  className: C,
45
45
  wrapperClassName: R,
46
46
  disabled: F,
@@ -55,10 +55,10 @@ function Wt(l, b) {
55
55
  _valueSelect: Q,
56
56
  _onMouseEnter: I,
57
57
  _onMouseLeave: H,
58
- _onClick: V,
58
+ _onClick: k,
59
59
  ...o
60
60
  } = l, f = "value" in l ? M : `${D}`, s = "children" in l ? D : `${M}`, a = J ? Q.indexOf(f) !== -1 : Q === f, O = {
61
- style: k,
61
+ style: x,
62
62
  className: ce(
63
63
  `${u}-option`,
64
64
  {
@@ -80,7 +80,7 @@ function Wt(l, b) {
80
80
  },
81
81
  onClick: (N) => {
82
82
  var y;
83
- V == null || V(f, F), (y = o.onClick) == null || y.call(o, N);
83
+ k == null || k(f, F), (y = o.onClick) == null || y.call(o, N);
84
84
  },
85
85
  ...Re(o, [
86
86
  "_key",
@@ -95,7 +95,7 @@ function Wt(l, b) {
95
95
  role: "option",
96
96
  "aria-selected": a
97
97
  };
98
- return B && Object.assign(S, { "data-user-created": !0 }), v && Object.assign(S, { "data-user-creating": !0 }), J ? /* @__PURE__ */ ot(
98
+ return B && Object.assign(S, { "data-user-created": !0 }), v && Object.assign(S, { "data-user-creating": !0 }), J ? /* @__PURE__ */ it(
99
99
  "li",
100
100
  {
101
101
  ...S,
@@ -108,8 +108,8 @@ function Wt(l, b) {
108
108
  R
109
109
  ),
110
110
  children: [
111
- /* @__PURE__ */ w(
112
- it,
111
+ /* @__PURE__ */ L(
112
+ st,
113
113
  {
114
114
  "aria-hidden": "true",
115
115
  className: `${u}-checkbox`,
@@ -118,10 +118,10 @@ function Wt(l, b) {
118
118
  onChange: O.onClick
119
119
  }
120
120
  ),
121
- /* @__PURE__ */ w("span", { ...O, children: s })
121
+ /* @__PURE__ */ L("span", { ...O, children: s })
122
122
  ]
123
123
  }
124
- ) : /* @__PURE__ */ w("li", { ...S, ...O, children: s });
124
+ ) : /* @__PURE__ */ L("li", { ...S, ...O, children: s });
125
125
  }
126
126
  const qt = te.forwardRef(Wt), Me = qt;
127
127
  Me.__PQB_SELECT_OPTION__ = !0;
@@ -131,21 +131,21 @@ function Jt(l) {
131
131
  function _e(l, b) {
132
132
  return b ? !ee(l) || Mt(l) : Dt(l);
133
133
  }
134
- function nt(l, b, k) {
135
- return k && (b ? l = Array.isArray(l) ? l.map(
136
- (C) => x(C) && "label" in C ? C.value : C
137
- ) : l : l = x(l) && "label" in l ? l.value : l), _e(l, b) ? b ? Array.isArray(l) ? l : [] : void 0 : l;
134
+ function rt(l, b, x) {
135
+ return x && (b ? l = Array.isArray(l) ? l.map(
136
+ (C) => w(C) && "label" in C ? C.value : C
137
+ ) : l : l = w(l) && "label" in l ? l.value : l), _e(l, b) ? b ? Array.isArray(l) ? l : [] : void 0 : l;
138
138
  }
139
- function lt(l) {
139
+ function at(l) {
140
140
  return ie(l, "props.isSelectOption") || ie(l, "type.__PQB_SELECT_OPTION__");
141
141
  }
142
- function at(l) {
142
+ function ut(l) {
143
143
  return ie(l, "props.isSelectOptGroup") || ie(l, "type.__PQB_SELECT_OPTGROUP__");
144
144
  }
145
- function ut({
145
+ function pt({
146
146
  children: l,
147
147
  options: b,
148
- filterOption: k
148
+ filterOption: x
149
149
  }, {
150
150
  inputValue: C = "",
151
151
  userCreatedOptions: R,
@@ -163,7 +163,7 @@ function ut({
163
163
  }, I = ({ label: o, value: f }, s, a) => !o && !f && !s ? (D++, `custom_node_${D}`) : a ? s || `group_${o}` : s || `${typeof f}_${f}` || `${o}_${$.size}`, H = (o, f) => {
164
164
  const s = Q(o);
165
165
  let a = !0;
166
- k === !0 ? a = s !== void 0 && String(s).toLowerCase().indexOf(C.toLowerCase()) !== -1 : typeof k == "function" && (a = !C || k(C, o));
166
+ x === !0 ? a = s !== void 0 && String(s).toLowerCase().indexOf(C.toLowerCase()) !== -1 : typeof x == "function" && (a = !C || x(C, o));
167
167
  const O = $.get(s), S = (O == null ? void 0 : O._origin) === "userCreatedOptions" || (O == null ? void 0 : O._origin) === "userCreatingOption";
168
168
  if (!O || S) {
169
169
  "_key" in o.props || (o = te.cloneElement(o, {
@@ -189,13 +189,13 @@ function ut({
189
189
  M.push(s), a && (v.push(o), y.disabled || G.push(N));
190
190
  }
191
191
  typeof o.props.children != "string" && (B = !0);
192
- }, V = (o, f) => {
192
+ }, k = (o, f) => {
193
193
  f && ee(o) && o.length && o.forEach((s) => {
194
194
  (Ht(s) || Gt(s)) && (s = {
195
195
  label: s,
196
196
  value: s
197
197
  });
198
- const a = /* @__PURE__ */ w(
198
+ const a = /* @__PURE__ */ L(
199
199
  Me,
200
200
  {
201
201
  _key: I(s),
@@ -208,14 +208,14 @@ function ut({
208
208
  H(a, f);
209
209
  });
210
210
  };
211
- return F && V([F], "userCreatingOption"), l && te.Children.map(l, (o) => {
212
- if (at(o)) {
211
+ return F && k([F], "userCreatingOption"), l && te.Children.map(l, (o) => {
212
+ if (ut(o)) {
213
213
  const { children: f, options: s } = o.props, {
214
214
  childrenList: a,
215
215
  optionIndexListForArrowKey: O,
216
216
  hasComplexLabelInOptions: S
217
- } = ut(
218
- { children: f, options: s, filterOption: k },
217
+ } = pt(
218
+ { children: f, options: s, filterOption: x },
219
219
  { inputValue: C, prefixCls: u },
220
220
  { optionInfoMap: $, optionValueList: M, customNodeCount: D }
221
221
  );
@@ -227,12 +227,12 @@ function ut({
227
227
  ), v = v.concat(a), G = G.concat(
228
228
  O
229
229
  ), J = !0, B = B || S);
230
- } else lt(o) ? H(o, "children") : x(o) && o.props && v.push(
230
+ } else at(o) ? H(o, "children") : w(o) && o.props && v.push(
231
231
  te.cloneElement(o, {
232
232
  _key: I(o.props, o.key)
233
233
  })
234
234
  );
235
- }), V(b, "options"), V(R, "userCreatedOptions"), {
235
+ }), k(b, "options"), k(R, "userCreatedOptions"), {
236
236
  childrenList: jt({
237
237
  nodeList: v,
238
238
  pattern: C,
@@ -245,16 +245,17 @@ function ut({
245
245
  hasComplexLabelInOptions: B
246
246
  };
247
247
  }
248
- const rt = "userCreatingOption", Xt = {
248
+ const ot = "userCreatingOption", Xt = {
249
249
  trigger: "click",
250
250
  bordered: !0,
251
251
  filterOption: !0,
252
252
  unmountOnExit: !0,
253
- defaultActiveFirstOption: !0
253
+ defaultActiveFirstOption: !0,
254
+ allowCheckAll: !0
254
255
  }, Yt = { bottom: 4 };
255
256
  function Zt(l, b) {
256
- var Je;
257
- const { getPrefixCls: k, renderEmpty: C, componentConfig: R, rtl: F } = Vt(At), u = Lt(
257
+ var Xe;
258
+ const { getPrefixCls: x, renderEmpty: C, componentConfig: R, rtl: F } = St(At), u = Lt(
258
259
  l,
259
260
  Xt,
260
261
  R == null ? void 0 : R.Select
@@ -269,7 +270,7 @@ function Zt(l, b) {
269
270
  tokenSeparators: Q,
270
271
  options: I,
271
272
  filterOption: H,
272
- labelInValue: V,
273
+ labelInValue: k,
273
274
  getPopupContainer: o,
274
275
  trigger: f,
275
276
  triggerElement: s,
@@ -284,40 +285,42 @@ function Zt(l, b) {
284
285
  onDeselect: de,
285
286
  onClear: be,
286
287
  onSearch: ve,
287
- onFocus: pt,
288
- onBlur: xe,
289
- onPopupScroll: we,
288
+ onFocus: ct,
289
+ onBlur: we,
290
+ onPopupScroll: xe,
290
291
  onVisibleChange: ke,
291
- onInputValueChange: Ve,
292
- onPaste: Se,
292
+ onInputValueChange: Se,
293
+ onPaste: Ve,
293
294
  onKeyDown: Ae
294
295
  } = u;
295
- let { mode: Ee, allowCreate: _ } = u;
296
+ let { mode: Ee, allowCheckAll: Ge, allowCreate: _ } = u;
296
297
  Ee === "tags" && (Ee = "multiple", _ = !0, Ut(
297
298
  !0,
298
299
  `[Pqb Select] The 'tags' mode will be removed in the next major version, please use {mode: "multiple", allowCreate: true} instead.`
299
300
  ));
300
- const A = k("select"), g = Ee === "multiple", [ct, Le] = ye(
301
- nt(u.defaultValue, g, V)
302
- ), i = "value" in u ? nt(u.value, g, V) : ct, [E, dt, ft] = ze("", {
301
+ const V = x("select"), g = Ee === "multiple";
302
+ g || (Ge = !1);
303
+ const [dt, Le] = ye(
304
+ rt(u.defaultValue, g, k)
305
+ ), i = "value" in u ? rt(u.value, g, k) : dt, [A, ft, mt] = et("", {
303
306
  value: "inputValue" in u ? u.inputValue || "" : void 0
304
- }), [T, mt] = ze(!1, {
307
+ }), [T, gt] = et(!1, {
305
308
  defaultValue: u.defaultPopupVisible,
306
309
  value: "popupVisible" in u ? u.popupVisible : a && "popupVisible" in a ? a.popupVisible : void 0
307
- }), [le, gt] = ye(null), [ae, ht] = ye([]), [U, re] = ye(
310
+ }), [le, ht] = ye(null), [ae, Ct] = ye([]), [U, re] = ye(
308
311
  ee(i) ? i[0] : i
309
312
  ), {
310
313
  childrenList: $e,
311
314
  optionInfoMap: m,
312
315
  optionValueList: W,
313
316
  optionIndexListForArrowKey: X,
314
- hasOptGroup: Ct,
315
- hasComplexLabelInOptions: Ot
316
- } = Ze(() => ut(
317
+ hasOptGroup: Ot,
318
+ hasComplexLabelInOptions: yt
319
+ } = ze(() => pt(
317
320
  { children: $, options: I, filterOption: H },
318
321
  {
319
- prefixCls: A,
320
- inputValue: E,
322
+ prefixCls: V,
323
+ inputValue: A,
321
324
  userCreatedOptions: ae,
322
325
  userCreatingOption: le
323
326
  }
@@ -325,13 +328,13 @@ function Zt(l, b) {
325
328
  $,
326
329
  I,
327
330
  H,
328
- E,
331
+ A,
329
332
  le,
330
333
  ae
331
- ]), Ie = K(null), Ge = K(null), L = K(null), Y = K([]), q = K(null), He = K(E), Ne = K(null), fe = K(0), Te = K(!1), Ke = Et(`${A}-popup-`), me = _e(i, g), je = Ze(() => {
334
+ ]), Ie = K(null), He = K(null), E = K(null), Y = K([]), q = K(null), Ke = K(A), Ne = K(null), fe = K(0), Te = K(!1), je = Et(`${V}-popup-`), me = _e(i, g), Be = ze(() => {
332
335
  var e, t;
333
336
  if (D) {
334
- const n = ee(i) ? i[0] : i, r = !me && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === rt;
337
+ const n = ee(i) ? i[0] : i, r = !me && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === ot;
335
338
  return r && !c ? n : W[X[0]];
336
339
  }
337
340
  }, [
@@ -352,26 +355,26 @@ function Zt(l, b) {
352
355
  },
353
356
  [m]
354
357
  ), he = Ue(
355
- (e, t = !1) => x(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
358
+ (e, t = !1) => w(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
356
359
  [_]
357
360
  ), Z = (e, t) => {
358
- (e !== He.current || t !== Ne.current) && (dt(e), He.current = e, Ne.current = t, Ve == null || Ve(e, t));
361
+ (e !== Ke.current || t !== Ne.current) && (ft(e), Ke.current = e, Ne.current = t, Se == null || Se(e, t));
359
362
  }, oe = (e) => {
360
363
  var t;
361
- T !== e && (mt(e), ke == null || ke(e), (t = a == null ? void 0 : a.onVisibleChange) == null || t.call(a, e));
364
+ T !== e && (gt(e), ke == null || ke(e), (t = a == null ? void 0 : a.onVisibleChange) == null || t.call(a, e));
362
365
  };
363
366
  j(() => {
364
367
  g ? Array.isArray(i) || Le(i === void 0 ? [] : [i]) : Array.isArray(i) && Le(i.length === 0 ? void 0 : i[0]);
365
368
  }, [g, i]), j(() => {
366
369
  if (T) {
367
- re(je);
370
+ re(Be);
368
371
  const e = ee(i) ? i[0] : i;
369
372
  !me && m.has(e) && setTimeout(() => ge(e));
370
373
  }
371
374
  }, [T]), j(() => {
372
375
  (q.current === "up" || q.current === "down") && (ge(U), q.current = "none");
373
376
  }, [U]), j(() => {
374
- re(je);
377
+ re(Be);
375
378
  }, [JSON.stringify($e.map((e) => {
376
379
  var t;
377
380
  return (t = e == null ? void 0 : e.props) == null ? void 0 : t.value;
@@ -386,26 +389,26 @@ function Zt(l, b) {
386
389
  const n = Array.isArray(i) ? i : [i], r = n.filter((p) => {
387
390
  var P;
388
391
  const h = m.get(p) || ((P = Y.current.find((d) => d.value === p)) == null ? void 0 : P.option);
389
- return !h || h._origin === rt;
392
+ return !h || h._origin === ot;
390
393
  }).map((p) => he(p));
391
394
  e = ae.filter((p) => {
392
- const h = x(p) ? p.value : p;
395
+ const h = w(p) ? p.value : p;
393
396
  return n.indexOf(h) !== -1;
394
397
  }).concat(
395
398
  r
396
399
  );
397
400
  }
398
- const t = (n) => n.map((r) => x(r) ? r.value : r).toString();
399
- t(e) !== t(ae) && ht(e);
401
+ const t = (n) => n.map((r) => w(r) ? r.value : r).toString();
402
+ t(e) !== t(ae) && Ct(e);
400
403
  }
401
404
  }, [i, _, g, he]), j(() => {
402
- _ && gt(
403
- E && !m.has(E) ? he(E, !0) : null
405
+ _ && ht(
406
+ A && !m.has(A) ? he(A, !0) : null
404
407
  );
405
- }, [E, he]), j(() => {
408
+ }, [A, he]), j(() => {
406
409
  const { current: e } = Ne;
407
- ft === E && (e === "manual" || e === "optionListHide") && (ve == null || ve(E, e));
408
- }, [E]);
410
+ mt === A && (e === "manual" || e === "optionListHide") && (ve == null || ve(A, e));
411
+ }, [A]);
409
412
  const ue = Ue(
410
413
  (e) => {
411
414
  const t = m.get(e);
@@ -419,7 +422,7 @@ function Zt(l, b) {
419
422
  return n && n.option;
420
423
  },
421
424
  [m]
422
- ), Be = (e) => {
425
+ ), Qe = (e) => {
423
426
  if (!X.length)
424
427
  return;
425
428
  if (U === void 0 || !m.has(U))
@@ -429,16 +432,16 @@ function Zt(l, b) {
429
432
  }, Ce = (e, t = _e(e, g)) => {
430
433
  let n = e;
431
434
  const r = e === void 0 ? void 0 : Array.isArray(e) ? e.map(ue) : ue(e);
432
- if (V && !t) {
435
+ if (k && !t) {
433
436
  const c = (p, h) => {
434
437
  if (h)
435
438
  return h.children;
436
439
  const P = "value" in u ? u.value : "defaultValue" in u ? u.defaultValue : null;
437
440
  if (Array.isArray(P)) {
438
441
  for (const d of P)
439
- if (x(d) && d.value === p)
442
+ if (w(d) && d.value === p)
440
443
  return d.label;
441
- } else if (x(P) && P.value === p)
444
+ } else if (w(P) && P.value === p)
442
445
  return P.label;
443
446
  };
444
447
  Array.isArray(e) ? n = e.map((p, h) => ({
@@ -455,7 +458,7 @@ function Zt(l, b) {
455
458
  const t = Ce(e);
456
459
  ne(t.value, t.option);
457
460
  }
458
- }, Qe = (e, t) => {
461
+ }, We = (e, t) => {
459
462
  if (t === "remove" || t === "add" && m.get(e)) {
460
463
  const n = t === "add" ? i.concat(e) : i.filter((c) => c !== e), r = t === "add" ? se : de;
461
464
  if (z(n), typeof r == "function") {
@@ -469,28 +472,28 @@ function Zt(l, b) {
469
472
  );
470
473
  }
471
474
  }
472
- }, We = (e, t) => {
473
- t || (g ? (Qe(
475
+ }, qe = (e, t) => {
476
+ t || (g ? (We(
474
477
  e,
475
478
  i.indexOf(e) === -1 ? "add" : "remove"
476
- ), (!x(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== i && z(e), setTimeout(() => {
479
+ ), (!w(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== i && z(e), setTimeout(() => {
477
480
  oe(!1);
478
481
  })));
479
482
  }, Oe = Nt(
480
483
  /* @__PURE__ */ new Map([
481
484
  [Tt.key, () => oe(!1)],
482
485
  [
483
- et.key,
486
+ tt.key,
484
487
  () => {
485
488
  if (T) {
486
489
  const e = m.get(U);
487
- e && We(U, e.disabled);
490
+ e && qe(U, e.disabled);
488
491
  } else
489
492
  oe(!0);
490
493
  }
491
494
  ],
492
495
  [
493
- tt.key,
496
+ nt.key,
494
497
  // 按tab键切换,关闭开启的弹出框
495
498
  () => oe(!1)
496
499
  ],
@@ -498,55 +501,55 @@ function Zt(l, b) {
498
501
  Pt.key,
499
502
  () => {
500
503
  if (T)
501
- return q.current = "up", re(Be("up")), !1;
504
+ return q.current = "up", re(Qe("up")), !1;
502
505
  }
503
506
  ],
504
507
  [
505
508
  Ft.key,
506
509
  () => {
507
510
  if (T)
508
- return q.current = "down", re(Be("down")), !1;
511
+ return q.current = "down", re(Qe("down")), !1;
509
512
  }
510
513
  ]
511
514
  ])
512
- ), yt = () => {
515
+ ), _t = () => {
513
516
  var h, P;
514
- const e = (a == null ? void 0 : a.autoAlignPopupWidth) === !1 && (!((h = a == null ? void 0 : a.style) != null && h.width) || ((P = a == null ? void 0 : a.style) == null ? void 0 : P.width) === "auto"), t = e && Ot, n = "notFoundContent" in u ? v : C("Select"), r = $e.length ? /* @__PURE__ */ w(
517
+ const e = (a == null ? void 0 : a.autoAlignPopupWidth) === !1 && (!((h = a == null ? void 0 : a.style) != null && h.width) || ((P = a == null ? void 0 : a.style) == null ? void 0 : P.width) === "auto"), t = e && yt, n = "notFoundContent" in u ? v : C("Select"), r = $e.length ? /* @__PURE__ */ L(
515
518
  Rt,
516
519
  {
517
- id: Ke,
520
+ id: je,
518
521
  role: "listbox",
519
522
  style: S,
520
- className: ce(`${A}-popup-inner`, N),
523
+ className: ce(`${V}-popup-inner`, N),
521
524
  ref: Ie,
522
525
  data: $e,
523
526
  height: null,
524
- isStaticItemHeight: !Ct,
527
+ isStaticItemHeight: !Ot,
525
528
  measureLongestItem: e,
526
529
  itemKey: (d) => d.props._key,
527
530
  onMouseDown: Jt,
528
531
  onMouseMove: () => {
529
532
  q.current = null;
530
533
  },
531
- onScroll: (d) => we == null ? void 0 : we(d.target),
534
+ onScroll: (d) => xe == null ? void 0 : xe(d.target),
532
535
  ...y,
533
536
  threshold: t ? null : y == null ? void 0 : y.threshold,
534
537
  children: (d) => {
535
- var Xe;
536
- if (at(d))
537
- return /* @__PURE__ */ w(d.type, { ...d.props, prefixCls: A });
538
- if (lt(d)) {
539
- const Ye = (Xe = d.props) == null ? void 0 : Xe.value, bt = x(le) ? le.value : le, vt = ae.map(
540
- (pe) => x(pe) ? pe.value : pe
538
+ var Ye;
539
+ if (ut(d))
540
+ return /* @__PURE__ */ L(d.type, { ...d.props, prefixCls: V });
541
+ if (at(d)) {
542
+ const Ze = (Ye = d.props) == null ? void 0 : Ye.value, vt = w(le) ? le.value : le, wt = ae.map(
543
+ (pe) => w(pe) ? pe.value : pe
541
544
  ), xt = {
542
- prefixCls: A,
545
+ prefixCls: V,
543
546
  rtl: F,
544
547
  _valueActive: U,
545
548
  _valueSelect: i,
546
549
  _isMultipleMode: g,
547
- _isUserCreatingOption: _ && bt === Ye,
548
- _isUserCreatedOption: _ && vt.indexOf(Ye) > -1,
549
- _onClick: We,
550
+ _isUserCreatingOption: _ && vt === Ze,
551
+ _isUserCreatedOption: _ && wt.indexOf(Ze) > -1,
552
+ _onClick: qe,
550
553
  _onMouseEnter: (pe) => {
551
554
  q.current === null && re(pe);
552
555
  },
@@ -554,34 +557,35 @@ function Zt(l, b) {
554
557
  q.current === null && re(void 0);
555
558
  }
556
559
  };
557
- return d && /* @__PURE__ */ w(d.type, { ...d.props, ...xt });
560
+ return d && /* @__PURE__ */ L(d.type, { ...d.props, ...xt });
558
561
  }
559
562
  return d;
560
563
  }
561
564
  }
562
- ) : null, p = n && !(_ && E) ? /* @__PURE__ */ w(
565
+ ) : null, p = n && !(_ && A) ? /* @__PURE__ */ L(
563
566
  "div",
564
567
  {
565
568
  style: S,
566
- className: ce(`${A}-popup-inner`, N),
569
+ className: ce(`${V}-popup-inner`, N),
567
570
  children: n
568
571
  }
569
572
  ) : null;
570
- return /* @__PURE__ */ ot(
573
+ return /* @__PURE__ */ it(
571
574
  "div",
572
575
  {
573
- className: ce(`${A}-popup`, {
574
- [`${A}-popup-hidden`]: r === null && p === null,
575
- [`${A}-popup-multiple`]: g
576
+ className: ce(`${V}-popup`, {
577
+ [`${V}-popup-hidden`]: r === null && p === null,
578
+ [`${V}-popup-multiple`]: g
576
579
  }),
577
580
  tabIndex: -1,
578
581
  onKeyDown: (d) => Oe(d),
579
582
  children: [
580
- !!g && !!r && /* @__PURE__ */ w(wt, { children: /* @__PURE__ */ w(
581
- it,
583
+ !!g && !!r && !!Ge && // 潘启宝添加
584
+ /* @__PURE__ */ L(
585
+ st,
582
586
  {
583
587
  "aria-hidden": "true",
584
- className: `${A}-checkbox ${A}-checkbox-all`,
588
+ className: `${V}-checkbox ${V}-checkbox-all`,
585
589
  checked: W.length === i.length,
586
590
  indeterminate: W.length !== i.length && i.length !== 0,
587
591
  onChange: (d) => {
@@ -589,7 +593,7 @@ function Zt(l, b) {
589
593
  },
590
594
  children: "全选"
591
595
  }
592
- ) }),
596
+ ),
593
597
  typeof O == "function" ? O(r || p) : r || p
594
598
  ]
595
599
  }
@@ -609,14 +613,14 @@ function Zt(l, b) {
609
613
  }
610
614
  }
611
615
  return !!fe.current;
612
- }, _t = {
613
- onFocus: pt,
616
+ }, bt = {
617
+ onFocus: ct,
614
618
  onBlur: (e) => {
615
- xe == null || xe(e), !T && !Te.current && Z("", "optionListHide");
619
+ we == null || we(e), !T && !Te.current && Z("", "optionListHide");
616
620
  },
617
621
  onKeyDown: (e) => {
618
622
  if (e.target.tagName === "INPUT" && e.target.value) {
619
- const t = e.key === tt.key, n = e.key === et.key;
623
+ const t = e.key === nt.key, n = e.key === tt.key;
620
624
  if (n || t) {
621
625
  const r = n ? `
622
626
  ` : t ? " " : "";
@@ -629,11 +633,11 @@ function Zt(l, b) {
629
633
  t !== "insertFromPaste" && Pe(e), fe.current ? Z("", "tokenSeparator") : Z(e, "manual"), !T && e && oe(!0);
630
634
  },
631
635
  onPaste: (e) => {
632
- Pe(e.clipboardData.getData("text")), Se == null || Se(e);
636
+ Pe(e.clipboardData.getData("text")), Ve == null || Ve(e);
633
637
  },
634
638
  // Option Items
635
639
  onRemoveCheckedItem: (e, t, n) => {
636
- n.stopPropagation(), Qe(i[t], "remove");
640
+ n.stopPropagation(), We(i[t], "remove");
637
641
  },
638
642
  onClear: (e) => {
639
643
  if (e.stopPropagation(), g) {
@@ -647,17 +651,17 @@ function Zt(l, b) {
647
651
  Z("", "manual"), be == null || be(T);
648
652
  }
649
653
  };
650
- St(
654
+ Vt(
651
655
  b,
652
656
  () => {
653
657
  var e;
654
658
  return {
655
- dom: (e = L.current) == null ? void 0 : e.dom,
659
+ dom: (e = E.current) == null ? void 0 : e.dom,
656
660
  focus() {
657
- L.current && L.current.focus();
661
+ E.current && E.current.focus();
658
662
  },
659
663
  blur() {
660
- L.current && L.current.blur();
664
+ E.current && E.current.blur();
661
665
  },
662
666
  hotkeyHandler: Oe,
663
667
  activeOptionValue: U,
@@ -666,7 +670,7 @@ function Zt(l, b) {
666
670
  scrollIntoView: ge,
667
671
  getRootDOMNode() {
668
672
  var t, n;
669
- return (n = (t = L.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : n.call(t);
673
+ return (n = (t = E.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : n.call(t);
670
674
  }
671
675
  };
672
676
  },
@@ -678,11 +682,11 @@ function Zt(l, b) {
678
682
  ge
679
683
  ]
680
684
  );
681
- const qe = (e) => /* @__PURE__ */ w(
685
+ const Je = (e) => /* @__PURE__ */ L(
682
686
  It,
683
687
  {
684
- ref: (t) => Ge.current = t,
685
- popup: yt,
688
+ ref: (t) => He.current = t,
689
+ popup: _t,
686
690
  trigger: f,
687
691
  disabled: J,
688
692
  getPopupContainer: o,
@@ -705,26 +709,26 @@ function Zt(l, b) {
705
709
  return j(() => {
706
710
  var t;
707
711
  let e;
708
- return (t = L.current) != null && t.dom && (e = new ResizeObserver(() => {
712
+ return (t = E.current) != null && t.dom && (e = new ResizeObserver(() => {
709
713
  var n, r;
710
- (r = (n = Ge.current) == null ? void 0 : n.updatePopupPosition) == null || r.call(n);
711
- }), e.observe(L.current.dom)), () => {
714
+ (r = (n = He.current) == null ? void 0 : n.updatePopupPosition) == null || r.call(n);
715
+ }), e.observe(E.current.dom)), () => {
712
716
  var n, r, c;
713
- (n = L.current) != null && n.dom && ((r = e == null ? void 0 : e.unobserve) == null || r.call(e, L.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
717
+ (n = E.current) != null && n.dom && ((r = e == null ? void 0 : e.unobserve) == null || r.call(e, E.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
714
718
  };
715
- }, [(Je = L.current) == null ? void 0 : Je.dom]), Fe != null ? qe(Fe) : /* @__PURE__ */ w(
719
+ }, [(Xe = E.current) == null ? void 0 : Xe.dom]), Fe != null ? Je(Fe) : /* @__PURE__ */ L(
716
720
  $t,
717
721
  {
718
722
  ...u,
719
- ..._t,
720
- ref: L,
723
+ ...bt,
724
+ ref: E,
721
725
  value: i,
722
- inputValue: E,
726
+ inputValue: A,
723
727
  popupVisible: T,
724
728
  rtl: F,
725
- prefixCls: A,
729
+ prefixCls: V,
726
730
  allowCreate: !!_,
727
- ariaControls: Ke,
731
+ ariaControls: je,
728
732
  isEmptyValue: me,
729
733
  isMultiple: g,
730
734
  onSort: z,
@@ -739,14 +743,14 @@ function Zt(l, b) {
739
743
  );
740
744
  } else {
741
745
  let r = !1;
742
- if (V) {
746
+ if (k) {
743
747
  const c = u.value || u.defaultValue;
744
748
  if (Array.isArray(c)) {
745
749
  const p = c.find(
746
- (h) => x(h) && h.value === e
750
+ (h) => w(h) && h.value === e
747
751
  );
748
752
  p && (n = p.label, r = !0);
749
- } else x(c) && (n = c.label, r = !0);
753
+ } else w(c) && (n = c.label, r = !0);
750
754
  }
751
755
  !r && t && "children" in t && (n = t.children);
752
756
  }
@@ -755,16 +759,16 @@ function Zt(l, b) {
755
759
  disabled: t && t.disabled
756
760
  };
757
761
  },
758
- renderView: qe
762
+ renderView: Je
759
763
  }
760
764
  );
761
765
  }
762
766
  const zt = te.forwardRef(Zt), De = zt;
763
767
  De.displayName = "Select";
764
768
  De.Option = Me;
765
- De.OptGroup = st;
769
+ De.OptGroup = lt;
766
770
  export {
767
771
  De as S,
768
- at as a,
769
- lt as i
772
+ ut as a,
773
+ at as i
770
774
  };