@capillarytech/blaze-ui 1.0.3-alpha.5 → 1.0.3-alpha.6
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.
package/index.js
CHANGED
|
@@ -20396,12 +20396,11 @@ var _CapTooltip = _interopRequireDefault(__webpack_require__(5636));
|
|
|
20396
20396
|
var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(2608));
|
|
20397
20397
|
var _styles = _interopRequireDefault(__webpack_require__(8263));
|
|
20398
20398
|
var _jsxRuntime = __webpack_require__(4848);
|
|
20399
|
-
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", "
|
|
20399
|
+
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"];
|
|
20400
20400
|
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); }
|
|
20401
20401
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20402
20402
|
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; }
|
|
20403
|
-
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); }
|
|
20404
|
-
// import { List, AutoSizer } from 'react-virtualized';
|
|
20403
|
+
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 */
|
|
20405
20404
|
const SELECT_TYPES = {
|
|
20406
20405
|
SELECT: 'select',
|
|
20407
20406
|
MULTI_SELECT: 'multiSelect',
|
|
@@ -20575,8 +20574,7 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20575
20574
|
onPopupScroll,
|
|
20576
20575
|
enableVirtualization = false,
|
|
20577
20576
|
virtualRowHeight = 32,
|
|
20578
|
-
|
|
20579
|
-
clearSearchOnClose = true,
|
|
20577
|
+
resetSearch = false,
|
|
20580
20578
|
resetData
|
|
20581
20579
|
} = _ref4,
|
|
20582
20580
|
rest = _objectWithoutPropertiesLoose(_ref4, _excluded);
|
|
@@ -20585,6 +20583,7 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20585
20583
|
const [dropdownOpen, setDropdownOpen] = (0, _react.useState)(false);
|
|
20586
20584
|
const [isSearching, setIsSearching] = (0, _react.useState)(false);
|
|
20587
20585
|
const [isLoadingOnScroll, setIsLoadingOnScroll] = (0, _react.useState)(false);
|
|
20586
|
+
const [isResettingData, setIsResettingData] = (0, _react.useState)(false);
|
|
20588
20587
|
// Store ordered options after confirm (selected items moved to top based on selection order)
|
|
20589
20588
|
const [orderedOptions, setOrderedOptions] = (0, _react.useState)(null);
|
|
20590
20589
|
const searchTimeoutRef = (0, _react.useRef)(null);
|
|
@@ -20594,8 +20593,12 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20594
20593
|
const selectedItemsCacheRef = (0, _react.useRef)(new Map());
|
|
20595
20594
|
// Track the last search query to detect when options update after search
|
|
20596
20595
|
const lastSearchQueryRef = (0, _react.useRef)('');
|
|
20596
|
+
// Track when search was cleared to help clear loading state
|
|
20597
|
+
const searchClearedTimeRef = (0, _react.useRef)(null);
|
|
20597
20598
|
// Track previous options to detect when they change after a search
|
|
20598
20599
|
const prevOptionsRef = (0, _react.useRef)(options);
|
|
20600
|
+
// Track previous options before resetData is called to detect when options update
|
|
20601
|
+
const prevOptionsBeforeResetRef = (0, _react.useRef)(options);
|
|
20599
20602
|
// Track previous options count to detect when options change after scroll
|
|
20600
20603
|
const prevOptionsCountRef = (0, _react.useRef)(options.length);
|
|
20601
20604
|
// Track previous options to detect when options change (even if count stays same)
|
|
@@ -20604,6 +20607,14 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20604
20607
|
const scrollTriggerOptionsCountRef = (0, _react.useRef)(options.length);
|
|
20605
20608
|
// Track if initial sort has been done (only sort once on initial load with selected values)
|
|
20606
20609
|
const initialSortDoneRef = (0, _react.useRef)(false);
|
|
20610
|
+
// Track if user has interacted with the dropdown during current session (selected, searched, etc.)
|
|
20611
|
+
const hasInteractedRef = (0, _react.useRef)(false);
|
|
20612
|
+
// Track the initial tempValue when dropdown opens to detect if user made changes
|
|
20613
|
+
const initialTempValueRef = (0, _react.useRef)(value);
|
|
20614
|
+
// Track if resetData was already called in the current session to prevent duplicate calls
|
|
20615
|
+
const resetDataCalledRef = (0, _react.useRef)(false);
|
|
20616
|
+
// Track when resetData was called to help clear loading state
|
|
20617
|
+
const resetDataCalledTimeRef = (0, _react.useRef)(null);
|
|
20607
20618
|
(0, _react.useEffect)(() => {
|
|
20608
20619
|
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;
|
|
20609
20620
|
if (!isEqual) {
|
|
@@ -20696,19 +20707,33 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20696
20707
|
// This prevents showing "No results found" before data arrives
|
|
20697
20708
|
(0, _react.useEffect)(() => {
|
|
20698
20709
|
// Only handle this for API-based searches (staticValue = false)
|
|
20699
|
-
if (
|
|
20710
|
+
// Check if lastSearchQueryRef has been set (including empty string for cleared search)
|
|
20711
|
+
const hasSearchQuery = lastSearchQueryRef.current !== null && lastSearchQueryRef.current !== undefined;
|
|
20712
|
+
if (staticValue || !isSearching || !hasSearchQuery) {
|
|
20700
20713
|
prevOptionsRef.current = options;
|
|
20701
20714
|
return;
|
|
20702
20715
|
}
|
|
20703
20716
|
|
|
20704
20717
|
// Check if options actually changed (reference or content)
|
|
20705
20718
|
const optionsChanged = prevOptionsRef.current !== options || prevOptionsRef.current.length !== options.length;
|
|
20706
|
-
|
|
20719
|
+
|
|
20720
|
+
// Also check if search was cleared (empty string) and enough time has passed
|
|
20721
|
+
// This handles the case where clearing search reloads initial data that might be the same reference
|
|
20722
|
+
const searchCleared = lastSearchQueryRef.current === '';
|
|
20723
|
+
const timeSinceCleared = searchClearedTimeRef.current ? Date.now() - searchClearedTimeRef.current : Infinity;
|
|
20724
|
+
const hasOptionsData = options.length > 0;
|
|
20725
|
+
// Wait at least 200ms after search is cleared to allow API call to complete
|
|
20726
|
+
const clearedSearchReady = searchCleared && hasOptionsData && timeSinceCleared > 200;
|
|
20727
|
+
if (optionsChanged || clearedSearchReady) {
|
|
20707
20728
|
// Options updated after search - data has arrived
|
|
20708
20729
|
// Use a small delay to ensure state updates are processed
|
|
20709
20730
|
const timeoutId = setTimeout(() => {
|
|
20710
20731
|
setIsSearching(false);
|
|
20711
20732
|
prevOptionsRef.current = options;
|
|
20733
|
+
// Clear timestamp when search loading is cleared
|
|
20734
|
+
if (searchCleared) {
|
|
20735
|
+
searchClearedTimeRef.current = null;
|
|
20736
|
+
}
|
|
20712
20737
|
}, 100);
|
|
20713
20738
|
return () => clearTimeout(timeoutId);
|
|
20714
20739
|
}
|
|
@@ -20719,20 +20744,86 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20719
20744
|
// This handles edge cases where options might not change reference but data has arrived
|
|
20720
20745
|
// Also handles error cases where options don't update after search
|
|
20721
20746
|
(0, _react.useEffect)(() => {
|
|
20722
|
-
if (
|
|
20747
|
+
// Check if lastSearchQueryRef has been set (including empty string for cleared search)
|
|
20748
|
+
const hasSearchQuery = lastSearchQueryRef.current !== null && lastSearchQueryRef.current !== undefined;
|
|
20749
|
+
if (!isSearching || staticValue || !hasSearchQuery) {
|
|
20723
20750
|
return;
|
|
20724
20751
|
}
|
|
20725
20752
|
|
|
20753
|
+
// For cleared search (empty string), use a shorter timeout since it should reload initial data quickly
|
|
20754
|
+
// For regular search, use debounce timeout + buffer
|
|
20755
|
+
const searchCleared = lastSearchQueryRef.current === '';
|
|
20756
|
+
const timeoutDuration = searchCleared ? debounceTimeout + 300 // Shorter timeout for cleared search
|
|
20757
|
+
: debounceTimeout + 500; // Longer timeout for regular search
|
|
20758
|
+
|
|
20726
20759
|
// Calculate timeout: debounce timeout + a small buffer for API response
|
|
20727
20760
|
// This ensures we wait for the API call to complete before showing "No results"
|
|
20728
20761
|
// For error cases where options don't update, this will clear loading state
|
|
20729
20762
|
const fallbackTimeout = setTimeout(() => {
|
|
20730
20763
|
setIsSearching(false);
|
|
20731
|
-
|
|
20732
|
-
|
|
20764
|
+
searchClearedTimeRef.current = null; // Clear search cleared timestamp
|
|
20765
|
+
}, timeoutDuration);
|
|
20733
20766
|
return () => clearTimeout(fallbackTimeout);
|
|
20734
20767
|
}, [isSearching, staticValue, debounceTimeout, options.length]);
|
|
20735
20768
|
|
|
20769
|
+
// Detect when options update after resetData is called to clear loading state
|
|
20770
|
+
(0, _react.useEffect)(() => {
|
|
20771
|
+
if (!isResettingData) {
|
|
20772
|
+
// Update ref even when not resetting to keep it in sync
|
|
20773
|
+
prevOptionsBeforeResetRef.current = options;
|
|
20774
|
+
// Clear timestamp when not resetting
|
|
20775
|
+
resetDataCalledTimeRef.current = null;
|
|
20776
|
+
return;
|
|
20777
|
+
}
|
|
20778
|
+
|
|
20779
|
+
// Check if options actually changed (reference, length, or content)
|
|
20780
|
+
// Compare against the options that existed before resetData was called
|
|
20781
|
+
const prevOptions = prevOptionsBeforeResetRef.current;
|
|
20782
|
+
const currentOptions = options;
|
|
20783
|
+
|
|
20784
|
+
// More robust comparison: check reference, length, or any content differences
|
|
20785
|
+
const optionsChanged = prevOptions !== currentOptions || prevOptions.length !== currentOptions.length ||
|
|
20786
|
+
// Deep comparison: check if any option values or labels changed
|
|
20787
|
+
prevOptions.length === currentOptions.length && prevOptions.length > 0 && prevOptions.some((prevOpt, idx) => {
|
|
20788
|
+
const currentOpt = currentOptions[idx];
|
|
20789
|
+
return !currentOpt || prevOpt.value !== currentOpt.value || prevOpt.label !== currentOpt.label;
|
|
20790
|
+
});
|
|
20791
|
+
|
|
20792
|
+
// Additional check: if enough time has passed since resetData was called
|
|
20793
|
+
// and we have options data, assume data has loaded even if comparison didn't detect change
|
|
20794
|
+
const timeSinceReset = resetDataCalledTimeRef.current ? Date.now() - resetDataCalledTimeRef.current : Infinity;
|
|
20795
|
+
const hasDataAfterTimeout = currentOptions.length > 0 && timeSinceReset > 300 && timeSinceReset < 2000;
|
|
20796
|
+
|
|
20797
|
+
// If options changed or enough time has passed with data, clear the loading state
|
|
20798
|
+
if (optionsChanged || hasDataAfterTimeout) {
|
|
20799
|
+
// Options updated after resetData - data has arrived
|
|
20800
|
+
// Clear immediately without delay for faster response
|
|
20801
|
+
setIsResettingData(false);
|
|
20802
|
+
prevOptionsBeforeResetRef.current = currentOptions;
|
|
20803
|
+
resetDataCalledTimeRef.current = null;
|
|
20804
|
+
}
|
|
20805
|
+
}, [options, isResettingData]);
|
|
20806
|
+
|
|
20807
|
+
// Fallback: Clear resetData loading state after a reasonable timeout
|
|
20808
|
+
// This handles edge cases where options might not change reference but data has arrived
|
|
20809
|
+
(0, _react.useEffect)(() => {
|
|
20810
|
+
if (!isResettingData) {
|
|
20811
|
+
return;
|
|
20812
|
+
}
|
|
20813
|
+
|
|
20814
|
+
// Set a timeout to clear loading state if options don't update
|
|
20815
|
+
// Reduced timeout to 1 second for faster recovery
|
|
20816
|
+
const fallbackTimeout = setTimeout(() => {
|
|
20817
|
+
setIsResettingData(false);
|
|
20818
|
+
// Update ref to current options to prevent false positives in future comparisons
|
|
20819
|
+
prevOptionsBeforeResetRef.current = options;
|
|
20820
|
+
// Clear timestamp
|
|
20821
|
+
resetDataCalledTimeRef.current = null;
|
|
20822
|
+
}, 1000); // 1 second timeout for resetData operations
|
|
20823
|
+
|
|
20824
|
+
return () => clearTimeout(fallbackTimeout);
|
|
20825
|
+
}, [isResettingData, options]);
|
|
20826
|
+
|
|
20736
20827
|
// Detect when options change after scroll to clear loading overlay
|
|
20737
20828
|
(0, _react.useEffect)(() => {
|
|
20738
20829
|
// Always update refs when options change (when not loading)
|
|
@@ -20802,9 +20893,23 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20802
20893
|
}
|
|
20803
20894
|
const trimmedQuery = query.trim();
|
|
20804
20895
|
|
|
20896
|
+
// Track when search is cleared (empty string after having a query)
|
|
20897
|
+
const wasSearching = lastSearchQueryRef.current !== '';
|
|
20898
|
+
const isNowCleared = trimmedQuery === '';
|
|
20899
|
+
if (wasSearching && isNowCleared) {
|
|
20900
|
+
searchClearedTimeRef.current = Date.now();
|
|
20901
|
+
} else if (!isNowCleared) {
|
|
20902
|
+
searchClearedTimeRef.current = null;
|
|
20903
|
+
}
|
|
20904
|
+
|
|
20805
20905
|
// Track the search query to detect when options update
|
|
20806
20906
|
lastSearchQueryRef.current = trimmedQuery;
|
|
20807
20907
|
|
|
20908
|
+
// Mark as interacted if user typed something (even if they clear it later)
|
|
20909
|
+
if (trimmedQuery.length > 0 || lastSearchQueryRef.current.length > 0) {
|
|
20910
|
+
hasInteractedRef.current = true;
|
|
20911
|
+
}
|
|
20912
|
+
|
|
20808
20913
|
// For API-based searches (staticValue = false), always call onSearch
|
|
20809
20914
|
// This allows the developer to reload all initial data when search is cleared
|
|
20810
20915
|
if (!staticValue && onSearch) {
|
|
@@ -20822,8 +20927,13 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
20822
20927
|
// For static searches, if query is empty, just reset the state
|
|
20823
20928
|
setIsSearching(false);
|
|
20824
20929
|
} else {
|
|
20825
|
-
// For static searches with content,
|
|
20826
|
-
|
|
20930
|
+
// For static searches with content, show brief loading indicator
|
|
20931
|
+
// Set loading state briefly to show user feedback
|
|
20932
|
+
setIsSearching(true);
|
|
20933
|
+
// Clear loading state after a short delay (filtering is instant but we show feedback)
|
|
20934
|
+
searchTimeoutRef.current = setTimeout(() => {
|
|
20935
|
+
setIsSearching(false);
|
|
20936
|
+
}, 150); // Brief delay to show loading indicator
|
|
20827
20937
|
}
|
|
20828
20938
|
}, [onSearch, staticValue, debounceTimeout]);
|
|
20829
20939
|
const isMulti = (0, _react.useMemo)(() => type === SELECT_TYPES.MULTI_SELECT || type === SELECT_TYPES.MULTI_TREE_SELECT, [type]);
|
|
@@ -21003,17 +21113,24 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21003
21113
|
const enhanceOptions = opts => opts.map(opt => {
|
|
21004
21114
|
const decoratedTitle = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
21005
21115
|
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
21006
|
-
|
|
21007
|
-
|
|
21116
|
+
justify: "space-between",
|
|
21117
|
+
align: "middle",
|
|
21118
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21008
21119
|
className: _styles.default['cap-unified-select-option-label'],
|
|
21009
|
-
children:
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
21120
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
21121
|
+
type: "label14",
|
|
21122
|
+
children: opt == null ? void 0 : opt.label
|
|
21123
|
+
})
|
|
21124
|
+
}), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21125
|
+
className: _styles.default['cap-unified-select-option-end'],
|
|
21126
|
+
children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
21127
|
+
className: _styles.default['cap-unified-select-option-suffix'],
|
|
21128
|
+
children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
21129
|
+
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
21130
|
+
})]
|
|
21131
|
+
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
21132
|
+
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
21014
21133
|
})]
|
|
21015
|
-
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
21016
|
-
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
21017
21134
|
})]
|
|
21018
21135
|
});
|
|
21019
21136
|
return _extends({}, opt, {
|
|
@@ -21025,17 +21142,24 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21025
21142
|
return isTree ? enhanceOptions(sourceOptions) : sourceOptions.map(opt => _extends({}, opt, {
|
|
21026
21143
|
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
21027
21144
|
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
21028
|
-
|
|
21029
|
-
|
|
21145
|
+
justify: "space-between",
|
|
21146
|
+
align: "middle",
|
|
21147
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21030
21148
|
className: _styles.default['cap-unified-select-option-label'],
|
|
21031
|
-
children:
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
|
|
21149
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
21150
|
+
type: "label14",
|
|
21151
|
+
children: opt == null ? void 0 : opt.label
|
|
21152
|
+
})
|
|
21153
|
+
}), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21154
|
+
className: _styles.default['cap-unified-select-option-end'],
|
|
21155
|
+
children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
21156
|
+
className: _styles.default['cap-unified-select-option-suffix'],
|
|
21157
|
+
children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
21158
|
+
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
21159
|
+
})]
|
|
21160
|
+
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
21161
|
+
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
21036
21162
|
})]
|
|
21037
|
-
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
21038
|
-
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
21039
21163
|
})]
|
|
21040
21164
|
}),
|
|
21041
21165
|
label: opt == null ? void 0 : opt.label
|
|
@@ -21096,6 +21220,9 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21096
21220
|
return null;
|
|
21097
21221
|
}, [isMulti, displayValue, treeMaps]);
|
|
21098
21222
|
const handleConfirm = (0, _react.useCallback)(() => {
|
|
21223
|
+
// Mark as interacted since user clicked confirm (explicit action)
|
|
21224
|
+
hasInteractedRef.current = true;
|
|
21225
|
+
|
|
21099
21226
|
// Reorder options based on selection order when confirm is clicked
|
|
21100
21227
|
// Use mergedOptions to include paginated options if they exist
|
|
21101
21228
|
const optionsToReorder = mergedOptions;
|
|
@@ -21115,51 +21242,125 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21115
21242
|
setDropdownOpen(false);
|
|
21116
21243
|
// Always clear searching state since search operation is complete
|
|
21117
21244
|
setIsSearching(false);
|
|
21118
|
-
// Clear search
|
|
21245
|
+
searchClearedTimeRef.current = null; // Clear search cleared timestamp
|
|
21246
|
+
// Clear search text on confirm only if resetSearch is true
|
|
21119
21247
|
// This allows users to keep their search when reopening the dropdown if desired
|
|
21120
|
-
if (
|
|
21248
|
+
if (resetSearch) {
|
|
21121
21249
|
setSearchText('');
|
|
21122
21250
|
lastSearchQueryRef.current = ''; // Clear search query ref
|
|
21123
21251
|
}
|
|
21124
21252
|
// Call resetData to allow developer to reload initial data
|
|
21125
|
-
|
|
21253
|
+
if (resetData) {
|
|
21254
|
+
// Store current options before calling resetData to detect when they update
|
|
21255
|
+
prevOptionsBeforeResetRef.current = mergedOptions;
|
|
21256
|
+
setIsResettingData(true);
|
|
21257
|
+
resetDataCalledRef.current = true;
|
|
21258
|
+
resetDataCalledTimeRef.current = Date.now();
|
|
21259
|
+
resetData();
|
|
21260
|
+
}
|
|
21126
21261
|
onConfirm == null || onConfirm(tempValue);
|
|
21127
|
-
}, [onChange, onConfirm, tempValue,
|
|
21262
|
+
}, [onChange, onConfirm, tempValue, resetSearch, isMulti, mergedOptions, reorderOptionsBySelection, resetData]);
|
|
21128
21263
|
const handleClearAll = (0, _react.useCallback)(() => {
|
|
21264
|
+
// Mark as interacted since user clicked clear (explicit action)
|
|
21265
|
+
hasInteractedRef.current = true;
|
|
21129
21266
|
const cleared = isMulti ? [] : undefined;
|
|
21130
21267
|
setTempValue(cleared);
|
|
21131
21268
|
onChange == null || onChange(cleared);
|
|
21132
21269
|
setDropdownOpen(false);
|
|
21133
21270
|
// Call resetData to allow developer to reload initial data
|
|
21134
|
-
|
|
21135
|
-
|
|
21271
|
+
if (resetData) {
|
|
21272
|
+
// Store current options before calling resetData to detect when they update
|
|
21273
|
+
prevOptionsBeforeResetRef.current = options;
|
|
21274
|
+
setIsResettingData(true);
|
|
21275
|
+
resetDataCalledRef.current = true;
|
|
21276
|
+
resetDataCalledTimeRef.current = Date.now();
|
|
21277
|
+
resetData();
|
|
21278
|
+
}
|
|
21279
|
+
}, [isMulti, onChange, resetData, options]);
|
|
21136
21280
|
const handleDropdownVisibilityChange = (0, _react.useCallback)(open => {
|
|
21137
21281
|
if (readOnly) {
|
|
21138
21282
|
return;
|
|
21139
21283
|
}
|
|
21140
|
-
if (
|
|
21284
|
+
if (open) {
|
|
21285
|
+
// Reset interaction tracking when dropdown opens
|
|
21286
|
+
// Store initial value (not tempValue) to detect if user makes changes
|
|
21287
|
+
// This ensures we track changes from the actual selected value, not temporary state
|
|
21288
|
+
initialTempValueRef.current = value;
|
|
21289
|
+
hasInteractedRef.current = false;
|
|
21290
|
+
resetDataCalledRef.current = false;
|
|
21291
|
+
// Clear any pending search timeouts
|
|
21292
|
+
if (searchTimeoutRef.current) {
|
|
21293
|
+
clearTimeout(searchTimeoutRef.current);
|
|
21294
|
+
searchTimeoutRef.current = null;
|
|
21295
|
+
}
|
|
21296
|
+
// Clear any pending scroll loading timeouts
|
|
21297
|
+
if (scrollLoadingTimeoutRef.current) {
|
|
21298
|
+
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
21299
|
+
scrollLoadingTimeoutRef.current = null;
|
|
21300
|
+
}
|
|
21301
|
+
// Reset loading states
|
|
21302
|
+
setIsSearching(false);
|
|
21303
|
+
searchClearedTimeRef.current = null; // Clear search cleared timestamp
|
|
21304
|
+
setIsLoadingOnScroll(false);
|
|
21305
|
+
// Safety check: Clear isResettingData if it's still true when opening
|
|
21306
|
+
// This handles cases where options updated while dropdown was closed
|
|
21307
|
+
if (isResettingData) {
|
|
21308
|
+
setIsResettingData(false);
|
|
21309
|
+
// Update ref to current options to prevent false positives
|
|
21310
|
+
prevOptionsBeforeResetRef.current = options;
|
|
21311
|
+
// Clear timestamp
|
|
21312
|
+
resetDataCalledTimeRef.current = null;
|
|
21313
|
+
}
|
|
21314
|
+
} else {
|
|
21315
|
+
// Dropdown is closing
|
|
21141
21316
|
if (!customPopupRender) {
|
|
21142
21317
|
onChange == null || onChange(tempValue);
|
|
21143
21318
|
} else {
|
|
21144
21319
|
setTempValue(value);
|
|
21145
21320
|
}
|
|
21146
21321
|
// Clear search when closing (if enabled)
|
|
21147
|
-
if (
|
|
21322
|
+
if (resetSearch) {
|
|
21148
21323
|
setSearchText('');
|
|
21149
21324
|
setIsSearching(false);
|
|
21150
21325
|
lastSearchQueryRef.current = ''; // Clear search query ref
|
|
21326
|
+
searchClearedTimeRef.current = null; // Clear search cleared timestamp
|
|
21151
21327
|
}
|
|
21152
21328
|
// Reset scroll loading state
|
|
21153
21329
|
setIsLoadingOnScroll(false);
|
|
21154
21330
|
if (scrollLoadingTimeoutRef.current) {
|
|
21155
21331
|
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
21332
|
+
scrollLoadingTimeoutRef.current = null;
|
|
21156
21333
|
}
|
|
21157
21334
|
scrollContainerRef.current = null;
|
|
21158
|
-
|
|
21159
|
-
resetData
|
|
21335
|
+
|
|
21336
|
+
// Only call resetData if user actually interacted (selected, searched, etc.)
|
|
21337
|
+
// and resetData hasn't been called already in this session
|
|
21338
|
+
// This prevents multiple API calls when user just opens/closes without interaction
|
|
21339
|
+
if (resetData && hasInteractedRef.current && !resetDataCalledRef.current) {
|
|
21340
|
+
// Store current options before calling resetData to detect when they update
|
|
21341
|
+
prevOptionsBeforeResetRef.current = options;
|
|
21342
|
+
setIsResettingData(true);
|
|
21343
|
+
resetDataCalledRef.current = true;
|
|
21344
|
+
resetDataCalledTimeRef.current = Date.now();
|
|
21345
|
+
resetData();
|
|
21346
|
+
} else if (!hasInteractedRef.current) {
|
|
21347
|
+
// User did nothing - reset everything as if it's a fresh load
|
|
21348
|
+
// Clear any pending operations
|
|
21349
|
+
if (searchTimeoutRef.current) {
|
|
21350
|
+
clearTimeout(searchTimeoutRef.current);
|
|
21351
|
+
searchTimeoutRef.current = null;
|
|
21352
|
+
}
|
|
21353
|
+
setIsSearching(false);
|
|
21354
|
+
setIsResettingData(false);
|
|
21355
|
+
// Reset search query ref
|
|
21356
|
+
lastSearchQueryRef.current = '';
|
|
21357
|
+
}
|
|
21358
|
+
|
|
21359
|
+
// Reset interaction flag for next session
|
|
21360
|
+
hasInteractedRef.current = false;
|
|
21160
21361
|
}
|
|
21161
21362
|
setDropdownOpen(open);
|
|
21162
|
-
}, [customPopupRender, value, onChange, tempValue, readOnly,
|
|
21363
|
+
}, [customPopupRender, value, onChange, tempValue, readOnly, resetSearch, resetData, options]);
|
|
21163
21364
|
const handleFooterDownload = (0, _react.useCallback)(() => {
|
|
21164
21365
|
const currentValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
21165
21366
|
onFooterDownloadChange == null || onFooterDownloadChange(currentValues);
|
|
@@ -21244,6 +21445,9 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21244
21445
|
// isPropagationStopped: () => false,
|
|
21245
21446
|
// } as unknown as React.UIEvent<HTMLElement>;
|
|
21246
21447
|
|
|
21448
|
+
// Mark as interacted when user scrolls (triggers data loading)
|
|
21449
|
+
hasInteractedRef.current = true;
|
|
21450
|
+
|
|
21247
21451
|
// Call the developer's scroll handler - component already checked scroll position
|
|
21248
21452
|
// Developer should check hasMore and isLoading inside the callback
|
|
21249
21453
|
// This triggers the async data loading
|
|
@@ -21380,7 +21584,7 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21380
21584
|
tempValue: Array.isArray(tempValue) ? tempValue : undefined,
|
|
21381
21585
|
setTempValue: val => setTempValue(val),
|
|
21382
21586
|
processTreeData: buildTreeMaps
|
|
21383
|
-
}), currentItems.length === 0 ? isSearching ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21587
|
+
}), currentItems.length === 0 ? isSearching || isResettingData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21384
21588
|
className: _styles.default['cap-unified-select-loading-container'],
|
|
21385
21589
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
21386
21590
|
align: "middle",
|
|
@@ -21404,7 +21608,23 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21404
21608
|
noResultCustomIcon: noResultCustomIcon
|
|
21405
21609
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21406
21610
|
className: _styles.default['cap-unified-select-menu-wrapper'],
|
|
21407
|
-
children: [menu,
|
|
21611
|
+
children: [menu, (isSearching || isResettingData) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21612
|
+
className: _styles.default['cap-unified-select-loading-overlay'],
|
|
21613
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
21614
|
+
align: "middle",
|
|
21615
|
+
justify: "center",
|
|
21616
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
|
|
21617
|
+
size: "small"
|
|
21618
|
+
})
|
|
21619
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
21620
|
+
align: "middle",
|
|
21621
|
+
justify: "center",
|
|
21622
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
21623
|
+
type: "label14",
|
|
21624
|
+
children: "Loading..."
|
|
21625
|
+
})
|
|
21626
|
+
})]
|
|
21627
|
+
}), isLoadingOnScroll && onPopupScroll && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21408
21628
|
className: _styles.default['cap-unified-select-loading-overlay'],
|
|
21409
21629
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
21410
21630
|
align: "middle",
|
|
@@ -21461,28 +21681,53 @@ const CapUnifiedSelect = _ref4 => {
|
|
|
21461
21681
|
})
|
|
21462
21682
|
})]
|
|
21463
21683
|
});
|
|
21464
|
-
}, [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]);
|
|
21684
|
+
}, [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]);
|
|
21465
21685
|
const combinedClassName = (0, _react.useMemo)(() => (0, _classnames.default)(containerClassName, _styles.default['cap-unified-tree-select'], {
|
|
21466
21686
|
[_styles.default['cap-unified-tree-select-readonly']]: readOnly
|
|
21467
21687
|
}, className), [containerClassName, className, readOnly]);
|
|
21468
21688
|
|
|
21469
21689
|
// Handle onChange for single select - detect clear button click and call resetData
|
|
21470
21690
|
const handleSingleSelectChange = (0, _react.useCallback)(newValue => {
|
|
21691
|
+
// Mark as interacted if value changed from initial
|
|
21692
|
+
if (newValue !== initialTempValueRef.current) {
|
|
21693
|
+
hasInteractedRef.current = true;
|
|
21694
|
+
}
|
|
21695
|
+
|
|
21471
21696
|
// If value is cleared (becomes undefined), call resetData
|
|
21472
21697
|
if (newValue === undefined || newValue === null) {
|
|
21473
|
-
|
|
21698
|
+
if (resetData) {
|
|
21699
|
+
// Store current options before calling resetData to detect when they update
|
|
21700
|
+
prevOptionsBeforeResetRef.current = options;
|
|
21701
|
+
setIsResettingData(true);
|
|
21702
|
+
resetDataCalledRef.current = true;
|
|
21703
|
+
resetDataCalledTimeRef.current = Date.now();
|
|
21704
|
+
resetData();
|
|
21705
|
+
}
|
|
21474
21706
|
}
|
|
21475
21707
|
onChange == null || onChange(newValue);
|
|
21476
|
-
}, [onChange, resetData]);
|
|
21708
|
+
}, [onChange, resetData, options]);
|
|
21477
21709
|
|
|
21478
21710
|
// Handle onChange for multi select - detect clear and call resetData
|
|
21479
21711
|
const handleMultiSelectChange = (0, _react.useCallback)(newValue => {
|
|
21712
|
+
// Mark as interacted if value changed from initial
|
|
21713
|
+
const initialValue = initialTempValueRef.current;
|
|
21714
|
+
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;
|
|
21715
|
+
if (hasChanged) {
|
|
21716
|
+
hasInteractedRef.current = true;
|
|
21717
|
+
}
|
|
21480
21718
|
// If value is cleared (becomes empty array or undefined), call resetData
|
|
21481
21719
|
if (newValue === undefined || newValue === null || Array.isArray(newValue) && newValue.length === 0) {
|
|
21482
|
-
|
|
21720
|
+
if (resetData) {
|
|
21721
|
+
// Store current options before calling resetData to detect when they update
|
|
21722
|
+
prevOptionsBeforeResetRef.current = options;
|
|
21723
|
+
setIsResettingData(true);
|
|
21724
|
+
resetDataCalledRef.current = true;
|
|
21725
|
+
resetDataCalledTimeRef.current = Date.now();
|
|
21726
|
+
resetData();
|
|
21727
|
+
}
|
|
21483
21728
|
}
|
|
21484
21729
|
setTempValue(newValue);
|
|
21485
|
-
}, [resetData]);
|
|
21730
|
+
}, [resetData, options]);
|
|
21486
21731
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
21487
21732
|
className: className,
|
|
21488
21733
|
children: [renderHeader, /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.TreeSelect, _extends({
|
|
@@ -23246,7 +23491,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
|
23246
23491
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
23247
23492
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
23248
23493
|
// Module
|
|
23249
|
-
___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:8px}.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:8px;color:#97a0af}.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%;line-height:1.5;vertical-align:middle}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-label{flex:1;display:flex;align-items:center}.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%;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}.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}.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}`, ""]);
|
|
23494
|
+
___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:8px}.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:8px;color:#97a0af}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix{display:flex;justify-content:space-between;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}`, ""]);
|
|
23250
23495
|
// Exports
|
|
23251
23496
|
___CSS_LOADER_EXPORT___.locals = {
|
|
23252
23497
|
"cap-unified-select-header-wrapper": `blaze-ui-cap-unified-select-header-wrapper`,
|
|
@@ -23286,6 +23531,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
23286
23531
|
"cap-unified-select-loading-overlay": `blaze-ui-cap-unified-select-loading-overlay`,
|
|
23287
23532
|
"cap-unified-select-option-with-suffix": `blaze-ui-cap-unified-select-option-with-suffix`,
|
|
23288
23533
|
"cap-unified-select-option-label": `blaze-ui-cap-unified-select-option-label`,
|
|
23534
|
+
"cap-unified-select-option-end": `blaze-ui-cap-unified-select-option-end`,
|
|
23289
23535
|
"cap-unified-select-option-suffix": `blaze-ui-cap-unified-select-option-suffix`,
|
|
23290
23536
|
"cap-tooltip-with-info": `blaze-ui-cap-tooltip-with-info`,
|
|
23291
23537
|
"cap-icon": `blaze-ui-cap-icon`
|