@capillarytech/blaze-ui 1.0.3-alpha.8 → 1.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/{CapAlert → dist/CapAlert}/index.js +9 -85
  2. package/dist/CapAlert/index.js.map +1 -0
  3. package/{CapButton → dist/CapButton}/index.js +78 -104
  4. package/dist/CapButton/index.js.map +1 -0
  5. package/{CapCard → dist/CapCard}/index.js +9 -85
  6. package/dist/CapCard/index.js.map +1 -0
  7. package/{CapCheckbox → dist/CapCheckbox}/index.js +10 -86
  8. package/dist/CapCheckbox/index.js.map +1 -0
  9. package/{CapColumn → dist/CapColumn}/index.js +9 -85
  10. package/dist/CapColumn/index.js.map +1 -0
  11. package/{CapDivider → dist/CapDivider}/index.js +9 -85
  12. package/dist/CapDivider/index.js.map +1 -0
  13. package/{CapDropdown → dist/CapDropdown}/index.js +9 -85
  14. package/dist/CapDropdown/index.js.map +1 -0
  15. package/{CapForm → dist/CapForm}/index.js +9 -85
  16. package/dist/CapForm/index.js.map +1 -0
  17. package/{CapFormItem → dist/CapFormItem}/index.js +9 -85
  18. package/dist/CapFormItem/index.js.map +1 -0
  19. package/{CapIcon → dist/CapIcon}/index.js +77 -103
  20. package/dist/CapIcon/index.js.map +1 -0
  21. package/{CapLabel → dist/CapLabel}/index.js +9 -85
  22. package/dist/CapLabel/index.js.map +1 -0
  23. package/{CapMenu → dist/CapMenu}/index.js +9 -85
  24. package/dist/CapMenu/index.js.map +1 -0
  25. package/{CapRadio → dist/CapRadio}/index.js +10 -86
  26. package/dist/CapRadio/index.js.map +1 -0
  27. package/{CapRow → dist/CapRow}/index.js +9 -85
  28. package/dist/CapRow/index.js.map +1 -0
  29. package/{CapSwitch → dist/CapSwitch}/index.js +9 -85
  30. package/dist/CapSwitch/index.js.map +1 -0
  31. package/{CapTab → dist/CapTab}/index.js +9 -85
  32. package/dist/CapTab/index.js.map +1 -0
  33. package/dist/CapTable/index.js +1115 -0
  34. package/dist/CapTable/index.js.map +1 -0
  35. package/{CapTooltip → dist/CapTooltip}/index.js +9 -85
  36. package/dist/CapTooltip/index.js.map +1 -0
  37. package/{CapTooltipWithInfo → dist/CapTooltipWithInfo}/index.js +79 -105
  38. package/dist/CapTooltipWithInfo/index.js.map +1 -0
  39. package/{CapUnifiedSelect → dist/CapUnifiedSelect}/index.js +148 -1346
  40. package/dist/CapUnifiedSelect/index.js.map +1 -0
  41. package/dist/index.js +5872 -0
  42. package/dist/index.js.map +1 -0
  43. package/{utils → dist/utils}/index.js.map +1 -1
  44. package/package.json +112 -160
  45. package/.DS_Store +0 -0
  46. package/CapAlert/CapAlert.d.ts +0 -12
  47. package/CapAlert/CapAlert.d.ts.map +0 -1
  48. package/CapAlert/CapAlert.test.d.ts +0 -2
  49. package/CapAlert/CapAlert.test.d.ts.map +0 -1
  50. package/CapAlert/index.d.ts +0 -3
  51. package/CapAlert/index.d.ts.map +0 -1
  52. package/CapAlert/index.js.map +0 -1
  53. package/CapButton/CapButton.d.ts +0 -11
  54. package/CapButton/CapButton.d.ts.map +0 -1
  55. package/CapButton/CapButton.test.d.ts +0 -2
  56. package/CapButton/CapButton.test.d.ts.map +0 -1
  57. package/CapButton/index.d.ts +0 -3
  58. package/CapButton/index.d.ts.map +0 -1
  59. package/CapButton/index.js.map +0 -1
  60. package/CapCard/CapCard.d.ts +0 -9
  61. package/CapCard/CapCard.d.ts.map +0 -1
  62. package/CapCard/CapCard.test.d.ts +0 -2
  63. package/CapCard/CapCard.test.d.ts.map +0 -1
  64. package/CapCard/index.d.ts +0 -3
  65. package/CapCard/index.d.ts.map +0 -1
  66. package/CapCard/index.js.map +0 -1
  67. package/CapCheckbox/CapCheckbox.d.ts +0 -17
  68. package/CapCheckbox/CapCheckbox.d.ts.map +0 -1
  69. package/CapCheckbox/CapCheckbox.test.d.ts +0 -2
  70. package/CapCheckbox/CapCheckbox.test.d.ts.map +0 -1
  71. package/CapCheckbox/index.d.ts +0 -3
  72. package/CapCheckbox/index.d.ts.map +0 -1
  73. package/CapCheckbox/index.js.map +0 -1
  74. package/CapColumn/CapColumn.d.ts +0 -9
  75. package/CapColumn/CapColumn.d.ts.map +0 -1
  76. package/CapColumn/CapColumn.test.d.ts +0 -2
  77. package/CapColumn/CapColumn.test.d.ts.map +0 -1
  78. package/CapColumn/index.d.ts +0 -3
  79. package/CapColumn/index.d.ts.map +0 -1
  80. package/CapColumn/index.js.map +0 -1
  81. package/CapDivider/CapDivider.d.ts +0 -9
  82. package/CapDivider/CapDivider.d.ts.map +0 -1
  83. package/CapDivider/CapDivider.test.d.ts +0 -2
  84. package/CapDivider/CapDivider.test.d.ts.map +0 -1
  85. package/CapDivider/index.d.ts +0 -3
  86. package/CapDivider/index.d.ts.map +0 -1
  87. package/CapDivider/index.js.map +0 -1
  88. package/CapDropdown/CapDropdown.d.ts +0 -20
  89. package/CapDropdown/CapDropdown.d.ts.map +0 -1
  90. package/CapDropdown/CapDropdown.test.d.ts +0 -2
  91. package/CapDropdown/CapDropdown.test.d.ts.map +0 -1
  92. package/CapDropdown/index.d.ts +0 -3
  93. package/CapDropdown/index.d.ts.map +0 -1
  94. package/CapDropdown/index.js.map +0 -1
  95. package/CapForm/CapForm.d.ts +0 -10
  96. package/CapForm/CapForm.d.ts.map +0 -1
  97. package/CapForm/CapForm.test.d.ts +0 -2
  98. package/CapForm/CapForm.test.d.ts.map +0 -1
  99. package/CapForm/index.d.ts +0 -3
  100. package/CapForm/index.d.ts.map +0 -1
  101. package/CapForm/index.js.map +0 -1
  102. package/CapFormItem/CapFormItem.d.ts +0 -13
  103. package/CapFormItem/CapFormItem.d.ts.map +0 -1
  104. package/CapFormItem/CapFormItem.test.d.ts +0 -2
  105. package/CapFormItem/CapFormItem.test.d.ts.map +0 -1
  106. package/CapFormItem/index.d.ts +0 -3
  107. package/CapFormItem/index.d.ts.map +0 -1
  108. package/CapFormItem/index.js.map +0 -1
  109. package/CapIcon/CapIcon.d.ts +0 -31
  110. package/CapIcon/CapIcon.d.ts.map +0 -1
  111. package/CapIcon/CapIcon.test.d.ts +0 -2
  112. package/CapIcon/CapIcon.test.d.ts.map +0 -1
  113. package/CapIcon/index.d.ts +0 -3
  114. package/CapIcon/index.d.ts.map +0 -1
  115. package/CapIcon/index.js.map +0 -1
  116. package/CapInput/CapInput.d.ts +0 -11
  117. package/CapInput/CapInput.d.ts.map +0 -1
  118. package/CapInput/CapInput.test.d.ts +0 -2
  119. package/CapInput/CapInput.test.d.ts.map +0 -1
  120. package/CapInput/Number.d.ts +0 -9
  121. package/CapInput/Number.d.ts.map +0 -1
  122. package/CapInput/Number.test.d.ts +0 -2
  123. package/CapInput/Number.test.d.ts.map +0 -1
  124. package/CapInput/Search.d.ts +0 -9
  125. package/CapInput/Search.d.ts.map +0 -1
  126. package/CapInput/Search.test.d.ts +0 -2
  127. package/CapInput/Search.test.d.ts.map +0 -1
  128. package/CapInput/TextArea.d.ts +0 -9
  129. package/CapInput/TextArea.d.ts.map +0 -1
  130. package/CapInput/TextArea.test.d.ts +0 -2
  131. package/CapInput/TextArea.test.d.ts.map +0 -1
  132. package/CapInput/index.d.ts +0 -9
  133. package/CapInput/index.d.ts.map +0 -1
  134. package/CapLabel/CapLabel.d.ts +0 -23
  135. package/CapLabel/CapLabel.d.ts.map +0 -1
  136. package/CapLabel/CapLabel.test.d.ts +0 -2
  137. package/CapLabel/CapLabel.test.d.ts.map +0 -1
  138. package/CapLabel/index.d.ts +0 -3
  139. package/CapLabel/index.d.ts.map +0 -1
  140. package/CapLabel/index.js.map +0 -1
  141. package/CapMenu/CapMenu.d.ts +0 -27
  142. package/CapMenu/CapMenu.d.ts.map +0 -1
  143. package/CapMenu/CapMenu.test.d.ts +0 -2
  144. package/CapMenu/CapMenu.test.d.ts.map +0 -1
  145. package/CapMenu/index.d.ts +0 -3
  146. package/CapMenu/index.d.ts.map +0 -1
  147. package/CapMenu/index.js.map +0 -1
  148. package/CapRadio/CapRadio.d.ts +0 -18
  149. package/CapRadio/CapRadio.d.ts.map +0 -1
  150. package/CapRadio/CapRadio.test.d.ts +0 -2
  151. package/CapRadio/CapRadio.test.d.ts.map +0 -1
  152. package/CapRadio/index.d.ts +0 -3
  153. package/CapRadio/index.d.ts.map +0 -1
  154. package/CapRadio/index.js.map +0 -1
  155. package/CapRow/CapRow.d.ts +0 -27
  156. package/CapRow/CapRow.d.ts.map +0 -1
  157. package/CapRow/CapRow.test.d.ts +0 -2
  158. package/CapRow/CapRow.test.d.ts.map +0 -1
  159. package/CapRow/index.d.ts +0 -3
  160. package/CapRow/index.d.ts.map +0 -1
  161. package/CapRow/index.js.map +0 -1
  162. package/CapSkeleton/CapSkeleton.d.ts +0 -8
  163. package/CapSkeleton/CapSkeleton.d.ts.map +0 -1
  164. package/CapSkeleton/CapSkeleton.test.d.ts +0 -2
  165. package/CapSkeleton/CapSkeleton.test.d.ts.map +0 -1
  166. package/CapSkeleton/index.d.ts +0 -3
  167. package/CapSkeleton/index.d.ts.map +0 -1
  168. package/CapSpin/CapSpin.d.ts +0 -8
  169. package/CapSpin/CapSpin.d.ts.map +0 -1
  170. package/CapSpin/CapSpin.test.d.ts +0 -2
  171. package/CapSpin/CapSpin.test.d.ts.map +0 -1
  172. package/CapSpin/index.d.ts +0 -3
  173. package/CapSpin/index.d.ts.map +0 -1
  174. package/CapSwitch/CapSwitch.d.ts +0 -12
  175. package/CapSwitch/CapSwitch.d.ts.map +0 -1
  176. package/CapSwitch/CapSwitch.test.d.ts +0 -2
  177. package/CapSwitch/CapSwitch.test.d.ts.map +0 -1
  178. package/CapSwitch/index.d.ts +0 -3
  179. package/CapSwitch/index.d.ts.map +0 -1
  180. package/CapSwitch/index.js.map +0 -1
  181. package/CapTab/CapTab.d.ts +0 -21
  182. package/CapTab/CapTab.d.ts.map +0 -1
  183. package/CapTab/CapTab.test.d.ts +0 -2
  184. package/CapTab/CapTab.test.d.ts.map +0 -1
  185. package/CapTab/index.d.ts +0 -3
  186. package/CapTab/index.d.ts.map +0 -1
  187. package/CapTab/index.js.map +0 -1
  188. package/CapTable/CapTable.d.ts +0 -27
  189. package/CapTable/CapTable.d.ts.map +0 -1
  190. package/CapTable/CapTable.test.d.ts +0 -2
  191. package/CapTable/CapTable.test.d.ts.map +0 -1
  192. package/CapTable/index.d.ts +0 -3
  193. package/CapTable/index.d.ts.map +0 -1
  194. package/CapTable/index.js +0 -18315
  195. package/CapTable/index.js.map +0 -1
  196. package/CapTable/loadable.d.ts +0 -5
  197. package/CapTable/loadable.d.ts.map +0 -1
  198. package/CapTable/loadable.test.d.ts +0 -2
  199. package/CapTable/loadable.test.d.ts.map +0 -1
  200. package/CapTestSelect/CapTestSelect.d.ts +0 -24
  201. package/CapTestSelect/CapTestSelect.d.ts.map +0 -1
  202. package/CapTestSelect/CapTestSelect.test.d.ts +0 -2
  203. package/CapTestSelect/CapTestSelect.test.d.ts.map +0 -1
  204. package/CapTestSelect/index.d.ts +0 -3
  205. package/CapTestSelect/index.d.ts.map +0 -1
  206. package/CapTooltip/CapTooltip.d.ts +0 -10
  207. package/CapTooltip/CapTooltip.d.ts.map +0 -1
  208. package/CapTooltip/CapTooltip.test.d.ts +0 -2
  209. package/CapTooltip/CapTooltip.test.d.ts.map +0 -1
  210. package/CapTooltip/index.d.ts +0 -3
  211. package/CapTooltip/index.d.ts.map +0 -1
  212. package/CapTooltip/index.js.map +0 -1
  213. package/CapTooltipWithInfo/CapTooltipWithInfo.d.ts +0 -18
  214. package/CapTooltipWithInfo/CapTooltipWithInfo.d.ts.map +0 -1
  215. package/CapTooltipWithInfo/CapTooltipWithInfo.test.d.ts +0 -2
  216. package/CapTooltipWithInfo/CapTooltipWithInfo.test.d.ts.map +0 -1
  217. package/CapTooltipWithInfo/index.d.ts +0 -3
  218. package/CapTooltipWithInfo/index.d.ts.map +0 -1
  219. package/CapTooltipWithInfo/index.js.map +0 -1
  220. package/CapUnifiedSelect/CapUnifiedSelect.d.ts +0 -144
  221. package/CapUnifiedSelect/CapUnifiedSelect.d.ts.map +0 -1
  222. package/CapUnifiedSelect/CapUnifiedSelect.test.d.ts +0 -2
  223. package/CapUnifiedSelect/CapUnifiedSelect.test.d.ts.map +0 -1
  224. package/CapUnifiedSelect/constants.d.ts +0 -57
  225. package/CapUnifiedSelect/constants.d.ts.map +0 -1
  226. package/CapUnifiedSelect/index.d.ts +0 -3
  227. package/CapUnifiedSelect/index.d.ts.map +0 -1
  228. package/CapUnifiedSelect/index.js.map +0 -1
  229. package/CapUnifiedSelect/messages.d.ts +0 -24
  230. package/CapUnifiedSelect/messages.d.ts.map +0 -1
  231. package/CapUnifiedSelect/testData.d.ts +0 -107
  232. package/CapUnifiedSelect/testData.d.ts.map +0 -1
  233. package/LocaleHoc/index.d.ts +0 -9
  234. package/LocaleHoc/index.d.ts.map +0 -1
  235. package/LocaleHoc/index.test.d.ts +0 -2
  236. package/LocaleHoc/index.test.d.ts.map +0 -1
  237. package/index.d.ts +0 -54
  238. package/index.d.ts.map +0 -1
  239. package/index.js +0 -24149
  240. package/index.js.map +0 -1
  241. package/styled/variables.d.ts +0 -150
  242. package/styled/variables.d.ts.map +0 -1
  243. package/utils/fonts.d.ts +0 -49
  244. package/utils/fonts.d.ts.map +0 -1
  245. package/utils/fonts.test.d.ts +0 -2
  246. package/utils/fonts.test.d.ts.map +0 -1
  247. package/utils/index.d.ts +0 -44
  248. package/utils/index.d.ts.map +0 -1
  249. package/utils/styles.d.ts +0 -19
  250. package/utils/styles.d.ts.map +0 -1
  251. /package/{CapInput → dist/CapInput}/index.js +0 -0
  252. /package/{CapInput → dist/CapInput}/index.js.map +0 -0
  253. /package/{CapSkeleton → dist/CapSkeleton}/index.js +0 -0
  254. /package/{CapSkeleton → dist/CapSkeleton}/index.js.map +0 -0
  255. /package/{CapSpin → dist/CapSpin}/index.js +0 -0
  256. /package/{CapSpin → dist/CapSpin}/index.js.map +0 -0
  257. /package/{CapTestSelect → dist/CapTestSelect}/index.js +0 -0
  258. /package/{CapTestSelect → dist/CapTestSelect}/index.js.map +0 -0
  259. /package/{LocaleHoc → dist/LocaleHoc}/index.js +0 -0
  260. /package/{LocaleHoc → dist/LocaleHoc}/index.js.map +0 -0
  261. /package/{assets → dist/assets}/upload.svg +0 -0
  262. /package/{styled → dist/styled}/variables.scss +0 -0
  263. /package/{utils → dist/utils}/index.js +0 -0
@@ -35,20 +35,6 @@ var f=__webpack_require__(9206),k=Symbol.for("react.element"),l=Symbol.for("reac
35
35
  function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
36
36
 
37
37
 
38
- /***/ }),
39
-
40
- /***/ 1549:
41
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
42
-
43
- "use strict";
44
-
45
-
46
- exports.__esModule = true;
47
- exports["default"] = void 0;
48
- var _CapSpin = _interopRequireDefault(__webpack_require__(7579));
49
- exports["default"] = _CapSpin.default;
50
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
51
-
52
38
  /***/ }),
53
39
 
54
40
  /***/ 1601:
@@ -130,7 +116,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
130
116
 
131
117
  exports.__esModule = true;
132
118
  exports["default"] = void 0;
133
- var _classnames = _interopRequireDefault(__webpack_require__(6942));
119
+ var _classnames = _interopRequireDefault(__webpack_require__(2678));
134
120
  var _react = _interopRequireDefault(__webpack_require__(9206));
135
121
  var _styles = _interopRequireDefault(__webpack_require__(4939));
136
122
  var _jsxRuntime = __webpack_require__(4848);
@@ -195,6 +181,14 @@ var _default = exports["default"] = CapLabelWithStatic;
195
181
 
196
182
  /***/ }),
197
183
 
184
+ /***/ 2678:
185
+ /***/ ((module) => {
186
+
187
+ "use strict";
188
+ module.exports = require("classnames");
189
+
190
+ /***/ }),
191
+
198
192
  /***/ 3737:
199
193
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
200
194
 
@@ -218,7 +212,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
218
212
  exports.__esModule = true;
219
213
  exports["default"] = void 0;
220
214
  var _antdV = __webpack_require__(4273);
221
- var _classnames = _interopRequireDefault(__webpack_require__(6942));
215
+ var _classnames = _interopRequireDefault(__webpack_require__(2678));
222
216
  var _react = _interopRequireDefault(__webpack_require__(9206));
223
217
  var _styles = _interopRequireDefault(__webpack_require__(5765));
224
218
  var _jsxRuntime = __webpack_require__(4848);
@@ -473,7 +467,7 @@ module.exports = domAPI;
473
467
 
474
468
  exports.__esModule = true;
475
469
  exports["default"] = void 0;
476
- var _classnames = _interopRequireDefault(__webpack_require__(6942));
470
+ var _classnames = _interopRequireDefault(__webpack_require__(2678));
477
471
  var _react = _interopRequireDefault(__webpack_require__(9206));
478
472
  var _CapIcon = _interopRequireDefault(__webpack_require__(8244));
479
473
  var _CapTooltip = _interopRequireDefault(__webpack_require__(5636));
@@ -765,22 +759,26 @@ module.exports = ___CSS_LOADER_EXPORT___;
765
759
  exports.__esModule = true;
766
760
  exports["default"] = void 0;
767
761
  var _antdV = __webpack_require__(4273);
768
- var _classnames = _interopRequireDefault(__webpack_require__(6942));
762
+ var _classnames = _interopRequireDefault(__webpack_require__(2678));
769
763
  var _react = _interopRequireWildcard(__webpack_require__(9206));
770
764
  var _CapIcon = _interopRequireDefault(__webpack_require__(8244));
771
765
  var _CapLabel = _interopRequireDefault(__webpack_require__(3737));
772
766
  var _CapRow = _interopRequireDefault(__webpack_require__(7375));
773
- var _CapSpin = _interopRequireDefault(__webpack_require__(1549));
774
767
  var _CapTooltip = _interopRequireDefault(__webpack_require__(5636));
775
768
  var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(2608));
776
- var _constants = __webpack_require__(9788);
777
769
  var _styles = _interopRequireDefault(__webpack_require__(8263));
778
770
  var _jsxRuntime = __webpack_require__(4848);
779
- const _excluded = ["type", "options", "value", "onChange", "placeholder", "className", "style", "isError", "errorMessage", "containerClassName", "popoverClassName", "allowClear", "headerLabel", "onUpload", "uploadLabel", "tooltip", "bylineText", "disabled", "showUpload", "customPopupRender", "showSearch", "searchBasedOn", "onSearch", "searchDebounce", "onConfirm", "clearText", "noResultCustomText", "noResultCustomIcon", "readOnly", "staticValue", "onFooterDownloadChange", "onPopupScroll", "enableVirtualization", "virtualRowHeight", "resetSearch", "resetData", "fetchMissingOptions"];
771
+ const _excluded = ["type", "options", "value", "onChange", "placeholder", "className", "style", "isError", "errorMessage", "containerClassName", "popoverClassName", "allowClear", "headerLabel", "onUpload", "tooltip", "bylineText", "disabled", "showUpload", "customPopupRender", "showSearch", "searchBasedOn", "onConfirm", "clearText", "noResultCustomText", "noResultCustomIcon", "readOnly"];
780
772
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
781
773
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
782
774
  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; }
783
- 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); } /* eslint-disable max-lines */
775
+ 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); }
776
+ const SELECT_TYPES = {
777
+ SELECT: 'select',
778
+ MULTI_SELECT: 'multiSelect',
779
+ TREE_SELECT: 'treeSelect',
780
+ MULTI_TREE_SELECT: 'multiTreeSelect'
781
+ };
784
782
  const NoResult = _ref => {
785
783
  let {
786
784
  noResultCustomText,
@@ -798,7 +796,7 @@ const NoResult = _ref => {
798
796
  size: "m"
799
797
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
800
798
  className: _styles.default['cap-unified-select-no-result-text'],
801
- children: showUpload && (options == null ? void 0 : options.length) === 0 ? noResultCustomText : _constants.DEFAULTS.NO_RESULT_TEXT
799
+ children: showUpload && (options == null ? void 0 : options.length) === 0 ? noResultCustomText : 'No results found'
802
800
  })]
803
801
  });
804
802
  };
@@ -883,27 +881,22 @@ const countSelectedLeaves = (treeMaps, selectedValues) => {
883
881
  selectedValues == null || selectedValues.forEach(processNode);
884
882
  return (treeMaps == null || (_treeMaps$leafValues = treeMaps.leafValues) == null ? void 0 : _treeMaps$leafValues.reduce((count, leaf) => expandedSet.has(leaf) ? count + 1 : count, 0)) || 0;
885
883
  };
886
- const filterTreeData = function (data, search, searchBasedOn, selectedValues) {
884
+ const filterTreeData = function (data, search, searchBasedOn) {
887
885
  if (searchBasedOn === void 0) {
888
886
  searchBasedOn = 'label';
889
887
  }
890
888
  if (!(data != null && data.length) || !search) return data;
891
889
  const searchLower = search.toLowerCase();
892
- const selectedSet = new Set(selectedValues || []);
893
890
  const nodeMatchesSearch = node => {
894
891
  var _node$value, _node$key, _ref3, _node$label;
895
892
  const target = searchBasedOn === 'value' ? String((_node$value = node == null ? void 0 : node.value) != null ? _node$value : '') : searchBasedOn === 'key' ? String((_node$key = node == null ? void 0 : node.key) != null ? _node$key : '') : String((_ref3 = (_node$label = node == null ? void 0 : node.label) != null ? _node$label : node == null ? void 0 : node.title) != null ? _ref3 : '');
896
893
  return target.toLowerCase().includes(searchLower);
897
894
  };
898
- const isNodeSelected = node => {
899
- return node.value !== undefined && selectedSet.has(node.value);
900
- };
901
895
  const loop = items => items.reduce((acc, item) => {
902
896
  var _item$children;
903
897
  if (!item) return acc;
904
898
  const children = item != null && (_item$children = item.children) != null && _item$children.length ? loop(item.children) : [];
905
- // Include node if: matches search OR is selected OR has matching children
906
- if (nodeMatchesSearch(item) || isNodeSelected(item) || children.length) {
899
+ if (nodeMatchesSearch(item) || children.length) {
907
900
  acc.push(_extends({}, item, {
908
901
  children
909
902
  }));
@@ -914,11 +907,11 @@ const filterTreeData = function (data, search, searchBasedOn, selectedValues) {
914
907
  };
915
908
  const CapUnifiedSelect = _ref4 => {
916
909
  let {
917
- type = _constants.SELECT_TYPES.SELECT,
910
+ type = SELECT_TYPES.SELECT,
918
911
  options = [],
919
912
  value,
920
913
  onChange,
921
- placeholder = _constants.DEFAULTS.PLACEHOLDER,
914
+ placeholder = 'Select an option',
922
915
  className = '',
923
916
  style,
924
917
  isError = false,
@@ -928,7 +921,6 @@ const CapUnifiedSelect = _ref4 => {
928
921
  allowClear = false,
929
922
  headerLabel,
930
923
  onUpload,
931
- uploadLabel = _constants.DEFAULTS.UPLOAD_LABEL,
932
924
  tooltip,
933
925
  bylineText,
934
926
  disabled = false,
@@ -936,659 +928,38 @@ const CapUnifiedSelect = _ref4 => {
936
928
  customPopupRender = true,
937
929
  showSearch = true,
938
930
  searchBasedOn = 'label',
939
- onSearch,
940
- searchDebounce = _constants.TIMEOUTS.DEFAULT_SEARCH_DEBOUNCE,
941
931
  onConfirm,
942
- clearText = _constants.DEFAULTS.CLEAR_TEXT,
943
- noResultCustomText = _constants.DEFAULTS.NO_RESULT_TEXT,
944
- noResultCustomIcon = _constants.DEFAULTS.NO_RESULT_ICON,
945
- readOnly = false,
946
- staticValue = true,
947
- onFooterDownloadChange,
948
- onPopupScroll,
949
- enableVirtualization = false,
950
- virtualRowHeight = _constants.DEFAULTS.VIRTUAL_ROW_HEIGHT,
951
- resetSearch = true,
952
- resetData,
953
- fetchMissingOptions
932
+ clearText = 'Clear',
933
+ noResultCustomText = 'No results found',
934
+ noResultCustomIcon = 'warning',
935
+ readOnly = false
954
936
  } = _ref4,
955
937
  rest = _objectWithoutPropertiesLoose(_ref4, _excluded);
956
938
  const [searchText, setSearchText] = (0, _react.useState)('');
957
939
  const [tempValue, setTempValue] = (0, _react.useState)(value);
958
940
  const [dropdownOpen, setDropdownOpen] = (0, _react.useState)(false);
959
- const [isSearching, setIsSearching] = (0, _react.useState)(false);
960
- const [isLoadingOnScroll, setIsLoadingOnScroll] = (0, _react.useState)(false);
961
- const [isResettingData, setIsResettingData] = (0, _react.useState)(false);
962
- // Store ordered options after confirm (selected items moved to top based on selection order)
963
- const [orderedOptions, setOrderedOptions] = (0, _react.useState)(null);
964
- const searchTimeoutRef = (0, _react.useRef)(null);
965
- const scrollContainerRef = (0, _react.useRef)(null);
966
- const scrollLoadingTimeoutRef = (0, _react.useRef)(null);
967
- // Track if scroll handler is currently processing to prevent duplicate calls
968
- const isScrollProcessingRef = (0, _react.useRef)(false);
969
- // Throttle ref for scroll events
970
- const scrollThrottleTimeoutRef = (0, _react.useRef)(null);
971
- // Ref to track options for scroll handler (avoids recreating handleScroll)
972
- const optionsRef = (0, _react.useRef)(options);
973
- // Cache of selected items from async results to preserve them during search
974
- const selectedItemsCacheRef = (0, _react.useRef)(new Map());
975
- // Track the last search query to detect when options update after search
976
- const lastSearchQueryRef = (0, _react.useRef)('');
977
- // Track when search was cleared to help clear loading state
978
- const searchClearedTimeRef = (0, _react.useRef)(null);
979
- // Track previous options to detect when they change after a search
980
- const prevOptionsRef = (0, _react.useRef)(options);
981
- // Track previous options before resetData is called to detect when options update
982
- const prevOptionsBeforeResetRef = (0, _react.useRef)(options);
983
- // Track previous options count to detect when options change after scroll
984
- const prevOptionsCountRef = (0, _react.useRef)(options.length);
985
- // Track previous options to detect when options change (even if count stays same)
986
- const prevOptionsRefForScroll = (0, _react.useRef)(options);
987
- // Track options count when scroll was triggered (for orderedOptions update)
988
- const scrollTriggerOptionsCountRef = (0, _react.useRef)(options.length);
989
- // Track if initial sort has been done (only sort once on initial load with selected values)
990
- const initialSortDoneRef = (0, _react.useRef)(false);
991
- // Track if user has interacted with the dropdown during current session (selected, searched, etc.)
992
- const hasInteractedRef = (0, _react.useRef)(false);
993
- // Track the initial tempValue when dropdown opens to detect if user made changes
994
- const initialTempValueRef = (0, _react.useRef)(value);
995
- // Track if resetData was already called in the current session to prevent duplicate calls
996
- const resetDataCalledRef = (0, _react.useRef)(false);
997
- // Track when resetData was called to help clear loading state
998
- const resetDataCalledTimeRef = (0, _react.useRef)(null);
999
- // Track if fetchMissingOptions was already called to prevent duplicate calls
1000
- const fetchMissingOptionsCalledRef = (0, _react.useRef)(false);
1001
- // Track the last missing values that were sent to prevent duplicate calls with same values
1002
- const lastMissingValuesRef = (0, _react.useRef)('');
1003
-
1004
- // Helper function to check if a value exists in options (recursive for tree structures)
1005
- const findValueInOptions = (0, _react.useCallback)((opts, targetValue) => {
1006
- for (const opt of opts) {
1007
- if (opt.value === targetValue) {
1008
- return true;
1009
- }
1010
- if (opt.children && opt.children.length > 0) {
1011
- if (findValueInOptions(opt.children, targetValue)) {
1012
- return true;
1013
- }
1014
- }
1015
- }
1016
- return false;
1017
- }, []);
1018
-
1019
- // Helper function to find missing selected values
1020
- const findMissingValues = (0, _react.useCallback)((selectedValues, currentOptions) => {
1021
- if (!selectedValues.length || !currentOptions.length) {
1022
- return selectedValues;
1023
- }
1024
- return selectedValues.filter(val => !findValueInOptions(currentOptions, val));
1025
- }, [findValueInOptions]);
1026
-
1027
- // Check for missing options and call fetchMissingOptions if needed
1028
- (0, _react.useEffect)(() => {
1029
- // Only check if fetchMissingOptions is provided
1030
- if (!fetchMissingOptions) {
1031
- return;
1032
- }
1033
-
1034
- // Get current selected values
1035
- const selectedValues = Array.isArray(value) ? value : value ? [value] : [];
1036
- if (selectedValues.length === 0) {
1037
- // No selected values, reset the tracking
1038
- fetchMissingOptionsCalledRef.current = false;
1039
- lastMissingValuesRef.current = '';
1040
- return;
1041
- }
1042
-
1043
- // Find missing values
1044
- const missingValues = findMissingValues(selectedValues, options);
1045
-
1046
- // If no missing values, reset tracking and return
1047
- if (missingValues.length === 0) {
1048
- fetchMissingOptionsCalledRef.current = false;
1049
- lastMissingValuesRef.current = '';
1050
- return;
1051
- }
1052
-
1053
- // Create a sorted string representation of missing values for comparison
1054
- // Use slice() to avoid mutating the original array
1055
- const missingValuesKey = [...missingValues].sort().join(',');
1056
-
1057
- // Only call if:
1058
- // 1. We haven't called it before, OR
1059
- // 2. The missing values have changed (different values are missing now)
1060
- if (!fetchMissingOptionsCalledRef.current || lastMissingValuesRef.current !== missingValuesKey) {
1061
- fetchMissingOptionsCalledRef.current = true;
1062
- lastMissingValuesRef.current = missingValuesKey;
1063
- // Call the developer's function with missing values (pass a copy to avoid mutation)
1064
- fetchMissingOptions([...missingValues]);
1065
- }
1066
- }, [value, options, fetchMissingOptions, findMissingValues]);
1067
941
  (0, _react.useEffect)(() => {
1068
942
  const isEqual = Array.isArray(value) && Array.isArray(tempValue) ? (value == null ? void 0 : value.length) === (tempValue == null ? void 0 : tempValue.length) && value.every(v => Array.isArray(tempValue) && tempValue.includes(v)) : value === tempValue;
1069
- if (!isEqual) {
1070
- setTempValue(value);
1071
- // Reset ordered options when value changes from outside
1072
- setOrderedOptions(null);
1073
- }
1074
- // eslint-disable-next-line react-hooks/exhaustive-deps
943
+ if (!isEqual) setTempValue(value);
1075
944
  }, [value]);
1076
-
1077
- // Cache selected items when tempValue changes
1078
- (0, _react.useEffect)(() => {
1079
- const currentSelected = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
1080
-
1081
- // Store selected items in cache for persistence
1082
- const findAndCacheOption = (opts, val) => {
1083
- for (const opt of opts) {
1084
- if (opt.value === val) {
1085
- selectedItemsCacheRef.current.set(val, opt);
1086
- return true;
1087
- }
1088
- if (opt.children && opt.children.length > 0) {
1089
- if (findAndCacheOption(opt.children, val)) {
1090
- return true;
1091
- }
1092
- }
1093
- }
1094
- return false;
1095
- };
1096
- currentSelected.forEach(val => {
1097
- if (!selectedItemsCacheRef.current.has(val)) {
1098
- findAndCacheOption(options, val);
1099
- }
1100
- });
1101
-
1102
- // Clean up cache for unselected items
1103
- const selectedSet = new Set(currentSelected);
1104
- selectedItemsCacheRef.current.forEach((_, value) => {
1105
- if (!selectedSet.has(value)) {
1106
- selectedItemsCacheRef.current.delete(value);
1107
- }
1108
- });
1109
- }, [tempValue, options]);
1110
-
1111
- // Reset ordered options when options change, but only if it would invalidate the current ordering
1112
- // This prevents resetting when options are updated via onSearch/onScroll but selected items still exist
1113
- (0, _react.useEffect)(() => {
1114
- // Only reset if we have orderedOptions and the current value's items are no longer in options
1115
- if (orderedOptions) {
1116
- const currentSelected = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
1117
-
1118
- // Check if all selected values still exist in the new options
1119
- const checkValueExists = (opts, val) => {
1120
- for (const opt of opts) {
1121
- if (opt.value === val) return true;
1122
- if (opt.children && opt.children.length > 0) {
1123
- if (checkValueExists(opt.children, val)) return true;
1124
- }
1125
- }
1126
- return false;
1127
- };
1128
-
1129
- // If any selected value is missing from new options, reset ordering
1130
- const allSelectedStillExist = currentSelected.every(val => checkValueExists(options, val));
1131
- if (!allSelectedStillExist) {
1132
- setOrderedOptions(null);
1133
- }
1134
- // Otherwise, keep the ordering even if options changed (e.g., via onSearch adding more items)
1135
- } else {
1136
- // No ordering set, nothing to reset
1137
- }
1138
- }, [options, orderedOptions, tempValue]);
1139
-
1140
- // Extract debounce timeout (extracted early for use in useEffects)
1141
- const debounceTimeout = searchDebounce != null ? searchDebounce : _constants.TIMEOUTS.DEFAULT_SEARCH_DEBOUNCE;
1142
-
1143
- // Keep optionsRef in sync with options
1144
- (0, _react.useEffect)(() => {
1145
- optionsRef.current = options;
1146
- }, [options]);
1147
-
1148
- // Cleanup timeouts on unmount
1149
- (0, _react.useEffect)(() => {
1150
- return () => {
1151
- if (searchTimeoutRef.current) {
1152
- clearTimeout(searchTimeoutRef.current);
1153
- }
1154
- if (scrollLoadingTimeoutRef.current) {
1155
- clearTimeout(scrollLoadingTimeoutRef.current);
1156
- }
1157
- if (scrollThrottleTimeoutRef.current) {
1158
- clearTimeout(scrollThrottleTimeoutRef.current);
1159
- }
1160
- };
1161
- }, []);
1162
-
1163
- // Detect when options update after a search to clear loading state
1164
- // This prevents showing "No results found" before data arrives
1165
- (0, _react.useEffect)(() => {
1166
- // Only handle this for API-based searches (staticValue = false)
1167
- // Check if lastSearchQueryRef has been set (including empty string for cleared search)
1168
- const hasSearchQuery = lastSearchQueryRef.current !== null && lastSearchQueryRef.current !== undefined;
1169
- if (staticValue || !isSearching || !hasSearchQuery) {
1170
- prevOptionsRef.current = options;
1171
- return;
1172
- }
1173
-
1174
- // Check if options actually changed (reference or content)
1175
- const optionsChanged = prevOptionsRef.current !== options || prevOptionsRef.current.length !== options.length;
1176
-
1177
- // Also check if search was cleared (empty string) and enough time has passed
1178
- // This handles the case where clearing search reloads initial data that might be the same reference
1179
- const searchCleared = lastSearchQueryRef.current === '';
1180
- const timeSinceCleared = searchClearedTimeRef.current ? Date.now() - searchClearedTimeRef.current : Infinity;
1181
- const hasOptionsData = options.length > 0;
1182
- // Wait at least SEARCH_CLEARED_TIMEOUT after search is cleared to allow API call to complete
1183
- const clearedSearchReady = searchCleared && hasOptionsData && timeSinceCleared > _constants.TIMEOUTS.SEARCH_CLEARED_TIMEOUT;
1184
- if (optionsChanged || clearedSearchReady) {
1185
- // Options updated after search - data has arrived
1186
- // Use a small delay to ensure state updates are processed
1187
- const timeoutId = setTimeout(() => {
1188
- setIsSearching(false);
1189
- prevOptionsRef.current = options;
1190
- // Clear timestamp when search loading is cleared
1191
- if (searchCleared) {
1192
- searchClearedTimeRef.current = null;
1193
- }
1194
- }, _constants.TIMEOUTS.SEARCH_STATE_UPDATE_DELAY);
1195
- return () => clearTimeout(timeoutId);
1196
- }
1197
- prevOptionsRef.current = options;
1198
- }, [options, staticValue, isSearching]);
1199
-
1200
- // Fallback: Clear searching state after a reasonable timeout to prevent infinite loading
1201
- // This handles edge cases where options might not change reference but data has arrived
1202
- // Also handles error cases where options don't update after search
1203
- (0, _react.useEffect)(() => {
1204
- // Check if lastSearchQueryRef has been set (including empty string for cleared search)
1205
- const hasSearchQuery = lastSearchQueryRef.current !== null && lastSearchQueryRef.current !== undefined;
1206
- if (!isSearching || staticValue || !hasSearchQuery) {
1207
- return;
1208
- }
1209
-
1210
- // For cleared search (empty string), use a shorter timeout since it should reload initial data quickly
1211
- // For regular search, use debounce timeout + buffer
1212
- const searchCleared = lastSearchQueryRef.current === '';
1213
- const timeoutDuration = searchCleared ? debounceTimeout + _constants.TIMEOUTS.SEARCH_CLEARED_BUFFER // Shorter timeout for cleared search
1214
- : debounceTimeout + _constants.TIMEOUTS.SEARCH_REGULAR_BUFFER; // Longer timeout for regular search
1215
-
1216
- // Calculate timeout: debounce timeout + a small buffer for API response
1217
- // This ensures we wait for the API call to complete before showing "No results"
1218
- // For error cases where options don't update, this will clear loading state
1219
- const fallbackTimeout = setTimeout(() => {
1220
- setIsSearching(false);
1221
- searchClearedTimeRef.current = null; // Clear search cleared timestamp
1222
- }, timeoutDuration);
1223
- return () => clearTimeout(fallbackTimeout);
1224
- }, [isSearching, staticValue, debounceTimeout, options.length]);
1225
-
1226
- // Detect when options update after resetData is called to clear loading state
1227
- (0, _react.useEffect)(() => {
1228
- if (!isResettingData) {
1229
- // Update ref even when not resetting to keep it in sync
1230
- prevOptionsBeforeResetRef.current = options;
1231
- // Clear timestamp when not resetting
1232
- resetDataCalledTimeRef.current = null;
1233
- return;
1234
- }
1235
-
1236
- // Check if options actually changed (reference, length, or content)
1237
- // Compare against the options that existed before resetData was called
1238
- const prevOptions = prevOptionsBeforeResetRef.current;
1239
- const currentOptions = options;
1240
-
1241
- // More robust comparison: check reference, length, or any content differences
1242
- const optionsChanged = prevOptions !== currentOptions || prevOptions.length !== currentOptions.length ||
1243
- // Deep comparison: check if any option values or labels changed
1244
- prevOptions.length === currentOptions.length && prevOptions.length > 0 && prevOptions.some((prevOpt, idx) => {
1245
- const currentOpt = currentOptions[idx];
1246
- return !currentOpt || prevOpt.value !== currentOpt.value || prevOpt.label !== currentOpt.label;
1247
- });
1248
-
1249
- // Additional check: if enough time has passed since resetData was called
1250
- // and we have options data, assume data has loaded even if comparison didn't detect change
1251
- const timeSinceReset = resetDataCalledTimeRef.current ? Date.now() - resetDataCalledTimeRef.current : Infinity;
1252
- const hasDataAfterTimeout = currentOptions.length > 0 && timeSinceReset > _constants.TIMEOUTS.RESET_DATA_MIN_TIME && timeSinceReset < _constants.TIMEOUTS.RESET_DATA_MAX_TIME;
1253
-
1254
- // If options changed or enough time has passed with data, clear the loading state
1255
- if (optionsChanged || hasDataAfterTimeout) {
1256
- // Options updated after resetData - data has arrived
1257
- // Clear immediately without delay for faster response
1258
- setIsResettingData(false);
1259
- prevOptionsBeforeResetRef.current = currentOptions;
1260
- resetDataCalledTimeRef.current = null;
1261
- }
1262
- }, [options, isResettingData]);
1263
-
1264
- // Fallback: Clear resetData loading state after a reasonable timeout
1265
- // This handles edge cases where options might not change reference but data has arrived
1266
- (0, _react.useEffect)(() => {
1267
- if (!isResettingData) {
1268
- return;
1269
- }
1270
-
1271
- // Set a timeout to clear loading state if options don't update
1272
- // Reduced timeout to 1 second for faster recovery
1273
- const fallbackTimeout = setTimeout(() => {
1274
- setIsResettingData(false);
1275
- // Update ref to current options to prevent false positives in future comparisons
1276
- prevOptionsBeforeResetRef.current = options;
1277
- // Clear timestamp
1278
- resetDataCalledTimeRef.current = null;
1279
- }, _constants.TIMEOUTS.RESET_DATA_TIMEOUT);
1280
- return () => clearTimeout(fallbackTimeout);
1281
- }, [isResettingData, options]);
1282
-
1283
- // Detect when options change after scroll to clear loading overlay
1284
- (0, _react.useEffect)(() => {
1285
- // Always update refs when options change (when not loading)
1286
- // This ensures we track the current state for next scroll detection
1287
- if (!isLoadingOnScroll) {
1288
- prevOptionsCountRef.current = options.length;
1289
- // Store a reference to the options array for comparison
1290
- // We'll compare by length and last item to detect changes
1291
- prevOptionsRefForScroll.current = options;
1292
- }
1293
-
1294
- // Only check for changes if we're currently loading from scroll
1295
- if (!isLoadingOnScroll || !onPopupScroll) {
1296
- return;
1297
- }
1298
-
1299
- // Check if options count increased (new data loaded via append)
1300
- const optionsCountIncreased = options.length > prevOptionsCountRef.current;
1301
-
1302
- // Check if options content changed (even if count is same - replacement scenario)
1303
- // Compare the last option to detect if new data was appended
1304
- const optionsContentChanged = (() => {
1305
- const prevCount = prevOptionsCountRef.current;
1306
- const currentCount = options.length;
1307
-
1308
- // If count changed, definitely content changed
1309
- if (prevCount !== currentCount) {
1310
- return true;
1311
- }
1312
-
1313
- // If count is same, check if last option changed (indicates new data appended/replaced)
1314
- if (currentCount > 0 && prevCount > 0 && prevOptionsRefForScroll.current.length > 0) {
1315
- const prevOptions = prevOptionsRefForScroll.current;
1316
- const lastPrevOption = prevOptions[prevOptions.length - 1];
1317
- const lastCurrentOption = options[options.length - 1];
1318
-
1319
- // If last option is different, content changed
1320
- if ((lastPrevOption == null ? void 0 : lastPrevOption.value) !== (lastCurrentOption == null ? void 0 : lastCurrentOption.value) || (lastPrevOption == null ? void 0 : lastPrevOption.label) !== (lastCurrentOption == null ? void 0 : lastCurrentOption.label)) {
1321
- return true;
1322
- }
1323
- }
1324
- return false;
1325
- })();
1326
-
1327
- // Clear loading if options changed (either count increased or content changed)
1328
- // This handles both append (count increase) and replace (content change) scenarios
1329
- if (optionsCountIncreased || optionsContentChanged) {
1330
- // Options updated after scroll - data has arrived, clear loading overlay
1331
- setIsLoadingOnScroll(false);
1332
- // Reset processing flag to allow next scroll event
1333
- isScrollProcessingRef.current = false;
1334
- if (scrollLoadingTimeoutRef.current) {
1335
- clearTimeout(scrollLoadingTimeoutRef.current);
1336
- scrollLoadingTimeoutRef.current = null;
1337
- }
1338
-
1339
- // Update refs to track the new state after options change
1340
- // This is critical for detecting subsequent scroll loads
1341
- prevOptionsCountRef.current = options.length;
1342
- prevOptionsRefForScroll.current = options;
1343
- }
1344
- }, [options, isLoadingOnScroll, onPopupScroll]);
1345
-
1346
- // Handle search with debouncing
1347
- const handleSearch = (0, _react.useCallback)(query => {
1348
- // Clear existing timeout
1349
- if (searchTimeoutRef.current) {
1350
- clearTimeout(searchTimeoutRef.current);
1351
- }
1352
- const trimmedQuery = query.trim();
1353
-
1354
- // Track when search is cleared (empty string after having a query)
1355
- const wasSearching = lastSearchQueryRef.current !== '';
1356
- const isNowCleared = trimmedQuery === '';
1357
- if (wasSearching && isNowCleared) {
1358
- searchClearedTimeRef.current = Date.now();
1359
- } else if (!isNowCleared) {
1360
- searchClearedTimeRef.current = null;
1361
- }
1362
-
1363
- // Track the search query to detect when options update
1364
- lastSearchQueryRef.current = trimmedQuery;
1365
-
1366
- // Mark as interacted if user typed something (even if they clear it later)
1367
- if (trimmedQuery.length > 0 || lastSearchQueryRef.current.length > 0) {
1368
- hasInteractedRef.current = true;
1369
- }
1370
-
1371
- // For API-based searches (staticValue = false), always call onSearch
1372
- // This allows the developer to reload all initial data when search is cleared
1373
- if (!staticValue && onSearch) {
1374
- // Set loading state for both empty and non-empty queries
1375
- setIsSearching(true);
1376
-
1377
- // Debounce the search callback
1378
- searchTimeoutRef.current = setTimeout(() => {
1379
- // Send the search input (empty string when cleared, or the actual query)
1380
- onSearch(trimmedQuery);
1381
- // For API-based searches, keep isSearching true until options update
1382
- // This prevents showing "No results found" before data arrives
1383
- }, debounceTimeout);
1384
- } else if (!trimmedQuery) {
1385
- // For static searches, if query is empty, just reset the state
1386
- setIsSearching(false);
1387
- } else {
1388
- // For static searches with content, show brief loading indicator
1389
- // Set loading state briefly to show user feedback
1390
- setIsSearching(true);
1391
- // Clear loading state after a short delay (filtering is instant but we show feedback)
1392
- searchTimeoutRef.current = setTimeout(() => {
1393
- setIsSearching(false);
1394
- }, _constants.TIMEOUTS.STATIC_SEARCH_DELAY);
1395
- }
1396
- }, [onSearch, staticValue, debounceTimeout]);
1397
- const isMulti = (0, _react.useMemo)(() => type === _constants.SELECT_TYPES.MULTI_SELECT || type === _constants.SELECT_TYPES.MULTI_TREE_SELECT, [type]);
1398
- const isTree = (0, _react.useMemo)(() => type === _constants.SELECT_TYPES.TREE_SELECT || type === _constants.SELECT_TYPES.MULTI_TREE_SELECT, [type]);
1399
-
1400
- // Use options directly since pagination is handled by the developer
1401
- const mergedOptions = (0, _react.useMemo)(() => {
1402
- return options;
1403
- }, [options]);
1404
-
1405
- // Helper function to reorder options based on selection order
1406
- // Selected items are moved to top in the order they were selected
1407
- // For tree structures, maintains parent-child relationships
1408
- // For flat lists, directly reorders items
1409
- // Works for all data types: flat lists, tree structures, nested trees
1410
- const reorderOptionsBySelection = (0, _react.useCallback)((opts, selectedOrder) => {
1411
- if (!Array.isArray(selectedOrder) || selectedOrder.length === 0 || !(opts != null && opts.length)) {
1412
- return opts;
1413
- }
1414
- const selectedSet = new Set(selectedOrder);
1415
- const selectedItems = [];
1416
- const unselectedItems = [];
1417
- const processedTopLevelValues = new Set();
1418
-
1419
- // Deep clone helper to avoid mutating original items
1420
- const deepCloneItem = item => {
1421
- return _extends({}, item, {
1422
- children: item.children ? item.children.map(deepCloneItem) : undefined
1423
- });
1424
- };
1425
-
1426
- // Find the top-level item that contains the selected value
1427
- // For flat lists, returns the item itself
1428
- // For tree structures, returns the top-level parent from opts
1429
- const findTopLevelItem = targetValue => {
1430
- // First, find which top-level item in opts contains this value
1431
- for (const topLevelItem of opts) {
1432
- // Check if this top-level item itself matches
1433
- if (topLevelItem.value === targetValue) {
1434
- return topLevelItem;
1435
- }
1436
-
1437
- // Recursively search in children
1438
- const searchInChildren = items => {
1439
- for (const item of items) {
1440
- if (item.value === targetValue) {
1441
- return true; // Found it
1442
- }
1443
- if (item.children && item.children.length > 0) {
1444
- if (searchInChildren(item.children)) {
1445
- return true;
1446
- }
1447
- }
1448
- }
1449
- return false;
1450
- };
1451
-
1452
- // If found in this top-level item's children, return the top-level item
1453
- if (topLevelItem.children && topLevelItem.children.length > 0) {
1454
- if (searchInChildren(topLevelItem.children)) {
1455
- return topLevelItem;
1456
- }
1457
- }
1458
- }
1459
- return null;
1460
- };
1461
-
1462
- // Check if an item or any of its descendants is selected
1463
- const hasSelectedDescendant = item => {
1464
- if (item.value !== undefined && selectedSet.has(item.value)) {
1465
- return true;
1466
- }
1467
- if (item.children && item.children.length > 0) {
1468
- return item.children.some(child => hasSelectedDescendant(child));
1469
- }
1470
- return false;
1471
- };
1472
-
1473
- // Collect selected items in selection order
1474
- selectedOrder.forEach(selectedVal => {
1475
- const topLevelItem = findTopLevelItem(selectedVal);
1476
- if (topLevelItem && topLevelItem.value !== undefined && !processedTopLevelValues.has(topLevelItem.value)) {
1477
- // Clone the item to avoid mutating the original
1478
- const clonedItem = deepCloneItem(topLevelItem);
1479
- selectedItems.push(clonedItem);
1480
- processedTopLevelValues.add(topLevelItem.value);
1481
- }
1482
- });
1483
-
1484
- // Collect unselected items maintaining original order
1485
- // For tree structures, only include top-level items that don't have any selected descendants
1486
- opts.forEach(item => {
1487
- if (item.value === undefined) {
1488
- // Item without value, include as-is
1489
- unselectedItems.push(deepCloneItem(item));
1490
- } else if (!processedTopLevelValues.has(item.value)) {
1491
- // Check if this item or any of its descendants is selected
1492
- if (!hasSelectedDescendant(item)) {
1493
- unselectedItems.push(deepCloneItem(item));
1494
- }
1495
- }
1496
- });
1497
-
1498
- // Return selected items first (in selection order), then unselected items
1499
- return [...selectedItems, ...unselectedItems];
1500
- }, []);
1501
-
1502
- // Update orderedOptions when new options are appended via scroll (when items are selected)
1503
- // This ensures new data appears even when items are selected
1504
- (0, _react.useEffect)(() => {
1505
- // Only update if we have orderedOptions (items are selected), onPopupScroll is provided,
1506
- // and options increased from when scroll was triggered
1507
- if (!orderedOptions || !onPopupScroll) {
1508
- return;
1509
- }
1510
- const currentOptions = options;
1511
- // Compare against the count when scroll was triggered, not the current ref value
1512
- // This ensures we detect increases even if refs were updated in other useEffects
1513
- const optionsCountIncreased = currentOptions.length > scrollTriggerOptionsCountRef.current;
1514
-
1515
- // Only update if options increased from scroll trigger time
1516
- // This prevents updating on other option changes (like search)
1517
- if (optionsCountIncreased && scrollTriggerOptionsCountRef.current > 0) {
1518
- const selectedValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
1519
- if (selectedValues.length > 0) {
1520
- // Reorder the full options list (which now includes new options) to maintain selection order
1521
- // This will put selected items at top and append new unselected items at bottom
1522
- const reordered = reorderOptionsBySelection(currentOptions, selectedValues);
1523
- setOrderedOptions(reordered);
1524
- // Update the scroll trigger count for next scroll detection
1525
- scrollTriggerOptionsCountRef.current = currentOptions.length;
1526
- }
1527
- }
1528
- }, [options, orderedOptions, onPopupScroll, tempValue, reorderOptionsBySelection]);
1529
-
1530
- // Sort selected items to top on initial load (only once)
1531
- // This handles the case when user comes from another flow with pre-selected values
1532
- (0, _react.useEffect)(() => {
1533
- // Only do this once, and only if we have options and selected values
1534
- if (initialSortDoneRef.current || !(options != null && options.length)) {
1535
- return;
1536
- }
1537
-
1538
- // Check if there are selected values
1539
- const selectedValues = Array.isArray(value) ? value : value ? [value] : [];
1540
- if (selectedValues.length === 0) {
1541
- // No selected values, mark as done
1542
- initialSortDoneRef.current = true;
1543
- return;
1544
- }
1545
-
1546
- // Check if any selected values exist in options
1547
- const checkValueExists = (opts, val) => {
1548
- for (const opt of opts) {
1549
- if (opt.value === val) return true;
1550
- if (opt.children && opt.children.length > 0) {
1551
- if (checkValueExists(opt.children, val)) return true;
1552
- }
1553
- }
1554
- return false;
1555
- };
1556
- const hasSelectedInOptions = selectedValues.some(val => checkValueExists(options, val));
1557
- if (hasSelectedInOptions) {
1558
- // Reorder options to move selected items to top
1559
- const reordered = reorderOptionsBySelection(options, selectedValues);
1560
- setOrderedOptions(reordered);
1561
- }
1562
-
1563
- // Mark as done - only sort once on initial load
1564
- initialSortDoneRef.current = true;
1565
- }, [options, value, reorderOptionsBySelection]);
945
+ const isMulti = (0, _react.useMemo)(() => type === SELECT_TYPES.MULTI_SELECT || type === SELECT_TYPES.MULTI_TREE_SELECT, [type]);
946
+ const isTree = (0, _react.useMemo)(() => type === SELECT_TYPES.TREE_SELECT || type === SELECT_TYPES.MULTI_TREE_SELECT, [type]);
1566
947
  const dataSource = (0, _react.useMemo)(() => {
1567
- // During search, use normal options (mergedOptions) to show filtered results without selected items at top
1568
- // When not searching, use ordered options if available (selected items at top), otherwise use merged options
1569
- const sourceOptions = searchText.trim() ? mergedOptions : orderedOptions || mergedOptions;
1570
- if (!(sourceOptions != null && sourceOptions.length)) return [];
948
+ if (!(options != null && options.length)) return [];
1571
949
  const enhanceOptions = opts => opts.map(opt => {
1572
950
  const decoratedTitle = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
1573
951
  className: _styles.default['cap-unified-select-option-with-suffix'],
1574
- justify: "space-between",
1575
- align: "middle",
1576
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
952
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
953
+ type: "label14",
1577
954
  className: _styles.default['cap-unified-select-option-label'],
1578
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
1579
- type: "label14",
1580
- children: opt == null ? void 0 : opt.label
1581
- })
1582
- }), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1583
- className: _styles.default['cap-unified-select-option-end'],
1584
- children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
1585
- className: _styles.default['cap-unified-select-option-suffix'],
1586
- children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
1587
- title: opt == null ? void 0 : opt.optionSuffixInfo
1588
- })]
1589
- }), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
1590
- title: opt == null ? void 0 : opt.optionTooltipInfo
955
+ children: opt == null ? void 0 : opt.label
956
+ }), (opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
957
+ className: _styles.default['cap-unified-select-option-suffix'],
958
+ children: [opt == null ? void 0 : opt.optionSuffix, ' ', (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
959
+ title: opt == null ? void 0 : opt.optionSuffixInfo
1591
960
  })]
961
+ }), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
962
+ title: opt == null ? void 0 : opt.optionTooltipInfo
1592
963
  })]
1593
964
  });
1594
965
  return _extends({}, opt, {
@@ -1597,43 +968,26 @@ const CapUnifiedSelect = _ref4 => {
1597
968
  children: opt != null && opt.children ? enhanceOptions(opt.children) : []
1598
969
  });
1599
970
  });
1600
- return isTree ? enhanceOptions(sourceOptions) : sourceOptions.map(opt => _extends({}, opt, {
971
+ return isTree ? enhanceOptions(options) : options.map(opt => _extends({}, opt, {
1601
972
  title: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
1602
973
  className: _styles.default['cap-unified-select-option-with-suffix'],
1603
- justify: "space-between",
1604
- align: "middle",
1605
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
974
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
975
+ type: "label14",
1606
976
  className: _styles.default['cap-unified-select-option-label'],
1607
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
1608
- type: "label14",
1609
- children: opt == null ? void 0 : opt.label
1610
- })
1611
- }), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1612
- className: _styles.default['cap-unified-select-option-end'],
1613
- children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
1614
- className: _styles.default['cap-unified-select-option-suffix'],
1615
- children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
1616
- title: opt == null ? void 0 : opt.optionSuffixInfo
1617
- })]
1618
- }), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
1619
- title: opt == null ? void 0 : opt.optionTooltipInfo
977
+ children: opt == null ? void 0 : opt.label
978
+ }), (opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
979
+ className: _styles.default['cap-unified-select-option-suffix'],
980
+ children: [opt == null ? void 0 : opt.optionSuffix, ' ', (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
981
+ title: opt == null ? void 0 : opt.optionSuffixInfo
1620
982
  })]
983
+ }), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
984
+ title: opt == null ? void 0 : opt.optionTooltipInfo
1621
985
  })]
1622
986
  }),
1623
987
  label: opt == null ? void 0 : opt.label
1624
988
  }));
1625
- }, [isTree, mergedOptions, orderedOptions, searchText]);
1626
- const filteredTree = (0, _react.useMemo)(() => {
1627
- const selectedValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
1628
- const hasSearchQuery = searchText.trim().length > 0;
1629
-
1630
- // If staticValue is true, use local filtering on existing options
1631
- // If staticValue is false, still use local filtering for immediate feedback,
1632
- // but onSearch callback will be triggered for parent to update options
1633
- // During search, don't include selectedValues so only matching items are shown
1634
- // When not searching, include selectedValues to show selected items
1635
- return filterTreeData(dataSource, searchText.trim(), searchBasedOn, hasSearchQuery ? undefined : selectedValues);
1636
- }, [dataSource, searchText, searchBasedOn, tempValue]);
989
+ }, [isTree, options]);
990
+ const filteredTree = (0, _react.useMemo)(() => filterTreeData(dataSource, searchText, searchBasedOn), [dataSource, searchText, searchBasedOn]);
1637
991
  const treeMaps = (0, _react.useMemo)(() => buildTreeMaps(options), [options]);
1638
992
  const selectedLeafCount = (0, _react.useMemo)(() => countSelectedLeaves(treeMaps, Array.isArray(tempValue) ? tempValue : undefined), [treeMaps, tempValue]);
1639
993
  const displayValue = dropdownOpen ? tempValue : value;
@@ -1678,336 +1032,28 @@ const CapUnifiedSelect = _ref4 => {
1678
1032
  return null;
1679
1033
  }, [isMulti, displayValue, treeMaps]);
1680
1034
  const handleConfirm = (0, _react.useCallback)(() => {
1681
- // Mark as interacted since user clicked confirm (explicit action)
1682
- hasInteractedRef.current = true;
1683
-
1684
- // Reorder options based on selection order when confirm is clicked
1685
- // Use mergedOptions to include paginated options if they exist
1686
- const optionsToReorder = mergedOptions;
1687
- if (isMulti && Array.isArray(tempValue) && tempValue.length > 0) {
1688
- // Reorder the options (includes paginated if they exist)
1689
- const reordered = reorderOptionsBySelection(optionsToReorder, tempValue);
1690
- setOrderedOptions(reordered);
1691
- } else if (!isMulti && tempValue && !Array.isArray(tempValue)) {
1692
- // For single select, move selected item to top
1693
- const reordered = reorderOptionsBySelection(optionsToReorder, [tempValue]);
1694
- setOrderedOptions(reordered);
1695
- } else {
1696
- // No selection, reset to original order
1697
- setOrderedOptions(null);
1698
- }
1699
1035
  onChange == null || onChange(tempValue);
1700
1036
  setDropdownOpen(false);
1701
- // Always clear searching state since search operation is complete
1702
- setIsSearching(false);
1703
- searchClearedTimeRef.current = null; // Clear search cleared timestamp
1704
- // Clear search text on confirm only if resetSearch is true
1705
- // This allows users to keep their search when reopening the dropdown if desired
1706
- if (resetSearch) {
1707
- setSearchText('');
1708
- lastSearchQueryRef.current = ''; // Clear search query ref
1709
- }
1710
- // Call resetData to allow developer to reload initial data
1711
- if (resetData) {
1712
- // Store current options before calling resetData to detect when they update
1713
- prevOptionsBeforeResetRef.current = mergedOptions;
1714
- setIsResettingData(true);
1715
- resetDataCalledRef.current = true;
1716
- resetDataCalledTimeRef.current = Date.now();
1717
- resetData();
1718
- }
1037
+ setSearchText('');
1719
1038
  onConfirm == null || onConfirm(tempValue);
1720
- }, [onChange, onConfirm, tempValue, resetSearch, isMulti, mergedOptions, reorderOptionsBySelection, resetData]);
1039
+ }, [onChange, onConfirm, tempValue]);
1721
1040
  const handleClearAll = (0, _react.useCallback)(() => {
1722
- // Mark as interacted since user clicked clear (explicit action)
1723
- hasInteractedRef.current = true;
1724
1041
  const cleared = isMulti ? [] : undefined;
1725
1042
  setTempValue(cleared);
1726
1043
  onChange == null || onChange(cleared);
1727
1044
  setDropdownOpen(false);
1728
- // Call resetData to allow developer to reload initial data
1729
- if (resetData) {
1730
- // Store current options before calling resetData to detect when they update
1731
- prevOptionsBeforeResetRef.current = options;
1732
- setIsResettingData(true);
1733
- resetDataCalledRef.current = true;
1734
- resetDataCalledTimeRef.current = Date.now();
1735
- resetData();
1736
- }
1737
- }, [isMulti, onChange, resetData, options]);
1045
+ }, [isMulti, onChange]);
1738
1046
  const handleDropdownVisibilityChange = (0, _react.useCallback)(open => {
1739
1047
  if (readOnly) {
1740
1048
  return;
1741
1049
  }
1742
- if (open) {
1743
- // Reset interaction tracking when dropdown opens
1744
- // Store initial value (not tempValue) to detect if user makes changes
1745
- // This ensures we track changes from the actual selected value, not temporary state
1746
- initialTempValueRef.current = value;
1747
- hasInteractedRef.current = false;
1748
- resetDataCalledRef.current = false;
1749
- // Reset fetchMissingOptions tracking to allow re-checking when dropdown opens
1750
- fetchMissingOptionsCalledRef.current = false;
1751
- lastMissingValuesRef.current = '';
1752
- // Clear any pending search timeouts
1753
- if (searchTimeoutRef.current) {
1754
- clearTimeout(searchTimeoutRef.current);
1755
- searchTimeoutRef.current = null;
1756
- }
1757
- // Clear any pending scroll loading timeouts
1758
- if (scrollLoadingTimeoutRef.current) {
1759
- clearTimeout(scrollLoadingTimeoutRef.current);
1760
- scrollLoadingTimeoutRef.current = null;
1761
- }
1762
- if (scrollThrottleTimeoutRef.current) {
1763
- clearTimeout(scrollThrottleTimeoutRef.current);
1764
- scrollThrottleTimeoutRef.current = null;
1765
- }
1766
- // Reset loading states
1767
- setIsSearching(false);
1768
- searchClearedTimeRef.current = null; // Clear search cleared timestamp
1769
- setIsLoadingOnScroll(false);
1770
- isScrollProcessingRef.current = false;
1771
- // Safety check: Clear isResettingData if it's still true when opening
1772
- // This handles cases where options updated while dropdown was closed
1773
- if (isResettingData) {
1774
- setIsResettingData(false);
1775
- // Update ref to current options to prevent false positives
1776
- prevOptionsBeforeResetRef.current = options;
1777
- // Clear timestamp
1778
- resetDataCalledTimeRef.current = null;
1779
- }
1780
- } else {
1781
- // Dropdown is closing
1782
- if (!customPopupRender) {
1783
- onChange == null || onChange(tempValue);
1784
- } else {
1785
- setTempValue(value);
1786
- }
1787
- // Clear search when closing (if enabled)
1788
- if (resetSearch) {
1789
- setSearchText('');
1790
- setIsSearching(false);
1791
- lastSearchQueryRef.current = ''; // Clear search query ref
1792
- searchClearedTimeRef.current = null; // Clear search cleared timestamp
1793
- }
1794
- // Reset scroll loading state
1795
- setIsLoadingOnScroll(false);
1796
- isScrollProcessingRef.current = false;
1797
- if (scrollLoadingTimeoutRef.current) {
1798
- clearTimeout(scrollLoadingTimeoutRef.current);
1799
- scrollLoadingTimeoutRef.current = null;
1800
- }
1801
- if (scrollThrottleTimeoutRef.current) {
1802
- clearTimeout(scrollThrottleTimeoutRef.current);
1803
- scrollThrottleTimeoutRef.current = null;
1804
- }
1805
- scrollContainerRef.current = null;
1806
-
1807
- // Only call resetData if user actually interacted (selected, searched, etc.)
1808
- // and resetData hasn't been called already in this session
1809
- // This prevents multiple API calls when user just opens/closes without interaction
1810
- if (resetData && hasInteractedRef.current && !resetDataCalledRef.current) {
1811
- // Store current options before calling resetData to detect when they update
1812
- prevOptionsBeforeResetRef.current = options;
1813
- setIsResettingData(true);
1814
- resetDataCalledRef.current = true;
1815
- resetDataCalledTimeRef.current = Date.now();
1816
- resetData();
1817
- } else if (!hasInteractedRef.current) {
1818
- // User did nothing - reset everything as if it's a fresh load
1819
- // Clear any pending operations
1820
- if (searchTimeoutRef.current) {
1821
- clearTimeout(searchTimeoutRef.current);
1822
- searchTimeoutRef.current = null;
1823
- }
1824
- setIsSearching(false);
1825
- setIsResettingData(false);
1826
- // Reset search query ref
1827
- lastSearchQueryRef.current = '';
1828
- }
1829
-
1830
- // Reset interaction flag for next session
1831
- hasInteractedRef.current = false;
1050
+ if (!open && !customPopupRender) {
1051
+ onChange == null || onChange(tempValue);
1052
+ } else if (!open) {
1053
+ setTempValue(value);
1832
1054
  }
1833
1055
  setDropdownOpen(open);
1834
- }, [customPopupRender, value, onChange, tempValue, readOnly, resetSearch, resetData, options]);
1835
- const handleFooterDownload = (0, _react.useCallback)(() => {
1836
- const currentValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
1837
- onFooterDownloadChange == null || onFooterDownloadChange(currentValues);
1838
- }, [tempValue, onFooterDownloadChange]);
1839
- const handleUpload = (0, _react.useCallback)(() => {
1840
- onUpload == null || onUpload();
1841
- setDropdownOpen(false);
1842
- }, [onUpload]);
1843
- const handleSearchChange = (0, _react.useCallback)(e => {
1844
- const query = e.target.value;
1845
- setSearchText(query);
1846
-
1847
- // Trigger search handler (handles debouncing and minLength check)
1848
- handleSearch(query);
1849
- }, [handleSearch]);
1850
- const handleSearchKeyDown = (0, _react.useCallback)(e => {
1851
- // Stop propagation of backspace and delete keys to prevent TreeSelect from deselecting items
1852
- // The input itself will handle the deletion, we just need to prevent TreeSelect from handling it
1853
- if (e.key === 'Backspace' || e.key === 'Delete') {
1854
- e.stopPropagation();
1855
- }
1856
- // Also stop Escape key to prevent dropdown from closing when clearing search
1857
- if (e.key === 'Escape' && searchText.length > 0) {
1858
- e.stopPropagation();
1859
- }
1860
- }, [searchText]);
1861
-
1862
- // Handle scroll event - automatically checks if scroll is near bottom
1863
- // Developer handles hasMore and isLoading conditions in onPopupScroll callback
1864
- // Using refs to avoid recreating the callback when options change
1865
- const handleScroll = (0, _react.useCallback)(event => {
1866
- if (!onPopupScroll) return;
1867
- const target = event.target;
1868
- if (!target) return;
1869
-
1870
- // Check if scroll is near bottom
1871
- const isNearBottom = Math.floor(target.scrollHeight - target.scrollTop) <= target.clientHeight;
1872
-
1873
- // Only call onPopupScroll if scroll is near bottom
1874
- // Developer will handle hasMore and isLoading checks inside the callback
1875
- if (!isNearBottom) {
1876
- // Reset processing flag when not near bottom
1877
- isScrollProcessingRef.current = false;
1878
- return;
1879
- }
1880
-
1881
- // Prevent multiple scroll triggers while already processing
1882
- // This ensures we don't trigger multiple API calls simultaneously
1883
- if (isScrollProcessingRef.current) return;
1884
-
1885
- // Prevent multiple scroll triggers while already loading
1886
- // This ensures loading state is managed properly and data loading completes
1887
- if (isLoadingOnScroll) return;
1888
-
1889
- // Throttle scroll events to prevent rapid-fire API calls
1890
- // Clear any existing throttle timeout
1891
- if (scrollThrottleTimeoutRef.current) {
1892
- clearTimeout(scrollThrottleTimeoutRef.current);
1893
- }
1894
-
1895
- // Set processing flag immediately to prevent duplicate calls
1896
- isScrollProcessingRef.current = true;
1897
-
1898
- // Throttle the actual API call to prevent multiple rapid triggers
1899
- scrollThrottleTimeoutRef.current = setTimeout(() => {
1900
- // Double-check we're still near bottom and not loading
1901
- const stillNearBottom = Math.floor(target.scrollHeight - target.scrollTop) <= target.clientHeight;
1902
- if (!stillNearBottom || isLoadingOnScroll) {
1903
- isScrollProcessingRef.current = false;
1904
- return;
1905
- }
1906
-
1907
- // Store current options count and options reference before triggering load
1908
- // This helps detect when new data arrives
1909
- // Use ref to get current options without depending on options.length
1910
- const currentOptions = optionsRef.current;
1911
- prevOptionsCountRef.current = currentOptions.length;
1912
- prevOptionsRefForScroll.current = currentOptions;
1913
- // Also store the count at scroll trigger time for orderedOptions update
1914
- scrollTriggerOptionsCountRef.current = currentOptions.length;
1915
-
1916
- // Show loading indicator when scrolling near bottom
1917
- // This happens before calling onPopupScroll to provide immediate feedback
1918
- setIsLoadingOnScroll(true);
1919
-
1920
- // Clear any existing timeout
1921
- if (scrollLoadingTimeoutRef.current) {
1922
- clearTimeout(scrollLoadingTimeoutRef.current);
1923
- scrollLoadingTimeoutRef.current = null;
1924
- }
1925
-
1926
- // Mark as interacted when user scrolls (triggers data loading)
1927
- hasInteractedRef.current = true;
1928
-
1929
- // Call the developer's scroll handler - component already checked scroll position
1930
- // Developer should check hasMore and isLoading inside the callback
1931
- // This triggers the async data loading
1932
- onPopupScroll();
1933
-
1934
- // Set a fallback timeout to clear loading if options don't change
1935
- // This prevents loading from staying forever if data never arrives
1936
- // Using a longer timeout (10 seconds) to give enough time for slow API calls
1937
- scrollLoadingTimeoutRef.current = setTimeout(() => {
1938
- // Only clear if still loading (options change detection might have cleared it already)
1939
- setIsLoadingOnScroll(prev => {
1940
- if (prev) {
1941
- // Clear the timeout reference when clearing loading state
1942
- scrollLoadingTimeoutRef.current = null;
1943
- // Reset processing flag when loading times out
1944
- isScrollProcessingRef.current = false;
1945
- return false;
1946
- }
1947
- return prev;
1948
- });
1949
- }, _constants.TIMEOUTS.SCROLL_LOADING_TIMEOUT);
1950
- }, 150); // 150ms throttle to prevent rapid-fire events
1951
- }, [onPopupScroll, isLoadingOnScroll]);
1952
-
1953
- // Setup scroll listener for onPopupScroll
1954
- (0, _react.useEffect)(() => {
1955
- if (!onPopupScroll || !dropdownOpen) return;
1956
-
1957
- // Use a small delay to ensure DOM is ready
1958
- const timeoutId = setTimeout(() => {
1959
- // Find the scrollable container in the dropdown
1960
- const findScrollContainer = () => {
1961
- // Try to find the Ant Design dropdown scroll container
1962
- // Look for dropdowns that are currently visible (not hidden)
1963
- const dropdowns = document.querySelectorAll('.ant-select-dropdown:not(.ant-select-dropdown-hidden)');
1964
- if (dropdowns.length === 0) return null;
1965
-
1966
- // Get the last opened dropdown (most recent)
1967
- const dropdown = Array.from(dropdowns).pop();
1968
- if (!dropdown) return null;
1969
-
1970
- // Look for the scrollable list container
1971
- const treeList = dropdown.querySelector('.ant-select-tree-list-holder');
1972
- if (treeList && treeList.scrollHeight > treeList.clientHeight) {
1973
- return treeList;
1974
- }
1975
-
1976
- // Try alternative selectors
1977
- const virtualList = dropdown.querySelector('.rc-virtual-list-holder');
1978
- if (virtualList && virtualList.scrollHeight > virtualList.clientHeight) {
1979
- return virtualList;
1980
- }
1981
-
1982
- // Fallback to dropdown itself if it's scrollable
1983
- if (dropdown.scrollHeight > dropdown.clientHeight) {
1984
- return dropdown;
1985
- }
1986
- return null;
1987
- };
1988
- const scrollContainer = findScrollContainer();
1989
- if (scrollContainer) {
1990
- scrollContainerRef.current = scrollContainer;
1991
- scrollContainer.addEventListener('scroll', handleScroll, {
1992
- passive: true
1993
- });
1994
- }
1995
- }, _constants.TIMEOUTS.SCROLL_CONTAINER_DELAY);
1996
- return () => {
1997
- clearTimeout(timeoutId);
1998
- // Clear throttle timeout when cleaning up
1999
- if (scrollThrottleTimeoutRef.current) {
2000
- clearTimeout(scrollThrottleTimeoutRef.current);
2001
- scrollThrottleTimeoutRef.current = null;
2002
- }
2003
- if (scrollContainerRef.current) {
2004
- scrollContainerRef.current.removeEventListener('scroll', handleScroll);
2005
- scrollContainerRef.current = null;
2006
- }
2007
- // Reset processing flag when listener is removed
2008
- isScrollProcessingRef.current = false;
2009
- };
2010
- }, [onPopupScroll, dropdownOpen, handleScroll]);
1056
+ }, [customPopupRender, value, onChange, tempValue, readOnly]);
2011
1057
  const renderHeader = (0, _react.useMemo)(() => {
2012
1058
  if (!headerLabel && !tooltip) return null;
2013
1059
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
@@ -2050,14 +1096,13 @@ const CapUnifiedSelect = _ref4 => {
2050
1096
  placeholder: "Search",
2051
1097
  variant: "borderless",
2052
1098
  value: searchText,
2053
- onChange: handleSearchChange,
2054
- onKeyDown: handleSearchKeyDown,
1099
+ onChange: e => setSearchText(e.target.value),
2055
1100
  allowClear: true
2056
1101
  })
2057
1102
  }), isMulti && showUpload && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
2058
1103
  className: _styles.default['cap-unified-select-upload-container'],
2059
1104
  align: "middle",
2060
- onClick: handleUpload,
1105
+ onClick: onUpload,
2061
1106
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
2062
1107
  type: "upload",
2063
1108
  size: "s",
@@ -2065,71 +1110,20 @@ const CapUnifiedSelect = _ref4 => {
2065
1110
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
2066
1111
  type: "label14",
2067
1112
  className: _styles.default['cap-unified-select-upload-label'],
2068
- children: uploadLabel
1113
+ children: "Upload"
2069
1114
  })]
2070
- }), isMulti && staticValue && currentItems.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectAllCheckbox, {
1115
+ }), isMulti && currentItems.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectAllCheckbox, {
2071
1116
  currentItems: currentItems,
2072
1117
  tempValue: Array.isArray(tempValue) ? tempValue : undefined,
2073
1118
  setTempValue: val => setTempValue(val),
2074
1119
  processTreeData: buildTreeMaps
2075
- }), currentItems.length === 0 ? isSearching || isResettingData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2076
- className: _styles.default['cap-unified-select-loading-container'],
2077
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2078
- align: "middle",
2079
- justify: "center",
2080
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
2081
- size: "small"
2082
- })
2083
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2084
- align: "middle",
2085
- justify: "center",
2086
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
2087
- type: "label14",
2088
- children: "Loading..."
2089
- })
2090
- })]
2091
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(NoResult, {
1120
+ }), currentItems.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(NoResult, {
2092
1121
  noResultCustomText: noResultCustomText,
2093
1122
  className: className,
2094
1123
  showUpload: showUpload,
2095
1124
  options: options,
2096
1125
  noResultCustomIcon: noResultCustomIcon
2097
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2098
- className: _styles.default['cap-unified-select-menu-wrapper'],
2099
- children: [menu, (isSearching || isResettingData) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2100
- className: _styles.default['cap-unified-select-loading-overlay'],
2101
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2102
- align: "middle",
2103
- justify: "center",
2104
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
2105
- size: "small"
2106
- })
2107
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2108
- align: "middle",
2109
- justify: "center",
2110
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
2111
- type: "label14",
2112
- children: "Loading..."
2113
- })
2114
- })]
2115
- }), isLoadingOnScroll && onPopupScroll && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2116
- className: _styles.default['cap-unified-select-loading-overlay'],
2117
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2118
- align: "middle",
2119
- justify: "center",
2120
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
2121
- size: "small"
2122
- })
2123
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2124
- align: "middle",
2125
- justify: "center",
2126
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
2127
- type: "label14",
2128
- children: "Loading..."
2129
- })
2130
- })]
2131
- })]
2132
- }), currentItems.length > 0 && isMulti && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1126
+ }) : menu, currentItems.length > 0 && isMulti && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
2133
1127
  className: _styles.default['cap-unified-select-confirm-container'],
2134
1128
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
2135
1129
  className: _styles.default['cap-unified-select-confirm-button-group'],
@@ -2146,21 +1140,12 @@ const CapUnifiedSelect = _ref4 => {
2146
1140
  size: "small",
2147
1141
  onClick: handleClearAll,
2148
1142
  children: clearText
2149
- }), onFooterDownloadChange && selectedLeafCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
2150
- className: _styles.default['cap-unified-select-footer-download-container'],
2151
- align: "middle",
2152
- onClick: handleFooterDownload,
2153
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
2154
- type: "download",
2155
- size: "s",
2156
- className: _styles.default['cap-unified-select-footer-download-icon']
2157
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapLabel.default, {
2158
- className: _styles.default['cap-unified-select-footer-download-label'],
2159
- children: [selectedLeafCount, " selected"]
2160
- })]
1143
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapLabel.default, {
1144
+ className: _styles.default['cap-unified-select-selected-count'],
1145
+ children: [selectedLeafCount, " selected"]
2161
1146
  })]
2162
1147
  })
2163
- }), (type === _constants.SELECT_TYPES.SELECT || type === _constants.SELECT_TYPES.TREE_SELECT) && allowClear && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
1148
+ }), (type === SELECT_TYPES.SELECT || type === SELECT_TYPES.TREE_SELECT) && allowClear && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
2164
1149
  className: _styles.default['cap-unified-select-tree-clear-container'],
2165
1150
  onClick: handleClearAll,
2166
1151
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
@@ -2169,60 +1154,17 @@ const CapUnifiedSelect = _ref4 => {
2169
1154
  })
2170
1155
  })]
2171
1156
  });
2172
- }, [customPopupRender, filteredTree, searchText, isMulti, showUpload, uploadLabel, handleUpload, noResultCustomText, noResultCustomIcon, options, type, tempValue, handleConfirm, handleClearAll, popoverClassName, className, selectedLeafCount, clearText, allowClear, staticValue, showSearch, onFooterDownloadChange, handleFooterDownload, isSearching, handleSearchChange, handleSearchKeyDown, isLoadingOnScroll, onPopupScroll, isResettingData]);
1157
+ }, [customPopupRender, filteredTree, searchText, isMulti, showUpload, onUpload, noResultCustomText, noResultCustomIcon, options, type, tempValue, handleConfirm, handleClearAll, popoverClassName, className, selectedLeafCount, clearText, allowClear]);
2173
1158
  const combinedClassName = (0, _react.useMemo)(() => (0, _classnames.default)(containerClassName, _styles.default['cap-unified-tree-select'], {
2174
1159
  [_styles.default['cap-unified-tree-select-readonly']]: readOnly
2175
1160
  }, className), [containerClassName, className, readOnly]);
2176
-
2177
- // Handle onChange for single select - detect clear button click and call resetData
2178
- const handleSingleSelectChange = (0, _react.useCallback)(newValue => {
2179
- // Mark as interacted if value changed from initial
2180
- if (newValue !== initialTempValueRef.current) {
2181
- hasInteractedRef.current = true;
2182
- }
2183
-
2184
- // If value is cleared (becomes undefined), call resetData
2185
- if (newValue === undefined || newValue === null) {
2186
- if (resetData) {
2187
- // Store current options before calling resetData to detect when they update
2188
- prevOptionsBeforeResetRef.current = options;
2189
- setIsResettingData(true);
2190
- resetDataCalledRef.current = true;
2191
- resetDataCalledTimeRef.current = Date.now();
2192
- resetData();
2193
- }
2194
- }
2195
- onChange == null || onChange(newValue);
2196
- }, [onChange, resetData, options]);
2197
-
2198
- // Handle onChange for multi select - detect clear and call resetData
2199
- const handleMultiSelectChange = (0, _react.useCallback)(newValue => {
2200
- // Mark as interacted if value changed from initial
2201
- const initialValue = initialTempValueRef.current;
2202
- const hasChanged = Array.isArray(newValue) && Array.isArray(initialValue) ? newValue.length !== initialValue.length || !newValue.every(v => initialValue.includes(v)) || !initialValue.every(v => newValue.includes(v)) : newValue !== initialValue;
2203
- if (hasChanged) {
2204
- hasInteractedRef.current = true;
2205
- }
2206
- // If value is cleared (becomes empty array or undefined), call resetData
2207
- if (newValue === undefined || newValue === null || Array.isArray(newValue) && newValue.length === 0) {
2208
- if (resetData) {
2209
- // Store current options before calling resetData to detect when they update
2210
- prevOptionsBeforeResetRef.current = options;
2211
- setIsResettingData(true);
2212
- resetDataCalledRef.current = true;
2213
- resetDataCalledTimeRef.current = Date.now();
2214
- resetData();
2215
- }
2216
- }
2217
- setTempValue(newValue);
2218
- }, [resetData, options]);
2219
1161
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
2220
1162
  className: className,
2221
1163
  children: [renderHeader, /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.TreeSelect, _extends({
2222
1164
  treeData: filteredTree,
2223
1165
  value: customPopupRender ? tempValue : value,
2224
1166
  treeNodeLabelProp: "label",
2225
- onChange: isMulti ? handleMultiSelectChange : handleSingleSelectChange,
1167
+ onChange: isMulti ? setTempValue : onChange,
2226
1168
  placeholder: placeholder,
2227
1169
  showSearch: false,
2228
1170
  maxTagCount: 0,
@@ -2244,12 +1186,12 @@ const CapUnifiedSelect = _ref4 => {
2244
1186
  showCheckedStrategy: _antdV.TreeSelect.SHOW_CHILD,
2245
1187
  open: dropdownOpen,
2246
1188
  onOpenChange: handleDropdownVisibilityChange,
2247
- virtual: !enableVirtualization,
1189
+ virtual: true,
2248
1190
  popupMatchSelectWidth: false,
2249
1191
  disabled: disabled,
2250
1192
  filterTreeNode: false,
2251
- listHeight: _constants.DEFAULTS.LIST_HEIGHT,
2252
- listItemHeight: virtualRowHeight,
1193
+ listHeight: 256,
1194
+ listItemHeight: 32,
2253
1195
  popupRender: renderCustomDropdown
2254
1196
  }, rest)), isError && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
2255
1197
  className: _styles.default['cap-unified-select-status'],
@@ -2270,7 +1212,7 @@ var _default = exports["default"] = CapUnifiedSelect;
2270
1212
  exports.__esModule = true;
2271
1213
  exports["default"] = void 0;
2272
1214
  var _antdV = __webpack_require__(4273);
2273
- var _classnames = _interopRequireDefault(__webpack_require__(6942));
1215
+ var _classnames = _interopRequireDefault(__webpack_require__(2678));
2274
1216
  var _react = _interopRequireDefault(__webpack_require__(9206));
2275
1217
  var _styles = _interopRequireDefault(__webpack_require__(7144));
2276
1218
  var _jsxRuntime = __webpack_require__(4848);
@@ -2337,20 +1279,71 @@ var _default = exports["default"] = CapTooltip;
2337
1279
 
2338
1280
  exports.__esModule = true;
2339
1281
  exports["default"] = void 0;
2340
- var AntdIcons = _interopRequireWildcard(__webpack_require__(4627));
2341
- var _classnames = _interopRequireDefault(__webpack_require__(6942));
1282
+ var _icons = __webpack_require__(4627);
1283
+ var _classnames = _interopRequireDefault(__webpack_require__(2678));
2342
1284
  var _react = _interopRequireDefault(__webpack_require__(9206));
2343
1285
  var _styles = _interopRequireDefault(__webpack_require__(6426));
2344
1286
  var _jsxRuntime = __webpack_require__(4848);
2345
1287
  const _excluded = ["type", "size", "style", "className", "disabled", "spin", "rotate", "withBackground", "backgroundProps", "onClick", "textLabel", "component", "svgProps", "allowSvg", "color"],
2346
1288
  _excluded2 = ["className"];
2347
1289
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
2348
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
2349
1290
  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; }
2350
- 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); }
2351
- // Special mappings for common icon names
2352
- const iconMapping = {
2353
- add: 'plus'
1291
+ 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); } // Import only commonly used icons directly for better tree-shaking
1292
+ // Explicit icon map for commonly used icons - enables tree-shaking
1293
+ const COMMON_ICONS_MAP = {
1294
+ 'up': _icons.UpOutlined,
1295
+ 'down': _icons.DownOutlined,
1296
+ 'left': _icons.LeftOutlined,
1297
+ 'right': _icons.RightOutlined,
1298
+ 'search': _icons.SearchOutlined,
1299
+ 'close': _icons.CloseOutlined,
1300
+ 'check': _icons.CheckOutlined,
1301
+ 'delete': _icons.DeleteOutlined,
1302
+ 'edit': _icons.EditOutlined,
1303
+ 'plus': _icons.PlusOutlined,
1304
+ 'add': _icons.PlusOutlined,
1305
+ // alias
1306
+ 'minus': _icons.MinusOutlined,
1307
+ 'close-circle': _icons.CloseCircleOutlined,
1308
+ 'check-circle': _icons.CheckCircleOutlined,
1309
+ 'info-circle': _icons.InfoCircleOutlined,
1310
+ 'exclamation-circle': _icons.ExclamationCircleOutlined,
1311
+ 'warning': _icons.WarningOutlined,
1312
+ 'loading': _icons.LoadingOutlined,
1313
+ 'eye': _icons.EyeOutlined,
1314
+ 'eye-invisible': _icons.EyeInvisibleOutlined,
1315
+ 'upload': _icons.UploadOutlined,
1316
+ 'download': _icons.DownloadOutlined,
1317
+ 'file': _icons.FileOutlined,
1318
+ 'folder': _icons.FolderOutlined,
1319
+ 'setting': _icons.SettingOutlined,
1320
+ 'user': _icons.UserOutlined,
1321
+ 'calendar': _icons.CalendarOutlined,
1322
+ 'clock-circle': _icons.ClockCircleOutlined,
1323
+ 'filter': _icons.FilterOutlined,
1324
+ 'sort-ascending': _icons.SortAscendingOutlined,
1325
+ 'sort-descending': _icons.SortDescendingOutlined,
1326
+ 'menu': _icons.MenuOutlined,
1327
+ 'more': _icons.MoreOutlined,
1328
+ 'question-circle': _icons.QuestionCircleOutlined,
1329
+ 'arrow-left': _icons.ArrowLeftOutlined,
1330
+ 'arrow-right': _icons.ArrowRightOutlined,
1331
+ 'arrow-up': _icons.ArrowUpOutlined,
1332
+ 'arrow-down': _icons.ArrowDownOutlined,
1333
+ 'save': _icons.SaveOutlined,
1334
+ 'copy': _icons.CopyOutlined,
1335
+ 'home': _icons.HomeOutlined,
1336
+ 'star': _icons.StarOutlined,
1337
+ 'heart': _icons.HeartOutlined,
1338
+ 'bell': _icons.BellOutlined,
1339
+ 'mail': _icons.MailOutlined,
1340
+ 'phone': _icons.PhoneOutlined,
1341
+ 'lock': _icons.LockOutlined,
1342
+ 'unlock': _icons.UnlockOutlined,
1343
+ 'sync': _icons.SyncOutlined,
1344
+ 'reload': _icons.ReloadOutlined,
1345
+ 'plus-circle': _icons.PlusCircleOutlined,
1346
+ 'minus-circle': _icons.MinusCircleOutlined
2354
1347
  };
2355
1348
  const getSvgIcon = function (type, svgProps) {
2356
1349
  if (svgProps === void 0) {
@@ -2364,18 +1357,17 @@ const getSvgIcon = function (type, svgProps) {
2364
1357
  };
2365
1358
  const getAntIcon = type => {
2366
1359
  if (!type) return null;
2367
- // Use mapped name if available, otherwise use original type
2368
- const mappedType = iconMapping[type.toLowerCase()] || type;
2369
-
2370
- // Convert kebab-case to PascalCase for Ant Design icon naming
2371
- const pascalCase = mappedType.split('-').map(part => part.charAt(0).toUpperCase() + part.slice(1)).join('');
2372
-
2373
- // Try different naming conventions
2374
- const iconName = pascalCase + "Outlined";
2375
- const iconNameFilled = pascalCase + "Filled";
2376
- const iconNameTwoTone = pascalCase + "TwoTone";
2377
- const iconsRecord = AntdIcons;
2378
- return iconsRecord[iconName] || iconsRecord[iconNameFilled] || iconsRecord[iconNameTwoTone] || null;
1360
+
1361
+ // First check the common icons map for better tree-shaking
1362
+ const lowerType = type.toLowerCase();
1363
+ if (COMMON_ICONS_MAP[lowerType]) {
1364
+ return COMMON_ICONS_MAP[lowerType];
1365
+ }
1366
+
1367
+ // For uncommon icons, warn in development
1368
+ if (false) // removed by dead control flow
1369
+ {}
1370
+ return null;
2379
1371
  };
2380
1372
  const CapIcon = _ref => {
2381
1373
  let {
@@ -2748,90 +1740,6 @@ ___CSS_LOADER_EXPORT___.locals = {
2748
1740
  module.exports = ___CSS_LOADER_EXPORT___;
2749
1741
 
2750
1742
 
2751
- /***/ }),
2752
-
2753
- /***/ 6942:
2754
- /***/ ((module, exports) => {
2755
-
2756
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
2757
- Copyright (c) 2018 Jed Watson.
2758
- Licensed under the MIT License (MIT), see
2759
- http://jedwatson.github.io/classnames
2760
- */
2761
- /* global define */
2762
-
2763
- (function () {
2764
- 'use strict';
2765
-
2766
- var hasOwn = {}.hasOwnProperty;
2767
-
2768
- function classNames () {
2769
- var classes = '';
2770
-
2771
- for (var i = 0; i < arguments.length; i++) {
2772
- var arg = arguments[i];
2773
- if (arg) {
2774
- classes = appendClass(classes, parseValue(arg));
2775
- }
2776
- }
2777
-
2778
- return classes;
2779
- }
2780
-
2781
- function parseValue (arg) {
2782
- if (typeof arg === 'string' || typeof arg === 'number') {
2783
- return arg;
2784
- }
2785
-
2786
- if (typeof arg !== 'object') {
2787
- return '';
2788
- }
2789
-
2790
- if (Array.isArray(arg)) {
2791
- return classNames.apply(null, arg);
2792
- }
2793
-
2794
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
2795
- return arg.toString();
2796
- }
2797
-
2798
- var classes = '';
2799
-
2800
- for (var key in arg) {
2801
- if (hasOwn.call(arg, key) && arg[key]) {
2802
- classes = appendClass(classes, key);
2803
- }
2804
- }
2805
-
2806
- return classes;
2807
- }
2808
-
2809
- function appendClass (value, newClass) {
2810
- if (!newClass) {
2811
- return value;
2812
- }
2813
-
2814
- if (value) {
2815
- return value + ' ' + newClass;
2816
- }
2817
-
2818
- return value + newClass;
2819
- }
2820
-
2821
- if ( true && module.exports) {
2822
- classNames.default = classNames;
2823
- module.exports = classNames;
2824
- } else if (true) {
2825
- // register as 'classnames', consistent with npm package name
2826
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
2827
- return classNames;
2828
- }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
2829
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
2830
- } else // removed by dead control flow
2831
- {}
2832
- }());
2833
-
2834
-
2835
1743
  /***/ }),
2836
1744
 
2837
1745
  /***/ 7144:
@@ -2900,37 +1808,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
2900
1808
 
2901
1809
  /***/ }),
2902
1810
 
2903
- /***/ 7579:
2904
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2905
-
2906
- "use strict";
2907
-
2908
-
2909
- exports.__esModule = true;
2910
- exports["default"] = void 0;
2911
- var _antdV = __webpack_require__(4273);
2912
- var _react = _interopRequireDefault(__webpack_require__(9206));
2913
- var _jsxRuntime = __webpack_require__(4848);
2914
- const _excluded = ["className"];
2915
- /**
2916
- * CapSpin - Migrated to Ant Design v5
2917
- */
2918
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
2919
- 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); }
2920
- 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; }
2921
- const CapSpin = _ref => {
2922
- let {
2923
- className
2924
- } = _ref,
2925
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
2926
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Spin, _extends({
2927
- className: className
2928
- }, rest));
2929
- };
2930
- var _default = exports["default"] = CapSpin;
2931
-
2932
- /***/ }),
2933
-
2934
1811
  /***/ 7659:
2935
1812
  /***/ ((module) => {
2936
1813
 
@@ -3054,7 +1931,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
3054
1931
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
3055
1932
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
3056
1933
  // Module
3057
- ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-unified-select-header-wrapper{display:flex;align-items:center}.blaze-ui-cap-unified-select-header-wrapper.blaze-ui-disabled{opacity:.5;cursor:not-allowed}.blaze-ui-cap-unified-select-header-wrapper .blaze-ui-cap-unified-select-header-label{font-family:"Roboto",sans-serif;font-weight:500;font-size:1rem;line-height:1.429rem;letter-spacing:0}.blaze-ui-cap-unified-select-header-byline-text{font-family:"Roboto",sans-serif;font-weight:400;font-size:.857rem;letter-spacing:0;color:#97a0af}.blaze-ui-cap-unified-select-container{text-align:justify;min-width:13.786rem}.blaze-ui-cap-unified-select-container.blaze-ui-disabled{cursor:not-allowed}.blaze-ui-cap-unified-select-container.ant-select-focused .ant-select-selector{border:.071rem solid #091e42 !important}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-more-text{cursor:pointer;color:#091e42;margin-right:.286rem;position:relative}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-suffix-icon{color:#7a869a}.blaze-ui-cap-unified-select-container .blaze-ui-cap-tooltip-with-info-icon{margin-top:.143rem}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select.blaze-ui-cap-unified-tree-select-readonly{pointer-events:none}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select.blaze-ui-cap-unified-tree-select-readonly .blaze-ui-cap-unified-select-more-text{pointer-events:auto}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select .ant-select-tree-treenode{padding-left:.286rem}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly .ant-select-selector{background-color:#fff;border-color:#ebecf0 !important;cursor:default}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly .ant-select-arrow{pointer-events:auto;color:#b3bac5}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:hover .ant-select-selector,.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:active .ant-select-selector,.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:focus .ant-select-selector{border-color:#ebecf0 !important}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-status{color:#ea213a}.blaze-ui-cap-unified-select-container .ant-select-outlined:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector{border-color:#7a869a}.blaze-ui-cap-unified-select-container .ant-select-selector{background-color:#fff !important;border:.071rem solid #7a869a !important;border-radius:.286rem !important}.blaze-ui-cap-unified-select-container .ant-select-selector .ant-select-selection-placeholder{pointer-events:unset;color:#97a0af;display:flex;align-items:center}.blaze-ui-cap-unified-select-container .ant-select-prefix{font-size:1rem;font-weight:400;color:#091e42;line-height:1.429rem}.blaze-ui-cap-unified-select-container .ant-input-affix-wrapper .ant-input-prefix{left:.857rem}.blaze-ui-cap-unified-select-container .ant-select-selector{border-color:#7a869a !important;box-shadow:none !important;outline:0}.blaze-ui-cap-unified-select-container .ant-btn-variant-solid:not(:disabled):not(.ant-btn-disabled):hover{background-color:#47af46}.blaze-ui-cap-unified-select-container .ant-select-dropdown{margin-top:-0.571rem !important;border-radius:.286rem;background-color:#fff;box-shadow:0 .286rem .571rem -0.143rem rgba(9,30,66,.15),0 0 .071rem 0 rgba(9,30,66,.1);max-height:25.714rem;overflow:visible}.blaze-ui-cap-unified-select-container .ant-select-outlined.ant-select-multiple .ant-select-selection-wrap .ant-select-selection-item{background:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-container .ant-select-multiple .ant-select-selection-wrap .ant-select-selection-item,.blaze-ui-cap-unified-select-container .ant-select-selection-wrap .ant-select-selection-item{background:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-container .ant-select-multiple .ant-select-selection-wrap{align-self:center}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-search-container{border-bottom:.071rem solid #ebecf0 !important;line-height:2.857rem !important}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-search-container .blaze-ui-cap-unified-select-search-icon{color:#b3bac5}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-select-all-container{padding:.643rem 1.071rem;display:flex;align-items:center;border-bottom:.071rem solid #ebecf0;height:2.857rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-select-all-container .blaze-ui-cap-unified-select-select-all-checkbox{display:contents !important}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container{cursor:pointer;display:flex;align-items:center;border-bottom:.071rem solid #ebecf0;height:2.857rem;padding-left:1.143rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container .blaze-ui-cap-unified-select-upload-icon{color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container .blaze-ui-cap-unified-select-upload-label{margin-left:.857rem;color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container{display:flex;align-items:center;height:3.429rem;padding:.5rem;border-top:.071rem solid #ebecf0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group{display:flex;padding-left:.571rem;align-items:center;width:100%}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button{background-color:#47af46;height:2.286rem;width:6.714rem;color:#fff}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button:hover{background-color:#1f9a1d}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button:disabled{background-color:#a1d8a0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-cancel-button{border:rgba(0,0,0,0);box-shadow:none;width:5.714rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-selected-count{display:flex;margin-left:auto;font-size:.857rem;font-weight:400;line-height:1.143rem;color:#5e6c84}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container{display:flex;justify-content:center;align-items:center;height:2.857rem;border-top:.071rem solid #ebecf0;cursor:pointer;color:#091e42}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container:hover{background-color:#ebecf0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container .blaze-ui-cap-unified-select-tree-clear-label{font-size:1rem;font-weight:400}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container{cursor:pointer;display:flex;align-items:center;margin-left:auto;padding-right:1.143rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container:hover{opacity:.8}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container .blaze-ui-cap-unified-select-footer-download-icon{color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container .blaze-ui-cap-unified-select-footer-download-label{margin-left:.857rem;color:#2466ea;font-family:Roboto,sans-serif;font-weight:400;font-style:normal;font-size:.857rem;line-height:1.143rem;letter-spacing:0;text-align:right}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-no-result{display:flex;flex-direction:column;align-items:center;justify-content:center;height:14.286rem;color:#97a0af;font-size:1rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-no-result .blaze-ui-cap-unified-select-no-result-text{font-weight:500}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:14.286rem;width:100%;gap:.571rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-loading-more{display:flex;align-items:center;justify-content:center;padding:.857rem;border-top:.071rem solid #ebecf0;color:#97a0af}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-menu-wrapper{position:relative;width:100%}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(255,255,255,.8);z-index:10;gap:.571rem;color:#97a0af}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix{display:flex;justify-content:start;align-items:center;width:100%;height:100%;line-height:1.5;vertical-align:middle;flex:1}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-label{display:flex;align-items:center;flex-shrink:1;min-width:0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-end{display:flex;align-items:center;gap:.571rem;flex-shrink:0;margin-left:auto}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-suffix{display:flex;align-items:center;padding:0 .571rem;max-height:1.429rem;white-space:nowrap}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon{margin-top:.357rem;color:#42526e}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon .blaze-ui-cap-icon{color:#42526e}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu{margin-top:0 !important}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu .ant-select-dropdown-menu-item{padding:.571rem 1.714rem !important;height:unset !important;font-size:1rem !important}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu-item-disabled{color:rgba(0,0,0,.25) !important;cursor:not-allowed !important;line-height:1.428rem !important;font-size:1rem !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper{background-color:rgba(0,0,0,0);height:100%;display:flex;align-items:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode{height:2.857rem;margin-bottom:0;display:flex;align-items:center;width:100%}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode:hover{background-color:#fffbe6}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-selected{background-color:#f4f5f7 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled{cursor:not-allowed !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled .blaze-ui-cap-unified-select-option-label{color:#b3bac5}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled .blaze-ui-cap-icon{color:#b3bac5 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode.ant-select-tree-treenode-selected{background-color:#f4f5f7}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-leaf .ant-select-tree-switcher-noop{display:none}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox{display:flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox .ant-select-tree-checkbox-inner{height:1.286rem;width:1.286rem;border:.143rem solid #b3bac5;border-radius:.286rem;display:flex;align-items:center;justify-content:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:hover{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#47af46 !important;border-color:#47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after{content:"";position:absolute;top:50%;left:50%;width:.714rem;height:.143rem;background-color:#fff;transform:translate(-50%, -50%);border-radius:.071rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper{border-radius:0;padding-left:.214rem;width:100%;display:flex;align-items:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-title{width:100%;display:flex}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-indent{margin-left:.857rem;display:flex;align-items:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher{display:flex;align-items:center;justify-content:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher:not(.ant-select-tree-switcher-noop):hover:before{background-color:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher .ant-select-tree-switcher-icon{font-size:.857rem;margin-top:1.286rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-list-holder-inner{width:fit-content !important;min-width:100%}.blaze-ui-cap-unified-select-popup .ant-tree-select:hover .ant-select-selector{border-color:#7a869a}.blaze-ui-cap-unified-select-popup .ant-tree-select-focused .ant-select-selector,.blaze-ui-cap-unified-select-popup .ant-tree-select-open .ant-select-selector{border-color:#7a869a;box-shadow:none;outline:none}.blaze-ui-cap-unified-select-popup .ant-checkbox-inner{height:1.286rem;width:1.286rem;border:.143rem solid #b3bac5;border-radius:.286rem}.blaze-ui-cap-unified-select-popup .ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#47af46 !important;border-color:#47af46 !important}.blaze-ui-cap-unified-select-popup .ant-checkbox-indeterminate .ant-checkbox-inner::after{content:"";position:absolute;top:50%;left:50%;width:.714rem;height:.143rem;background-color:#fff;transform:translate(-50%, -50%);border-radius:.071rem}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper{padding-left:.571rem;border:none;box-shadow:none;border-radius:0;border-bottom:.071rem solid rgba(0,0,0,0);transition:border-color .2s ease}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper:hover{border-bottom:.071rem solid #7a869a !important;box-shadow:none}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper:focus-within{border-bottom:.071rem solid #091e42 !important;box-shadow:none;outline:none}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper .ant-input{border:none !important;box-shadow:none !important}`, ""]);
1934
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-unified-select-header-wrapper{display:flex;align-items:center}.blaze-ui-cap-unified-select-header-wrapper.blaze-ui-disabled{opacity:.5;cursor:not-allowed}.blaze-ui-cap-unified-select-header-wrapper .blaze-ui-cap-unified-select-header-label{font-family:"Roboto",sans-serif;font-weight:500;font-size:1rem;line-height:1.429rem;letter-spacing:0}.blaze-ui-cap-unified-select-header-byline-text{font-family:"Roboto",sans-serif;font-weight:400;font-size:.857rem;letter-spacing:0;color:#97a0af}.blaze-ui-cap-unified-select-container{text-align:justify;min-width:13.786rem}.blaze-ui-cap-unified-select-container.blaze-ui-disabled{cursor:not-allowed}.blaze-ui-cap-unified-select-container.ant-select-focused .ant-select-selector{border:1px solid #091e42 !important}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-more-text{cursor:pointer;color:#091e42;margin-right:.286rem;position:relative}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-suffix-icon{color:#7a869a}.blaze-ui-cap-unified-select-container .blaze-ui-cap-tooltip-with-info-icon{margin-top:.143rem}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select.blaze-ui-cap-unified-tree-select-readonly{pointer-events:none}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select.blaze-ui-cap-unified-tree-select-readonly .blaze-ui-cap-unified-select-more-text{pointer-events:auto}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select .ant-select-tree-treenode{padding-left:.286rem}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly .ant-select-selector{background-color:#fff;border-color:#ebecf0 !important;cursor:default}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly .ant-select-arrow{pointer-events:auto;color:#b3bac5}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:hover .ant-select-selector,.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:active .ant-select-selector,.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:focus .ant-select-selector{border-color:#ebecf0 !important}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-status{color:#ea213a}.blaze-ui-cap-unified-select-container .ant-select-outlined:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector{border-color:#7a869a}.blaze-ui-cap-unified-select-container .ant-select-selector{background-color:#fff !important;border:.071rem solid #7a869a !important;border-radius:.286rem !important}.blaze-ui-cap-unified-select-container .ant-select-selector .ant-select-selection-placeholder{pointer-events:unset;color:#97a0af;display:flex;align-items:center}.blaze-ui-cap-unified-select-container .ant-select-prefix{font-size:1rem;font-weight:400;color:#091e42;line-height:1.429rem}.blaze-ui-cap-unified-select-container .ant-input-affix-wrapper .ant-input-prefix{left:.857rem}.blaze-ui-cap-unified-select-container .ant-select-selector{border-color:#7a869a !important;box-shadow:none !important;outline:0}.blaze-ui-cap-unified-select-container .ant-btn-variant-solid:not(:disabled):not(.ant-btn-disabled):hover{background-color:#47af46}.blaze-ui-cap-unified-select-container .ant-select-dropdown{margin-top:-0.571rem !important;border-radius:.286rem;background-color:#fff;box-shadow:0 .286rem .571rem -0.143rem rgba(9,30,66,.15),0 0 .071rem 0 rgba(9,30,66,.1);max-height:25.714rem;overflow:visible}.blaze-ui-cap-unified-select-container .ant-select-outlined.ant-select-multiple .ant-select-selection-wrap .ant-select-selection-item{background:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-container .ant-select-multiple .ant-select-selection-wrap .ant-select-selection-item,.blaze-ui-cap-unified-select-container .ant-select-selection-wrap .ant-select-selection-item{background:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-container .ant-select-multiple .ant-select-selection-wrap{align-self:center}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-search-container{border-bottom:.071rem solid #ebecf0 !important;line-height:2.857rem !important}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-search-container .blaze-ui-cap-unified-select-search-icon{color:#b3bac5}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-select-all-container{padding:.643rem 1.071rem;cursor:pointer;display:flex;align-items:center;border-bottom:.071rem solid #ebecf0;height:2.857rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-select-all-container .blaze-ui-cap-unified-select-select-all-checkbox{display:contents !important}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container{cursor:pointer;display:flex;align-items:center;border-bottom:.071rem solid #ebecf0;height:2.857rem;padding-left:1.143rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container .blaze-ui-cap-unified-select-upload-icon{color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container .blaze-ui-cap-unified-select-upload-label{margin-left:.857rem;color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container{display:flex;align-items:center;height:3.429rem;padding:.5rem;border-top:.071rem solid #ebecf0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group{display:flex;padding-left:.571rem;align-items:center}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button{background-color:#47af46;height:2.286rem;width:6.714rem;color:#fff}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button:hover{background-color:#1f9a1d}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button:disabled{background-color:#a1d8a0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-cancel-button{border:rgba(0,0,0,0);box-shadow:none;width:5.714rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-selected-count{display:flex;margin-left:auto;font-size:.857rem;font-weight:400;line-height:1.143rem;color:#5e6c84}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container{display:flex;justify-content:center;align-items:center;height:2.857rem;border-top:.071rem solid #ebecf0;cursor:pointer;color:#091e42}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container:hover{background-color:#ebecf0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container .blaze-ui-cap-unified-select-tree-clear-label{font-size:1rem;font-weight:400}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-no-result{display:flex;flex-direction:column;align-items:center;justify-content:center;height:14.286rem;color:#97a0af;font-size:1rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-no-result .blaze-ui-cap-unified-select-no-result-text{font-weight:500}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix{display:flex;justify-content:flex-start;align-items:center;width:100%;height:100%}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-label{flex:1}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-suffix{display:flex;align-items:center;padding:0 .571rem;max-height:1.429rem;white-space:nowrap;margin-left:.571rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info{margin-left:auto}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon{margin-top:.357rem;color:#42526e}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon .blaze-ui-cap-icon{color:#42526e}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu{margin-top:0 !important}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu .ant-select-dropdown-menu-item{padding:.571rem 1.714rem !important;height:unset !important;font-size:1rem !important}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu-item-disabled{color:rgba(0,0,0,.25) !important;cursor:not-allowed !important;line-height:1.428rem !important;font-size:1rem !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper{background-color:rgba(0,0,0,0);height:100%}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background-color:rgba(0,0,0,0) !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode{height:2.857rem;margin-bottom:0}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode:hover{background-color:#fffbe6}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-selected{background-color:#f4f5f7 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled{cursor:not-allowed !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled .blaze-ui-cap-unified-select-option-label{color:#b3bac5}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled .blaze-ui-cap-icon{color:#b3bac5 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode.ant-select-tree-treenode-selected{background-color:#f4f5f7}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-leaf .ant-select-tree-switcher-noop{display:none}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox .ant-select-tree-checkbox-inner{height:1.286rem;width:1.286rem;border:.143rem solid #b3bac5;border-radius:.286rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:hover{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#47af46 !important;border-color:#47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after{content:"";position:absolute;top:50%;left:50%;width:.714rem;height:.143rem;background-color:#fff;transform:translate(-50%, -50%);border-radius:.071rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper{border-radius:0;padding-left:.214rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-indent{margin-left:.857rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher:not(.ant-select-tree-switcher-noop):hover:before{background-color:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher .ant-select-tree-switcher-icon{font-size:.857rem;margin-top:1.286rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-list-holder-inner{width:fit-content !important;min-width:100%}.blaze-ui-cap-unified-select-popup .ant-tree-select:hover .ant-select-selector{border-color:#7a869a}.blaze-ui-cap-unified-select-popup .ant-tree-select-focused .ant-select-selector,.blaze-ui-cap-unified-select-popup .ant-tree-select-open .ant-select-selector{border-color:#7a869a;box-shadow:none;outline:none}.blaze-ui-cap-unified-select-popup .ant-checkbox-inner{height:1.286rem;width:1.286rem;border:.143rem solid #b3bac5;border-radius:.286rem}.blaze-ui-cap-unified-select-popup .ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#47af46 !important;border-color:#47af46 !important}.blaze-ui-cap-unified-select-popup .ant-checkbox-indeterminate .ant-checkbox-inner::after{content:"";position:absolute;top:50%;left:50%;width:.714rem;height:.143rem;background-color:#fff;transform:translate(-50%, -50%);border-radius:.071rem}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper{padding-left:.571rem;border:none;box-shadow:none;border-radius:0;border-bottom:.071rem solid rgba(0,0,0,0);transition:border-color .2s ease}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper:hover{border-bottom:.071rem solid #7a869a !important;box-shadow:none}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper:focus-within{border-bottom:.071rem solid #091e42 !important;box-shadow:none;outline:none}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper .ant-input{border:none !important;box-shadow:none !important}`, ""]);
3058
1935
  // Exports
3059
1936
  ___CSS_LOADER_EXPORT___.locals = {
3060
1937
  "cap-unified-select-header-wrapper": `blaze-ui-cap-unified-select-header-wrapper`,
@@ -3083,18 +1960,10 @@ ___CSS_LOADER_EXPORT___.locals = {
3083
1960
  "cap-unified-select-selected-count": `blaze-ui-cap-unified-select-selected-count`,
3084
1961
  "cap-unified-select-tree-clear-container": `blaze-ui-cap-unified-select-tree-clear-container`,
3085
1962
  "cap-unified-select-tree-clear-label": `blaze-ui-cap-unified-select-tree-clear-label`,
3086
- "cap-unified-select-footer-download-container": `blaze-ui-cap-unified-select-footer-download-container`,
3087
- "cap-unified-select-footer-download-icon": `blaze-ui-cap-unified-select-footer-download-icon`,
3088
- "cap-unified-select-footer-download-label": `blaze-ui-cap-unified-select-footer-download-label`,
3089
1963
  "cap-unified-select-no-result": `blaze-ui-cap-unified-select-no-result`,
3090
1964
  "cap-unified-select-no-result-text": `blaze-ui-cap-unified-select-no-result-text`,
3091
- "cap-unified-select-loading-container": `blaze-ui-cap-unified-select-loading-container`,
3092
- "cap-unified-select-loading-more": `blaze-ui-cap-unified-select-loading-more`,
3093
- "cap-unified-select-menu-wrapper": `blaze-ui-cap-unified-select-menu-wrapper`,
3094
- "cap-unified-select-loading-overlay": `blaze-ui-cap-unified-select-loading-overlay`,
3095
1965
  "cap-unified-select-option-with-suffix": `blaze-ui-cap-unified-select-option-with-suffix`,
3096
1966
  "cap-unified-select-option-label": `blaze-ui-cap-unified-select-option-label`,
3097
- "cap-unified-select-option-end": `blaze-ui-cap-unified-select-option-end`,
3098
1967
  "cap-unified-select-option-suffix": `blaze-ui-cap-unified-select-option-suffix`,
3099
1968
  "cap-tooltip-with-info": `blaze-ui-cap-tooltip-with-info`,
3100
1969
  "cap-icon": `blaze-ui-cap-icon`
@@ -3102,73 +1971,6 @@ ___CSS_LOADER_EXPORT___.locals = {
3102
1971
  module.exports = ___CSS_LOADER_EXPORT___;
3103
1972
 
3104
1973
 
3105
- /***/ }),
3106
-
3107
- /***/ 9788:
3108
- /***/ ((__unused_webpack_module, exports) => {
3109
-
3110
- "use strict";
3111
-
3112
-
3113
- exports.__esModule = true;
3114
- exports.TIMEOUTS = exports.SELECT_TYPES = exports.DEFAULTS = void 0;
3115
- /**
3116
- * Select type constants for CapUnifiedSelect component
3117
- */
3118
- const SELECT_TYPES = exports.SELECT_TYPES = {
3119
- SELECT: 'select',
3120
- MULTI_SELECT: 'multiSelect',
3121
- TREE_SELECT: 'treeSelect',
3122
- MULTI_TREE_SELECT: 'multiTreeSelect'
3123
- };
3124
- /**
3125
- * Timeout constants (in milliseconds)
3126
- */
3127
- const TIMEOUTS = exports.TIMEOUTS = {
3128
- /** Default search debounce timeout */
3129
- DEFAULT_SEARCH_DEBOUNCE: 300,
3130
- /** Delay for state updates after search */
3131
- SEARCH_STATE_UPDATE_DELAY: 100,
3132
- /** Minimum time since search was cleared to consider data ready */
3133
- SEARCH_CLEARED_TIMEOUT: 200,
3134
- /** Buffer time added to debounce for cleared search */
3135
- SEARCH_CLEARED_BUFFER: 300,
3136
- /** Buffer time added to debounce for regular search */
3137
- SEARCH_REGULAR_BUFFER: 500,
3138
- /** Brief delay to show loading indicator for static search */
3139
- STATIC_SEARCH_DELAY: 150,
3140
- /** Timeout for resetData fallback (1 second) */
3141
- RESET_DATA_TIMEOUT: 1000,
3142
- /** Minimum time since resetData was called to consider data ready */
3143
- RESET_DATA_MIN_TIME: 300,
3144
- /** Maximum time since resetData was called to consider data ready */
3145
- RESET_DATA_MAX_TIME: 2000,
3146
- /** Fallback timeout for scroll loading (10 seconds) */
3147
- SCROLL_LOADING_TIMEOUT: 10000,
3148
- /** Delay before setting up scroll container listener */
3149
- SCROLL_CONTAINER_DELAY: 100
3150
- };
3151
-
3152
- /**
3153
- * Default values for component props
3154
- */
3155
- const DEFAULTS = exports.DEFAULTS = {
3156
- /** Default placeholder text */
3157
- PLACEHOLDER: 'Select an option',
3158
- /** Default upload button label */
3159
- UPLOAD_LABEL: 'Upload',
3160
- /** Default clear button text */
3161
- CLEAR_TEXT: 'Clear',
3162
- /** Default no results message */
3163
- NO_RESULT_TEXT: 'No results found',
3164
- /** Default no results icon */
3165
- NO_RESULT_ICON: 'warning',
3166
- /** Default virtual row height in pixels */
3167
- VIRTUAL_ROW_HEIGHT: 32,
3168
- /** Default list height in pixels */
3169
- LIST_HEIGHT: 256
3170
- };
3171
-
3172
1974
  /***/ })
3173
1975
 
3174
1976
  /******/ });