@gobolt/genesis 0.4.22 → 0.4.23
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/InputAddon/InputAddon.d.ts +17 -0
- package/dist/components/InputAddon/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +514 -390
- package/dist/index.js +514 -390
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6015,23 +6015,23 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
6015
6015
|
setStatus(STATUS_NONE);
|
|
6016
6016
|
setStyle(null, true);
|
|
6017
6017
|
}
|
|
6018
|
-
var onInternalMotionEnd = useEvent(function(
|
|
6018
|
+
var onInternalMotionEnd = useEvent(function(event2) {
|
|
6019
6019
|
var status = getStatus2();
|
|
6020
6020
|
if (status === STATUS_NONE) {
|
|
6021
6021
|
return;
|
|
6022
6022
|
}
|
|
6023
6023
|
var element2 = getDomElement();
|
|
6024
|
-
if (
|
|
6024
|
+
if (event2 && !event2.deadline && event2.target !== element2) {
|
|
6025
6025
|
return;
|
|
6026
6026
|
}
|
|
6027
6027
|
var currentActive = activeRef.current;
|
|
6028
6028
|
var canEnd;
|
|
6029
6029
|
if (status === STATUS_APPEAR && currentActive) {
|
|
6030
|
-
canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element2,
|
|
6030
|
+
canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element2, event2);
|
|
6031
6031
|
} else if (status === STATUS_ENTER && currentActive) {
|
|
6032
|
-
canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element2,
|
|
6032
|
+
canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element2, event2);
|
|
6033
6033
|
} else if (status === STATUS_LEAVE && currentActive) {
|
|
6034
|
-
canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element2,
|
|
6034
|
+
canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element2, event2);
|
|
6035
6035
|
}
|
|
6036
6036
|
if (currentActive && canEnd !== false) {
|
|
6037
6037
|
updateMotionEndStatus();
|
|
@@ -8234,7 +8234,7 @@ const getRealHeight = (node2) => {
|
|
|
8234
8234
|
const getCurrentHeight = (node2) => ({
|
|
8235
8235
|
height: node2 ? node2.offsetHeight : 0
|
|
8236
8236
|
});
|
|
8237
|
-
const skipOpacityTransition = (_,
|
|
8237
|
+
const skipOpacityTransition = (_, event2) => (event2 === null || event2 === void 0 ? void 0 : event2.deadline) === true || event2.propertyName === "height";
|
|
8238
8238
|
const initCollapseMotion = (rootCls = defaultPrefixCls) => ({
|
|
8239
8239
|
motionName: `${rootCls}-motion-collapse`,
|
|
8240
8240
|
onAppearStart: getCollapsedHeight,
|
|
@@ -8407,9 +8407,9 @@ const WaveEffect = (props) => {
|
|
|
8407
8407
|
motionAppear: true,
|
|
8408
8408
|
motionName: "wave-motion",
|
|
8409
8409
|
motionDeadline: 5e3,
|
|
8410
|
-
onAppearEnd: (_,
|
|
8410
|
+
onAppearEnd: (_, event2) => {
|
|
8411
8411
|
var _a, _b;
|
|
8412
|
-
if (
|
|
8412
|
+
if (event2.deadline || event2.propertyName === "opacity") {
|
|
8413
8413
|
const holder = (_a = divRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
8414
8414
|
(_b = unmountRef.current) === null || _b === void 0 ? void 0 : _b.call(unmountRef).then(() => {
|
|
8415
8415
|
holder === null || holder === void 0 ? void 0 : holder.remove();
|
|
@@ -8455,7 +8455,7 @@ const useWave = (nodeRef, className, component) => {
|
|
|
8455
8455
|
wave
|
|
8456
8456
|
} = React.useContext(ConfigContext);
|
|
8457
8457
|
const [, token2, hashId] = useToken();
|
|
8458
|
-
const showWave = useEvent((
|
|
8458
|
+
const showWave = useEvent((event2) => {
|
|
8459
8459
|
const node2 = nodeRef.current;
|
|
8460
8460
|
if ((wave === null || wave === void 0 ? void 0 : wave.disabled) || !node2) {
|
|
8461
8461
|
return;
|
|
@@ -8468,15 +8468,15 @@ const useWave = (nodeRef, className, component) => {
|
|
|
8468
8468
|
className,
|
|
8469
8469
|
token: token2,
|
|
8470
8470
|
component,
|
|
8471
|
-
event,
|
|
8471
|
+
event: event2,
|
|
8472
8472
|
hashId
|
|
8473
8473
|
});
|
|
8474
8474
|
});
|
|
8475
8475
|
const rafId = React.useRef(null);
|
|
8476
|
-
const showDebounceWave = (
|
|
8476
|
+
const showDebounceWave = (event2) => {
|
|
8477
8477
|
wrapperRaf.cancel(rafId.current);
|
|
8478
8478
|
rafId.current = wrapperRaf(() => {
|
|
8479
|
-
showWave(
|
|
8479
|
+
showWave(event2);
|
|
8480
8480
|
});
|
|
8481
8481
|
};
|
|
8482
8482
|
return showDebounceWave;
|
|
@@ -12811,11 +12811,11 @@ function isSimilar(source, target) {
|
|
|
12811
12811
|
});
|
|
12812
12812
|
}
|
|
12813
12813
|
function defaultGetValueFromEvent(valuePropName) {
|
|
12814
|
-
var
|
|
12815
|
-
if (
|
|
12816
|
-
return
|
|
12814
|
+
var event2 = arguments.length <= 1 ? void 0 : arguments[1];
|
|
12815
|
+
if (event2 && event2.target && _typeof(event2.target) === "object" && valuePropName in event2.target) {
|
|
12816
|
+
return event2.target[valuePropName];
|
|
12817
12817
|
}
|
|
12818
|
-
return
|
|
12818
|
+
return event2;
|
|
12819
12819
|
}
|
|
12820
12820
|
function move(array4, moveIndex, toIndex) {
|
|
12821
12821
|
var length2 = array4.length;
|
|
@@ -14403,16 +14403,16 @@ var Form$4 = function Form(_ref, ref) {
|
|
|
14403
14403
|
}
|
|
14404
14404
|
return /* @__PURE__ */ React.createElement(Component, _extends$1({}, restProps, {
|
|
14405
14405
|
ref: nativeElementRef,
|
|
14406
|
-
onSubmit: function onSubmit(
|
|
14407
|
-
|
|
14408
|
-
|
|
14406
|
+
onSubmit: function onSubmit(event2) {
|
|
14407
|
+
event2.preventDefault();
|
|
14408
|
+
event2.stopPropagation();
|
|
14409
14409
|
formInstance.submit();
|
|
14410
14410
|
},
|
|
14411
|
-
onReset: function onReset(
|
|
14411
|
+
onReset: function onReset(event2) {
|
|
14412
14412
|
var _restProps$onReset;
|
|
14413
|
-
|
|
14413
|
+
event2.preventDefault();
|
|
14414
14414
|
formInstance.resetFields();
|
|
14415
|
-
(_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 || _restProps$onReset.call(restProps,
|
|
14415
|
+
(_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 || _restProps$onReset.call(restProps, event2);
|
|
14416
14416
|
}
|
|
14417
14417
|
}), wrapperNode);
|
|
14418
14418
|
};
|
|
@@ -15475,9 +15475,9 @@ var TransBtn = function TransBtn2(props) {
|
|
|
15475
15475
|
var icon = typeof customizeIcon === "function" ? customizeIcon(customizeIconProps) : customizeIcon;
|
|
15476
15476
|
return /* @__PURE__ */ React.createElement("span", {
|
|
15477
15477
|
className,
|
|
15478
|
-
onMouseDown: function onMouseDown(
|
|
15479
|
-
|
|
15480
|
-
_onMouseDown === null || _onMouseDown === void 0 || _onMouseDown(
|
|
15478
|
+
onMouseDown: function onMouseDown(event2) {
|
|
15479
|
+
event2.preventDefault();
|
|
15480
|
+
_onMouseDown === null || _onMouseDown === void 0 || _onMouseDown(event2);
|
|
15481
15481
|
},
|
|
15482
15482
|
style: {
|
|
15483
15483
|
userSelect: "none",
|
|
@@ -15574,14 +15574,14 @@ function useSelectTriggerControl(elements, open, triggerOpen, customizedTrigger)
|
|
|
15574
15574
|
customizedTrigger
|
|
15575
15575
|
};
|
|
15576
15576
|
React.useEffect(function() {
|
|
15577
|
-
function onGlobalMouseDown(
|
|
15577
|
+
function onGlobalMouseDown(event2) {
|
|
15578
15578
|
var _propsRef$current;
|
|
15579
15579
|
if ((_propsRef$current = propsRef.current) !== null && _propsRef$current !== void 0 && _propsRef$current.customizedTrigger) {
|
|
15580
15580
|
return;
|
|
15581
15581
|
}
|
|
15582
|
-
var target =
|
|
15583
|
-
if (target.shadowRoot &&
|
|
15584
|
-
target =
|
|
15582
|
+
var target = event2.target;
|
|
15583
|
+
if (target.shadowRoot && event2.composed) {
|
|
15584
|
+
target = event2.composedPath()[0] || target;
|
|
15585
15585
|
}
|
|
15586
15586
|
if (propsRef.current.open && elements().filter(function(element2) {
|
|
15587
15587
|
return element2;
|
|
@@ -16039,9 +16039,9 @@ function itemKey$1(value2) {
|
|
|
16039
16039
|
var _value$key;
|
|
16040
16040
|
return (_value$key = value2.key) !== null && _value$key !== void 0 ? _value$key : value2.value;
|
|
16041
16041
|
}
|
|
16042
|
-
var onPreventMouseDown = function onPreventMouseDown2(
|
|
16043
|
-
|
|
16044
|
-
|
|
16042
|
+
var onPreventMouseDown = function onPreventMouseDown2(event2) {
|
|
16043
|
+
event2.preventDefault();
|
|
16044
|
+
event2.stopPropagation();
|
|
16045
16045
|
};
|
|
16046
16046
|
var SelectSelector = function SelectSelector2(props) {
|
|
16047
16047
|
var id2 = props.id, prefixCls = props.prefixCls, values = props.values, open = props.open, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, inputRef = props.inputRef, placeholder = props.placeholder, disabled2 = props.disabled, mode = props.mode, showSearch = props.showSearch, autoFocus = props.autoFocus, autoComplete = props.autoComplete, activeDescendantId = props.activeDescendantId, tabIndex = props.tabIndex, removeIcon = props.removeIcon, maxTagCount = props.maxTagCount, maxTagTextLength = props.maxTagTextLength, _props$maxTagPlacehol = props.maxTagPlaceholder, maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function(omittedValues) {
|
|
@@ -16097,9 +16097,9 @@ var SelectSelector = function SelectSelector2(props) {
|
|
|
16097
16097
|
}
|
|
16098
16098
|
}
|
|
16099
16099
|
}
|
|
16100
|
-
var onClose = function onClose2(
|
|
16101
|
-
if (
|
|
16102
|
-
|
|
16100
|
+
var onClose = function onClose2(event2) {
|
|
16101
|
+
if (event2) {
|
|
16102
|
+
event2.stopPropagation();
|
|
16103
16103
|
}
|
|
16104
16104
|
onRemove2(valueItem);
|
|
16105
16105
|
};
|
|
@@ -16246,17 +16246,17 @@ var Selector = function Selector2(props, ref) {
|
|
|
16246
16246
|
};
|
|
16247
16247
|
});
|
|
16248
16248
|
var _useLock = useLock(0), _useLock2 = _slicedToArray(_useLock, 2), getInputMouseDown = _useLock2[0], setInputMouseDown = _useLock2[1];
|
|
16249
|
-
var onInternalInputKeyDown = function onInternalInputKeyDown2(
|
|
16250
|
-
var which =
|
|
16249
|
+
var onInternalInputKeyDown = function onInternalInputKeyDown2(event2) {
|
|
16250
|
+
var which = event2.which;
|
|
16251
16251
|
var isTextAreaElement = inputRef.current instanceof HTMLTextAreaElement;
|
|
16252
16252
|
if (!isTextAreaElement && open && (which === KeyCode.UP || which === KeyCode.DOWN)) {
|
|
16253
|
-
|
|
16253
|
+
event2.preventDefault();
|
|
16254
16254
|
}
|
|
16255
16255
|
if (onInputKeyDown) {
|
|
16256
|
-
onInputKeyDown(
|
|
16256
|
+
onInputKeyDown(event2);
|
|
16257
16257
|
}
|
|
16258
16258
|
if (which === KeyCode.ENTER && mode === "tags" && !compositionStatusRef.current && !open) {
|
|
16259
|
-
onSearchSubmit === null || onSearchSubmit === void 0 || onSearchSubmit(
|
|
16259
|
+
onSearchSubmit === null || onSearchSubmit === void 0 || onSearchSubmit(event2.target.value);
|
|
16260
16260
|
}
|
|
16261
16261
|
if (isTextAreaElement && !open && ~[KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT].indexOf(which)) {
|
|
16262
16262
|
return;
|
|
@@ -16283,8 +16283,8 @@ var Selector = function Selector2(props, ref) {
|
|
|
16283
16283
|
triggerOnSearch(e3.target.value);
|
|
16284
16284
|
}
|
|
16285
16285
|
};
|
|
16286
|
-
var onInputChange = function onInputChange2(
|
|
16287
|
-
var value2 =
|
|
16286
|
+
var onInputChange = function onInputChange2(event2) {
|
|
16287
|
+
var value2 = event2.target.value;
|
|
16288
16288
|
if (tokenWithEnter && pastedTextRef.current && /[\r\n]/.test(pastedTextRef.current)) {
|
|
16289
16289
|
var replacedText = pastedTextRef.current.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
|
|
16290
16290
|
value2 = value2.replace(replacedText, pastedTextRef.current);
|
|
@@ -16310,10 +16310,10 @@ var Selector = function Selector2(props, ref) {
|
|
|
16310
16310
|
}
|
|
16311
16311
|
}
|
|
16312
16312
|
};
|
|
16313
|
-
var onMouseDown = function onMouseDown2(
|
|
16313
|
+
var onMouseDown = function onMouseDown2(event2) {
|
|
16314
16314
|
var inputMouseDown = getInputMouseDown();
|
|
16315
|
-
if (
|
|
16316
|
-
|
|
16315
|
+
if (event2.target !== inputRef.current && !inputMouseDown && !(mode === "combobox" && disabled2)) {
|
|
16316
|
+
event2.preventDefault();
|
|
16317
16317
|
}
|
|
16318
16318
|
if (mode !== "combobox" && (!showSearch || !inputMouseDown) || !open) {
|
|
16319
16319
|
if (open && autoClearSearchValue !== false) {
|
|
@@ -17261,8 +17261,8 @@ function generateTrigger() {
|
|
|
17261
17261
|
}, [mergedOpen]);
|
|
17262
17262
|
var _React$useState11 = React.useState(null), _React$useState12 = _slicedToArray(_React$useState11, 2), motionPrepareResolve = _React$useState12[0], setMotionPrepareResolve = _React$useState12[1];
|
|
17263
17263
|
var _React$useState13 = React.useState(null), _React$useState14 = _slicedToArray(_React$useState13, 2), mousePos = _React$useState14[0], setMousePos = _React$useState14[1];
|
|
17264
|
-
var setMousePosByEvent = function setMousePosByEvent2(
|
|
17265
|
-
setMousePos([
|
|
17264
|
+
var setMousePosByEvent = function setMousePosByEvent2(event2) {
|
|
17265
|
+
setMousePos([event2.clientX, event2.clientY]);
|
|
17266
17266
|
};
|
|
17267
17267
|
var _useAlign = useAlign(mergedOpen, popupEle, alignPoint && mousePos !== null ? mousePos : targetEle, popupPlacement, builtinPlacements, popupAlign, onPopupAlign), _useAlign2 = _slicedToArray(_useAlign, 11), ready = _useAlign2[0], offsetX = _useAlign2[1], offsetY = _useAlign2[2], offsetR = _useAlign2[3], offsetB = _useAlign2[4], arrowX = _useAlign2[5], arrowY = _useAlign2[6], scaleX = _useAlign2[7], scaleY = _useAlign2[8], alignInfo = _useAlign2[9], onAlign = _useAlign2[10];
|
|
17268
17268
|
var _useAction = useAction(mobile, action, showAction, hideAction), _useAction2 = _slicedToArray(_useAction, 2), showActions = _useAction2[0], hideActions = _useAction2[1];
|
|
@@ -17332,29 +17332,29 @@ function generateTrigger() {
|
|
|
17332
17332
|
}
|
|
17333
17333
|
}, [motionPrepareResolve]);
|
|
17334
17334
|
function wrapperAction(eventName, nextOpen, delay, preEvent) {
|
|
17335
|
-
cloneProps[eventName] = function(
|
|
17335
|
+
cloneProps[eventName] = function(event2) {
|
|
17336
17336
|
var _originChildProps$eve;
|
|
17337
|
-
preEvent === null || preEvent === void 0 || preEvent(
|
|
17337
|
+
preEvent === null || preEvent === void 0 || preEvent(event2);
|
|
17338
17338
|
triggerOpen(nextOpen, delay);
|
|
17339
17339
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
17340
17340
|
args[_key - 1] = arguments[_key];
|
|
17341
17341
|
}
|
|
17342
|
-
(_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 || _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps,
|
|
17342
|
+
(_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 || _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps, event2].concat(args));
|
|
17343
17343
|
};
|
|
17344
17344
|
}
|
|
17345
17345
|
if (clickToShow || clickToHide) {
|
|
17346
|
-
cloneProps.onClick = function(
|
|
17346
|
+
cloneProps.onClick = function(event2) {
|
|
17347
17347
|
var _originChildProps$onC;
|
|
17348
17348
|
if (openRef.current && clickToHide) {
|
|
17349
17349
|
triggerOpen(false);
|
|
17350
17350
|
} else if (!openRef.current && clickToShow) {
|
|
17351
|
-
setMousePosByEvent(
|
|
17351
|
+
setMousePosByEvent(event2);
|
|
17352
17352
|
triggerOpen(true);
|
|
17353
17353
|
}
|
|
17354
17354
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
17355
17355
|
args[_key2 - 1] = arguments[_key2];
|
|
17356
17356
|
}
|
|
17357
|
-
(_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 || _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps,
|
|
17357
|
+
(_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 || _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps, event2].concat(args));
|
|
17358
17358
|
};
|
|
17359
17359
|
}
|
|
17360
17360
|
var onPopupPointerDown = useWinClick(mergedOpen, clickToHide, targetEle, popupEle, mask, maskClosable, inPopupOrChild, triggerOpen);
|
|
@@ -17363,21 +17363,21 @@ function generateTrigger() {
|
|
|
17363
17363
|
var onPopupMouseEnter;
|
|
17364
17364
|
var onPopupMouseLeave;
|
|
17365
17365
|
if (hoverToShow) {
|
|
17366
|
-
wrapperAction("onMouseEnter", true, mouseEnterDelay, function(
|
|
17367
|
-
setMousePosByEvent(
|
|
17366
|
+
wrapperAction("onMouseEnter", true, mouseEnterDelay, function(event2) {
|
|
17367
|
+
setMousePosByEvent(event2);
|
|
17368
17368
|
});
|
|
17369
|
-
wrapperAction("onPointerEnter", true, mouseEnterDelay, function(
|
|
17370
|
-
setMousePosByEvent(
|
|
17369
|
+
wrapperAction("onPointerEnter", true, mouseEnterDelay, function(event2) {
|
|
17370
|
+
setMousePosByEvent(event2);
|
|
17371
17371
|
});
|
|
17372
|
-
onPopupMouseEnter = function onPopupMouseEnter2(
|
|
17373
|
-
if ((mergedOpen || inMotion) && popupEle !== null && popupEle !== void 0 && popupEle.contains(
|
|
17372
|
+
onPopupMouseEnter = function onPopupMouseEnter2(event2) {
|
|
17373
|
+
if ((mergedOpen || inMotion) && popupEle !== null && popupEle !== void 0 && popupEle.contains(event2.target)) {
|
|
17374
17374
|
triggerOpen(true, mouseEnterDelay);
|
|
17375
17375
|
}
|
|
17376
17376
|
};
|
|
17377
17377
|
if (alignPoint) {
|
|
17378
|
-
cloneProps.onMouseMove = function(
|
|
17378
|
+
cloneProps.onMouseMove = function(event2) {
|
|
17379
17379
|
var _originChildProps$onM;
|
|
17380
|
-
(_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 || _originChildProps$onM.call(originChildProps,
|
|
17380
|
+
(_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 || _originChildProps$onM.call(originChildProps, event2);
|
|
17381
17381
|
};
|
|
17382
17382
|
}
|
|
17383
17383
|
}
|
|
@@ -17395,19 +17395,19 @@ function generateTrigger() {
|
|
|
17395
17395
|
wrapperAction("onBlur", false, blurDelay);
|
|
17396
17396
|
}
|
|
17397
17397
|
if (showActions.has("contextMenu")) {
|
|
17398
|
-
cloneProps.onContextMenu = function(
|
|
17398
|
+
cloneProps.onContextMenu = function(event2) {
|
|
17399
17399
|
var _originChildProps$onC2;
|
|
17400
17400
|
if (openRef.current && hideActions.has("contextMenu")) {
|
|
17401
17401
|
triggerOpen(false);
|
|
17402
17402
|
} else {
|
|
17403
|
-
setMousePosByEvent(
|
|
17403
|
+
setMousePosByEvent(event2);
|
|
17404
17404
|
triggerOpen(true);
|
|
17405
17405
|
}
|
|
17406
|
-
|
|
17406
|
+
event2.preventDefault();
|
|
17407
17407
|
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
17408
17408
|
args[_key3 - 1] = arguments[_key3];
|
|
17409
17409
|
}
|
|
17410
|
-
(_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 || _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps,
|
|
17410
|
+
(_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 || _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps, event2].concat(args));
|
|
17411
17411
|
};
|
|
17412
17412
|
}
|
|
17413
17413
|
if (className) {
|
|
@@ -17835,13 +17835,13 @@ var BaseSelect = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
17835
17835
|
}, [disabled2]);
|
|
17836
17836
|
var _useLock = useLock(), _useLock2 = _slicedToArray(_useLock, 2), getClearLock = _useLock2[0], setClearLock = _useLock2[1];
|
|
17837
17837
|
var keyLockRef = React.useRef(false);
|
|
17838
|
-
var onInternalKeyDown = function onInternalKeyDown2(
|
|
17838
|
+
var onInternalKeyDown = function onInternalKeyDown2(event2) {
|
|
17839
17839
|
var clearLock = getClearLock();
|
|
17840
|
-
var key =
|
|
17840
|
+
var key = event2.key;
|
|
17841
17841
|
var isEnterKey = key === "Enter";
|
|
17842
17842
|
if (isEnterKey) {
|
|
17843
17843
|
if (mode !== "combobox") {
|
|
17844
|
-
|
|
17844
|
+
event2.preventDefault();
|
|
17845
17845
|
}
|
|
17846
17846
|
if (!mergedOpen) {
|
|
17847
17847
|
onToggleOpen(true);
|
|
@@ -17874,22 +17874,22 @@ var BaseSelect = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
17874
17874
|
if (isEnterKey) {
|
|
17875
17875
|
keyLockRef.current = true;
|
|
17876
17876
|
}
|
|
17877
|
-
(_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 || _listRef$current2.onKeyDown.apply(_listRef$current2, [
|
|
17877
|
+
(_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 || _listRef$current2.onKeyDown.apply(_listRef$current2, [event2].concat(rest));
|
|
17878
17878
|
}
|
|
17879
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2.apply(void 0, [
|
|
17879
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2.apply(void 0, [event2].concat(rest));
|
|
17880
17880
|
};
|
|
17881
|
-
var onInternalKeyUp = function onInternalKeyUp2(
|
|
17881
|
+
var onInternalKeyUp = function onInternalKeyUp2(event2) {
|
|
17882
17882
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
17883
17883
|
rest[_key2 - 1] = arguments[_key2];
|
|
17884
17884
|
}
|
|
17885
17885
|
if (mergedOpen) {
|
|
17886
17886
|
var _listRef$current3;
|
|
17887
|
-
(_listRef$current3 = listRef.current) === null || _listRef$current3 === void 0 || _listRef$current3.onKeyUp.apply(_listRef$current3, [
|
|
17887
|
+
(_listRef$current3 = listRef.current) === null || _listRef$current3 === void 0 || _listRef$current3.onKeyUp.apply(_listRef$current3, [event2].concat(rest));
|
|
17888
17888
|
}
|
|
17889
|
-
if (
|
|
17889
|
+
if (event2.key === "Enter") {
|
|
17890
17890
|
keyLockRef.current = false;
|
|
17891
17891
|
}
|
|
17892
|
-
onKeyUp === null || onKeyUp === void 0 || onKeyUp.apply(void 0, [
|
|
17892
|
+
onKeyUp === null || onKeyUp === void 0 || onKeyUp.apply(void 0, [event2].concat(rest));
|
|
17893
17893
|
};
|
|
17894
17894
|
var onSelectorRemove = function onSelectorRemove2(val) {
|
|
17895
17895
|
var newValues = displayValues.filter(function(i) {
|
|
@@ -17950,9 +17950,9 @@ var BaseSelect = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
17950
17950
|
activeTimeoutIds.splice(0, activeTimeoutIds.length);
|
|
17951
17951
|
};
|
|
17952
17952
|
}, []);
|
|
17953
|
-
var onInternalMouseDown = function onInternalMouseDown2(
|
|
17953
|
+
var onInternalMouseDown = function onInternalMouseDown2(event2) {
|
|
17954
17954
|
var _triggerRef$current;
|
|
17955
|
-
var target =
|
|
17955
|
+
var target = event2.target;
|
|
17956
17956
|
var popupElement = (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.getPopupElement();
|
|
17957
17957
|
if (popupElement && popupElement.contains(target)) {
|
|
17958
17958
|
var timeoutId = setTimeout(function() {
|
|
@@ -17971,7 +17971,7 @@ var BaseSelect = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
17971
17971
|
for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
17972
17972
|
restArgs[_key3 - 1] = arguments[_key3];
|
|
17973
17973
|
}
|
|
17974
|
-
onMouseDown === null || onMouseDown === void 0 || onMouseDown.apply(void 0, [
|
|
17974
|
+
onMouseDown === null || onMouseDown === void 0 || onMouseDown.apply(void 0, [event2].concat(restArgs));
|
|
17975
17975
|
};
|
|
17976
17976
|
var _React$useState5 = React.useState({}), _React$useState6 = _slicedToArray(_React$useState5, 2), forceUpdate = _React$useState6[1];
|
|
17977
17977
|
function onPopupMouseEnter() {
|
|
@@ -18274,16 +18274,16 @@ function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLef
|
|
|
18274
18274
|
function onWheelY(e3, deltaY) {
|
|
18275
18275
|
wrapperRaf.cancel(nextFrameRef.current);
|
|
18276
18276
|
if (originScroll(false, deltaY)) return;
|
|
18277
|
-
var
|
|
18278
|
-
if (!
|
|
18279
|
-
|
|
18277
|
+
var event2 = e3;
|
|
18278
|
+
if (!event2._virtualHandled) {
|
|
18279
|
+
event2._virtualHandled = true;
|
|
18280
18280
|
} else {
|
|
18281
18281
|
return;
|
|
18282
18282
|
}
|
|
18283
18283
|
offsetRef.current += deltaY;
|
|
18284
18284
|
wheelValueRef.current = deltaY;
|
|
18285
18285
|
if (!isFF) {
|
|
18286
|
-
|
|
18286
|
+
event2.preventDefault();
|
|
18287
18287
|
}
|
|
18288
18288
|
nextFrameRef.current = wrapperRaf(function() {
|
|
18289
18289
|
var patchMultiple = isMouseScrollRef.current ? 10 : 1;
|
|
@@ -18291,21 +18291,21 @@ function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLef
|
|
|
18291
18291
|
offsetRef.current = 0;
|
|
18292
18292
|
});
|
|
18293
18293
|
}
|
|
18294
|
-
function onWheelX(
|
|
18294
|
+
function onWheelX(event2, deltaX) {
|
|
18295
18295
|
onWheelDelta(deltaX, true);
|
|
18296
18296
|
if (!isFF) {
|
|
18297
|
-
|
|
18297
|
+
event2.preventDefault();
|
|
18298
18298
|
}
|
|
18299
18299
|
}
|
|
18300
18300
|
var wheelDirectionRef = useRef(null);
|
|
18301
18301
|
var wheelDirectionCleanRef = useRef(null);
|
|
18302
|
-
function onWheel(
|
|
18302
|
+
function onWheel(event2) {
|
|
18303
18303
|
if (!inVirtual) return;
|
|
18304
18304
|
wrapperRaf.cancel(wheelDirectionCleanRef.current);
|
|
18305
18305
|
wheelDirectionCleanRef.current = wrapperRaf(function() {
|
|
18306
18306
|
wheelDirectionRef.current = null;
|
|
18307
18307
|
}, 2);
|
|
18308
|
-
var deltaX =
|
|
18308
|
+
var deltaX = event2.deltaX, deltaY = event2.deltaY, shiftKey = event2.shiftKey;
|
|
18309
18309
|
var mergedDeltaX = deltaX;
|
|
18310
18310
|
var mergedDeltaY = deltaY;
|
|
18311
18311
|
if (wheelDirectionRef.current === "sx" || !wheelDirectionRef.current && (shiftKey || false) && deltaY && !deltaX) {
|
|
@@ -18319,14 +18319,14 @@ function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLef
|
|
|
18319
18319
|
wheelDirectionRef.current = horizontalScroll && absX > absY ? "x" : "y";
|
|
18320
18320
|
}
|
|
18321
18321
|
if (wheelDirectionRef.current === "y") {
|
|
18322
|
-
onWheelY(
|
|
18322
|
+
onWheelY(event2, mergedDeltaY);
|
|
18323
18323
|
} else {
|
|
18324
|
-
onWheelX(
|
|
18324
|
+
onWheelX(event2, mergedDeltaX);
|
|
18325
18325
|
}
|
|
18326
18326
|
}
|
|
18327
|
-
function onFireFoxScroll(
|
|
18327
|
+
function onFireFoxScroll(event2) {
|
|
18328
18328
|
if (!inVirtual) return;
|
|
18329
|
-
isMouseScrollRef.current =
|
|
18329
|
+
isMouseScrollRef.current = event2.detail === wheelValueRef.current;
|
|
18330
18330
|
}
|
|
18331
18331
|
return [onWheel, onFireFoxScroll];
|
|
18332
18332
|
}
|
|
@@ -18572,9 +18572,9 @@ function useScrollDrag(inVirtual, componentRef, onScrollOffset) {
|
|
|
18572
18572
|
if (e3.target.draggable || e3.button !== 0) {
|
|
18573
18573
|
return;
|
|
18574
18574
|
}
|
|
18575
|
-
var
|
|
18576
|
-
if (!
|
|
18577
|
-
|
|
18575
|
+
var event2 = e3;
|
|
18576
|
+
if (!event2._virtualHandled) {
|
|
18577
|
+
event2._virtualHandled = true;
|
|
18578
18578
|
mouseDownLock = true;
|
|
18579
18579
|
}
|
|
18580
18580
|
};
|
|
@@ -19143,13 +19143,13 @@ function RawList(props, ref) {
|
|
|
19143
19143
|
});
|
|
19144
19144
|
var _useFrameWheel = useFrameWheel(useVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLeft, isScrollAtRight, !!scrollWidth, onWheelDelta), _useFrameWheel2 = _slicedToArray(_useFrameWheel, 2), onRawWheel = _useFrameWheel2[0], onFireFoxScroll = _useFrameWheel2[1];
|
|
19145
19145
|
useMobileTouchMove(useVirtual, componentRef, function(isHorizontal, delta, smoothOffset, e3) {
|
|
19146
|
-
var
|
|
19146
|
+
var event2 = e3;
|
|
19147
19147
|
if (originScroll(isHorizontal, delta, smoothOffset)) {
|
|
19148
19148
|
return false;
|
|
19149
19149
|
}
|
|
19150
|
-
if (!
|
|
19151
|
-
if (
|
|
19152
|
-
|
|
19150
|
+
if (!event2 || !event2._virtualHandled) {
|
|
19151
|
+
if (event2) {
|
|
19152
|
+
event2._virtualHandled = true;
|
|
19153
19153
|
}
|
|
19154
19154
|
onRawWheel({
|
|
19155
19155
|
preventDefault: function preventDefault() {
|
|
@@ -19338,8 +19338,8 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19338
19338
|
var overMaxCount = React.useMemo(function() {
|
|
19339
19339
|
return multiple && isValidCount(maxCount) && (rawValues === null || rawValues === void 0 ? void 0 : rawValues.size) >= maxCount;
|
|
19340
19340
|
}, [multiple, maxCount, rawValues === null || rawValues === void 0 ? void 0 : rawValues.size]);
|
|
19341
|
-
var onListMouseDown = function onListMouseDown2(
|
|
19342
|
-
|
|
19341
|
+
var onListMouseDown = function onListMouseDown2(event2) {
|
|
19342
|
+
event2.preventDefault();
|
|
19343
19343
|
};
|
|
19344
19344
|
var scrollIntoView = function scrollIntoView2(args) {
|
|
19345
19345
|
var _listRef$current;
|
|
@@ -19424,8 +19424,8 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19424
19424
|
};
|
|
19425
19425
|
React.useImperativeHandle(ref, function() {
|
|
19426
19426
|
return {
|
|
19427
|
-
onKeyDown: function onKeyDown2(
|
|
19428
|
-
var which =
|
|
19427
|
+
onKeyDown: function onKeyDown2(event2) {
|
|
19428
|
+
var which = event2.which, ctrlKey = event2.ctrlKey;
|
|
19429
19429
|
switch (which) {
|
|
19430
19430
|
// >>> Arrow keys & ctrl + n/p on Mac
|
|
19431
19431
|
case KeyCode.N:
|
|
@@ -19462,7 +19462,7 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19462
19462
|
onSelectValue(void 0);
|
|
19463
19463
|
}
|
|
19464
19464
|
if (open) {
|
|
19465
|
-
|
|
19465
|
+
event2.preventDefault();
|
|
19466
19466
|
}
|
|
19467
19467
|
break;
|
|
19468
19468
|
}
|
|
@@ -19470,7 +19470,7 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19470
19470
|
case KeyCode.ESC: {
|
|
19471
19471
|
toggleOpen(false);
|
|
19472
19472
|
if (open) {
|
|
19473
|
-
|
|
19473
|
+
event2.stopPropagation();
|
|
19474
19474
|
}
|
|
19475
19475
|
}
|
|
19476
19476
|
}
|
|
@@ -23702,8 +23702,8 @@ function useAccessibility$1(_ref) {
|
|
|
23702
23702
|
}
|
|
23703
23703
|
return false;
|
|
23704
23704
|
};
|
|
23705
|
-
var handleKeyDown = function handleKeyDown2(
|
|
23706
|
-
switch (
|
|
23705
|
+
var handleKeyDown = function handleKeyDown2(event2) {
|
|
23706
|
+
switch (event2.keyCode) {
|
|
23707
23707
|
case ESC$1:
|
|
23708
23708
|
handleCloseMenuAndReturnFocus();
|
|
23709
23709
|
break;
|
|
@@ -23713,7 +23713,7 @@ function useAccessibility$1(_ref) {
|
|
|
23713
23713
|
focusResult = focusMenu();
|
|
23714
23714
|
}
|
|
23715
23715
|
if (focusResult) {
|
|
23716
|
-
|
|
23716
|
+
event2.preventDefault();
|
|
23717
23717
|
} else {
|
|
23718
23718
|
handleCloseMenuAndReturnFocus();
|
|
23719
23719
|
}
|
|
@@ -30482,9 +30482,9 @@ function TimeColumn(props) {
|
|
|
30482
30482
|
clearDelayCheck();
|
|
30483
30483
|
};
|
|
30484
30484
|
}, [value2, optionalValue, flattenUnits(units)]);
|
|
30485
|
-
var onInternalScroll = function onInternalScroll2(
|
|
30485
|
+
var onInternalScroll = function onInternalScroll2(event2) {
|
|
30486
30486
|
clearDelayCheck();
|
|
30487
|
-
var target =
|
|
30487
|
+
var target = event2.target;
|
|
30488
30488
|
if (!isScrolling() && changeOnScroll) {
|
|
30489
30489
|
checkDelayRef.current = setTimeout(function() {
|
|
30490
30490
|
var ul = ulRef.current;
|
|
@@ -31543,11 +31543,11 @@ function useInputProps(props, postProps) {
|
|
|
31543
31543
|
active: activeIndex === index2,
|
|
31544
31544
|
helped: allHelp || activeHelp && activeIndex === index2,
|
|
31545
31545
|
disabled: getProp(disabled2),
|
|
31546
|
-
onFocus: function onFocus(
|
|
31547
|
-
_onFocus(
|
|
31546
|
+
onFocus: function onFocus(event2) {
|
|
31547
|
+
_onFocus(event2, index2);
|
|
31548
31548
|
},
|
|
31549
|
-
onBlur: function onBlur(
|
|
31550
|
-
_onBlur(
|
|
31549
|
+
onBlur: function onBlur(event2) {
|
|
31550
|
+
_onBlur(event2, index2);
|
|
31551
31551
|
},
|
|
31552
31552
|
onSubmit,
|
|
31553
31553
|
// Get validate text value
|
|
@@ -31566,16 +31566,16 @@ function useInputProps(props, postProps) {
|
|
|
31566
31566
|
index: index2
|
|
31567
31567
|
});
|
|
31568
31568
|
},
|
|
31569
|
-
onKeyDown: function onKeyDown2(
|
|
31569
|
+
onKeyDown: function onKeyDown2(event2) {
|
|
31570
31570
|
var prevented = false;
|
|
31571
|
-
_onKeyDown === null || _onKeyDown === void 0 || _onKeyDown(
|
|
31571
|
+
_onKeyDown === null || _onKeyDown === void 0 || _onKeyDown(event2, function() {
|
|
31572
31572
|
if (process.env.NODE_ENV !== "production") {
|
|
31573
31573
|
warningOnce(false, "`preventDefault` callback is deprecated. Please call `event.preventDefault` directly.");
|
|
31574
31574
|
}
|
|
31575
31575
|
prevented = true;
|
|
31576
31576
|
});
|
|
31577
|
-
if (!
|
|
31578
|
-
switch (
|
|
31577
|
+
if (!event2.defaultPrevented && !prevented) {
|
|
31578
|
+
switch (event2.key) {
|
|
31579
31579
|
case "Escape":
|
|
31580
31580
|
onOpenChange(false, {
|
|
31581
31581
|
index: index2
|
|
@@ -31781,16 +31781,16 @@ var Input$5 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
31781
31781
|
setInputValue(text2);
|
|
31782
31782
|
onModify(text2);
|
|
31783
31783
|
});
|
|
31784
|
-
var onInternalChange = function onInternalChange2(
|
|
31784
|
+
var onInternalChange = function onInternalChange2(event2) {
|
|
31785
31785
|
if (!format3) {
|
|
31786
|
-
var text2 =
|
|
31786
|
+
var text2 = event2.target.value;
|
|
31787
31787
|
onModify(text2);
|
|
31788
31788
|
setInputValue(text2);
|
|
31789
31789
|
onChange(text2);
|
|
31790
31790
|
}
|
|
31791
31791
|
};
|
|
31792
|
-
var onFormatPaste = function onFormatPaste2(
|
|
31793
|
-
var pasteText =
|
|
31792
|
+
var onFormatPaste = function onFormatPaste2(event2) {
|
|
31793
|
+
var pasteText = event2.clipboardData.getData("text");
|
|
31794
31794
|
if (validateFormat(pasteText)) {
|
|
31795
31795
|
triggerInputChange(pasteText);
|
|
31796
31796
|
}
|
|
@@ -31799,41 +31799,41 @@ var Input$5 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
31799
31799
|
var onFormatMouseDown = function onFormatMouseDown2() {
|
|
31800
31800
|
mouseDownRef.current = true;
|
|
31801
31801
|
};
|
|
31802
|
-
var onFormatMouseUp = function onFormatMouseUp2(
|
|
31803
|
-
var _ref =
|
|
31802
|
+
var onFormatMouseUp = function onFormatMouseUp2(event2) {
|
|
31803
|
+
var _ref = event2.target, start2 = _ref.selectionStart;
|
|
31804
31804
|
var closeMaskIndex = maskFormat.getMaskCellIndex(start2);
|
|
31805
31805
|
setFocusCellIndex(closeMaskIndex);
|
|
31806
31806
|
forceSelectionSync({});
|
|
31807
|
-
onMouseUp === null || onMouseUp === void 0 || onMouseUp(
|
|
31807
|
+
onMouseUp === null || onMouseUp === void 0 || onMouseUp(event2);
|
|
31808
31808
|
mouseDownRef.current = false;
|
|
31809
31809
|
};
|
|
31810
|
-
var onFormatFocus = function onFormatFocus2(
|
|
31810
|
+
var onFormatFocus = function onFormatFocus2(event2) {
|
|
31811
31811
|
setFocused(true);
|
|
31812
31812
|
setFocusCellIndex(0);
|
|
31813
31813
|
setFocusCellText("");
|
|
31814
|
-
onFocus(
|
|
31814
|
+
onFocus(event2);
|
|
31815
31815
|
};
|
|
31816
|
-
var onSharedBlur = function onSharedBlur2(
|
|
31817
|
-
onBlur(
|
|
31816
|
+
var onSharedBlur = function onSharedBlur2(event2) {
|
|
31817
|
+
onBlur(event2);
|
|
31818
31818
|
};
|
|
31819
|
-
var onFormatBlur = function onFormatBlur2(
|
|
31819
|
+
var onFormatBlur = function onFormatBlur2(event2) {
|
|
31820
31820
|
setFocused(false);
|
|
31821
|
-
onSharedBlur(
|
|
31821
|
+
onSharedBlur(event2);
|
|
31822
31822
|
};
|
|
31823
31823
|
useLockEffect(active, function() {
|
|
31824
31824
|
if (!active && !preserveInvalidOnBlur) {
|
|
31825
31825
|
setInputValue(value2);
|
|
31826
31826
|
}
|
|
31827
31827
|
});
|
|
31828
|
-
var onSharedKeyDown = function onSharedKeyDown2(
|
|
31829
|
-
if (
|
|
31828
|
+
var onSharedKeyDown = function onSharedKeyDown2(event2) {
|
|
31829
|
+
if (event2.key === "Enter" && validateFormat(inputValue)) {
|
|
31830
31830
|
onSubmit();
|
|
31831
31831
|
}
|
|
31832
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
31832
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2);
|
|
31833
31833
|
};
|
|
31834
|
-
var onFormatKeyDown = function onFormatKeyDown2(
|
|
31835
|
-
onSharedKeyDown(
|
|
31836
|
-
var key =
|
|
31834
|
+
var onFormatKeyDown = function onFormatKeyDown2(event2) {
|
|
31835
|
+
onSharedKeyDown(event2);
|
|
31836
|
+
var key = event2.key;
|
|
31837
31837
|
var nextCellText = null;
|
|
31838
31838
|
var nextFillText = null;
|
|
31839
31839
|
var maskCellLen = selectionEnd - selectionStart;
|
|
@@ -32139,15 +32139,15 @@ function RangePicker(props, ref) {
|
|
|
32139
32139
|
var _useInnerValue = useInnerValue(generateConfig2, locale2, formatList, true, false, defaultValue, value2, onCalendarChange, onOk), _useInnerValue2 = _slicedToArray(_useInnerValue, 5), mergedValue = _useInnerValue2[0], setInnerValue = _useInnerValue2[1], getCalendarValue = _useInnerValue2[2], triggerCalendarChange = _useInnerValue2[3], triggerOk = _useInnerValue2[4];
|
|
32140
32140
|
var calendarValue = getCalendarValue();
|
|
32141
32141
|
var _useRangeActive = useRangeActive(disabled2, allowEmpty, mergedOpen), _useRangeActive2 = _slicedToArray(_useRangeActive, 9), focused = _useRangeActive2[0], triggerFocus2 = _useRangeActive2[1], lastOperation = _useRangeActive2[2], activeIndex = _useRangeActive2[3], setActiveIndex = _useRangeActive2[4], nextActiveIndex = _useRangeActive2[5], activeIndexList = _useRangeActive2[6], updateSubmitIndex = _useRangeActive2[7], hasActiveSubmitValue = _useRangeActive2[8];
|
|
32142
|
-
var onSharedFocus = function onSharedFocus2(
|
|
32142
|
+
var onSharedFocus = function onSharedFocus2(event2, index2) {
|
|
32143
32143
|
triggerFocus2(true);
|
|
32144
|
-
onFocus === null || onFocus === void 0 || onFocus(
|
|
32144
|
+
onFocus === null || onFocus === void 0 || onFocus(event2, {
|
|
32145
32145
|
range: getActiveRange(index2 !== null && index2 !== void 0 ? index2 : activeIndex)
|
|
32146
32146
|
});
|
|
32147
32147
|
};
|
|
32148
|
-
var onSharedBlur = function onSharedBlur2(
|
|
32148
|
+
var onSharedBlur = function onSharedBlur2(event2, index2) {
|
|
32149
32149
|
triggerFocus2(false);
|
|
32150
|
-
onBlur === null || onBlur === void 0 || onBlur(
|
|
32150
|
+
onBlur === null || onBlur === void 0 || onBlur(event2, {
|
|
32151
32151
|
range: getActiveRange(index2 !== null && index2 !== void 0 ? index2 : activeIndex)
|
|
32152
32152
|
});
|
|
32153
32153
|
};
|
|
@@ -32216,9 +32216,9 @@ function RangePicker(props, ref) {
|
|
|
32216
32216
|
});
|
|
32217
32217
|
}
|
|
32218
32218
|
};
|
|
32219
|
-
var onSelectorClick = function onSelectorClick2(
|
|
32219
|
+
var onSelectorClick = function onSelectorClick2(event2) {
|
|
32220
32220
|
var _activeElement;
|
|
32221
|
-
var rootNode =
|
|
32221
|
+
var rootNode = event2.target.getRootNode();
|
|
32222
32222
|
if (!selectorRef.current.nativeElement.contains((_activeElement = rootNode.activeElement) !== null && _activeElement !== void 0 ? _activeElement : document.activeElement)) {
|
|
32223
32223
|
var enabledIndex = disabled2.findIndex(function(d) {
|
|
32224
32224
|
return !d;
|
|
@@ -32230,7 +32230,7 @@ function RangePicker(props, ref) {
|
|
|
32230
32230
|
}
|
|
32231
32231
|
}
|
|
32232
32232
|
triggerOpen(true);
|
|
32233
|
-
onClick === null || onClick === void 0 || onClick(
|
|
32233
|
+
onClick === null || onClick === void 0 || onClick(event2);
|
|
32234
32234
|
};
|
|
32235
32235
|
var onSelectorClear = function onSelectorClear2() {
|
|
32236
32236
|
triggerSubmitChange(null);
|
|
@@ -32269,9 +32269,9 @@ function RangePicker(props, ref) {
|
|
|
32269
32269
|
setInternalHoverValues(date4 ? fillCalendarValue(date4, activeIndex) : null);
|
|
32270
32270
|
setHoverSource("cell");
|
|
32271
32271
|
};
|
|
32272
|
-
var onPanelFocus = function onPanelFocus2(
|
|
32272
|
+
var onPanelFocus = function onPanelFocus2(event2) {
|
|
32273
32273
|
triggerOpen(true);
|
|
32274
|
-
onSharedFocus(
|
|
32274
|
+
onSharedFocus(event2);
|
|
32275
32275
|
};
|
|
32276
32276
|
var onPanelMouseDown = function onPanelMouseDown2() {
|
|
32277
32277
|
lastOperation("panel");
|
|
@@ -32338,7 +32338,7 @@ function RangePicker(props, ref) {
|
|
|
32338
32338
|
var onSelectorInputChange = function onSelectorInputChange2() {
|
|
32339
32339
|
lastOperation("input");
|
|
32340
32340
|
};
|
|
32341
|
-
var onSelectorFocus = function onSelectorFocus2(
|
|
32341
|
+
var onSelectorFocus = function onSelectorFocus2(event2, index2) {
|
|
32342
32342
|
var activeListLen = activeIndexList.length;
|
|
32343
32343
|
var lastActiveIndex = activeIndexList[activeListLen - 1];
|
|
32344
32344
|
if (activeListLen && lastActiveIndex !== index2 && needConfirm && // Not change index if is not filled
|
|
@@ -32356,21 +32356,21 @@ function RangePicker(props, ref) {
|
|
|
32356
32356
|
triggerPartConfirm(null, true);
|
|
32357
32357
|
}
|
|
32358
32358
|
setActiveIndex(index2);
|
|
32359
|
-
onSharedFocus(
|
|
32359
|
+
onSharedFocus(event2, index2);
|
|
32360
32360
|
};
|
|
32361
|
-
var onSelectorBlur = function onSelectorBlur2(
|
|
32361
|
+
var onSelectorBlur = function onSelectorBlur2(event2, index2) {
|
|
32362
32362
|
triggerOpen(false);
|
|
32363
32363
|
if (!needConfirm && lastOperation() === "input") {
|
|
32364
32364
|
var nextIndex = nextActiveIndex(calendarValue);
|
|
32365
32365
|
flushSubmit(activeIndex, nextIndex === null);
|
|
32366
32366
|
}
|
|
32367
|
-
onSharedBlur(
|
|
32367
|
+
onSharedBlur(event2, index2);
|
|
32368
32368
|
};
|
|
32369
|
-
var onSelectorKeyDown = function onSelectorKeyDown2(
|
|
32370
|
-
if (
|
|
32369
|
+
var onSelectorKeyDown = function onSelectorKeyDown2(event2, preventDefault) {
|
|
32370
|
+
if (event2.key === "Tab") {
|
|
32371
32371
|
triggerPartConfirm(null, true);
|
|
32372
32372
|
}
|
|
32373
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
32373
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2, preventDefault);
|
|
32374
32374
|
};
|
|
32375
32375
|
var context = React.useMemo(function() {
|
|
32376
32376
|
return {
|
|
@@ -32476,8 +32476,8 @@ function MultipleDates(props) {
|
|
|
32476
32476
|
}
|
|
32477
32477
|
function renderItem2(date4) {
|
|
32478
32478
|
var displayLabel = formatDate(date4);
|
|
32479
|
-
var onClose = function onClose2(
|
|
32480
|
-
if (
|
|
32479
|
+
var onClose = function onClose2(event2) {
|
|
32480
|
+
if (event2) event2.stopPropagation();
|
|
32481
32481
|
onRemove2(date4);
|
|
32482
32482
|
};
|
|
32483
32483
|
return renderSelector(displayLabel, onClose);
|
|
@@ -32646,13 +32646,13 @@ function Picker2(props, ref) {
|
|
|
32646
32646
|
var _useInnerValue = useInnerValue(generateConfig2, locale2, formatList, false, order2, defaultValue, value2, onInternalCalendarChange, onInternalOk), _useInnerValue2 = _slicedToArray(_useInnerValue, 5), mergedValue = _useInnerValue2[0], setInnerValue = _useInnerValue2[1], getCalendarValue = _useInnerValue2[2], triggerCalendarChange = _useInnerValue2[3], triggerOk = _useInnerValue2[4];
|
|
32647
32647
|
var calendarValue = getCalendarValue();
|
|
32648
32648
|
var _useRangeActive = useRangeActive([disabled2]), _useRangeActive2 = _slicedToArray(_useRangeActive, 4), focused = _useRangeActive2[0], triggerFocus2 = _useRangeActive2[1], lastOperation = _useRangeActive2[2], activeIndex = _useRangeActive2[3];
|
|
32649
|
-
var onSharedFocus = function onSharedFocus2(
|
|
32649
|
+
var onSharedFocus = function onSharedFocus2(event2) {
|
|
32650
32650
|
triggerFocus2(true);
|
|
32651
|
-
onFocus === null || onFocus === void 0 || onFocus(
|
|
32651
|
+
onFocus === null || onFocus === void 0 || onFocus(event2, {});
|
|
32652
32652
|
};
|
|
32653
|
-
var onSharedBlur = function onSharedBlur2(
|
|
32653
|
+
var onSharedBlur = function onSharedBlur2(event2) {
|
|
32654
32654
|
triggerFocus2(false);
|
|
32655
|
-
onBlur === null || onBlur === void 0 || onBlur(
|
|
32655
|
+
onBlur === null || onBlur === void 0 || onBlur(event2, {});
|
|
32656
32656
|
};
|
|
32657
32657
|
var _useMergedState = useMergedState(picker, {
|
|
32658
32658
|
value: mode
|
|
@@ -32722,12 +32722,12 @@ function Picker2(props, ref) {
|
|
|
32722
32722
|
force: true
|
|
32723
32723
|
});
|
|
32724
32724
|
};
|
|
32725
|
-
var onSelectorClick = function onSelectorClick2(
|
|
32725
|
+
var onSelectorClick = function onSelectorClick2(event2) {
|
|
32726
32726
|
if (!disabled2 && !selectorRef.current.nativeElement.contains(document.activeElement)) {
|
|
32727
32727
|
selectorRef.current.focus();
|
|
32728
32728
|
}
|
|
32729
32729
|
triggerOpen(true);
|
|
32730
|
-
onClick === null || onClick === void 0 || onClick(
|
|
32730
|
+
onClick === null || onClick === void 0 || onClick(event2);
|
|
32731
32731
|
};
|
|
32732
32732
|
var onSelectorClear = function onSelectorClear2() {
|
|
32733
32733
|
triggerSubmitChange(null);
|
|
@@ -32777,9 +32777,9 @@ function Picker2(props, ref) {
|
|
|
32777
32777
|
setInternalHoverValue(date4);
|
|
32778
32778
|
setHoverSource("cell");
|
|
32779
32779
|
};
|
|
32780
|
-
var onPanelFocus = function onPanelFocus2(
|
|
32780
|
+
var onPanelFocus = function onPanelFocus2(event2) {
|
|
32781
32781
|
triggerOpen(true);
|
|
32782
|
-
onSharedFocus(
|
|
32782
|
+
onSharedFocus(event2);
|
|
32783
32783
|
};
|
|
32784
32784
|
var onPanelSelect = function onPanelSelect2(date4) {
|
|
32785
32785
|
lastOperation("panel");
|
|
@@ -32838,22 +32838,22 @@ function Picker2(props, ref) {
|
|
|
32838
32838
|
var onSelectorInputChange = function onSelectorInputChange2() {
|
|
32839
32839
|
lastOperation("input");
|
|
32840
32840
|
};
|
|
32841
|
-
var onSelectorFocus = function onSelectorFocus2(
|
|
32841
|
+
var onSelectorFocus = function onSelectorFocus2(event2) {
|
|
32842
32842
|
lastOperation("input");
|
|
32843
32843
|
triggerOpen(true, {
|
|
32844
32844
|
inherit: true
|
|
32845
32845
|
});
|
|
32846
|
-
onSharedFocus(
|
|
32846
|
+
onSharedFocus(event2);
|
|
32847
32847
|
};
|
|
32848
|
-
var onSelectorBlur = function onSelectorBlur2(
|
|
32848
|
+
var onSelectorBlur = function onSelectorBlur2(event2) {
|
|
32849
32849
|
triggerOpen(false);
|
|
32850
|
-
onSharedBlur(
|
|
32850
|
+
onSharedBlur(event2);
|
|
32851
32851
|
};
|
|
32852
|
-
var onSelectorKeyDown = function onSelectorKeyDown2(
|
|
32853
|
-
if (
|
|
32852
|
+
var onSelectorKeyDown = function onSelectorKeyDown2(event2, preventDefault) {
|
|
32853
|
+
if (event2.key === "Tab") {
|
|
32854
32854
|
triggerConfirm();
|
|
32855
32855
|
}
|
|
32856
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
32856
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2, preventDefault);
|
|
32857
32857
|
};
|
|
32858
32858
|
var context = React.useMemo(function() {
|
|
32859
32859
|
return {
|
|
@@ -33685,14 +33685,14 @@ const RadioGroup$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
33685
33685
|
const [value2, setValue] = useMergedState(defaultValue, {
|
|
33686
33686
|
value: customizedValue
|
|
33687
33687
|
});
|
|
33688
|
-
const onRadioChange = React.useCallback((
|
|
33688
|
+
const onRadioChange = React.useCallback((event2) => {
|
|
33689
33689
|
const lastValue = value2;
|
|
33690
|
-
const val =
|
|
33690
|
+
const val = event2.target.value;
|
|
33691
33691
|
if (!("value" in props)) {
|
|
33692
33692
|
setValue(val);
|
|
33693
33693
|
}
|
|
33694
33694
|
if (val !== lastValue) {
|
|
33695
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
33695
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event2);
|
|
33696
33696
|
}
|
|
33697
33697
|
}, [value2, setValue, onChange]);
|
|
33698
33698
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
@@ -36362,9 +36362,9 @@ var AddButton = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
36362
36362
|
className: "".concat(prefixCls, "-nav-add"),
|
|
36363
36363
|
style: style2,
|
|
36364
36364
|
"aria-label": (locale2 === null || locale2 === void 0 ? void 0 : locale2.addAriaLabel) || "Add tab",
|
|
36365
|
-
onClick: function onClick(
|
|
36365
|
+
onClick: function onClick(event2) {
|
|
36366
36366
|
editable.onEdit("add", {
|
|
36367
|
-
event
|
|
36367
|
+
event: event2
|
|
36368
36368
|
});
|
|
36369
36369
|
}
|
|
36370
36370
|
}, editable.addIcon || "+");
|
|
@@ -36404,12 +36404,12 @@ var OperationNode = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
36404
36404
|
var dropdownPrefix = "".concat(prefixCls, "-dropdown");
|
|
36405
36405
|
var selectedItemId = selectedKey !== null ? "".concat(popupId, "-").concat(selectedKey) : null;
|
|
36406
36406
|
var dropdownAriaLabel = locale2 === null || locale2 === void 0 ? void 0 : locale2.dropdownAriaLabel;
|
|
36407
|
-
function onRemoveTab(
|
|
36408
|
-
|
|
36409
|
-
|
|
36407
|
+
function onRemoveTab(event2, key) {
|
|
36408
|
+
event2.preventDefault();
|
|
36409
|
+
event2.stopPropagation();
|
|
36410
36410
|
editable.onEdit("remove", {
|
|
36411
36411
|
key,
|
|
36412
|
-
event
|
|
36412
|
+
event: event2
|
|
36413
36413
|
});
|
|
36414
36414
|
}
|
|
36415
36415
|
var menu = /* @__PURE__ */ React.createElement(ExportMenu, {
|
|
@@ -36554,12 +36554,12 @@ var TabNode = function TabNode2(props) {
|
|
|
36554
36554
|
}
|
|
36555
36555
|
onClick(e3);
|
|
36556
36556
|
}
|
|
36557
|
-
function onRemoveTab(
|
|
36558
|
-
|
|
36559
|
-
|
|
36557
|
+
function onRemoveTab(event2) {
|
|
36558
|
+
event2.preventDefault();
|
|
36559
|
+
event2.stopPropagation();
|
|
36560
36560
|
editable.onEdit("remove", {
|
|
36561
36561
|
key,
|
|
36562
|
-
event
|
|
36562
|
+
event: event2
|
|
36563
36563
|
});
|
|
36564
36564
|
}
|
|
36565
36565
|
var labelNode = React.useMemo(function() {
|
|
@@ -38304,9 +38304,9 @@ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38304
38304
|
editable = {
|
|
38305
38305
|
onEdit: (editType, {
|
|
38306
38306
|
key,
|
|
38307
|
-
event
|
|
38307
|
+
event: event2
|
|
38308
38308
|
}) => {
|
|
38309
|
-
onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === "add" ?
|
|
38309
|
+
onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === "add" ? event2 : key, editType);
|
|
38310
38310
|
},
|
|
38311
38311
|
removeIcon: (_a = removeIcon !== null && removeIcon !== void 0 ? removeIcon : tabs === null || tabs === void 0 ? void 0 : tabs.removeIcon) !== null && _a !== void 0 ? _a : /* @__PURE__ */ React.createElement(RefIcon$C, null),
|
|
38312
38312
|
addIcon: (addIcon !== null && addIcon !== void 0 ? addIcon : tabs === null || tabs === void 0 ? void 0 : tabs.addIcon) || /* @__PURE__ */ React.createElement(RefIcon$r, null),
|
|
@@ -40231,11 +40231,11 @@ function normalizeOptions(options) {
|
|
|
40231
40231
|
}
|
|
40232
40232
|
var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
|
|
40233
40233
|
var prefixCls = _ref.prefixCls, className = _ref.className, disabled2 = _ref.disabled, checked = _ref.checked, label = _ref.label, title = _ref.title, value2 = _ref.value, name2 = _ref.name, onChange = _ref.onChange, onFocus = _ref.onFocus, onBlur = _ref.onBlur, onKeyDown2 = _ref.onKeyDown, onKeyUp = _ref.onKeyUp, onMouseDown = _ref.onMouseDown;
|
|
40234
|
-
var handleChange = function handleChange2(
|
|
40234
|
+
var handleChange = function handleChange2(event2) {
|
|
40235
40235
|
if (disabled2) {
|
|
40236
40236
|
return;
|
|
40237
40237
|
}
|
|
40238
|
-
onChange(
|
|
40238
|
+
onChange(event2, value2);
|
|
40239
40239
|
};
|
|
40240
40240
|
return /* @__PURE__ */ React.createElement("label", {
|
|
40241
40241
|
className: classNames(className, _defineProperty$1({}, "".concat(prefixCls, "-item-disabled"), disabled2)),
|
|
@@ -40272,7 +40272,7 @@ var Segmented$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
40272
40272
|
defaultValue
|
|
40273
40273
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1];
|
|
40274
40274
|
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1];
|
|
40275
|
-
var handleChange = function handleChange2(
|
|
40275
|
+
var handleChange = function handleChange2(event2, val) {
|
|
40276
40276
|
setRawValue(val);
|
|
40277
40277
|
onChange === null || onChange === void 0 || onChange(val);
|
|
40278
40278
|
};
|
|
@@ -40288,8 +40288,8 @@ var Segmented$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
40288
40288
|
var handleMouseDown = function handleMouseDown2() {
|
|
40289
40289
|
setIsKeyboard(false);
|
|
40290
40290
|
};
|
|
40291
|
-
var handleKeyUp = function handleKeyUp2(
|
|
40292
|
-
if (
|
|
40291
|
+
var handleKeyUp = function handleKeyUp2(event2) {
|
|
40292
|
+
if (event2.key === "Tab") {
|
|
40293
40293
|
setIsKeyboard(true);
|
|
40294
40294
|
}
|
|
40295
40295
|
};
|
|
@@ -40305,8 +40305,8 @@ var Segmented$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
40305
40305
|
onChange === null || onChange === void 0 || onChange(nextOption.value);
|
|
40306
40306
|
}
|
|
40307
40307
|
};
|
|
40308
|
-
var handleKeyDown = function handleKeyDown2(
|
|
40309
|
-
switch (
|
|
40308
|
+
var handleKeyDown = function handleKeyDown2(event2) {
|
|
40309
|
+
switch (event2.key) {
|
|
40310
40310
|
case "ArrowLeft":
|
|
40311
40311
|
case "ArrowUp":
|
|
40312
40312
|
onOffset(-1);
|
|
@@ -40653,9 +40653,9 @@ function hasAddon(props) {
|
|
|
40653
40653
|
function hasPrefixSuffix$1(props) {
|
|
40654
40654
|
return !!(props.prefix || props.suffix || props.allowClear);
|
|
40655
40655
|
}
|
|
40656
|
-
function cloneEvent(
|
|
40656
|
+
function cloneEvent(event2, target, value2) {
|
|
40657
40657
|
var currentTarget = target.cloneNode(true);
|
|
40658
|
-
var newEvent = Object.create(
|
|
40658
|
+
var newEvent = Object.create(event2, {
|
|
40659
40659
|
target: {
|
|
40660
40660
|
value: currentTarget
|
|
40661
40661
|
},
|
|
@@ -40677,18 +40677,18 @@ function resolveOnChange(target, e3, onChange, targetValue) {
|
|
|
40677
40677
|
if (!onChange) {
|
|
40678
40678
|
return;
|
|
40679
40679
|
}
|
|
40680
|
-
var
|
|
40680
|
+
var event2 = e3;
|
|
40681
40681
|
if (e3.type === "click") {
|
|
40682
|
-
|
|
40683
|
-
onChange(
|
|
40682
|
+
event2 = cloneEvent(e3, target, "");
|
|
40683
|
+
onChange(event2);
|
|
40684
40684
|
return;
|
|
40685
40685
|
}
|
|
40686
40686
|
if (target.type !== "file" && targetValue !== void 0) {
|
|
40687
|
-
|
|
40688
|
-
onChange(
|
|
40687
|
+
event2 = cloneEvent(e3, target, targetValue);
|
|
40688
|
+
onChange(event2);
|
|
40689
40689
|
return;
|
|
40690
40690
|
}
|
|
40691
|
-
onChange(
|
|
40691
|
+
onChange(event2);
|
|
40692
40692
|
}
|
|
40693
40693
|
function triggerFocus(element2, option) {
|
|
40694
40694
|
if (!element2) return;
|
|
@@ -40743,8 +40743,8 @@ var BaseInput = /* @__PURE__ */ React__default.forwardRef(function(props, ref) {
|
|
|
40743
40743
|
clearIcon = /* @__PURE__ */ React__default.createElement("button", {
|
|
40744
40744
|
type: "button",
|
|
40745
40745
|
tabIndex: -1,
|
|
40746
|
-
onClick: function onClick(
|
|
40747
|
-
handleReset === null || handleReset === void 0 || handleReset(
|
|
40746
|
+
onClick: function onClick(event2) {
|
|
40747
|
+
handleReset === null || handleReset === void 0 || handleReset(event2);
|
|
40748
40748
|
onClear === null || onClear === void 0 || onClear();
|
|
40749
40749
|
},
|
|
40750
40750
|
onMouseDown: function onMouseDown(e3) {
|
|
@@ -43657,18 +43657,18 @@ const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
43657
43657
|
}
|
|
43658
43658
|
});
|
|
43659
43659
|
};
|
|
43660
|
-
const onInternalKeyDown = (
|
|
43660
|
+
const onInternalKeyDown = (event2) => {
|
|
43661
43661
|
const {
|
|
43662
43662
|
key,
|
|
43663
43663
|
ctrlKey,
|
|
43664
43664
|
metaKey
|
|
43665
|
-
} =
|
|
43665
|
+
} = event2;
|
|
43666
43666
|
if (key === "ArrowLeft") {
|
|
43667
43667
|
onActiveChange(index2 - 1);
|
|
43668
43668
|
} else if (key === "ArrowRight") {
|
|
43669
43669
|
onActiveChange(index2 + 1);
|
|
43670
43670
|
} else if (key === "z" && (ctrlKey || metaKey)) {
|
|
43671
|
-
|
|
43671
|
+
event2.preventDefault();
|
|
43672
43672
|
}
|
|
43673
43673
|
syncSelection();
|
|
43674
43674
|
};
|
|
@@ -44229,9 +44229,9 @@ var ResizableTextArea = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
44229
44229
|
return val !== null && val !== void 0 ? val : "";
|
|
44230
44230
|
}
|
|
44231
44231
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedValue = _useMergedState2[0], setMergedValue = _useMergedState2[1];
|
|
44232
|
-
var onInternalChange = function onInternalChange2(
|
|
44233
|
-
setMergedValue(
|
|
44234
|
-
onChange === null || onChange === void 0 || onChange(
|
|
44232
|
+
var onInternalChange = function onInternalChange2(event2) {
|
|
44233
|
+
setMergedValue(event2.target.value);
|
|
44234
|
+
onChange === null || onChange === void 0 || onChange(event2);
|
|
44235
44235
|
};
|
|
44236
44236
|
var textareaRef = React.useRef();
|
|
44237
44237
|
React.useImperativeHandle(ref, function() {
|
|
@@ -44948,17 +44948,17 @@ var Pagination$1 = function Pagination(props) {
|
|
|
44948
44948
|
return isInteger(page) && page !== current && isInteger(total) && total > 0;
|
|
44949
44949
|
}
|
|
44950
44950
|
var shouldDisplayQuickJumper = total > pageSize ? showQuickJumper : false;
|
|
44951
|
-
function handleKeyDown(
|
|
44952
|
-
if (
|
|
44953
|
-
|
|
44951
|
+
function handleKeyDown(event2) {
|
|
44952
|
+
if (event2.keyCode === KeyCode.UP || event2.keyCode === KeyCode.DOWN) {
|
|
44953
|
+
event2.preventDefault();
|
|
44954
44954
|
}
|
|
44955
44955
|
}
|
|
44956
|
-
function handleKeyUp(
|
|
44957
|
-
var value2 = getValidValue(
|
|
44956
|
+
function handleKeyUp(event2) {
|
|
44957
|
+
var value2 = getValidValue(event2);
|
|
44958
44958
|
if (value2 !== internalInputVal) {
|
|
44959
44959
|
setInternalInputVal(value2);
|
|
44960
44960
|
}
|
|
44961
|
-
switch (
|
|
44961
|
+
switch (event2.keyCode) {
|
|
44962
44962
|
case KeyCode.ENTER:
|
|
44963
44963
|
handleChange(value2);
|
|
44964
44964
|
break;
|
|
@@ -44970,8 +44970,8 @@ var Pagination$1 = function Pagination(props) {
|
|
|
44970
44970
|
break;
|
|
44971
44971
|
}
|
|
44972
44972
|
}
|
|
44973
|
-
function handleBlur(
|
|
44974
|
-
handleChange(getValidValue(
|
|
44973
|
+
function handleBlur(event2) {
|
|
44974
|
+
handleChange(getValidValue(event2));
|
|
44975
44975
|
}
|
|
44976
44976
|
function changePageSize(size) {
|
|
44977
44977
|
var newCurrent = calculatePage(size, pageSize, total);
|
|
@@ -45014,25 +45014,25 @@ var Pagination$1 = function Pagination(props) {
|
|
|
45014
45014
|
function jumpNextHandle() {
|
|
45015
45015
|
handleChange(jumpNextPage);
|
|
45016
45016
|
}
|
|
45017
|
-
function runIfEnter(
|
|
45018
|
-
if (
|
|
45017
|
+
function runIfEnter(event2, callback) {
|
|
45018
|
+
if (event2.key === "Enter" || event2.charCode === KeyCode.ENTER || event2.keyCode === KeyCode.ENTER) {
|
|
45019
45019
|
for (var _len = arguments.length, restParams = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
45020
45020
|
restParams[_key - 2] = arguments[_key];
|
|
45021
45021
|
}
|
|
45022
45022
|
callback.apply(void 0, restParams);
|
|
45023
45023
|
}
|
|
45024
45024
|
}
|
|
45025
|
-
function runIfEnterPrev(
|
|
45026
|
-
runIfEnter(
|
|
45025
|
+
function runIfEnterPrev(event2) {
|
|
45026
|
+
runIfEnter(event2, prevHandle);
|
|
45027
45027
|
}
|
|
45028
|
-
function runIfEnterNext(
|
|
45029
|
-
runIfEnter(
|
|
45028
|
+
function runIfEnterNext(event2) {
|
|
45029
|
+
runIfEnter(event2, nextHandle);
|
|
45030
45030
|
}
|
|
45031
|
-
function runIfEnterJumpPrev(
|
|
45032
|
-
runIfEnter(
|
|
45031
|
+
function runIfEnterJumpPrev(event2) {
|
|
45032
|
+
runIfEnter(event2, jumpPrevHandle);
|
|
45033
45033
|
}
|
|
45034
|
-
function runIfEnterJumpNext(
|
|
45035
|
-
runIfEnter(
|
|
45034
|
+
function runIfEnterJumpNext(event2) {
|
|
45035
|
+
runIfEnter(event2, jumpNextHandle);
|
|
45036
45036
|
}
|
|
45037
45037
|
function renderPrev(prevPage2) {
|
|
45038
45038
|
var prevButton = itemRender(prevPage2, "prev", getItemIcon(prevIcon, "prev page"));
|
|
@@ -45046,8 +45046,8 @@ var Pagination$1 = function Pagination(props) {
|
|
|
45046
45046
|
disabled: !hasNext
|
|
45047
45047
|
}) : nextButton;
|
|
45048
45048
|
}
|
|
45049
|
-
function handleGoTO(
|
|
45050
|
-
if (
|
|
45049
|
+
function handleGoTO(event2) {
|
|
45050
|
+
if (event2.type === "click" || event2.keyCode === KeyCode.ENTER) {
|
|
45051
45051
|
handleChange(internalInputVal);
|
|
45052
45052
|
}
|
|
45053
45053
|
}
|
|
@@ -48857,12 +48857,12 @@ var Switch$3 = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
|
|
|
48857
48857
|
value: checked,
|
|
48858
48858
|
defaultValue: defaultChecked
|
|
48859
48859
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), innerChecked = _useMergedState2[0], setInnerChecked = _useMergedState2[1];
|
|
48860
|
-
function triggerChange(newChecked,
|
|
48860
|
+
function triggerChange(newChecked, event2) {
|
|
48861
48861
|
var mergedChecked = innerChecked;
|
|
48862
48862
|
if (!disabled2) {
|
|
48863
48863
|
mergedChecked = newChecked;
|
|
48864
48864
|
setInnerChecked(mergedChecked);
|
|
48865
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked,
|
|
48865
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event2);
|
|
48866
48866
|
}
|
|
48867
48867
|
return mergedChecked;
|
|
48868
48868
|
}
|
|
@@ -49564,19 +49564,19 @@ function Cell(props) {
|
|
|
49564
49564
|
var mergedColSpan = (_ref2 = (_ref3 = (_legacyCellProps$colS = legacyCellProps === null || legacyCellProps === void 0 ? void 0 : legacyCellProps.colSpan) !== null && _legacyCellProps$colS !== void 0 ? _legacyCellProps$colS : additionalProps.colSpan) !== null && _ref3 !== void 0 ? _ref3 : colSpan) !== null && _ref2 !== void 0 ? _ref2 : 1;
|
|
49565
49565
|
var mergedRowSpan = (_ref4 = (_ref5 = (_legacyCellProps$rowS = legacyCellProps === null || legacyCellProps === void 0 ? void 0 : legacyCellProps.rowSpan) !== null && _legacyCellProps$rowS !== void 0 ? _legacyCellProps$rowS : additionalProps.rowSpan) !== null && _ref5 !== void 0 ? _ref5 : rowSpan) !== null && _ref4 !== void 0 ? _ref4 : 1;
|
|
49566
49566
|
var _useHoverState = useHoverState(index2, mergedRowSpan), _useHoverState2 = _slicedToArray(_useHoverState, 2), hovering = _useHoverState2[0], onHover = _useHoverState2[1];
|
|
49567
|
-
var onMouseEnter = useEvent(function(
|
|
49567
|
+
var onMouseEnter = useEvent(function(event2) {
|
|
49568
49568
|
var _additionalProps$onMo;
|
|
49569
49569
|
if (record) {
|
|
49570
49570
|
onHover(index2, index2 + mergedRowSpan - 1);
|
|
49571
49571
|
}
|
|
49572
|
-
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo = additionalProps.onMouseEnter) === null || _additionalProps$onMo === void 0 || _additionalProps$onMo.call(additionalProps,
|
|
49572
|
+
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo = additionalProps.onMouseEnter) === null || _additionalProps$onMo === void 0 || _additionalProps$onMo.call(additionalProps, event2);
|
|
49573
49573
|
});
|
|
49574
|
-
var onMouseLeave = useEvent(function(
|
|
49574
|
+
var onMouseLeave = useEvent(function(event2) {
|
|
49575
49575
|
var _additionalProps$onMo2;
|
|
49576
49576
|
if (record) {
|
|
49577
49577
|
onHover(-1, -1);
|
|
49578
49578
|
}
|
|
49579
|
-
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo2 = additionalProps.onMouseLeave) === null || _additionalProps$onMo2 === void 0 || _additionalProps$onMo2.call(additionalProps,
|
|
49579
|
+
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo2 = additionalProps.onMouseLeave) === null || _additionalProps$onMo2 === void 0 || _additionalProps$onMo2.call(additionalProps, event2);
|
|
49580
49580
|
});
|
|
49581
49581
|
if (mergedColSpan === 0 || mergedRowSpan === 0) {
|
|
49582
49582
|
return null;
|
|
@@ -49767,14 +49767,14 @@ function useRowInfo(record, rowKey, recordIndex, indent) {
|
|
|
49767
49767
|
var onInternalTriggerExpand = useEvent(onTriggerExpand);
|
|
49768
49768
|
var rowProps = onRow === null || onRow === void 0 ? void 0 : onRow(record, recordIndex);
|
|
49769
49769
|
var onRowClick = rowProps === null || rowProps === void 0 ? void 0 : rowProps.onClick;
|
|
49770
|
-
var onClick = function onClick2(
|
|
49770
|
+
var onClick = function onClick2(event2) {
|
|
49771
49771
|
if (expandRowByClick && mergedExpandable) {
|
|
49772
|
-
onTriggerExpand(record,
|
|
49772
|
+
onTriggerExpand(record, event2);
|
|
49773
49773
|
}
|
|
49774
49774
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
49775
49775
|
args[_key - 1] = arguments[_key];
|
|
49776
49776
|
}
|
|
49777
|
-
onRowClick === null || onRowClick === void 0 || onRowClick.apply(void 0, [
|
|
49777
|
+
onRowClick === null || onRowClick === void 0 || onRowClick.apply(void 0, [event2].concat(args));
|
|
49778
49778
|
};
|
|
49779
49779
|
var computeRowClassName;
|
|
49780
49780
|
if (typeof rowClassName === "string") {
|
|
@@ -49835,9 +49835,9 @@ function renderExpandIcon$1(_ref) {
|
|
|
49835
49835
|
className: classNames(expandClassName, "".concat(prefixCls, "-row-spaced"))
|
|
49836
49836
|
});
|
|
49837
49837
|
}
|
|
49838
|
-
var onClick = function onClick2(
|
|
49839
|
-
onExpand(record,
|
|
49840
|
-
|
|
49838
|
+
var onClick = function onClick2(event2) {
|
|
49839
|
+
onExpand(record, event2);
|
|
49840
|
+
event2.stopPropagation();
|
|
49841
49841
|
};
|
|
49842
49842
|
return /* @__PURE__ */ React.createElement("span", {
|
|
49843
49843
|
className: classNames(expandClassName, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-row-expanded"), expanded), "".concat(prefixCls, "-row-collapsed"), !expanded)),
|
|
@@ -50833,23 +50833,23 @@ var StickyScrollBar = function StickyScrollBar2(_ref, ref) {
|
|
|
50833
50833
|
var onMouseUp = function onMouseUp2() {
|
|
50834
50834
|
setActive(false);
|
|
50835
50835
|
};
|
|
50836
|
-
var onMouseDown = function onMouseDown2(
|
|
50837
|
-
|
|
50838
|
-
refState.current.delta =
|
|
50836
|
+
var onMouseDown = function onMouseDown2(event2) {
|
|
50837
|
+
event2.persist();
|
|
50838
|
+
refState.current.delta = event2.pageX - scrollState.scrollLeft;
|
|
50839
50839
|
refState.current.x = 0;
|
|
50840
50840
|
setActive(true);
|
|
50841
|
-
|
|
50841
|
+
event2.preventDefault();
|
|
50842
50842
|
};
|
|
50843
|
-
var onMouseMove = function onMouseMove2(
|
|
50843
|
+
var onMouseMove = function onMouseMove2(event2) {
|
|
50844
50844
|
var _window;
|
|
50845
|
-
var _ref2 =
|
|
50845
|
+
var _ref2 = event2 || ((_window = window) === null || _window === void 0 ? void 0 : _window.event), buttons = _ref2.buttons;
|
|
50846
50846
|
if (!isActive2 || buttons === 0) {
|
|
50847
50847
|
if (isActive2) {
|
|
50848
50848
|
setActive(false);
|
|
50849
50849
|
}
|
|
50850
50850
|
return;
|
|
50851
50851
|
}
|
|
50852
|
-
var left = refState.current.x +
|
|
50852
|
+
var left = refState.current.x + event2.pageX - refState.current.x - refState.current.delta;
|
|
50853
50853
|
var isRTL = direction === "rtl";
|
|
50854
50854
|
left = Math.max(isRTL ? scrollBarWidth - bodyWidth : 0, Math.min(isRTL ? 0 : bodyWidth - scrollBarWidth, left));
|
|
50855
50855
|
var shouldScroll = !isRTL || Math.abs(left) + Math.abs(scrollBarWidth) < bodyWidth;
|
|
@@ -50857,7 +50857,7 @@ var StickyScrollBar = function StickyScrollBar2(_ref, ref) {
|
|
|
50857
50857
|
onScroll({
|
|
50858
50858
|
scrollLeft: left / bodyWidth * (bodyScrollWidth + 2)
|
|
50859
50859
|
});
|
|
50860
|
-
refState.current.x =
|
|
50860
|
+
refState.current.x = event2.pageX;
|
|
50861
50861
|
}
|
|
50862
50862
|
};
|
|
50863
50863
|
var checkScrollBarVisible = function checkScrollBarVisible2() {
|
|
@@ -52188,10 +52188,10 @@ function isFirstChild(treeNodeEntity) {
|
|
|
52188
52188
|
var posArr = posToArr(treeNodeEntity.pos);
|
|
52189
52189
|
return Number(posArr[posArr.length - 1]) === 0;
|
|
52190
52190
|
}
|
|
52191
|
-
function calcDropPosition(
|
|
52191
|
+
function calcDropPosition(event2, dragNodeProps, targetNodeProps, indent, startMousePosition, allowDrop2, flattenedNodes, keyEntities, expandKeys, direction) {
|
|
52192
52192
|
var _abstractDropNodeEnti;
|
|
52193
|
-
var clientX =
|
|
52194
|
-
var _getBoundingClientRec =
|
|
52193
|
+
var clientX = event2.clientX, clientY = event2.clientY;
|
|
52194
|
+
var _getBoundingClientRec = event2.target.getBoundingClientRect(), top = _getBoundingClientRec.top, height = _getBoundingClientRec.height;
|
|
52195
52195
|
var horizontalMouseOffset = (direction === "rtl" ? -1 : 1) * (((startMousePosition === null || startMousePosition === void 0 ? void 0 : startMousePosition.x) || 0) - clientX);
|
|
52196
52196
|
var rawDropLevelOffset = (horizontalMouseOffset - 12) / indent;
|
|
52197
52197
|
var filteredExpandKeys = expandKeys.filter(function(key) {
|
|
@@ -52519,10 +52519,10 @@ const useSelection = (config, rowSelection) => {
|
|
|
52519
52519
|
type: method4
|
|
52520
52520
|
});
|
|
52521
52521
|
}, [setMergedSelectedKeys, getRecordByKey, onSelectionChange, preserveSelectedRowKeys]);
|
|
52522
|
-
const triggerSingleSelection = useCallback((key, selected, keys2,
|
|
52522
|
+
const triggerSingleSelection = useCallback((key, selected, keys2, event2) => {
|
|
52523
52523
|
if (onSelect) {
|
|
52524
52524
|
const rows = keys2.map((k) => getRecordByKey(k));
|
|
52525
|
-
onSelect(getRecordByKey(key), selected, rows,
|
|
52525
|
+
onSelect(getRecordByKey(key), selected, rows, event2);
|
|
52526
52526
|
}
|
|
52527
52527
|
setSelectedKeys(keys2, "single");
|
|
52528
52528
|
}, [onSelect, getRecordByKey, setSelectedKeys]);
|
|
@@ -52704,12 +52704,12 @@ const useSelection = (config, rowSelection) => {
|
|
|
52704
52704
|
e3.stopPropagation();
|
|
52705
52705
|
(_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, e3);
|
|
52706
52706
|
},
|
|
52707
|
-
onChange: (
|
|
52707
|
+
onChange: (event2) => {
|
|
52708
52708
|
var _a2;
|
|
52709
52709
|
if (!keySet.has(key)) {
|
|
52710
|
-
triggerSingleSelection(key, true, [key],
|
|
52710
|
+
triggerSingleSelection(key, true, [key], event2.nativeEvent);
|
|
52711
52711
|
}
|
|
52712
|
-
(_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps,
|
|
52712
|
+
(_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, event2);
|
|
52713
52713
|
}
|
|
52714
52714
|
})),
|
|
52715
52715
|
checked
|
|
@@ -52739,11 +52739,11 @@ const useSelection = (config, rowSelection) => {
|
|
|
52739
52739
|
e3.stopPropagation();
|
|
52740
52740
|
(_a3 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a3 === void 0 ? void 0 : _a3.call(checkboxProps, e3);
|
|
52741
52741
|
},
|
|
52742
|
-
onChange: (
|
|
52742
|
+
onChange: (event2) => {
|
|
52743
52743
|
var _a3;
|
|
52744
52744
|
const {
|
|
52745
52745
|
nativeEvent
|
|
52746
|
-
} =
|
|
52746
|
+
} = event2;
|
|
52747
52747
|
const {
|
|
52748
52748
|
shiftKey
|
|
52749
52749
|
} = nativeEvent;
|
|
@@ -52781,7 +52781,7 @@ const useSelection = (config, rowSelection) => {
|
|
|
52781
52781
|
} else {
|
|
52782
52782
|
updatePrevSelectedIndex(currentSelectedIndex);
|
|
52783
52783
|
}
|
|
52784
|
-
(_a3 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a3 === void 0 ? void 0 : _a3.call(checkboxProps,
|
|
52784
|
+
(_a3 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a3 === void 0 ? void 0 : _a3.call(checkboxProps, event2);
|
|
52785
52785
|
}
|
|
52786
52786
|
})),
|
|
52787
52787
|
checked
|
|
@@ -53391,14 +53391,14 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53391
53391
|
_defineProperty$1(_assertThisInitialized(_this), "dragNodeProps", null);
|
|
53392
53392
|
_defineProperty$1(_assertThisInitialized(_this), "currentMouseOverDroppableNodeKey", null);
|
|
53393
53393
|
_defineProperty$1(_assertThisInitialized(_this), "listRef", /* @__PURE__ */ React.createRef());
|
|
53394
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragStart", function(
|
|
53394
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragStart", function(event2, nodeProps) {
|
|
53395
53395
|
var _this$state = _this.state, expandedKeys = _this$state.expandedKeys, keyEntities = _this$state.keyEntities;
|
|
53396
53396
|
var onDragStart = _this.props.onDragStart;
|
|
53397
53397
|
var eventKey = nodeProps.eventKey;
|
|
53398
53398
|
_this.dragNodeProps = nodeProps;
|
|
53399
53399
|
_this.dragStartMousePosition = {
|
|
53400
|
-
x:
|
|
53401
|
-
y:
|
|
53400
|
+
x: event2.clientX,
|
|
53401
|
+
y: event2.clientY
|
|
53402
53402
|
};
|
|
53403
53403
|
var newExpandedKeys = arrDel(expandedKeys, eventKey);
|
|
53404
53404
|
_this.setState({
|
|
@@ -53409,11 +53409,11 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53409
53409
|
_this.setExpandedKeys(newExpandedKeys);
|
|
53410
53410
|
window.addEventListener("dragend", _this.onWindowDragEnd);
|
|
53411
53411
|
onDragStart === null || onDragStart === void 0 || onDragStart({
|
|
53412
|
-
event,
|
|
53412
|
+
event: event2,
|
|
53413
53413
|
node: convertNodePropsToEventData(nodeProps)
|
|
53414
53414
|
});
|
|
53415
53415
|
});
|
|
53416
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnter", function(
|
|
53416
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnter", function(event2, nodeProps) {
|
|
53417
53417
|
var _this$state2 = _this.state, expandedKeys = _this$state2.expandedKeys, keyEntities = _this$state2.keyEntities, dragChildrenKeys = _this$state2.dragChildrenKeys, flattenNodes = _this$state2.flattenNodes, indent = _this$state2.indent;
|
|
53418
53418
|
var _this$props = _this.props, onDragEnter = _this$props.onDragEnter, onExpand = _this$props.onExpand, allowDrop2 = _this$props.allowDrop, direction = _this$props.direction;
|
|
53419
53419
|
var pos = nodeProps.pos, eventKey = nodeProps.eventKey;
|
|
@@ -53424,7 +53424,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53424
53424
|
_this.resetDragState();
|
|
53425
53425
|
return;
|
|
53426
53426
|
}
|
|
53427
|
-
var _calcDropPosition = calcDropPosition(
|
|
53427
|
+
var _calcDropPosition = calcDropPosition(event2, _this.dragNodeProps, nodeProps, indent, _this.dragStartMousePosition, allowDrop2, flattenNodes, keyEntities, expandedKeys, direction), dropPosition = _calcDropPosition.dropPosition, dropLevelOffset = _calcDropPosition.dropLevelOffset, dropTargetKey = _calcDropPosition.dropTargetKey, dropContainerKey = _calcDropPosition.dropContainerKey, dropTargetPos = _calcDropPosition.dropTargetPos, dropAllowed = _calcDropPosition.dropAllowed, dragOverNodeKey = _calcDropPosition.dragOverNodeKey;
|
|
53428
53428
|
if (
|
|
53429
53429
|
// don't allow drop inside its children
|
|
53430
53430
|
dragChildrenKeys.includes(dropTargetKey) || // don't allow drop when drop is not allowed caculated by calcDropPosition
|
|
@@ -53440,7 +53440,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53440
53440
|
clearTimeout(_this.delayedDragEnterLogic[key]);
|
|
53441
53441
|
});
|
|
53442
53442
|
if (_this.dragNodeProps.eventKey !== nodeProps.eventKey) {
|
|
53443
|
-
|
|
53443
|
+
event2.persist();
|
|
53444
53444
|
_this.delayedDragEnterLogic[pos] = window.setTimeout(function() {
|
|
53445
53445
|
if (_this.state.draggingNodeKey === null) {
|
|
53446
53446
|
return;
|
|
@@ -53456,7 +53456,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53456
53456
|
onExpand === null || onExpand === void 0 || onExpand(newExpandedKeys, {
|
|
53457
53457
|
node: convertNodePropsToEventData(nodeProps),
|
|
53458
53458
|
expanded: true,
|
|
53459
|
-
nativeEvent:
|
|
53459
|
+
nativeEvent: event2.nativeEvent
|
|
53460
53460
|
});
|
|
53461
53461
|
}, 800);
|
|
53462
53462
|
}
|
|
@@ -53474,18 +53474,18 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53474
53474
|
dropAllowed
|
|
53475
53475
|
});
|
|
53476
53476
|
onDragEnter === null || onDragEnter === void 0 || onDragEnter({
|
|
53477
|
-
event,
|
|
53477
|
+
event: event2,
|
|
53478
53478
|
node: convertNodePropsToEventData(nodeProps),
|
|
53479
53479
|
expandedKeys
|
|
53480
53480
|
});
|
|
53481
53481
|
});
|
|
53482
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragOver", function(
|
|
53482
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragOver", function(event2, nodeProps) {
|
|
53483
53483
|
var _this$state3 = _this.state, dragChildrenKeys = _this$state3.dragChildrenKeys, flattenNodes = _this$state3.flattenNodes, keyEntities = _this$state3.keyEntities, expandedKeys = _this$state3.expandedKeys, indent = _this$state3.indent;
|
|
53484
53484
|
var _this$props2 = _this.props, onDragOver = _this$props2.onDragOver, allowDrop2 = _this$props2.allowDrop, direction = _this$props2.direction;
|
|
53485
53485
|
if (!_this.dragNodeProps) {
|
|
53486
53486
|
return;
|
|
53487
53487
|
}
|
|
53488
|
-
var _calcDropPosition2 = calcDropPosition(
|
|
53488
|
+
var _calcDropPosition2 = calcDropPosition(event2, _this.dragNodeProps, nodeProps, indent, _this.dragStartMousePosition, allowDrop2, flattenNodes, keyEntities, expandedKeys, direction), dropPosition = _calcDropPosition2.dropPosition, dropLevelOffset = _calcDropPosition2.dropLevelOffset, dropTargetKey = _calcDropPosition2.dropTargetKey, dropContainerKey = _calcDropPosition2.dropContainerKey, dropTargetPos = _calcDropPosition2.dropTargetPos, dropAllowed = _calcDropPosition2.dropAllowed, dragOverNodeKey = _calcDropPosition2.dragOverNodeKey;
|
|
53489
53489
|
if (dragChildrenKeys.includes(dropTargetKey) || !dropAllowed) {
|
|
53490
53490
|
return;
|
|
53491
53491
|
}
|
|
@@ -53505,39 +53505,39 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53505
53505
|
});
|
|
53506
53506
|
}
|
|
53507
53507
|
onDragOver === null || onDragOver === void 0 || onDragOver({
|
|
53508
|
-
event,
|
|
53508
|
+
event: event2,
|
|
53509
53509
|
node: convertNodePropsToEventData(nodeProps)
|
|
53510
53510
|
});
|
|
53511
53511
|
});
|
|
53512
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragLeave", function(
|
|
53513
|
-
if (_this.currentMouseOverDroppableNodeKey === nodeProps.eventKey && !
|
|
53512
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragLeave", function(event2, nodeProps) {
|
|
53513
|
+
if (_this.currentMouseOverDroppableNodeKey === nodeProps.eventKey && !event2.currentTarget.contains(event2.relatedTarget)) {
|
|
53514
53514
|
_this.resetDragState();
|
|
53515
53515
|
_this.currentMouseOverDroppableNodeKey = null;
|
|
53516
53516
|
}
|
|
53517
53517
|
var onDragLeave = _this.props.onDragLeave;
|
|
53518
53518
|
onDragLeave === null || onDragLeave === void 0 || onDragLeave({
|
|
53519
|
-
event,
|
|
53519
|
+
event: event2,
|
|
53520
53520
|
node: convertNodePropsToEventData(nodeProps)
|
|
53521
53521
|
});
|
|
53522
53522
|
});
|
|
53523
|
-
_defineProperty$1(_assertThisInitialized(_this), "onWindowDragEnd", function(
|
|
53524
|
-
_this.onNodeDragEnd(
|
|
53523
|
+
_defineProperty$1(_assertThisInitialized(_this), "onWindowDragEnd", function(event2) {
|
|
53524
|
+
_this.onNodeDragEnd(event2, null, true);
|
|
53525
53525
|
window.removeEventListener("dragend", _this.onWindowDragEnd);
|
|
53526
53526
|
});
|
|
53527
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnd", function(
|
|
53527
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnd", function(event2, nodeProps) {
|
|
53528
53528
|
var onDragEnd = _this.props.onDragEnd;
|
|
53529
53529
|
_this.setState({
|
|
53530
53530
|
dragOverNodeKey: null
|
|
53531
53531
|
});
|
|
53532
53532
|
_this.cleanDragState();
|
|
53533
53533
|
onDragEnd === null || onDragEnd === void 0 || onDragEnd({
|
|
53534
|
-
event,
|
|
53534
|
+
event: event2,
|
|
53535
53535
|
node: convertNodePropsToEventData(nodeProps)
|
|
53536
53536
|
});
|
|
53537
53537
|
_this.dragNodeProps = null;
|
|
53538
53538
|
window.removeEventListener("dragend", _this.onWindowDragEnd);
|
|
53539
53539
|
});
|
|
53540
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDrop", function(
|
|
53540
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDrop", function(event2, _) {
|
|
53541
53541
|
var _this$getActiveItem;
|
|
53542
53542
|
var outsideTree = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
53543
53543
|
var _this$state4 = _this.state, dragChildrenKeys = _this$state4.dragChildrenKeys, dropPosition = _this$state4.dropPosition, dropTargetKey = _this$state4.dropTargetKey, dropTargetPos = _this$state4.dropTargetPos, dropAllowed = _this$state4.dropAllowed;
|
|
@@ -53558,7 +53558,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53558
53558
|
warningOnce(!dropToChild, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");
|
|
53559
53559
|
var posArr = posToArr(dropTargetPos);
|
|
53560
53560
|
var dropResult = {
|
|
53561
|
-
event,
|
|
53561
|
+
event: event2,
|
|
53562
53562
|
node: convertNodePropsToEventData(abstractDropNodeProps),
|
|
53563
53563
|
dragNode: _this.dragNodeProps ? convertNodePropsToEventData(_this.dragNodeProps) : null,
|
|
53564
53564
|
dragNodesKeys: [_this.dragNodeProps.eventKey].concat(dragChildrenKeys),
|
|
@@ -53761,26 +53761,26 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53761
53761
|
});
|
|
53762
53762
|
return loadPromise;
|
|
53763
53763
|
});
|
|
53764
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseEnter", function(
|
|
53764
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseEnter", function(event2, node2) {
|
|
53765
53765
|
var onMouseEnter = _this.props.onMouseEnter;
|
|
53766
53766
|
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter({
|
|
53767
|
-
event,
|
|
53767
|
+
event: event2,
|
|
53768
53768
|
node: node2
|
|
53769
53769
|
});
|
|
53770
53770
|
});
|
|
53771
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseLeave", function(
|
|
53771
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseLeave", function(event2, node2) {
|
|
53772
53772
|
var onMouseLeave = _this.props.onMouseLeave;
|
|
53773
53773
|
onMouseLeave === null || onMouseLeave === void 0 || onMouseLeave({
|
|
53774
|
-
event,
|
|
53774
|
+
event: event2,
|
|
53775
53775
|
node: node2
|
|
53776
53776
|
});
|
|
53777
53777
|
});
|
|
53778
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeContextMenu", function(
|
|
53778
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeContextMenu", function(event2, node2) {
|
|
53779
53779
|
var onRightClick = _this.props.onRightClick;
|
|
53780
53780
|
if (onRightClick) {
|
|
53781
|
-
|
|
53781
|
+
event2.preventDefault();
|
|
53782
53782
|
onRightClick({
|
|
53783
|
-
event,
|
|
53783
|
+
event: event2,
|
|
53784
53784
|
node: node2
|
|
53785
53785
|
});
|
|
53786
53786
|
}
|
|
@@ -53920,18 +53920,18 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53920
53920
|
_this.onActiveChange(null);
|
|
53921
53921
|
}
|
|
53922
53922
|
});
|
|
53923
|
-
_defineProperty$1(_assertThisInitialized(_this), "onKeyDown", function(
|
|
53923
|
+
_defineProperty$1(_assertThisInitialized(_this), "onKeyDown", function(event2) {
|
|
53924
53924
|
var _this$state13 = _this.state, activeKey = _this$state13.activeKey, expandedKeys = _this$state13.expandedKeys, checkedKeys = _this$state13.checkedKeys, fieldNames = _this$state13.fieldNames;
|
|
53925
53925
|
var _this$props10 = _this.props, onKeyDown2 = _this$props10.onKeyDown, checkable = _this$props10.checkable, selectable = _this$props10.selectable;
|
|
53926
|
-
switch (
|
|
53926
|
+
switch (event2.which) {
|
|
53927
53927
|
case KeyCode.UP: {
|
|
53928
53928
|
_this.offsetActiveKey(-1);
|
|
53929
|
-
|
|
53929
|
+
event2.preventDefault();
|
|
53930
53930
|
break;
|
|
53931
53931
|
}
|
|
53932
53932
|
case KeyCode.DOWN: {
|
|
53933
53933
|
_this.offsetActiveKey(1);
|
|
53934
|
-
|
|
53934
|
+
event2.preventDefault();
|
|
53935
53935
|
break;
|
|
53936
53936
|
}
|
|
53937
53937
|
}
|
|
@@ -53943,7 +53943,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53943
53943
|
data: activeItem.data,
|
|
53944
53944
|
active: true
|
|
53945
53945
|
}));
|
|
53946
|
-
switch (
|
|
53946
|
+
switch (event2.which) {
|
|
53947
53947
|
// >>> Expand
|
|
53948
53948
|
case KeyCode.LEFT: {
|
|
53949
53949
|
if (expandable && expandedKeys.includes(activeKey)) {
|
|
@@ -53951,7 +53951,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53951
53951
|
} else if (activeItem.parent) {
|
|
53952
53952
|
_this.onActiveChange(activeItem.parent.key);
|
|
53953
53953
|
}
|
|
53954
|
-
|
|
53954
|
+
event2.preventDefault();
|
|
53955
53955
|
break;
|
|
53956
53956
|
}
|
|
53957
53957
|
case KeyCode.RIGHT: {
|
|
@@ -53960,7 +53960,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53960
53960
|
} else if (activeItem.children && activeItem.children.length) {
|
|
53961
53961
|
_this.onActiveChange(activeItem.children[0].key);
|
|
53962
53962
|
}
|
|
53963
|
-
|
|
53963
|
+
event2.preventDefault();
|
|
53964
53964
|
break;
|
|
53965
53965
|
}
|
|
53966
53966
|
// Selection
|
|
@@ -53975,7 +53975,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53975
53975
|
}
|
|
53976
53976
|
}
|
|
53977
53977
|
}
|
|
53978
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
53978
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2);
|
|
53979
53979
|
});
|
|
53980
53980
|
_defineProperty$1(_assertThisInitialized(_this), "setUncontrolledState", function(state) {
|
|
53981
53981
|
var atomic = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
@@ -54994,7 +54994,7 @@ const DirectoryTree = (_a, ref) => {
|
|
|
54994
54994
|
}
|
|
54995
54995
|
return (_a2 = props.onExpand) === null || _a2 === void 0 ? void 0 : _a2.call(props, keys2, info);
|
|
54996
54996
|
};
|
|
54997
|
-
const onSelect = (keys2,
|
|
54997
|
+
const onSelect = (keys2, event2) => {
|
|
54998
54998
|
var _a2;
|
|
54999
54999
|
const {
|
|
55000
55000
|
multiple,
|
|
@@ -55003,12 +55003,12 @@ const DirectoryTree = (_a, ref) => {
|
|
|
55003
55003
|
const {
|
|
55004
55004
|
node: node2,
|
|
55005
55005
|
nativeEvent
|
|
55006
|
-
} =
|
|
55006
|
+
} = event2;
|
|
55007
55007
|
const {
|
|
55008
55008
|
key = ""
|
|
55009
55009
|
} = node2;
|
|
55010
55010
|
const treeData = getTreeData(props);
|
|
55011
|
-
const newEvent = Object.assign(Object.assign({},
|
|
55011
|
+
const newEvent = Object.assign(Object.assign({}, event2), {
|
|
55012
55012
|
selected: true
|
|
55013
55013
|
});
|
|
55014
55014
|
const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);
|
|
@@ -55098,12 +55098,12 @@ const FilterSearch = (props) => {
|
|
|
55098
55098
|
className: `${tablePrefixCls}-filter-dropdown-search-input`
|
|
55099
55099
|
}));
|
|
55100
55100
|
};
|
|
55101
|
-
const onKeyDown = (
|
|
55101
|
+
const onKeyDown = (event2) => {
|
|
55102
55102
|
const {
|
|
55103
55103
|
keyCode
|
|
55104
|
-
} =
|
|
55104
|
+
} = event2;
|
|
55105
55105
|
if (keyCode === KeyCode.ENTER) {
|
|
55106
|
-
|
|
55106
|
+
event2.stopPropagation();
|
|
55107
55107
|
}
|
|
55108
55108
|
};
|
|
55109
55109
|
const FilterDropdownMenuWrapper = /* @__PURE__ */ React.forwardRef((props, ref) => /* @__PURE__ */ React.createElement("div", {
|
|
@@ -55953,24 +55953,24 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
|
|
|
55953
55953
|
const cell = ((_a = column2.onHeaderCell) === null || _a === void 0 ? void 0 : _a.call(column2, col)) || {};
|
|
55954
55954
|
const originOnClick = cell.onClick;
|
|
55955
55955
|
const originOKeyDown = cell.onKeyDown;
|
|
55956
|
-
cell.onClick = (
|
|
55956
|
+
cell.onClick = (event2) => {
|
|
55957
55957
|
triggerSorter({
|
|
55958
55958
|
column: column2,
|
|
55959
55959
|
key: columnKey,
|
|
55960
55960
|
sortOrder: nextSortOrder,
|
|
55961
55961
|
multiplePriority: getMultiplePriority(column2)
|
|
55962
55962
|
});
|
|
55963
|
-
originOnClick === null || originOnClick === void 0 ? void 0 : originOnClick(
|
|
55963
|
+
originOnClick === null || originOnClick === void 0 ? void 0 : originOnClick(event2);
|
|
55964
55964
|
};
|
|
55965
|
-
cell.onKeyDown = (
|
|
55966
|
-
if (
|
|
55965
|
+
cell.onKeyDown = (event2) => {
|
|
55966
|
+
if (event2.keyCode === KeyCode.ENTER) {
|
|
55967
55967
|
triggerSorter({
|
|
55968
55968
|
column: column2,
|
|
55969
55969
|
key: columnKey,
|
|
55970
55970
|
sortOrder: nextSortOrder,
|
|
55971
55971
|
multiplePriority: getMultiplePriority(column2)
|
|
55972
55972
|
});
|
|
55973
|
-
originOKeyDown === null || originOKeyDown === void 0 ? void 0 : originOKeyDown(
|
|
55973
|
+
originOKeyDown === null || originOKeyDown === void 0 ? void 0 : originOKeyDown(event2);
|
|
55974
55974
|
}
|
|
55975
55975
|
};
|
|
55976
55976
|
const renderTitle = safeColumnTitle(column2.title, {});
|
|
@@ -60366,13 +60366,14 @@ const Typography = ({
|
|
|
60366
60366
|
}
|
|
60367
60367
|
);
|
|
60368
60368
|
}
|
|
60369
|
+
const validVariant = TYPOGRAPHY_VARIANT[variant] || "body2";
|
|
60369
60370
|
if (isText) {
|
|
60370
60371
|
return /* @__PURE__ */ jsx(
|
|
60371
60372
|
Text,
|
|
60372
60373
|
{
|
|
60373
60374
|
state,
|
|
60374
60375
|
$themeType: themeType,
|
|
60375
|
-
variant,
|
|
60376
|
+
variant: validVariant,
|
|
60376
60377
|
breakpoint,
|
|
60377
60378
|
color: color2,
|
|
60378
60379
|
$isFullWidth: isFullWidth,
|
|
@@ -60388,7 +60389,7 @@ const Typography = ({
|
|
|
60388
60389
|
{
|
|
60389
60390
|
state,
|
|
60390
60391
|
$themeType: themeType,
|
|
60391
|
-
variant,
|
|
60392
|
+
variant: validVariant,
|
|
60392
60393
|
breakpoint,
|
|
60393
60394
|
color: color2,
|
|
60394
60395
|
$isFullWidth: isFullWidth,
|
|
@@ -61334,30 +61335,30 @@ function mixin(obj) {
|
|
|
61334
61335
|
}
|
|
61335
61336
|
return obj;
|
|
61336
61337
|
}
|
|
61337
|
-
Emitter.prototype.on = Emitter.prototype.addEventListener = function(
|
|
61338
|
+
Emitter.prototype.on = Emitter.prototype.addEventListener = function(event2, fn) {
|
|
61338
61339
|
this._callbacks = this._callbacks || {};
|
|
61339
|
-
(this._callbacks["$" +
|
|
61340
|
+
(this._callbacks["$" + event2] = this._callbacks["$" + event2] || []).push(fn);
|
|
61340
61341
|
return this;
|
|
61341
61342
|
};
|
|
61342
|
-
Emitter.prototype.once = function(
|
|
61343
|
+
Emitter.prototype.once = function(event2, fn) {
|
|
61343
61344
|
function on2() {
|
|
61344
|
-
this.off(
|
|
61345
|
+
this.off(event2, on2);
|
|
61345
61346
|
fn.apply(this, arguments);
|
|
61346
61347
|
}
|
|
61347
61348
|
on2.fn = fn;
|
|
61348
|
-
this.on(
|
|
61349
|
+
this.on(event2, on2);
|
|
61349
61350
|
return this;
|
|
61350
61351
|
};
|
|
61351
|
-
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function(
|
|
61352
|
+
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function(event2, fn) {
|
|
61352
61353
|
this._callbacks = this._callbacks || {};
|
|
61353
61354
|
if (0 == arguments.length) {
|
|
61354
61355
|
this._callbacks = {};
|
|
61355
61356
|
return this;
|
|
61356
61357
|
}
|
|
61357
|
-
var callbacks = this._callbacks["$" +
|
|
61358
|
+
var callbacks = this._callbacks["$" + event2];
|
|
61358
61359
|
if (!callbacks) return this;
|
|
61359
61360
|
if (1 == arguments.length) {
|
|
61360
|
-
delete this._callbacks["$" +
|
|
61361
|
+
delete this._callbacks["$" + event2];
|
|
61361
61362
|
return this;
|
|
61362
61363
|
}
|
|
61363
61364
|
var cb;
|
|
@@ -61369,13 +61370,13 @@ Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.rem
|
|
|
61369
61370
|
}
|
|
61370
61371
|
}
|
|
61371
61372
|
if (callbacks.length === 0) {
|
|
61372
|
-
delete this._callbacks["$" +
|
|
61373
|
+
delete this._callbacks["$" + event2];
|
|
61373
61374
|
}
|
|
61374
61375
|
return this;
|
|
61375
61376
|
};
|
|
61376
|
-
Emitter.prototype.emit = function(
|
|
61377
|
+
Emitter.prototype.emit = function(event2) {
|
|
61377
61378
|
this._callbacks = this._callbacks || {};
|
|
61378
|
-
var args = new Array(arguments.length - 1), callbacks = this._callbacks["$" +
|
|
61379
|
+
var args = new Array(arguments.length - 1), callbacks = this._callbacks["$" + event2];
|
|
61379
61380
|
for (var i = 1; i < arguments.length; i++) {
|
|
61380
61381
|
args[i - 1] = arguments[i];
|
|
61381
61382
|
}
|
|
@@ -61388,12 +61389,12 @@ Emitter.prototype.emit = function(event) {
|
|
|
61388
61389
|
return this;
|
|
61389
61390
|
};
|
|
61390
61391
|
Emitter.prototype.emitReserved = Emitter.prototype.emit;
|
|
61391
|
-
Emitter.prototype.listeners = function(
|
|
61392
|
+
Emitter.prototype.listeners = function(event2) {
|
|
61392
61393
|
this._callbacks = this._callbacks || {};
|
|
61393
|
-
return this._callbacks["$" +
|
|
61394
|
+
return this._callbacks["$" + event2] || [];
|
|
61394
61395
|
};
|
|
61395
|
-
Emitter.prototype.hasListeners = function(
|
|
61396
|
-
return !!this.listeners(
|
|
61396
|
+
Emitter.prototype.hasListeners = function(event2) {
|
|
61397
|
+
return !!this.listeners(event2).length;
|
|
61397
61398
|
};
|
|
61398
61399
|
const nextTick = (() => {
|
|
61399
61400
|
const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
|
|
@@ -67800,7 +67801,7 @@ function chunkedPush(list2, right) {
|
|
|
67800
67801
|
function subtokenize(eventsArray) {
|
|
67801
67802
|
const jumps = {};
|
|
67802
67803
|
let index2 = -1;
|
|
67803
|
-
let
|
|
67804
|
+
let event2;
|
|
67804
67805
|
let lineIndex;
|
|
67805
67806
|
let otherIndex;
|
|
67806
67807
|
let otherEvent;
|
|
@@ -67812,9 +67813,9 @@ function subtokenize(eventsArray) {
|
|
|
67812
67813
|
while (index2 in jumps) {
|
|
67813
67814
|
index2 = jumps[index2];
|
|
67814
67815
|
}
|
|
67815
|
-
|
|
67816
|
-
if (index2 &&
|
|
67817
|
-
subevents =
|
|
67816
|
+
event2 = events.get(index2);
|
|
67817
|
+
if (index2 && event2[1].type === "chunkFlow" && events.get(index2 - 1)[1].type === "listItemPrefix") {
|
|
67818
|
+
subevents = event2[1]._tokenizer.events;
|
|
67818
67819
|
otherIndex = 0;
|
|
67819
67820
|
if (otherIndex < subevents.length && subevents[otherIndex][1].type === "lineEndingBlank") {
|
|
67820
67821
|
otherIndex += 2;
|
|
@@ -67831,13 +67832,13 @@ function subtokenize(eventsArray) {
|
|
|
67831
67832
|
}
|
|
67832
67833
|
}
|
|
67833
67834
|
}
|
|
67834
|
-
if (
|
|
67835
|
-
if (
|
|
67835
|
+
if (event2[0] === "enter") {
|
|
67836
|
+
if (event2[1].contentType) {
|
|
67836
67837
|
Object.assign(jumps, subcontent(events, index2));
|
|
67837
67838
|
index2 = jumps[index2];
|
|
67838
67839
|
more = true;
|
|
67839
67840
|
}
|
|
67840
|
-
} else if (
|
|
67841
|
+
} else if (event2[1]._container) {
|
|
67841
67842
|
otherIndex = index2;
|
|
67842
67843
|
lineIndex = void 0;
|
|
67843
67844
|
while (otherIndex--) {
|
|
@@ -67856,11 +67857,11 @@ function subtokenize(eventsArray) {
|
|
|
67856
67857
|
}
|
|
67857
67858
|
}
|
|
67858
67859
|
if (lineIndex) {
|
|
67859
|
-
|
|
67860
|
+
event2[1].end = {
|
|
67860
67861
|
...events.get(lineIndex)[1].start
|
|
67861
67862
|
};
|
|
67862
67863
|
parameters = events.slice(lineIndex, index2);
|
|
67863
|
-
parameters.unshift(
|
|
67864
|
+
parameters.unshift(event2);
|
|
67864
67865
|
events.splice(lineIndex, index2 - lineIndex + 1, parameters);
|
|
67865
67866
|
}
|
|
67866
67867
|
}
|
|
@@ -70582,12 +70583,12 @@ function compiler(options) {
|
|
|
70582
70583
|
let firstBlankLineIndex;
|
|
70583
70584
|
let atMarker;
|
|
70584
70585
|
while (++index2 <= length2) {
|
|
70585
|
-
const
|
|
70586
|
-
switch (
|
|
70586
|
+
const event2 = events[index2];
|
|
70587
|
+
switch (event2[1].type) {
|
|
70587
70588
|
case "listUnordered":
|
|
70588
70589
|
case "listOrdered":
|
|
70589
70590
|
case "blockQuote": {
|
|
70590
|
-
if (
|
|
70591
|
+
if (event2[0] === "enter") {
|
|
70591
70592
|
containerBalance++;
|
|
70592
70593
|
} else {
|
|
70593
70594
|
containerBalance--;
|
|
@@ -70596,7 +70597,7 @@ function compiler(options) {
|
|
|
70596
70597
|
break;
|
|
70597
70598
|
}
|
|
70598
70599
|
case "lineEndingBlank": {
|
|
70599
|
-
if (
|
|
70600
|
+
if (event2[0] === "enter") {
|
|
70600
70601
|
if (listItem3 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
70601
70602
|
firstBlankLineIndex = index2;
|
|
70602
70603
|
}
|
|
@@ -70615,7 +70616,7 @@ function compiler(options) {
|
|
|
70615
70616
|
atMarker = void 0;
|
|
70616
70617
|
}
|
|
70617
70618
|
}
|
|
70618
|
-
if (!containerBalance &&
|
|
70619
|
+
if (!containerBalance && event2[0] === "enter" && event2[1].type === "listItemPrefix" || containerBalance === -1 && event2[0] === "exit" && (event2[1].type === "listUnordered" || event2[1].type === "listOrdered")) {
|
|
70619
70620
|
if (listItem3) {
|
|
70620
70621
|
let tailIndex = index2;
|
|
70621
70622
|
lineIndex = void 0;
|
|
@@ -70637,21 +70638,21 @@ function compiler(options) {
|
|
|
70637
70638
|
if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {
|
|
70638
70639
|
listItem3._spread = true;
|
|
70639
70640
|
}
|
|
70640
|
-
listItem3.end = Object.assign({}, lineIndex ? events[lineIndex][1].start :
|
|
70641
|
-
events.splice(lineIndex || index2, 0, ["exit", listItem3,
|
|
70641
|
+
listItem3.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event2[1].end);
|
|
70642
|
+
events.splice(lineIndex || index2, 0, ["exit", listItem3, event2[2]]);
|
|
70642
70643
|
index2++;
|
|
70643
70644
|
length2++;
|
|
70644
70645
|
}
|
|
70645
|
-
if (
|
|
70646
|
+
if (event2[1].type === "listItemPrefix") {
|
|
70646
70647
|
const item = {
|
|
70647
70648
|
type: "listItem",
|
|
70648
70649
|
_spread: false,
|
|
70649
|
-
start: Object.assign({},
|
|
70650
|
+
start: Object.assign({}, event2[1].start),
|
|
70650
70651
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
70651
70652
|
end: void 0
|
|
70652
70653
|
};
|
|
70653
70654
|
listItem3 = item;
|
|
70654
|
-
events.splice(index2, 0, ["enter", item,
|
|
70655
|
+
events.splice(index2, 0, ["enter", item, event2[2]]);
|
|
70655
70656
|
index2++;
|
|
70656
70657
|
length2++;
|
|
70657
70658
|
firstBlankLineIndex = void 0;
|
|
@@ -74462,9 +74463,9 @@ const Chat = ({
|
|
|
74462
74463
|
});
|
|
74463
74464
|
}
|
|
74464
74465
|
}, [messages2]);
|
|
74465
|
-
const handleKeyDown = (
|
|
74466
|
-
if (
|
|
74467
|
-
|
|
74466
|
+
const handleKeyDown = (event2) => {
|
|
74467
|
+
if (event2.key === "Enter") {
|
|
74468
|
+
event2.preventDefault();
|
|
74468
74469
|
sendMessage();
|
|
74469
74470
|
} else {
|
|
74470
74471
|
socketRef.current?.emit("typing");
|
|
@@ -74730,6 +74731,128 @@ const Solid = (properties) => /* @__PURE__ */ jsx(
|
|
|
74730
74731
|
const UnitNumber = ({ variant }) => {
|
|
74731
74732
|
return variant === "outline" ? /* @__PURE__ */ jsx(Outline, {}) : /* @__PURE__ */ jsx(Solid, {});
|
|
74732
74733
|
};
|
|
74734
|
+
const defaultValidator = (_rule, value2) => {
|
|
74735
|
+
console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
|
|
74736
|
+
if (!value2 || /^\d+$/.test(value2)) {
|
|
74737
|
+
return Promise.resolve();
|
|
74738
|
+
}
|
|
74739
|
+
return Promise.reject("Please input whole numbers only");
|
|
74740
|
+
};
|
|
74741
|
+
const FormInput = React__default.forwardRef((props, ref) => {
|
|
74742
|
+
const { onChange: formOnChange, value: formValue, ...inputProps } = props;
|
|
74743
|
+
const [localValue, setLocalValue] = React__default.useState(formValue || "");
|
|
74744
|
+
const handleChange = (actionEvent) => {
|
|
74745
|
+
const value2 = actionEvent.payload.value;
|
|
74746
|
+
setLocalValue(value2);
|
|
74747
|
+
if (formOnChange) {
|
|
74748
|
+
formOnChange(event);
|
|
74749
|
+
}
|
|
74750
|
+
};
|
|
74751
|
+
const { addonBefore, addonAfter, placeholder } = inputProps;
|
|
74752
|
+
if (addonBefore && !addonAfter) {
|
|
74753
|
+
return /* @__PURE__ */ jsx(
|
|
74754
|
+
Input2,
|
|
74755
|
+
{
|
|
74756
|
+
...inputProps,
|
|
74757
|
+
ref,
|
|
74758
|
+
placeholder,
|
|
74759
|
+
addonBefore,
|
|
74760
|
+
maxLength: 10,
|
|
74761
|
+
value: localValue,
|
|
74762
|
+
onChange: handleChange
|
|
74763
|
+
}
|
|
74764
|
+
);
|
|
74765
|
+
}
|
|
74766
|
+
if (addonAfter && !addonBefore) {
|
|
74767
|
+
return /* @__PURE__ */ jsx(
|
|
74768
|
+
Input2,
|
|
74769
|
+
{
|
|
74770
|
+
...inputProps,
|
|
74771
|
+
ref,
|
|
74772
|
+
placeholder,
|
|
74773
|
+
addonAfter,
|
|
74774
|
+
maxLength: 10,
|
|
74775
|
+
value: localValue,
|
|
74776
|
+
onChange: handleChange
|
|
74777
|
+
}
|
|
74778
|
+
);
|
|
74779
|
+
}
|
|
74780
|
+
return /* @__PURE__ */ jsx(
|
|
74781
|
+
Input2,
|
|
74782
|
+
{
|
|
74783
|
+
...inputProps,
|
|
74784
|
+
ref,
|
|
74785
|
+
placeholder,
|
|
74786
|
+
addonBefore,
|
|
74787
|
+
addonAfter
|
|
74788
|
+
}
|
|
74789
|
+
);
|
|
74790
|
+
});
|
|
74791
|
+
const InputAddon = ({
|
|
74792
|
+
name: name2 = "units",
|
|
74793
|
+
addonBefore,
|
|
74794
|
+
addonAfter,
|
|
74795
|
+
placeholder,
|
|
74796
|
+
maxLength,
|
|
74797
|
+
value: value2,
|
|
74798
|
+
onChange,
|
|
74799
|
+
rules: rules2 = [{ validator: defaultValidator }],
|
|
74800
|
+
validateTrigger = ["onChange", "onBlur"]
|
|
74801
|
+
}) => {
|
|
74802
|
+
const [form] = Form$2.useForm();
|
|
74803
|
+
FormInput.displayName = "FormInput";
|
|
74804
|
+
if (addonAfter && addonBefore) {
|
|
74805
|
+
return /* @__PURE__ */ jsx(Form$2, { form, children: /* @__PURE__ */ jsx(Space, { children: /* @__PURE__ */ jsx(
|
|
74806
|
+
Form$2.Item,
|
|
74807
|
+
{
|
|
74808
|
+
name: name2,
|
|
74809
|
+
rules: rules2,
|
|
74810
|
+
validateTrigger,
|
|
74811
|
+
children: /* @__PURE__ */ jsx(
|
|
74812
|
+
FormInput,
|
|
74813
|
+
{
|
|
74814
|
+
addonAfter,
|
|
74815
|
+
addonBefore,
|
|
74816
|
+
placeholder,
|
|
74817
|
+
maxLength,
|
|
74818
|
+
value: value2,
|
|
74819
|
+
onChange
|
|
74820
|
+
}
|
|
74821
|
+
)
|
|
74822
|
+
}
|
|
74823
|
+
) }) });
|
|
74824
|
+
}
|
|
74825
|
+
if (addonBefore && !addonAfter) {
|
|
74826
|
+
return /* @__PURE__ */ jsx(Form$2, { form, children: /* @__PURE__ */ jsx(Space, { children: /* @__PURE__ */ jsx(
|
|
74827
|
+
Form$2.Item,
|
|
74828
|
+
{
|
|
74829
|
+
name: name2,
|
|
74830
|
+
rules: rules2,
|
|
74831
|
+
validateTrigger,
|
|
74832
|
+
children: /* @__PURE__ */ jsx(
|
|
74833
|
+
FormInput,
|
|
74834
|
+
{
|
|
74835
|
+
addonBefore,
|
|
74836
|
+
placeholder,
|
|
74837
|
+
maxLength,
|
|
74838
|
+
value: value2,
|
|
74839
|
+
onChange
|
|
74840
|
+
}
|
|
74841
|
+
)
|
|
74842
|
+
}
|
|
74843
|
+
) }) });
|
|
74844
|
+
}
|
|
74845
|
+
return /* @__PURE__ */ jsx(Form$2, { form, children: /* @__PURE__ */ jsx(Space, { children: /* @__PURE__ */ jsx(Form$2.Item, { name: name2, rules: rules2, validateTrigger, children: /* @__PURE__ */ jsx(
|
|
74846
|
+
FormInput,
|
|
74847
|
+
{
|
|
74848
|
+
addonAfter,
|
|
74849
|
+
placeholder,
|
|
74850
|
+
maxLength,
|
|
74851
|
+
value: value2,
|
|
74852
|
+
onChange
|
|
74853
|
+
}
|
|
74854
|
+
) }) }) });
|
|
74855
|
+
};
|
|
74733
74856
|
function ascending$1(a, b) {
|
|
74734
74857
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
74735
74858
|
}
|
|
@@ -75497,8 +75620,8 @@ function selection_datum(value2) {
|
|
|
75497
75620
|
return arguments.length ? this.property("__data__", value2) : this.node().__data__;
|
|
75498
75621
|
}
|
|
75499
75622
|
function contextListener(listener) {
|
|
75500
|
-
return function(
|
|
75501
|
-
listener.call(this,
|
|
75623
|
+
return function(event2) {
|
|
75624
|
+
listener.call(this, event2, this.__data__);
|
|
75502
75625
|
};
|
|
75503
75626
|
}
|
|
75504
75627
|
function parseTypenames(typenames) {
|
|
@@ -75558,15 +75681,15 @@ function selection_on(typename, value2, options) {
|
|
|
75558
75681
|
return this;
|
|
75559
75682
|
}
|
|
75560
75683
|
function dispatchEvent(node2, type4, params) {
|
|
75561
|
-
var window2 = defaultView(node2),
|
|
75562
|
-
if (typeof
|
|
75563
|
-
|
|
75684
|
+
var window2 = defaultView(node2), event2 = window2.CustomEvent;
|
|
75685
|
+
if (typeof event2 === "function") {
|
|
75686
|
+
event2 = new event2(type4, params);
|
|
75564
75687
|
} else {
|
|
75565
|
-
|
|
75566
|
-
if (params)
|
|
75567
|
-
else
|
|
75688
|
+
event2 = window2.document.createEvent("Event");
|
|
75689
|
+
if (params) event2.initEvent(type4, params.bubbles, params.cancelable), event2.detail = params.detail;
|
|
75690
|
+
else event2.initEvent(type4, false, false);
|
|
75568
75691
|
}
|
|
75569
|
-
node2.dispatchEvent(
|
|
75692
|
+
node2.dispatchEvent(event2);
|
|
75570
75693
|
}
|
|
75571
75694
|
function dispatchConstant(type4, params) {
|
|
75572
75695
|
return function() {
|
|
@@ -75640,28 +75763,28 @@ Selection$1.prototype = selection.prototype = {
|
|
|
75640
75763
|
function select(selector2) {
|
|
75641
75764
|
return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root);
|
|
75642
75765
|
}
|
|
75643
|
-
function sourceEvent(
|
|
75766
|
+
function sourceEvent(event2) {
|
|
75644
75767
|
let sourceEvent2;
|
|
75645
|
-
while (sourceEvent2 =
|
|
75646
|
-
return
|
|
75768
|
+
while (sourceEvent2 = event2.sourceEvent) event2 = sourceEvent2;
|
|
75769
|
+
return event2;
|
|
75647
75770
|
}
|
|
75648
|
-
function pointer(
|
|
75649
|
-
|
|
75650
|
-
if (node2 === void 0) node2 =
|
|
75771
|
+
function pointer(event2, node2) {
|
|
75772
|
+
event2 = sourceEvent(event2);
|
|
75773
|
+
if (node2 === void 0) node2 = event2.currentTarget;
|
|
75651
75774
|
if (node2) {
|
|
75652
75775
|
var svg2 = node2.ownerSVGElement || node2;
|
|
75653
75776
|
if (svg2.createSVGPoint) {
|
|
75654
75777
|
var point2 = svg2.createSVGPoint();
|
|
75655
|
-
point2.x =
|
|
75778
|
+
point2.x = event2.clientX, point2.y = event2.clientY;
|
|
75656
75779
|
point2 = point2.matrixTransform(node2.getScreenCTM().inverse());
|
|
75657
75780
|
return [point2.x, point2.y];
|
|
75658
75781
|
}
|
|
75659
75782
|
if (node2.getBoundingClientRect) {
|
|
75660
75783
|
var rect = node2.getBoundingClientRect();
|
|
75661
|
-
return [
|
|
75784
|
+
return [event2.clientX - rect.left - node2.clientLeft, event2.clientY - rect.top - node2.clientTop];
|
|
75662
75785
|
}
|
|
75663
75786
|
}
|
|
75664
|
-
return [
|
|
75787
|
+
return [event2.pageX, event2.pageY];
|
|
75665
75788
|
}
|
|
75666
75789
|
function define(constructor, factory, prototype) {
|
|
75667
75790
|
constructor.prototype = factory.prototype = prototype;
|
|
@@ -76764,10 +76887,10 @@ function styleFunction(name2, interpolate2, value2) {
|
|
|
76764
76887
|
};
|
|
76765
76888
|
}
|
|
76766
76889
|
function styleMaybeRemove(id2, name2) {
|
|
76767
|
-
var on0, on1, listener0, key = "style." + name2,
|
|
76890
|
+
var on0, on1, listener0, key = "style." + name2, event2 = "end." + key, remove2;
|
|
76768
76891
|
return function() {
|
|
76769
76892
|
var schedule2 = set(this, id2), on2 = schedule2.on, listener = schedule2.value[key] == null ? remove2 || (remove2 = styleRemove(name2)) : void 0;
|
|
76770
|
-
if (on2 !== on0 || listener0 !== listener) (on1 = (on0 = on2).copy()).on(
|
|
76893
|
+
if (on2 !== on0 || listener0 !== listener) (on1 = (on0 = on2).copy()).on(event2, listener0 = listener);
|
|
76771
76894
|
schedule2.on = on1;
|
|
76772
76895
|
};
|
|
76773
76896
|
}
|
|
@@ -78358,7 +78481,7 @@ const BarChart = ({
|
|
|
78358
78481
|
svg2.on("mousedown", removePermanentTooltip);
|
|
78359
78482
|
}
|
|
78360
78483
|
const hoverAreaWidth = 28;
|
|
78361
|
-
chartGroup.selectAll(".hover-area").data(data).enter().append("rect").attr("class", "hover-area").attr("x", (d) => xScale(d.name) - (hoverAreaWidth - barWidth) / 2).attr("y", (d) => yScale(d.value)).attr("width", hoverAreaWidth).attr("height", (d) => height - margin.bottom - yScale(d.value)).attr("fill", "transparent").on("mouseover", function(
|
|
78484
|
+
chartGroup.selectAll(".hover-area").data(data).enter().append("rect").attr("class", "hover-area").attr("x", (d) => xScale(d.name) - (hoverAreaWidth - barWidth) / 2).attr("y", (d) => yScale(d.value)).attr("width", hoverAreaWidth).attr("height", (d) => height - margin.bottom - yScale(d.value)).attr("fill", "transparent").on("mouseover", function(event2, d) {
|
|
78362
78485
|
if (chartContainer) {
|
|
78363
78486
|
const x2 = xScale(d.name) + barWidth / 2;
|
|
78364
78487
|
const y2 = yScale(d.value);
|
|
@@ -78555,7 +78678,7 @@ const LineChart = ({
|
|
|
78555
78678
|
svg2.on("touchstart", removePermanentTooltip);
|
|
78556
78679
|
svg2.on("mousedown", removePermanentTooltip);
|
|
78557
78680
|
}
|
|
78558
|
-
chartGroup.selectAll(".hover-area").data(data).enter().append("circle").attr("class", "hover-area").attr("cx", (d) => xScale(d.name)).attr("cy", (d) => yScale(d.value)).attr("r", 28).attr("fill", "transparent").on("mouseover", function(
|
|
78681
|
+
chartGroup.selectAll(".hover-area").data(data).enter().append("circle").attr("class", "hover-area").attr("cx", (d) => xScale(d.name)).attr("cy", (d) => yScale(d.value)).attr("r", 28).attr("fill", "transparent").on("mouseover", function(event2, d) {
|
|
78559
78682
|
if (chartContainer) {
|
|
78560
78683
|
const x2 = xScale(d.name);
|
|
78561
78684
|
const y2 = yScale(d.value);
|
|
@@ -78708,7 +78831,7 @@ const DonutChart = ({
|
|
|
78708
78831
|
select(svgRef.current);
|
|
78709
78832
|
segments.on(
|
|
78710
78833
|
"mouseover",
|
|
78711
|
-
function(
|
|
78834
|
+
function(event2, d) {
|
|
78712
78835
|
chartGroup.selectAll(".donut-segment").transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 0.25);
|
|
78713
78836
|
select(this).transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 1);
|
|
78714
78837
|
if (showLegend) {
|
|
@@ -78717,7 +78840,7 @@ const DonutChart = ({
|
|
|
78717
78840
|
svg2.selectAll(`.legend-circle[data-name="${d.data.name}"]`).transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 1);
|
|
78718
78841
|
svg2.selectAll(`.legend-text[data-name="${d.data.name}"]`).transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 1);
|
|
78719
78842
|
}
|
|
78720
|
-
const [x2, y2] = pointer(
|
|
78843
|
+
const [x2, y2] = pointer(event2);
|
|
78721
78844
|
const centroid = arc$1.centroid(d);
|
|
78722
78845
|
(d.startAngle + d.endAngle) / 2;
|
|
78723
78846
|
const tooltipX = centerX + centroid[0] - 18;
|
|
@@ -81156,8 +81279,8 @@ const OverflowMenu = forwardRef(
|
|
|
81156
81279
|
handleOpenChange(!isOpen);
|
|
81157
81280
|
};
|
|
81158
81281
|
const handleClickOutside = useCallback(
|
|
81159
|
-
(
|
|
81160
|
-
if (triggerRef.current && menuRef.current && !triggerRef.current.contains(
|
|
81282
|
+
(event2) => {
|
|
81283
|
+
if (triggerRef.current && menuRef.current && !triggerRef.current.contains(event2.target) && !menuRef.current.contains(event2.target)) {
|
|
81161
81284
|
handleOpenChange(false);
|
|
81162
81285
|
}
|
|
81163
81286
|
},
|
|
@@ -81708,10 +81831,10 @@ const Radio = ({ id: id2, label, selectedId, onChange, isDisabled }) => {
|
|
|
81708
81831
|
if (isDisabled) return;
|
|
81709
81832
|
onChange(id2);
|
|
81710
81833
|
};
|
|
81711
|
-
const handleKeyDown = (
|
|
81834
|
+
const handleKeyDown = (event2) => {
|
|
81712
81835
|
if (isDisabled) return;
|
|
81713
|
-
if (
|
|
81714
|
-
|
|
81836
|
+
if (event2.key === "Enter" || event2.key === " ") {
|
|
81837
|
+
event2.preventDefault();
|
|
81715
81838
|
handleInteraction();
|
|
81716
81839
|
}
|
|
81717
81840
|
};
|
|
@@ -83793,8 +83916,8 @@ const Select = ({
|
|
|
83793
83916
|
const selectReference = React__default.useRef(null);
|
|
83794
83917
|
const { theme } = useGenesis();
|
|
83795
83918
|
React__default.useEffect(() => {
|
|
83796
|
-
const handleClickOutside = (
|
|
83797
|
-
if (selectReference.current && !selectReference.current.contains(
|
|
83919
|
+
const handleClickOutside = (event2) => {
|
|
83920
|
+
if (selectReference.current && !selectReference.current.contains(event2.target)) {
|
|
83798
83921
|
handleClose();
|
|
83799
83922
|
setIsFocused(false);
|
|
83800
83923
|
}
|
|
@@ -84810,8 +84933,8 @@ const InfiniteScrollTable = ({
|
|
|
84810
84933
|
rowProps.ref = lastRowRef;
|
|
84811
84934
|
}
|
|
84812
84935
|
if (onRowClick && index2 !== void 0) {
|
|
84813
|
-
rowProps.onClick = (
|
|
84814
|
-
onRowClick(record, index2,
|
|
84936
|
+
rowProps.onClick = (event2) => {
|
|
84937
|
+
onRowClick(record, index2, event2);
|
|
84815
84938
|
};
|
|
84816
84939
|
}
|
|
84817
84940
|
return rowProps;
|
|
@@ -85005,8 +85128,8 @@ function Table({
|
|
|
85005
85128
|
}
|
|
85006
85129
|
}, [dataSource, rowKey, enableRowKeyValidation, onRowKeyError]);
|
|
85007
85130
|
const handleRowMouseDown = React.useCallback(
|
|
85008
|
-
(record, index2,
|
|
85009
|
-
const target =
|
|
85131
|
+
(record, index2, event2) => {
|
|
85132
|
+
const target = event2.target;
|
|
85010
85133
|
const isInteractiveElement = target.closest(
|
|
85011
85134
|
'button, a, input, select, textarea, [role="button"], [onclick], .ant-checkbox-wrapper, .ant-checkbox'
|
|
85012
85135
|
);
|
|
@@ -85024,14 +85147,14 @@ function Table({
|
|
|
85024
85147
|
[rowKey, enableRowKeyValidation]
|
|
85025
85148
|
);
|
|
85026
85149
|
const handleRowMouseUp = React.useCallback(
|
|
85027
|
-
(record, index2,
|
|
85150
|
+
(record, index2, event2) => {
|
|
85028
85151
|
setPressedRowKey(null);
|
|
85029
85152
|
},
|
|
85030
85153
|
[]
|
|
85031
85154
|
);
|
|
85032
85155
|
const handleRowClick = React.useCallback(
|
|
85033
|
-
(record, index2,
|
|
85034
|
-
const target =
|
|
85156
|
+
(record, index2, event2) => {
|
|
85157
|
+
const target = event2.target;
|
|
85035
85158
|
const isInteractiveElement = target.closest(
|
|
85036
85159
|
'button, a, input, select, textarea, [role="button"], [onclick], .ant-checkbox-wrapper, .ant-checkbox'
|
|
85037
85160
|
);
|
|
@@ -85039,7 +85162,7 @@ function Table({
|
|
|
85039
85162
|
return;
|
|
85040
85163
|
}
|
|
85041
85164
|
if (onRowClick) {
|
|
85042
|
-
onRowClick(record, index2,
|
|
85165
|
+
onRowClick(record, index2, event2);
|
|
85043
85166
|
}
|
|
85044
85167
|
},
|
|
85045
85168
|
[onRowClick]
|
|
@@ -85096,9 +85219,9 @@ function Table({
|
|
|
85096
85219
|
);
|
|
85097
85220
|
const isPressed = pressedRowKey === recordKey;
|
|
85098
85221
|
return {
|
|
85099
|
-
onClick: (
|
|
85100
|
-
onMouseDown: (
|
|
85101
|
-
onMouseUp: (
|
|
85222
|
+
onClick: (event2) => handleRowClick(record, index2 ?? 0, event2),
|
|
85223
|
+
onMouseDown: (event2) => handleRowMouseDown(record, index2 ?? 0, event2),
|
|
85224
|
+
onMouseUp: (event2) => handleRowMouseUp(record, index2 ?? 0, event2),
|
|
85102
85225
|
onMouseLeave: () => setPressedRowKey(null),
|
|
85103
85226
|
// Clear pressed state when mouse leaves
|
|
85104
85227
|
style: {
|
|
@@ -85529,7 +85652,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85529
85652
|
{
|
|
85530
85653
|
style: {
|
|
85531
85654
|
display: "flex",
|
|
85532
|
-
justifyContent: "space-between",
|
|
85655
|
+
justifyContent: groups ? "space-between" : "flex-end",
|
|
85533
85656
|
alignItems: "flex-end",
|
|
85534
85657
|
marginTop: 8
|
|
85535
85658
|
},
|
|
@@ -85605,8 +85728,8 @@ const TableWithControls = ({
|
|
|
85605
85728
|
onRowClick: tableOnRowClick
|
|
85606
85729
|
} = tableData;
|
|
85607
85730
|
const actualTableType = isInfiniteScroll ? "infiniteScroll" : tableType;
|
|
85608
|
-
const onTableControlsChange = (
|
|
85609
|
-
onChange(
|
|
85731
|
+
const onTableControlsChange = (event2) => {
|
|
85732
|
+
onChange(event2);
|
|
85610
85733
|
};
|
|
85611
85734
|
const onTableChange = (pagination, filters, sorter) => {
|
|
85612
85735
|
onChange({
|
|
@@ -85614,11 +85737,11 @@ const TableWithControls = ({
|
|
|
85614
85737
|
payload: { value: "tableChange", pagination, filters, sorter }
|
|
85615
85738
|
});
|
|
85616
85739
|
};
|
|
85617
|
-
const onInfiniteScrollTableChange = (
|
|
85618
|
-
setInfiniteScrollData(
|
|
85740
|
+
const onInfiniteScrollTableChange = (event2) => {
|
|
85741
|
+
setInfiniteScrollData(event2);
|
|
85619
85742
|
onChange({
|
|
85620
85743
|
event: "infiniteScrollTableChange",
|
|
85621
|
-
payload: { value: "infiniteScrollTableChange", event }
|
|
85744
|
+
payload: { value: "infiniteScrollTableChange", event: event2 }
|
|
85622
85745
|
});
|
|
85623
85746
|
};
|
|
85624
85747
|
const renderTable = () => {
|
|
@@ -86994,6 +87117,7 @@ export {
|
|
|
86994
87117
|
GlobalStyles,
|
|
86995
87118
|
Button$1 as IconButton,
|
|
86996
87119
|
Input2 as Input,
|
|
87120
|
+
InputAddon,
|
|
86997
87121
|
Layout,
|
|
86998
87122
|
LineChart,
|
|
86999
87123
|
Message,
|