@kdcloudjs/kdesign 1.7.5 → 1.7.7
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/CHANGELOG.md +37 -0
- package/dist/kdesign-complete.less +11 -3
- package/dist/kdesign.css +13 -10
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +309 -147
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/form/Field.js +1 -0
- package/es/input/ClearableLabeledInput.d.ts +1 -0
- package/es/input/ClearableLabeledInput.js +4 -3
- package/es/input/TextArea.d.ts +1 -0
- package/es/input/TextArea.js +3 -2
- package/es/input/input.d.ts +1 -0
- package/es/input/input.js +3 -2
- package/es/input/style/index.css +12 -9
- package/es/input/style/index.less +5 -1
- package/es/input/style/mixin.less +5 -2
- package/es/input/style/token.less +1 -0
- package/lib/form/Field.js +1 -0
- package/lib/input/ClearableLabeledInput.d.ts +1 -0
- package/lib/input/ClearableLabeledInput.js +4 -3
- package/lib/input/TextArea.d.ts +1 -0
- package/lib/input/TextArea.js +3 -2
- package/lib/input/input.d.ts +1 -0
- package/lib/input/input.js +3 -2
- package/lib/input/style/index.css +12 -9
- package/lib/input/style/index.less +5 -1
- package/lib/input/style/mixin.less +5 -2
- package/lib/input/style/token.less +1 -0
- package/package.json +2 -2
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.7.
|
|
3
|
+
* @kdcloudjs/kdesign v1.7.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -17692,6 +17692,7 @@ var Field = function Field(props) {
|
|
|
17692
17692
|
}, childrenArray.map(function (child, index) {
|
|
17693
17693
|
var keys = mergeProps(_objectSpread(_objectSpread({}, generateEventHandler(handleValueValidate, validateTrigger)), {}, {
|
|
17694
17694
|
key: index,
|
|
17695
|
+
status: typeof validateMessage !== 'undefined' ? 'error' : undefined,
|
|
17695
17696
|
id: customizeHtmlFor ? undefined : htmlFor
|
|
17696
17697
|
}), child);
|
|
17697
17698
|
return child ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.cloneElement(child, keys) : child;
|
|
@@ -20870,7 +20871,8 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
20870
20871
|
focused = props.focused,
|
|
20871
20872
|
numberMark = props.numberMark,
|
|
20872
20873
|
inputCount = props.inputCount,
|
|
20873
|
-
count = props.count
|
|
20874
|
+
count = props.count,
|
|
20875
|
+
status = props.status;
|
|
20874
20876
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false),
|
|
20875
20877
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
|
|
20876
20878
|
isMouseEnter = _useState2[0],
|
|
@@ -20922,7 +20924,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
20922
20924
|
className: "".concat(prefixCls, "-prefix"),
|
|
20923
20925
|
onMouseDown: mouseDownHandle
|
|
20924
20926
|
}, prefix) : null;
|
|
20925
|
-
var inputWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-
|
|
20927
|
+
var inputWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, className, className && !addonBefore && !addonAfter));
|
|
20926
20928
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
20927
20929
|
className: inputWrapperClasses,
|
|
20928
20930
|
style: style,
|
|
@@ -20937,7 +20939,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
20937
20939
|
if (!addonBefore && !addonAfter && !count) {
|
|
20938
20940
|
return originElement;
|
|
20939
20941
|
}
|
|
20940
|
-
var addonClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-group-addon"), (_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-group-addon-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-group-addon-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-group-addon-disabled"), disabled), _classNames4));
|
|
20942
|
+
var addonClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-group-addon"), (_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-group-addon-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-group-addon-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(prefixCls, "-group-addon-disabled"), disabled), _classNames4));
|
|
20941
20943
|
var addonBeforeNode = addonBefore ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
20942
20944
|
className: addonClassName
|
|
20943
20945
|
}, addonBefore) : null;
|
|
@@ -21033,7 +21035,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21033
21035
|
|
|
21034
21036
|
|
|
21035
21037
|
|
|
21036
|
-
var _excluded = ["value", "allowClear", "borderType", "defaultValue", "count", "countPosition", "autoSize", "className", "prefixCls", "canResize", "maxLength", "disabled", "onBlur", "onFocus", "onChange", "placeholder", "style", "size"],
|
|
21038
|
+
var _excluded = ["value", "allowClear", "borderType", "defaultValue", "count", "countPosition", "autoSize", "className", "prefixCls", "canResize", "maxLength", "disabled", "onBlur", "onFocus", "onChange", "placeholder", "style", "size", "status"],
|
|
21037
21039
|
_excluded2 = ["width", "margin", "marginLeft", "marginRight", "marginTop", "marginBottom"];
|
|
21038
21040
|
|
|
21039
21041
|
|
|
@@ -21077,6 +21079,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
21077
21079
|
placeholder = textAreaProps.placeholder,
|
|
21078
21080
|
style = textAreaProps.style,
|
|
21079
21081
|
size = textAreaProps.size,
|
|
21082
|
+
status = textAreaProps.status,
|
|
21080
21083
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(textAreaProps, _excluded);
|
|
21081
21084
|
var textAreaPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls); // TextArea样式前缀
|
|
21082
21085
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_15__["default"])(_input__WEBPACK_IMPORTED_MODULE_12__["BorderTypes"].indexOf(borderType) === -1, 'textarea', "cannot found textarea borderType '".concat(borderType, "'"));
|
|
@@ -21199,7 +21202,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
21199
21202
|
ref: textareaRef,
|
|
21200
21203
|
disabled: disabled,
|
|
21201
21204
|
style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
|
|
21202
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-
|
|
21205
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
|
|
21203
21206
|
onChange: handleChange,
|
|
21204
21207
|
onFocus: !disabled ? handleFocus : undefined,
|
|
21205
21208
|
onBlur: !disabled ? handleBlur : undefined,
|
|
@@ -21423,7 +21426,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21423
21426
|
|
|
21424
21427
|
|
|
21425
21428
|
|
|
21426
|
-
var _excluded = ["type", "size", "disabled", "onPressEnter", "borderType", "prefixCls", "onFocus", "onBlur", "onChange", "placeholderTobeValue", "defaultValue", "value", "className", "maxLength", "count"];
|
|
21429
|
+
var _excluded = ["type", "size", "disabled", "onPressEnter", "borderType", "prefixCls", "onFocus", "onBlur", "onChange", "placeholderTobeValue", "defaultValue", "value", "className", "maxLength", "count", "status"];
|
|
21427
21430
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21428
21431
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21429
21432
|
|
|
@@ -21472,6 +21475,7 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
21472
21475
|
className = inputProps.className,
|
|
21473
21476
|
maxLength = inputProps.maxLength,
|
|
21474
21477
|
count = inputProps.count,
|
|
21478
|
+
status = inputProps.status,
|
|
21475
21479
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(inputProps, _excluded);
|
|
21476
21480
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_18__["default"])(InputSiteTypes.indexOf(size) === -1, 'input', "cannot found input size '".concat(size, "'"));
|
|
21477
21481
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_18__["default"])(BorderTypes.indexOf(borderType) === -1, 'input', "cannot found input borderType '".concat(borderType, "'"));
|
|
@@ -21495,7 +21499,7 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
21495
21499
|
var inputPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls); // 按钮样式前缀
|
|
21496
21500
|
var addonBefore = others.addonBefore,
|
|
21497
21501
|
addonAfter = others.addonAfter;
|
|
21498
|
-
var inputClasses = classnames__WEBPACK_IMPORTED_MODULE_13___default()(inputPrefixCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-disabled"), disabled), _classNames), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !Object(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_17__["hasPrefixSuffix"])(inputProps) && !addonBefore && !addonAfter));
|
|
21502
|
+
var inputClasses = classnames__WEBPACK_IMPORTED_MODULE_13___default()(inputPrefixCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-disabled"), disabled), _classNames), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !Object(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_17__["hasPrefixSuffix"])(inputProps) && !addonBefore && !addonAfter));
|
|
21499
21503
|
var handleFocus = function handleFocus(event) {
|
|
21500
21504
|
setFocused(true);
|
|
21501
21505
|
onFocus && onFocus(event);
|
|
@@ -39447,6 +39451,17 @@ module.exports = __webpack_require__(/*! core-js-pure/stable/map */ "./node_modu
|
|
|
39447
39451
|
|
|
39448
39452
|
/***/ }),
|
|
39449
39453
|
|
|
39454
|
+
/***/ "./node_modules/@babel/runtime-corejs3/core-js-stable/number/max-safe-integer.js":
|
|
39455
|
+
/*!***************************************************************************************!*\
|
|
39456
|
+
!*** ./node_modules/@babel/runtime-corejs3/core-js-stable/number/max-safe-integer.js ***!
|
|
39457
|
+
\***************************************************************************************/
|
|
39458
|
+
/*! no static exports found */
|
|
39459
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
39460
|
+
|
|
39461
|
+
module.exports = __webpack_require__(/*! core-js-pure/stable/number/max-safe-integer */ "./node_modules/core-js-pure/stable/number/max-safe-integer.js");
|
|
39462
|
+
|
|
39463
|
+
/***/ }),
|
|
39464
|
+
|
|
39450
39465
|
/***/ "./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js":
|
|
39451
39466
|
/*!***********************************************************************************************!*\
|
|
39452
39467
|
!*** ./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js ***!
|
|
@@ -44748,7 +44763,7 @@ var defaultCSSVariables = {
|
|
|
44748
44763
|
'--row-height': '48px',
|
|
44749
44764
|
'--color': '#333',
|
|
44750
44765
|
'--bgcolor': 'white',
|
|
44751
|
-
'--hover-bgcolor': 'var(--hover-color, #
|
|
44766
|
+
'--hover-bgcolor': 'var(--hover-color, #f5f5f5)',
|
|
44752
44767
|
'--highlight-bgcolor': '#eee',
|
|
44753
44768
|
'--primary-color': '#5582F3',
|
|
44754
44769
|
'--primary-color-level1': 'rgb(242, 248, 255)',
|
|
@@ -46043,7 +46058,7 @@ var icons = {
|
|
|
46043
46058
|
CaretRight: CaretRightIcon,
|
|
46044
46059
|
Info: InfoIcon
|
|
46045
46060
|
};
|
|
46046
|
-
var ContextMenuStyleWrap = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject3 || (_templateObject3 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &.", "{\n border: 1px solid #e9ecf1;\n border-radius: 2px;\n background-color: #Fff;\n box-shadow: 0px 0px 5px 0px rgb(154 154 154 / 50%);\n cursor: default;\n font-size:
|
|
46061
|
+
var ContextMenuStyleWrap = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject3 || (_templateObject3 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &.", "{\n border: 1px solid #e9ecf1;\n border-radius: 2px;\n background-color: #Fff;\n box-shadow: 0px 0px 5px 0px rgb(154 154 154 / 50%);\n cursor: default;\n font-size: 12px;\n position:absolute;\n z-index: 1050;\n max-width: 600px;\n padding: 8px 0;\n }\n\n .", "{\n width:100%;\n display: table;\n }\n\n .", " .", "{\n display: table-row;\n color: #212121;\n }\n\n .", " .", "{\n background-color: var(--hover-bgcolor);\n }\n\n .", " .", " .", "{\n display: table-cell;\n padding: 8px 12px;\n max-width: 576px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n line-height: 16px;\n }\n .", " .", ".", "{\n opacity: .5;\n }\n\n"])), _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menu, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuList, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuList, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuOption, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuList, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuOptionActive, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuList, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuOption, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuOptionText, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuList, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuOption, _base_styles__WEBPACK_IMPORTED_MODULE_4__["MenuClasses"].menuOptionDisable);
|
|
46047
46062
|
|
|
46048
46063
|
/***/ }),
|
|
46049
46064
|
|
|
@@ -46261,15 +46276,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46261
46276
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FILL_COLUMN_CODE", function() { return FILL_COLUMN_CODE; });
|
|
46262
46277
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tableWidthKey", function() { return tableWidthKey; });
|
|
46263
46278
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "autoFillTableWidth", function() { return autoFillTableWidth; });
|
|
46264
|
-
/* harmony import */ var
|
|
46265
|
-
/* harmony import */ var
|
|
46266
|
-
/* harmony import */ var
|
|
46267
|
-
/* harmony import */ var
|
|
46268
|
-
/* harmony import */ var
|
|
46269
|
-
/* harmony import */ var
|
|
46270
|
-
/* harmony import */ var
|
|
46271
|
-
/* harmony import */ var
|
|
46272
|
-
/* harmony import */ var
|
|
46279
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ "./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js");
|
|
46280
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0__);
|
|
46281
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_number_max_safe_integer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/max-safe-integer */ "./node_modules/@babel/runtime-corejs3/core-js-stable/number/max-safe-integer.js");
|
|
46282
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_number_max_safe_integer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_number_max_safe_integer__WEBPACK_IMPORTED_MODULE_1__);
|
|
46283
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js");
|
|
46284
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__);
|
|
46285
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js");
|
|
46286
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__);
|
|
46287
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js");
|
|
46288
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_4__);
|
|
46289
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ "./node_modules/@babel/runtime-corejs3/core-js-stable/map.js");
|
|
46290
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5__);
|
|
46291
|
+
/* harmony import */ var _base_calculations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../base/calculations */ "./node_modules/@kdcloudjs/table/es/table/base/calculations.js");
|
|
46292
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils */ "./node_modules/@kdcloudjs/table/es/table/utils/index.js");
|
|
46293
|
+
/* harmony import */ var _base_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../base/styles */ "./node_modules/@kdcloudjs/table/es/table/base/styles.js");
|
|
46294
|
+
/* harmony import */ var _columnResizeWidth__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./columnResizeWidth */ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/columnResizeWidth.js");
|
|
46295
|
+
|
|
46296
|
+
|
|
46297
|
+
|
|
46298
|
+
|
|
46273
46299
|
|
|
46274
46300
|
|
|
46275
46301
|
|
|
@@ -46278,67 +46304,146 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46278
46304
|
|
|
46279
46305
|
var FILL_COLUMN_CODE = '$_fill_column_&';
|
|
46280
46306
|
var tableWidthKey = 'tableWidth';
|
|
46281
|
-
|
|
46307
|
+
|
|
46308
|
+
var FLEX_COLUMN_COUNT = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('flexCount');
|
|
46309
|
+
|
|
46282
46310
|
var autoFillTableWidth = function autoFillTableWidth() {
|
|
46283
46311
|
return function (pipeline) {
|
|
46284
|
-
var
|
|
46285
|
-
var
|
|
46286
|
-
|
|
46287
|
-
|
|
46288
|
-
|
|
46289
|
-
|
|
46312
|
+
var flexColumnResult = findFlexColumns(pipeline);
|
|
46313
|
+
var flexCount = flexColumnResult.get(FLEX_COLUMN_COUNT);
|
|
46314
|
+
|
|
46315
|
+
if (flexCount) {
|
|
46316
|
+
// 设置了flex宽度,flex列平分剩余宽度
|
|
46317
|
+
var remainingWidth = getTableRemainingWidth(pipeline) || 0;
|
|
46318
|
+
|
|
46319
|
+
if (remainingWidth > 0) {
|
|
46320
|
+
// 保存剩余的flex总和和剩余宽度总和宽度
|
|
46321
|
+
var residualFlexCount = flexCount;
|
|
46322
|
+
var residualFlexWidth = remainingWidth;
|
|
46323
|
+
var columnSize = pipeline.getFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_9__["COLUMN_SIZE_KEY"]) || {};
|
|
46324
|
+
pipeline.mapColumns(Object(_utils__WEBPACK_IMPORTED_MODULE_7__["makeRecursiveMapper"])(function (col, recursiveFlatMapInfo) {
|
|
46325
|
+
var isLeaf = recursiveFlatMapInfo.isLeaf;
|
|
46326
|
+
|
|
46327
|
+
if (isLeaf && isValidFlexColumn(col, pipeline)) {
|
|
46328
|
+
var code = col.code,
|
|
46329
|
+
_col$features = col.features,
|
|
46330
|
+
features = _col$features === void 0 ? {} : _col$features;
|
|
46331
|
+
var flex = features.flex,
|
|
46332
|
+
_features$minWidth = features.minWidth,
|
|
46333
|
+
minWidth = _features$minWidth === void 0 ? 0 : _features$minWidth,
|
|
46334
|
+
_features$maxWidth = features.maxWidth,
|
|
46335
|
+
maxWidth = _features$maxWidth === void 0 ? _babel_runtime_corejs3_core_js_stable_number_max_safe_integer__WEBPACK_IMPORTED_MODULE_1___default.a : _features$maxWidth;
|
|
46336
|
+
var usedRemainingWidth = Math.floor(remainingWidth * flex / flexCount);
|
|
46337
|
+
var preColWidth = col.width; // 如果当前已经是最后一个flex列,将剩余的宽度添加到该列,其他计算相应的列
|
|
46338
|
+
|
|
46339
|
+
col.width = clamp(minWidth, preColWidth + (residualFlexCount === flex ? residualFlexWidth : usedRemainingWidth), maxWidth);
|
|
46340
|
+
residualFlexCount -= flex;
|
|
46341
|
+
residualFlexWidth -= col.width - preColWidth;
|
|
46342
|
+
columnSize[code] = col.width;
|
|
46343
|
+
}
|
|
46290
46344
|
|
|
46291
|
-
|
|
46292
|
-
|
|
46345
|
+
return col;
|
|
46346
|
+
}));
|
|
46347
|
+
pipeline.setFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_9__["COLUMN_SIZE_KEY"], columnSize);
|
|
46348
|
+
}
|
|
46293
46349
|
} else {
|
|
46294
|
-
|
|
46295
|
-
var
|
|
46296
|
-
|
|
46297
|
-
|
|
46298
|
-
code
|
|
46299
|
-
|
|
46300
|
-
|
|
46301
|
-
|
|
46302
|
-
|
|
46303
|
-
|
|
46304
|
-
|
|
46305
|
-
|
|
46306
|
-
|
|
46307
|
-
|
|
46308
|
-
|
|
46350
|
+
// 未设置了flex宽度,创建占位列
|
|
46351
|
+
var columns = pipeline.getColumns();
|
|
46352
|
+
|
|
46353
|
+
var fillColumns = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default()(columns).call(columns, function (col) {
|
|
46354
|
+
return col.code === FILL_COLUMN_CODE;
|
|
46355
|
+
});
|
|
46356
|
+
|
|
46357
|
+
var width = getTableRemainingWidth(pipeline) || 0;
|
|
46358
|
+
|
|
46359
|
+
if (fillColumns) {
|
|
46360
|
+
fillColumns.width = width;
|
|
46361
|
+
} else {
|
|
46362
|
+
var rightNestedLockCount = Object(_base_calculations__WEBPACK_IMPORTED_MODULE_6__["getLeftNestedLockCount"])(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(columns).call(columns).reverse());
|
|
46363
|
+
var spliceIndex = columns.length - rightNestedLockCount;
|
|
46364
|
+
var _fillColumns = {
|
|
46365
|
+
name: '',
|
|
46366
|
+
code: FILL_COLUMN_CODE,
|
|
46367
|
+
width: width,
|
|
46368
|
+
features: {
|
|
46369
|
+
resizeable: false
|
|
46370
|
+
},
|
|
46371
|
+
getCellProps: function getCellProps(value, record, rowIndex) {
|
|
46372
|
+
return {
|
|
46373
|
+
className: _base_styles__WEBPACK_IMPORTED_MODULE_8__["Classes"].emptyColCell
|
|
46374
|
+
};
|
|
46375
|
+
}
|
|
46376
|
+
};
|
|
46377
|
+
|
|
46378
|
+
_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_4___default()(columns).call(columns, spliceIndex || columns.length, 0, _fillColumns);
|
|
46379
|
+
}
|
|
46309
46380
|
|
|
46310
|
-
|
|
46381
|
+
pipeline.columns(columns);
|
|
46311
46382
|
}
|
|
46312
46383
|
|
|
46313
|
-
pipeline.columns(columns);
|
|
46314
|
-
setAutoFillWidth(pipeline);
|
|
46315
46384
|
return pipeline;
|
|
46385
|
+
|
|
46386
|
+
function findFlexColumns(pipeline) {
|
|
46387
|
+
var result = new _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5___default.a([[FLEX_COLUMN_COUNT, 0]]);
|
|
46388
|
+
dfs(pipeline.getColumns(), result);
|
|
46389
|
+
return result;
|
|
46390
|
+
|
|
46391
|
+
function dfs(columns, result) {
|
|
46392
|
+
columns.forEach(function (col) {
|
|
46393
|
+
if (Object(_utils__WEBPACK_IMPORTED_MODULE_7__["isLeafNode"])(col)) {
|
|
46394
|
+
if (isValidFlexColumn(col, pipeline)) {
|
|
46395
|
+
result.set(FLEX_COLUMN_COUNT, result.get(FLEX_COLUMN_COUNT) + col.features.flex);
|
|
46396
|
+
}
|
|
46397
|
+
} else {
|
|
46398
|
+
dfs(col.children, result);
|
|
46399
|
+
}
|
|
46400
|
+
});
|
|
46401
|
+
}
|
|
46402
|
+
}
|
|
46316
46403
|
};
|
|
46317
46404
|
};
|
|
46318
46405
|
|
|
46319
|
-
|
|
46406
|
+
function getColumnWidthSum(pipeline) {
|
|
46407
|
+
return dfs(pipeline.getColumns());
|
|
46408
|
+
|
|
46409
|
+
function dfs(columns) {
|
|
46410
|
+
return columns.reduce(function (acc, col) {
|
|
46411
|
+
var width = col.width,
|
|
46412
|
+
code = col.code;
|
|
46413
|
+
|
|
46414
|
+
if (Object(_utils__WEBPACK_IMPORTED_MODULE_7__["isLeafNode"])(col) && code !== FILL_COLUMN_CODE) {
|
|
46415
|
+
var resizeColumn = pipeline.getFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_9__["COLUMN_SIZE_KEY"]);
|
|
46416
|
+
return acc + (resizeColumn && resizeColumn[code]) || width;
|
|
46417
|
+
} else {
|
|
46418
|
+
return acc + dfs(col.children);
|
|
46419
|
+
}
|
|
46420
|
+
}, 0);
|
|
46421
|
+
}
|
|
46422
|
+
}
|
|
46423
|
+
|
|
46424
|
+
function getTableRemainingWidth(pipeline) {
|
|
46320
46425
|
var tableWidth = pipeline.getStateAtKey(tableWidthKey);
|
|
46321
46426
|
if (!tableWidth) return;
|
|
46322
|
-
var
|
|
46323
|
-
|
|
46324
|
-
|
|
46325
|
-
code = col.code;
|
|
46427
|
+
var remainingWidth = Math.floor(tableWidth - getColumnWidthSum(pipeline));
|
|
46428
|
+
return remainingWidth > 0 ? remainingWidth : 0;
|
|
46429
|
+
}
|
|
46326
46430
|
|
|
46327
|
-
|
|
46328
|
-
|
|
46329
|
-
columnWidthSum += resizeColumn && resizeColumn[code] || width;
|
|
46330
|
-
}
|
|
46431
|
+
function isValidFlexColumn(col, pipeline) {
|
|
46432
|
+
var _a;
|
|
46331
46433
|
|
|
46332
|
-
|
|
46333
|
-
}));
|
|
46334
|
-
var fillColumnWidth = Math.floor(tableWidth - columnWidthSum);
|
|
46335
|
-
fillColumnWidth = fillColumnWidth > 0 ? fillColumnWidth : 0;
|
|
46336
|
-
var preWidth = pipeline.getStateAtKey(fillColumnWidthKey, 0);
|
|
46434
|
+
var resizeColumn = pipeline.getFeatureOptions(_columnResizeWidth__WEBPACK_IMPORTED_MODULE_9__["RESIZED_COLUMN_KEY"]); // 拖拽列自动禁止flex
|
|
46337
46435
|
|
|
46338
|
-
if (
|
|
46339
|
-
|
|
46436
|
+
if (resizeColumn === null || resizeColumn === void 0 ? void 0 : resizeColumn.has(col.code)) {
|
|
46437
|
+
return false;
|
|
46340
46438
|
}
|
|
46341
|
-
|
|
46439
|
+
|
|
46440
|
+
var flex = (_a = col.features) === null || _a === void 0 ? void 0 : _a.flex;
|
|
46441
|
+
return typeof flex === 'number' && flex > 0;
|
|
46442
|
+
}
|
|
46443
|
+
|
|
46444
|
+
function clamp(min, x, max) {
|
|
46445
|
+
return Math.max(min, Math.min(max, x));
|
|
46446
|
+
}
|
|
46342
46447
|
|
|
46343
46448
|
/***/ }),
|
|
46344
46449
|
|
|
@@ -47403,28 +47508,32 @@ function columnRangeHover() {
|
|
|
47403
47508
|
/*!***************************************************************************************!*\
|
|
47404
47509
|
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/columnResizeWidth.js ***!
|
|
47405
47510
|
\***************************************************************************************/
|
|
47406
|
-
/*! exports provided: columnResize */
|
|
47511
|
+
/*! exports provided: COLUMN_SIZE_KEY, RESIZED_COLUMN_KEY, columnResize */
|
|
47407
47512
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
47408
47513
|
|
|
47409
47514
|
"use strict";
|
|
47410
47515
|
__webpack_require__.r(__webpack_exports__);
|
|
47516
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COLUMN_SIZE_KEY", function() { return COLUMN_SIZE_KEY; });
|
|
47517
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RESIZED_COLUMN_KEY", function() { return RESIZED_COLUMN_KEY; });
|
|
47411
47518
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "columnResize", function() { return columnResize; });
|
|
47412
47519
|
/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ "./node_modules/@babel/runtime-corejs3/helpers/extends.js");
|
|
47413
47520
|
/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
47414
47521
|
/* harmony import */ var _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/taggedTemplateLiteral */ "./node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteral.js");
|
|
47415
47522
|
/* harmony import */ var _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1__);
|
|
47416
|
-
/* harmony import */ var
|
|
47417
|
-
/* harmony import */ var
|
|
47523
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ "./node_modules/@babel/runtime-corejs3/core-js-stable/set.js");
|
|
47524
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2__);
|
|
47418
47525
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ "./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js");
|
|
47419
47526
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__);
|
|
47420
|
-
/* harmony import */ var
|
|
47421
|
-
/* harmony import */ var
|
|
47422
|
-
/* harmony import */ var
|
|
47423
|
-
/* harmony import */ var
|
|
47424
|
-
/* harmony import */ var
|
|
47425
|
-
/* harmony import */ var
|
|
47426
|
-
/* harmony import */ var
|
|
47427
|
-
/* harmony import */ var
|
|
47527
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js");
|
|
47528
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4__);
|
|
47529
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
47530
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
47531
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js");
|
|
47532
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
47533
|
+
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
|
|
47534
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils */ "./node_modules/@kdcloudjs/table/es/table/utils/index.js");
|
|
47535
|
+
/* harmony import */ var _internals__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../internals */ "./node_modules/@kdcloudjs/table/es/table/internals.js");
|
|
47536
|
+
/* harmony import */ var _base_styles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../base/styles */ "./node_modules/@kdcloudjs/table/es/table/base/styles.js");
|
|
47428
47537
|
|
|
47429
47538
|
|
|
47430
47539
|
|
|
@@ -47439,8 +47548,9 @@ var _templateObject, _templateObject2;
|
|
|
47439
47548
|
|
|
47440
47549
|
|
|
47441
47550
|
|
|
47442
|
-
|
|
47443
|
-
var
|
|
47551
|
+
|
|
47552
|
+
var TableHeaderCellResize = styled_components__WEBPACK_IMPORTED_MODULE_6__["default"].div(_templateObject || (_templateObject = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n position: absolute;\n top: 0;\n right: -5px;\n height: 100%;\n width: 10px;\n cursor: ew-resize;\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index:1;\n\n &:after {\n content: \"\";\n position: absolute;\n display: block;\n left: calc(50% - 1px);\n width: 1px;\n height: calc(100% - 14px);\n top: 7px;\n }\n"])));
|
|
47553
|
+
var TableHeaderGroupCellResize = Object(styled_components__WEBPACK_IMPORTED_MODULE_6__["default"])(TableHeaderCellResize)(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_1___default()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"])));
|
|
47444
47554
|
|
|
47445
47555
|
function clamp(min, x, max) {
|
|
47446
47556
|
return Math.max(min, Math.min(max, x));
|
|
@@ -47450,20 +47560,22 @@ function disableSelect(event) {
|
|
|
47450
47560
|
event.preventDefault();
|
|
47451
47561
|
}
|
|
47452
47562
|
|
|
47563
|
+
var stateKey = 'columnResize';
|
|
47564
|
+
var COLUMN_SIZE_KEY = 'columnResize';
|
|
47565
|
+
var RESIZED_COLUMN_KEY = 'resizedColumn';
|
|
47453
47566
|
function columnResize() {
|
|
47454
47567
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
47455
47568
|
|
|
47456
47569
|
var _a, _b, _c;
|
|
47457
47570
|
|
|
47458
|
-
var stateKey = 'columnResize';
|
|
47459
47571
|
var minSize = (_a = opts.minSize) !== null && _a !== void 0 ? _a : 60;
|
|
47460
47572
|
var fallbackSize = (_b = opts.fallbackSize) !== null && _b !== void 0 ? _b : 150;
|
|
47461
47573
|
var maxSize = (_c = opts.maxSize) !== null && _c !== void 0 ? _c : 1000;
|
|
47462
47574
|
return function columnResizeFeature(pipeline) {
|
|
47463
|
-
var _a, _b
|
|
47575
|
+
var _a, _b;
|
|
47464
47576
|
|
|
47465
47577
|
var columnSize = (_b = (_a = opts.columnSize) !== null && _a !== void 0 ? _a : pipeline.getStateAtKey(stateKey)) !== null && _b !== void 0 ? _b : {};
|
|
47466
|
-
var leafColumns = Object(
|
|
47578
|
+
var leafColumns = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["collectNodes"])(pipeline.getColumns(), 'leaf-only');
|
|
47467
47579
|
leafColumns.forEach(function (_ref) {
|
|
47468
47580
|
var code = _ref.code,
|
|
47469
47581
|
width = _ref.width;
|
|
@@ -47475,15 +47587,10 @@ function columnResize() {
|
|
|
47475
47587
|
columnSize[code] = fallbackSize;
|
|
47476
47588
|
}
|
|
47477
47589
|
}
|
|
47478
|
-
}); //
|
|
47479
|
-
|
|
47480
|
-
if (!pipeline.getStateAtKey(stateKey) || ((_c = pipeline.ref) === null || _c === void 0 ? void 0 : _c.current.lastOptColumnSize) !== opts.columnSize) {
|
|
47481
|
-
pipeline.setStateAtKey(stateKey, columnSize);
|
|
47482
|
-
}
|
|
47590
|
+
}); // 实时存储一份最新的columnSize,与autoFill共用一份数据
|
|
47591
|
+
// 存在state里可能存到取不到最新的
|
|
47483
47592
|
|
|
47484
|
-
|
|
47485
|
-
pipeline.ref.current.lastOptColumnSize = opts.columnSize;
|
|
47486
|
-
}
|
|
47593
|
+
pipeline.setFeatureOptions(COLUMN_SIZE_KEY, columnSize);
|
|
47487
47594
|
|
|
47488
47595
|
var onChangeSize = function onChangeSize(nextColumnSize) {
|
|
47489
47596
|
window.requestAnimationFrame(function () {
|
|
@@ -47491,17 +47598,13 @@ function columnResize() {
|
|
|
47491
47598
|
|
|
47492
47599
|
pipeline.setStateAtKey(stateKey, nextColumnSize);
|
|
47493
47600
|
(_a = opts === null || opts === void 0 ? void 0 : opts.onChangeSize) === null || _a === void 0 ? void 0 : _a.call(opts, nextColumnSize);
|
|
47494
|
-
|
|
47495
|
-
if (opts.columnSize) {
|
|
47496
|
-
if (pipeline.ref) {
|
|
47497
|
-
pipeline.ref.current.lastOptColumnSize = nextColumnSize; // 这里记录由列宽拖拽导致的opts.columnSize变化,避免重复渲染
|
|
47498
|
-
}
|
|
47499
|
-
}
|
|
47500
47601
|
});
|
|
47501
47602
|
};
|
|
47502
47603
|
|
|
47503
47604
|
var handleDoubleClick = function handleDoubleClick(e, col) {
|
|
47504
|
-
|
|
47605
|
+
var _a;
|
|
47606
|
+
|
|
47607
|
+
(_a = opts.doubleClickCallback) === null || _a === void 0 ? void 0 : _a.call(opts, e, col);
|
|
47505
47608
|
};
|
|
47506
47609
|
|
|
47507
47610
|
var handleMouseDown = function handleMouseDown(e, col) {
|
|
@@ -47509,10 +47612,17 @@ function columnResize() {
|
|
|
47509
47612
|
var changedColumnSize = {};
|
|
47510
47613
|
var startX = e.clientX;
|
|
47511
47614
|
var children = col.children,
|
|
47512
|
-
code = col.code
|
|
47615
|
+
code = col.code,
|
|
47616
|
+
_col$features = col.features,
|
|
47617
|
+
features = _col$features === void 0 ? {} : _col$features;
|
|
47618
|
+
var minWidth = features.minWidth,
|
|
47619
|
+
maxWidth = features.maxWidth;
|
|
47620
|
+
var realMinSize = typeof minWidth === 'number' ? minWidth : minSize;
|
|
47621
|
+
var realMaxSize = typeof maxWidth === 'number' ? maxWidth : maxSize;
|
|
47622
|
+
var columnSize = pipeline.getFeatureOptions(COLUMN_SIZE_KEY);
|
|
47513
47623
|
var recordColumnSize = columnSize;
|
|
47514
47624
|
e.stopPropagation();
|
|
47515
|
-
var nextSize$ = Object(
|
|
47625
|
+
var nextSize$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["fromEvent"])(window, 'mousemove').pipe(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeUntil"](Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["fromEvent"])(window, 'mouseup')), rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["map"](function (e) {
|
|
47516
47626
|
var movingX = e.clientX;
|
|
47517
47627
|
|
|
47518
47628
|
var nextColumnSize = _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, columnSize);
|
|
@@ -47521,7 +47631,7 @@ function columnResize() {
|
|
|
47521
47631
|
var deltaRemaining = deltaSum;
|
|
47522
47632
|
|
|
47523
47633
|
if ((children === null || children === void 0 ? void 0 : children.length) > 0) {
|
|
47524
|
-
var leafChildColumns = Object(
|
|
47634
|
+
var leafChildColumns = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["collectNodes"])(children, 'leaf-only');
|
|
47525
47635
|
var childrenWidthSum = leafChildColumns.reduce(function (sum, _ref2) {
|
|
47526
47636
|
var code = _ref2.code;
|
|
47527
47637
|
return sum + columnSize[code];
|
|
@@ -47532,17 +47642,17 @@ function columnResize() {
|
|
|
47532
47642
|
var currentDeltaWidth = Math.round(deltaSum * startSize / childrenWidthSum);
|
|
47533
47643
|
|
|
47534
47644
|
if (index < leafChildColumns.length - 1) {
|
|
47535
|
-
nextColumnSize[code] = clamp(
|
|
47645
|
+
nextColumnSize[code] = clamp(realMinSize, startSize + currentDeltaWidth, realMaxSize);
|
|
47536
47646
|
changedColumnSize[code] = nextColumnSize[code];
|
|
47537
47647
|
deltaRemaining -= currentDeltaWidth;
|
|
47538
47648
|
} else {
|
|
47539
|
-
nextColumnSize[code] = clamp(
|
|
47649
|
+
nextColumnSize[code] = clamp(realMinSize, startSize + deltaRemaining, realMaxSize);
|
|
47540
47650
|
changedColumnSize[code] = nextColumnSize[code];
|
|
47541
47651
|
}
|
|
47542
47652
|
});
|
|
47543
47653
|
} else {
|
|
47544
47654
|
var startSize = columnSize[code];
|
|
47545
|
-
nextColumnSize[code] = clamp(
|
|
47655
|
+
nextColumnSize[code] = clamp(realMinSize, startSize + deltaSum, realMaxSize);
|
|
47546
47656
|
changedColumnSize[code] = nextColumnSize[code];
|
|
47547
47657
|
}
|
|
47548
47658
|
|
|
@@ -47550,11 +47660,21 @@ function columnResize() {
|
|
|
47550
47660
|
return nextColumnSize;
|
|
47551
47661
|
}));
|
|
47552
47662
|
nextSize$.subscribe({
|
|
47553
|
-
next:
|
|
47663
|
+
next: function next(nextColumnSize) {
|
|
47664
|
+
onChangeSize(nextColumnSize); // 由于COLUMN_RESIZE_KEY记录的是全量的列宽,此处记录被改变过的列宽
|
|
47665
|
+
|
|
47666
|
+
var resizedColumnSet = pipeline.getFeatureOptions(RESIZED_COLUMN_KEY) || new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a();
|
|
47667
|
+
|
|
47668
|
+
_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(changedColumnSize).forEach(function (code) {
|
|
47669
|
+
resizedColumnSet.add(code, changedColumnSize[code]);
|
|
47670
|
+
});
|
|
47671
|
+
|
|
47672
|
+
pipeline.setFeatureOptions(RESIZED_COLUMN_KEY, resizedColumnSet);
|
|
47673
|
+
},
|
|
47554
47674
|
complete: function complete() {
|
|
47555
47675
|
var _context;
|
|
47556
47676
|
|
|
47557
|
-
var changedColumnSizes =
|
|
47677
|
+
var changedColumnSizes = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4___default()(_context = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(changedColumnSize)).call(_context, function (code) {
|
|
47558
47678
|
return {
|
|
47559
47679
|
code: code,
|
|
47560
47680
|
width: changedColumnSize[code]
|
|
@@ -47571,26 +47691,26 @@ function columnResize() {
|
|
|
47571
47691
|
});
|
|
47572
47692
|
};
|
|
47573
47693
|
|
|
47574
|
-
var isGroup = Object(
|
|
47575
|
-
return pipeline.mapColumns(Object(
|
|
47694
|
+
var isGroup = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["isGroupColumn"])(pipeline.getColumns());
|
|
47695
|
+
return pipeline.mapColumns(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["makeRecursiveMapper"])(function (col) {
|
|
47576
47696
|
var _a;
|
|
47577
47697
|
|
|
47578
|
-
var prevTitle =
|
|
47698
|
+
var prevTitle = _internals__WEBPACK_IMPORTED_MODULE_10__["internals"].safeRenderHeader(col);
|
|
47579
47699
|
var code = col.code,
|
|
47580
47700
|
features = col.features,
|
|
47581
47701
|
width = col.width;
|
|
47582
47702
|
return _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, col), {
|
|
47583
47703
|
width: (_a = columnSize[code]) !== null && _a !== void 0 ? _a : width,
|
|
47584
|
-
title: /*#__PURE__*/
|
|
47585
|
-
className:
|
|
47704
|
+
title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_5___default.a.Fragment, null, prevTitle, (features === null || features === void 0 ? void 0 : features.resizeable) !== false && (isGroup ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(TableHeaderGroupCellResize, {
|
|
47705
|
+
className: _base_styles__WEBPACK_IMPORTED_MODULE_11__["Classes"].tableHeaderCellResize,
|
|
47586
47706
|
onDoubleClick: function onDoubleClick(e) {
|
|
47587
47707
|
return handleDoubleClick(e, col);
|
|
47588
47708
|
},
|
|
47589
47709
|
onMouseDown: function onMouseDown(e) {
|
|
47590
47710
|
return handleMouseDown(e, col);
|
|
47591
47711
|
}
|
|
47592
|
-
}) : /*#__PURE__*/
|
|
47593
|
-
className:
|
|
47712
|
+
}) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(TableHeaderCellResize, {
|
|
47713
|
+
className: _base_styles__WEBPACK_IMPORTED_MODULE_11__["Classes"].tableHeaderCellResize,
|
|
47594
47714
|
onDoubleClick: function onDoubleClick(e) {
|
|
47595
47715
|
return handleDoubleClick(e, col);
|
|
47596
47716
|
},
|
|
@@ -47598,7 +47718,7 @@ function columnResize() {
|
|
|
47598
47718
|
return handleMouseDown(e, col);
|
|
47599
47719
|
}
|
|
47600
47720
|
}))),
|
|
47601
|
-
headerCellProps: Object(
|
|
47721
|
+
headerCellProps: Object(_utils__WEBPACK_IMPORTED_MODULE_9__["mergeCellProps"])(col.headerCellProps, {
|
|
47602
47722
|
className: 'resizeable'
|
|
47603
47723
|
})
|
|
47604
47724
|
});
|
|
@@ -47652,7 +47772,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47652
47772
|
|
|
47653
47773
|
|
|
47654
47774
|
|
|
47655
|
-
var stateKey = 'contextMenu';
|
|
47656
47775
|
function contextMenu() {
|
|
47657
47776
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
47658
47777
|
return function step(pipeline) {
|
|
@@ -47690,13 +47809,11 @@ function contextMenu() {
|
|
|
47690
47809
|
};
|
|
47691
47810
|
|
|
47692
47811
|
var onContextMenu = function onContextMenu(e) {
|
|
47693
|
-
if (
|
|
47694
|
-
|
|
47812
|
+
if (canShowContextMenu(e, pipeline)) {
|
|
47813
|
+
e.preventDefault();
|
|
47814
|
+
e.stopPropagation();
|
|
47815
|
+
showContextMenu(e);
|
|
47695
47816
|
}
|
|
47696
|
-
|
|
47697
|
-
e.preventDefault();
|
|
47698
|
-
e.stopPropagation();
|
|
47699
|
-
showContextMenu(e);
|
|
47700
47817
|
};
|
|
47701
47818
|
|
|
47702
47819
|
pipeline.addTableProps({
|
|
@@ -48033,24 +48150,12 @@ function isElementInsideTheFooter(ele) {
|
|
|
48033
48150
|
}
|
|
48034
48151
|
|
|
48035
48152
|
return false;
|
|
48036
|
-
}
|
|
48037
|
-
|
|
48038
|
-
|
|
48039
|
-
function suppressShowContextMenu(e) {
|
|
48040
|
-
var path = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getEventPath"])(e.nativeEvent);
|
|
48041
|
-
var pointIndex = 0;
|
|
48042
|
-
|
|
48043
|
-
while (pointIndex < path.length) {
|
|
48044
|
-
var ele = path[pointIndex];
|
|
48045
|
-
|
|
48046
|
-
if (ele.classList.contains(_base_styles__WEBPACK_IMPORTED_MODULE_12__["Classes"].tableBody) || ele.classList.contains(_base_styles__WEBPACK_IMPORTED_MODULE_12__["Classes"].tableFooter)) {
|
|
48047
|
-
return false;
|
|
48048
|
-
}
|
|
48153
|
+
}
|
|
48049
48154
|
|
|
48050
|
-
|
|
48051
|
-
|
|
48155
|
+
function canShowContextMenu(e, pipeline) {
|
|
48156
|
+
var _a, _b;
|
|
48052
48157
|
|
|
48053
|
-
return
|
|
48158
|
+
return ((_a = pipeline.ref.current.domHelper) === null || _a === void 0 ? void 0 : _a.tableBody.contains(e.target)) || ((_b = pipeline.ref.current.domHelper) === null || _b === void 0 ? void 0 : _b.tableFooter.contains(e.target));
|
|
48054
48159
|
} // 默认选项
|
|
48055
48160
|
|
|
48056
48161
|
|
|
@@ -48944,28 +49049,34 @@ function multiSelect() {
|
|
|
48944
49049
|
/** 所有有效的 keys(disable 状态为 false) */
|
|
48945
49050
|
|
|
48946
49051
|
var allKeys = [];
|
|
49052
|
+
var set = new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a(value);
|
|
49053
|
+
var isAllChecked = set.size !== 0; // 当前不存在选中则默认为false
|
|
49054
|
+
|
|
49055
|
+
var isAnyChecked = false;
|
|
48947
49056
|
var flatDataSource = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["collectNodes"])(dataSource);
|
|
48948
49057
|
flatDataSource.forEach(function (row, rowIndex) {
|
|
48949
49058
|
var rowKey = _internals__WEBPACK_IMPORTED_MODULE_5__["internals"].safeGetRowKey(primaryKey, row, rowIndex);
|
|
48950
49059
|
fullKeySet.add(rowKey); // 在 allKeys 中排除被禁用的 key
|
|
48951
49060
|
|
|
48952
49061
|
if (!isDisabled(row, rowIndex)) {
|
|
48953
|
-
allKeys.push(rowKey);
|
|
49062
|
+
allKeys.push(rowKey); // 存在一个非选中,则不再进行判断
|
|
49063
|
+
|
|
49064
|
+
if (isAllChecked) {
|
|
49065
|
+
isAllChecked = set.has(rowKey);
|
|
49066
|
+
} // 存在一个选中,则不再进行判断
|
|
49067
|
+
|
|
49068
|
+
|
|
49069
|
+
if (!isAnyChecked) {
|
|
49070
|
+
isAnyChecked = set.has(rowKey);
|
|
49071
|
+
}
|
|
48954
49072
|
}
|
|
48955
|
-
});
|
|
48956
|
-
var set = new _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_2___default.a(value); // todo: 暂使用hidden隐藏选择列 后续增加配置
|
|
49073
|
+
}); // todo: 暂使用hidden隐藏选择列 后续增加配置
|
|
48957
49074
|
|
|
48958
49075
|
var hiddenSelectColumn = opts.checkboxColumn && opts.checkboxColumn.hidden === true;
|
|
48959
49076
|
|
|
48960
49077
|
if (!hiddenSelectColumn) {
|
|
48961
49078
|
var _context;
|
|
48962
49079
|
|
|
48963
|
-
var isAllChecked = allKeys.length > 0 && allKeys.every(function (key) {
|
|
48964
|
-
return set.has(key);
|
|
48965
|
-
});
|
|
48966
|
-
var isAnyChecked = allKeys.some(function (key) {
|
|
48967
|
-
return set.has(key);
|
|
48968
|
-
});
|
|
48969
49080
|
var defaultCheckboxColumnTitle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Checkbox, {
|
|
48970
49081
|
checked: isAllChecked,
|
|
48971
49082
|
indeterminate: !isAllChecked && isAnyChecked,
|
|
@@ -49218,16 +49329,16 @@ function rangeSelection(opts) {
|
|
|
49218
49329
|
|
|
49219
49330
|
if (clickCell) {
|
|
49220
49331
|
if (event.shiftKey) {
|
|
49221
|
-
var _lastClickCell = pipeline.
|
|
49332
|
+
var _lastClickCell = pipeline.getFeatureOptions(lastClickCellKey);
|
|
49222
49333
|
|
|
49223
49334
|
if (_lastClickCell) {
|
|
49224
49335
|
setRangeSelection(_lastClickCell, clickCell);
|
|
49225
49336
|
} else {
|
|
49226
49337
|
// 第一次进来就按住shift键,这时候要记住点击的单元格
|
|
49227
|
-
pipeline.
|
|
49338
|
+
pipeline.setFeatureOptions(lastClickCellKey, clickCell);
|
|
49228
49339
|
}
|
|
49229
49340
|
} else {
|
|
49230
|
-
pipeline.
|
|
49341
|
+
pipeline.setFeatureOptions(lastClickCellKey, clickCell);
|
|
49231
49342
|
setRangeSelection(clickCell, clickCell);
|
|
49232
49343
|
}
|
|
49233
49344
|
}
|
|
@@ -50469,6 +50580,10 @@ function sort() {
|
|
|
50469
50580
|
return dataSource;
|
|
50470
50581
|
}
|
|
50471
50582
|
|
|
50583
|
+
if (sortMap.size === 0) {
|
|
50584
|
+
return dataSource;
|
|
50585
|
+
}
|
|
50586
|
+
|
|
50472
50587
|
var sortColumnsMap = new _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_8___default.a(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(_context2 = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["collectNodes"])(columns, 'leaf-only')).call(_context2, function (col) {
|
|
50473
50588
|
var _a, _b;
|
|
50474
50589
|
|
|
@@ -51518,8 +51633,9 @@ function useTablePipeline(ctx) {
|
|
|
51518
51633
|
state = _useState2[0],
|
|
51519
51634
|
setState = _useState2[1];
|
|
51520
51635
|
|
|
51521
|
-
var ref = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])({
|
|
51522
|
-
|
|
51636
|
+
var ref = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])({
|
|
51637
|
+
featureOptions: {}
|
|
51638
|
+
});
|
|
51523
51639
|
return new TablePipeline({
|
|
51524
51640
|
state: state,
|
|
51525
51641
|
setState: setState,
|
|
@@ -60953,6 +61069,20 @@ var path = __webpack_require__(/*! ../../internals/path */ "./node_modules/core-
|
|
|
60953
61069
|
module.exports = path.Map;
|
|
60954
61070
|
|
|
60955
61071
|
|
|
61072
|
+
/***/ }),
|
|
61073
|
+
|
|
61074
|
+
/***/ "./node_modules/core-js-pure/es/number/max-safe-integer.js":
|
|
61075
|
+
/*!*****************************************************************!*\
|
|
61076
|
+
!*** ./node_modules/core-js-pure/es/number/max-safe-integer.js ***!
|
|
61077
|
+
\*****************************************************************/
|
|
61078
|
+
/*! no static exports found */
|
|
61079
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
61080
|
+
|
|
61081
|
+
__webpack_require__(/*! ../../modules/es.number.max-safe-integer */ "./node_modules/core-js-pure/modules/es.number.max-safe-integer.js");
|
|
61082
|
+
|
|
61083
|
+
module.exports = 0x1FFFFFFFFFFFFF;
|
|
61084
|
+
|
|
61085
|
+
|
|
60956
61086
|
/***/ }),
|
|
60957
61087
|
|
|
60958
61088
|
/***/ "./node_modules/core-js-pure/es/object/assign.js":
|
|
@@ -66726,6 +66856,24 @@ __webpack_require__(/*! ../modules/es.map.constructor */ "./node_modules/core-js
|
|
|
66726
66856
|
// empty
|
|
66727
66857
|
|
|
66728
66858
|
|
|
66859
|
+
/***/ }),
|
|
66860
|
+
|
|
66861
|
+
/***/ "./node_modules/core-js-pure/modules/es.number.max-safe-integer.js":
|
|
66862
|
+
/*!*************************************************************************!*\
|
|
66863
|
+
!*** ./node_modules/core-js-pure/modules/es.number.max-safe-integer.js ***!
|
|
66864
|
+
\*************************************************************************/
|
|
66865
|
+
/*! no static exports found */
|
|
66866
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
66867
|
+
|
|
66868
|
+
var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js-pure/internals/export.js");
|
|
66869
|
+
|
|
66870
|
+
// `Number.MAX_SAFE_INTEGER` constant
|
|
66871
|
+
// https://tc39.es/ecma262/#sec-number.max_safe_integer
|
|
66872
|
+
$({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, {
|
|
66873
|
+
MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF
|
|
66874
|
+
});
|
|
66875
|
+
|
|
66876
|
+
|
|
66729
66877
|
/***/ }),
|
|
66730
66878
|
|
|
66731
66879
|
/***/ "./node_modules/core-js-pure/modules/es.object.assign.js":
|
|
@@ -68235,6 +68383,20 @@ __webpack_require__(/*! ../../modules/web.dom-collections.iterator */ "./node_mo
|
|
|
68235
68383
|
module.exports = parent;
|
|
68236
68384
|
|
|
68237
68385
|
|
|
68386
|
+
/***/ }),
|
|
68387
|
+
|
|
68388
|
+
/***/ "./node_modules/core-js-pure/stable/number/max-safe-integer.js":
|
|
68389
|
+
/*!*********************************************************************!*\
|
|
68390
|
+
!*** ./node_modules/core-js-pure/stable/number/max-safe-integer.js ***!
|
|
68391
|
+
\*********************************************************************/
|
|
68392
|
+
/*! no static exports found */
|
|
68393
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
68394
|
+
|
|
68395
|
+
var parent = __webpack_require__(/*! ../../es/number/max-safe-integer */ "./node_modules/core-js-pure/es/number/max-safe-integer.js");
|
|
68396
|
+
|
|
68397
|
+
module.exports = parent;
|
|
68398
|
+
|
|
68399
|
+
|
|
68238
68400
|
/***/ }),
|
|
68239
68401
|
|
|
68240
68402
|
/***/ "./node_modules/core-js-pure/stable/object/assign.js":
|