@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.cjs
CHANGED
|
@@ -6033,23 +6033,23 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
6033
6033
|
setStatus(STATUS_NONE);
|
|
6034
6034
|
setStyle(null, true);
|
|
6035
6035
|
}
|
|
6036
|
-
var onInternalMotionEnd = useEvent(function(
|
|
6036
|
+
var onInternalMotionEnd = useEvent(function(event2) {
|
|
6037
6037
|
var status = getStatus2();
|
|
6038
6038
|
if (status === STATUS_NONE) {
|
|
6039
6039
|
return;
|
|
6040
6040
|
}
|
|
6041
6041
|
var element2 = getDomElement();
|
|
6042
|
-
if (
|
|
6042
|
+
if (event2 && !event2.deadline && event2.target !== element2) {
|
|
6043
6043
|
return;
|
|
6044
6044
|
}
|
|
6045
6045
|
var currentActive = activeRef.current;
|
|
6046
6046
|
var canEnd;
|
|
6047
6047
|
if (status === STATUS_APPEAR && currentActive) {
|
|
6048
|
-
canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element2,
|
|
6048
|
+
canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element2, event2);
|
|
6049
6049
|
} else if (status === STATUS_ENTER && currentActive) {
|
|
6050
|
-
canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element2,
|
|
6050
|
+
canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element2, event2);
|
|
6051
6051
|
} else if (status === STATUS_LEAVE && currentActive) {
|
|
6052
|
-
canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element2,
|
|
6052
|
+
canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element2, event2);
|
|
6053
6053
|
}
|
|
6054
6054
|
if (currentActive && canEnd !== false) {
|
|
6055
6055
|
updateMotionEndStatus();
|
|
@@ -8252,7 +8252,7 @@ const getRealHeight = (node2) => {
|
|
|
8252
8252
|
const getCurrentHeight = (node2) => ({
|
|
8253
8253
|
height: node2 ? node2.offsetHeight : 0
|
|
8254
8254
|
});
|
|
8255
|
-
const skipOpacityTransition = (_,
|
|
8255
|
+
const skipOpacityTransition = (_, event2) => (event2 === null || event2 === void 0 ? void 0 : event2.deadline) === true || event2.propertyName === "height";
|
|
8256
8256
|
const initCollapseMotion = (rootCls = defaultPrefixCls) => ({
|
|
8257
8257
|
motionName: `${rootCls}-motion-collapse`,
|
|
8258
8258
|
onAppearStart: getCollapsedHeight,
|
|
@@ -8425,9 +8425,9 @@ const WaveEffect = (props) => {
|
|
|
8425
8425
|
motionAppear: true,
|
|
8426
8426
|
motionName: "wave-motion",
|
|
8427
8427
|
motionDeadline: 5e3,
|
|
8428
|
-
onAppearEnd: (_,
|
|
8428
|
+
onAppearEnd: (_, event2) => {
|
|
8429
8429
|
var _a, _b;
|
|
8430
|
-
if (
|
|
8430
|
+
if (event2.deadline || event2.propertyName === "opacity") {
|
|
8431
8431
|
const holder = (_a = divRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
8432
8432
|
(_b = unmountRef.current) === null || _b === void 0 ? void 0 : _b.call(unmountRef).then(() => {
|
|
8433
8433
|
holder === null || holder === void 0 ? void 0 : holder.remove();
|
|
@@ -8473,7 +8473,7 @@ const useWave = (nodeRef, className, component) => {
|
|
|
8473
8473
|
wave
|
|
8474
8474
|
} = React__namespace.useContext(ConfigContext);
|
|
8475
8475
|
const [, token2, hashId] = useToken();
|
|
8476
|
-
const showWave = useEvent((
|
|
8476
|
+
const showWave = useEvent((event2) => {
|
|
8477
8477
|
const node2 = nodeRef.current;
|
|
8478
8478
|
if ((wave === null || wave === void 0 ? void 0 : wave.disabled) || !node2) {
|
|
8479
8479
|
return;
|
|
@@ -8486,15 +8486,15 @@ const useWave = (nodeRef, className, component) => {
|
|
|
8486
8486
|
className,
|
|
8487
8487
|
token: token2,
|
|
8488
8488
|
component,
|
|
8489
|
-
event,
|
|
8489
|
+
event: event2,
|
|
8490
8490
|
hashId
|
|
8491
8491
|
});
|
|
8492
8492
|
});
|
|
8493
8493
|
const rafId = React__namespace.useRef(null);
|
|
8494
|
-
const showDebounceWave = (
|
|
8494
|
+
const showDebounceWave = (event2) => {
|
|
8495
8495
|
wrapperRaf.cancel(rafId.current);
|
|
8496
8496
|
rafId.current = wrapperRaf(() => {
|
|
8497
|
-
showWave(
|
|
8497
|
+
showWave(event2);
|
|
8498
8498
|
});
|
|
8499
8499
|
};
|
|
8500
8500
|
return showDebounceWave;
|
|
@@ -12829,11 +12829,11 @@ function isSimilar(source, target) {
|
|
|
12829
12829
|
});
|
|
12830
12830
|
}
|
|
12831
12831
|
function defaultGetValueFromEvent(valuePropName) {
|
|
12832
|
-
var
|
|
12833
|
-
if (
|
|
12834
|
-
return
|
|
12832
|
+
var event2 = arguments.length <= 1 ? void 0 : arguments[1];
|
|
12833
|
+
if (event2 && event2.target && _typeof(event2.target) === "object" && valuePropName in event2.target) {
|
|
12834
|
+
return event2.target[valuePropName];
|
|
12835
12835
|
}
|
|
12836
|
-
return
|
|
12836
|
+
return event2;
|
|
12837
12837
|
}
|
|
12838
12838
|
function move(array4, moveIndex, toIndex) {
|
|
12839
12839
|
var length2 = array4.length;
|
|
@@ -14421,16 +14421,16 @@ var Form$4 = function Form(_ref, ref) {
|
|
|
14421
14421
|
}
|
|
14422
14422
|
return /* @__PURE__ */ React__namespace.createElement(Component, _extends$1({}, restProps, {
|
|
14423
14423
|
ref: nativeElementRef,
|
|
14424
|
-
onSubmit: function onSubmit(
|
|
14425
|
-
|
|
14426
|
-
|
|
14424
|
+
onSubmit: function onSubmit(event2) {
|
|
14425
|
+
event2.preventDefault();
|
|
14426
|
+
event2.stopPropagation();
|
|
14427
14427
|
formInstance.submit();
|
|
14428
14428
|
},
|
|
14429
|
-
onReset: function onReset(
|
|
14429
|
+
onReset: function onReset(event2) {
|
|
14430
14430
|
var _restProps$onReset;
|
|
14431
|
-
|
|
14431
|
+
event2.preventDefault();
|
|
14432
14432
|
formInstance.resetFields();
|
|
14433
|
-
(_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 || _restProps$onReset.call(restProps,
|
|
14433
|
+
(_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 || _restProps$onReset.call(restProps, event2);
|
|
14434
14434
|
}
|
|
14435
14435
|
}), wrapperNode);
|
|
14436
14436
|
};
|
|
@@ -15493,9 +15493,9 @@ var TransBtn = function TransBtn2(props) {
|
|
|
15493
15493
|
var icon = typeof customizeIcon === "function" ? customizeIcon(customizeIconProps) : customizeIcon;
|
|
15494
15494
|
return /* @__PURE__ */ React__namespace.createElement("span", {
|
|
15495
15495
|
className,
|
|
15496
|
-
onMouseDown: function onMouseDown(
|
|
15497
|
-
|
|
15498
|
-
_onMouseDown === null || _onMouseDown === void 0 || _onMouseDown(
|
|
15496
|
+
onMouseDown: function onMouseDown(event2) {
|
|
15497
|
+
event2.preventDefault();
|
|
15498
|
+
_onMouseDown === null || _onMouseDown === void 0 || _onMouseDown(event2);
|
|
15499
15499
|
},
|
|
15500
15500
|
style: {
|
|
15501
15501
|
userSelect: "none",
|
|
@@ -15592,14 +15592,14 @@ function useSelectTriggerControl(elements, open, triggerOpen, customizedTrigger)
|
|
|
15592
15592
|
customizedTrigger
|
|
15593
15593
|
};
|
|
15594
15594
|
React__namespace.useEffect(function() {
|
|
15595
|
-
function onGlobalMouseDown(
|
|
15595
|
+
function onGlobalMouseDown(event2) {
|
|
15596
15596
|
var _propsRef$current;
|
|
15597
15597
|
if ((_propsRef$current = propsRef.current) !== null && _propsRef$current !== void 0 && _propsRef$current.customizedTrigger) {
|
|
15598
15598
|
return;
|
|
15599
15599
|
}
|
|
15600
|
-
var target =
|
|
15601
|
-
if (target.shadowRoot &&
|
|
15602
|
-
target =
|
|
15600
|
+
var target = event2.target;
|
|
15601
|
+
if (target.shadowRoot && event2.composed) {
|
|
15602
|
+
target = event2.composedPath()[0] || target;
|
|
15603
15603
|
}
|
|
15604
15604
|
if (propsRef.current.open && elements().filter(function(element2) {
|
|
15605
15605
|
return element2;
|
|
@@ -16057,9 +16057,9 @@ function itemKey$1(value2) {
|
|
|
16057
16057
|
var _value$key;
|
|
16058
16058
|
return (_value$key = value2.key) !== null && _value$key !== void 0 ? _value$key : value2.value;
|
|
16059
16059
|
}
|
|
16060
|
-
var onPreventMouseDown = function onPreventMouseDown2(
|
|
16061
|
-
|
|
16062
|
-
|
|
16060
|
+
var onPreventMouseDown = function onPreventMouseDown2(event2) {
|
|
16061
|
+
event2.preventDefault();
|
|
16062
|
+
event2.stopPropagation();
|
|
16063
16063
|
};
|
|
16064
16064
|
var SelectSelector = function SelectSelector2(props) {
|
|
16065
16065
|
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) {
|
|
@@ -16115,9 +16115,9 @@ var SelectSelector = function SelectSelector2(props) {
|
|
|
16115
16115
|
}
|
|
16116
16116
|
}
|
|
16117
16117
|
}
|
|
16118
|
-
var onClose = function onClose2(
|
|
16119
|
-
if (
|
|
16120
|
-
|
|
16118
|
+
var onClose = function onClose2(event2) {
|
|
16119
|
+
if (event2) {
|
|
16120
|
+
event2.stopPropagation();
|
|
16121
16121
|
}
|
|
16122
16122
|
onRemove2(valueItem);
|
|
16123
16123
|
};
|
|
@@ -16264,17 +16264,17 @@ var Selector = function Selector2(props, ref) {
|
|
|
16264
16264
|
};
|
|
16265
16265
|
});
|
|
16266
16266
|
var _useLock = useLock(0), _useLock2 = _slicedToArray(_useLock, 2), getInputMouseDown = _useLock2[0], setInputMouseDown = _useLock2[1];
|
|
16267
|
-
var onInternalInputKeyDown = function onInternalInputKeyDown2(
|
|
16268
|
-
var which =
|
|
16267
|
+
var onInternalInputKeyDown = function onInternalInputKeyDown2(event2) {
|
|
16268
|
+
var which = event2.which;
|
|
16269
16269
|
var isTextAreaElement = inputRef.current instanceof HTMLTextAreaElement;
|
|
16270
16270
|
if (!isTextAreaElement && open && (which === KeyCode.UP || which === KeyCode.DOWN)) {
|
|
16271
|
-
|
|
16271
|
+
event2.preventDefault();
|
|
16272
16272
|
}
|
|
16273
16273
|
if (onInputKeyDown) {
|
|
16274
|
-
onInputKeyDown(
|
|
16274
|
+
onInputKeyDown(event2);
|
|
16275
16275
|
}
|
|
16276
16276
|
if (which === KeyCode.ENTER && mode === "tags" && !compositionStatusRef.current && !open) {
|
|
16277
|
-
onSearchSubmit === null || onSearchSubmit === void 0 || onSearchSubmit(
|
|
16277
|
+
onSearchSubmit === null || onSearchSubmit === void 0 || onSearchSubmit(event2.target.value);
|
|
16278
16278
|
}
|
|
16279
16279
|
if (isTextAreaElement && !open && ~[KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT].indexOf(which)) {
|
|
16280
16280
|
return;
|
|
@@ -16301,8 +16301,8 @@ var Selector = function Selector2(props, ref) {
|
|
|
16301
16301
|
triggerOnSearch(e3.target.value);
|
|
16302
16302
|
}
|
|
16303
16303
|
};
|
|
16304
|
-
var onInputChange = function onInputChange2(
|
|
16305
|
-
var value2 =
|
|
16304
|
+
var onInputChange = function onInputChange2(event2) {
|
|
16305
|
+
var value2 = event2.target.value;
|
|
16306
16306
|
if (tokenWithEnter && pastedTextRef.current && /[\r\n]/.test(pastedTextRef.current)) {
|
|
16307
16307
|
var replacedText = pastedTextRef.current.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
|
|
16308
16308
|
value2 = value2.replace(replacedText, pastedTextRef.current);
|
|
@@ -16328,10 +16328,10 @@ var Selector = function Selector2(props, ref) {
|
|
|
16328
16328
|
}
|
|
16329
16329
|
}
|
|
16330
16330
|
};
|
|
16331
|
-
var onMouseDown = function onMouseDown2(
|
|
16331
|
+
var onMouseDown = function onMouseDown2(event2) {
|
|
16332
16332
|
var inputMouseDown = getInputMouseDown();
|
|
16333
|
-
if (
|
|
16334
|
-
|
|
16333
|
+
if (event2.target !== inputRef.current && !inputMouseDown && !(mode === "combobox" && disabled2)) {
|
|
16334
|
+
event2.preventDefault();
|
|
16335
16335
|
}
|
|
16336
16336
|
if (mode !== "combobox" && (!showSearch || !inputMouseDown) || !open) {
|
|
16337
16337
|
if (open && autoClearSearchValue !== false) {
|
|
@@ -17279,8 +17279,8 @@ function generateTrigger() {
|
|
|
17279
17279
|
}, [mergedOpen]);
|
|
17280
17280
|
var _React$useState11 = React__namespace.useState(null), _React$useState12 = _slicedToArray(_React$useState11, 2), motionPrepareResolve = _React$useState12[0], setMotionPrepareResolve = _React$useState12[1];
|
|
17281
17281
|
var _React$useState13 = React__namespace.useState(null), _React$useState14 = _slicedToArray(_React$useState13, 2), mousePos = _React$useState14[0], setMousePos = _React$useState14[1];
|
|
17282
|
-
var setMousePosByEvent = function setMousePosByEvent2(
|
|
17283
|
-
setMousePos([
|
|
17282
|
+
var setMousePosByEvent = function setMousePosByEvent2(event2) {
|
|
17283
|
+
setMousePos([event2.clientX, event2.clientY]);
|
|
17284
17284
|
};
|
|
17285
17285
|
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];
|
|
17286
17286
|
var _useAction = useAction(mobile, action, showAction, hideAction), _useAction2 = _slicedToArray(_useAction, 2), showActions = _useAction2[0], hideActions = _useAction2[1];
|
|
@@ -17350,29 +17350,29 @@ function generateTrigger() {
|
|
|
17350
17350
|
}
|
|
17351
17351
|
}, [motionPrepareResolve]);
|
|
17352
17352
|
function wrapperAction(eventName, nextOpen, delay, preEvent) {
|
|
17353
|
-
cloneProps[eventName] = function(
|
|
17353
|
+
cloneProps[eventName] = function(event2) {
|
|
17354
17354
|
var _originChildProps$eve;
|
|
17355
|
-
preEvent === null || preEvent === void 0 || preEvent(
|
|
17355
|
+
preEvent === null || preEvent === void 0 || preEvent(event2);
|
|
17356
17356
|
triggerOpen(nextOpen, delay);
|
|
17357
17357
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
17358
17358
|
args[_key - 1] = arguments[_key];
|
|
17359
17359
|
}
|
|
17360
|
-
(_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 || _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps,
|
|
17360
|
+
(_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 || _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps, event2].concat(args));
|
|
17361
17361
|
};
|
|
17362
17362
|
}
|
|
17363
17363
|
if (clickToShow || clickToHide) {
|
|
17364
|
-
cloneProps.onClick = function(
|
|
17364
|
+
cloneProps.onClick = function(event2) {
|
|
17365
17365
|
var _originChildProps$onC;
|
|
17366
17366
|
if (openRef.current && clickToHide) {
|
|
17367
17367
|
triggerOpen(false);
|
|
17368
17368
|
} else if (!openRef.current && clickToShow) {
|
|
17369
|
-
setMousePosByEvent(
|
|
17369
|
+
setMousePosByEvent(event2);
|
|
17370
17370
|
triggerOpen(true);
|
|
17371
17371
|
}
|
|
17372
17372
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
17373
17373
|
args[_key2 - 1] = arguments[_key2];
|
|
17374
17374
|
}
|
|
17375
|
-
(_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 || _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps,
|
|
17375
|
+
(_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 || _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps, event2].concat(args));
|
|
17376
17376
|
};
|
|
17377
17377
|
}
|
|
17378
17378
|
var onPopupPointerDown = useWinClick(mergedOpen, clickToHide, targetEle, popupEle, mask, maskClosable, inPopupOrChild, triggerOpen);
|
|
@@ -17381,21 +17381,21 @@ function generateTrigger() {
|
|
|
17381
17381
|
var onPopupMouseEnter;
|
|
17382
17382
|
var onPopupMouseLeave;
|
|
17383
17383
|
if (hoverToShow) {
|
|
17384
|
-
wrapperAction("onMouseEnter", true, mouseEnterDelay, function(
|
|
17385
|
-
setMousePosByEvent(
|
|
17384
|
+
wrapperAction("onMouseEnter", true, mouseEnterDelay, function(event2) {
|
|
17385
|
+
setMousePosByEvent(event2);
|
|
17386
17386
|
});
|
|
17387
|
-
wrapperAction("onPointerEnter", true, mouseEnterDelay, function(
|
|
17388
|
-
setMousePosByEvent(
|
|
17387
|
+
wrapperAction("onPointerEnter", true, mouseEnterDelay, function(event2) {
|
|
17388
|
+
setMousePosByEvent(event2);
|
|
17389
17389
|
});
|
|
17390
|
-
onPopupMouseEnter = function onPopupMouseEnter2(
|
|
17391
|
-
if ((mergedOpen || inMotion) && popupEle !== null && popupEle !== void 0 && popupEle.contains(
|
|
17390
|
+
onPopupMouseEnter = function onPopupMouseEnter2(event2) {
|
|
17391
|
+
if ((mergedOpen || inMotion) && popupEle !== null && popupEle !== void 0 && popupEle.contains(event2.target)) {
|
|
17392
17392
|
triggerOpen(true, mouseEnterDelay);
|
|
17393
17393
|
}
|
|
17394
17394
|
};
|
|
17395
17395
|
if (alignPoint) {
|
|
17396
|
-
cloneProps.onMouseMove = function(
|
|
17396
|
+
cloneProps.onMouseMove = function(event2) {
|
|
17397
17397
|
var _originChildProps$onM;
|
|
17398
|
-
(_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 || _originChildProps$onM.call(originChildProps,
|
|
17398
|
+
(_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 || _originChildProps$onM.call(originChildProps, event2);
|
|
17399
17399
|
};
|
|
17400
17400
|
}
|
|
17401
17401
|
}
|
|
@@ -17413,19 +17413,19 @@ function generateTrigger() {
|
|
|
17413
17413
|
wrapperAction("onBlur", false, blurDelay);
|
|
17414
17414
|
}
|
|
17415
17415
|
if (showActions.has("contextMenu")) {
|
|
17416
|
-
cloneProps.onContextMenu = function(
|
|
17416
|
+
cloneProps.onContextMenu = function(event2) {
|
|
17417
17417
|
var _originChildProps$onC2;
|
|
17418
17418
|
if (openRef.current && hideActions.has("contextMenu")) {
|
|
17419
17419
|
triggerOpen(false);
|
|
17420
17420
|
} else {
|
|
17421
|
-
setMousePosByEvent(
|
|
17421
|
+
setMousePosByEvent(event2);
|
|
17422
17422
|
triggerOpen(true);
|
|
17423
17423
|
}
|
|
17424
|
-
|
|
17424
|
+
event2.preventDefault();
|
|
17425
17425
|
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
17426
17426
|
args[_key3 - 1] = arguments[_key3];
|
|
17427
17427
|
}
|
|
17428
|
-
(_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 || _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps,
|
|
17428
|
+
(_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 || _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps, event2].concat(args));
|
|
17429
17429
|
};
|
|
17430
17430
|
}
|
|
17431
17431
|
if (className) {
|
|
@@ -17853,13 +17853,13 @@ var BaseSelect = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref
|
|
|
17853
17853
|
}, [disabled2]);
|
|
17854
17854
|
var _useLock = useLock(), _useLock2 = _slicedToArray(_useLock, 2), getClearLock = _useLock2[0], setClearLock = _useLock2[1];
|
|
17855
17855
|
var keyLockRef = React__namespace.useRef(false);
|
|
17856
|
-
var onInternalKeyDown = function onInternalKeyDown2(
|
|
17856
|
+
var onInternalKeyDown = function onInternalKeyDown2(event2) {
|
|
17857
17857
|
var clearLock = getClearLock();
|
|
17858
|
-
var key =
|
|
17858
|
+
var key = event2.key;
|
|
17859
17859
|
var isEnterKey = key === "Enter";
|
|
17860
17860
|
if (isEnterKey) {
|
|
17861
17861
|
if (mode !== "combobox") {
|
|
17862
|
-
|
|
17862
|
+
event2.preventDefault();
|
|
17863
17863
|
}
|
|
17864
17864
|
if (!mergedOpen) {
|
|
17865
17865
|
onToggleOpen(true);
|
|
@@ -17892,22 +17892,22 @@ var BaseSelect = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref
|
|
|
17892
17892
|
if (isEnterKey) {
|
|
17893
17893
|
keyLockRef.current = true;
|
|
17894
17894
|
}
|
|
17895
|
-
(_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 || _listRef$current2.onKeyDown.apply(_listRef$current2, [
|
|
17895
|
+
(_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 || _listRef$current2.onKeyDown.apply(_listRef$current2, [event2].concat(rest));
|
|
17896
17896
|
}
|
|
17897
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2.apply(void 0, [
|
|
17897
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2.apply(void 0, [event2].concat(rest));
|
|
17898
17898
|
};
|
|
17899
|
-
var onInternalKeyUp = function onInternalKeyUp2(
|
|
17899
|
+
var onInternalKeyUp = function onInternalKeyUp2(event2) {
|
|
17900
17900
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
17901
17901
|
rest[_key2 - 1] = arguments[_key2];
|
|
17902
17902
|
}
|
|
17903
17903
|
if (mergedOpen) {
|
|
17904
17904
|
var _listRef$current3;
|
|
17905
|
-
(_listRef$current3 = listRef.current) === null || _listRef$current3 === void 0 || _listRef$current3.onKeyUp.apply(_listRef$current3, [
|
|
17905
|
+
(_listRef$current3 = listRef.current) === null || _listRef$current3 === void 0 || _listRef$current3.onKeyUp.apply(_listRef$current3, [event2].concat(rest));
|
|
17906
17906
|
}
|
|
17907
|
-
if (
|
|
17907
|
+
if (event2.key === "Enter") {
|
|
17908
17908
|
keyLockRef.current = false;
|
|
17909
17909
|
}
|
|
17910
|
-
onKeyUp === null || onKeyUp === void 0 || onKeyUp.apply(void 0, [
|
|
17910
|
+
onKeyUp === null || onKeyUp === void 0 || onKeyUp.apply(void 0, [event2].concat(rest));
|
|
17911
17911
|
};
|
|
17912
17912
|
var onSelectorRemove = function onSelectorRemove2(val) {
|
|
17913
17913
|
var newValues = displayValues.filter(function(i) {
|
|
@@ -17968,9 +17968,9 @@ var BaseSelect = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref
|
|
|
17968
17968
|
activeTimeoutIds.splice(0, activeTimeoutIds.length);
|
|
17969
17969
|
};
|
|
17970
17970
|
}, []);
|
|
17971
|
-
var onInternalMouseDown = function onInternalMouseDown2(
|
|
17971
|
+
var onInternalMouseDown = function onInternalMouseDown2(event2) {
|
|
17972
17972
|
var _triggerRef$current;
|
|
17973
|
-
var target =
|
|
17973
|
+
var target = event2.target;
|
|
17974
17974
|
var popupElement = (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.getPopupElement();
|
|
17975
17975
|
if (popupElement && popupElement.contains(target)) {
|
|
17976
17976
|
var timeoutId = setTimeout(function() {
|
|
@@ -17989,7 +17989,7 @@ var BaseSelect = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref
|
|
|
17989
17989
|
for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
17990
17990
|
restArgs[_key3 - 1] = arguments[_key3];
|
|
17991
17991
|
}
|
|
17992
|
-
onMouseDown === null || onMouseDown === void 0 || onMouseDown.apply(void 0, [
|
|
17992
|
+
onMouseDown === null || onMouseDown === void 0 || onMouseDown.apply(void 0, [event2].concat(restArgs));
|
|
17993
17993
|
};
|
|
17994
17994
|
var _React$useState5 = React__namespace.useState({}), _React$useState6 = _slicedToArray(_React$useState5, 2), forceUpdate = _React$useState6[1];
|
|
17995
17995
|
function onPopupMouseEnter() {
|
|
@@ -18292,16 +18292,16 @@ function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLef
|
|
|
18292
18292
|
function onWheelY(e3, deltaY) {
|
|
18293
18293
|
wrapperRaf.cancel(nextFrameRef.current);
|
|
18294
18294
|
if (originScroll(false, deltaY)) return;
|
|
18295
|
-
var
|
|
18296
|
-
if (!
|
|
18297
|
-
|
|
18295
|
+
var event2 = e3;
|
|
18296
|
+
if (!event2._virtualHandled) {
|
|
18297
|
+
event2._virtualHandled = true;
|
|
18298
18298
|
} else {
|
|
18299
18299
|
return;
|
|
18300
18300
|
}
|
|
18301
18301
|
offsetRef.current += deltaY;
|
|
18302
18302
|
wheelValueRef.current = deltaY;
|
|
18303
18303
|
if (!isFF) {
|
|
18304
|
-
|
|
18304
|
+
event2.preventDefault();
|
|
18305
18305
|
}
|
|
18306
18306
|
nextFrameRef.current = wrapperRaf(function() {
|
|
18307
18307
|
var patchMultiple = isMouseScrollRef.current ? 10 : 1;
|
|
@@ -18309,21 +18309,21 @@ function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLef
|
|
|
18309
18309
|
offsetRef.current = 0;
|
|
18310
18310
|
});
|
|
18311
18311
|
}
|
|
18312
|
-
function onWheelX(
|
|
18312
|
+
function onWheelX(event2, deltaX) {
|
|
18313
18313
|
onWheelDelta(deltaX, true);
|
|
18314
18314
|
if (!isFF) {
|
|
18315
|
-
|
|
18315
|
+
event2.preventDefault();
|
|
18316
18316
|
}
|
|
18317
18317
|
}
|
|
18318
18318
|
var wheelDirectionRef = React.useRef(null);
|
|
18319
18319
|
var wheelDirectionCleanRef = React.useRef(null);
|
|
18320
|
-
function onWheel(
|
|
18320
|
+
function onWheel(event2) {
|
|
18321
18321
|
if (!inVirtual) return;
|
|
18322
18322
|
wrapperRaf.cancel(wheelDirectionCleanRef.current);
|
|
18323
18323
|
wheelDirectionCleanRef.current = wrapperRaf(function() {
|
|
18324
18324
|
wheelDirectionRef.current = null;
|
|
18325
18325
|
}, 2);
|
|
18326
|
-
var deltaX =
|
|
18326
|
+
var deltaX = event2.deltaX, deltaY = event2.deltaY, shiftKey = event2.shiftKey;
|
|
18327
18327
|
var mergedDeltaX = deltaX;
|
|
18328
18328
|
var mergedDeltaY = deltaY;
|
|
18329
18329
|
if (wheelDirectionRef.current === "sx" || !wheelDirectionRef.current && (shiftKey || false) && deltaY && !deltaX) {
|
|
@@ -18337,14 +18337,14 @@ function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLef
|
|
|
18337
18337
|
wheelDirectionRef.current = horizontalScroll && absX > absY ? "x" : "y";
|
|
18338
18338
|
}
|
|
18339
18339
|
if (wheelDirectionRef.current === "y") {
|
|
18340
|
-
onWheelY(
|
|
18340
|
+
onWheelY(event2, mergedDeltaY);
|
|
18341
18341
|
} else {
|
|
18342
|
-
onWheelX(
|
|
18342
|
+
onWheelX(event2, mergedDeltaX);
|
|
18343
18343
|
}
|
|
18344
18344
|
}
|
|
18345
|
-
function onFireFoxScroll(
|
|
18345
|
+
function onFireFoxScroll(event2) {
|
|
18346
18346
|
if (!inVirtual) return;
|
|
18347
|
-
isMouseScrollRef.current =
|
|
18347
|
+
isMouseScrollRef.current = event2.detail === wheelValueRef.current;
|
|
18348
18348
|
}
|
|
18349
18349
|
return [onWheel, onFireFoxScroll];
|
|
18350
18350
|
}
|
|
@@ -18590,9 +18590,9 @@ function useScrollDrag(inVirtual, componentRef, onScrollOffset) {
|
|
|
18590
18590
|
if (e3.target.draggable || e3.button !== 0) {
|
|
18591
18591
|
return;
|
|
18592
18592
|
}
|
|
18593
|
-
var
|
|
18594
|
-
if (!
|
|
18595
|
-
|
|
18593
|
+
var event2 = e3;
|
|
18594
|
+
if (!event2._virtualHandled) {
|
|
18595
|
+
event2._virtualHandled = true;
|
|
18596
18596
|
mouseDownLock = true;
|
|
18597
18597
|
}
|
|
18598
18598
|
};
|
|
@@ -19161,13 +19161,13 @@ function RawList(props, ref) {
|
|
|
19161
19161
|
});
|
|
19162
19162
|
var _useFrameWheel = useFrameWheel(useVirtual, isScrollAtTop, isScrollAtBottom, isScrollAtLeft, isScrollAtRight, !!scrollWidth, onWheelDelta), _useFrameWheel2 = _slicedToArray(_useFrameWheel, 2), onRawWheel = _useFrameWheel2[0], onFireFoxScroll = _useFrameWheel2[1];
|
|
19163
19163
|
useMobileTouchMove(useVirtual, componentRef, function(isHorizontal, delta, smoothOffset, e3) {
|
|
19164
|
-
var
|
|
19164
|
+
var event2 = e3;
|
|
19165
19165
|
if (originScroll(isHorizontal, delta, smoothOffset)) {
|
|
19166
19166
|
return false;
|
|
19167
19167
|
}
|
|
19168
|
-
if (!
|
|
19169
|
-
if (
|
|
19170
|
-
|
|
19168
|
+
if (!event2 || !event2._virtualHandled) {
|
|
19169
|
+
if (event2) {
|
|
19170
|
+
event2._virtualHandled = true;
|
|
19171
19171
|
}
|
|
19172
19172
|
onRawWheel({
|
|
19173
19173
|
preventDefault: function preventDefault() {
|
|
@@ -19356,8 +19356,8 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19356
19356
|
var overMaxCount = React__namespace.useMemo(function() {
|
|
19357
19357
|
return multiple && isValidCount(maxCount) && (rawValues === null || rawValues === void 0 ? void 0 : rawValues.size) >= maxCount;
|
|
19358
19358
|
}, [multiple, maxCount, rawValues === null || rawValues === void 0 ? void 0 : rawValues.size]);
|
|
19359
|
-
var onListMouseDown = function onListMouseDown2(
|
|
19360
|
-
|
|
19359
|
+
var onListMouseDown = function onListMouseDown2(event2) {
|
|
19360
|
+
event2.preventDefault();
|
|
19361
19361
|
};
|
|
19362
19362
|
var scrollIntoView = function scrollIntoView2(args) {
|
|
19363
19363
|
var _listRef$current;
|
|
@@ -19442,8 +19442,8 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19442
19442
|
};
|
|
19443
19443
|
React__namespace.useImperativeHandle(ref, function() {
|
|
19444
19444
|
return {
|
|
19445
|
-
onKeyDown: function onKeyDown2(
|
|
19446
|
-
var which =
|
|
19445
|
+
onKeyDown: function onKeyDown2(event2) {
|
|
19446
|
+
var which = event2.which, ctrlKey = event2.ctrlKey;
|
|
19447
19447
|
switch (which) {
|
|
19448
19448
|
// >>> Arrow keys & ctrl + n/p on Mac
|
|
19449
19449
|
case KeyCode.N:
|
|
@@ -19480,7 +19480,7 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19480
19480
|
onSelectValue(void 0);
|
|
19481
19481
|
}
|
|
19482
19482
|
if (open) {
|
|
19483
|
-
|
|
19483
|
+
event2.preventDefault();
|
|
19484
19484
|
}
|
|
19485
19485
|
break;
|
|
19486
19486
|
}
|
|
@@ -19488,7 +19488,7 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19488
19488
|
case KeyCode.ESC: {
|
|
19489
19489
|
toggleOpen(false);
|
|
19490
19490
|
if (open) {
|
|
19491
|
-
|
|
19491
|
+
event2.stopPropagation();
|
|
19492
19492
|
}
|
|
19493
19493
|
}
|
|
19494
19494
|
}
|
|
@@ -23720,8 +23720,8 @@ function useAccessibility$1(_ref) {
|
|
|
23720
23720
|
}
|
|
23721
23721
|
return false;
|
|
23722
23722
|
};
|
|
23723
|
-
var handleKeyDown = function handleKeyDown2(
|
|
23724
|
-
switch (
|
|
23723
|
+
var handleKeyDown = function handleKeyDown2(event2) {
|
|
23724
|
+
switch (event2.keyCode) {
|
|
23725
23725
|
case ESC$1:
|
|
23726
23726
|
handleCloseMenuAndReturnFocus();
|
|
23727
23727
|
break;
|
|
@@ -23731,7 +23731,7 @@ function useAccessibility$1(_ref) {
|
|
|
23731
23731
|
focusResult = focusMenu();
|
|
23732
23732
|
}
|
|
23733
23733
|
if (focusResult) {
|
|
23734
|
-
|
|
23734
|
+
event2.preventDefault();
|
|
23735
23735
|
} else {
|
|
23736
23736
|
handleCloseMenuAndReturnFocus();
|
|
23737
23737
|
}
|
|
@@ -30500,9 +30500,9 @@ function TimeColumn(props) {
|
|
|
30500
30500
|
clearDelayCheck();
|
|
30501
30501
|
};
|
|
30502
30502
|
}, [value2, optionalValue, flattenUnits(units)]);
|
|
30503
|
-
var onInternalScroll = function onInternalScroll2(
|
|
30503
|
+
var onInternalScroll = function onInternalScroll2(event2) {
|
|
30504
30504
|
clearDelayCheck();
|
|
30505
|
-
var target =
|
|
30505
|
+
var target = event2.target;
|
|
30506
30506
|
if (!isScrolling() && changeOnScroll) {
|
|
30507
30507
|
checkDelayRef.current = setTimeout(function() {
|
|
30508
30508
|
var ul = ulRef.current;
|
|
@@ -31561,11 +31561,11 @@ function useInputProps(props, postProps) {
|
|
|
31561
31561
|
active: activeIndex === index2,
|
|
31562
31562
|
helped: allHelp || activeHelp && activeIndex === index2,
|
|
31563
31563
|
disabled: getProp(disabled2),
|
|
31564
|
-
onFocus: function onFocus(
|
|
31565
|
-
_onFocus(
|
|
31564
|
+
onFocus: function onFocus(event2) {
|
|
31565
|
+
_onFocus(event2, index2);
|
|
31566
31566
|
},
|
|
31567
|
-
onBlur: function onBlur(
|
|
31568
|
-
_onBlur(
|
|
31567
|
+
onBlur: function onBlur(event2) {
|
|
31568
|
+
_onBlur(event2, index2);
|
|
31569
31569
|
},
|
|
31570
31570
|
onSubmit,
|
|
31571
31571
|
// Get validate text value
|
|
@@ -31584,16 +31584,16 @@ function useInputProps(props, postProps) {
|
|
|
31584
31584
|
index: index2
|
|
31585
31585
|
});
|
|
31586
31586
|
},
|
|
31587
|
-
onKeyDown: function onKeyDown2(
|
|
31587
|
+
onKeyDown: function onKeyDown2(event2) {
|
|
31588
31588
|
var prevented = false;
|
|
31589
|
-
_onKeyDown === null || _onKeyDown === void 0 || _onKeyDown(
|
|
31589
|
+
_onKeyDown === null || _onKeyDown === void 0 || _onKeyDown(event2, function() {
|
|
31590
31590
|
if (process.env.NODE_ENV !== "production") {
|
|
31591
31591
|
warningOnce(false, "`preventDefault` callback is deprecated. Please call `event.preventDefault` directly.");
|
|
31592
31592
|
}
|
|
31593
31593
|
prevented = true;
|
|
31594
31594
|
});
|
|
31595
|
-
if (!
|
|
31596
|
-
switch (
|
|
31595
|
+
if (!event2.defaultPrevented && !prevented) {
|
|
31596
|
+
switch (event2.key) {
|
|
31597
31597
|
case "Escape":
|
|
31598
31598
|
onOpenChange(false, {
|
|
31599
31599
|
index: index2
|
|
@@ -31799,16 +31799,16 @@ var Input$5 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
|
31799
31799
|
setInputValue(text2);
|
|
31800
31800
|
onModify(text2);
|
|
31801
31801
|
});
|
|
31802
|
-
var onInternalChange = function onInternalChange2(
|
|
31802
|
+
var onInternalChange = function onInternalChange2(event2) {
|
|
31803
31803
|
if (!format3) {
|
|
31804
|
-
var text2 =
|
|
31804
|
+
var text2 = event2.target.value;
|
|
31805
31805
|
onModify(text2);
|
|
31806
31806
|
setInputValue(text2);
|
|
31807
31807
|
onChange(text2);
|
|
31808
31808
|
}
|
|
31809
31809
|
};
|
|
31810
|
-
var onFormatPaste = function onFormatPaste2(
|
|
31811
|
-
var pasteText =
|
|
31810
|
+
var onFormatPaste = function onFormatPaste2(event2) {
|
|
31811
|
+
var pasteText = event2.clipboardData.getData("text");
|
|
31812
31812
|
if (validateFormat(pasteText)) {
|
|
31813
31813
|
triggerInputChange(pasteText);
|
|
31814
31814
|
}
|
|
@@ -31817,41 +31817,41 @@ var Input$5 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
|
31817
31817
|
var onFormatMouseDown = function onFormatMouseDown2() {
|
|
31818
31818
|
mouseDownRef.current = true;
|
|
31819
31819
|
};
|
|
31820
|
-
var onFormatMouseUp = function onFormatMouseUp2(
|
|
31821
|
-
var _ref =
|
|
31820
|
+
var onFormatMouseUp = function onFormatMouseUp2(event2) {
|
|
31821
|
+
var _ref = event2.target, start2 = _ref.selectionStart;
|
|
31822
31822
|
var closeMaskIndex = maskFormat.getMaskCellIndex(start2);
|
|
31823
31823
|
setFocusCellIndex(closeMaskIndex);
|
|
31824
31824
|
forceSelectionSync({});
|
|
31825
|
-
onMouseUp === null || onMouseUp === void 0 || onMouseUp(
|
|
31825
|
+
onMouseUp === null || onMouseUp === void 0 || onMouseUp(event2);
|
|
31826
31826
|
mouseDownRef.current = false;
|
|
31827
31827
|
};
|
|
31828
|
-
var onFormatFocus = function onFormatFocus2(
|
|
31828
|
+
var onFormatFocus = function onFormatFocus2(event2) {
|
|
31829
31829
|
setFocused(true);
|
|
31830
31830
|
setFocusCellIndex(0);
|
|
31831
31831
|
setFocusCellText("");
|
|
31832
|
-
onFocus(
|
|
31832
|
+
onFocus(event2);
|
|
31833
31833
|
};
|
|
31834
|
-
var onSharedBlur = function onSharedBlur2(
|
|
31835
|
-
onBlur(
|
|
31834
|
+
var onSharedBlur = function onSharedBlur2(event2) {
|
|
31835
|
+
onBlur(event2);
|
|
31836
31836
|
};
|
|
31837
|
-
var onFormatBlur = function onFormatBlur2(
|
|
31837
|
+
var onFormatBlur = function onFormatBlur2(event2) {
|
|
31838
31838
|
setFocused(false);
|
|
31839
|
-
onSharedBlur(
|
|
31839
|
+
onSharedBlur(event2);
|
|
31840
31840
|
};
|
|
31841
31841
|
useLockEffect(active, function() {
|
|
31842
31842
|
if (!active && !preserveInvalidOnBlur) {
|
|
31843
31843
|
setInputValue(value2);
|
|
31844
31844
|
}
|
|
31845
31845
|
});
|
|
31846
|
-
var onSharedKeyDown = function onSharedKeyDown2(
|
|
31847
|
-
if (
|
|
31846
|
+
var onSharedKeyDown = function onSharedKeyDown2(event2) {
|
|
31847
|
+
if (event2.key === "Enter" && validateFormat(inputValue)) {
|
|
31848
31848
|
onSubmit();
|
|
31849
31849
|
}
|
|
31850
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
31850
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2);
|
|
31851
31851
|
};
|
|
31852
|
-
var onFormatKeyDown = function onFormatKeyDown2(
|
|
31853
|
-
onSharedKeyDown(
|
|
31854
|
-
var key =
|
|
31852
|
+
var onFormatKeyDown = function onFormatKeyDown2(event2) {
|
|
31853
|
+
onSharedKeyDown(event2);
|
|
31854
|
+
var key = event2.key;
|
|
31855
31855
|
var nextCellText = null;
|
|
31856
31856
|
var nextFillText = null;
|
|
31857
31857
|
var maskCellLen = selectionEnd - selectionStart;
|
|
@@ -32157,15 +32157,15 @@ function RangePicker(props, ref) {
|
|
|
32157
32157
|
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];
|
|
32158
32158
|
var calendarValue = getCalendarValue();
|
|
32159
32159
|
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];
|
|
32160
|
-
var onSharedFocus = function onSharedFocus2(
|
|
32160
|
+
var onSharedFocus = function onSharedFocus2(event2, index2) {
|
|
32161
32161
|
triggerFocus2(true);
|
|
32162
|
-
onFocus === null || onFocus === void 0 || onFocus(
|
|
32162
|
+
onFocus === null || onFocus === void 0 || onFocus(event2, {
|
|
32163
32163
|
range: getActiveRange(index2 !== null && index2 !== void 0 ? index2 : activeIndex)
|
|
32164
32164
|
});
|
|
32165
32165
|
};
|
|
32166
|
-
var onSharedBlur = function onSharedBlur2(
|
|
32166
|
+
var onSharedBlur = function onSharedBlur2(event2, index2) {
|
|
32167
32167
|
triggerFocus2(false);
|
|
32168
|
-
onBlur === null || onBlur === void 0 || onBlur(
|
|
32168
|
+
onBlur === null || onBlur === void 0 || onBlur(event2, {
|
|
32169
32169
|
range: getActiveRange(index2 !== null && index2 !== void 0 ? index2 : activeIndex)
|
|
32170
32170
|
});
|
|
32171
32171
|
};
|
|
@@ -32234,9 +32234,9 @@ function RangePicker(props, ref) {
|
|
|
32234
32234
|
});
|
|
32235
32235
|
}
|
|
32236
32236
|
};
|
|
32237
|
-
var onSelectorClick = function onSelectorClick2(
|
|
32237
|
+
var onSelectorClick = function onSelectorClick2(event2) {
|
|
32238
32238
|
var _activeElement;
|
|
32239
|
-
var rootNode =
|
|
32239
|
+
var rootNode = event2.target.getRootNode();
|
|
32240
32240
|
if (!selectorRef.current.nativeElement.contains((_activeElement = rootNode.activeElement) !== null && _activeElement !== void 0 ? _activeElement : document.activeElement)) {
|
|
32241
32241
|
var enabledIndex = disabled2.findIndex(function(d) {
|
|
32242
32242
|
return !d;
|
|
@@ -32248,7 +32248,7 @@ function RangePicker(props, ref) {
|
|
|
32248
32248
|
}
|
|
32249
32249
|
}
|
|
32250
32250
|
triggerOpen(true);
|
|
32251
|
-
onClick === null || onClick === void 0 || onClick(
|
|
32251
|
+
onClick === null || onClick === void 0 || onClick(event2);
|
|
32252
32252
|
};
|
|
32253
32253
|
var onSelectorClear = function onSelectorClear2() {
|
|
32254
32254
|
triggerSubmitChange(null);
|
|
@@ -32287,9 +32287,9 @@ function RangePicker(props, ref) {
|
|
|
32287
32287
|
setInternalHoverValues(date4 ? fillCalendarValue(date4, activeIndex) : null);
|
|
32288
32288
|
setHoverSource("cell");
|
|
32289
32289
|
};
|
|
32290
|
-
var onPanelFocus = function onPanelFocus2(
|
|
32290
|
+
var onPanelFocus = function onPanelFocus2(event2) {
|
|
32291
32291
|
triggerOpen(true);
|
|
32292
|
-
onSharedFocus(
|
|
32292
|
+
onSharedFocus(event2);
|
|
32293
32293
|
};
|
|
32294
32294
|
var onPanelMouseDown = function onPanelMouseDown2() {
|
|
32295
32295
|
lastOperation("panel");
|
|
@@ -32356,7 +32356,7 @@ function RangePicker(props, ref) {
|
|
|
32356
32356
|
var onSelectorInputChange = function onSelectorInputChange2() {
|
|
32357
32357
|
lastOperation("input");
|
|
32358
32358
|
};
|
|
32359
|
-
var onSelectorFocus = function onSelectorFocus2(
|
|
32359
|
+
var onSelectorFocus = function onSelectorFocus2(event2, index2) {
|
|
32360
32360
|
var activeListLen = activeIndexList.length;
|
|
32361
32361
|
var lastActiveIndex = activeIndexList[activeListLen - 1];
|
|
32362
32362
|
if (activeListLen && lastActiveIndex !== index2 && needConfirm && // Not change index if is not filled
|
|
@@ -32374,21 +32374,21 @@ function RangePicker(props, ref) {
|
|
|
32374
32374
|
triggerPartConfirm(null, true);
|
|
32375
32375
|
}
|
|
32376
32376
|
setActiveIndex(index2);
|
|
32377
|
-
onSharedFocus(
|
|
32377
|
+
onSharedFocus(event2, index2);
|
|
32378
32378
|
};
|
|
32379
|
-
var onSelectorBlur = function onSelectorBlur2(
|
|
32379
|
+
var onSelectorBlur = function onSelectorBlur2(event2, index2) {
|
|
32380
32380
|
triggerOpen(false);
|
|
32381
32381
|
if (!needConfirm && lastOperation() === "input") {
|
|
32382
32382
|
var nextIndex = nextActiveIndex(calendarValue);
|
|
32383
32383
|
flushSubmit(activeIndex, nextIndex === null);
|
|
32384
32384
|
}
|
|
32385
|
-
onSharedBlur(
|
|
32385
|
+
onSharedBlur(event2, index2);
|
|
32386
32386
|
};
|
|
32387
|
-
var onSelectorKeyDown = function onSelectorKeyDown2(
|
|
32388
|
-
if (
|
|
32387
|
+
var onSelectorKeyDown = function onSelectorKeyDown2(event2, preventDefault) {
|
|
32388
|
+
if (event2.key === "Tab") {
|
|
32389
32389
|
triggerPartConfirm(null, true);
|
|
32390
32390
|
}
|
|
32391
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
32391
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2, preventDefault);
|
|
32392
32392
|
};
|
|
32393
32393
|
var context = React__namespace.useMemo(function() {
|
|
32394
32394
|
return {
|
|
@@ -32494,8 +32494,8 @@ function MultipleDates(props) {
|
|
|
32494
32494
|
}
|
|
32495
32495
|
function renderItem2(date4) {
|
|
32496
32496
|
var displayLabel = formatDate(date4);
|
|
32497
|
-
var onClose = function onClose2(
|
|
32498
|
-
if (
|
|
32497
|
+
var onClose = function onClose2(event2) {
|
|
32498
|
+
if (event2) event2.stopPropagation();
|
|
32499
32499
|
onRemove2(date4);
|
|
32500
32500
|
};
|
|
32501
32501
|
return renderSelector(displayLabel, onClose);
|
|
@@ -32664,13 +32664,13 @@ function Picker2(props, ref) {
|
|
|
32664
32664
|
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];
|
|
32665
32665
|
var calendarValue = getCalendarValue();
|
|
32666
32666
|
var _useRangeActive = useRangeActive([disabled2]), _useRangeActive2 = _slicedToArray(_useRangeActive, 4), focused = _useRangeActive2[0], triggerFocus2 = _useRangeActive2[1], lastOperation = _useRangeActive2[2], activeIndex = _useRangeActive2[3];
|
|
32667
|
-
var onSharedFocus = function onSharedFocus2(
|
|
32667
|
+
var onSharedFocus = function onSharedFocus2(event2) {
|
|
32668
32668
|
triggerFocus2(true);
|
|
32669
|
-
onFocus === null || onFocus === void 0 || onFocus(
|
|
32669
|
+
onFocus === null || onFocus === void 0 || onFocus(event2, {});
|
|
32670
32670
|
};
|
|
32671
|
-
var onSharedBlur = function onSharedBlur2(
|
|
32671
|
+
var onSharedBlur = function onSharedBlur2(event2) {
|
|
32672
32672
|
triggerFocus2(false);
|
|
32673
|
-
onBlur === null || onBlur === void 0 || onBlur(
|
|
32673
|
+
onBlur === null || onBlur === void 0 || onBlur(event2, {});
|
|
32674
32674
|
};
|
|
32675
32675
|
var _useMergedState = useMergedState(picker, {
|
|
32676
32676
|
value: mode
|
|
@@ -32740,12 +32740,12 @@ function Picker2(props, ref) {
|
|
|
32740
32740
|
force: true
|
|
32741
32741
|
});
|
|
32742
32742
|
};
|
|
32743
|
-
var onSelectorClick = function onSelectorClick2(
|
|
32743
|
+
var onSelectorClick = function onSelectorClick2(event2) {
|
|
32744
32744
|
if (!disabled2 && !selectorRef.current.nativeElement.contains(document.activeElement)) {
|
|
32745
32745
|
selectorRef.current.focus();
|
|
32746
32746
|
}
|
|
32747
32747
|
triggerOpen(true);
|
|
32748
|
-
onClick === null || onClick === void 0 || onClick(
|
|
32748
|
+
onClick === null || onClick === void 0 || onClick(event2);
|
|
32749
32749
|
};
|
|
32750
32750
|
var onSelectorClear = function onSelectorClear2() {
|
|
32751
32751
|
triggerSubmitChange(null);
|
|
@@ -32795,9 +32795,9 @@ function Picker2(props, ref) {
|
|
|
32795
32795
|
setInternalHoverValue(date4);
|
|
32796
32796
|
setHoverSource("cell");
|
|
32797
32797
|
};
|
|
32798
|
-
var onPanelFocus = function onPanelFocus2(
|
|
32798
|
+
var onPanelFocus = function onPanelFocus2(event2) {
|
|
32799
32799
|
triggerOpen(true);
|
|
32800
|
-
onSharedFocus(
|
|
32800
|
+
onSharedFocus(event2);
|
|
32801
32801
|
};
|
|
32802
32802
|
var onPanelSelect = function onPanelSelect2(date4) {
|
|
32803
32803
|
lastOperation("panel");
|
|
@@ -32856,22 +32856,22 @@ function Picker2(props, ref) {
|
|
|
32856
32856
|
var onSelectorInputChange = function onSelectorInputChange2() {
|
|
32857
32857
|
lastOperation("input");
|
|
32858
32858
|
};
|
|
32859
|
-
var onSelectorFocus = function onSelectorFocus2(
|
|
32859
|
+
var onSelectorFocus = function onSelectorFocus2(event2) {
|
|
32860
32860
|
lastOperation("input");
|
|
32861
32861
|
triggerOpen(true, {
|
|
32862
32862
|
inherit: true
|
|
32863
32863
|
});
|
|
32864
|
-
onSharedFocus(
|
|
32864
|
+
onSharedFocus(event2);
|
|
32865
32865
|
};
|
|
32866
|
-
var onSelectorBlur = function onSelectorBlur2(
|
|
32866
|
+
var onSelectorBlur = function onSelectorBlur2(event2) {
|
|
32867
32867
|
triggerOpen(false);
|
|
32868
|
-
onSharedBlur(
|
|
32868
|
+
onSharedBlur(event2);
|
|
32869
32869
|
};
|
|
32870
|
-
var onSelectorKeyDown = function onSelectorKeyDown2(
|
|
32871
|
-
if (
|
|
32870
|
+
var onSelectorKeyDown = function onSelectorKeyDown2(event2, preventDefault) {
|
|
32871
|
+
if (event2.key === "Tab") {
|
|
32872
32872
|
triggerConfirm();
|
|
32873
32873
|
}
|
|
32874
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
32874
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2, preventDefault);
|
|
32875
32875
|
};
|
|
32876
32876
|
var context = React__namespace.useMemo(function() {
|
|
32877
32877
|
return {
|
|
@@ -33703,14 +33703,14 @@ const RadioGroup$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
33703
33703
|
const [value2, setValue] = useMergedState(defaultValue, {
|
|
33704
33704
|
value: customizedValue
|
|
33705
33705
|
});
|
|
33706
|
-
const onRadioChange = React__namespace.useCallback((
|
|
33706
|
+
const onRadioChange = React__namespace.useCallback((event2) => {
|
|
33707
33707
|
const lastValue = value2;
|
|
33708
|
-
const val =
|
|
33708
|
+
const val = event2.target.value;
|
|
33709
33709
|
if (!("value" in props)) {
|
|
33710
33710
|
setValue(val);
|
|
33711
33711
|
}
|
|
33712
33712
|
if (val !== lastValue) {
|
|
33713
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
33713
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event2);
|
|
33714
33714
|
}
|
|
33715
33715
|
}, [value2, setValue, onChange]);
|
|
33716
33716
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
@@ -36380,9 +36380,9 @@ var AddButton = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref)
|
|
|
36380
36380
|
className: "".concat(prefixCls, "-nav-add"),
|
|
36381
36381
|
style: style2,
|
|
36382
36382
|
"aria-label": (locale2 === null || locale2 === void 0 ? void 0 : locale2.addAriaLabel) || "Add tab",
|
|
36383
|
-
onClick: function onClick(
|
|
36383
|
+
onClick: function onClick(event2) {
|
|
36384
36384
|
editable.onEdit("add", {
|
|
36385
|
-
event
|
|
36385
|
+
event: event2
|
|
36386
36386
|
});
|
|
36387
36387
|
}
|
|
36388
36388
|
}, editable.addIcon || "+");
|
|
@@ -36422,12 +36422,12 @@ var OperationNode = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
36422
36422
|
var dropdownPrefix = "".concat(prefixCls, "-dropdown");
|
|
36423
36423
|
var selectedItemId = selectedKey !== null ? "".concat(popupId, "-").concat(selectedKey) : null;
|
|
36424
36424
|
var dropdownAriaLabel = locale2 === null || locale2 === void 0 ? void 0 : locale2.dropdownAriaLabel;
|
|
36425
|
-
function onRemoveTab(
|
|
36426
|
-
|
|
36427
|
-
|
|
36425
|
+
function onRemoveTab(event2, key) {
|
|
36426
|
+
event2.preventDefault();
|
|
36427
|
+
event2.stopPropagation();
|
|
36428
36428
|
editable.onEdit("remove", {
|
|
36429
36429
|
key,
|
|
36430
|
-
event
|
|
36430
|
+
event: event2
|
|
36431
36431
|
});
|
|
36432
36432
|
}
|
|
36433
36433
|
var menu = /* @__PURE__ */ React__namespace.createElement(ExportMenu, {
|
|
@@ -36572,12 +36572,12 @@ var TabNode = function TabNode2(props) {
|
|
|
36572
36572
|
}
|
|
36573
36573
|
onClick(e3);
|
|
36574
36574
|
}
|
|
36575
|
-
function onRemoveTab(
|
|
36576
|
-
|
|
36577
|
-
|
|
36575
|
+
function onRemoveTab(event2) {
|
|
36576
|
+
event2.preventDefault();
|
|
36577
|
+
event2.stopPropagation();
|
|
36578
36578
|
editable.onEdit("remove", {
|
|
36579
36579
|
key,
|
|
36580
|
-
event
|
|
36580
|
+
event: event2
|
|
36581
36581
|
});
|
|
36582
36582
|
}
|
|
36583
36583
|
var labelNode = React__namespace.useMemo(function() {
|
|
@@ -38322,9 +38322,9 @@ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
38322
38322
|
editable = {
|
|
38323
38323
|
onEdit: (editType, {
|
|
38324
38324
|
key,
|
|
38325
|
-
event
|
|
38325
|
+
event: event2
|
|
38326
38326
|
}) => {
|
|
38327
|
-
onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === "add" ?
|
|
38327
|
+
onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === "add" ? event2 : key, editType);
|
|
38328
38328
|
},
|
|
38329
38329
|
removeIcon: (_a = removeIcon !== null && removeIcon !== void 0 ? removeIcon : tabs === null || tabs === void 0 ? void 0 : tabs.removeIcon) !== null && _a !== void 0 ? _a : /* @__PURE__ */ React__namespace.createElement(RefIcon$C, null),
|
|
38330
38330
|
addIcon: (addIcon !== null && addIcon !== void 0 ? addIcon : tabs === null || tabs === void 0 ? void 0 : tabs.addIcon) || /* @__PURE__ */ React__namespace.createElement(RefIcon$r, null),
|
|
@@ -40249,11 +40249,11 @@ function normalizeOptions(options) {
|
|
|
40249
40249
|
}
|
|
40250
40250
|
var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
|
|
40251
40251
|
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;
|
|
40252
|
-
var handleChange = function handleChange2(
|
|
40252
|
+
var handleChange = function handleChange2(event2) {
|
|
40253
40253
|
if (disabled2) {
|
|
40254
40254
|
return;
|
|
40255
40255
|
}
|
|
40256
|
-
onChange(
|
|
40256
|
+
onChange(event2, value2);
|
|
40257
40257
|
};
|
|
40258
40258
|
return /* @__PURE__ */ React__namespace.createElement("label", {
|
|
40259
40259
|
className: classNames(className, _defineProperty$1({}, "".concat(prefixCls, "-item-disabled"), disabled2)),
|
|
@@ -40290,7 +40290,7 @@ var Segmented$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, re
|
|
|
40290
40290
|
defaultValue
|
|
40291
40291
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1];
|
|
40292
40292
|
var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1];
|
|
40293
|
-
var handleChange = function handleChange2(
|
|
40293
|
+
var handleChange = function handleChange2(event2, val) {
|
|
40294
40294
|
setRawValue(val);
|
|
40295
40295
|
onChange === null || onChange === void 0 || onChange(val);
|
|
40296
40296
|
};
|
|
@@ -40306,8 +40306,8 @@ var Segmented$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, re
|
|
|
40306
40306
|
var handleMouseDown = function handleMouseDown2() {
|
|
40307
40307
|
setIsKeyboard(false);
|
|
40308
40308
|
};
|
|
40309
|
-
var handleKeyUp = function handleKeyUp2(
|
|
40310
|
-
if (
|
|
40309
|
+
var handleKeyUp = function handleKeyUp2(event2) {
|
|
40310
|
+
if (event2.key === "Tab") {
|
|
40311
40311
|
setIsKeyboard(true);
|
|
40312
40312
|
}
|
|
40313
40313
|
};
|
|
@@ -40323,8 +40323,8 @@ var Segmented$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, re
|
|
|
40323
40323
|
onChange === null || onChange === void 0 || onChange(nextOption.value);
|
|
40324
40324
|
}
|
|
40325
40325
|
};
|
|
40326
|
-
var handleKeyDown = function handleKeyDown2(
|
|
40327
|
-
switch (
|
|
40326
|
+
var handleKeyDown = function handleKeyDown2(event2) {
|
|
40327
|
+
switch (event2.key) {
|
|
40328
40328
|
case "ArrowLeft":
|
|
40329
40329
|
case "ArrowUp":
|
|
40330
40330
|
onOffset(-1);
|
|
@@ -40671,9 +40671,9 @@ function hasAddon(props) {
|
|
|
40671
40671
|
function hasPrefixSuffix$1(props) {
|
|
40672
40672
|
return !!(props.prefix || props.suffix || props.allowClear);
|
|
40673
40673
|
}
|
|
40674
|
-
function cloneEvent(
|
|
40674
|
+
function cloneEvent(event2, target, value2) {
|
|
40675
40675
|
var currentTarget = target.cloneNode(true);
|
|
40676
|
-
var newEvent = Object.create(
|
|
40676
|
+
var newEvent = Object.create(event2, {
|
|
40677
40677
|
target: {
|
|
40678
40678
|
value: currentTarget
|
|
40679
40679
|
},
|
|
@@ -40695,18 +40695,18 @@ function resolveOnChange(target, e3, onChange, targetValue) {
|
|
|
40695
40695
|
if (!onChange) {
|
|
40696
40696
|
return;
|
|
40697
40697
|
}
|
|
40698
|
-
var
|
|
40698
|
+
var event2 = e3;
|
|
40699
40699
|
if (e3.type === "click") {
|
|
40700
|
-
|
|
40701
|
-
onChange(
|
|
40700
|
+
event2 = cloneEvent(e3, target, "");
|
|
40701
|
+
onChange(event2);
|
|
40702
40702
|
return;
|
|
40703
40703
|
}
|
|
40704
40704
|
if (target.type !== "file" && targetValue !== void 0) {
|
|
40705
|
-
|
|
40706
|
-
onChange(
|
|
40705
|
+
event2 = cloneEvent(e3, target, targetValue);
|
|
40706
|
+
onChange(event2);
|
|
40707
40707
|
return;
|
|
40708
40708
|
}
|
|
40709
|
-
onChange(
|
|
40709
|
+
onChange(event2);
|
|
40710
40710
|
}
|
|
40711
40711
|
function triggerFocus(element2, option) {
|
|
40712
40712
|
if (!element2) return;
|
|
@@ -40761,8 +40761,8 @@ var BaseInput = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
40761
40761
|
clearIcon = /* @__PURE__ */ React.createElement("button", {
|
|
40762
40762
|
type: "button",
|
|
40763
40763
|
tabIndex: -1,
|
|
40764
|
-
onClick: function onClick(
|
|
40765
|
-
handleReset === null || handleReset === void 0 || handleReset(
|
|
40764
|
+
onClick: function onClick(event2) {
|
|
40765
|
+
handleReset === null || handleReset === void 0 || handleReset(event2);
|
|
40766
40766
|
onClear === null || onClear === void 0 || onClear();
|
|
40767
40767
|
},
|
|
40768
40768
|
onMouseDown: function onMouseDown(e3) {
|
|
@@ -43675,18 +43675,18 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
43675
43675
|
}
|
|
43676
43676
|
});
|
|
43677
43677
|
};
|
|
43678
|
-
const onInternalKeyDown = (
|
|
43678
|
+
const onInternalKeyDown = (event2) => {
|
|
43679
43679
|
const {
|
|
43680
43680
|
key,
|
|
43681
43681
|
ctrlKey,
|
|
43682
43682
|
metaKey
|
|
43683
|
-
} =
|
|
43683
|
+
} = event2;
|
|
43684
43684
|
if (key === "ArrowLeft") {
|
|
43685
43685
|
onActiveChange(index2 - 1);
|
|
43686
43686
|
} else if (key === "ArrowRight") {
|
|
43687
43687
|
onActiveChange(index2 + 1);
|
|
43688
43688
|
} else if (key === "z" && (ctrlKey || metaKey)) {
|
|
43689
|
-
|
|
43689
|
+
event2.preventDefault();
|
|
43690
43690
|
}
|
|
43691
43691
|
syncSelection();
|
|
43692
43692
|
};
|
|
@@ -44247,9 +44247,9 @@ var ResizableTextArea = /* @__PURE__ */ React__namespace.forwardRef(function(pro
|
|
|
44247
44247
|
return val !== null && val !== void 0 ? val : "";
|
|
44248
44248
|
}
|
|
44249
44249
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedValue = _useMergedState2[0], setMergedValue = _useMergedState2[1];
|
|
44250
|
-
var onInternalChange = function onInternalChange2(
|
|
44251
|
-
setMergedValue(
|
|
44252
|
-
onChange === null || onChange === void 0 || onChange(
|
|
44250
|
+
var onInternalChange = function onInternalChange2(event2) {
|
|
44251
|
+
setMergedValue(event2.target.value);
|
|
44252
|
+
onChange === null || onChange === void 0 || onChange(event2);
|
|
44253
44253
|
};
|
|
44254
44254
|
var textareaRef = React__namespace.useRef();
|
|
44255
44255
|
React__namespace.useImperativeHandle(ref, function() {
|
|
@@ -44966,17 +44966,17 @@ var Pagination$1 = function Pagination(props) {
|
|
|
44966
44966
|
return isInteger(page) && page !== current && isInteger(total) && total > 0;
|
|
44967
44967
|
}
|
|
44968
44968
|
var shouldDisplayQuickJumper = total > pageSize ? showQuickJumper : false;
|
|
44969
|
-
function handleKeyDown(
|
|
44970
|
-
if (
|
|
44971
|
-
|
|
44969
|
+
function handleKeyDown(event2) {
|
|
44970
|
+
if (event2.keyCode === KeyCode.UP || event2.keyCode === KeyCode.DOWN) {
|
|
44971
|
+
event2.preventDefault();
|
|
44972
44972
|
}
|
|
44973
44973
|
}
|
|
44974
|
-
function handleKeyUp(
|
|
44975
|
-
var value2 = getValidValue(
|
|
44974
|
+
function handleKeyUp(event2) {
|
|
44975
|
+
var value2 = getValidValue(event2);
|
|
44976
44976
|
if (value2 !== internalInputVal) {
|
|
44977
44977
|
setInternalInputVal(value2);
|
|
44978
44978
|
}
|
|
44979
|
-
switch (
|
|
44979
|
+
switch (event2.keyCode) {
|
|
44980
44980
|
case KeyCode.ENTER:
|
|
44981
44981
|
handleChange(value2);
|
|
44982
44982
|
break;
|
|
@@ -44988,8 +44988,8 @@ var Pagination$1 = function Pagination(props) {
|
|
|
44988
44988
|
break;
|
|
44989
44989
|
}
|
|
44990
44990
|
}
|
|
44991
|
-
function handleBlur(
|
|
44992
|
-
handleChange(getValidValue(
|
|
44991
|
+
function handleBlur(event2) {
|
|
44992
|
+
handleChange(getValidValue(event2));
|
|
44993
44993
|
}
|
|
44994
44994
|
function changePageSize(size) {
|
|
44995
44995
|
var newCurrent = calculatePage(size, pageSize, total);
|
|
@@ -45032,25 +45032,25 @@ var Pagination$1 = function Pagination(props) {
|
|
|
45032
45032
|
function jumpNextHandle() {
|
|
45033
45033
|
handleChange(jumpNextPage);
|
|
45034
45034
|
}
|
|
45035
|
-
function runIfEnter(
|
|
45036
|
-
if (
|
|
45035
|
+
function runIfEnter(event2, callback) {
|
|
45036
|
+
if (event2.key === "Enter" || event2.charCode === KeyCode.ENTER || event2.keyCode === KeyCode.ENTER) {
|
|
45037
45037
|
for (var _len = arguments.length, restParams = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
45038
45038
|
restParams[_key - 2] = arguments[_key];
|
|
45039
45039
|
}
|
|
45040
45040
|
callback.apply(void 0, restParams);
|
|
45041
45041
|
}
|
|
45042
45042
|
}
|
|
45043
|
-
function runIfEnterPrev(
|
|
45044
|
-
runIfEnter(
|
|
45043
|
+
function runIfEnterPrev(event2) {
|
|
45044
|
+
runIfEnter(event2, prevHandle);
|
|
45045
45045
|
}
|
|
45046
|
-
function runIfEnterNext(
|
|
45047
|
-
runIfEnter(
|
|
45046
|
+
function runIfEnterNext(event2) {
|
|
45047
|
+
runIfEnter(event2, nextHandle);
|
|
45048
45048
|
}
|
|
45049
|
-
function runIfEnterJumpPrev(
|
|
45050
|
-
runIfEnter(
|
|
45049
|
+
function runIfEnterJumpPrev(event2) {
|
|
45050
|
+
runIfEnter(event2, jumpPrevHandle);
|
|
45051
45051
|
}
|
|
45052
|
-
function runIfEnterJumpNext(
|
|
45053
|
-
runIfEnter(
|
|
45052
|
+
function runIfEnterJumpNext(event2) {
|
|
45053
|
+
runIfEnter(event2, jumpNextHandle);
|
|
45054
45054
|
}
|
|
45055
45055
|
function renderPrev(prevPage2) {
|
|
45056
45056
|
var prevButton = itemRender(prevPage2, "prev", getItemIcon(prevIcon, "prev page"));
|
|
@@ -45064,8 +45064,8 @@ var Pagination$1 = function Pagination(props) {
|
|
|
45064
45064
|
disabled: !hasNext
|
|
45065
45065
|
}) : nextButton;
|
|
45066
45066
|
}
|
|
45067
|
-
function handleGoTO(
|
|
45068
|
-
if (
|
|
45067
|
+
function handleGoTO(event2) {
|
|
45068
|
+
if (event2.type === "click" || event2.keyCode === KeyCode.ENTER) {
|
|
45069
45069
|
handleChange(internalInputVal);
|
|
45070
45070
|
}
|
|
45071
45071
|
}
|
|
@@ -48875,12 +48875,12 @@ var Switch$3 = /* @__PURE__ */ React__namespace.forwardRef(function(_ref, ref) {
|
|
|
48875
48875
|
value: checked,
|
|
48876
48876
|
defaultValue: defaultChecked
|
|
48877
48877
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), innerChecked = _useMergedState2[0], setInnerChecked = _useMergedState2[1];
|
|
48878
|
-
function triggerChange(newChecked,
|
|
48878
|
+
function triggerChange(newChecked, event2) {
|
|
48879
48879
|
var mergedChecked = innerChecked;
|
|
48880
48880
|
if (!disabled2) {
|
|
48881
48881
|
mergedChecked = newChecked;
|
|
48882
48882
|
setInnerChecked(mergedChecked);
|
|
48883
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked,
|
|
48883
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event2);
|
|
48884
48884
|
}
|
|
48885
48885
|
return mergedChecked;
|
|
48886
48886
|
}
|
|
@@ -49582,19 +49582,19 @@ function Cell(props) {
|
|
|
49582
49582
|
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;
|
|
49583
49583
|
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;
|
|
49584
49584
|
var _useHoverState = useHoverState(index2, mergedRowSpan), _useHoverState2 = _slicedToArray(_useHoverState, 2), hovering = _useHoverState2[0], onHover = _useHoverState2[1];
|
|
49585
|
-
var onMouseEnter = useEvent(function(
|
|
49585
|
+
var onMouseEnter = useEvent(function(event2) {
|
|
49586
49586
|
var _additionalProps$onMo;
|
|
49587
49587
|
if (record) {
|
|
49588
49588
|
onHover(index2, index2 + mergedRowSpan - 1);
|
|
49589
49589
|
}
|
|
49590
|
-
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo = additionalProps.onMouseEnter) === null || _additionalProps$onMo === void 0 || _additionalProps$onMo.call(additionalProps,
|
|
49590
|
+
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo = additionalProps.onMouseEnter) === null || _additionalProps$onMo === void 0 || _additionalProps$onMo.call(additionalProps, event2);
|
|
49591
49591
|
});
|
|
49592
|
-
var onMouseLeave = useEvent(function(
|
|
49592
|
+
var onMouseLeave = useEvent(function(event2) {
|
|
49593
49593
|
var _additionalProps$onMo2;
|
|
49594
49594
|
if (record) {
|
|
49595
49595
|
onHover(-1, -1);
|
|
49596
49596
|
}
|
|
49597
|
-
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo2 = additionalProps.onMouseLeave) === null || _additionalProps$onMo2 === void 0 || _additionalProps$onMo2.call(additionalProps,
|
|
49597
|
+
additionalProps === null || additionalProps === void 0 || (_additionalProps$onMo2 = additionalProps.onMouseLeave) === null || _additionalProps$onMo2 === void 0 || _additionalProps$onMo2.call(additionalProps, event2);
|
|
49598
49598
|
});
|
|
49599
49599
|
if (mergedColSpan === 0 || mergedRowSpan === 0) {
|
|
49600
49600
|
return null;
|
|
@@ -49785,14 +49785,14 @@ function useRowInfo(record, rowKey, recordIndex, indent) {
|
|
|
49785
49785
|
var onInternalTriggerExpand = useEvent(onTriggerExpand);
|
|
49786
49786
|
var rowProps = onRow === null || onRow === void 0 ? void 0 : onRow(record, recordIndex);
|
|
49787
49787
|
var onRowClick = rowProps === null || rowProps === void 0 ? void 0 : rowProps.onClick;
|
|
49788
|
-
var onClick = function onClick2(
|
|
49788
|
+
var onClick = function onClick2(event2) {
|
|
49789
49789
|
if (expandRowByClick && mergedExpandable) {
|
|
49790
|
-
onTriggerExpand(record,
|
|
49790
|
+
onTriggerExpand(record, event2);
|
|
49791
49791
|
}
|
|
49792
49792
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
49793
49793
|
args[_key - 1] = arguments[_key];
|
|
49794
49794
|
}
|
|
49795
|
-
onRowClick === null || onRowClick === void 0 || onRowClick.apply(void 0, [
|
|
49795
|
+
onRowClick === null || onRowClick === void 0 || onRowClick.apply(void 0, [event2].concat(args));
|
|
49796
49796
|
};
|
|
49797
49797
|
var computeRowClassName;
|
|
49798
49798
|
if (typeof rowClassName === "string") {
|
|
@@ -49853,9 +49853,9 @@ function renderExpandIcon$1(_ref) {
|
|
|
49853
49853
|
className: classNames(expandClassName, "".concat(prefixCls, "-row-spaced"))
|
|
49854
49854
|
});
|
|
49855
49855
|
}
|
|
49856
|
-
var onClick = function onClick2(
|
|
49857
|
-
onExpand(record,
|
|
49858
|
-
|
|
49856
|
+
var onClick = function onClick2(event2) {
|
|
49857
|
+
onExpand(record, event2);
|
|
49858
|
+
event2.stopPropagation();
|
|
49859
49859
|
};
|
|
49860
49860
|
return /* @__PURE__ */ React__namespace.createElement("span", {
|
|
49861
49861
|
className: classNames(expandClassName, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-row-expanded"), expanded), "".concat(prefixCls, "-row-collapsed"), !expanded)),
|
|
@@ -50851,23 +50851,23 @@ var StickyScrollBar = function StickyScrollBar2(_ref, ref) {
|
|
|
50851
50851
|
var onMouseUp = function onMouseUp2() {
|
|
50852
50852
|
setActive(false);
|
|
50853
50853
|
};
|
|
50854
|
-
var onMouseDown = function onMouseDown2(
|
|
50855
|
-
|
|
50856
|
-
refState.current.delta =
|
|
50854
|
+
var onMouseDown = function onMouseDown2(event2) {
|
|
50855
|
+
event2.persist();
|
|
50856
|
+
refState.current.delta = event2.pageX - scrollState.scrollLeft;
|
|
50857
50857
|
refState.current.x = 0;
|
|
50858
50858
|
setActive(true);
|
|
50859
|
-
|
|
50859
|
+
event2.preventDefault();
|
|
50860
50860
|
};
|
|
50861
|
-
var onMouseMove = function onMouseMove2(
|
|
50861
|
+
var onMouseMove = function onMouseMove2(event2) {
|
|
50862
50862
|
var _window;
|
|
50863
|
-
var _ref2 =
|
|
50863
|
+
var _ref2 = event2 || ((_window = window) === null || _window === void 0 ? void 0 : _window.event), buttons = _ref2.buttons;
|
|
50864
50864
|
if (!isActive2 || buttons === 0) {
|
|
50865
50865
|
if (isActive2) {
|
|
50866
50866
|
setActive(false);
|
|
50867
50867
|
}
|
|
50868
50868
|
return;
|
|
50869
50869
|
}
|
|
50870
|
-
var left = refState.current.x +
|
|
50870
|
+
var left = refState.current.x + event2.pageX - refState.current.x - refState.current.delta;
|
|
50871
50871
|
var isRTL = direction === "rtl";
|
|
50872
50872
|
left = Math.max(isRTL ? scrollBarWidth - bodyWidth : 0, Math.min(isRTL ? 0 : bodyWidth - scrollBarWidth, left));
|
|
50873
50873
|
var shouldScroll = !isRTL || Math.abs(left) + Math.abs(scrollBarWidth) < bodyWidth;
|
|
@@ -50875,7 +50875,7 @@ var StickyScrollBar = function StickyScrollBar2(_ref, ref) {
|
|
|
50875
50875
|
onScroll({
|
|
50876
50876
|
scrollLeft: left / bodyWidth * (bodyScrollWidth + 2)
|
|
50877
50877
|
});
|
|
50878
|
-
refState.current.x =
|
|
50878
|
+
refState.current.x = event2.pageX;
|
|
50879
50879
|
}
|
|
50880
50880
|
};
|
|
50881
50881
|
var checkScrollBarVisible = function checkScrollBarVisible2() {
|
|
@@ -52206,10 +52206,10 @@ function isFirstChild(treeNodeEntity) {
|
|
|
52206
52206
|
var posArr = posToArr(treeNodeEntity.pos);
|
|
52207
52207
|
return Number(posArr[posArr.length - 1]) === 0;
|
|
52208
52208
|
}
|
|
52209
|
-
function calcDropPosition(
|
|
52209
|
+
function calcDropPosition(event2, dragNodeProps, targetNodeProps, indent, startMousePosition, allowDrop2, flattenedNodes, keyEntities, expandKeys, direction) {
|
|
52210
52210
|
var _abstractDropNodeEnti;
|
|
52211
|
-
var clientX =
|
|
52212
|
-
var _getBoundingClientRec =
|
|
52211
|
+
var clientX = event2.clientX, clientY = event2.clientY;
|
|
52212
|
+
var _getBoundingClientRec = event2.target.getBoundingClientRect(), top = _getBoundingClientRec.top, height = _getBoundingClientRec.height;
|
|
52213
52213
|
var horizontalMouseOffset = (direction === "rtl" ? -1 : 1) * (((startMousePosition === null || startMousePosition === void 0 ? void 0 : startMousePosition.x) || 0) - clientX);
|
|
52214
52214
|
var rawDropLevelOffset = (horizontalMouseOffset - 12) / indent;
|
|
52215
52215
|
var filteredExpandKeys = expandKeys.filter(function(key) {
|
|
@@ -52537,10 +52537,10 @@ const useSelection = (config, rowSelection) => {
|
|
|
52537
52537
|
type: method4
|
|
52538
52538
|
});
|
|
52539
52539
|
}, [setMergedSelectedKeys, getRecordByKey, onSelectionChange, preserveSelectedRowKeys]);
|
|
52540
|
-
const triggerSingleSelection = React.useCallback((key, selected, keys2,
|
|
52540
|
+
const triggerSingleSelection = React.useCallback((key, selected, keys2, event2) => {
|
|
52541
52541
|
if (onSelect) {
|
|
52542
52542
|
const rows = keys2.map((k) => getRecordByKey(k));
|
|
52543
|
-
onSelect(getRecordByKey(key), selected, rows,
|
|
52543
|
+
onSelect(getRecordByKey(key), selected, rows, event2);
|
|
52544
52544
|
}
|
|
52545
52545
|
setSelectedKeys(keys2, "single");
|
|
52546
52546
|
}, [onSelect, getRecordByKey, setSelectedKeys]);
|
|
@@ -52722,12 +52722,12 @@ const useSelection = (config, rowSelection) => {
|
|
|
52722
52722
|
e3.stopPropagation();
|
|
52723
52723
|
(_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, e3);
|
|
52724
52724
|
},
|
|
52725
|
-
onChange: (
|
|
52725
|
+
onChange: (event2) => {
|
|
52726
52726
|
var _a2;
|
|
52727
52727
|
if (!keySet.has(key)) {
|
|
52728
|
-
triggerSingleSelection(key, true, [key],
|
|
52728
|
+
triggerSingleSelection(key, true, [key], event2.nativeEvent);
|
|
52729
52729
|
}
|
|
52730
|
-
(_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps,
|
|
52730
|
+
(_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, event2);
|
|
52731
52731
|
}
|
|
52732
52732
|
})),
|
|
52733
52733
|
checked
|
|
@@ -52757,11 +52757,11 @@ const useSelection = (config, rowSelection) => {
|
|
|
52757
52757
|
e3.stopPropagation();
|
|
52758
52758
|
(_a3 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a3 === void 0 ? void 0 : _a3.call(checkboxProps, e3);
|
|
52759
52759
|
},
|
|
52760
|
-
onChange: (
|
|
52760
|
+
onChange: (event2) => {
|
|
52761
52761
|
var _a3;
|
|
52762
52762
|
const {
|
|
52763
52763
|
nativeEvent
|
|
52764
|
-
} =
|
|
52764
|
+
} = event2;
|
|
52765
52765
|
const {
|
|
52766
52766
|
shiftKey
|
|
52767
52767
|
} = nativeEvent;
|
|
@@ -52799,7 +52799,7 @@ const useSelection = (config, rowSelection) => {
|
|
|
52799
52799
|
} else {
|
|
52800
52800
|
updatePrevSelectedIndex(currentSelectedIndex);
|
|
52801
52801
|
}
|
|
52802
|
-
(_a3 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a3 === void 0 ? void 0 : _a3.call(checkboxProps,
|
|
52802
|
+
(_a3 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a3 === void 0 ? void 0 : _a3.call(checkboxProps, event2);
|
|
52803
52803
|
}
|
|
52804
52804
|
})),
|
|
52805
52805
|
checked
|
|
@@ -53409,14 +53409,14 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53409
53409
|
_defineProperty$1(_assertThisInitialized(_this), "dragNodeProps", null);
|
|
53410
53410
|
_defineProperty$1(_assertThisInitialized(_this), "currentMouseOverDroppableNodeKey", null);
|
|
53411
53411
|
_defineProperty$1(_assertThisInitialized(_this), "listRef", /* @__PURE__ */ React__namespace.createRef());
|
|
53412
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragStart", function(
|
|
53412
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragStart", function(event2, nodeProps) {
|
|
53413
53413
|
var _this$state = _this.state, expandedKeys = _this$state.expandedKeys, keyEntities = _this$state.keyEntities;
|
|
53414
53414
|
var onDragStart = _this.props.onDragStart;
|
|
53415
53415
|
var eventKey = nodeProps.eventKey;
|
|
53416
53416
|
_this.dragNodeProps = nodeProps;
|
|
53417
53417
|
_this.dragStartMousePosition = {
|
|
53418
|
-
x:
|
|
53419
|
-
y:
|
|
53418
|
+
x: event2.clientX,
|
|
53419
|
+
y: event2.clientY
|
|
53420
53420
|
};
|
|
53421
53421
|
var newExpandedKeys = arrDel(expandedKeys, eventKey);
|
|
53422
53422
|
_this.setState({
|
|
@@ -53427,11 +53427,11 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53427
53427
|
_this.setExpandedKeys(newExpandedKeys);
|
|
53428
53428
|
window.addEventListener("dragend", _this.onWindowDragEnd);
|
|
53429
53429
|
onDragStart === null || onDragStart === void 0 || onDragStart({
|
|
53430
|
-
event,
|
|
53430
|
+
event: event2,
|
|
53431
53431
|
node: convertNodePropsToEventData(nodeProps)
|
|
53432
53432
|
});
|
|
53433
53433
|
});
|
|
53434
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnter", function(
|
|
53434
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnter", function(event2, nodeProps) {
|
|
53435
53435
|
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;
|
|
53436
53436
|
var _this$props = _this.props, onDragEnter = _this$props.onDragEnter, onExpand = _this$props.onExpand, allowDrop2 = _this$props.allowDrop, direction = _this$props.direction;
|
|
53437
53437
|
var pos = nodeProps.pos, eventKey = nodeProps.eventKey;
|
|
@@ -53442,7 +53442,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53442
53442
|
_this.resetDragState();
|
|
53443
53443
|
return;
|
|
53444
53444
|
}
|
|
53445
|
-
var _calcDropPosition = calcDropPosition(
|
|
53445
|
+
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;
|
|
53446
53446
|
if (
|
|
53447
53447
|
// don't allow drop inside its children
|
|
53448
53448
|
dragChildrenKeys.includes(dropTargetKey) || // don't allow drop when drop is not allowed caculated by calcDropPosition
|
|
@@ -53458,7 +53458,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53458
53458
|
clearTimeout(_this.delayedDragEnterLogic[key]);
|
|
53459
53459
|
});
|
|
53460
53460
|
if (_this.dragNodeProps.eventKey !== nodeProps.eventKey) {
|
|
53461
|
-
|
|
53461
|
+
event2.persist();
|
|
53462
53462
|
_this.delayedDragEnterLogic[pos] = window.setTimeout(function() {
|
|
53463
53463
|
if (_this.state.draggingNodeKey === null) {
|
|
53464
53464
|
return;
|
|
@@ -53474,7 +53474,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53474
53474
|
onExpand === null || onExpand === void 0 || onExpand(newExpandedKeys, {
|
|
53475
53475
|
node: convertNodePropsToEventData(nodeProps),
|
|
53476
53476
|
expanded: true,
|
|
53477
|
-
nativeEvent:
|
|
53477
|
+
nativeEvent: event2.nativeEvent
|
|
53478
53478
|
});
|
|
53479
53479
|
}, 800);
|
|
53480
53480
|
}
|
|
@@ -53492,18 +53492,18 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53492
53492
|
dropAllowed
|
|
53493
53493
|
});
|
|
53494
53494
|
onDragEnter === null || onDragEnter === void 0 || onDragEnter({
|
|
53495
|
-
event,
|
|
53495
|
+
event: event2,
|
|
53496
53496
|
node: convertNodePropsToEventData(nodeProps),
|
|
53497
53497
|
expandedKeys
|
|
53498
53498
|
});
|
|
53499
53499
|
});
|
|
53500
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragOver", function(
|
|
53500
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragOver", function(event2, nodeProps) {
|
|
53501
53501
|
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;
|
|
53502
53502
|
var _this$props2 = _this.props, onDragOver = _this$props2.onDragOver, allowDrop2 = _this$props2.allowDrop, direction = _this$props2.direction;
|
|
53503
53503
|
if (!_this.dragNodeProps) {
|
|
53504
53504
|
return;
|
|
53505
53505
|
}
|
|
53506
|
-
var _calcDropPosition2 = calcDropPosition(
|
|
53506
|
+
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;
|
|
53507
53507
|
if (dragChildrenKeys.includes(dropTargetKey) || !dropAllowed) {
|
|
53508
53508
|
return;
|
|
53509
53509
|
}
|
|
@@ -53523,39 +53523,39 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53523
53523
|
});
|
|
53524
53524
|
}
|
|
53525
53525
|
onDragOver === null || onDragOver === void 0 || onDragOver({
|
|
53526
|
-
event,
|
|
53526
|
+
event: event2,
|
|
53527
53527
|
node: convertNodePropsToEventData(nodeProps)
|
|
53528
53528
|
});
|
|
53529
53529
|
});
|
|
53530
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragLeave", function(
|
|
53531
|
-
if (_this.currentMouseOverDroppableNodeKey === nodeProps.eventKey && !
|
|
53530
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragLeave", function(event2, nodeProps) {
|
|
53531
|
+
if (_this.currentMouseOverDroppableNodeKey === nodeProps.eventKey && !event2.currentTarget.contains(event2.relatedTarget)) {
|
|
53532
53532
|
_this.resetDragState();
|
|
53533
53533
|
_this.currentMouseOverDroppableNodeKey = null;
|
|
53534
53534
|
}
|
|
53535
53535
|
var onDragLeave = _this.props.onDragLeave;
|
|
53536
53536
|
onDragLeave === null || onDragLeave === void 0 || onDragLeave({
|
|
53537
|
-
event,
|
|
53537
|
+
event: event2,
|
|
53538
53538
|
node: convertNodePropsToEventData(nodeProps)
|
|
53539
53539
|
});
|
|
53540
53540
|
});
|
|
53541
|
-
_defineProperty$1(_assertThisInitialized(_this), "onWindowDragEnd", function(
|
|
53542
|
-
_this.onNodeDragEnd(
|
|
53541
|
+
_defineProperty$1(_assertThisInitialized(_this), "onWindowDragEnd", function(event2) {
|
|
53542
|
+
_this.onNodeDragEnd(event2, null, true);
|
|
53543
53543
|
window.removeEventListener("dragend", _this.onWindowDragEnd);
|
|
53544
53544
|
});
|
|
53545
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnd", function(
|
|
53545
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDragEnd", function(event2, nodeProps) {
|
|
53546
53546
|
var onDragEnd = _this.props.onDragEnd;
|
|
53547
53547
|
_this.setState({
|
|
53548
53548
|
dragOverNodeKey: null
|
|
53549
53549
|
});
|
|
53550
53550
|
_this.cleanDragState();
|
|
53551
53551
|
onDragEnd === null || onDragEnd === void 0 || onDragEnd({
|
|
53552
|
-
event,
|
|
53552
|
+
event: event2,
|
|
53553
53553
|
node: convertNodePropsToEventData(nodeProps)
|
|
53554
53554
|
});
|
|
53555
53555
|
_this.dragNodeProps = null;
|
|
53556
53556
|
window.removeEventListener("dragend", _this.onWindowDragEnd);
|
|
53557
53557
|
});
|
|
53558
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeDrop", function(
|
|
53558
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeDrop", function(event2, _) {
|
|
53559
53559
|
var _this$getActiveItem;
|
|
53560
53560
|
var outsideTree = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
53561
53561
|
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;
|
|
@@ -53576,7 +53576,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53576
53576
|
warningOnce(!dropToChild, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");
|
|
53577
53577
|
var posArr = posToArr(dropTargetPos);
|
|
53578
53578
|
var dropResult = {
|
|
53579
|
-
event,
|
|
53579
|
+
event: event2,
|
|
53580
53580
|
node: convertNodePropsToEventData(abstractDropNodeProps),
|
|
53581
53581
|
dragNode: _this.dragNodeProps ? convertNodePropsToEventData(_this.dragNodeProps) : null,
|
|
53582
53582
|
dragNodesKeys: [_this.dragNodeProps.eventKey].concat(dragChildrenKeys),
|
|
@@ -53779,26 +53779,26 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53779
53779
|
});
|
|
53780
53780
|
return loadPromise;
|
|
53781
53781
|
});
|
|
53782
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseEnter", function(
|
|
53782
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseEnter", function(event2, node2) {
|
|
53783
53783
|
var onMouseEnter = _this.props.onMouseEnter;
|
|
53784
53784
|
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter({
|
|
53785
|
-
event,
|
|
53785
|
+
event: event2,
|
|
53786
53786
|
node: node2
|
|
53787
53787
|
});
|
|
53788
53788
|
});
|
|
53789
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseLeave", function(
|
|
53789
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeMouseLeave", function(event2, node2) {
|
|
53790
53790
|
var onMouseLeave = _this.props.onMouseLeave;
|
|
53791
53791
|
onMouseLeave === null || onMouseLeave === void 0 || onMouseLeave({
|
|
53792
|
-
event,
|
|
53792
|
+
event: event2,
|
|
53793
53793
|
node: node2
|
|
53794
53794
|
});
|
|
53795
53795
|
});
|
|
53796
|
-
_defineProperty$1(_assertThisInitialized(_this), "onNodeContextMenu", function(
|
|
53796
|
+
_defineProperty$1(_assertThisInitialized(_this), "onNodeContextMenu", function(event2, node2) {
|
|
53797
53797
|
var onRightClick = _this.props.onRightClick;
|
|
53798
53798
|
if (onRightClick) {
|
|
53799
|
-
|
|
53799
|
+
event2.preventDefault();
|
|
53800
53800
|
onRightClick({
|
|
53801
|
-
event,
|
|
53801
|
+
event: event2,
|
|
53802
53802
|
node: node2
|
|
53803
53803
|
});
|
|
53804
53804
|
}
|
|
@@ -53938,18 +53938,18 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53938
53938
|
_this.onActiveChange(null);
|
|
53939
53939
|
}
|
|
53940
53940
|
});
|
|
53941
|
-
_defineProperty$1(_assertThisInitialized(_this), "onKeyDown", function(
|
|
53941
|
+
_defineProperty$1(_assertThisInitialized(_this), "onKeyDown", function(event2) {
|
|
53942
53942
|
var _this$state13 = _this.state, activeKey = _this$state13.activeKey, expandedKeys = _this$state13.expandedKeys, checkedKeys = _this$state13.checkedKeys, fieldNames = _this$state13.fieldNames;
|
|
53943
53943
|
var _this$props10 = _this.props, onKeyDown2 = _this$props10.onKeyDown, checkable = _this$props10.checkable, selectable = _this$props10.selectable;
|
|
53944
|
-
switch (
|
|
53944
|
+
switch (event2.which) {
|
|
53945
53945
|
case KeyCode.UP: {
|
|
53946
53946
|
_this.offsetActiveKey(-1);
|
|
53947
|
-
|
|
53947
|
+
event2.preventDefault();
|
|
53948
53948
|
break;
|
|
53949
53949
|
}
|
|
53950
53950
|
case KeyCode.DOWN: {
|
|
53951
53951
|
_this.offsetActiveKey(1);
|
|
53952
|
-
|
|
53952
|
+
event2.preventDefault();
|
|
53953
53953
|
break;
|
|
53954
53954
|
}
|
|
53955
53955
|
}
|
|
@@ -53961,7 +53961,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53961
53961
|
data: activeItem.data,
|
|
53962
53962
|
active: true
|
|
53963
53963
|
}));
|
|
53964
|
-
switch (
|
|
53964
|
+
switch (event2.which) {
|
|
53965
53965
|
// >>> Expand
|
|
53966
53966
|
case KeyCode.LEFT: {
|
|
53967
53967
|
if (expandable && expandedKeys.includes(activeKey)) {
|
|
@@ -53969,7 +53969,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53969
53969
|
} else if (activeItem.parent) {
|
|
53970
53970
|
_this.onActiveChange(activeItem.parent.key);
|
|
53971
53971
|
}
|
|
53972
|
-
|
|
53972
|
+
event2.preventDefault();
|
|
53973
53973
|
break;
|
|
53974
53974
|
}
|
|
53975
53975
|
case KeyCode.RIGHT: {
|
|
@@ -53978,7 +53978,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53978
53978
|
} else if (activeItem.children && activeItem.children.length) {
|
|
53979
53979
|
_this.onActiveChange(activeItem.children[0].key);
|
|
53980
53980
|
}
|
|
53981
|
-
|
|
53981
|
+
event2.preventDefault();
|
|
53982
53982
|
break;
|
|
53983
53983
|
}
|
|
53984
53984
|
// Selection
|
|
@@ -53993,7 +53993,7 @@ var Tree$2 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
53993
53993
|
}
|
|
53994
53994
|
}
|
|
53995
53995
|
}
|
|
53996
|
-
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(
|
|
53996
|
+
onKeyDown2 === null || onKeyDown2 === void 0 || onKeyDown2(event2);
|
|
53997
53997
|
});
|
|
53998
53998
|
_defineProperty$1(_assertThisInitialized(_this), "setUncontrolledState", function(state) {
|
|
53999
53999
|
var atomic = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
@@ -55012,7 +55012,7 @@ const DirectoryTree = (_a, ref) => {
|
|
|
55012
55012
|
}
|
|
55013
55013
|
return (_a2 = props.onExpand) === null || _a2 === void 0 ? void 0 : _a2.call(props, keys2, info);
|
|
55014
55014
|
};
|
|
55015
|
-
const onSelect = (keys2,
|
|
55015
|
+
const onSelect = (keys2, event2) => {
|
|
55016
55016
|
var _a2;
|
|
55017
55017
|
const {
|
|
55018
55018
|
multiple,
|
|
@@ -55021,12 +55021,12 @@ const DirectoryTree = (_a, ref) => {
|
|
|
55021
55021
|
const {
|
|
55022
55022
|
node: node2,
|
|
55023
55023
|
nativeEvent
|
|
55024
|
-
} =
|
|
55024
|
+
} = event2;
|
|
55025
55025
|
const {
|
|
55026
55026
|
key = ""
|
|
55027
55027
|
} = node2;
|
|
55028
55028
|
const treeData = getTreeData(props);
|
|
55029
|
-
const newEvent = Object.assign(Object.assign({},
|
|
55029
|
+
const newEvent = Object.assign(Object.assign({}, event2), {
|
|
55030
55030
|
selected: true
|
|
55031
55031
|
});
|
|
55032
55032
|
const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);
|
|
@@ -55116,12 +55116,12 @@ const FilterSearch = (props) => {
|
|
|
55116
55116
|
className: `${tablePrefixCls}-filter-dropdown-search-input`
|
|
55117
55117
|
}));
|
|
55118
55118
|
};
|
|
55119
|
-
const onKeyDown = (
|
|
55119
|
+
const onKeyDown = (event2) => {
|
|
55120
55120
|
const {
|
|
55121
55121
|
keyCode
|
|
55122
|
-
} =
|
|
55122
|
+
} = event2;
|
|
55123
55123
|
if (keyCode === KeyCode.ENTER) {
|
|
55124
|
-
|
|
55124
|
+
event2.stopPropagation();
|
|
55125
55125
|
}
|
|
55126
55126
|
};
|
|
55127
55127
|
const FilterDropdownMenuWrapper = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => /* @__PURE__ */ React__namespace.createElement("div", {
|
|
@@ -55971,24 +55971,24 @@ const injectSorter = (prefixCls, columns, sorterStates, triggerSorter, defaultSo
|
|
|
55971
55971
|
const cell = ((_a = column2.onHeaderCell) === null || _a === void 0 ? void 0 : _a.call(column2, col)) || {};
|
|
55972
55972
|
const originOnClick = cell.onClick;
|
|
55973
55973
|
const originOKeyDown = cell.onKeyDown;
|
|
55974
|
-
cell.onClick = (
|
|
55974
|
+
cell.onClick = (event2) => {
|
|
55975
55975
|
triggerSorter({
|
|
55976
55976
|
column: column2,
|
|
55977
55977
|
key: columnKey,
|
|
55978
55978
|
sortOrder: nextSortOrder,
|
|
55979
55979
|
multiplePriority: getMultiplePriority(column2)
|
|
55980
55980
|
});
|
|
55981
|
-
originOnClick === null || originOnClick === void 0 ? void 0 : originOnClick(
|
|
55981
|
+
originOnClick === null || originOnClick === void 0 ? void 0 : originOnClick(event2);
|
|
55982
55982
|
};
|
|
55983
|
-
cell.onKeyDown = (
|
|
55984
|
-
if (
|
|
55983
|
+
cell.onKeyDown = (event2) => {
|
|
55984
|
+
if (event2.keyCode === KeyCode.ENTER) {
|
|
55985
55985
|
triggerSorter({
|
|
55986
55986
|
column: column2,
|
|
55987
55987
|
key: columnKey,
|
|
55988
55988
|
sortOrder: nextSortOrder,
|
|
55989
55989
|
multiplePriority: getMultiplePriority(column2)
|
|
55990
55990
|
});
|
|
55991
|
-
originOKeyDown === null || originOKeyDown === void 0 ? void 0 : originOKeyDown(
|
|
55991
|
+
originOKeyDown === null || originOKeyDown === void 0 ? void 0 : originOKeyDown(event2);
|
|
55992
55992
|
}
|
|
55993
55993
|
};
|
|
55994
55994
|
const renderTitle = safeColumnTitle(column2.title, {});
|
|
@@ -60384,13 +60384,14 @@ const Typography = ({
|
|
|
60384
60384
|
}
|
|
60385
60385
|
);
|
|
60386
60386
|
}
|
|
60387
|
+
const validVariant = TYPOGRAPHY_VARIANT[variant] || "body2";
|
|
60387
60388
|
if (isText) {
|
|
60388
60389
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
60389
60390
|
Text,
|
|
60390
60391
|
{
|
|
60391
60392
|
state,
|
|
60392
60393
|
$themeType: themeType,
|
|
60393
|
-
variant,
|
|
60394
|
+
variant: validVariant,
|
|
60394
60395
|
breakpoint,
|
|
60395
60396
|
color: color2,
|
|
60396
60397
|
$isFullWidth: isFullWidth,
|
|
@@ -60406,7 +60407,7 @@ const Typography = ({
|
|
|
60406
60407
|
{
|
|
60407
60408
|
state,
|
|
60408
60409
|
$themeType: themeType,
|
|
60409
|
-
variant,
|
|
60410
|
+
variant: validVariant,
|
|
60410
60411
|
breakpoint,
|
|
60411
60412
|
color: color2,
|
|
60412
60413
|
$isFullWidth: isFullWidth,
|
|
@@ -61352,30 +61353,30 @@ function mixin(obj) {
|
|
|
61352
61353
|
}
|
|
61353
61354
|
return obj;
|
|
61354
61355
|
}
|
|
61355
|
-
Emitter.prototype.on = Emitter.prototype.addEventListener = function(
|
|
61356
|
+
Emitter.prototype.on = Emitter.prototype.addEventListener = function(event2, fn) {
|
|
61356
61357
|
this._callbacks = this._callbacks || {};
|
|
61357
|
-
(this._callbacks["$" +
|
|
61358
|
+
(this._callbacks["$" + event2] = this._callbacks["$" + event2] || []).push(fn);
|
|
61358
61359
|
return this;
|
|
61359
61360
|
};
|
|
61360
|
-
Emitter.prototype.once = function(
|
|
61361
|
+
Emitter.prototype.once = function(event2, fn) {
|
|
61361
61362
|
function on2() {
|
|
61362
|
-
this.off(
|
|
61363
|
+
this.off(event2, on2);
|
|
61363
61364
|
fn.apply(this, arguments);
|
|
61364
61365
|
}
|
|
61365
61366
|
on2.fn = fn;
|
|
61366
|
-
this.on(
|
|
61367
|
+
this.on(event2, on2);
|
|
61367
61368
|
return this;
|
|
61368
61369
|
};
|
|
61369
|
-
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function(
|
|
61370
|
+
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function(event2, fn) {
|
|
61370
61371
|
this._callbacks = this._callbacks || {};
|
|
61371
61372
|
if (0 == arguments.length) {
|
|
61372
61373
|
this._callbacks = {};
|
|
61373
61374
|
return this;
|
|
61374
61375
|
}
|
|
61375
|
-
var callbacks = this._callbacks["$" +
|
|
61376
|
+
var callbacks = this._callbacks["$" + event2];
|
|
61376
61377
|
if (!callbacks) return this;
|
|
61377
61378
|
if (1 == arguments.length) {
|
|
61378
|
-
delete this._callbacks["$" +
|
|
61379
|
+
delete this._callbacks["$" + event2];
|
|
61379
61380
|
return this;
|
|
61380
61381
|
}
|
|
61381
61382
|
var cb;
|
|
@@ -61387,13 +61388,13 @@ Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.rem
|
|
|
61387
61388
|
}
|
|
61388
61389
|
}
|
|
61389
61390
|
if (callbacks.length === 0) {
|
|
61390
|
-
delete this._callbacks["$" +
|
|
61391
|
+
delete this._callbacks["$" + event2];
|
|
61391
61392
|
}
|
|
61392
61393
|
return this;
|
|
61393
61394
|
};
|
|
61394
|
-
Emitter.prototype.emit = function(
|
|
61395
|
+
Emitter.prototype.emit = function(event2) {
|
|
61395
61396
|
this._callbacks = this._callbacks || {};
|
|
61396
|
-
var args = new Array(arguments.length - 1), callbacks = this._callbacks["$" +
|
|
61397
|
+
var args = new Array(arguments.length - 1), callbacks = this._callbacks["$" + event2];
|
|
61397
61398
|
for (var i = 1; i < arguments.length; i++) {
|
|
61398
61399
|
args[i - 1] = arguments[i];
|
|
61399
61400
|
}
|
|
@@ -61406,12 +61407,12 @@ Emitter.prototype.emit = function(event) {
|
|
|
61406
61407
|
return this;
|
|
61407
61408
|
};
|
|
61408
61409
|
Emitter.prototype.emitReserved = Emitter.prototype.emit;
|
|
61409
|
-
Emitter.prototype.listeners = function(
|
|
61410
|
+
Emitter.prototype.listeners = function(event2) {
|
|
61410
61411
|
this._callbacks = this._callbacks || {};
|
|
61411
|
-
return this._callbacks["$" +
|
|
61412
|
+
return this._callbacks["$" + event2] || [];
|
|
61412
61413
|
};
|
|
61413
|
-
Emitter.prototype.hasListeners = function(
|
|
61414
|
-
return !!this.listeners(
|
|
61414
|
+
Emitter.prototype.hasListeners = function(event2) {
|
|
61415
|
+
return !!this.listeners(event2).length;
|
|
61415
61416
|
};
|
|
61416
61417
|
const nextTick = (() => {
|
|
61417
61418
|
const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
|
|
@@ -67818,7 +67819,7 @@ function chunkedPush(list2, right) {
|
|
|
67818
67819
|
function subtokenize(eventsArray) {
|
|
67819
67820
|
const jumps = {};
|
|
67820
67821
|
let index2 = -1;
|
|
67821
|
-
let
|
|
67822
|
+
let event2;
|
|
67822
67823
|
let lineIndex;
|
|
67823
67824
|
let otherIndex;
|
|
67824
67825
|
let otherEvent;
|
|
@@ -67830,9 +67831,9 @@ function subtokenize(eventsArray) {
|
|
|
67830
67831
|
while (index2 in jumps) {
|
|
67831
67832
|
index2 = jumps[index2];
|
|
67832
67833
|
}
|
|
67833
|
-
|
|
67834
|
-
if (index2 &&
|
|
67835
|
-
subevents =
|
|
67834
|
+
event2 = events.get(index2);
|
|
67835
|
+
if (index2 && event2[1].type === "chunkFlow" && events.get(index2 - 1)[1].type === "listItemPrefix") {
|
|
67836
|
+
subevents = event2[1]._tokenizer.events;
|
|
67836
67837
|
otherIndex = 0;
|
|
67837
67838
|
if (otherIndex < subevents.length && subevents[otherIndex][1].type === "lineEndingBlank") {
|
|
67838
67839
|
otherIndex += 2;
|
|
@@ -67849,13 +67850,13 @@ function subtokenize(eventsArray) {
|
|
|
67849
67850
|
}
|
|
67850
67851
|
}
|
|
67851
67852
|
}
|
|
67852
|
-
if (
|
|
67853
|
-
if (
|
|
67853
|
+
if (event2[0] === "enter") {
|
|
67854
|
+
if (event2[1].contentType) {
|
|
67854
67855
|
Object.assign(jumps, subcontent(events, index2));
|
|
67855
67856
|
index2 = jumps[index2];
|
|
67856
67857
|
more = true;
|
|
67857
67858
|
}
|
|
67858
|
-
} else if (
|
|
67859
|
+
} else if (event2[1]._container) {
|
|
67859
67860
|
otherIndex = index2;
|
|
67860
67861
|
lineIndex = void 0;
|
|
67861
67862
|
while (otherIndex--) {
|
|
@@ -67874,11 +67875,11 @@ function subtokenize(eventsArray) {
|
|
|
67874
67875
|
}
|
|
67875
67876
|
}
|
|
67876
67877
|
if (lineIndex) {
|
|
67877
|
-
|
|
67878
|
+
event2[1].end = {
|
|
67878
67879
|
...events.get(lineIndex)[1].start
|
|
67879
67880
|
};
|
|
67880
67881
|
parameters = events.slice(lineIndex, index2);
|
|
67881
|
-
parameters.unshift(
|
|
67882
|
+
parameters.unshift(event2);
|
|
67882
67883
|
events.splice(lineIndex, index2 - lineIndex + 1, parameters);
|
|
67883
67884
|
}
|
|
67884
67885
|
}
|
|
@@ -70600,12 +70601,12 @@ function compiler(options) {
|
|
|
70600
70601
|
let firstBlankLineIndex;
|
|
70601
70602
|
let atMarker;
|
|
70602
70603
|
while (++index2 <= length2) {
|
|
70603
|
-
const
|
|
70604
|
-
switch (
|
|
70604
|
+
const event2 = events[index2];
|
|
70605
|
+
switch (event2[1].type) {
|
|
70605
70606
|
case "listUnordered":
|
|
70606
70607
|
case "listOrdered":
|
|
70607
70608
|
case "blockQuote": {
|
|
70608
|
-
if (
|
|
70609
|
+
if (event2[0] === "enter") {
|
|
70609
70610
|
containerBalance++;
|
|
70610
70611
|
} else {
|
|
70611
70612
|
containerBalance--;
|
|
@@ -70614,7 +70615,7 @@ function compiler(options) {
|
|
|
70614
70615
|
break;
|
|
70615
70616
|
}
|
|
70616
70617
|
case "lineEndingBlank": {
|
|
70617
|
-
if (
|
|
70618
|
+
if (event2[0] === "enter") {
|
|
70618
70619
|
if (listItem3 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
70619
70620
|
firstBlankLineIndex = index2;
|
|
70620
70621
|
}
|
|
@@ -70633,7 +70634,7 @@ function compiler(options) {
|
|
|
70633
70634
|
atMarker = void 0;
|
|
70634
70635
|
}
|
|
70635
70636
|
}
|
|
70636
|
-
if (!containerBalance &&
|
|
70637
|
+
if (!containerBalance && event2[0] === "enter" && event2[1].type === "listItemPrefix" || containerBalance === -1 && event2[0] === "exit" && (event2[1].type === "listUnordered" || event2[1].type === "listOrdered")) {
|
|
70637
70638
|
if (listItem3) {
|
|
70638
70639
|
let tailIndex = index2;
|
|
70639
70640
|
lineIndex = void 0;
|
|
@@ -70655,21 +70656,21 @@ function compiler(options) {
|
|
|
70655
70656
|
if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {
|
|
70656
70657
|
listItem3._spread = true;
|
|
70657
70658
|
}
|
|
70658
|
-
listItem3.end = Object.assign({}, lineIndex ? events[lineIndex][1].start :
|
|
70659
|
-
events.splice(lineIndex || index2, 0, ["exit", listItem3,
|
|
70659
|
+
listItem3.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event2[1].end);
|
|
70660
|
+
events.splice(lineIndex || index2, 0, ["exit", listItem3, event2[2]]);
|
|
70660
70661
|
index2++;
|
|
70661
70662
|
length2++;
|
|
70662
70663
|
}
|
|
70663
|
-
if (
|
|
70664
|
+
if (event2[1].type === "listItemPrefix") {
|
|
70664
70665
|
const item = {
|
|
70665
70666
|
type: "listItem",
|
|
70666
70667
|
_spread: false,
|
|
70667
|
-
start: Object.assign({},
|
|
70668
|
+
start: Object.assign({}, event2[1].start),
|
|
70668
70669
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
70669
70670
|
end: void 0
|
|
70670
70671
|
};
|
|
70671
70672
|
listItem3 = item;
|
|
70672
|
-
events.splice(index2, 0, ["enter", item,
|
|
70673
|
+
events.splice(index2, 0, ["enter", item, event2[2]]);
|
|
70673
70674
|
index2++;
|
|
70674
70675
|
length2++;
|
|
70675
70676
|
firstBlankLineIndex = void 0;
|
|
@@ -74480,9 +74481,9 @@ const Chat = ({
|
|
|
74480
74481
|
});
|
|
74481
74482
|
}
|
|
74482
74483
|
}, [messages2]);
|
|
74483
|
-
const handleKeyDown = (
|
|
74484
|
-
if (
|
|
74485
|
-
|
|
74484
|
+
const handleKeyDown = (event2) => {
|
|
74485
|
+
if (event2.key === "Enter") {
|
|
74486
|
+
event2.preventDefault();
|
|
74486
74487
|
sendMessage();
|
|
74487
74488
|
} else {
|
|
74488
74489
|
socketRef.current?.emit("typing");
|
|
@@ -74748,6 +74749,128 @@ const Solid = (properties) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
74748
74749
|
const UnitNumber = ({ variant }) => {
|
|
74749
74750
|
return variant === "outline" ? /* @__PURE__ */ jsxRuntime.jsx(Outline, {}) : /* @__PURE__ */ jsxRuntime.jsx(Solid, {});
|
|
74750
74751
|
};
|
|
74752
|
+
const defaultValidator = (_rule, value2) => {
|
|
74753
|
+
console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
|
|
74754
|
+
if (!value2 || /^\d+$/.test(value2)) {
|
|
74755
|
+
return Promise.resolve();
|
|
74756
|
+
}
|
|
74757
|
+
return Promise.reject("Please input whole numbers only");
|
|
74758
|
+
};
|
|
74759
|
+
const FormInput = React.forwardRef((props, ref) => {
|
|
74760
|
+
const { onChange: formOnChange, value: formValue, ...inputProps } = props;
|
|
74761
|
+
const [localValue, setLocalValue] = React.useState(formValue || "");
|
|
74762
|
+
const handleChange = (actionEvent) => {
|
|
74763
|
+
const value2 = actionEvent.payload.value;
|
|
74764
|
+
setLocalValue(value2);
|
|
74765
|
+
if (formOnChange) {
|
|
74766
|
+
formOnChange(event);
|
|
74767
|
+
}
|
|
74768
|
+
};
|
|
74769
|
+
const { addonBefore, addonAfter, placeholder } = inputProps;
|
|
74770
|
+
if (addonBefore && !addonAfter) {
|
|
74771
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74772
|
+
Input2,
|
|
74773
|
+
{
|
|
74774
|
+
...inputProps,
|
|
74775
|
+
ref,
|
|
74776
|
+
placeholder,
|
|
74777
|
+
addonBefore,
|
|
74778
|
+
maxLength: 10,
|
|
74779
|
+
value: localValue,
|
|
74780
|
+
onChange: handleChange
|
|
74781
|
+
}
|
|
74782
|
+
);
|
|
74783
|
+
}
|
|
74784
|
+
if (addonAfter && !addonBefore) {
|
|
74785
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74786
|
+
Input2,
|
|
74787
|
+
{
|
|
74788
|
+
...inputProps,
|
|
74789
|
+
ref,
|
|
74790
|
+
placeholder,
|
|
74791
|
+
addonAfter,
|
|
74792
|
+
maxLength: 10,
|
|
74793
|
+
value: localValue,
|
|
74794
|
+
onChange: handleChange
|
|
74795
|
+
}
|
|
74796
|
+
);
|
|
74797
|
+
}
|
|
74798
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74799
|
+
Input2,
|
|
74800
|
+
{
|
|
74801
|
+
...inputProps,
|
|
74802
|
+
ref,
|
|
74803
|
+
placeholder,
|
|
74804
|
+
addonBefore,
|
|
74805
|
+
addonAfter
|
|
74806
|
+
}
|
|
74807
|
+
);
|
|
74808
|
+
});
|
|
74809
|
+
const InputAddon = ({
|
|
74810
|
+
name: name2 = "units",
|
|
74811
|
+
addonBefore,
|
|
74812
|
+
addonAfter,
|
|
74813
|
+
placeholder,
|
|
74814
|
+
maxLength,
|
|
74815
|
+
value: value2,
|
|
74816
|
+
onChange,
|
|
74817
|
+
rules: rules2 = [{ validator: defaultValidator }],
|
|
74818
|
+
validateTrigger = ["onChange", "onBlur"]
|
|
74819
|
+
}) => {
|
|
74820
|
+
const [form] = Form$2.useForm();
|
|
74821
|
+
FormInput.displayName = "FormInput";
|
|
74822
|
+
if (addonAfter && addonBefore) {
|
|
74823
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Form$2, { form, children: /* @__PURE__ */ jsxRuntime.jsx(Space, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
74824
|
+
Form$2.Item,
|
|
74825
|
+
{
|
|
74826
|
+
name: name2,
|
|
74827
|
+
rules: rules2,
|
|
74828
|
+
validateTrigger,
|
|
74829
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
74830
|
+
FormInput,
|
|
74831
|
+
{
|
|
74832
|
+
addonAfter,
|
|
74833
|
+
addonBefore,
|
|
74834
|
+
placeholder,
|
|
74835
|
+
maxLength,
|
|
74836
|
+
value: value2,
|
|
74837
|
+
onChange
|
|
74838
|
+
}
|
|
74839
|
+
)
|
|
74840
|
+
}
|
|
74841
|
+
) }) });
|
|
74842
|
+
}
|
|
74843
|
+
if (addonBefore && !addonAfter) {
|
|
74844
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Form$2, { form, children: /* @__PURE__ */ jsxRuntime.jsx(Space, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
74845
|
+
Form$2.Item,
|
|
74846
|
+
{
|
|
74847
|
+
name: name2,
|
|
74848
|
+
rules: rules2,
|
|
74849
|
+
validateTrigger,
|
|
74850
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
74851
|
+
FormInput,
|
|
74852
|
+
{
|
|
74853
|
+
addonBefore,
|
|
74854
|
+
placeholder,
|
|
74855
|
+
maxLength,
|
|
74856
|
+
value: value2,
|
|
74857
|
+
onChange
|
|
74858
|
+
}
|
|
74859
|
+
)
|
|
74860
|
+
}
|
|
74861
|
+
) }) });
|
|
74862
|
+
}
|
|
74863
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Form$2, { form, children: /* @__PURE__ */ jsxRuntime.jsx(Space, { children: /* @__PURE__ */ jsxRuntime.jsx(Form$2.Item, { name: name2, rules: rules2, validateTrigger, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
74864
|
+
FormInput,
|
|
74865
|
+
{
|
|
74866
|
+
addonAfter,
|
|
74867
|
+
placeholder,
|
|
74868
|
+
maxLength,
|
|
74869
|
+
value: value2,
|
|
74870
|
+
onChange
|
|
74871
|
+
}
|
|
74872
|
+
) }) }) });
|
|
74873
|
+
};
|
|
74751
74874
|
function ascending$1(a, b) {
|
|
74752
74875
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
74753
74876
|
}
|
|
@@ -75515,8 +75638,8 @@ function selection_datum(value2) {
|
|
|
75515
75638
|
return arguments.length ? this.property("__data__", value2) : this.node().__data__;
|
|
75516
75639
|
}
|
|
75517
75640
|
function contextListener(listener) {
|
|
75518
|
-
return function(
|
|
75519
|
-
listener.call(this,
|
|
75641
|
+
return function(event2) {
|
|
75642
|
+
listener.call(this, event2, this.__data__);
|
|
75520
75643
|
};
|
|
75521
75644
|
}
|
|
75522
75645
|
function parseTypenames(typenames) {
|
|
@@ -75576,15 +75699,15 @@ function selection_on(typename, value2, options) {
|
|
|
75576
75699
|
return this;
|
|
75577
75700
|
}
|
|
75578
75701
|
function dispatchEvent(node2, type4, params) {
|
|
75579
|
-
var window2 = defaultView(node2),
|
|
75580
|
-
if (typeof
|
|
75581
|
-
|
|
75702
|
+
var window2 = defaultView(node2), event2 = window2.CustomEvent;
|
|
75703
|
+
if (typeof event2 === "function") {
|
|
75704
|
+
event2 = new event2(type4, params);
|
|
75582
75705
|
} else {
|
|
75583
|
-
|
|
75584
|
-
if (params)
|
|
75585
|
-
else
|
|
75706
|
+
event2 = window2.document.createEvent("Event");
|
|
75707
|
+
if (params) event2.initEvent(type4, params.bubbles, params.cancelable), event2.detail = params.detail;
|
|
75708
|
+
else event2.initEvent(type4, false, false);
|
|
75586
75709
|
}
|
|
75587
|
-
node2.dispatchEvent(
|
|
75710
|
+
node2.dispatchEvent(event2);
|
|
75588
75711
|
}
|
|
75589
75712
|
function dispatchConstant(type4, params) {
|
|
75590
75713
|
return function() {
|
|
@@ -75658,28 +75781,28 @@ Selection$1.prototype = selection.prototype = {
|
|
|
75658
75781
|
function select(selector2) {
|
|
75659
75782
|
return typeof selector2 === "string" ? new Selection$1([[document.querySelector(selector2)]], [document.documentElement]) : new Selection$1([[selector2]], root);
|
|
75660
75783
|
}
|
|
75661
|
-
function sourceEvent(
|
|
75784
|
+
function sourceEvent(event2) {
|
|
75662
75785
|
let sourceEvent2;
|
|
75663
|
-
while (sourceEvent2 =
|
|
75664
|
-
return
|
|
75786
|
+
while (sourceEvent2 = event2.sourceEvent) event2 = sourceEvent2;
|
|
75787
|
+
return event2;
|
|
75665
75788
|
}
|
|
75666
|
-
function pointer(
|
|
75667
|
-
|
|
75668
|
-
if (node2 === void 0) node2 =
|
|
75789
|
+
function pointer(event2, node2) {
|
|
75790
|
+
event2 = sourceEvent(event2);
|
|
75791
|
+
if (node2 === void 0) node2 = event2.currentTarget;
|
|
75669
75792
|
if (node2) {
|
|
75670
75793
|
var svg2 = node2.ownerSVGElement || node2;
|
|
75671
75794
|
if (svg2.createSVGPoint) {
|
|
75672
75795
|
var point2 = svg2.createSVGPoint();
|
|
75673
|
-
point2.x =
|
|
75796
|
+
point2.x = event2.clientX, point2.y = event2.clientY;
|
|
75674
75797
|
point2 = point2.matrixTransform(node2.getScreenCTM().inverse());
|
|
75675
75798
|
return [point2.x, point2.y];
|
|
75676
75799
|
}
|
|
75677
75800
|
if (node2.getBoundingClientRect) {
|
|
75678
75801
|
var rect = node2.getBoundingClientRect();
|
|
75679
|
-
return [
|
|
75802
|
+
return [event2.clientX - rect.left - node2.clientLeft, event2.clientY - rect.top - node2.clientTop];
|
|
75680
75803
|
}
|
|
75681
75804
|
}
|
|
75682
|
-
return [
|
|
75805
|
+
return [event2.pageX, event2.pageY];
|
|
75683
75806
|
}
|
|
75684
75807
|
function define(constructor, factory, prototype) {
|
|
75685
75808
|
constructor.prototype = factory.prototype = prototype;
|
|
@@ -76782,10 +76905,10 @@ function styleFunction(name2, interpolate2, value2) {
|
|
|
76782
76905
|
};
|
|
76783
76906
|
}
|
|
76784
76907
|
function styleMaybeRemove(id2, name2) {
|
|
76785
|
-
var on0, on1, listener0, key = "style." + name2,
|
|
76908
|
+
var on0, on1, listener0, key = "style." + name2, event2 = "end." + key, remove2;
|
|
76786
76909
|
return function() {
|
|
76787
76910
|
var schedule2 = set(this, id2), on2 = schedule2.on, listener = schedule2.value[key] == null ? remove2 || (remove2 = styleRemove(name2)) : void 0;
|
|
76788
|
-
if (on2 !== on0 || listener0 !== listener) (on1 = (on0 = on2).copy()).on(
|
|
76911
|
+
if (on2 !== on0 || listener0 !== listener) (on1 = (on0 = on2).copy()).on(event2, listener0 = listener);
|
|
76789
76912
|
schedule2.on = on1;
|
|
76790
76913
|
};
|
|
76791
76914
|
}
|
|
@@ -78376,7 +78499,7 @@ const BarChart = ({
|
|
|
78376
78499
|
svg2.on("mousedown", removePermanentTooltip);
|
|
78377
78500
|
}
|
|
78378
78501
|
const hoverAreaWidth = 28;
|
|
78379
|
-
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(
|
|
78502
|
+
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) {
|
|
78380
78503
|
if (chartContainer) {
|
|
78381
78504
|
const x2 = xScale(d.name) + barWidth / 2;
|
|
78382
78505
|
const y2 = yScale(d.value);
|
|
@@ -78573,7 +78696,7 @@ const LineChart = ({
|
|
|
78573
78696
|
svg2.on("touchstart", removePermanentTooltip);
|
|
78574
78697
|
svg2.on("mousedown", removePermanentTooltip);
|
|
78575
78698
|
}
|
|
78576
|
-
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(
|
|
78699
|
+
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) {
|
|
78577
78700
|
if (chartContainer) {
|
|
78578
78701
|
const x2 = xScale(d.name);
|
|
78579
78702
|
const y2 = yScale(d.value);
|
|
@@ -78726,7 +78849,7 @@ const DonutChart = ({
|
|
|
78726
78849
|
select(svgRef.current);
|
|
78727
78850
|
segments.on(
|
|
78728
78851
|
"mouseover",
|
|
78729
|
-
function(
|
|
78852
|
+
function(event2, d) {
|
|
78730
78853
|
chartGroup.selectAll(".donut-segment").transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 0.25);
|
|
78731
78854
|
select(this).transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 1);
|
|
78732
78855
|
if (showLegend) {
|
|
@@ -78735,7 +78858,7 @@ const DonutChart = ({
|
|
|
78735
78858
|
svg2.selectAll(`.legend-circle[data-name="${d.data.name}"]`).transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 1);
|
|
78736
78859
|
svg2.selectAll(`.legend-text[data-name="${d.data.name}"]`).transition().duration(CHART_TRANSITION_DURATION * 1e3).attr("opacity", 1);
|
|
78737
78860
|
}
|
|
78738
|
-
const [x2, y2] = pointer(
|
|
78861
|
+
const [x2, y2] = pointer(event2);
|
|
78739
78862
|
const centroid = arc$1.centroid(d);
|
|
78740
78863
|
(d.startAngle + d.endAngle) / 2;
|
|
78741
78864
|
const tooltipX = centerX + centroid[0] - 18;
|
|
@@ -81174,8 +81297,8 @@ const OverflowMenu = React.forwardRef(
|
|
|
81174
81297
|
handleOpenChange(!isOpen);
|
|
81175
81298
|
};
|
|
81176
81299
|
const handleClickOutside = React.useCallback(
|
|
81177
|
-
(
|
|
81178
|
-
if (triggerRef.current && menuRef.current && !triggerRef.current.contains(
|
|
81300
|
+
(event2) => {
|
|
81301
|
+
if (triggerRef.current && menuRef.current && !triggerRef.current.contains(event2.target) && !menuRef.current.contains(event2.target)) {
|
|
81179
81302
|
handleOpenChange(false);
|
|
81180
81303
|
}
|
|
81181
81304
|
},
|
|
@@ -81726,10 +81849,10 @@ const Radio = ({ id: id2, label, selectedId, onChange, isDisabled }) => {
|
|
|
81726
81849
|
if (isDisabled) return;
|
|
81727
81850
|
onChange(id2);
|
|
81728
81851
|
};
|
|
81729
|
-
const handleKeyDown = (
|
|
81852
|
+
const handleKeyDown = (event2) => {
|
|
81730
81853
|
if (isDisabled) return;
|
|
81731
|
-
if (
|
|
81732
|
-
|
|
81854
|
+
if (event2.key === "Enter" || event2.key === " ") {
|
|
81855
|
+
event2.preventDefault();
|
|
81733
81856
|
handleInteraction();
|
|
81734
81857
|
}
|
|
81735
81858
|
};
|
|
@@ -83811,8 +83934,8 @@ const Select = ({
|
|
|
83811
83934
|
const selectReference = React.useRef(null);
|
|
83812
83935
|
const { theme } = useGenesis();
|
|
83813
83936
|
React.useEffect(() => {
|
|
83814
|
-
const handleClickOutside = (
|
|
83815
|
-
if (selectReference.current && !selectReference.current.contains(
|
|
83937
|
+
const handleClickOutside = (event2) => {
|
|
83938
|
+
if (selectReference.current && !selectReference.current.contains(event2.target)) {
|
|
83816
83939
|
handleClose();
|
|
83817
83940
|
setIsFocused(false);
|
|
83818
83941
|
}
|
|
@@ -84828,8 +84951,8 @@ const InfiniteScrollTable = ({
|
|
|
84828
84951
|
rowProps.ref = lastRowRef;
|
|
84829
84952
|
}
|
|
84830
84953
|
if (onRowClick && index2 !== void 0) {
|
|
84831
|
-
rowProps.onClick = (
|
|
84832
|
-
onRowClick(record, index2,
|
|
84954
|
+
rowProps.onClick = (event2) => {
|
|
84955
|
+
onRowClick(record, index2, event2);
|
|
84833
84956
|
};
|
|
84834
84957
|
}
|
|
84835
84958
|
return rowProps;
|
|
@@ -85023,8 +85146,8 @@ function Table({
|
|
|
85023
85146
|
}
|
|
85024
85147
|
}, [dataSource, rowKey, enableRowKeyValidation, onRowKeyError]);
|
|
85025
85148
|
const handleRowMouseDown = React__namespace.useCallback(
|
|
85026
|
-
(record, index2,
|
|
85027
|
-
const target =
|
|
85149
|
+
(record, index2, event2) => {
|
|
85150
|
+
const target = event2.target;
|
|
85028
85151
|
const isInteractiveElement = target.closest(
|
|
85029
85152
|
'button, a, input, select, textarea, [role="button"], [onclick], .ant-checkbox-wrapper, .ant-checkbox'
|
|
85030
85153
|
);
|
|
@@ -85042,14 +85165,14 @@ function Table({
|
|
|
85042
85165
|
[rowKey, enableRowKeyValidation]
|
|
85043
85166
|
);
|
|
85044
85167
|
const handleRowMouseUp = React__namespace.useCallback(
|
|
85045
|
-
(record, index2,
|
|
85168
|
+
(record, index2, event2) => {
|
|
85046
85169
|
setPressedRowKey(null);
|
|
85047
85170
|
},
|
|
85048
85171
|
[]
|
|
85049
85172
|
);
|
|
85050
85173
|
const handleRowClick = React__namespace.useCallback(
|
|
85051
|
-
(record, index2,
|
|
85052
|
-
const target =
|
|
85174
|
+
(record, index2, event2) => {
|
|
85175
|
+
const target = event2.target;
|
|
85053
85176
|
const isInteractiveElement = target.closest(
|
|
85054
85177
|
'button, a, input, select, textarea, [role="button"], [onclick], .ant-checkbox-wrapper, .ant-checkbox'
|
|
85055
85178
|
);
|
|
@@ -85057,7 +85180,7 @@ function Table({
|
|
|
85057
85180
|
return;
|
|
85058
85181
|
}
|
|
85059
85182
|
if (onRowClick) {
|
|
85060
|
-
onRowClick(record, index2,
|
|
85183
|
+
onRowClick(record, index2, event2);
|
|
85061
85184
|
}
|
|
85062
85185
|
},
|
|
85063
85186
|
[onRowClick]
|
|
@@ -85114,9 +85237,9 @@ function Table({
|
|
|
85114
85237
|
);
|
|
85115
85238
|
const isPressed = pressedRowKey === recordKey;
|
|
85116
85239
|
return {
|
|
85117
|
-
onClick: (
|
|
85118
|
-
onMouseDown: (
|
|
85119
|
-
onMouseUp: (
|
|
85240
|
+
onClick: (event2) => handleRowClick(record, index2 ?? 0, event2),
|
|
85241
|
+
onMouseDown: (event2) => handleRowMouseDown(record, index2 ?? 0, event2),
|
|
85242
|
+
onMouseUp: (event2) => handleRowMouseUp(record, index2 ?? 0, event2),
|
|
85120
85243
|
onMouseLeave: () => setPressedRowKey(null),
|
|
85121
85244
|
// Clear pressed state when mouse leaves
|
|
85122
85245
|
style: {
|
|
@@ -85547,7 +85670,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85547
85670
|
{
|
|
85548
85671
|
style: {
|
|
85549
85672
|
display: "flex",
|
|
85550
|
-
justifyContent: "space-between",
|
|
85673
|
+
justifyContent: groups ? "space-between" : "flex-end",
|
|
85551
85674
|
alignItems: "flex-end",
|
|
85552
85675
|
marginTop: 8
|
|
85553
85676
|
},
|
|
@@ -85623,8 +85746,8 @@ const TableWithControls = ({
|
|
|
85623
85746
|
onRowClick: tableOnRowClick
|
|
85624
85747
|
} = tableData;
|
|
85625
85748
|
const actualTableType = isInfiniteScroll ? "infiniteScroll" : tableType;
|
|
85626
|
-
const onTableControlsChange = (
|
|
85627
|
-
onChange(
|
|
85749
|
+
const onTableControlsChange = (event2) => {
|
|
85750
|
+
onChange(event2);
|
|
85628
85751
|
};
|
|
85629
85752
|
const onTableChange = (pagination, filters, sorter) => {
|
|
85630
85753
|
onChange({
|
|
@@ -85632,11 +85755,11 @@ const TableWithControls = ({
|
|
|
85632
85755
|
payload: { value: "tableChange", pagination, filters, sorter }
|
|
85633
85756
|
});
|
|
85634
85757
|
};
|
|
85635
|
-
const onInfiniteScrollTableChange = (
|
|
85636
|
-
setInfiniteScrollData(
|
|
85758
|
+
const onInfiniteScrollTableChange = (event2) => {
|
|
85759
|
+
setInfiniteScrollData(event2);
|
|
85637
85760
|
onChange({
|
|
85638
85761
|
event: "infiniteScrollTableChange",
|
|
85639
|
-
payload: { value: "infiniteScrollTableChange", event }
|
|
85762
|
+
payload: { value: "infiniteScrollTableChange", event: event2 }
|
|
85640
85763
|
});
|
|
85641
85764
|
};
|
|
85642
85765
|
const renderTable = () => {
|
|
@@ -87011,6 +87134,7 @@ exports.GenesisProvider = GenesisProvider;
|
|
|
87011
87134
|
exports.GlobalStyles = GlobalStyles;
|
|
87012
87135
|
exports.IconButton = Button$1;
|
|
87013
87136
|
exports.Input = Input2;
|
|
87137
|
+
exports.InputAddon = InputAddon;
|
|
87014
87138
|
exports.Layout = Layout;
|
|
87015
87139
|
exports.LineChart = LineChart;
|
|
87016
87140
|
exports.Message = Message;
|