@open-condo/ui 2.17.1 → 2.19.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.
- package/dist/components/Button/icon/iconButton.d.ts +9 -0
- package/dist/components/Button/icon/iconButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +8 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Select/select.d.ts.map +1 -1
- package/dist/components/_utils/analytics.d.ts +3 -0
- package/dist/components/_utils/analytics.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +832 -141
- package/dist/style-vars/variables.css +1 -1
- package/dist/style-vars/variables.less +1 -1
- package/dist/styles.css +199 -108
- package/dist/styles.min.css +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46500,7 +46500,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
46500
46500
|
ActionBar: function() { return /* reexport */ ActionBar; },
|
|
46501
46501
|
Alert: function() { return /* reexport */ alert_Alert; },
|
|
46502
46502
|
Banner: function() { return /* reexport */ Banner; },
|
|
46503
|
-
Button: function() { return /* reexport */
|
|
46503
|
+
Button: function() { return /* reexport */ Button_Button; },
|
|
46504
46504
|
Card: function() { return /* reexport */ Card_Card; },
|
|
46505
46505
|
Carousel: function() { return /* reexport */ carousel_Carousel; },
|
|
46506
46506
|
Checkbox: function() { return /* reexport */ Checkbox_checkbox_Checkbox; },
|
|
@@ -47336,7 +47336,7 @@ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
|
|
|
47336
47336
|
var isString = __webpack_require__(8138);
|
|
47337
47337
|
var isString_default = /*#__PURE__*/__webpack_require__.n(isString);
|
|
47338
47338
|
;// CONCATENATED MODULE: ./package.json
|
|
47339
|
-
var package_namespaceObject = {"rE":"2.
|
|
47339
|
+
var package_namespaceObject = {"rE":"2.19.0"};
|
|
47340
47340
|
;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
|
|
47341
47341
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
47342
47342
|
|
|
@@ -49164,10 +49164,73 @@ var button_Button = /*#__PURE__*/external_react_default().forwardRef(function (p
|
|
|
49164
49164
|
});
|
|
49165
49165
|
button_Button.displayName = 'Button';
|
|
49166
49166
|
|
|
49167
|
+
;// CONCATENATED MODULE: ./src/components/Button/icon/iconButton.tsx
|
|
49168
|
+
var iconButton_excluded = ["className", "children", "onClick", "id", "size"];
|
|
49169
|
+
|
|
49170
|
+
function iconButton_extends() { iconButton_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return iconButton_extends.apply(this, arguments); }
|
|
49171
|
+
|
|
49172
|
+
function iconButton_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
49173
|
+
|
|
49174
|
+
function iconButton_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = iconButton_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
49175
|
+
|
|
49176
|
+
function iconButton_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
49177
|
+
|
|
49178
|
+
|
|
49179
|
+
|
|
49180
|
+
|
|
49181
|
+
|
|
49182
|
+
|
|
49183
|
+
var ICON_BUTTON_CLASS_PREFIX = 'condo-icon-btn';
|
|
49184
|
+
var IconButton = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
49185
|
+
var _classNames;
|
|
49186
|
+
|
|
49187
|
+
var className = props.className,
|
|
49188
|
+
children = props.children,
|
|
49189
|
+
onClick = props.onClick,
|
|
49190
|
+
id = props.id,
|
|
49191
|
+
size = props.size,
|
|
49192
|
+
rest = iconButton_objectWithoutProperties(props, iconButton_excluded);
|
|
49193
|
+
|
|
49194
|
+
var mergedSize = size || 'medium';
|
|
49195
|
+
var ariaLabel = rest['aria-label'];
|
|
49196
|
+
var classes = node_modules_classnames_default()((_classNames = {}, iconButton_defineProperty(_classNames, BUTTON_CLASS_PREFIX, true), iconButton_defineProperty(_classNames, "".concat(ICON_BUTTON_CLASS_PREFIX, "-").concat(mergedSize), mergedSize), _classNames), className);
|
|
49197
|
+
var wrappedContent = children ? /*#__PURE__*/external_react_default().createElement("span", {
|
|
49198
|
+
className: "".concat(ICON_BUTTON_CLASS_PREFIX, "-content")
|
|
49199
|
+
}, children) : null;
|
|
49200
|
+
var handleClick = (0,external_react_.useCallback)(function (event) {
|
|
49201
|
+
var stringContent = extractChildrenContent(children) || ariaLabel;
|
|
49202
|
+
|
|
49203
|
+
if (stringContent || id) {
|
|
49204
|
+
sendAnalyticsClickEvent('IconButton', {
|
|
49205
|
+
value: stringContent,
|
|
49206
|
+
id: id
|
|
49207
|
+
});
|
|
49208
|
+
}
|
|
49209
|
+
|
|
49210
|
+
if (onClick) {
|
|
49211
|
+
onClick(event);
|
|
49212
|
+
}
|
|
49213
|
+
}, [ariaLabel, children, id, onClick]);
|
|
49214
|
+
return /*#__PURE__*/external_react_default().createElement(es_button, iconButton_extends({}, rest, {
|
|
49215
|
+
id: id,
|
|
49216
|
+
icon: wrappedContent,
|
|
49217
|
+
prefixCls: ICON_BUTTON_CLASS_PREFIX,
|
|
49218
|
+
className: classes,
|
|
49219
|
+
ref: ref,
|
|
49220
|
+
type: "default",
|
|
49221
|
+
onClick: handleClick
|
|
49222
|
+
}));
|
|
49223
|
+
});
|
|
49224
|
+
IconButton.displayName = 'IconButton';
|
|
49225
|
+
|
|
49167
49226
|
;// CONCATENATED MODULE: ./src/components/Button/index.ts
|
|
49168
49227
|
|
|
49169
49228
|
|
|
49170
49229
|
|
|
49230
|
+
|
|
49231
|
+
var Button_Button = button_Button;
|
|
49232
|
+
Button_Button.Icon = IconButton;
|
|
49233
|
+
|
|
49171
49234
|
;// CONCATENATED MODULE: ./src/components/Banner/banner.tsx
|
|
49172
49235
|
function banner_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
49173
49236
|
|
|
@@ -49312,7 +49375,7 @@ var Banner = function Banner(_ref) {
|
|
|
49312
49375
|
color: invertText ? colors.colors.white : colors.colors.black,
|
|
49313
49376
|
size: "small",
|
|
49314
49377
|
className: "".concat(CLASS_PREFIX, "-action-icon")
|
|
49315
|
-
})) : /*#__PURE__*/external_react_default().createElement(
|
|
49378
|
+
})) : /*#__PURE__*/external_react_default().createElement(Button_Button, {
|
|
49316
49379
|
type: "primary",
|
|
49317
49380
|
stateless: true
|
|
49318
49381
|
}, actionText))), showImage && /*#__PURE__*/external_react_default().createElement("div", {
|
|
@@ -49400,7 +49463,7 @@ var CardBody = function CardBody(props) {
|
|
|
49400
49463
|
})), caption && /*#__PURE__*/external_react_default().createElement(Typography.Text, {
|
|
49401
49464
|
size: "small",
|
|
49402
49465
|
type: "secondary"
|
|
49403
|
-
}, caption), mainLink && renderLink(mainLink), secondLink && renderLink(secondLink), button && /*#__PURE__*/external_react_default().createElement(
|
|
49466
|
+
}, caption), mainLink && renderLink(mainLink), secondLink && renderLink(secondLink), button && /*#__PURE__*/external_react_default().createElement(Button_Button, button));
|
|
49404
49467
|
};
|
|
49405
49468
|
|
|
49406
49469
|
|
|
@@ -51635,9 +51698,35 @@ function Dropdown(props, ref) {
|
|
|
51635
51698
|
;// CONCATENATED MODULE: ../../node_modules/rc-dropdown/es/index.js
|
|
51636
51699
|
|
|
51637
51700
|
/* harmony default export */ var rc_dropdown_es = (es_Dropdown);
|
|
51638
|
-
|
|
51639
|
-
|
|
51640
|
-
|
|
51701
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/Dom/canUseDom.js
|
|
51702
|
+
function Dom_canUseDom_canUseDom() {
|
|
51703
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
51704
|
+
}
|
|
51705
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/hooks/useLayoutEffect.js
|
|
51706
|
+
|
|
51707
|
+
|
|
51708
|
+
/**
|
|
51709
|
+
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
51710
|
+
*/
|
|
51711
|
+
|
|
51712
|
+
var useLayoutEffect_useLayoutEffect = true && Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
|
|
51713
|
+
/* harmony default export */ var es_hooks_useLayoutEffect = (useLayoutEffect_useLayoutEffect);
|
|
51714
|
+
var useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
|
|
51715
|
+
var firstMountRef = React.useRef(true);
|
|
51716
|
+
useLayoutEffect_useLayoutEffect(function () {
|
|
51717
|
+
if (!firstMountRef.current) {
|
|
51718
|
+
return callback();
|
|
51719
|
+
}
|
|
51720
|
+
}, deps); // We tell react that first mount has passed
|
|
51721
|
+
|
|
51722
|
+
useLayoutEffect_useLayoutEffect(function () {
|
|
51723
|
+
firstMountRef.current = false;
|
|
51724
|
+
return function () {
|
|
51725
|
+
firstMountRef.current = true;
|
|
51726
|
+
};
|
|
51727
|
+
}, []);
|
|
51728
|
+
};
|
|
51729
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/Item.js
|
|
51641
51730
|
|
|
51642
51731
|
|
|
51643
51732
|
|
|
@@ -51721,9 +51810,97 @@ function InternalItem(props, ref) {
|
|
|
51721
51810
|
var Item_Item = /*#__PURE__*/external_react_.forwardRef(InternalItem);
|
|
51722
51811
|
Item_Item.displayName = 'Item';
|
|
51723
51812
|
/* harmony default export */ var es_Item = (Item_Item);
|
|
51724
|
-
|
|
51725
|
-
var
|
|
51726
|
-
|
|
51813
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/raf.js
|
|
51814
|
+
var es_raf_raf = function raf(callback) {
|
|
51815
|
+
return +setTimeout(callback, 16);
|
|
51816
|
+
};
|
|
51817
|
+
|
|
51818
|
+
var raf_caf = function caf(num) {
|
|
51819
|
+
return clearTimeout(num);
|
|
51820
|
+
};
|
|
51821
|
+
|
|
51822
|
+
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
51823
|
+
es_raf_raf = function raf(callback) {
|
|
51824
|
+
return window.requestAnimationFrame(callback);
|
|
51825
|
+
};
|
|
51826
|
+
|
|
51827
|
+
raf_caf = function caf(handle) {
|
|
51828
|
+
return window.cancelAnimationFrame(handle);
|
|
51829
|
+
};
|
|
51830
|
+
}
|
|
51831
|
+
|
|
51832
|
+
var raf_rafUUID = 0;
|
|
51833
|
+
var raf_rafIds = new Map();
|
|
51834
|
+
|
|
51835
|
+
function raf_cleanup(id) {
|
|
51836
|
+
raf_rafIds.delete(id);
|
|
51837
|
+
}
|
|
51838
|
+
|
|
51839
|
+
function es_raf_wrapperRaf(callback) {
|
|
51840
|
+
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
51841
|
+
raf_rafUUID += 1;
|
|
51842
|
+
var id = raf_rafUUID;
|
|
51843
|
+
|
|
51844
|
+
function callRef(leftTimes) {
|
|
51845
|
+
if (leftTimes === 0) {
|
|
51846
|
+
// Clean up
|
|
51847
|
+
raf_cleanup(id); // Trigger
|
|
51848
|
+
|
|
51849
|
+
callback();
|
|
51850
|
+
} else {
|
|
51851
|
+
// Next raf
|
|
51852
|
+
var realId = es_raf_raf(function () {
|
|
51853
|
+
callRef(leftTimes - 1);
|
|
51854
|
+
}); // Bind real raf id
|
|
51855
|
+
|
|
51856
|
+
raf_rafIds.set(id, realId);
|
|
51857
|
+
}
|
|
51858
|
+
}
|
|
51859
|
+
|
|
51860
|
+
callRef(times);
|
|
51861
|
+
return id;
|
|
51862
|
+
}
|
|
51863
|
+
|
|
51864
|
+
es_raf_wrapperRaf.cancel = function (id) {
|
|
51865
|
+
var realId = raf_rafIds.get(id);
|
|
51866
|
+
raf_cleanup(realId);
|
|
51867
|
+
return raf_caf(realId);
|
|
51868
|
+
};
|
|
51869
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/hooks/useState.js
|
|
51870
|
+
|
|
51871
|
+
|
|
51872
|
+
/**
|
|
51873
|
+
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
|
51874
|
+
* We do not make this auto is to avoid real memory leak.
|
|
51875
|
+
* Developer should confirm it's safe to ignore themselves.
|
|
51876
|
+
*/
|
|
51877
|
+
|
|
51878
|
+
function useState_useSafeState(defaultValue) {
|
|
51879
|
+
var destroyRef = external_react_.useRef(false);
|
|
51880
|
+
|
|
51881
|
+
var _React$useState = external_react_.useState(defaultValue),
|
|
51882
|
+
_React$useState2 = (0,slicedToArray/* default */.A)(_React$useState, 2),
|
|
51883
|
+
value = _React$useState2[0],
|
|
51884
|
+
setValue = _React$useState2[1];
|
|
51885
|
+
|
|
51886
|
+
external_react_.useEffect(function () {
|
|
51887
|
+
destroyRef.current = false;
|
|
51888
|
+
return function () {
|
|
51889
|
+
destroyRef.current = true;
|
|
51890
|
+
};
|
|
51891
|
+
}, []);
|
|
51892
|
+
|
|
51893
|
+
function safeSetState(updater, ignoreDestroy) {
|
|
51894
|
+
if (ignoreDestroy && destroyRef.current) {
|
|
51895
|
+
return;
|
|
51896
|
+
}
|
|
51897
|
+
|
|
51898
|
+
setValue(updater);
|
|
51899
|
+
}
|
|
51900
|
+
|
|
51901
|
+
return [value, safeSetState];
|
|
51902
|
+
}
|
|
51903
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/hooks/useBatchFrameState.js
|
|
51727
51904
|
|
|
51728
51905
|
|
|
51729
51906
|
|
|
@@ -51734,7 +51911,7 @@ var hooks_useState = __webpack_require__(39348);
|
|
|
51734
51911
|
*/
|
|
51735
51912
|
|
|
51736
51913
|
function useBatchFrameState() {
|
|
51737
|
-
var _useState = (
|
|
51914
|
+
var _useState = useState_useSafeState({}),
|
|
51738
51915
|
_useState2 = (0,slicedToArray/* default */.A)(_useState, 2),
|
|
51739
51916
|
forceUpdate = _useState2[1];
|
|
51740
51917
|
|
|
@@ -51755,9 +51932,9 @@ function useBatchFrameState() {
|
|
|
51755
51932
|
|
|
51756
51933
|
function setValue(val) {
|
|
51757
51934
|
statesRef.current[myIndex] = typeof val === 'function' ? val(statesRef.current[myIndex]) : val;
|
|
51758
|
-
|
|
51935
|
+
es_raf_wrapperRaf.cancel(beforeFrameId); // Flush with batch
|
|
51759
51936
|
|
|
51760
|
-
beforeFrameId = (
|
|
51937
|
+
beforeFrameId = es_raf_wrapperRaf(function () {
|
|
51761
51938
|
forceUpdate({}, true);
|
|
51762
51939
|
});
|
|
51763
51940
|
}
|
|
@@ -51767,7 +51944,7 @@ function useBatchFrameState() {
|
|
|
51767
51944
|
|
|
51768
51945
|
return createState;
|
|
51769
51946
|
}
|
|
51770
|
-
;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/RawItem.js
|
|
51947
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/RawItem.js
|
|
51771
51948
|
|
|
51772
51949
|
|
|
51773
51950
|
var RawItem_excluded = ["component"],
|
|
@@ -51809,7 +51986,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
51809
51986
|
var RawItem = /*#__PURE__*/external_react_.forwardRef(InternalRawItem);
|
|
51810
51987
|
RawItem.displayName = 'RawItem';
|
|
51811
51988
|
/* harmony default export */ var es_RawItem = (RawItem);
|
|
51812
|
-
;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/Overflow.js
|
|
51989
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/Overflow.js
|
|
51813
51990
|
|
|
51814
51991
|
|
|
51815
51992
|
|
|
@@ -52008,7 +52185,7 @@ function Overflow(props, ref) {
|
|
|
52008
52185
|
return itemWidths.get(getKey(mergedData[index], index));
|
|
52009
52186
|
}
|
|
52010
52187
|
|
|
52011
|
-
|
|
52188
|
+
es_hooks_useLayoutEffect(function () {
|
|
52012
52189
|
if (mergedContainerWidth && mergedRestWidth && mergedData) {
|
|
52013
52190
|
var totalWidth = suffixWidth;
|
|
52014
52191
|
var len = mergedData.length;
|
|
@@ -52145,7 +52322,7 @@ ForwardOverflow.RESPONSIVE = RESPONSIVE;
|
|
|
52145
52322
|
ForwardOverflow.INVALIDATE = INVALIDATE; // Convert to generic type
|
|
52146
52323
|
|
|
52147
52324
|
/* harmony default export */ var es_Overflow = (ForwardOverflow);
|
|
52148
|
-
;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/index.js
|
|
52325
|
+
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/index.js
|
|
52149
52326
|
|
|
52150
52327
|
/* harmony default export */ var rc_overflow_es = (es_Overflow);
|
|
52151
52328
|
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/hooks/useEvent.js
|
|
@@ -52163,7 +52340,7 @@ function useEvent_useEvent(callback) {
|
|
|
52163
52340
|
return memoFn;
|
|
52164
52341
|
}
|
|
52165
52342
|
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/Dom/canUseDom.js
|
|
52166
|
-
function
|
|
52343
|
+
function es_Dom_canUseDom_canUseDom() {
|
|
52167
52344
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
52168
52345
|
}
|
|
52169
52346
|
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/hooks/useLayoutEffect.js
|
|
@@ -52173,18 +52350,18 @@ function Dom_canUseDom_canUseDom() {
|
|
|
52173
52350
|
/**
|
|
52174
52351
|
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
52175
52352
|
*/
|
|
52176
|
-
var
|
|
52177
|
-
/* harmony default export */ var rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (
|
|
52178
|
-
var
|
|
52353
|
+
var hooks_useLayoutEffect_useLayoutEffect = true && es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
|
|
52354
|
+
/* harmony default export */ var rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (hooks_useLayoutEffect_useLayoutEffect)));
|
|
52355
|
+
var hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
|
|
52179
52356
|
var firstMountRef = external_react_.useRef(true);
|
|
52180
|
-
|
|
52357
|
+
hooks_useLayoutEffect_useLayoutEffect(function () {
|
|
52181
52358
|
if (!firstMountRef.current) {
|
|
52182
52359
|
return callback();
|
|
52183
52360
|
}
|
|
52184
52361
|
}, deps);
|
|
52185
52362
|
|
|
52186
52363
|
// We tell react that first mount has passed
|
|
52187
|
-
|
|
52364
|
+
hooks_useLayoutEffect_useLayoutEffect(function () {
|
|
52188
52365
|
firstMountRef.current = false;
|
|
52189
52366
|
return function () {
|
|
52190
52367
|
firstMountRef.current = true;
|
|
@@ -52199,7 +52376,7 @@ var useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callb
|
|
|
52199
52376
|
* We do not make this auto is to avoid real memory leak.
|
|
52200
52377
|
* Developer should confirm it's safe to ignore themselves.
|
|
52201
52378
|
*/
|
|
52202
|
-
function
|
|
52379
|
+
function hooks_useState_useSafeState(defaultValue) {
|
|
52203
52380
|
var destroyRef = external_react_.useRef(false);
|
|
52204
52381
|
var _React$useState = external_react_.useState(defaultValue),
|
|
52205
52382
|
_React$useState2 = (0,slicedToArray/* default */.A)(_React$useState, 2),
|
|
@@ -52241,7 +52418,7 @@ function useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
52241
52418
|
postState = _ref.postState;
|
|
52242
52419
|
|
|
52243
52420
|
// ======================= Init =======================
|
|
52244
|
-
var _useState =
|
|
52421
|
+
var _useState = hooks_useState_useSafeState(function () {
|
|
52245
52422
|
if (useMergedState_hasValue(value)) {
|
|
52246
52423
|
return value;
|
|
52247
52424
|
} else if (useMergedState_hasValue(defaultValue)) {
|
|
@@ -52258,11 +52435,11 @@ function useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
52258
52435
|
|
|
52259
52436
|
// ====================== Change ======================
|
|
52260
52437
|
var onChangeFn = useEvent_useEvent(onChange);
|
|
52261
|
-
var _useState3 =
|
|
52438
|
+
var _useState3 = hooks_useState_useSafeState([mergedValue]),
|
|
52262
52439
|
_useState4 = (0,slicedToArray/* default */.A)(_useState3, 2),
|
|
52263
52440
|
prevValue = _useState4[0],
|
|
52264
52441
|
setPrevValue = _useState4[1];
|
|
52265
|
-
|
|
52442
|
+
hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
|
|
52266
52443
|
var prev = prevValue[0];
|
|
52267
52444
|
if (innerValue !== prev) {
|
|
52268
52445
|
onChangeFn(innerValue, prev);
|
|
@@ -52270,7 +52447,7 @@ function useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
52270
52447
|
}, [prevValue]);
|
|
52271
52448
|
|
|
52272
52449
|
// Sync value back to `undefined` when it from control to un-control
|
|
52273
|
-
|
|
52450
|
+
hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
|
|
52274
52451
|
if (!useMergedState_hasValue(value)) {
|
|
52275
52452
|
setInnerValue(value);
|
|
52276
52453
|
}
|
|
@@ -52996,55 +53173,55 @@ var KeyCode_KeyCode = {
|
|
|
52996
53173
|
};
|
|
52997
53174
|
/* harmony default export */ var rc_util_es_KeyCode = (KeyCode_KeyCode);
|
|
52998
53175
|
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/raf.js
|
|
52999
|
-
var
|
|
53176
|
+
var rc_util_es_raf_raf = function raf(callback) {
|
|
53000
53177
|
return +setTimeout(callback, 16);
|
|
53001
53178
|
};
|
|
53002
|
-
var
|
|
53179
|
+
var es_raf_caf = function caf(num) {
|
|
53003
53180
|
return clearTimeout(num);
|
|
53004
53181
|
};
|
|
53005
53182
|
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
53006
|
-
|
|
53183
|
+
rc_util_es_raf_raf = function raf(callback) {
|
|
53007
53184
|
return window.requestAnimationFrame(callback);
|
|
53008
53185
|
};
|
|
53009
|
-
|
|
53186
|
+
es_raf_caf = function caf(handle) {
|
|
53010
53187
|
return window.cancelAnimationFrame(handle);
|
|
53011
53188
|
};
|
|
53012
53189
|
}
|
|
53013
|
-
var
|
|
53014
|
-
var
|
|
53015
|
-
function
|
|
53016
|
-
|
|
53190
|
+
var es_raf_rafUUID = 0;
|
|
53191
|
+
var es_raf_rafIds = new Map();
|
|
53192
|
+
function es_raf_cleanup(id) {
|
|
53193
|
+
es_raf_rafIds.delete(id);
|
|
53017
53194
|
}
|
|
53018
|
-
var
|
|
53195
|
+
var rc_util_es_raf_wrapperRaf = function wrapperRaf(callback) {
|
|
53019
53196
|
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
53020
|
-
|
|
53021
|
-
var id =
|
|
53197
|
+
es_raf_rafUUID += 1;
|
|
53198
|
+
var id = es_raf_rafUUID;
|
|
53022
53199
|
function callRef(leftTimes) {
|
|
53023
53200
|
if (leftTimes === 0) {
|
|
53024
53201
|
// Clean up
|
|
53025
|
-
|
|
53202
|
+
es_raf_cleanup(id);
|
|
53026
53203
|
|
|
53027
53204
|
// Trigger
|
|
53028
53205
|
callback();
|
|
53029
53206
|
} else {
|
|
53030
53207
|
// Next raf
|
|
53031
|
-
var realId =
|
|
53208
|
+
var realId = rc_util_es_raf_raf(function () {
|
|
53032
53209
|
callRef(leftTimes - 1);
|
|
53033
53210
|
});
|
|
53034
53211
|
|
|
53035
53212
|
// Bind real raf id
|
|
53036
|
-
|
|
53213
|
+
es_raf_rafIds.set(id, realId);
|
|
53037
53214
|
}
|
|
53038
53215
|
}
|
|
53039
53216
|
callRef(times);
|
|
53040
53217
|
return id;
|
|
53041
53218
|
};
|
|
53042
|
-
|
|
53043
|
-
var realId =
|
|
53044
|
-
|
|
53045
|
-
return
|
|
53219
|
+
rc_util_es_raf_wrapperRaf.cancel = function (id) {
|
|
53220
|
+
var realId = es_raf_rafIds.get(id);
|
|
53221
|
+
es_raf_cleanup(realId);
|
|
53222
|
+
return es_raf_caf(realId);
|
|
53046
53223
|
};
|
|
53047
|
-
/* harmony default export */ var es_raf = (
|
|
53224
|
+
/* harmony default export */ var es_raf = (rc_util_es_raf_wrapperRaf);
|
|
53048
53225
|
;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/Dom/isVisible.js
|
|
53049
53226
|
/* harmony default export */ var Dom_isVisible = (function (element) {
|
|
53050
53227
|
if (!element) {
|
|
@@ -57887,7 +58064,7 @@ function hooks_useEvent_useEvent(callback) {
|
|
|
57887
58064
|
return memoFn;
|
|
57888
58065
|
}
|
|
57889
58066
|
;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/node_modules/rc-util/es/Dom/canUseDom.js
|
|
57890
|
-
function
|
|
58067
|
+
function rc_util_es_Dom_canUseDom_canUseDom() {
|
|
57891
58068
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
57892
58069
|
}
|
|
57893
58070
|
;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/node_modules/rc-util/es/hooks/useLayoutEffect.js
|
|
@@ -57897,8 +58074,8 @@ function es_Dom_canUseDom_canUseDom() {
|
|
|
57897
58074
|
/**
|
|
57898
58075
|
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
57899
58076
|
*/
|
|
57900
|
-
var useInternalLayoutEffect = true &&
|
|
57901
|
-
var
|
|
58077
|
+
var useInternalLayoutEffect = true && rc_util_es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
|
|
58078
|
+
var es_hooks_useLayoutEffect_useLayoutEffect = function useLayoutEffect(callback, deps) {
|
|
57902
58079
|
var firstMountRef = external_react_.useRef(true);
|
|
57903
58080
|
useInternalLayoutEffect(function () {
|
|
57904
58081
|
return callback(firstMountRef.current);
|
|
@@ -57912,14 +58089,14 @@ var hooks_useLayoutEffect_useLayoutEffect = function useLayoutEffect(callback, d
|
|
|
57912
58089
|
};
|
|
57913
58090
|
}, []);
|
|
57914
58091
|
};
|
|
57915
|
-
var
|
|
57916
|
-
|
|
58092
|
+
var es_hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
|
|
58093
|
+
es_hooks_useLayoutEffect_useLayoutEffect(function (firstMount) {
|
|
57917
58094
|
if (!firstMount) {
|
|
57918
58095
|
return callback();
|
|
57919
58096
|
}
|
|
57920
58097
|
}, deps);
|
|
57921
58098
|
};
|
|
57922
|
-
/* harmony default export */ var node_modules_rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (
|
|
58099
|
+
/* harmony default export */ var node_modules_rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (es_hooks_useLayoutEffect_useLayoutEffect)));
|
|
57923
58100
|
;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/node_modules/rc-util/es/hooks/useState.js
|
|
57924
58101
|
|
|
57925
58102
|
|
|
@@ -57928,7 +58105,7 @@ var hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect
|
|
|
57928
58105
|
* We do not make this auto is to avoid real memory leak.
|
|
57929
58106
|
* Developer should confirm it's safe to ignore themselves.
|
|
57930
58107
|
*/
|
|
57931
|
-
function
|
|
58108
|
+
function es_hooks_useState_useSafeState(defaultValue) {
|
|
57932
58109
|
var destroyRef = external_react_.useRef(false);
|
|
57933
58110
|
var _React$useState = external_react_.useState(defaultValue),
|
|
57934
58111
|
_React$useState2 = (0,slicedToArray/* default */.A)(_React$useState, 2),
|
|
@@ -57970,7 +58147,7 @@ function hooks_useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
57970
58147
|
postState = _ref.postState;
|
|
57971
58148
|
|
|
57972
58149
|
// ======================= Init =======================
|
|
57973
|
-
var _useState =
|
|
58150
|
+
var _useState = es_hooks_useState_useSafeState(function () {
|
|
57974
58151
|
if (hooks_useMergedState_hasValue(value)) {
|
|
57975
58152
|
return value;
|
|
57976
58153
|
} else if (hooks_useMergedState_hasValue(defaultValue)) {
|
|
@@ -57987,11 +58164,11 @@ function hooks_useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
57987
58164
|
|
|
57988
58165
|
// ====================== Change ======================
|
|
57989
58166
|
var onChangeFn = hooks_useEvent_useEvent(onChange);
|
|
57990
|
-
var _useState3 =
|
|
58167
|
+
var _useState3 = es_hooks_useState_useSafeState([mergedValue]),
|
|
57991
58168
|
_useState4 = (0,slicedToArray/* default */.A)(_useState3, 2),
|
|
57992
58169
|
prevValue = _useState4[0],
|
|
57993
58170
|
setPrevValue = _useState4[1];
|
|
57994
|
-
|
|
58171
|
+
es_hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
|
|
57995
58172
|
var prev = prevValue[0];
|
|
57996
58173
|
if (innerValue !== prev) {
|
|
57997
58174
|
onChangeFn(innerValue, prev);
|
|
@@ -57999,7 +58176,7 @@ function hooks_useMergedState_useMergedState(defaultStateValue, option) {
|
|
|
57999
58176
|
}, [prevValue]);
|
|
58000
58177
|
|
|
58001
58178
|
// Sync value back to `undefined` when it from control to un-control
|
|
58002
|
-
|
|
58179
|
+
es_hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
|
|
58003
58180
|
if (!hooks_useMergedState_hasValue(value)) {
|
|
58004
58181
|
setInnerValue(value);
|
|
58005
58182
|
}
|
|
@@ -61287,7 +61464,7 @@ var ExtendedButton = function ExtendedButton(props) {
|
|
|
61287
61464
|
rest = extendedButton_objectWithoutProperties(props, extendedButton_excluded);
|
|
61288
61465
|
|
|
61289
61466
|
var buttonClasses = node_modules_classnames_default()("".concat(BUTTON_CLASS_PREFIX, "-extended"), className);
|
|
61290
|
-
return /*#__PURE__*/external_react_default().createElement(
|
|
61467
|
+
return /*#__PURE__*/external_react_default().createElement(Button_Button, extendedButton_extends({}, rest, {
|
|
61291
61468
|
prefixCls: BUTTON_CLASS_PREFIX,
|
|
61292
61469
|
className: buttonClasses
|
|
61293
61470
|
}), /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/external_react_default().createElement("span", {
|
|
@@ -65413,6 +65590,8 @@ Pagination.defaultProps = {
|
|
|
65413
65590
|
/* harmony default export */ var es_Pagination = (Pagination);
|
|
65414
65591
|
;// CONCATENATED MODULE: ../../node_modules/rc-pagination/es/index.js
|
|
65415
65592
|
|
|
65593
|
+
// EXTERNAL MODULE: ../../node_modules/rc-util/es/hooks/useLayoutEffect.js
|
|
65594
|
+
var node_modules_rc_util_es_hooks_useLayoutEffect_0 = __webpack_require__(84238);
|
|
65416
65595
|
// EXTERNAL MODULE: ../../node_modules/rc-util/es/isMobile.js
|
|
65417
65596
|
var es_isMobile = __webpack_require__(26651);
|
|
65418
65597
|
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/hooks/useBaseProps.js
|
|
@@ -65575,76 +65754,587 @@ function pickAttrs(props) {
|
|
|
65575
65754
|
});
|
|
65576
65755
|
return attrs;
|
|
65577
65756
|
}
|
|
65578
|
-
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-
|
|
65757
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/Item.js
|
|
65579
65758
|
|
|
65580
65759
|
|
|
65581
|
-
var TransBtn = function TransBtn(_ref) {
|
|
65582
|
-
var className = _ref.className,
|
|
65583
|
-
customizeIcon = _ref.customizeIcon,
|
|
65584
|
-
customizeIconProps = _ref.customizeIconProps,
|
|
65585
|
-
_onMouseDown = _ref.onMouseDown,
|
|
65586
|
-
onClick = _ref.onClick,
|
|
65587
|
-
children = _ref.children;
|
|
65588
|
-
var icon;
|
|
65589
|
-
if (typeof customizeIcon === 'function') {
|
|
65590
|
-
icon = customizeIcon(customizeIconProps);
|
|
65591
|
-
} else {
|
|
65592
|
-
icon = customizeIcon;
|
|
65593
|
-
}
|
|
65594
|
-
return /*#__PURE__*/external_react_.createElement("span", {
|
|
65595
|
-
className: className,
|
|
65596
|
-
onMouseDown: function onMouseDown(event) {
|
|
65597
|
-
event.preventDefault();
|
|
65598
|
-
if (_onMouseDown) {
|
|
65599
|
-
_onMouseDown(event);
|
|
65600
|
-
}
|
|
65601
|
-
},
|
|
65602
|
-
style: {
|
|
65603
|
-
userSelect: 'none',
|
|
65604
|
-
WebkitUserSelect: 'none'
|
|
65605
|
-
},
|
|
65606
|
-
unselectable: "on",
|
|
65607
|
-
onClick: onClick,
|
|
65608
|
-
"aria-hidden": true
|
|
65609
|
-
}, icon !== undefined ? icon : /*#__PURE__*/external_react_.createElement("span", {
|
|
65610
|
-
className: classnames_default()(className.split(/\s+/).map(function (cls) {
|
|
65611
|
-
return "".concat(cls, "-icon");
|
|
65612
|
-
}))
|
|
65613
|
-
}, children));
|
|
65614
|
-
};
|
|
65615
|
-
/* harmony default export */ var es_TransBtn = (TransBtn);
|
|
65616
|
-
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/Selector/Input.js
|
|
65617
65760
|
|
|
65761
|
+
var es_Item_excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
|
|
65618
65762
|
|
|
65619
65763
|
|
|
65764
|
+
// Use shared variable to save bundle size
|
|
65620
65765
|
|
|
65766
|
+
var Item_UNDEFINED = undefined;
|
|
65621
65767
|
|
|
65622
|
-
|
|
65623
|
-
var
|
|
65624
|
-
|
|
65625
|
-
|
|
65626
|
-
|
|
65627
|
-
|
|
65628
|
-
|
|
65629
|
-
|
|
65630
|
-
|
|
65631
|
-
|
|
65632
|
-
|
|
65633
|
-
|
|
65634
|
-
|
|
65635
|
-
|
|
65636
|
-
|
|
65637
|
-
|
|
65638
|
-
|
|
65639
|
-
|
|
65640
|
-
|
|
65641
|
-
|
|
65642
|
-
|
|
65643
|
-
|
|
65644
|
-
|
|
65645
|
-
|
|
65646
|
-
|
|
65647
|
-
|
|
65768
|
+
function Item_InternalItem(props, ref) {
|
|
65769
|
+
var prefixCls = props.prefixCls,
|
|
65770
|
+
invalidate = props.invalidate,
|
|
65771
|
+
item = props.item,
|
|
65772
|
+
renderItem = props.renderItem,
|
|
65773
|
+
responsive = props.responsive,
|
|
65774
|
+
responsiveDisabled = props.responsiveDisabled,
|
|
65775
|
+
registerSize = props.registerSize,
|
|
65776
|
+
itemKey = props.itemKey,
|
|
65777
|
+
className = props.className,
|
|
65778
|
+
style = props.style,
|
|
65779
|
+
children = props.children,
|
|
65780
|
+
display = props.display,
|
|
65781
|
+
order = props.order,
|
|
65782
|
+
_props$component = props.component,
|
|
65783
|
+
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
65784
|
+
restProps = (0,objectWithoutProperties/* default */.A)(props, es_Item_excluded);
|
|
65785
|
+
|
|
65786
|
+
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
65787
|
+
|
|
65788
|
+
function internalRegisterSize(width) {
|
|
65789
|
+
registerSize(itemKey, width);
|
|
65790
|
+
}
|
|
65791
|
+
|
|
65792
|
+
external_react_.useEffect(function () {
|
|
65793
|
+
return function () {
|
|
65794
|
+
internalRegisterSize(null);
|
|
65795
|
+
};
|
|
65796
|
+
}, []); // ================================ Render ================================
|
|
65797
|
+
|
|
65798
|
+
var childNode = renderItem && item !== Item_UNDEFINED ? renderItem(item) : children;
|
|
65799
|
+
var overflowStyle;
|
|
65800
|
+
|
|
65801
|
+
if (!invalidate) {
|
|
65802
|
+
overflowStyle = {
|
|
65803
|
+
opacity: mergedHidden ? 0 : 1,
|
|
65804
|
+
height: mergedHidden ? 0 : Item_UNDEFINED,
|
|
65805
|
+
overflowY: mergedHidden ? 'hidden' : Item_UNDEFINED,
|
|
65806
|
+
order: responsive ? order : Item_UNDEFINED,
|
|
65807
|
+
pointerEvents: mergedHidden ? 'none' : Item_UNDEFINED,
|
|
65808
|
+
position: mergedHidden ? 'absolute' : Item_UNDEFINED
|
|
65809
|
+
};
|
|
65810
|
+
}
|
|
65811
|
+
|
|
65812
|
+
var overflowProps = {};
|
|
65813
|
+
|
|
65814
|
+
if (mergedHidden) {
|
|
65815
|
+
overflowProps['aria-hidden'] = true;
|
|
65816
|
+
}
|
|
65817
|
+
|
|
65818
|
+
var itemNode = /*#__PURE__*/external_react_.createElement(Component, (0,esm_extends/* default */.A)({
|
|
65819
|
+
className: classnames_default()(!invalidate && prefixCls, className),
|
|
65820
|
+
style: (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, overflowStyle), style)
|
|
65821
|
+
}, overflowProps, restProps, {
|
|
65822
|
+
ref: ref
|
|
65823
|
+
}), childNode);
|
|
65824
|
+
|
|
65825
|
+
if (responsive) {
|
|
65826
|
+
itemNode = /*#__PURE__*/external_react_.createElement(es["default"], {
|
|
65827
|
+
onResize: function onResize(_ref) {
|
|
65828
|
+
var offsetWidth = _ref.offsetWidth;
|
|
65829
|
+
internalRegisterSize(offsetWidth);
|
|
65830
|
+
},
|
|
65831
|
+
disabled: responsiveDisabled
|
|
65832
|
+
}, itemNode);
|
|
65833
|
+
}
|
|
65834
|
+
|
|
65835
|
+
return itemNode;
|
|
65836
|
+
}
|
|
65837
|
+
|
|
65838
|
+
var es_Item_Item = /*#__PURE__*/external_react_.forwardRef(Item_InternalItem);
|
|
65839
|
+
es_Item_Item.displayName = 'Item';
|
|
65840
|
+
/* harmony default export */ var rc_overflow_es_Item = (es_Item_Item);
|
|
65841
|
+
// EXTERNAL MODULE: ../../node_modules/rc-util/es/hooks/useState.js
|
|
65842
|
+
var hooks_useState = __webpack_require__(39348);
|
|
65843
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/hooks/useBatchFrameState.js
|
|
65844
|
+
|
|
65845
|
+
|
|
65846
|
+
|
|
65847
|
+
|
|
65848
|
+
/**
|
|
65849
|
+
* State generate. Return a `setState` but it will flush all state with one render to save perf.
|
|
65850
|
+
* This is not a realization of `unstable_batchedUpdates`.
|
|
65851
|
+
*/
|
|
65852
|
+
|
|
65853
|
+
function useBatchFrameState_useBatchFrameState() {
|
|
65854
|
+
var _useState = (0,hooks_useState/* default */.A)({}),
|
|
65855
|
+
_useState2 = (0,slicedToArray/* default */.A)(_useState, 2),
|
|
65856
|
+
forceUpdate = _useState2[1];
|
|
65857
|
+
|
|
65858
|
+
var statesRef = (0,external_react_.useRef)([]);
|
|
65859
|
+
var walkingIndex = 0;
|
|
65860
|
+
var beforeFrameId = 0;
|
|
65861
|
+
|
|
65862
|
+
function createState(defaultValue) {
|
|
65863
|
+
var myIndex = walkingIndex;
|
|
65864
|
+
walkingIndex += 1; // Fill value if not exist yet
|
|
65865
|
+
|
|
65866
|
+
if (statesRef.current.length < myIndex + 1) {
|
|
65867
|
+
statesRef.current[myIndex] = defaultValue;
|
|
65868
|
+
} // Return filled as `setState`
|
|
65869
|
+
|
|
65870
|
+
|
|
65871
|
+
var value = statesRef.current[myIndex];
|
|
65872
|
+
|
|
65873
|
+
function setValue(val) {
|
|
65874
|
+
statesRef.current[myIndex] = typeof val === 'function' ? val(statesRef.current[myIndex]) : val;
|
|
65875
|
+
raf/* default */.A.cancel(beforeFrameId); // Flush with batch
|
|
65876
|
+
|
|
65877
|
+
beforeFrameId = (0,raf/* default */.A)(function () {
|
|
65878
|
+
forceUpdate({}, true);
|
|
65879
|
+
});
|
|
65880
|
+
}
|
|
65881
|
+
|
|
65882
|
+
return [value, setValue];
|
|
65883
|
+
}
|
|
65884
|
+
|
|
65885
|
+
return createState;
|
|
65886
|
+
}
|
|
65887
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/RawItem.js
|
|
65888
|
+
|
|
65889
|
+
|
|
65890
|
+
var es_RawItem_excluded = ["component"],
|
|
65891
|
+
RawItem_excluded2 = ["className"],
|
|
65892
|
+
RawItem_excluded3 = ["className"];
|
|
65893
|
+
|
|
65894
|
+
|
|
65895
|
+
|
|
65896
|
+
|
|
65897
|
+
|
|
65898
|
+
var RawItem_InternalRawItem = function InternalRawItem(props, ref) {
|
|
65899
|
+
var context = external_react_.useContext(Overflow_OverflowContext); // Render directly when context not provided
|
|
65900
|
+
|
|
65901
|
+
if (!context) {
|
|
65902
|
+
var _props$component = props.component,
|
|
65903
|
+
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
65904
|
+
_restProps = (0,objectWithoutProperties/* default */.A)(props, es_RawItem_excluded);
|
|
65905
|
+
|
|
65906
|
+
return /*#__PURE__*/external_react_.createElement(Component, (0,esm_extends/* default */.A)({}, _restProps, {
|
|
65907
|
+
ref: ref
|
|
65908
|
+
}));
|
|
65909
|
+
}
|
|
65910
|
+
|
|
65911
|
+
var contextClassName = context.className,
|
|
65912
|
+
restContext = (0,objectWithoutProperties/* default */.A)(context, RawItem_excluded2);
|
|
65913
|
+
|
|
65914
|
+
var className = props.className,
|
|
65915
|
+
restProps = (0,objectWithoutProperties/* default */.A)(props, RawItem_excluded3); // Do not pass context to sub item to avoid multiple measure
|
|
65916
|
+
|
|
65917
|
+
|
|
65918
|
+
return /*#__PURE__*/external_react_.createElement(Overflow_OverflowContext.Provider, {
|
|
65919
|
+
value: null
|
|
65920
|
+
}, /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({
|
|
65921
|
+
ref: ref,
|
|
65922
|
+
className: classnames_default()(contextClassName, className)
|
|
65923
|
+
}, restContext, restProps)));
|
|
65924
|
+
};
|
|
65925
|
+
|
|
65926
|
+
var RawItem_RawItem = /*#__PURE__*/external_react_.forwardRef(RawItem_InternalRawItem);
|
|
65927
|
+
RawItem_RawItem.displayName = 'RawItem';
|
|
65928
|
+
/* harmony default export */ var rc_overflow_es_RawItem = (RawItem_RawItem);
|
|
65929
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/Overflow.js
|
|
65930
|
+
|
|
65931
|
+
|
|
65932
|
+
|
|
65933
|
+
|
|
65934
|
+
var es_Overflow_excluded = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
|
|
65935
|
+
|
|
65936
|
+
|
|
65937
|
+
|
|
65938
|
+
|
|
65939
|
+
|
|
65940
|
+
|
|
65941
|
+
|
|
65942
|
+
|
|
65943
|
+
var Overflow_OverflowContext = /*#__PURE__*/external_react_.createContext(null);
|
|
65944
|
+
var Overflow_RESPONSIVE = 'responsive';
|
|
65945
|
+
var Overflow_INVALIDATE = 'invalidate';
|
|
65946
|
+
|
|
65947
|
+
function Overflow_defaultRenderRest(omittedItems) {
|
|
65948
|
+
return "+ ".concat(omittedItems.length, " ...");
|
|
65949
|
+
}
|
|
65950
|
+
|
|
65951
|
+
function Overflow_Overflow(props, ref) {
|
|
65952
|
+
var _props$prefixCls = props.prefixCls,
|
|
65953
|
+
prefixCls = _props$prefixCls === void 0 ? 'rc-overflow' : _props$prefixCls,
|
|
65954
|
+
_props$data = props.data,
|
|
65955
|
+
data = _props$data === void 0 ? [] : _props$data,
|
|
65956
|
+
renderItem = props.renderItem,
|
|
65957
|
+
renderRawItem = props.renderRawItem,
|
|
65958
|
+
itemKey = props.itemKey,
|
|
65959
|
+
_props$itemWidth = props.itemWidth,
|
|
65960
|
+
itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth,
|
|
65961
|
+
ssr = props.ssr,
|
|
65962
|
+
style = props.style,
|
|
65963
|
+
className = props.className,
|
|
65964
|
+
maxCount = props.maxCount,
|
|
65965
|
+
renderRest = props.renderRest,
|
|
65966
|
+
renderRawRest = props.renderRawRest,
|
|
65967
|
+
suffix = props.suffix,
|
|
65968
|
+
_props$component = props.component,
|
|
65969
|
+
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
65970
|
+
itemComponent = props.itemComponent,
|
|
65971
|
+
onVisibleChange = props.onVisibleChange,
|
|
65972
|
+
restProps = (0,objectWithoutProperties/* default */.A)(props, es_Overflow_excluded);
|
|
65973
|
+
|
|
65974
|
+
var createUseState = useBatchFrameState_useBatchFrameState();
|
|
65975
|
+
var fullySSR = ssr === 'full';
|
|
65976
|
+
|
|
65977
|
+
var _createUseState = createUseState(null),
|
|
65978
|
+
_createUseState2 = (0,slicedToArray/* default */.A)(_createUseState, 2),
|
|
65979
|
+
containerWidth = _createUseState2[0],
|
|
65980
|
+
setContainerWidth = _createUseState2[1];
|
|
65981
|
+
|
|
65982
|
+
var mergedContainerWidth = containerWidth || 0;
|
|
65983
|
+
|
|
65984
|
+
var _createUseState3 = createUseState(new Map()),
|
|
65985
|
+
_createUseState4 = (0,slicedToArray/* default */.A)(_createUseState3, 2),
|
|
65986
|
+
itemWidths = _createUseState4[0],
|
|
65987
|
+
setItemWidths = _createUseState4[1];
|
|
65988
|
+
|
|
65989
|
+
var _createUseState5 = createUseState(0),
|
|
65990
|
+
_createUseState6 = (0,slicedToArray/* default */.A)(_createUseState5, 2),
|
|
65991
|
+
prevRestWidth = _createUseState6[0],
|
|
65992
|
+
setPrevRestWidth = _createUseState6[1];
|
|
65993
|
+
|
|
65994
|
+
var _createUseState7 = createUseState(0),
|
|
65995
|
+
_createUseState8 = (0,slicedToArray/* default */.A)(_createUseState7, 2),
|
|
65996
|
+
restWidth = _createUseState8[0],
|
|
65997
|
+
setRestWidth = _createUseState8[1];
|
|
65998
|
+
|
|
65999
|
+
var _createUseState9 = createUseState(0),
|
|
66000
|
+
_createUseState10 = (0,slicedToArray/* default */.A)(_createUseState9, 2),
|
|
66001
|
+
suffixWidth = _createUseState10[0],
|
|
66002
|
+
setSuffixWidth = _createUseState10[1];
|
|
66003
|
+
|
|
66004
|
+
var _useState = (0,external_react_.useState)(null),
|
|
66005
|
+
_useState2 = (0,slicedToArray/* default */.A)(_useState, 2),
|
|
66006
|
+
suffixFixedStart = _useState2[0],
|
|
66007
|
+
setSuffixFixedStart = _useState2[1];
|
|
66008
|
+
|
|
66009
|
+
var _useState3 = (0,external_react_.useState)(null),
|
|
66010
|
+
_useState4 = (0,slicedToArray/* default */.A)(_useState3, 2),
|
|
66011
|
+
displayCount = _useState4[0],
|
|
66012
|
+
setDisplayCount = _useState4[1];
|
|
66013
|
+
|
|
66014
|
+
var mergedDisplayCount = external_react_.useMemo(function () {
|
|
66015
|
+
if (displayCount === null && fullySSR) {
|
|
66016
|
+
return Number.MAX_SAFE_INTEGER;
|
|
66017
|
+
}
|
|
66018
|
+
|
|
66019
|
+
return displayCount || 0;
|
|
66020
|
+
}, [displayCount, containerWidth]);
|
|
66021
|
+
|
|
66022
|
+
var _useState5 = (0,external_react_.useState)(false),
|
|
66023
|
+
_useState6 = (0,slicedToArray/* default */.A)(_useState5, 2),
|
|
66024
|
+
restReady = _useState6[0],
|
|
66025
|
+
setRestReady = _useState6[1];
|
|
66026
|
+
|
|
66027
|
+
var itemPrefixCls = "".concat(prefixCls, "-item"); // Always use the max width to avoid blink
|
|
66028
|
+
|
|
66029
|
+
var mergedRestWidth = Math.max(prevRestWidth, restWidth); // ================================= Data =================================
|
|
66030
|
+
|
|
66031
|
+
var isResponsive = maxCount === Overflow_RESPONSIVE;
|
|
66032
|
+
var shouldResponsive = data.length && isResponsive;
|
|
66033
|
+
var invalidate = maxCount === Overflow_INVALIDATE;
|
|
66034
|
+
/**
|
|
66035
|
+
* When is `responsive`, we will always render rest node to get the real width of it for calculation
|
|
66036
|
+
*/
|
|
66037
|
+
|
|
66038
|
+
var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
|
|
66039
|
+
var mergedData = (0,external_react_.useMemo)(function () {
|
|
66040
|
+
var items = data;
|
|
66041
|
+
|
|
66042
|
+
if (shouldResponsive) {
|
|
66043
|
+
if (containerWidth === null && fullySSR) {
|
|
66044
|
+
items = data;
|
|
66045
|
+
} else {
|
|
66046
|
+
items = data.slice(0, Math.min(data.length, mergedContainerWidth / itemWidth));
|
|
66047
|
+
}
|
|
66048
|
+
} else if (typeof maxCount === 'number') {
|
|
66049
|
+
items = data.slice(0, maxCount);
|
|
66050
|
+
}
|
|
66051
|
+
|
|
66052
|
+
return items;
|
|
66053
|
+
}, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
|
|
66054
|
+
var omittedItems = (0,external_react_.useMemo)(function () {
|
|
66055
|
+
if (shouldResponsive) {
|
|
66056
|
+
return data.slice(mergedDisplayCount + 1);
|
|
66057
|
+
}
|
|
66058
|
+
|
|
66059
|
+
return data.slice(mergedData.length);
|
|
66060
|
+
}, [data, mergedData, shouldResponsive, mergedDisplayCount]); // ================================= Item =================================
|
|
66061
|
+
|
|
66062
|
+
var getKey = (0,external_react_.useCallback)(function (item, index) {
|
|
66063
|
+
var _ref;
|
|
66064
|
+
|
|
66065
|
+
if (typeof itemKey === 'function') {
|
|
66066
|
+
return itemKey(item);
|
|
66067
|
+
}
|
|
66068
|
+
|
|
66069
|
+
return (_ref = itemKey && (item === null || item === void 0 ? void 0 : item[itemKey])) !== null && _ref !== void 0 ? _ref : index;
|
|
66070
|
+
}, [itemKey]);
|
|
66071
|
+
var mergedRenderItem = (0,external_react_.useCallback)(renderItem || function (item) {
|
|
66072
|
+
return item;
|
|
66073
|
+
}, [renderItem]);
|
|
66074
|
+
|
|
66075
|
+
function updateDisplayCount(count, suffixFixedStartVal, notReady) {
|
|
66076
|
+
// React 18 will sync render even when the value is same in some case.
|
|
66077
|
+
// We take `mergedData` as deps which may cause dead loop if it's dynamic generate.
|
|
66078
|
+
// ref: https://github.com/ant-design/ant-design/issues/36559
|
|
66079
|
+
if (displayCount === count && (suffixFixedStartVal === undefined || suffixFixedStartVal === suffixFixedStart)) {
|
|
66080
|
+
return;
|
|
66081
|
+
}
|
|
66082
|
+
|
|
66083
|
+
setDisplayCount(count);
|
|
66084
|
+
|
|
66085
|
+
if (!notReady) {
|
|
66086
|
+
setRestReady(count < data.length - 1);
|
|
66087
|
+
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(count);
|
|
66088
|
+
}
|
|
66089
|
+
|
|
66090
|
+
if (suffixFixedStartVal !== undefined) {
|
|
66091
|
+
setSuffixFixedStart(suffixFixedStartVal);
|
|
66092
|
+
}
|
|
66093
|
+
} // ================================= Size =================================
|
|
66094
|
+
|
|
66095
|
+
|
|
66096
|
+
function onOverflowResize(_, element) {
|
|
66097
|
+
setContainerWidth(element.clientWidth);
|
|
66098
|
+
}
|
|
66099
|
+
|
|
66100
|
+
function registerSize(key, width) {
|
|
66101
|
+
setItemWidths(function (origin) {
|
|
66102
|
+
var clone = new Map(origin);
|
|
66103
|
+
|
|
66104
|
+
if (width === null) {
|
|
66105
|
+
clone.delete(key);
|
|
66106
|
+
} else {
|
|
66107
|
+
clone.set(key, width);
|
|
66108
|
+
}
|
|
66109
|
+
|
|
66110
|
+
return clone;
|
|
66111
|
+
});
|
|
66112
|
+
}
|
|
66113
|
+
|
|
66114
|
+
function registerOverflowSize(_, width) {
|
|
66115
|
+
setRestWidth(width);
|
|
66116
|
+
setPrevRestWidth(restWidth);
|
|
66117
|
+
}
|
|
66118
|
+
|
|
66119
|
+
function registerSuffixSize(_, width) {
|
|
66120
|
+
setSuffixWidth(width);
|
|
66121
|
+
} // ================================ Effect ================================
|
|
66122
|
+
|
|
66123
|
+
|
|
66124
|
+
function getItemWidth(index) {
|
|
66125
|
+
return itemWidths.get(getKey(mergedData[index], index));
|
|
66126
|
+
}
|
|
66127
|
+
|
|
66128
|
+
(0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
|
|
66129
|
+
if (mergedContainerWidth && mergedRestWidth && mergedData) {
|
|
66130
|
+
var totalWidth = suffixWidth;
|
|
66131
|
+
var len = mergedData.length;
|
|
66132
|
+
var lastIndex = len - 1; // When data count change to 0, reset this since not loop will reach
|
|
66133
|
+
|
|
66134
|
+
if (!len) {
|
|
66135
|
+
updateDisplayCount(0, null);
|
|
66136
|
+
return;
|
|
66137
|
+
}
|
|
66138
|
+
|
|
66139
|
+
for (var i = 0; i < len; i += 1) {
|
|
66140
|
+
var currentItemWidth = getItemWidth(i); // Fully will always render
|
|
66141
|
+
|
|
66142
|
+
if (fullySSR) {
|
|
66143
|
+
currentItemWidth = currentItemWidth || 0;
|
|
66144
|
+
} // Break since data not ready
|
|
66145
|
+
|
|
66146
|
+
|
|
66147
|
+
if (currentItemWidth === undefined) {
|
|
66148
|
+
updateDisplayCount(i - 1, undefined, true);
|
|
66149
|
+
break;
|
|
66150
|
+
} // Find best match
|
|
66151
|
+
|
|
66152
|
+
|
|
66153
|
+
totalWidth += currentItemWidth;
|
|
66154
|
+
|
|
66155
|
+
if ( // Only one means `totalWidth` is the final width
|
|
66156
|
+
lastIndex === 0 && totalWidth <= mergedContainerWidth || // Last two width will be the final width
|
|
66157
|
+
i === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= mergedContainerWidth) {
|
|
66158
|
+
// Additional check if match the end
|
|
66159
|
+
updateDisplayCount(lastIndex, null);
|
|
66160
|
+
break;
|
|
66161
|
+
} else if (totalWidth + mergedRestWidth > mergedContainerWidth) {
|
|
66162
|
+
// Can not hold all the content to show rest
|
|
66163
|
+
updateDisplayCount(i - 1, totalWidth - currentItemWidth - suffixWidth + restWidth);
|
|
66164
|
+
break;
|
|
66165
|
+
}
|
|
66166
|
+
}
|
|
66167
|
+
|
|
66168
|
+
if (suffix && getItemWidth(0) + suffixWidth > mergedContainerWidth) {
|
|
66169
|
+
setSuffixFixedStart(null);
|
|
66170
|
+
}
|
|
66171
|
+
}
|
|
66172
|
+
}, [mergedContainerWidth, itemWidths, restWidth, suffixWidth, getKey, mergedData]); // ================================ Render ================================
|
|
66173
|
+
|
|
66174
|
+
var displayRest = restReady && !!omittedItems.length;
|
|
66175
|
+
var suffixStyle = {};
|
|
66176
|
+
|
|
66177
|
+
if (suffixFixedStart !== null && shouldResponsive) {
|
|
66178
|
+
suffixStyle = {
|
|
66179
|
+
position: 'absolute',
|
|
66180
|
+
left: suffixFixedStart,
|
|
66181
|
+
top: 0
|
|
66182
|
+
};
|
|
66183
|
+
}
|
|
66184
|
+
|
|
66185
|
+
var itemSharedProps = {
|
|
66186
|
+
prefixCls: itemPrefixCls,
|
|
66187
|
+
responsive: shouldResponsive,
|
|
66188
|
+
component: itemComponent,
|
|
66189
|
+
invalidate: invalidate
|
|
66190
|
+
}; // >>>>> Choice render fun by `renderRawItem`
|
|
66191
|
+
|
|
66192
|
+
var internalRenderItemNode = renderRawItem ? function (item, index) {
|
|
66193
|
+
var key = getKey(item, index);
|
|
66194
|
+
return /*#__PURE__*/external_react_.createElement(Overflow_OverflowContext.Provider, {
|
|
66195
|
+
key: key,
|
|
66196
|
+
value: (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, itemSharedProps), {}, {
|
|
66197
|
+
order: index,
|
|
66198
|
+
item: item,
|
|
66199
|
+
itemKey: key,
|
|
66200
|
+
registerSize: registerSize,
|
|
66201
|
+
display: index <= mergedDisplayCount
|
|
66202
|
+
})
|
|
66203
|
+
}, renderRawItem(item, index));
|
|
66204
|
+
} : function (item, index) {
|
|
66205
|
+
var key = getKey(item, index);
|
|
66206
|
+
return /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({}, itemSharedProps, {
|
|
66207
|
+
order: index,
|
|
66208
|
+
key: key,
|
|
66209
|
+
item: item,
|
|
66210
|
+
renderItem: mergedRenderItem,
|
|
66211
|
+
itemKey: key,
|
|
66212
|
+
registerSize: registerSize,
|
|
66213
|
+
display: index <= mergedDisplayCount
|
|
66214
|
+
}));
|
|
66215
|
+
}; // >>>>> Rest node
|
|
66216
|
+
|
|
66217
|
+
var restNode;
|
|
66218
|
+
var restContextProps = {
|
|
66219
|
+
order: displayRest ? mergedDisplayCount : Number.MAX_SAFE_INTEGER,
|
|
66220
|
+
className: "".concat(itemPrefixCls, "-rest"),
|
|
66221
|
+
registerSize: registerOverflowSize,
|
|
66222
|
+
display: displayRest
|
|
66223
|
+
};
|
|
66224
|
+
|
|
66225
|
+
if (!renderRawRest) {
|
|
66226
|
+
var mergedRenderRest = renderRest || Overflow_defaultRenderRest;
|
|
66227
|
+
restNode = /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
66228
|
+
} else if (renderRawRest) {
|
|
66229
|
+
restNode = /*#__PURE__*/external_react_.createElement(Overflow_OverflowContext.Provider, {
|
|
66230
|
+
value: (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, itemSharedProps), restContextProps)
|
|
66231
|
+
}, renderRawRest(omittedItems));
|
|
66232
|
+
}
|
|
66233
|
+
|
|
66234
|
+
var overflowNode = /*#__PURE__*/external_react_.createElement(Component, (0,esm_extends/* default */.A)({
|
|
66235
|
+
className: classnames_default()(!invalidate && prefixCls, className),
|
|
66236
|
+
style: style,
|
|
66237
|
+
ref: ref
|
|
66238
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({}, itemSharedProps, {
|
|
66239
|
+
responsive: isResponsive,
|
|
66240
|
+
responsiveDisabled: !shouldResponsive,
|
|
66241
|
+
order: mergedDisplayCount,
|
|
66242
|
+
className: "".concat(itemPrefixCls, "-suffix"),
|
|
66243
|
+
registerSize: registerSuffixSize,
|
|
66244
|
+
display: true,
|
|
66245
|
+
style: suffixStyle
|
|
66246
|
+
}), suffix));
|
|
66247
|
+
|
|
66248
|
+
if (isResponsive) {
|
|
66249
|
+
overflowNode = /*#__PURE__*/external_react_.createElement(es["default"], {
|
|
66250
|
+
onResize: onOverflowResize,
|
|
66251
|
+
disabled: !shouldResponsive
|
|
66252
|
+
}, overflowNode);
|
|
66253
|
+
}
|
|
66254
|
+
|
|
66255
|
+
return overflowNode;
|
|
66256
|
+
}
|
|
66257
|
+
|
|
66258
|
+
var Overflow_ForwardOverflow = /*#__PURE__*/external_react_.forwardRef(Overflow_Overflow);
|
|
66259
|
+
Overflow_ForwardOverflow.displayName = 'Overflow';
|
|
66260
|
+
Overflow_ForwardOverflow.Item = rc_overflow_es_RawItem;
|
|
66261
|
+
Overflow_ForwardOverflow.RESPONSIVE = Overflow_RESPONSIVE;
|
|
66262
|
+
Overflow_ForwardOverflow.INVALIDATE = Overflow_INVALIDATE; // Convert to generic type
|
|
66263
|
+
|
|
66264
|
+
/* harmony default export */ var rc_overflow_es_Overflow = (Overflow_ForwardOverflow);
|
|
66265
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/index.js
|
|
66266
|
+
|
|
66267
|
+
/* harmony default export */ var node_modules_rc_overflow_es = (rc_overflow_es_Overflow);
|
|
66268
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/TransBtn.js
|
|
66269
|
+
|
|
66270
|
+
|
|
66271
|
+
var TransBtn = function TransBtn(_ref) {
|
|
66272
|
+
var className = _ref.className,
|
|
66273
|
+
customizeIcon = _ref.customizeIcon,
|
|
66274
|
+
customizeIconProps = _ref.customizeIconProps,
|
|
66275
|
+
_onMouseDown = _ref.onMouseDown,
|
|
66276
|
+
onClick = _ref.onClick,
|
|
66277
|
+
children = _ref.children;
|
|
66278
|
+
var icon;
|
|
66279
|
+
if (typeof customizeIcon === 'function') {
|
|
66280
|
+
icon = customizeIcon(customizeIconProps);
|
|
66281
|
+
} else {
|
|
66282
|
+
icon = customizeIcon;
|
|
66283
|
+
}
|
|
66284
|
+
return /*#__PURE__*/external_react_.createElement("span", {
|
|
66285
|
+
className: className,
|
|
66286
|
+
onMouseDown: function onMouseDown(event) {
|
|
66287
|
+
event.preventDefault();
|
|
66288
|
+
if (_onMouseDown) {
|
|
66289
|
+
_onMouseDown(event);
|
|
66290
|
+
}
|
|
66291
|
+
},
|
|
66292
|
+
style: {
|
|
66293
|
+
userSelect: 'none',
|
|
66294
|
+
WebkitUserSelect: 'none'
|
|
66295
|
+
},
|
|
66296
|
+
unselectable: "on",
|
|
66297
|
+
onClick: onClick,
|
|
66298
|
+
"aria-hidden": true
|
|
66299
|
+
}, icon !== undefined ? icon : /*#__PURE__*/external_react_.createElement("span", {
|
|
66300
|
+
className: classnames_default()(className.split(/\s+/).map(function (cls) {
|
|
66301
|
+
return "".concat(cls, "-icon");
|
|
66302
|
+
}))
|
|
66303
|
+
}, children));
|
|
66304
|
+
};
|
|
66305
|
+
/* harmony default export */ var es_TransBtn = (TransBtn);
|
|
66306
|
+
;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/Selector/Input.js
|
|
66307
|
+
|
|
66308
|
+
|
|
66309
|
+
|
|
66310
|
+
|
|
66311
|
+
|
|
66312
|
+
var Selector_Input_Input = function Input(_ref, ref) {
|
|
66313
|
+
var _inputNode2, _inputNode2$props;
|
|
66314
|
+
var prefixCls = _ref.prefixCls,
|
|
66315
|
+
id = _ref.id,
|
|
66316
|
+
inputElement = _ref.inputElement,
|
|
66317
|
+
disabled = _ref.disabled,
|
|
66318
|
+
tabIndex = _ref.tabIndex,
|
|
66319
|
+
autoFocus = _ref.autoFocus,
|
|
66320
|
+
autoComplete = _ref.autoComplete,
|
|
66321
|
+
editable = _ref.editable,
|
|
66322
|
+
activeDescendantId = _ref.activeDescendantId,
|
|
66323
|
+
value = _ref.value,
|
|
66324
|
+
maxLength = _ref.maxLength,
|
|
66325
|
+
_onKeyDown = _ref.onKeyDown,
|
|
66326
|
+
_onMouseDown = _ref.onMouseDown,
|
|
66327
|
+
_onChange = _ref.onChange,
|
|
66328
|
+
onPaste = _ref.onPaste,
|
|
66329
|
+
_onCompositionStart = _ref.onCompositionStart,
|
|
66330
|
+
_onCompositionEnd = _ref.onCompositionEnd,
|
|
66331
|
+
open = _ref.open,
|
|
66332
|
+
attrs = _ref.attrs;
|
|
66333
|
+
var inputNode = inputElement || /*#__PURE__*/external_react_.createElement("input", null);
|
|
66334
|
+
var _inputNode = inputNode,
|
|
66335
|
+
originRef = _inputNode.ref,
|
|
66336
|
+
originProps = _inputNode.props;
|
|
66337
|
+
var onOriginKeyDown = originProps.onKeyDown,
|
|
65648
66338
|
onOriginChange = originProps.onChange,
|
|
65649
66339
|
onOriginMouseDown = originProps.onMouseDown,
|
|
65650
66340
|
onOriginCompositionStart = originProps.onCompositionStart,
|
|
@@ -65751,7 +66441,7 @@ function getTitle(item) {
|
|
|
65751
66441
|
/**
|
|
65752
66442
|
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
65753
66443
|
*/
|
|
65754
|
-
function
|
|
66444
|
+
function rc_select_es_hooks_useLayoutEffect_useLayoutEffect(effect, deps) {
|
|
65755
66445
|
// Never happen in test env
|
|
65756
66446
|
if (isBrowserClient) {
|
|
65757
66447
|
/* istanbul ignore next */
|
|
@@ -65829,7 +66519,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
65829
66519
|
var inputEditable = mode === 'tags' || mode === "multiple" && autoClearSearchValue === false || showSearch && (open || focused);
|
|
65830
66520
|
|
|
65831
66521
|
// We measure width and set to the input immediately
|
|
65832
|
-
|
|
66522
|
+
rc_select_es_hooks_useLayoutEffect_useLayoutEffect(function () {
|
|
65833
66523
|
setInputWidth(measureRef.current.scrollWidth);
|
|
65834
66524
|
}, [inputValue]);
|
|
65835
66525
|
|
|
@@ -65929,7 +66619,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
65929
66619
|
}, inputValue, "\xA0"));
|
|
65930
66620
|
|
|
65931
66621
|
// >>> Selections
|
|
65932
|
-
var selectionNode = /*#__PURE__*/external_react_.createElement(
|
|
66622
|
+
var selectionNode = /*#__PURE__*/external_react_.createElement(node_modules_rc_overflow_es, {
|
|
65933
66623
|
prefixCls: "".concat(selectionPrefixCls, "-overflow"),
|
|
65934
66624
|
data: values,
|
|
65935
66625
|
renderItem: renderItem,
|
|
@@ -66873,7 +67563,7 @@ var BaseSelect = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
|
|
|
66873
67563
|
function onPopupMouseEnter() {
|
|
66874
67564
|
forceUpdate({});
|
|
66875
67565
|
}
|
|
66876
|
-
(0,
|
|
67566
|
+
(0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
|
|
66877
67567
|
if (triggerOpen) {
|
|
66878
67568
|
var _containerRef$current;
|
|
66879
67569
|
var newWidth = Math.ceil((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetWidth);
|
|
@@ -67653,7 +68343,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
67653
68343
|
|
|
67654
68344
|
;// CONCATENATED MODULE: ../../node_modules/rc-virtual-list/es/Item.js
|
|
67655
68345
|
|
|
67656
|
-
function
|
|
68346
|
+
function rc_virtual_list_es_Item_Item(_ref) {
|
|
67657
68347
|
var children = _ref.children,
|
|
67658
68348
|
setRef = _ref.setRef;
|
|
67659
68349
|
var refFunc = external_react_.useCallback(function (node) {
|
|
@@ -67673,7 +68363,7 @@ function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
|
|
|
67673
68363
|
var node = renderFunc(item, eleIndex, {// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
|
|
67674
68364
|
});
|
|
67675
68365
|
var key = getKey(item);
|
|
67676
|
-
return /*#__PURE__*/external_react_.createElement(
|
|
68366
|
+
return /*#__PURE__*/external_react_.createElement(rc_virtual_list_es_Item_Item, {
|
|
67677
68367
|
key: key,
|
|
67678
68368
|
setRef: function setRef(ele) {
|
|
67679
68369
|
return setNodeRef(item, ele);
|
|
@@ -68175,7 +68865,7 @@ function useMobileTouchMove(inVirtual, listRef, callback) {
|
|
|
68175
68865
|
}
|
|
68176
68866
|
};
|
|
68177
68867
|
|
|
68178
|
-
(0,
|
|
68868
|
+
(0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
|
|
68179
68869
|
if (inVirtual) {
|
|
68180
68870
|
listRef.current.addEventListener('touchstart', onTouchStart);
|
|
68181
68871
|
}
|
|
@@ -68465,7 +69155,7 @@ function RawList(props, ref) {
|
|
|
68465
69155
|
});
|
|
68466
69156
|
return true;
|
|
68467
69157
|
});
|
|
68468
|
-
(0,
|
|
69158
|
+
(0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
|
|
68469
69159
|
// Firefox only
|
|
68470
69160
|
function onMozMousePixelScroll(e) {
|
|
68471
69161
|
if (useVirtual) {
|
|
@@ -68498,7 +69188,7 @@ function RawList(props, ref) {
|
|
|
68498
69188
|
|
|
68499
69189
|
/** We need told outside that some list not rendered */
|
|
68500
69190
|
|
|
68501
|
-
(0,
|
|
69191
|
+
(0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
|
|
68502
69192
|
if (onVisibleChange) {
|
|
68503
69193
|
var renderList = mergedData.slice(start, end + 1);
|
|
68504
69194
|
onVisibleChange(renderList, mergedData);
|
|
@@ -70196,7 +70886,7 @@ var Item_Meta = function Meta(_a) {
|
|
|
70196
70886
|
className: "".concat(prefixCls, "-item-meta-avatar")
|
|
70197
70887
|
}, avatar), (title || description) && content);
|
|
70198
70888
|
};
|
|
70199
|
-
var
|
|
70889
|
+
var list_Item_InternalItem = function InternalItem(_a, ref) {
|
|
70200
70890
|
var customizePrefixCls = _a.prefixCls,
|
|
70201
70891
|
children = _a.children,
|
|
70202
70892
|
actions = _a.actions,
|
|
@@ -70259,7 +70949,7 @@ var Item_InternalItem = function InternalItem(_a, ref) {
|
|
|
70259
70949
|
style: colStyle
|
|
70260
70950
|
}, itemChildren) : itemChildren;
|
|
70261
70951
|
};
|
|
70262
|
-
var list_Item_Item = /*#__PURE__*/(0,external_react_.forwardRef)(
|
|
70952
|
+
var list_Item_Item = /*#__PURE__*/(0,external_react_.forwardRef)(list_Item_InternalItem);
|
|
70263
70953
|
list_Item_Item.Meta = Item_Meta;
|
|
70264
70954
|
/* harmony default export */ var list_Item = (list_Item_Item);
|
|
70265
70955
|
;// CONCATENATED MODULE: ../../node_modules/antd/es/list/index.js
|
|
@@ -71785,7 +72475,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
71785
72475
|
};
|
|
71786
72476
|
/* harmony default export */ var _util_ActionButton = (ActionButton);
|
|
71787
72477
|
;// CONCATENATED MODULE: ../../node_modules/@rc-component/portal/node_modules/rc-util/es/Dom/canUseDom.js
|
|
71788
|
-
function
|
|
72478
|
+
function node_modules_rc_util_es_Dom_canUseDom_canUseDom() {
|
|
71789
72479
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
71790
72480
|
}
|
|
71791
72481
|
;// CONCATENATED MODULE: ../../node_modules/@rc-component/portal/node_modules/rc-util/es/hooks/useMemo.js
|
|
@@ -71875,9 +72565,9 @@ var OrderContext = /*#__PURE__*/external_react_.createContext(null);
|
|
|
71875
72565
|
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
71876
72566
|
*/
|
|
71877
72567
|
|
|
71878
|
-
var rc_util_es_hooks_useLayoutEffect_useLayoutEffect = true &&
|
|
72568
|
+
var rc_util_es_hooks_useLayoutEffect_useLayoutEffect = true && node_modules_rc_util_es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
|
|
71879
72569
|
/* harmony default export */ var portal_node_modules_rc_util_es_hooks_useLayoutEffect = (rc_util_es_hooks_useLayoutEffect_useLayoutEffect);
|
|
71880
|
-
var
|
|
72570
|
+
var rc_util_es_hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
|
|
71881
72571
|
var firstMountRef = React.useRef(true);
|
|
71882
72572
|
rc_util_es_hooks_useLayoutEffect_useLayoutEffect(function () {
|
|
71883
72573
|
if (!firstMountRef.current) {
|
|
@@ -71907,7 +72597,7 @@ var useDom_EMPTY_LIST = [];
|
|
|
71907
72597
|
|
|
71908
72598
|
function useDom(render, debug) {
|
|
71909
72599
|
var _React$useState = external_react_.useState(function () {
|
|
71910
|
-
if (!
|
|
72600
|
+
if (!node_modules_rc_util_es_Dom_canUseDom_canUseDom()) {
|
|
71911
72601
|
return null;
|
|
71912
72602
|
}
|
|
71913
72603
|
|
|
@@ -72043,7 +72733,7 @@ function findStyles(container) {
|
|
|
72043
72733
|
function dynamicCSS_injectCSS(css) {
|
|
72044
72734
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
72045
72735
|
|
|
72046
|
-
if (!
|
|
72736
|
+
if (!node_modules_rc_util_es_Dom_canUseDom_canUseDom()) {
|
|
72047
72737
|
return null;
|
|
72048
72738
|
}
|
|
72049
72739
|
|
|
@@ -72266,7 +72956,7 @@ var getPortalContainer = function getPortalContainer(getContainer) {
|
|
|
72266
72956
|
return false;
|
|
72267
72957
|
}
|
|
72268
72958
|
|
|
72269
|
-
if (!
|
|
72959
|
+
if (!node_modules_rc_util_es_Dom_canUseDom_canUseDom() || !getContainer) {
|
|
72270
72960
|
return null;
|
|
72271
72961
|
}
|
|
72272
72962
|
|
|
@@ -72323,7 +73013,7 @@ var Portal = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
|
|
|
72323
73013
|
|
|
72324
73014
|
var mergedContainer = innerContainer !== null && innerContainer !== void 0 ? innerContainer : defaultContainer; // ========================= Locker ==========================
|
|
72325
73015
|
|
|
72326
|
-
useScrollLocker(autoLock && open &&
|
|
73016
|
+
useScrollLocker(autoLock && open && node_modules_rc_util_es_Dom_canUseDom_canUseDom() && (mergedContainer === defaultContainer || mergedContainer === document.body)); // =========================== Ref ===========================
|
|
72327
73017
|
|
|
72328
73018
|
var childRef = null;
|
|
72329
73019
|
|
|
@@ -72336,7 +73026,7 @@ var Portal = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
|
|
|
72336
73026
|
// Do not render when nothing need render
|
|
72337
73027
|
// When innerContainer is `undefined`, it may not ready since user use ref in the same render
|
|
72338
73028
|
|
|
72339
|
-
if (!mergedRender || !
|
|
73029
|
+
if (!mergedRender || !node_modules_rc_util_es_Dom_canUseDom_canUseDom() || innerContainer === undefined) {
|
|
72340
73030
|
return null;
|
|
72341
73031
|
} // Render inline
|
|
72342
73032
|
|
|
@@ -74279,6 +74969,7 @@ var select_OptGroup = es_select.OptGroup;
|
|
|
74279
74969
|
* It may work with multiple values, but it is not specified in the interface.
|
|
74280
74970
|
*/
|
|
74281
74971
|
|
|
74972
|
+
// TODO(DOMA-8757): default props autoClearSearchValue = false. Multi select search should not reset after selection
|
|
74282
74973
|
var Select_select_Select = function Select(props) {
|
|
74283
74974
|
var _classNames;
|
|
74284
74975
|
|