rsuite 5.83.1 → 5.83.2
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 +14 -0
- package/Stat/styles/index.css +12 -0
- package/Stat/styles/index.less +12 -0
- package/cjs/Progress/ProgressCircle.d.ts +2 -0
- package/cjs/Progress/ProgressCircle.js +5 -2
- package/cjs/Stat/StatTrend.d.ts +1 -1
- package/cjs/Stat/StatTrend.js +9 -2
- package/dist/rsuite-no-reset-rtl.css +12 -0
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +12 -0
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +12 -0
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +12 -0
- package/dist/rsuite.js +274 -285
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.LICENSE.txt +0 -9
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Progress/ProgressCircle.d.ts +2 -0
- package/esm/Progress/ProgressCircle.js +5 -2
- package/esm/Stat/StatTrend.d.ts +1 -1
- package/esm/Stat/StatTrend.js +9 -2
- package/package.json +2 -2
package/dist/rsuite.js
CHANGED
|
@@ -514,39 +514,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
|
|
|
514
514
|
|
|
515
515
|
/***/ }),
|
|
516
516
|
|
|
517
|
-
/***/ "./node_modules/@rsuite/icons/esm/icons/direction/Sort.js":
|
|
518
|
-
/*!****************************************************************!*\
|
|
519
|
-
!*** ./node_modules/@rsuite/icons/esm/icons/direction/Sort.js ***!
|
|
520
|
-
\****************************************************************/
|
|
521
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
522
|
-
|
|
523
|
-
"use strict";
|
|
524
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n// Generated by script, please do not edit this file.\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\n\n\nvar Sort = function(props, ref) {\n return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"svg\", _object_spread({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 16 16\",\n fill: \"currentColor\",\n ref: ref\n }, props), /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"path\", {\n d: \"M7.616 3.18a.5.5 0 0 1 .696-.071l.072.071 2.5 3a.5.5 0 0 1-.704.704l-.064-.064L8 4.281 5.884 6.82a.5.5 0 0 1-.63.115l-.074-.051a.5.5 0 0 1-.115-.63l.051-.074zM7.616 12.82a.5.5 0 0 0 .696.071l.072-.071 2.5-3a.5.5 0 0 0-.704-.704l-.064.064L8 11.719 5.884 9.18a.5.5 0 0 0-.63-.115l-.074.051a.5.5 0 0 0-.115.63l.051.074z\"\n }));\n};\nvar ForwardRef = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(Sort);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ForwardRef);\n\n\n//# sourceURL=webpack://rsuite/./node_modules/@rsuite/icons/esm/icons/direction/Sort.js?");
|
|
525
|
-
|
|
526
|
-
/***/ }),
|
|
527
|
-
|
|
528
|
-
/***/ "./node_modules/@rsuite/icons/esm/icons/direction/SortDown.js":
|
|
529
|
-
/*!********************************************************************!*\
|
|
530
|
-
!*** ./node_modules/@rsuite/icons/esm/icons/direction/SortDown.js ***!
|
|
531
|
-
\********************************************************************/
|
|
532
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
533
|
-
|
|
534
|
-
"use strict";
|
|
535
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n// Generated by script, please do not edit this file.\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\n\n\nvar SortDown = function(props, ref) {\n return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"svg\", _object_spread({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 16 16\",\n fill: \"currentColor\",\n ref: ref\n }, props), /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"path\", {\n d: \"M8.5 14a.5.5 0 0 0 .394-.192l3.996-4.996a.5.5 0 1 0-.781-.625l-3.11 3.887V2.499a.5.5 0 0 0-1 0v9.575l-3.11-3.887a.5.5 0 1 0-.781.625l3.998 4.997.013.015a.5.5 0 0 0 .38.175z\"\n }));\n};\nvar ForwardRef = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(SortDown);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ForwardRef);\n\n\n//# sourceURL=webpack://rsuite/./node_modules/@rsuite/icons/esm/icons/direction/SortDown.js?");
|
|
536
|
-
|
|
537
|
-
/***/ }),
|
|
538
|
-
|
|
539
|
-
/***/ "./node_modules/@rsuite/icons/esm/icons/direction/SortUp.js":
|
|
540
|
-
/*!******************************************************************!*\
|
|
541
|
-
!*** ./node_modules/@rsuite/icons/esm/icons/direction/SortUp.js ***!
|
|
542
|
-
\******************************************************************/
|
|
543
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
544
|
-
|
|
545
|
-
"use strict";
|
|
546
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n// Generated by script, please do not edit this file.\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\n\n\nvar SortUp = function(props, ref) {\n return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"svg\", _object_spread({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 16 16\",\n fill: \"currentColor\",\n ref: ref\n }, props), /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"path\", {\n d: \"M8.5 2a.5.5 0 0 1 .394.192l3.996 4.996a.5.5 0 1 1-.781.625l-3.11-3.887v9.575a.5.5 0 0 1-1 0V3.926l-3.11 3.887a.5.5 0 1 1-.781-.625l3.998-4.997.013-.015a.5.5 0 0 1 .38-.175z\"\n }));\n};\nvar ForwardRef = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(SortUp);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ForwardRef);\n\n\n//# sourceURL=webpack://rsuite/./node_modules/@rsuite/icons/esm/icons/direction/SortUp.js?");
|
|
547
|
-
|
|
548
|
-
/***/ }),
|
|
549
|
-
|
|
550
517
|
/***/ "./node_modules/@rsuite/icons/esm/icons/file/Attachment.js":
|
|
551
518
|
/*!*****************************************************************!*\
|
|
552
519
|
!*** ./node_modules/@rsuite/icons/esm/icons/file/Attachment.js ***!
|
|
@@ -943,39 +910,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cre
|
|
|
943
910
|
|
|
944
911
|
/***/ }),
|
|
945
912
|
|
|
946
|
-
/***/ "./node_modules/@rsuite/icons/esm/react/Sort.js":
|
|
947
|
-
/*!******************************************************!*\
|
|
948
|
-
!*** ./node_modules/@rsuite/icons/esm/react/Sort.js ***!
|
|
949
|
-
\******************************************************/
|
|
950
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
951
|
-
|
|
952
|
-
"use strict";
|
|
953
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _createSvgIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createSvgIcon */ \"./node_modules/@rsuite/icons/esm/createSvgIcon.js\");\n/* harmony import */ var _icons_direction_Sort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icons/direction/Sort */ \"./node_modules/@rsuite/icons/esm/icons/direction/Sort.js\");\n// Generated by script, don't edit it please.\n\n\nvar Sort = (0,_createSvgIcon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n as: _icons_direction_Sort__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n ariaLabel: 'sort',\n category: 'direction',\n displayName: 'Sort'\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sort);\n\n\n//# sourceURL=webpack://rsuite/./node_modules/@rsuite/icons/esm/react/Sort.js?");
|
|
954
|
-
|
|
955
|
-
/***/ }),
|
|
956
|
-
|
|
957
|
-
/***/ "./node_modules/@rsuite/icons/esm/react/SortDown.js":
|
|
958
|
-
/*!**********************************************************!*\
|
|
959
|
-
!*** ./node_modules/@rsuite/icons/esm/react/SortDown.js ***!
|
|
960
|
-
\**********************************************************/
|
|
961
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
962
|
-
|
|
963
|
-
"use strict";
|
|
964
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _createSvgIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createSvgIcon */ \"./node_modules/@rsuite/icons/esm/createSvgIcon.js\");\n/* harmony import */ var _icons_direction_SortDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icons/direction/SortDown */ \"./node_modules/@rsuite/icons/esm/icons/direction/SortDown.js\");\n// Generated by script, don't edit it please.\n\n\nvar SortDown = (0,_createSvgIcon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n as: _icons_direction_SortDown__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n ariaLabel: 'sort down',\n category: 'direction',\n displayName: 'SortDown'\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (SortDown);\n\n\n//# sourceURL=webpack://rsuite/./node_modules/@rsuite/icons/esm/react/SortDown.js?");
|
|
965
|
-
|
|
966
|
-
/***/ }),
|
|
967
|
-
|
|
968
|
-
/***/ "./node_modules/@rsuite/icons/esm/react/SortUp.js":
|
|
969
|
-
/*!********************************************************!*\
|
|
970
|
-
!*** ./node_modules/@rsuite/icons/esm/react/SortUp.js ***!
|
|
971
|
-
\********************************************************/
|
|
972
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
973
|
-
|
|
974
|
-
"use strict";
|
|
975
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _createSvgIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createSvgIcon */ \"./node_modules/@rsuite/icons/esm/createSvgIcon.js\");\n/* harmony import */ var _icons_direction_SortUp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icons/direction/SortUp */ \"./node_modules/@rsuite/icons/esm/icons/direction/SortUp.js\");\n// Generated by script, don't edit it please.\n\n\nvar SortUp = (0,_createSvgIcon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n as: _icons_direction_SortUp__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n ariaLabel: 'sort up',\n category: 'direction',\n displayName: 'SortUp'\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (SortUp);\n\n\n//# sourceURL=webpack://rsuite/./node_modules/@rsuite/icons/esm/react/SortUp.js?");
|
|
976
|
-
|
|
977
|
-
/***/ }),
|
|
978
|
-
|
|
979
913
|
/***/ "./node_modules/@rsuite/icons/esm/react/Spinner.js":
|
|
980
914
|
/*!*********************************************************!*\
|
|
981
915
|
!*** ./node_modules/@rsuite/icons/esm/react/Spinner.js ***!
|
|
@@ -4580,7 +4514,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/he
|
|
|
4580
4514
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4581
4515
|
|
|
4582
4516
|
"use strict";
|
|
4583
|
-
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\nvar _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\"));\nvar _statusIcons = __webpack_require__(/*! ../internals/constants/statusIcons */ \"./src/internals/constants/statusIcons.tsx\");\nvar _hooks = __webpack_require__(/*! ../internals/hooks */ \"./src/internals/hooks/index.ts\");\nvar _propTypes2 = __webpack_require__(/*! ../internals/propTypes */ \"./src/internals/propTypes/index.ts\");\nvar _CustomProvider = __webpack_require__(/*! ../CustomProvider */ \"./src/CustomProvider/index.tsx\");\nvar _excluded = [\"as\", \"strokeWidth\", \"trailWidth\", \"percent\", \"strokeLinecap\", \"className\", \"showInfo\", \"status\", \"classPrefix\", \"style\", \"gapDegree\", \"gapPosition\", \"trailColor\", \"strokeColor\"];\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Progress/ProgressCircle.tsx\",\n _this = void 0;\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/**\n * The `Progress.Circle` component is used to display the progress of current operation.\n * @see https://rsuitejs.com/components/progress/#circle\n */\nvar ProgressCircle = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {\n var _withClassPrefix;\n var _useCustom = (0, _CustomProvider.useCustom)('ProgressCircle', props),\n propsWithDefaults = _useCustom.propsWithDefaults;\n var _propsWithDefaults$as = propsWithDefaults.as,\n Component = _propsWithDefaults$as === void 0 ? 'div' : _propsWithDefaults$as,\n _propsWithDefaults$st = propsWithDefaults.strokeWidth,\n strokeWidth = _propsWithDefaults$st === void 0 ? 6 : _propsWithDefaults$st,\n _propsWithDefaults$tr = propsWithDefaults.trailWidth,\n trailWidth = _propsWithDefaults$tr === void 0 ? 6 : _propsWithDefaults$tr,\n _propsWithDefaults$pe = propsWithDefaults.percent,\n percent = _propsWithDefaults$pe === void 0 ? 0 : _propsWithDefaults$pe,\n _propsWithDefaults$st2 = propsWithDefaults.strokeLinecap,\n strokeLinecap = _propsWithDefaults$st2 === void 0 ? 'round' : _propsWithDefaults$st2,\n className = propsWithDefaults.className,\n _propsWithDefaults$sh = propsWithDefaults.showInfo,\n showInfo = _propsWithDefaults$sh === void 0 ? true : _propsWithDefaults$sh,\n status = propsWithDefaults.status,\n _propsWithDefaults$cl = propsWithDefaults.classPrefix,\n classPrefix = _propsWithDefaults$cl === void 0 ? 'progress' : _propsWithDefaults$cl,\n style = propsWithDefaults.style,\n _propsWithDefaults$ga = propsWithDefaults.gapDegree,\n gapDegree = _propsWithDefaults$ga === void 0 ? 0 : _propsWithDefaults$ga,\n _propsWithDefaults$ga2 = propsWithDefaults.gapPosition,\n gapPosition = _propsWithDefaults$ga2 === void 0 ? 'top' : _propsWithDefaults$ga2,\n trailColor = propsWithDefaults.trailColor,\n strokeColor = propsWithDefaults.strokeColor,\n rest = (0, _objectWithoutPropertiesLoose2.default)(propsWithDefaults, _excluded);\n var getPathStyles = (0, _react.useCallback)(function () {\n var radius = 50 - strokeWidth / 2;\n var x1 = 0;\n var y1 = -radius;\n var x2 = 0;\n var y2 = -2 * radius;\n switch (gapPosition) {\n case 'left':\n x1 = -radius;\n y1 = 0;\n x2 = 2 * radius;\n y2 = 0;\n break;\n case 'right':\n x1 = radius;\n y1 = 0;\n x2 = -2 * radius;\n y2 = 0;\n break;\n case 'bottom':\n y1 = radius;\n y2 = 2 * radius;\n break;\n default:\n }\n var pathString = \"M 50,50 m \" + x1 + \",\" + y1 + \" a \" + radius + \",\" + radius + \" 0 1 1 \" + x2 + \",\" + -y2 + \" a \" + radius + \",\" + radius + \" 0 1 1 \" + -x2 + \",\" + y2;\n var len = Math.PI * 2 * radius;\n var trailPathStyle = {\n stroke: trailColor,\n strokeDasharray: len - gapDegree + \"px \" + len + \"px\",\n strokeDashoffset: \"-\" + gapDegree / 2 + \"px\"\n };\n var strokePathStyle = {\n stroke: strokeColor,\n strokeDasharray: percent / 100 * (len - gapDegree) + \"px \" + len + \"px\",\n strokeDashoffset: \"-\" + gapDegree / 2 + \"px\"\n };\n return {\n pathString: pathString,\n trailPathStyle: trailPathStyle,\n strokePathStyle: strokePathStyle\n };\n }, [gapDegree, gapPosition, percent, strokeColor, strokeWidth, trailColor]);\n var _getPathStyles = getPathStyles(),\n pathString = _getPathStyles.pathString,\n trailPathStyle = _getPathStyles.trailPathStyle,\n strokePathStyle = _getPathStyles.strokePathStyle;\n var _useClassNames = (0, _hooks.useClassNames)(classPrefix),\n prefix = _useClassNames.prefix,\n merge = _useClassNames.merge,\n withClassPrefix = _useClassNames.withClassPrefix;\n var classes = merge(className, withClassPrefix('circle', (_withClassPrefix = {}, _withClassPrefix[\"circle-\" + (status || '')] = !!status, _withClassPrefix)));\n var showIcon = status && status !== 'active';\n var info = showIcon ? /*#__PURE__*/_react.default.createElement(\"span\", {\n className: prefix(\"icon-\" + (status || '')),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber:
|
|
4517
|
+
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"react\"));\nvar _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\"));\nvar _statusIcons = __webpack_require__(/*! ../internals/constants/statusIcons */ \"./src/internals/constants/statusIcons.tsx\");\nvar _hooks = __webpack_require__(/*! ../internals/hooks */ \"./src/internals/hooks/index.ts\");\nvar _propTypes2 = __webpack_require__(/*! ../internals/propTypes */ \"./src/internals/propTypes/index.ts\");\nvar _CustomProvider = __webpack_require__(/*! ../CustomProvider */ \"./src/CustomProvider/index.tsx\");\nvar _excluded = [\"as\", \"strokeWidth\", \"trailWidth\", \"width\", \"percent\", \"strokeLinecap\", \"className\", \"showInfo\", \"status\", \"classPrefix\", \"style\", \"gapDegree\", \"gapPosition\", \"trailColor\", \"strokeColor\"];\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Progress/ProgressCircle.tsx\",\n _this = void 0;\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/**\n * The `Progress.Circle` component is used to display the progress of current operation.\n * @see https://rsuitejs.com/components/progress/#circle\n */\nvar ProgressCircle = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {\n var _withClassPrefix;\n var _useCustom = (0, _CustomProvider.useCustom)('ProgressCircle', props),\n propsWithDefaults = _useCustom.propsWithDefaults;\n var _propsWithDefaults$as = propsWithDefaults.as,\n Component = _propsWithDefaults$as === void 0 ? 'div' : _propsWithDefaults$as,\n _propsWithDefaults$st = propsWithDefaults.strokeWidth,\n strokeWidth = _propsWithDefaults$st === void 0 ? 6 : _propsWithDefaults$st,\n _propsWithDefaults$tr = propsWithDefaults.trailWidth,\n trailWidth = _propsWithDefaults$tr === void 0 ? 6 : _propsWithDefaults$tr,\n width = propsWithDefaults.width,\n _propsWithDefaults$pe = propsWithDefaults.percent,\n percent = _propsWithDefaults$pe === void 0 ? 0 : _propsWithDefaults$pe,\n _propsWithDefaults$st2 = propsWithDefaults.strokeLinecap,\n strokeLinecap = _propsWithDefaults$st2 === void 0 ? 'round' : _propsWithDefaults$st2,\n className = propsWithDefaults.className,\n _propsWithDefaults$sh = propsWithDefaults.showInfo,\n showInfo = _propsWithDefaults$sh === void 0 ? true : _propsWithDefaults$sh,\n status = propsWithDefaults.status,\n _propsWithDefaults$cl = propsWithDefaults.classPrefix,\n classPrefix = _propsWithDefaults$cl === void 0 ? 'progress' : _propsWithDefaults$cl,\n style = propsWithDefaults.style,\n _propsWithDefaults$ga = propsWithDefaults.gapDegree,\n gapDegree = _propsWithDefaults$ga === void 0 ? 0 : _propsWithDefaults$ga,\n _propsWithDefaults$ga2 = propsWithDefaults.gapPosition,\n gapPosition = _propsWithDefaults$ga2 === void 0 ? 'top' : _propsWithDefaults$ga2,\n trailColor = propsWithDefaults.trailColor,\n strokeColor = propsWithDefaults.strokeColor,\n rest = (0, _objectWithoutPropertiesLoose2.default)(propsWithDefaults, _excluded);\n var getPathStyles = (0, _react.useCallback)(function () {\n var radius = 50 - strokeWidth / 2;\n var x1 = 0;\n var y1 = -radius;\n var x2 = 0;\n var y2 = -2 * radius;\n switch (gapPosition) {\n case 'left':\n x1 = -radius;\n y1 = 0;\n x2 = 2 * radius;\n y2 = 0;\n break;\n case 'right':\n x1 = radius;\n y1 = 0;\n x2 = -2 * radius;\n y2 = 0;\n break;\n case 'bottom':\n y1 = radius;\n y2 = 2 * radius;\n break;\n default:\n }\n var pathString = \"M 50,50 m \" + x1 + \",\" + y1 + \" a \" + radius + \",\" + radius + \" 0 1 1 \" + x2 + \",\" + -y2 + \" a \" + radius + \",\" + radius + \" 0 1 1 \" + -x2 + \",\" + y2;\n var len = Math.PI * 2 * radius;\n var trailPathStyle = {\n stroke: trailColor,\n strokeDasharray: len - gapDegree + \"px \" + len + \"px\",\n strokeDashoffset: \"-\" + gapDegree / 2 + \"px\"\n };\n var strokePathStyle = {\n stroke: strokeColor,\n strokeDasharray: percent / 100 * (len - gapDegree) + \"px \" + len + \"px\",\n strokeDashoffset: \"-\" + gapDegree / 2 + \"px\"\n };\n return {\n pathString: pathString,\n trailPathStyle: trailPathStyle,\n strokePathStyle: strokePathStyle\n };\n }, [gapDegree, gapPosition, percent, strokeColor, strokeWidth, trailColor]);\n var _getPathStyles = getPathStyles(),\n pathString = _getPathStyles.pathString,\n trailPathStyle = _getPathStyles.trailPathStyle,\n strokePathStyle = _getPathStyles.strokePathStyle;\n var _useClassNames = (0, _hooks.useClassNames)(classPrefix),\n prefix = _useClassNames.prefix,\n merge = _useClassNames.merge,\n withClassPrefix = _useClassNames.withClassPrefix;\n var classes = merge(className, withClassPrefix('circle', (_withClassPrefix = {}, _withClassPrefix[\"circle-\" + (status || '')] = !!status, _withClassPrefix)));\n var showIcon = status && status !== 'active';\n var info = showIcon ? /*#__PURE__*/_react.default.createElement(\"span\", {\n className: prefix(\"icon-\" + (status || '')),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 130,\n columnNumber: 7\n }\n }, _statusIcons.PROGRESS_STATUS_ICON[status]) : /*#__PURE__*/_react.default.createElement(\"span\", {\n key: 1,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 132,\n columnNumber: 7\n }\n }, percent, \"%\");\n return /*#__PURE__*/_react.default.createElement(Component, {\n role: \"progressbar\",\n \"aria-valuemin\": \"0\",\n \"aria-valuemax\": \"100\",\n \"aria-valuenow\": percent,\n ref: ref,\n className: classes,\n style: style,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 136,\n columnNumber: 7\n }\n }, showInfo ? /*#__PURE__*/_react.default.createElement(\"span\", {\n className: prefix('circle-info'),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 145,\n columnNumber: 21\n }\n }, info) : null, /*#__PURE__*/_react.default.createElement(\"svg\", (0, _extends2.default)({\n className: prefix('svg'),\n viewBox: \"0 0 100 100\",\n width: width\n }, rest, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 147,\n columnNumber: 9\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n className: prefix('trail'),\n d: pathString,\n strokeWidth: trailWidth || strokeWidth,\n fillOpacity: \"0\",\n style: trailPathStyle,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 148,\n columnNumber: 11\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: pathString,\n strokeLinecap: strokeLinecap,\n className: prefix('stroke'),\n strokeWidth: percent === 0 ? 0 : strokeWidth,\n fillOpacity: \"0\",\n style: strokePathStyle,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 155,\n columnNumber: 11\n }\n })));\n});\nProgressCircle.displayName = 'ProgressCircle';\nProgressCircle.propTypes = {\n className: _propTypes.default.string,\n strokeColor: _propTypes.default.string,\n strokeLinecap: (0, _propTypes2.oneOf)(['butt', 'round', 'square']),\n trailColor: _propTypes.default.string,\n percent: _propTypes.default.number,\n strokeWidth: _propTypes.default.number,\n trailWidth: _propTypes.default.number,\n width: _propTypes.default.number,\n gapDegree: _propTypes.default.number,\n gapPosition: (0, _propTypes2.oneOf)(['top', 'bottom', 'left', 'right']),\n showInfo: _propTypes.default.bool,\n status: (0, _propTypes2.oneOf)(['success', 'fail', 'active']),\n classPrefix: _propTypes.default.string\n};\nvar _default = exports[\"default\"] = ProgressCircle;\n\n//# sourceURL=webpack://rsuite/./src/Progress/ProgressCircle.tsx?");
|
|
4584
4518
|
|
|
4585
4519
|
/***/ }),
|
|
4586
4520
|
|
|
@@ -5218,7 +5152,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/he
|
|
|
5218
5152
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5219
5153
|
|
|
5220
5154
|
"use strict";
|
|
5221
|
-
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\nvar _hooks = __webpack_require__(/*! ../internals/hooks */ \"./src/internals/hooks/index.ts\");\nvar _propTypes = __webpack_require__(/*! ../internals/propTypes */ \"./src/internals/propTypes/index.ts\");\nvar _excluded = [\"as\", \"appearance\", \"classPrefix\", \"indicator\", \"className\", \"children\"];\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Stat/StatTrend.tsx\",\n _this = void 0;\nvar svgProps = {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 16,\n height: 16,\n viewBox: '0 0 24 24',\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: '1.5',\n strokeLinecap: 'round',\n strokeLinejoin: 'round'\n};\nvar ArrowUp = function ArrowUp(props) {\n return /*#__PURE__*/_react.default.createElement(\"svg\", (0, _extends2.default)({}, svgProps, props, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 5\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M17 7l-10 10\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 7\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M8 7l9 0l0 9\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 7\n }\n }));\n};\nvar ArrowDown = function ArrowDown(props) {\n return /*#__PURE__*/_react.default.createElement(\"svg\", (0, _extends2.default)({}, svgProps, props, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M7 7l10 10\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M17 8l0 9l-9 0\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }));\n};\nvar StatTrend = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {\n var _props$as = props.as,\n Component = _props$as === void 0 ? 'span' : _props$as,\n _props$appearance = props.appearance,\n appearance = _props$appearance === void 0 ? 'default' : _props$appearance,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'stat-trend' : _props$classPrefix,\n _props$indicator = props.indicator,\n indicator = _props$indicator === void 0 ? 'up' : _props$indicator,\n className = props.className,\n children = props.children,\n rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);\n var _useClassNames = (0, _hooks.useClassNames)(classPrefix),\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix,\n withClassPrefix = _useClassNames.withClassPrefix;\n var classes = merge(className, withClassPrefix(appearance, indicator));\n var IndicatorIcon = indicator === 'up' ? ArrowUp : ArrowDown;\n return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({\n ref: ref,\n className: classes\n }, rest, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber:
|
|
5155
|
+
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/extends.js\"));\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\nvar _hooks = __webpack_require__(/*! ../internals/hooks */ \"./src/internals/hooks/index.ts\");\nvar _propTypes = __webpack_require__(/*! ../internals/propTypes */ \"./src/internals/propTypes/index.ts\");\nvar _excluded = [\"as\", \"appearance\", \"classPrefix\", \"indicator\", \"className\", \"children\"];\nvar _jsxFileName = \"/home/runner/work/rsuite/rsuite/src/Stat/StatTrend.tsx\",\n _this = void 0;\nvar svgProps = {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 16,\n height: 16,\n viewBox: '0 0 24 24',\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: '1.5',\n strokeLinecap: 'round',\n strokeLinejoin: 'round'\n};\nvar ArrowUp = function ArrowUp(props) {\n return /*#__PURE__*/_react.default.createElement(\"svg\", (0, _extends2.default)({}, svgProps, props, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 5\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M17 7l-10 10\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 7\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M8 7l9 0l0 9\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 7\n }\n }));\n};\nvar ArrowDown = function ArrowDown(props) {\n return /*#__PURE__*/_react.default.createElement(\"svg\", (0, _extends2.default)({}, svgProps, props, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M7 7l10 10\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M17 8l0 9l-9 0\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }));\n};\nvar ArrowEqual = function ArrowEqual(props) {\n return /*#__PURE__*/_react.default.createElement(\"svg\", (0, _extends2.default)({}, svgProps, props, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 5\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M7 9l10 0\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 7\n }\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"M7 15l10 0\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 7\n }\n }));\n};\nvar StatTrend = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {\n var _props$as = props.as,\n Component = _props$as === void 0 ? 'span' : _props$as,\n _props$appearance = props.appearance,\n appearance = _props$appearance === void 0 ? 'default' : _props$appearance,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'stat-trend' : _props$classPrefix,\n _props$indicator = props.indicator,\n indicator = _props$indicator === void 0 ? 'up' : _props$indicator,\n className = props.className,\n children = props.children,\n rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);\n var _useClassNames = (0, _hooks.useClassNames)(classPrefix),\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix,\n withClassPrefix = _useClassNames.withClassPrefix;\n var classes = merge(className, withClassPrefix(appearance, indicator));\n var IndicatorIcon = indicator === 'up' ? ArrowUp : indicator === 'down' ? ArrowDown : ArrowEqual;\n return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({\n ref: ref,\n className: classes\n }, rest, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 7\n }\n }), children, /*#__PURE__*/_react.default.createElement(IndicatorIcon, {\n className: prefix('indicator'),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 70,\n columnNumber: 10\n }\n }));\n});\nStatTrend.displayName = 'StatTrend';\nStatTrend.propTypes = {\n indicator: (0, _propTypes.oneOf)(['up', 'down', 'equal']),\n appearance: (0, _propTypes.oneOf)(['default', 'subtle'])\n};\nvar _default = exports[\"default\"] = StatTrend;\n\n//# sourceURL=webpack://rsuite/./src/Stat/StatTrend.tsx?");
|
|
5222
5156
|
|
|
5223
5157
|
/***/ }),
|
|
5224
5158
|
|
|
@@ -10818,9 +10752,9 @@ eval("var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ \"./node_m
|
|
|
10818
10752
|
/*!***************************************!*\
|
|
10819
10753
|
!*** ./node_modules/lodash/_toKey.js ***!
|
|
10820
10754
|
\***************************************/
|
|
10821
|
-
/***/ (function(module) {
|
|
10755
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10822
10756
|
|
|
10823
|
-
eval("
|
|
10757
|
+
eval("var isSymbol = __webpack_require__(/*! ./isSymbol */ \"./node_modules/lodash/isSymbol.js\");\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n\n\n//# sourceURL=webpack://rsuite/./node_modules/lodash/_toKey.js?");
|
|
10824
10758
|
|
|
10825
10759
|
/***/ }),
|
|
10826
10760
|
|
|
@@ -11508,9 +11442,9 @@ eval("var toFinite = __webpack_require__(/*! ./toFinite */ \"./node_modules/loda
|
|
|
11508
11442
|
/*!*****************************************!*\
|
|
11509
11443
|
!*** ./node_modules/lodash/toNumber.js ***!
|
|
11510
11444
|
\*****************************************/
|
|
11511
|
-
/***/ (function(module) {
|
|
11445
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11512
11446
|
|
|
11513
|
-
eval("
|
|
11447
|
+
eval("var baseTrim = __webpack_require__(/*! ./_baseTrim */ \"./node_modules/lodash/_baseTrim.js\"),\n isObject = __webpack_require__(/*! ./isObject */ \"./node_modules/lodash/isObject.js\"),\n isSymbol = __webpack_require__(/*! ./isSymbol */ \"./node_modules/lodash/isSymbol.js\");\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n\n\n//# sourceURL=webpack://rsuite/./node_modules/lodash/toNumber.js?");
|
|
11514
11448
|
|
|
11515
11449
|
/***/ }),
|
|
11516
11450
|
|
|
@@ -11528,9 +11462,9 @@ eval("var copyObject = __webpack_require__(/*! ./_copyObject */ \"./node_modules
|
|
|
11528
11462
|
/*!*****************************************!*\
|
|
11529
11463
|
!*** ./node_modules/lodash/toString.js ***!
|
|
11530
11464
|
\*****************************************/
|
|
11531
|
-
/***/ (function(module) {
|
|
11465
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11532
11466
|
|
|
11533
|
-
eval("/**\n *
|
|
11467
|
+
eval("var baseToString = __webpack_require__(/*! ./_baseToString */ \"./node_modules/lodash/_baseToString.js\");\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n\n\n//# sourceURL=webpack://rsuite/./node_modules/lodash/toString.js?");
|
|
11534
11468
|
|
|
11535
11469
|
/***/ }),
|
|
11536
11470
|
|
|
@@ -11681,28 +11615,6 @@ eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs
|
|
|
11681
11615
|
|
|
11682
11616
|
/***/ }),
|
|
11683
11617
|
|
|
11684
|
-
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
|
11685
|
-
/*!***********************************************************!*\
|
|
11686
|
-
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
11687
|
-
\***********************************************************/
|
|
11688
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
11689
|
-
|
|
11690
|
-
"use strict";
|
|
11691
|
-
eval("/** @license React v17.0.2\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nif (true) {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar REACT_ELEMENT_TYPE = 0xeac7;\nvar REACT_PORTAL_TYPE = 0xeaca;\nvar REACT_FRAGMENT_TYPE = 0xeacb;\nvar REACT_STRICT_MODE_TYPE = 0xeacc;\nvar REACT_PROFILER_TYPE = 0xead2;\nvar REACT_PROVIDER_TYPE = 0xeacd;\nvar REACT_CONTEXT_TYPE = 0xeace;\nvar REACT_FORWARD_REF_TYPE = 0xead0;\nvar REACT_SUSPENSE_TYPE = 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = 0xead8;\nvar REACT_MEMO_TYPE = 0xead3;\nvar REACT_LAZY_TYPE = 0xead4;\nvar REACT_BLOCK_TYPE = 0xead9;\nvar REACT_SERVER_BLOCK_TYPE = 0xeada;\nvar REACT_FUNDAMENTAL_TYPE = 0xead5;\nvar REACT_SCOPE_TYPE = 0xead7;\nvar REACT_OPAQUE_ID_TYPE = 0xeae0;\nvar REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\nvar REACT_OFFSCREEN_TYPE = 0xeae2;\nvar REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n\nif (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n REACT_FRAGMENT_TYPE = symbolFor('react.fragment');\n REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');\n REACT_PROFILER_TYPE = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n REACT_SUSPENSE_TYPE = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n REACT_SCOPE_TYPE = symbolFor('react.scope');\n REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n}\n\n// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n\n\n//# sourceURL=webpack://rsuite/./node_modules/react-is/cjs/react-is.development.js?");
|
|
11692
|
-
|
|
11693
|
-
/***/ }),
|
|
11694
|
-
|
|
11695
|
-
/***/ "./node_modules/react-is/index.js":
|
|
11696
|
-
/*!****************************************!*\
|
|
11697
|
-
!*** ./node_modules/react-is/index.js ***!
|
|
11698
|
-
\****************************************/
|
|
11699
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11700
|
-
|
|
11701
|
-
"use strict";
|
|
11702
|
-
eval("\n\nif (false) {} else {\n module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ \"./node_modules/react-is/cjs/react-is.development.js\");\n}\n\n\n//# sourceURL=webpack://rsuite/./node_modules/react-is/index.js?");
|
|
11703
|
-
|
|
11704
|
-
/***/ }),
|
|
11705
|
-
|
|
11706
11618
|
/***/ "./node_modules/react-use-set/dist/index.js":
|
|
11707
11619
|
/*!**************************************************!*\
|
|
11708
11620
|
!*** ./node_modules/react-use-set/dist/index.js ***!
|
|
@@ -11732,7 +11644,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
11732
11644
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11733
11645
|
|
|
11734
11646
|
"use strict";
|
|
11735
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\");\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _rsuite_icons_ArrowRight__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @rsuite/icons/ArrowRight */ \"./node_modules/@rsuite/icons/esm/react/ArrowRight.js\");\n/* harmony import */ var _rsuite_icons_ArrowDown__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @rsuite/icons/ArrowDown */ \"./node_modules/@rsuite/icons/esm/react/ArrowDown.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n'use client';\n\n\nvar _excluded = [\"classPrefix\", \"width\", \"left\", \"headerHeight\", \"depth\", \"height\", \"style\", \"className\", \"fullText\", \"firstColumn\", \"lastColumn\", \"isHeaderCell\", \"align\", \"children\", \"rowData\", \"dataKey\", \"rowIndex\", \"removed\", \"rowKey\", \"rowSpan\", \"wordWrap\", \"verticalAlign\", \"expanded\", \"treeCol\", \"hasChildren\", \"predefinedStyle\", \"renderCell\", \"renderTreeToggle\", \"onClick\", \"onTreeToggle\"];\n\n\n\n\n\n\n\n\n\n\n\nvar groupKeys = ['groupCount', 'groupHeader', 'groupHeaderHeight', 'groupAlign', 'groupVerticalAlign', 'renderSortIcon'];\nvar Cell = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _extends2, _extends3;\n var _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'cell' : _props$classPrefix,\n _props$width = props.width,\n width = _props$width === void 0 ? 0 : _props$width,\n _props$left = props.left,\n left = _props$left === void 0 ? 0 : _props$left,\n _props$headerHeight = props.headerHeight,\n headerHeight = _props$headerHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_6__.ROW_HEADER_HEIGHT : _props$headerHeight,\n _props$depth = props.depth,\n depth = _props$depth === void 0 ? 0 : _props$depth,\n _props$height = props.height,\n height = _props$height === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_6__.ROW_HEIGHT : _props$height,\n style = props.style,\n className = props.className,\n fullText = props.fullText,\n firstColumn = props.firstColumn,\n lastColumn = props.lastColumn,\n isHeaderCell = props.isHeaderCell,\n align = props.align,\n children = props.children,\n rowData = props.rowData,\n dataKey = props.dataKey,\n rowIndex = props.rowIndex,\n removed = props.removed,\n rowKey = props.rowKey,\n rowSpan = props.rowSpan,\n wordWrap = props.wordWrap,\n verticalAlign = props.verticalAlign,\n expanded = props.expanded,\n treeCol = props.treeCol,\n hasChildren = props.hasChildren,\n predefinedStyle = props.predefinedStyle,\n renderCell = props.renderCell,\n renderTreeToggle = props.renderTreeToggle,\n onClick = props.onClick,\n onTreeToggle = props.onTreeToggle,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2___default().useContext(_TableContext__WEBPACK_IMPORTED_MODULE_8__[\"default\"]),\n rtl = _React$useContext.rtl,\n hasCustomTreeCol = _React$useContext.hasCustomTreeCol,\n isTree = _React$useContext.isTree;\n var isTreeCol = treeCol || !hasCustomTreeCol && firstColumn && isTree;\n var cellHeight = typeof height === 'function' ? rowData ? height(rowData) : _constants__WEBPACK_IMPORTED_MODULE_6__.ROW_HEIGHT : height;\n if (isTreeCol && !isHeaderCell && !rowData) {\n throw new Error('[Table.Cell]: `rowData` is required for tree column');\n }\n var handleTreeToggle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n onTreeToggle === null || onTreeToggle === void 0 ? void 0 : onTreeToggle(rowKey, rowIndex, rowData, event);\n }, [onTreeToggle, rowData, rowIndex, rowKey]);\n var _useClassNames = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n var classes = merge(className, withClassPrefix({\n expanded: expanded && isTreeCol,\n first: firstColumn,\n last: lastColumn,\n rowspan: rowSpan && !isHeaderCell,\n 'full-text': fullText\n }));\n var nextHeight = isHeaderCell ? headerHeight : cellHeight;\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, predefinedStyle, (_extends2 = {}, _extends2[fullText ? 'minWidth' : 'width'] = width, _extends2.height = nextHeight, _extends2.zIndex = depth, _extends2[rtl ? 'right' : 'left'] = left, _extends2));\n var paddingKey = rtl ? 'paddingRight' : 'paddingLeft';\n var contentStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, (0,_utils__WEBPACK_IMPORTED_MODULE_7__.convertToFlex)({\n align: align,\n verticalAlign: verticalAlign\n }), style, (_extends3 = {\n width: fullText ? width - 1 : width,\n height: nextHeight\n }, _extends3[paddingKey] = isTreeCol ? depth * _constants__WEBPACK_IMPORTED_MODULE_6__.LAYER_WIDTH + 10 : (style === null || style === void 0 ? void 0 : style[paddingKey]) || (style === null || style === void 0 ? void 0 : style.padding), _extends3));\n if (wordWrap) {\n contentStyles.wordBreak = typeof wordWrap === 'boolean' ? 'break-all' : wordWrap;\n contentStyles.overflowWrap = wordWrap === 'break-word' ? wordWrap : undefined;\n }\n var cellContent = null;\n if (typeof children === 'function') {\n if (!rowData) {\n cellContent = null;\n } else {\n cellContent = children(rowData, rowIndex);\n }\n } else if (lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default()(children)) {\n if (rowData && dataKey) {\n cellContent = lodash_get__WEBPACK_IMPORTED_MODULE_5___default()(rowData, dataKey);\n }\n } else {\n cellContent = children;\n }\n var renderTreeNodeExpandIcon = function renderTreeNodeExpandIcon() {\n var ExpandIconComponent = expanded ? _rsuite_icons_ArrowDown__WEBPACK_IMPORTED_MODULE_10__[\"default\"] : _rsuite_icons_ArrowRight__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\n var expandButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ExpandIconComponent, {\n className: prefix('expand-icon')\n });\n if (isTreeCol && hasChildren) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", {\n role: \"button\",\n tabIndex: -1,\n className: prefix('expand-wrapper'),\n onClick: handleTreeToggle\n }, renderTreeToggle ? renderTreeToggle(expandButton, rowData, expanded) : expandButton);\n }\n return null;\n };\n var content = wordWrap ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('wrap')\n }, renderTreeNodeExpandIcon(), renderCell ? renderCell(cellContent) : cellContent) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, renderTreeNodeExpandIcon(), renderCell ? renderCell(cellContent) : cellContent);\n if (removed) {\n return null;\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n ref: ref,\n role: isHeaderCell ? 'columnheader' : 'gridcell'\n }, lodash_omit__WEBPACK_IMPORTED_MODULE_3___default()(rest, [].concat(groupKeys, _Column__WEBPACK_IMPORTED_MODULE_9__.columnHandledProps)), {\n onClick: onClick,\n className: classes,\n style: styles\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('content'),\n style: contentStyles\n }, content));\n});\nCell.displayName = 'Table.Cell';\nCell.propTypes = {\n align: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n verticalAlign: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n classPrefix: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n dataKey: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),\n isHeaderCell: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n width: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number),\n height: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func)]),\n left: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number),\n headerHeight: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number),\n style: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object),\n firstColumn: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n lastColumn: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n hasChildren: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n children: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any),\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number)]),\n rowIndex: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number),\n rowData: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object),\n depth: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().number),\n onTreeToggle: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n renderTreeToggle: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n renderCell: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),\n wordWrap: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any),\n removed: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n treeCol: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n expanded: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool),\n fullText: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().bool)\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Cell.js?");
|
|
11647
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\");\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n/* harmony import */ var _icons_ArrowRight__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./icons/ArrowRight */ \"./node_modules/rsuite-table/es/icons/ArrowRight.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n'use client';\n\n\nvar _excluded = [\"classPrefix\", \"width\", \"left\", \"headerHeight\", \"depth\", \"height\", \"style\", \"className\", \"fullText\", \"firstColumn\", \"lastColumn\", \"isHeaderCell\", \"align\", \"children\", \"rowData\", \"dataKey\", \"rowIndex\", \"removed\", \"rowKey\", \"rowSpan\", \"wordWrap\", \"verticalAlign\", \"expanded\", \"treeCol\", \"hasChildren\", \"predefinedStyle\", \"renderCell\", \"renderTreeToggle\", \"onClick\", \"onTreeToggle\"];\n\n\n\n\n\n\n\n\n\nvar groupKeys = ['groupCount', 'groupHeader', 'groupHeaderHeight', 'groupAlign', 'groupVerticalAlign', 'renderSortIcon'];\nvar Cell = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _extends2, _extends3;\n var _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'cell' : _props$classPrefix,\n _props$width = props.width,\n width = _props$width === void 0 ? 0 : _props$width,\n _props$left = props.left,\n left = _props$left === void 0 ? 0 : _props$left,\n _props$headerHeight = props.headerHeight,\n headerHeight = _props$headerHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_6__.ROW_HEADER_HEIGHT : _props$headerHeight,\n _props$depth = props.depth,\n depth = _props$depth === void 0 ? 0 : _props$depth,\n _props$height = props.height,\n height = _props$height === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_6__.ROW_HEIGHT : _props$height,\n style = props.style,\n className = props.className,\n fullText = props.fullText,\n firstColumn = props.firstColumn,\n lastColumn = props.lastColumn,\n isHeaderCell = props.isHeaderCell,\n align = props.align,\n children = props.children,\n rowData = props.rowData,\n dataKey = props.dataKey,\n rowIndex = props.rowIndex,\n removed = props.removed,\n rowKey = props.rowKey,\n rowSpan = props.rowSpan,\n wordWrap = props.wordWrap,\n verticalAlign = props.verticalAlign,\n expanded = props.expanded,\n treeCol = props.treeCol,\n hasChildren = props.hasChildren,\n predefinedStyle = props.predefinedStyle,\n renderCell = props.renderCell,\n renderTreeToggle = props.renderTreeToggle,\n onClick = props.onClick,\n onTreeToggle = props.onTreeToggle,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _useTable = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useTable)(),\n rtl = _useTable.rtl,\n hasCustomTreeCol = _useTable.hasCustomTreeCol,\n isTree = _useTable.isTree;\n var isTreeCol = treeCol || !hasCustomTreeCol && firstColumn && isTree;\n var cellHeight = typeof height === 'function' ? rowData ? height(rowData) : _constants__WEBPACK_IMPORTED_MODULE_6__.ROW_HEIGHT : height;\n if (isTreeCol && !isHeaderCell && !rowData) {\n throw new Error('[Table.Cell]: `rowData` is required for tree column');\n }\n var handleTreeToggle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n onTreeToggle === null || onTreeToggle === void 0 || onTreeToggle(rowKey, rowIndex, rowData, event);\n }, [onTreeToggle, rowData, rowIndex, rowKey]);\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_8__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n var classes = merge(className, withClassPrefix({\n expanded: expanded && isTreeCol,\n first: firstColumn,\n last: lastColumn,\n rowspan: rowSpan && !isHeaderCell,\n 'full-text': fullText\n }));\n var nextHeight = isHeaderCell ? headerHeight : cellHeight;\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, predefinedStyle, (_extends2 = {}, _extends2[fullText ? 'minWidth' : 'width'] = width, _extends2.height = nextHeight, _extends2.zIndex = depth, _extends2[rtl ? 'right' : 'left'] = left, _extends2));\n var paddingKey = rtl ? 'paddingRight' : 'paddingLeft';\n var contentStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, (0,_utils__WEBPACK_IMPORTED_MODULE_7__.convertToFlex)({\n align: align,\n verticalAlign: verticalAlign\n }), style, (_extends3 = {\n width: fullText ? width - 1 : width,\n height: nextHeight\n }, _extends3[paddingKey] = isTreeCol ? depth * _constants__WEBPACK_IMPORTED_MODULE_6__.LAYER_WIDTH + 10 : (style === null || style === void 0 ? void 0 : style[paddingKey]) || (style === null || style === void 0 ? void 0 : style.padding), _extends3));\n if (wordWrap) {\n contentStyles.wordBreak = typeof wordWrap === 'boolean' ? 'break-all' : wordWrap;\n contentStyles.overflowWrap = wordWrap === 'break-word' ? wordWrap : undefined;\n }\n var cellContent = null;\n if (typeof children === 'function') {\n if (!rowData) {\n cellContent = null;\n } else {\n cellContent = children(rowData, rowIndex);\n }\n } else if (lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default()(children)) {\n if (rowData && dataKey) {\n cellContent = lodash_get__WEBPACK_IMPORTED_MODULE_5___default()(rowData, dataKey);\n }\n } else {\n cellContent = children;\n }\n var renderTreeNodeExpandIcon = function renderTreeNodeExpandIcon() {\n var expandButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icons_ArrowRight__WEBPACK_IMPORTED_MODULE_9__.ArrowRight, {\n className: prefix('expand-icon'),\n \"data-expanded\": expanded\n });\n if (isTreeCol && hasChildren) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", {\n role: \"button\",\n tabIndex: -1,\n className: prefix('expand-wrapper'),\n onClick: handleTreeToggle\n }, renderTreeToggle ? renderTreeToggle(expandButton, rowData, expanded) : expandButton);\n }\n return null;\n };\n var content = wordWrap ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('wrap')\n }, renderTreeNodeExpandIcon(), renderCell ? renderCell(cellContent) : cellContent) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, renderTreeNodeExpandIcon(), renderCell ? renderCell(cellContent) : cellContent);\n if (removed) {\n return null;\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n ref: ref,\n role: isHeaderCell ? 'columnheader' : 'gridcell'\n }, lodash_omit__WEBPACK_IMPORTED_MODULE_3___default()(rest, [].concat(groupKeys, _Column__WEBPACK_IMPORTED_MODULE_10__.columnHandledProps)), {\n onClick: onClick,\n className: classes,\n style: styles\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('content'),\n style: contentStyles\n }, content));\n});\nCell.displayName = 'Table.Cell';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Cell.js?");
|
|
11736
11648
|
|
|
11737
11649
|
/***/ }),
|
|
11738
11650
|
|
|
@@ -11743,7 +11655,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11743
11655
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11744
11656
|
|
|
11745
11657
|
"use strict";
|
|
11746
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var
|
|
11658
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n'use client';\n\n\nvar _excluded = [\"fixed\", \"width\", \"left\", \"height\", \"style\", \"classPrefix\", \"className\", \"children\"];\n\n\nvar CellGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _withClassPrefix;\n var fixed = props.fixed,\n width = props.width,\n left = props.left,\n height = props.height,\n style = props.style,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'cell-group' : _props$classPrefix,\n className = props.className,\n children = props.children,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _useTable = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useTable)(),\n setCssPosition = _useTable.setCssPosition;\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge;\n var classes = merge(className, withClassPrefix((_withClassPrefix = {}, _withClassPrefix[\"fixed-\" + fixed] = fixed, _withClassPrefix.scroll = !fixed, _withClassPrefix)));\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n width: width,\n height: height\n }, style);\n setCssPosition === null || setCssPosition === void 0 || setCssPosition(styles, left, 0);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, rest, {\n ref: ref,\n className: classes,\n style: styles\n }), children);\n});\nCellGroup.displayName = 'Table.CellGroup';\n/* harmony default export */ __webpack_exports__[\"default\"] = (CellGroup);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/CellGroup.js?");
|
|
11747
11659
|
|
|
11748
11660
|
/***/ }),
|
|
11749
11661
|
|
|
@@ -11754,7 +11666,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11754
11666
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11755
11667
|
|
|
11756
11668
|
"use strict";
|
|
11757
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ columnHandledProps: function() { return /* binding */ columnHandledProps; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n
|
|
11669
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ columnHandledProps: function() { return /* binding */ columnHandledProps; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction Column(_props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null);\n}\nColumn.displayName = 'Table.Column';\nColumn.defaultProps = {\n width: 100\n};\nvar columnHandledProps = ['align', 'verticalAlign', 'width', 'fixed', 'resizable', 'sortable', 'flexGrow', 'minWidth', 'colSpan', 'rowSpan', 'treeCol', 'onResize', 'children', 'fullText'];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Column);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Column.js?");
|
|
11758
11670
|
|
|
11759
11671
|
/***/ }),
|
|
11760
11672
|
|
|
@@ -11765,7 +11677,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
11765
11677
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11766
11678
|
|
|
11767
11679
|
"use strict";
|
|
11768
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var
|
|
11680
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n'use client';\n\n\nvar _excluded = [\"header\", \"className\", \"children\", \"classPrefix\", \"headerHeight\", \"verticalAlign\", \"align\", \"width\", \"groupHeaderHeight\"];\n\n\n\nvar ColumnGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var header = props.header,\n className = props.className,\n children = props.children,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'column-group' : _props$classPrefix,\n _props$headerHeight = props.headerHeight,\n headerHeight = _props$headerHeight === void 0 ? 80 : _props$headerHeight,\n verticalAlign = props.verticalAlign,\n align = props.align,\n width = props.width,\n groupHeightProp = props.groupHeaderHeight,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var groupHeight = typeof groupHeightProp !== 'undefined' ? groupHeightProp : headerHeight / 2;\n var restHeight = typeof groupHeightProp !== 'undefined' ? headerHeight - groupHeightProp : headerHeight / 2;\n var styles = {\n height: groupHeight,\n width: width\n };\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n var classes = merge(className, withClassPrefix());\n var contentStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, (0,_utils__WEBPACK_IMPORTED_MODULE_3__.convertToFlex)({\n verticalAlign: verticalAlign,\n align: align\n }), styles);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n ref: ref,\n className: classes\n }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('header'),\n style: styles\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('header-content'),\n style: contentStyles\n }, header)), children ? react__WEBPACK_IMPORTED_MODULE_2___default().Children.map(children, function (node) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(node, {\n className: prefix('cell'),\n predefinedStyle: {\n height: restHeight,\n top: styles.height\n },\n headerHeight: restHeight,\n verticalAlign: node.props.verticalAlign || verticalAlign,\n children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", {\n className: prefix('cell-content')\n }, node.props.children)\n });\n }) : null);\n});\nColumnGroup.displayName = 'Table.ColumnGroup';\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColumnGroup);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/ColumnGroup.js?");
|
|
11769
11681
|
|
|
11770
11682
|
/***/ }),
|
|
11771
11683
|
|
|
@@ -11776,7 +11688,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11776
11688
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11777
11689
|
|
|
11778
11690
|
"use strict";
|
|
11779
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/clamp */ \"./node_modules/lodash/clamp.js\");\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_clamp__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/DOMMouseMoveTracker */ \"./node_modules/dom-lib/esm/DOMMouseMoveTracker.js\");\n/* harmony import */ var
|
|
11691
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/clamp */ \"./node_modules/lodash/clamp.js\");\n/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_clamp__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/DOMMouseMoveTracker */ \"./node_modules/dom-lib/esm/DOMMouseMoveTracker.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\nvar _excluded = [\"columnLeft\", \"classPrefix\", \"height\", \"className\", \"style\", \"columnFixed\", \"defaultColumnWidth\", \"minWidth\", \"onColumnResizeStart\", \"onColumnResizeMove\", \"onColumnResizeEnd\"];\n\n\n\n\n\nvar ColumnResizeHandler = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _extends2;\n var _props$columnLeft = props.columnLeft,\n columnLeft = _props$columnLeft === void 0 ? 0 : _props$columnLeft,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'column-resize-spanner' : _props$classPrefix,\n height = props.height,\n className = props.className,\n style = props.style,\n columnFixed = props.columnFixed,\n defaultColumnWidth = props.defaultColumnWidth,\n minWidth = props.minWidth,\n onColumnResizeStart = props.onColumnResizeStart,\n onColumnResizeMove = props.onColumnResizeMove,\n onColumnResizeEnd = props.onColumnResizeEnd,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _useTable = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useTable)(),\n rtl = _useTable.rtl;\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge;\n var classes = merge(className, withClassPrefix());\n var columnWidth = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(defaultColumnWidth || 0);\n var mouseMoveTracker = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();\n var isKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();\n var cursorDelta = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(0);\n var handleMove = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (deltaX) {\n if (!isKeyDown.current) {\n return;\n }\n cursorDelta.current += deltaX;\n columnWidth.current = lodash_clamp__WEBPACK_IMPORTED_MODULE_3___default()((defaultColumnWidth || 0) + (rtl ? -cursorDelta.current : cursorDelta.current), minWidth ? Math.max(minWidth, _constants__WEBPACK_IMPORTED_MODULE_6__.RESIZE_MIN_WIDTH) : _constants__WEBPACK_IMPORTED_MODULE_6__.RESIZE_MIN_WIDTH, 20000);\n onColumnResizeMove === null || onColumnResizeMove === void 0 || onColumnResizeMove(columnWidth.current, columnLeft, columnFixed);\n }, [columnFixed, columnLeft, defaultColumnWidth, minWidth, onColumnResizeMove, rtl]);\n var handleColumnResizeEnd = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n var _mouseMoveTracker$cur, _mouseMoveTracker$cur2;\n isKeyDown.current = false;\n onColumnResizeEnd === null || onColumnResizeEnd === void 0 || onColumnResizeEnd(columnWidth.current, cursorDelta.current);\n (_mouseMoveTracker$cur = mouseMoveTracker.current) === null || _mouseMoveTracker$cur === void 0 || (_mouseMoveTracker$cur2 = _mouseMoveTracker$cur.releaseMouseMoves) === null || _mouseMoveTracker$cur2 === void 0 || _mouseMoveTracker$cur2.call(_mouseMoveTracker$cur);\n mouseMoveTracker.current = null;\n }, [onColumnResizeEnd]);\n var getMouseMoveTracker = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n return mouseMoveTracker.current || new dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_4__[\"default\"](handleMove, handleColumnResizeEnd, document.body);\n }, [handleColumnResizeEnd, handleMove]);\n var handleColumnResizeMouseDown = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n mouseMoveTracker.current = getMouseMoveTracker();\n mouseMoveTracker.current.captureMouseMoves(event);\n isKeyDown.current = true;\n cursorDelta.current = 0;\n var client = {\n clientX: event.clientX,\n clientY: event.clientY,\n preventDefault: Function()\n };\n onColumnResizeStart === null || onColumnResizeStart === void 0 || onColumnResizeStart(client);\n }, [getMouseMoveTracker, onColumnResizeStart]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n return function () {\n var _mouseMoveTracker$cur3;\n (_mouseMoveTracker$cur3 = mouseMoveTracker.current) === null || _mouseMoveTracker$cur3 === void 0 || _mouseMoveTracker$cur3.releaseMouseMoves();\n mouseMoveTracker.current = null;\n };\n }, []);\n if (columnFixed === 'right') {\n return null;\n }\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((_extends2 = {}, _extends2[rtl ? 'right' : 'left'] = columnWidth.current + columnLeft - 2, _extends2.height = height, _extends2), style);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n tabIndex: -1,\n role: \"button\",\n ref: ref\n }, rest, {\n className: classes,\n style: styles,\n onMouseDown: handleColumnResizeMouseDown\n }));\n});\nColumnResizeHandler.displayName = 'Table.ColumnResizeHandler';\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColumnResizeHandler);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/ColumnResizeHandler.js?");
|
|
11780
11692
|
|
|
11781
11693
|
/***/ }),
|
|
11782
11694
|
|
|
@@ -11798,7 +11710,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
|
|
|
11798
11710
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11799
11711
|
|
|
11800
11712
|
"use strict";
|
|
11801
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var
|
|
11713
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\");\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _ColumnResizeHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ColumnResizeHandler */ \"./node_modules/rsuite-table/es/ColumnResizeHandler.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n/* harmony import */ var _icons_Sort__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./icons/Sort */ \"./node_modules/rsuite-table/es/icons/Sort.js\");\n/* harmony import */ var _icons_SortDown__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./icons/SortDown */ \"./node_modules/rsuite-table/es/icons/SortDown.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n'use client';\n\n\nvar _excluded = [\"className\", \"classPrefix\", \"width\", \"dataKey\", \"headerHeight\", \"children\", \"left\", \"sortable\", \"sortColumn\", \"sortType\", \"groupHeader\", \"resizable\", \"fixed\", \"minWidth\", \"index\", \"flexGrow\", \"align\", \"verticalAlign\", \"onColumnResizeEnd\", \"onResize\", \"onColumnResizeStart\", \"onColumnResizeMove\", \"onSortColumn\", \"renderSortIcon\"];\n\n\n\n\n\n\n\n\nvar HeaderCell = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var className = props.className,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'cell-header' : _props$classPrefix,\n width = props.width,\n dataKey = props.dataKey,\n headerHeight = props.headerHeight,\n children = props.children,\n left = props.left,\n sortable = props.sortable,\n sortColumn = props.sortColumn,\n sortType = props.sortType,\n groupHeader = props.groupHeader,\n resizable = props.resizable,\n fixed = props.fixed,\n minWidth = props.minWidth,\n index = props.index,\n flexGrow = props.flexGrow,\n align = props.align,\n verticalAlign = props.verticalAlign,\n onColumnResizeEnd = props.onColumnResizeEnd,\n onResize = props.onResize,\n onColumnResizeStart = props.onColumnResizeStart,\n onColumnResizeMove = props.onColumnResizeMove,\n onSortColumn = props.onSortColumn,\n renderSortIcon = props.renderSortIcon,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default()(flexGrow) ? width : 0),\n columnWidth = _useState[0],\n setColumnWidth = _useState[1];\n (0,_hooks__WEBPACK_IMPORTED_MODULE_9__.useUpdateEffect)(function () {\n setColumnWidth(lodash_isNil__WEBPACK_IMPORTED_MODULE_4___default()(flexGrow) ? width : 0);\n }, [flexGrow, width]);\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_9__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n var classes = merge(className, withClassPrefix({\n sortable: sortable\n }));\n var ariaSort;\n if (sortColumn === dataKey) {\n ariaSort = 'other';\n if (sortType === 'asc') {\n ariaSort = 'ascending';\n } else if (sortType === 'desc') {\n ariaSort = 'descending';\n }\n }\n var handleClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n if (sortable) {\n onSortColumn === null || onSortColumn === void 0 || onSortColumn(dataKey);\n }\n }, [dataKey, onSortColumn, sortable]);\n var handleColumnResizeStart = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n onColumnResizeStart === null || onColumnResizeStart === void 0 || onColumnResizeStart(columnWidth, left, !!fixed);\n }, [columnWidth, fixed, left, onColumnResizeStart]);\n var handleColumnResizeEnd = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (nextColumnWidth, cursorDelta) {\n setColumnWidth(nextColumnWidth);\n onColumnResizeEnd === null || onColumnResizeEnd === void 0 || onColumnResizeEnd(nextColumnWidth, cursorDelta, dataKey, index);\n onResize === null || onResize === void 0 || onResize(nextColumnWidth, dataKey);\n }, [dataKey, index, onColumnResizeEnd, onResize]);\n var renderSortColumn = function renderSortColumn() {\n if (sortable && !groupHeader) {\n var SortIcon = sortColumn === dataKey && sortType ? _icons_SortDown__WEBPACK_IMPORTED_MODULE_8__.SortDown : _icons_Sort__WEBPACK_IMPORTED_MODULE_7__.Sort;\n var iconClasses = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefix('icon-sort'));\n var sortIcon = renderSortIcon ? renderSortIcon(sortColumn === dataKey ? sortType : undefined) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SortIcon, {\n className: iconClasses,\n \"data-sort\": sortType\n });\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", {\n className: prefix('sort-wrapper')\n }, sortIcon);\n }\n return null;\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n ref: ref,\n className: classes\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Cell__WEBPACK_IMPORTED_MODULE_6__[\"default\"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n \"aria-sort\": ariaSort\n }, rest, {\n width: width,\n dataKey: dataKey,\n left: left,\n headerHeight: headerHeight,\n isHeaderCell: true,\n align: !groupHeader ? align : undefined,\n verticalAlign: !groupHeader ? verticalAlign : undefined,\n onClick: !groupHeader ? handleClick : undefined\n }), children, renderSortColumn()), resizable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_ColumnResizeHandler__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n defaultColumnWidth: columnWidth,\n key: columnWidth,\n columnLeft: left,\n columnFixed: fixed,\n height: headerHeight ? headerHeight - 1 : undefined,\n minWidth: minWidth,\n onColumnResizeMove: onColumnResizeMove,\n onColumnResizeStart: handleColumnResizeStart,\n onColumnResizeEnd: handleColumnResizeEnd\n }) : null);\n});\nHeaderCell.displayName = 'HeaderCell';\n/* harmony default export */ __webpack_exports__[\"default\"] = (HeaderCell);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/HeaderCell.js?");
|
|
11802
11714
|
|
|
11803
11715
|
/***/ }),
|
|
11804
11716
|
|
|
@@ -11831,7 +11743,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
|
|
|
11831
11743
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11832
11744
|
|
|
11833
11745
|
"use strict";
|
|
11834
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var
|
|
11746
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\nvar _excluded = [\"classPrefix\", \"height\", \"headerHeight\", \"className\", \"width\", \"top\", \"style\", \"isHeaderRow\", \"rowRef\", \"children\", \"rowSpan\"];\n\n\n\n\nvar Row = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'row' : _props$classPrefix,\n _props$height = props.height,\n height = _props$height === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_5__.ROW_HEIGHT : _props$height,\n _props$headerHeight = props.headerHeight,\n headerHeight = _props$headerHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_5__.ROW_HEADER_HEIGHT : _props$headerHeight,\n className = props.className,\n width = props.width,\n top = props.top,\n style = props.style,\n isHeaderRow = props.isHeaderRow,\n rowRef = props.rowRef,\n children = props.children,\n rowSpan = props.rowSpan,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _useTable = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useTable)(),\n setCssPosition = _useTable.setCssPosition;\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge;\n var classes = merge(className, withClassPrefix({\n header: isHeaderRow,\n rowspan: rowSpan\n }));\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n minWidth: width,\n height: isHeaderRow ? headerHeight : height\n }, style);\n setCssPosition === null || setCssPosition === void 0 || setCssPosition(styles, 0, top);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"row\"\n }, rest, {\n ref: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.mergeRefs)(rowRef, ref),\n className: classes,\n style: styles\n }), children);\n});\nRow.displayName = 'Table.Row';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Row);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Row.js?");
|
|
11835
11747
|
|
|
11836
11748
|
/***/ }),
|
|
11837
11749
|
|
|
@@ -11842,7 +11754,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11842
11754
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11843
11755
|
|
|
11844
11756
|
"use strict";
|
|
11845
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/DOMMouseMoveTracker */ \"./node_modules/dom-lib/esm/DOMMouseMoveTracker.js\");\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-lib/getOffset */ \"./node_modules/dom-lib/esm/getOffset.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n'use client';\n\n\nvar _excluded = [\"length\", \"scrollLength\", \"classPrefix\", \"vertical\", \"className\", \"tableId\", \"onMouseDown\", \"onScroll\"];\n\n\n\n\n\n\n\nvar Scrollbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _barRef$current, _styles;\n var _props$length = props.length,\n length = _props$length === void 0 ? 1 : _props$length,\n _props$scrollLength = props.scrollLength,\n scrollLength = _props$scrollLength === void 0 ? 1 : _props$scrollLength,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'scrollbar' : _props$classPrefix,\n vertical = props.vertical,\n className = props.className,\n tableId = props.tableId,\n onMouseDown = props.onMouseDown,\n onScroll = props.onScroll,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2___default().useContext(_TableContext__WEBPACK_IMPORTED_MODULE_8__[\"default\"]),\n translateDOMPositionXY = _React$useContext.translateDOMPositionXY;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n handlePressed = _useState[0],\n setHandlePressed = _useState[1];\n var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({\n top: 0,\n left: 0\n }),\n barOffset = _useState2[0],\n setBarOffset = _useState2[1];\n var scrollOffset = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(0);\n var scrollRange = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(scrollLength);\n var barRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var handleRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var mouseMoveTracker = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();\n var _useClassNames = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n var classes = merge(className, withClassPrefix({\n vertical: vertical,\n horizontal: !vertical,\n pressed: handlePressed\n }),\n // keep the 'fixed' class name if it has already been given by useAffix hook\n ((_barRef$current = barRef.current) === null || _barRef$current === void 0 ? void 0 : _barRef$current.classList.contains('fixed')) && 'fixed');\n var width = length / scrollLength * 100;\n var styles = (_styles = {}, _styles[vertical ? 'height' : 'width'] = width + \"%\", _styles[vertical ? 'minHeight' : 'minWidth'] = _constants__WEBPACK_IMPORTED_MODULE_6__.SCROLLBAR_MIN_WIDTH, _styles);\n var valuenow = scrollOffset.current / length * 100 + width;\n (0,_utils__WEBPACK_IMPORTED_MODULE_7__.useMount)(function () {\n (0,_utils__WEBPACK_IMPORTED_MODULE_7__.defer)(function () {\n if (barRef.current) {\n setBarOffset((0,dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(barRef.current));\n }\n });\n return function () {\n releaseMouseMoves();\n };\n });\n (0,_utils__WEBPACK_IMPORTED_MODULE_7__.useUpdateEffect)(function () {\n if (scrollOffset.current) {\n // Update the position of the scroll bar when the height of the table content area changes.\n scrollOffset.current = scrollRange.current / scrollLength * scrollOffset.current;\n updateScrollBarPosition(0);\n }\n scrollRange.current = scrollLength;\n }, [scrollLength]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n return {\n get root() {\n return barRef.current;\n },\n get handle() {\n return handleRef.current;\n },\n onWheelScroll: function onWheelScroll(delta, momentum) {\n var nextDelta = delta / (scrollLength / length);\n updateScrollBarPosition(nextDelta, undefined, momentum);\n },\n resetScrollBarPosition: function resetScrollBarPosition(forceDelta) {\n if (forceDelta === void 0) {\n forceDelta = 0;\n }\n scrollOffset.current = 0;\n updateScrollBarPosition(0, forceDelta);\n }\n };\n });\n var updateScrollBarPosition = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (delta, forceDelta, momentum) {\n var max = scrollLength && length ? length - Math.max(length / scrollLength * length, _constants__WEBPACK_IMPORTED_MODULE_6__.SCROLLBAR_MIN_WIDTH + 2) : 0;\n var styles = momentum ? {\n 'transition-duration': _constants__WEBPACK_IMPORTED_MODULE_6__.TRANSITION_DURATION + \"ms\",\n 'transition-timing-function': _constants__WEBPACK_IMPORTED_MODULE_6__.BEZIER\n } : {};\n var getSafeValue = function getSafeValue(value) {\n if (value === void 0) {\n value = 0;\n }\n return Math.min(Math.max(value, 0), max);\n };\n if (typeof forceDelta === 'undefined') {\n scrollOffset.current += delta;\n scrollOffset.current = getSafeValue(scrollOffset.current);\n } else {\n scrollOffset.current = getSafeValue(forceDelta);\n }\n if (vertical) {\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, 0, scrollOffset.current);\n } else {\n translateDOMPositionXY === null || translateDOMPositionXY === void 0 ? void 0 : translateDOMPositionXY(styles, scrollOffset.current, 0);\n }\n if (handleRef.current) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(handleRef.current, styles);\n }\n }, [length, scrollLength, translateDOMPositionXY, vertical]);\n var handleScroll = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (delta, event) {\n var scrollDelta = delta * (scrollLength / length);\n updateScrollBarPosition(delta);\n onScroll === null || onScroll === void 0 ? void 0 : onScroll(scrollDelta, event);\n }, [length, onScroll, scrollLength, updateScrollBarPosition]);\n var handleClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n var _handleRef$current;\n if (handleRef.current && (_handleRef$current = handleRef.current) !== null && _handleRef$current !== void 0 && _handleRef$current.contains(event.target)) {\n return;\n }\n if (typeof (barOffset === null || barOffset === void 0 ? void 0 : barOffset.top) !== 'number' || typeof (barOffset === null || barOffset === void 0 ? void 0 : barOffset.left) !== 'number') {\n return;\n }\n var offset = vertical ? event.pageY - (barOffset === null || barOffset === void 0 ? void 0 : barOffset.top) : event.pageX - barOffset.left;\n var handleWidth = length / scrollLength * length;\n var delta = offset - handleWidth;\n var nextDelta = offset > scrollOffset.current ? delta - scrollOffset.current : offset - scrollOffset.current;\n handleScroll(nextDelta, event);\n }, [barOffset, handleScroll, length, scrollLength, vertical]);\n var releaseMouseMoves = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n var _mouseMoveTracker$cur, _mouseMoveTracker$cur2;\n (_mouseMoveTracker$cur = mouseMoveTracker.current) === null || _mouseMoveTracker$cur === void 0 ? void 0 : (_mouseMoveTracker$cur2 = _mouseMoveTracker$cur.releaseMouseMoves) === null || _mouseMoveTracker$cur2 === void 0 ? void 0 : _mouseMoveTracker$cur2.call(_mouseMoveTracker$cur);\n mouseMoveTracker.current = null;\n }, []);\n var handleDragMove = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (deltaX, deltaY, event) {\n var _window, _window$event;\n if (!mouseMoveTracker.current || !mouseMoveTracker.current.isDragging()) {\n return;\n }\n if ((event === null || event === void 0 ? void 0 : event.buttons) === 0 || ((_window = window) === null || _window === void 0 ? void 0 : (_window$event = _window.event) === null || _window$event === void 0 ? void 0 : _window$event['buttons']) === 0) {\n releaseMouseMoves();\n return;\n }\n handleScroll(vertical ? deltaY : deltaX, event);\n }, [handleScroll, releaseMouseMoves, vertical]);\n var handleDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n releaseMouseMoves();\n setHandlePressed(false);\n }, [releaseMouseMoves]);\n var getMouseMoveTracker = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n return mouseMoveTracker.current || new dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_3__[\"default\"](handleDragMove, handleDragEnd, document.body);\n }, [handleDragEnd, handleDragMove]);\n var handleMouseDown = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n var _mouseMoveTracker$cur3;\n mouseMoveTracker.current = getMouseMoveTracker();\n mouseMoveTracker === null || mouseMoveTracker === void 0 ? void 0 : (_mouseMoveTracker$cur3 = mouseMoveTracker.current) === null || _mouseMoveTracker$cur3 === void 0 ? void 0 : _mouseMoveTracker$cur3.captureMouseMoves(event);\n setHandlePressed(true);\n onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(event);\n }, [getMouseMoveTracker, onMouseDown]);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"scrollbar\",\n \"aria-controls\": tableId,\n \"aria-valuemax\": 100,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": valuenow,\n \"aria-orientation\": vertical ? 'vertical' : 'horizontal'\n }, rest, {\n ref: barRef,\n className: classes,\n onClick: handleClick\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n ref: handleRef,\n className: prefix('handle'),\n style: styles,\n onMouseDown: handleMouseDown,\n role: \"button\",\n tabIndex: -1\n }));\n});\nScrollbar.displayName = 'Table.Scrollbar';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Scrollbar);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Scrollbar.js?");
|
|
11757
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/DOMMouseMoveTracker */ \"./node_modules/dom-lib/esm/DOMMouseMoveTracker.js\");\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-lib/getOffset */ \"./node_modules/dom-lib/esm/getOffset.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n'use client';\n\n\nvar _excluded = [\"length\", \"scrollLength\", \"classPrefix\", \"vertical\", \"className\", \"tableId\", \"onMouseDown\", \"onScroll\"];\n\n\n\n\n\n\nvar Scrollbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var _barRef$current, _styles;\n var _props$length = props.length,\n length = _props$length === void 0 ? 1 : _props$length,\n _props$scrollLength = props.scrollLength,\n scrollLength = _props$scrollLength === void 0 ? 1 : _props$scrollLength,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'scrollbar' : _props$classPrefix,\n vertical = props.vertical,\n className = props.className,\n tableId = props.tableId,\n onMouseDown = props.onMouseDown,\n onScroll = props.onScroll,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var _useTable = (0,_hooks__WEBPACK_IMPORTED_MODULE_7__.useTable)(),\n setCssPosition = _useTable.setCssPosition;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n handlePressed = _useState[0],\n setHandlePressed = _useState[1];\n var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(null),\n barOffset = _useState2[0],\n setBarOffset = _useState2[1];\n var scrollOffset = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(0);\n var scrollRange = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(scrollLength);\n var barRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var handleRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var mouseMoveTracker = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_7__.useClassNames)(classPrefix),\n withClassPrefix = _useClassNames.withClassPrefix,\n merge = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n var classes = merge(className, withClassPrefix({\n vertical: vertical,\n horizontal: !vertical,\n pressed: handlePressed\n }),\n // keep the 'fixed' class name if it has already been given by useAffix hook\n ((_barRef$current = barRef.current) === null || _barRef$current === void 0 ? void 0 : _barRef$current.classList.contains('fixed')) && 'fixed');\n var width = length / scrollLength * 100;\n var styles = (_styles = {}, _styles[vertical ? 'height' : 'width'] = width + \"%\", _styles[vertical ? 'minHeight' : 'minWidth'] = _constants__WEBPACK_IMPORTED_MODULE_6__.SCROLLBAR_MIN_WIDTH, _styles);\n var valuenow = scrollOffset.current / length * 100 + width;\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect)(function () {\n // Only update if we haven't set the offset yet\n if (!barOffset && barRef.current) {\n setBarOffset((0,dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(barRef.current));\n }\n return function () {\n releaseMouseMoves();\n };\n }, []); // Only run once on mount\n\n (0,_hooks__WEBPACK_IMPORTED_MODULE_7__.useUpdateEffect)(function () {\n if (scrollOffset.current) {\n // Update the position of the scroll bar when the height of the table content area changes.\n scrollOffset.current = scrollRange.current / scrollLength * scrollOffset.current;\n updateScrollBarPosition(0);\n }\n scrollRange.current = scrollLength;\n }, [scrollLength]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n return {\n get root() {\n return barRef.current;\n },\n get handle() {\n return handleRef.current;\n },\n onWheelScroll: function onWheelScroll(delta, momentum) {\n var nextDelta = delta / (scrollLength / length);\n updateScrollBarPosition(nextDelta, undefined, momentum);\n },\n resetScrollBarPosition: function resetScrollBarPosition(forceDelta) {\n if (forceDelta === void 0) {\n forceDelta = 0;\n }\n scrollOffset.current = 0;\n updateScrollBarPosition(0, forceDelta);\n }\n };\n });\n var updateScrollBarPosition = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (delta, forceDelta, momentum) {\n var max = scrollLength && length ? length - Math.max(length / scrollLength * length, _constants__WEBPACK_IMPORTED_MODULE_6__.SCROLLBAR_MIN_WIDTH + 2) : 0;\n var styles = momentum ? {\n 'transition-duration': _constants__WEBPACK_IMPORTED_MODULE_6__.TRANSITION_DURATION + \"ms\",\n 'transition-timing-function': _constants__WEBPACK_IMPORTED_MODULE_6__.BEZIER\n } : {};\n var getSafeValue = function getSafeValue(value) {\n if (value === void 0) {\n value = 0;\n }\n return Math.min(Math.max(value, 0), max);\n };\n if (typeof forceDelta === 'undefined') {\n scrollOffset.current += delta;\n scrollOffset.current = getSafeValue(scrollOffset.current);\n } else {\n scrollOffset.current = getSafeValue(forceDelta);\n }\n if (vertical) {\n setCssPosition === null || setCssPosition === void 0 || setCssPosition(styles, 0, scrollOffset.current);\n } else {\n setCssPosition === null || setCssPosition === void 0 || setCssPosition(styles, scrollOffset.current, 0);\n }\n if (handleRef.current) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(handleRef.current, styles);\n }\n }, [length, scrollLength, setCssPosition, vertical]);\n var handleScroll = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (delta, event) {\n var scrollDelta = delta * (scrollLength / length);\n updateScrollBarPosition(delta);\n onScroll === null || onScroll === void 0 || onScroll(scrollDelta, event);\n }, [length, onScroll, scrollLength, updateScrollBarPosition]);\n var handleClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n var _handleRef$current;\n if (handleRef.current && (_handleRef$current = handleRef.current) !== null && _handleRef$current !== void 0 && _handleRef$current.contains(event.target)) {\n return;\n }\n if (typeof (barOffset === null || barOffset === void 0 ? void 0 : barOffset.top) !== 'number' || typeof (barOffset === null || barOffset === void 0 ? void 0 : barOffset.left) !== 'number') {\n return;\n }\n var offset = vertical ? event.pageY - (barOffset === null || barOffset === void 0 ? void 0 : barOffset.top) : event.pageX - barOffset.left;\n var handleWidth = length / scrollLength * length;\n var delta = offset - handleWidth;\n var nextDelta = offset > scrollOffset.current ? delta - scrollOffset.current : offset - scrollOffset.current;\n handleScroll(nextDelta, event);\n }, [barOffset, handleScroll, length, scrollLength, vertical]);\n var releaseMouseMoves = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n var _mouseMoveTracker$cur, _mouseMoveTracker$cur2;\n (_mouseMoveTracker$cur = mouseMoveTracker.current) === null || _mouseMoveTracker$cur === void 0 || (_mouseMoveTracker$cur2 = _mouseMoveTracker$cur.releaseMouseMoves) === null || _mouseMoveTracker$cur2 === void 0 || _mouseMoveTracker$cur2.call(_mouseMoveTracker$cur);\n mouseMoveTracker.current = null;\n }, []);\n var handleDragMove = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (deltaX, deltaY, event) {\n var _window;\n if (!mouseMoveTracker.current || !mouseMoveTracker.current.isDragging()) {\n return;\n }\n if ((event === null || event === void 0 ? void 0 : event.buttons) === 0 || ((_window = window) === null || _window === void 0 || (_window = _window.event) === null || _window === void 0 ? void 0 : _window['buttons']) === 0) {\n releaseMouseMoves();\n return;\n }\n handleScroll(vertical ? deltaY : deltaX, event);\n }, [handleScroll, releaseMouseMoves, vertical]);\n var handleDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n releaseMouseMoves();\n setHandlePressed(false);\n }, [releaseMouseMoves]);\n var getMouseMoveTracker = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n return mouseMoveTracker.current || new dom_lib_DOMMouseMoveTracker__WEBPACK_IMPORTED_MODULE_3__[\"default\"](handleDragMove, handleDragEnd, document.body);\n }, [handleDragEnd, handleDragMove]);\n var handleMouseDown = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (event) {\n var _mouseMoveTracker$cur3;\n mouseMoveTracker.current = getMouseMoveTracker();\n mouseMoveTracker === null || mouseMoveTracker === void 0 || (_mouseMoveTracker$cur3 = mouseMoveTracker.current) === null || _mouseMoveTracker$cur3 === void 0 || _mouseMoveTracker$cur3.captureMouseMoves(event);\n setHandlePressed(true);\n onMouseDown === null || onMouseDown === void 0 || onMouseDown(event);\n }, [getMouseMoveTracker, onMouseDown]);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: \"scrollbar\",\n \"aria-controls\": tableId,\n \"aria-valuemax\": 100,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": valuenow,\n \"aria-orientation\": vertical ? 'vertical' : 'horizontal'\n }, rest, {\n ref: barRef,\n className: classes,\n onClick: handleClick\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n ref: handleRef,\n className: prefix('handle'),\n style: styles,\n onMouseDown: handleMouseDown,\n role: \"button\",\n tabIndex: -1\n }));\n});\nScrollbar.displayName = 'Table.Scrollbar';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Scrollbar);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Scrollbar.js?");
|
|
11846
11758
|
|
|
11847
11759
|
/***/ }),
|
|
11848
11760
|
|
|
@@ -11853,18 +11765,18 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11853
11765
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11854
11766
|
|
|
11855
11767
|
"use strict";
|
|
11856
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-is */ \"./node_modules/react-is/index.js\");\n/* harmony import */ var dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/translateDOMPositionXY */ \"./node_modules/dom-lib/esm/translateDOMPositionXY.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Row */ \"./node_modules/rsuite-table/es/Row.js\");\n/* harmony import */ var _CellGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CellGroup */ \"./node_modules/rsuite-table/es/CellGroup.js\");\n/* harmony import */ var _Scrollbar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Scrollbar */ \"./node_modules/rsuite-table/es/Scrollbar.js\");\n/* harmony import */ var _MouseArea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MouseArea */ \"./node_modules/rsuite-table/es/MouseArea.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Loader */ \"./node_modules/rsuite-table/es/Loader.js\");\n/* harmony import */ var _EmptyMessage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./EmptyMessage */ \"./node_modules/rsuite-table/es/EmptyMessage.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _utils_children__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./utils/children */ \"./node_modules/rsuite-table/es/utils/children.js\");\n'use client';\n\n\nvar _excluded = [\"affixHeader\", \"children\", \"classPrefix\", \"className\", \"data\", \"defaultSortType\", \"width\", \"expandedRowKeys\", \"defaultExpandAllRows\", \"defaultExpandedRowKeys\", \"style\", \"id\", \"isTree\", \"hover\", \"bordered\", \"cellBordered\", \"wordWrap\", \"loading\", \"locale\", \"showHeader\", \"sortColumn\", \"rowHeight\", \"sortType\", \"headerHeight\", \"minHeight\", \"maxHeight\", \"height\", \"autoHeight\", \"fillHeight\", \"rtl\", \"translate3d\", \"rowKey\", \"virtualized\", \"rowClassName\", \"rowExpandedHeight\", \"disabledScroll\", \"affixHorizontalScrollbar\", \"loadAnimation\", \"shouldUpdateScroll\", \"renderRow\", \"renderRowExpanded\", \"renderLoading\", \"renderEmpty\", \"onSortColumn\", \"onScroll\", \"renderTreeToggle\", \"onRowClick\", \"onRowContextMenu\", \"onExpandChange\", \"onTouchStart\", \"onTouchMove\", \"onTouchEnd\"],\n _excluded2 = [\"depth\", \"rowIndex\"],\n _excluded3 = [\"cellHeight\"];\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar DATA_PLACEHOLDER = [];\nvar getChildrenProps = {\n Cell: _Cell__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n HeaderCell: _HeaderCell__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n Column: _Column__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n ColumnGroup: _ColumnGroup__WEBPACK_IMPORTED_MODULE_17__[\"default\"]\n};\nvar Table = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var affixHeader = props.affixHeader,\n getChildren = props.children,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'rs-table' : _props$classPrefix,\n className = props.className,\n _props$data = props.data,\n dataProp = _props$data === void 0 ? DATA_PLACEHOLDER : _props$data,\n _props$defaultSortTyp = props.defaultSortType,\n defaultSortType = _props$defaultSortTyp === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_18__.SORT_TYPE.DESC : _props$defaultSortTyp,\n widthProp = props.width,\n expandedRowKeysProp = props.expandedRowKeys,\n defaultExpandAllRows = props.defaultExpandAllRows,\n defaultExpandedRowKeys = props.defaultExpandedRowKeys,\n style = props.style,\n id = props.id,\n isTree = props.isTree,\n _props$hover = props.hover,\n hover = _props$hover === void 0 ? true : _props$hover,\n bordered = props.bordered,\n cellBordered = props.cellBordered,\n wordWrap = props.wordWrap,\n loading = props.loading,\n _props$locale = props.locale,\n locale = _props$locale === void 0 ? {\n emptyMessage: 'No data found',\n loading: 'Loading...'\n } : _props$locale,\n _props$showHeader = props.showHeader,\n showHeader = _props$showHeader === void 0 ? true : _props$showHeader,\n sortColumn = props.sortColumn,\n _props$rowHeight = props.rowHeight,\n rowHeight = _props$rowHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_18__.ROW_HEIGHT : _props$rowHeight,\n sortTypeProp = props.sortType,\n _props$headerHeight = props.headerHeight,\n headerHeightProp = _props$headerHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_18__.ROW_HEADER_HEIGHT : _props$headerHeight,\n _props$minHeight = props.minHeight,\n minHeight = _props$minHeight === void 0 ? 0 : _props$minHeight,\n maxHeight = props.maxHeight,\n _props$height = props.height,\n height = _props$height === void 0 ? 200 : _props$height,\n autoHeight = props.autoHeight,\n fillHeight = props.fillHeight,\n rtlProp = props.rtl,\n translate3d = props.translate3d,\n rowKey = props.rowKey,\n virtualized = props.virtualized,\n rowClassName = props.rowClassName,\n _props$rowExpandedHei = props.rowExpandedHeight,\n rowExpandedHeight = _props$rowExpandedHei === void 0 ? 100 : _props$rowExpandedHei,\n disabledScroll = props.disabledScroll,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n loadAnimation = props.loadAnimation,\n _props$shouldUpdateSc = props.shouldUpdateScroll,\n shouldUpdateScroll = _props$shouldUpdateSc === void 0 ? true : _props$shouldUpdateSc,\n renderRowProp = props.renderRow,\n renderRowExpandedProp = props.renderRowExpanded,\n renderLoading = props.renderLoading,\n renderEmpty = props.renderEmpty,\n onSortColumn = props.onSortColumn,\n onScroll = props.onScroll,\n renderTreeToggle = props.renderTreeToggle,\n onRowClick = props.onRowClick,\n onRowContextMenu = props.onRowContextMenu,\n onExpandChange = props.onExpandChange,\n onTouchStart = props.onTouchStart,\n onTouchMove = props.onTouchMove,\n onTouchEnd = props.onTouchEnd,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var children = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n return (0,_utils_children__WEBPACK_IMPORTED_MODULE_20__.flattenChildren)(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(getChildren) ? getChildren(getChildrenProps) : getChildren);\n }, [getChildren]);\n var isAutoHeight = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n return autoHeight && !maxHeight;\n }, [autoHeight, maxHeight]);\n var _useClassNames = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useClassNames)(classPrefix, typeof classPrefix !== 'undefined'),\n withClassPrefix = _useClassNames.withClassPrefix,\n mergeCls = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n\n // Use `forceUpdate` to force the component to re-render after manipulating the DOM.\n var _useReducer = (0,react__WEBPACK_IMPORTED_MODULE_2__.useReducer)(function (x) {\n return x + 1;\n }, 0),\n forceUpdate = _useReducer[1];\n var _useControlled = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useControlled)(expandedRowKeysProp, defaultExpandAllRows ? (0,_utils__WEBPACK_IMPORTED_MODULE_19__.findRowKeys)(dataProp, rowKey, lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(renderRowExpandedProp)) : defaultExpandedRowKeys || []),\n expandedRowKeys = _useControlled[0],\n setExpandedRowKeys = _useControlled[1];\n var data = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useTableData)({\n data: dataProp,\n isTree: isTree,\n expandedRowKeys: expandedRowKeys,\n rowKey: rowKey\n });\n if (isTree) {\n if (!rowKey) {\n throw new Error('The `rowKey` is required when set isTree');\n } else if (data.length > 0) {\n if (!data[0].hasOwnProperty(rowKey)) {\n throw new Error('The `rowKey` is not found in data');\n }\n }\n }\n var _useTableRows = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useTableRows)({\n data: dataProp,\n expandedRowKeys: expandedRowKeys,\n wordWrap: wordWrap,\n prefix: prefix\n }),\n tableRowsMaxHeight = _useTableRows.tableRowsMaxHeight,\n bindTableRowsRef = _useTableRows.bindTableRowsRef;\n var headerHeight = showHeader ? headerHeightProp : 0;\n var rtl = rtlProp || (0,_utils__WEBPACK_IMPORTED_MODULE_19__.isRTL)();\n var getRowHeight = function getRowHeight() {\n return typeof rowHeight === 'function' ? rowHeight() : rowHeight;\n };\n var translateDOMPositionXY = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((0,dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_4__.getTranslateDOMPositionXY)({\n forceUseTransform: true,\n enable3DTransform: translate3d\n }));\n\n // Check for the existence of fixed columns in all column properties.\n var shouldFixedColumn = children.some(function (child) {\n var _child$props;\n return react_is__WEBPACK_IMPORTED_MODULE_3__.isElement(child) && (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.fixed);\n });\n\n // Check all column properties for the existence of rowSpan.\n var shouldRowSpanColumn = children.some(function (child) {\n var _child$props2;\n return react_is__WEBPACK_IMPORTED_MODULE_3__.isElement(child) && (child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.rowSpan);\n });\n var visibleRows = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)([]);\n var mouseAreaRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var affixHeaderWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var headerWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableBodyRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var wheelWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarXRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarYRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var handleTableResizeChange = function handleTableResizeChange(_prevSize, event) {\n forceUpdate();\n\n /**\n * Reset the position of the scroll bar after the table size changes.\n */\n if (typeof shouldUpdateScroll === 'function') {\n onScrollTo(shouldUpdateScroll(event));\n } else if (shouldUpdateScroll) {\n var vertical = event === 'bodyHeightChanged';\n vertical ? onScrollTop(0) : onScrollLeft(0);\n }\n if (event === 'bodyWidthChanged') {\n deferUpdatePosition();\n }\n };\n var _useTableDimension = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useTableDimension)({\n // The data should be flattened,\n // otherwise the array length required to calculate the scroll height in the TreeTable is not real.\n data: data,\n width: widthProp,\n rowHeight: rowHeight,\n tableRef: tableRef,\n headerWrapperRef: headerWrapperRef,\n prefix: prefix,\n affixHeader: affixHeader,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n headerHeight: headerHeight,\n height: height,\n minHeight: minHeight,\n maxHeight: maxHeight,\n autoHeight: autoHeight,\n fillHeight: fillHeight,\n children: children,\n expandedRowKeys: expandedRowKeys,\n showHeader: showHeader,\n bordered: bordered,\n onTableScroll: lodash_debounce__WEBPACK_IMPORTED_MODULE_6___default()(function (coords) {\n return onScrollTo(coords);\n }, 100),\n onTableResizeChange: handleTableResizeChange\n }),\n contentHeight = _useTableDimension.contentHeight,\n contentWidth = _useTableDimension.contentWidth,\n minScrollY = _useTableDimension.minScrollY,\n minScrollX = _useTableDimension.minScrollX,\n scrollY = _useTableDimension.scrollY,\n scrollX = _useTableDimension.scrollX,\n tableWidth = _useTableDimension.tableWidth,\n tableOffset = _useTableDimension.tableOffset,\n headerOffset = _useTableDimension.headerOffset,\n setScrollY = _useTableDimension.setScrollY,\n setScrollX = _useTableDimension.setScrollX,\n getTableHeight = _useTableDimension.getTableHeight;\n (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useAffix)({\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n affixHeader: affixHeader,\n tableOffset: tableOffset,\n headerOffset: headerOffset,\n headerHeight: headerHeight,\n scrollbarXRef: scrollbarXRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef\n });\n var _usePosition = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.usePosition)({\n data: dataProp,\n height: height,\n tableWidth: tableWidth,\n tableRef: tableRef,\n prefix: prefix,\n translateDOMPositionXY: translateDOMPositionXY,\n wheelWrapperRef: wheelWrapperRef,\n headerWrapperRef: headerWrapperRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef,\n tableHeaderRef: tableHeaderRef,\n scrollX: scrollX,\n scrollY: scrollY,\n contentWidth: contentWidth,\n shouldFixedColumn: shouldFixedColumn\n }),\n forceUpdatePosition = _usePosition.forceUpdatePosition,\n deferUpdatePosition = _usePosition.deferUpdatePosition;\n var _useScrollListener = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useScrollListener)({\n rtl: rtl,\n data: dataProp,\n height: height,\n virtualized: virtualized,\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n headerHeight: headerHeight,\n autoHeight: isAutoHeight,\n maxHeight: maxHeight,\n tableBodyRef: tableBodyRef,\n scrollbarXRef: scrollbarXRef,\n scrollbarYRef: scrollbarYRef,\n disabledScroll: disabledScroll,\n loading: loading,\n tableRef: tableRef,\n contentWidth: contentWidth,\n tableWidth: tableWidth,\n scrollY: scrollY,\n minScrollY: minScrollY,\n minScrollX: minScrollX,\n scrollX: scrollX,\n setScrollX: setScrollX,\n setScrollY: setScrollY,\n forceUpdatePosition: forceUpdatePosition,\n deferUpdatePosition: deferUpdatePosition,\n onScroll: onScroll,\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd\n }),\n isScrolling = _useScrollListener.isScrolling,\n onScrollHorizontal = _useScrollListener.onScrollHorizontal,\n onScrollVertical = _useScrollListener.onScrollVertical,\n onScrollBody = _useScrollListener.onScrollBody,\n onScrollTop = _useScrollListener.onScrollTop,\n onScrollLeft = _useScrollListener.onScrollLeft,\n onScrollTo = _useScrollListener.onScrollTo,\n onScrollByKeydown = _useScrollListener.onScrollByKeydown;\n var _useCellDescriptor = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useCellDescriptor)({\n children: children,\n rtl: rtl,\n mouseAreaRef: mouseAreaRef,\n tableRef: tableRef,\n minScrollX: minScrollX,\n scrollX: scrollX,\n tableWidth: tableWidth,\n headerHeight: headerHeight,\n showHeader: showHeader,\n sortType: sortTypeProp,\n defaultSortType: defaultSortType,\n sortColumn: sortColumn,\n prefix: prefix,\n onSortColumn: onSortColumn,\n // Force table update after column width change, so scrollbar re-renders.\n onHeaderCellResize: forceUpdate,\n rowHeight: rowHeight\n }),\n headerCells = _useCellDescriptor.headerCells,\n bodyCells = _useCellDescriptor.bodyCells,\n allColumnsWidth = _useCellDescriptor.allColumnsWidth,\n hasCustomTreeCol = _useCellDescriptor.hasCustomTreeCol;\n var colCounts = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0);\n (0,_utils__WEBPACK_IMPORTED_MODULE_19__.useUpdateEffect)(function () {\n if ((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) !== colCounts.current) {\n onScrollLeft(0);\n colCounts.current = (headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0;\n }\n }, [children]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n return {\n get root() {\n return tableRef.current;\n },\n get body() {\n return wheelWrapperRef.current;\n },\n // The scroll position of the table\n get scrollPosition() {\n return {\n top: Math.abs(scrollY.current),\n left: Math.abs(scrollX.current)\n };\n },\n scrollTop: onScrollTop,\n scrollLeft: onScrollLeft\n };\n });\n var rowWidth = allColumnsWidth > tableWidth.current ? allColumnsWidth : tableWidth.current;\n\n // Whether to show vertical scroll bar\n var hasVerticalScrollbar = !isAutoHeight && contentHeight.current > getTableHeight() - headerHeight;\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var classes = mergeCls(className, withClassPrefix({\n bordered: bordered,\n loading: loading,\n treetable: isTree,\n hover: hover && !shouldRowSpanColumn,\n 'has-rowspan': shouldRowSpanColumn,\n 'word-wrap': wordWrap,\n 'cell-bordered': cellBordered\n }));\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n width: widthProp || 'auto',\n height: getTableHeight()\n }, style);\n var renderRowExpanded = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n var height = 0;\n if (typeof rowExpandedHeight === 'function') {\n height = rowExpandedHeight(rowData);\n } else {\n height = rowExpandedHeight;\n }\n var styles = {\n height: height\n };\n if (typeof renderRowExpandedProp === 'function') {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('row-expanded'),\n style: styles\n }, renderRowExpandedProp(rowData));\n }\n return null;\n }, [prefix, renderRowExpandedProp, rowExpandedHeight]);\n var renderRow = function renderRow(props, cells, shouldRenderExpandedRow, rowData) {\n var depth = props.depth,\n rowIndex = props.rowIndex,\n restRowProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded2);\n if (typeof rowClassName === 'function') {\n restRowProps.className = rowClassName(rowData, rowIndex);\n } else {\n restRowProps.className = rowClassName;\n }\n var rowStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, props === null || props === void 0 ? void 0 : props.style);\n var rowRight = 0;\n if (rtl && contentWidth.current > tableWidth.current) {\n rowRight = tableWidth.current - contentWidth.current;\n rowStyles.right = rowRight;\n }\n var rowNode = null;\n\n // IF there are fixed columns, add a fixed group\n if (shouldFixedColumn && contentWidth.current > tableWidth.current) {\n var fixedLeftCells = [];\n var fixedRightCells = [];\n var scrollCells = [];\n var fixedLeftCellGroupWidth = 0;\n var fixedRightCellGroupWidth = 0;\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n var _cell$props = cell.props,\n fixed = _cell$props.fixed,\n width = _cell$props.width;\n var isFixedStart = fixed === 'left' || fixed === true;\n var isFixedEnd = fixed === 'right';\n if (rtl) {\n isFixedStart = fixed === 'right';\n isFixedEnd = fixed === 'left' || fixed === true;\n }\n if (isFixedStart) {\n fixedLeftCells.push(cell);\n fixedLeftCellGroupWidth += width;\n } else if (isFixedEnd) {\n fixedRightCells.push(cell);\n fixedRightCellGroupWidth += width;\n } else {\n scrollCells.push(cell);\n }\n }\n if (hasVerticalScrollbar && fixedRightCellGroupWidth) {\n fixedRightCellGroupWidth += _constants__WEBPACK_IMPORTED_MODULE_18__.SCROLLBAR_WIDTH;\n }\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, fixedLeftCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n fixed: \"left\",\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedLeftCellGroupWidth,\n style: rtl ? {\n right: tableWidth.current - fixedLeftCellGroupWidth - rowRight\n } : undefined\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_19__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_19__.resetLeftForCells)(fixedLeftCells))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null, (0,_utils__WEBPACK_IMPORTED_MODULE_19__.mergeCells)(scrollCells)), fixedRightCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n fixed: \"right\",\n style: rtl ? {\n right: 0 - rowRight\n } : {\n left: tableWidth.current - fixedRightCellGroupWidth\n },\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedRightCellGroupWidth\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_19__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_19__.resetLeftForCells)(fixedRightCells, hasVerticalScrollbar ? _constants__WEBPACK_IMPORTED_MODULE_18__.SCROLLBAR_WIDTH : 0))) : null, shouldRenderExpandedRow && renderRowExpanded(rowData));\n } else {\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null, (0,_utils__WEBPACK_IMPORTED_MODULE_19__.mergeCells)(cells)), shouldRenderExpandedRow && renderRowExpanded(rowData));\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__[\"default\"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), renderRowProp ? renderRowProp(rowNode, rowData) : rowNode);\n };\n var renderTableHeader = function renderTableHeader(headerCells, rowWidth) {\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var rowProps = {\n 'aria-rowindex': 1,\n rowRef: tableHeaderRef,\n width: rowWidth,\n height: getRowHeight(),\n headerHeight: headerHeight,\n isHeaderRow: true,\n top: 0,\n rowIndex: -1\n };\n var fixedStyle = {\n position: 'fixed',\n overflow: 'hidden',\n height: headerHeight,\n width: tableWidth.current,\n top: top\n };\n\n // Affix header\n var header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('affix-header'),\n style: fixedStyle,\n ref: affixHeaderWrapperRef\n }, renderRow(rowProps, headerCells));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, (affixHeader === 0 || affixHeader) && header, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n role: \"rowgroup\",\n className: prefix('header-row-wrapper'),\n ref: headerWrapperRef\n }, renderRow(rowProps, headerCells)));\n };\n var shouldRenderExpandedRow = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(renderRowExpandedProp) && !isTree && rowKey && expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n })) {\n return true;\n }\n return false;\n }, [expandedRowKeys, isTree, renderRowExpandedProp, rowKey]);\n var bindRowClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(rowData, event);\n };\n }, [onRowClick]);\n var bindRowContextMenu = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowContextMenu === null || onRowContextMenu === void 0 ? void 0 : onRowContextMenu(rowData, event);\n };\n }, [onRowContextMenu]);\n var handleTreeToggle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (treeRowKey, _rowIndex, rowData) {\n var open = false;\n var nextExpandedRowKeys = [];\n for (var i = 0; i < expandedRowKeys.length; i++) {\n var key = expandedRowKeys[i];\n if (key === treeRowKey) {\n open = true;\n } else {\n nextExpandedRowKeys.push(key);\n }\n }\n if (!open) {\n nextExpandedRowKeys.push(treeRowKey);\n }\n setExpandedRowKeys(nextExpandedRowKeys);\n onExpandChange === null || onExpandChange === void 0 ? void 0 : onExpandChange(!open, rowData);\n }, [expandedRowKeys, onExpandChange, setExpandedRowKeys]);\n\n /**\n * Records the status of merged rows.\n * { cellKey: [count,index]}\n */\n var rowSpanState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({});\n var renderRowData = function renderRowData(bodyCells, rowData, props, shouldRenderExpandedRow) {\n var hasChildren = isTree && rowData.children && Array.isArray(rowData.children);\n var nextRowKey = rowKey && typeof rowData[rowKey] !== 'undefined' ? rowData[rowKey] : props.key;\n var cellHeight = props.cellHeight,\n restRowProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded3);\n var rowProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, restRowProps, {\n key: nextRowKey,\n 'aria-rowindex': props.key + 2,\n rowRef: bindTableRowsRef(props.key, rowData),\n onClick: bindRowClick(rowData),\n onContextMenu: bindRowContextMenu(rowData)\n });\n var expanded = expandedRowKeys.some(function (key) {\n return rowKey && key === rowData[rowKey];\n });\n var cells = [];\n for (var i = 0; i < bodyCells.length; i++) {\n var _cell$props2, _cell$props2$rowSpan, _cell$props3, _rowSpanState$current, _cell$props4, _rowSpanState$current2;\n var cell = bodyCells[i];\n var rowSpan = (_cell$props2 = cell.props) === null || _cell$props2 === void 0 ? void 0 : (_cell$props2$rowSpan = (_cell$props3 = _cell$props2).rowSpan) === null || _cell$props2$rowSpan === void 0 ? void 0 : _cell$props2$rowSpan.call(_cell$props3, rowData);\n var dataCellHeight = rowSpan ? rowSpan * (cellHeight || _constants__WEBPACK_IMPORTED_MODULE_18__.ROW_HEIGHT) : cellHeight;\n var _cellKey = cell.props.dataKey || i;\n\n // Record the cell state of the merged row\n if (((_rowSpanState$current = rowSpanState.current[_cellKey]) === null || _rowSpanState$current === void 0 ? void 0 : _rowSpanState$current[1]) > 0) {\n rowSpanState.current[_cellKey][1] -= 1;\n\n // Restart counting when merged to the last cell.\n if (rowSpanState.current[_cellKey][1] === 0) {\n rowSpanState.current[_cellKey][0] = 0;\n }\n }\n if (rowSpan) {\n // The state of the initial merged cell\n rowSpanState.current[_cellKey] = [rowSpan, rowSpan];\n rowProps.rowSpan = rowSpan;\n rowProps.style = {\n overflow: 'inherit'\n };\n }\n\n // Cells marked as deleted when checking for merged cell.\n var removedCell = (_cell$props4 = cell.props) !== null && _cell$props4 !== void 0 && _cell$props4.rowSpan && !rowSpan && ((_rowSpanState$current2 = rowSpanState.current[_cellKey]) === null || _rowSpanState$current2 === void 0 ? void 0 : _rowSpanState$current2[0]) !== 0 ? true : false;\n cells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cell, {\n 'aria-rowspan': rowSpan ? rowSpan : undefined,\n hasChildren: hasChildren,\n rowData: rowData,\n rowIndex: props.rowIndex,\n wordWrap: wordWrap,\n height: dataCellHeight,\n depth: props.depth,\n renderTreeToggle: renderTreeToggle,\n onTreeToggle: handleTreeToggle,\n rowKey: nextRowKey,\n expanded: expanded,\n rowSpan: rowSpan,\n removed: removedCell\n }));\n }\n return renderRow(rowProps, cells, shouldRenderExpandedRow, rowData);\n };\n var renderScrollbar = function renderScrollbar() {\n var height = getTableHeight();\n if (disabledScroll) {\n return null;\n }\n var scrollbars = [];\n if (hasHorizontalScrollbar) {\n scrollbars.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n key: \"scrollbar\",\n tableId: id,\n style: {\n width: tableWidth.current\n },\n length: tableWidth.current,\n onScroll: onScrollHorizontal,\n scrollLength: contentWidth.current,\n ref: scrollbarXRef\n }));\n }\n if (hasVerticalScrollbar) {\n scrollbars.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n vertical: true,\n key: \"vertical-scrollbar\",\n tableId: id,\n length: height - headerHeight,\n onScroll: onScrollVertical,\n scrollLength: contentHeight.current,\n ref: scrollbarYRef\n }));\n }\n return scrollbars;\n };\n var renderTableBody = function renderTableBody(bodyCells, rowWidth) {\n var _visibleRows$current;\n var height = getTableHeight();\n var bodyHeight = height - headerHeight;\n var bodyStyles = {\n top: headerHeight,\n height: bodyHeight\n };\n var contentHeight = 0;\n var topHideHeight = 0;\n var bottomHideHeight = 0;\n visibleRows.current = [];\n if (data) {\n var top = 0; // Row position\n var minTop = Math.abs(scrollY.current);\n var startHeight = 0;\n if (typeof rowExpandedHeight === 'function') {\n startHeight = data.length ? rowExpandedHeight(data[0]) : 100;\n } else {\n startHeight = rowExpandedHeight;\n }\n var maxTop = minTop + height + startHeight;\n var isCustomRowHeight = typeof rowHeight === 'function';\n var isUncertainHeight = !!renderRowExpandedProp || isCustomRowHeight || wordWrap;\n\n // If virtualized is enabled and the row height in the Table is variable,\n // you need to loop through the data to get the height of each row.\n if (isUncertainHeight && virtualized || !virtualized) {\n // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_19__.isSupportTouchEvent)()) {\n var coveredHeight = height * 3;\n minTop = Math.max(minTop - coveredHeight, 0);\n maxTop = maxTop + coveredHeight;\n }\n for (var index = 0; index < data.length; index++) {\n var rowData = data[index];\n var _maxHeight = tableRowsMaxHeight[index];\n var expandedRow = shouldRenderExpandedRow(rowData);\n var nextRowHeight = 0;\n var cellHeight = 0;\n if (typeof rowHeight === 'function') {\n nextRowHeight = rowHeight(rowData);\n cellHeight = nextRowHeight;\n } else {\n nextRowHeight = _maxHeight ? Math.max(_maxHeight + _constants__WEBPACK_IMPORTED_MODULE_18__.CELL_PADDING_HEIGHT, rowHeight) : rowHeight;\n cellHeight = nextRowHeight;\n if (expandedRow) {\n // If the row is expanded, the height of the expanded row is added.\n if (typeof rowExpandedHeight === 'function') {\n nextRowHeight += rowExpandedHeight(rowData);\n } else {\n nextRowHeight += rowExpandedHeight;\n }\n }\n }\n contentHeight += nextRowHeight;\n var rowProps = {\n key: index,\n top: top,\n rowIndex: index,\n width: rowWidth,\n depth: rowData[_constants__WEBPACK_IMPORTED_MODULE_18__.TREE_DEPTH],\n height: nextRowHeight,\n cellHeight: cellHeight\n };\n top += nextRowHeight;\n if (virtualized && !wordWrap) {\n if (top + nextRowHeight < minTop) {\n topHideHeight += nextRowHeight;\n continue;\n } else if (top > maxTop) {\n bottomHideHeight += nextRowHeight;\n continue;\n }\n }\n visibleRows.current.push(renderRowData(bodyCells, rowData, rowProps, expandedRow));\n }\n } else {\n /** virtualized */\n\n // If the row height of the Table is fixed, it is directly calculated by the row height and the number of rows,\n // thereby reducing the performance cost of traversing all data.\n var _nextRowHeight = getRowHeight();\n var startIndex = Math.max(Math.floor(minTop / _nextRowHeight), 0);\n var endIndex = Math.min(startIndex + Math.ceil(bodyHeight / _nextRowHeight) + 5, data.length);\n\n // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_19__.isSupportTouchEvent)()) {\n var coveredCount = Math.floor(height / _nextRowHeight * 3);\n startIndex = Math.max(startIndex - coveredCount, 0);\n endIndex = Math.min(endIndex + coveredCount, data.length);\n }\n contentHeight = data.length * _nextRowHeight;\n topHideHeight = startIndex * _nextRowHeight;\n bottomHideHeight = (data.length - endIndex) * _nextRowHeight;\n for (var _index = startIndex; _index < endIndex; _index++) {\n var _rowData = data[_index];\n var _rowProps = {\n key: _index,\n rowIndex: _index,\n depth: _rowData[_constants__WEBPACK_IMPORTED_MODULE_18__.TREE_DEPTH],\n top: _index * _nextRowHeight,\n width: rowWidth,\n height: _nextRowHeight,\n cellHeight: _nextRowHeight\n };\n visibleRows.current.push(renderRowData(bodyCells, _rowData, _rowProps, false));\n }\n }\n }\n var wheelStyles = {\n position: 'absolute',\n height: contentHeight,\n minHeight: height,\n pointerEvents: isScrolling ? 'none' : undefined\n };\n var topRowStyles = {\n height: topHideHeight\n };\n var bottomRowStyles = {\n height: bottomHideHeight\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n ref: tableBodyRef,\n role: \"rowgroup\",\n className: prefix('body-row-wrapper'),\n style: bodyStyles,\n onScroll: onScrollBody\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n style: wheelStyles,\n className: prefix('body-wheel-area'),\n ref: wheelWrapperRef\n }, topHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n style: topRowStyles,\n className: \"virtualized\"\n }) : null, visibleRows.current, bottomHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n style: bottomRowStyles,\n className: \"virtualized\"\n }) : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_EmptyMessage__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n locale: locale,\n renderEmpty: renderEmpty,\n addPrefix: prefix,\n loading: !!((_visibleRows$current = visibleRows.current) !== null && _visibleRows$current !== void 0 && _visibleRows$current.length) || loading\n }), renderScrollbar(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Loader__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n locale: locale,\n loadAnimation: loadAnimation,\n loading: loading,\n addPrefix: prefix,\n renderLoading: renderLoading\n }));\n };\n var contextValue = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(function () {\n return {\n classPrefix: classPrefix,\n translateDOMPositionXY: translateDOMPositionXY.current,\n rtl: rtl,\n isTree: isTree,\n hasCustomTreeCol: hasCustomTreeCol\n };\n }, [classPrefix, hasCustomTreeCol, isTree, rtl]);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_TableContext__WEBPACK_IMPORTED_MODULE_13__[\"default\"].Provider, {\n value: contextValue\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: isTree ? 'treegrid' : 'grid'\n // The aria-rowcount is specified on the element with the table.\n // Its value is an integer equal to the total number of rows available, including header rows.\n ,\n \"aria-rowcount\": data.length + 1,\n \"aria-colcount\": colCounts.current,\n \"aria-busy\": loading\n }, rest, {\n className: classes,\n style: styles,\n ref: tableRef,\n tabIndex: -1,\n onKeyDown: onScrollByKeydown\n }), showHeader && renderTableHeader(headerCells, rowWidth), children && renderTableBody(bodyCells, rowWidth), showHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_MouseArea__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n ref: mouseAreaRef,\n addPrefix: prefix,\n headerHeight: headerHeight,\n height: getTableHeight()\n })));\n});\nTable.displayName = 'Table';\nTable.propTypes = {\n autoHeight: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n fillHeight: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n affixHeader: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number)]),\n affixHorizontalScrollbar: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number)]),\n bordered: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),\n classPrefix: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),\n children: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().any),\n cellBordered: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n data: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array),\n defaultExpandAllRows: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n defaultExpandedRowKeys: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array),\n defaultSortType: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().any),\n disabledScroll: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n expandedRowKeys: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array),\n hover: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n height: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number),\n headerHeight: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number),\n locale: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().object),\n loading: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n loadAnimation: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n minHeight: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number),\n maxHeight: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number),\n rowKey: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number)]),\n rowHeight: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func)]),\n renderTreeToggle: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n renderRowExpanded: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n renderRow: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n rowExpandedHeight: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number)]),\n renderEmpty: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n renderLoading: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n rowClassName: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string)]),\n rtl: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n style: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().object),\n sortColumn: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),\n sortType: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().any),\n showHeader: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n shouldUpdateScroll: prop_types__WEBPACK_IMPORTED_MODULE_21___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_21___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool)]),\n translate3d: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n wordWrap: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().any),\n width: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().number),\n virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n isTree: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),\n onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onRowContextMenu: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onScroll: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onSortColumn: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onExpandChange: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onTouchStart: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onTouchMove: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),\n onTouchEnd: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func)\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Table.js?");
|
|
11768
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ \"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Row */ \"./node_modules/rsuite-table/es/Row.js\");\n/* harmony import */ var _CellGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CellGroup */ \"./node_modules/rsuite-table/es/CellGroup.js\");\n/* harmony import */ var _Scrollbar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Scrollbar */ \"./node_modules/rsuite-table/es/Scrollbar.js\");\n/* harmony import */ var _MouseArea__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./MouseArea */ \"./node_modules/rsuite-table/es/MouseArea.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Loader */ \"./node_modules/rsuite-table/es/Loader.js\");\n/* harmony import */ var _EmptyMessage__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./EmptyMessage */ \"./node_modules/rsuite-table/es/EmptyMessage.js\");\n/* harmony import */ var _TableProvider__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TableProvider */ \"./node_modules/rsuite-table/es/TableProvider.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _utils_react_is__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils/react-is */ \"./node_modules/rsuite-table/es/utils/react-is.js\");\n/* harmony import */ var _utils_children__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./utils/children */ \"./node_modules/rsuite-table/es/utils/children.js\");\n/* harmony import */ var dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! dom-lib/translateDOMPositionXY */ \"./node_modules/dom-lib/esm/translateDOMPositionXY.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./hooks */ \"./node_modules/rsuite-table/es/hooks/index.js\");\n'use client';\n\n\nvar _excluded = [\"affixHeader\", \"children\", \"classPrefix\", \"className\", \"data\", \"defaultSortType\", \"width\", \"expandedRowKeys\", \"defaultExpandAllRows\", \"defaultExpandedRowKeys\", \"style\", \"id\", \"isTree\", \"hover\", \"bordered\", \"cellBordered\", \"wordWrap\", \"loading\", \"locale\", \"showHeader\", \"sortColumn\", \"rowHeight\", \"sortType\", \"headerHeight\", \"minHeight\", \"maxHeight\", \"height\", \"autoHeight\", \"fillHeight\", \"rtl\", \"translate3d\", \"rowKey\", \"virtualized\", \"rowClassName\", \"rowExpandedHeight\", \"disabledScroll\", \"affixHorizontalScrollbar\", \"loadAnimation\", \"shouldUpdateScroll\", \"renderRow\", \"renderRowExpanded\", \"renderLoading\", \"renderEmpty\", \"onSortColumn\", \"onScroll\", \"renderTreeToggle\", \"onRowClick\", \"onRowContextMenu\", \"onExpandChange\", \"onTouchStart\", \"onTouchMove\", \"onTouchEnd\"],\n _excluded2 = [\"depth\", \"rowIndex\"],\n _excluded3 = [\"cellHeight\"];\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar DATA_PLACEHOLDER = [];\nvar getChildrenProps = {\n Cell: _Cell__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n HeaderCell: _HeaderCell__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n Column: _Column__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n ColumnGroup: _ColumnGroup__WEBPACK_IMPORTED_MODULE_15__[\"default\"]\n};\n\n/**\n * Default locale configuration for the Table component\n * Provides default text for empty states and loading indicators\n */\nvar defaultLocale = Object.freeze({\n emptyMessage: 'No data found',\n loading: 'Loading...'\n});\nvar Table = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {\n var affixHeader = props.affixHeader,\n getChildren = props.children,\n _props$classPrefix = props.classPrefix,\n classPrefix = _props$classPrefix === void 0 ? 'rs-table' : _props$classPrefix,\n className = props.className,\n _props$data = props.data,\n dataProp = _props$data === void 0 ? DATA_PLACEHOLDER : _props$data,\n _props$defaultSortTyp = props.defaultSortType,\n defaultSortType = _props$defaultSortTyp === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_19__.SORT_TYPE.DESC : _props$defaultSortTyp,\n widthProp = props.width,\n expandedRowKeysProp = props.expandedRowKeys,\n defaultExpandAllRows = props.defaultExpandAllRows,\n defaultExpandedRowKeys = props.defaultExpandedRowKeys,\n style = props.style,\n id = props.id,\n isTree = props.isTree,\n _props$hover = props.hover,\n hover = _props$hover === void 0 ? true : _props$hover,\n bordered = props.bordered,\n cellBordered = props.cellBordered,\n wordWrap = props.wordWrap,\n loading = props.loading,\n _props$locale = props.locale,\n locale = _props$locale === void 0 ? defaultLocale : _props$locale,\n _props$showHeader = props.showHeader,\n showHeader = _props$showHeader === void 0 ? true : _props$showHeader,\n sortColumn = props.sortColumn,\n _props$rowHeight = props.rowHeight,\n rowHeight = _props$rowHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_19__.ROW_HEIGHT : _props$rowHeight,\n sortTypeProp = props.sortType,\n _props$headerHeight = props.headerHeight,\n headerHeightProp = _props$headerHeight === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_19__.ROW_HEADER_HEIGHT : _props$headerHeight,\n _props$minHeight = props.minHeight,\n minHeight = _props$minHeight === void 0 ? 0 : _props$minHeight,\n maxHeight = props.maxHeight,\n _props$height = props.height,\n height = _props$height === void 0 ? 200 : _props$height,\n autoHeight = props.autoHeight,\n fillHeight = props.fillHeight,\n rtlProp = props.rtl,\n translate3d = props.translate3d,\n rowKey = props.rowKey,\n virtualized = props.virtualized,\n rowClassName = props.rowClassName,\n _props$rowExpandedHei = props.rowExpandedHeight,\n rowExpandedHeight = _props$rowExpandedHei === void 0 ? 100 : _props$rowExpandedHei,\n disabledScroll = props.disabledScroll,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n loadAnimation = props.loadAnimation,\n _props$shouldUpdateSc = props.shouldUpdateScroll,\n shouldUpdateScroll = _props$shouldUpdateSc === void 0 ? true : _props$shouldUpdateSc,\n renderRowProp = props.renderRow,\n renderRowExpandedProp = props.renderRowExpanded,\n renderLoading = props.renderLoading,\n renderEmpty = props.renderEmpty,\n onSortColumn = props.onSortColumn,\n onScroll = props.onScroll,\n renderTreeToggle = props.renderTreeToggle,\n onRowClick = props.onRowClick,\n onRowContextMenu = props.onRowContextMenu,\n onExpandChange = props.onExpandChange,\n onTouchStart = props.onTouchStart,\n onTouchMove = props.onTouchMove,\n onTouchEnd = props.onTouchEnd,\n rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded);\n var children = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n return (0,_utils_children__WEBPACK_IMPORTED_MODULE_17__.flattenChildren)(lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(getChildren) ? getChildren(getChildrenProps) : getChildren);\n }, [getChildren]);\n var isAutoHeight = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n return autoHeight && !maxHeight;\n }, [autoHeight, maxHeight]);\n var _useClassNames = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useClassNames)(classPrefix, typeof classPrefix !== 'undefined'),\n withClassPrefix = _useClassNames.withClassPrefix,\n mergeCls = _useClassNames.merge,\n prefix = _useClassNames.prefix;\n\n // Use `forceUpdate` to force the component to re-render after manipulating the DOM.\n var _useReducer = (0,react__WEBPACK_IMPORTED_MODULE_2__.useReducer)(function (x) {\n return x + 1;\n }, 0),\n forceUpdate = _useReducer[1];\n var _useControlled = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useControlled)(expandedRowKeysProp, defaultExpandAllRows ? (0,_utils__WEBPACK_IMPORTED_MODULE_20__.findRowKeys)(dataProp, rowKey, lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(renderRowExpandedProp)) : defaultExpandedRowKeys || []),\n expandedRowKeys = _useControlled[0],\n setExpandedRowKeys = _useControlled[1];\n var data = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useTableData)({\n data: dataProp,\n isTree: isTree,\n expandedRowKeys: expandedRowKeys,\n rowKey: rowKey\n });\n if (isTree) {\n if (!rowKey) {\n throw new Error('The `rowKey` is required when set isTree');\n } else if (data.length > 0) {\n if (!Object.prototype.hasOwnProperty.call(data[0], rowKey)) {\n throw new Error('The `rowKey` is not found in data');\n }\n }\n }\n var _useTableRows = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useTableRows)({\n data: dataProp,\n expandedRowKeys: expandedRowKeys,\n wordWrap: wordWrap,\n prefix: prefix\n }),\n tableRowsMaxHeight = _useTableRows.tableRowsMaxHeight,\n bindTableRowsRef = _useTableRows.bindTableRowsRef;\n var headerHeight = showHeader ? headerHeightProp : 0;\n var rtl = rtlProp || (0,_utils__WEBPACK_IMPORTED_MODULE_20__.isRTL)();\n var getRowHeight = function getRowHeight() {\n return typeof rowHeight === 'function' ? rowHeight() : rowHeight;\n };\n var setCssPosition = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((0,dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_18__.getTranslateDOMPositionXY)({\n forceUseTransform: true,\n enable3DTransform: translate3d\n }));\n\n // Check for the existence of fixed columns in all column properties.\n var shouldFixedColumn = children.some(function (child) {\n var _child$props;\n return (0,_utils_react_is__WEBPACK_IMPORTED_MODULE_16__.isElement)(child) && (child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.fixed);\n });\n\n // Check all column properties for the existence of rowSpan.\n var shouldRowSpanColumn = children.some(function (child) {\n var _child$props2;\n return (0,_utils_react_is__WEBPACK_IMPORTED_MODULE_16__.isElement)(child) && (child === null || child === void 0 || (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.rowSpan);\n });\n var visibleRows = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)([]);\n var mouseAreaRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var affixHeaderWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var headerWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var tableBodyRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var wheelWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarXRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var scrollbarYRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n var handleTableResizeChange = function handleTableResizeChange(_prevSize, event) {\n forceUpdate();\n\n /**\n * Reset the position of the scroll bar after the table size changes.\n */\n if (typeof shouldUpdateScroll === 'function') {\n onScrollTo(shouldUpdateScroll(event));\n } else if (shouldUpdateScroll) {\n var vertical = event === 'bodyHeightChanged';\n vertical ? onScrollTop(0) : onScrollLeft(0);\n }\n if (event === 'bodyWidthChanged') {\n deferUpdatePosition();\n }\n };\n var _useTableDimension = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useTableDimension)({\n // The data should be flattened,\n // otherwise the array length required to calculate the scroll height in the TreeTable is not real.\n data: data,\n width: widthProp,\n rowHeight: rowHeight,\n tableRef: tableRef,\n headerWrapperRef: headerWrapperRef,\n prefix: prefix,\n affixHeader: affixHeader,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n headerHeight: headerHeight,\n height: height,\n minHeight: minHeight,\n maxHeight: maxHeight,\n autoHeight: autoHeight,\n fillHeight: fillHeight,\n children: children,\n expandedRowKeys: expandedRowKeys,\n showHeader: showHeader,\n bordered: bordered,\n onTableScroll: lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(function (coords) {\n return onScrollTo(coords);\n }, 100),\n onTableResizeChange: handleTableResizeChange\n }),\n contentHeight = _useTableDimension.contentHeight,\n contentWidth = _useTableDimension.contentWidth,\n minScrollY = _useTableDimension.minScrollY,\n minScrollX = _useTableDimension.minScrollX,\n scrollY = _useTableDimension.scrollY,\n scrollX = _useTableDimension.scrollX,\n tableWidth = _useTableDimension.tableWidth,\n tableOffset = _useTableDimension.tableOffset,\n headerOffset = _useTableDimension.headerOffset,\n setScrollY = _useTableDimension.setScrollY,\n setScrollX = _useTableDimension.setScrollX,\n getTableHeight = _useTableDimension.getTableHeight;\n (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useAffix)({\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n affixHorizontalScrollbar: affixHorizontalScrollbar,\n affixHeader: affixHeader,\n tableOffset: tableOffset,\n headerOffset: headerOffset,\n headerHeight: headerHeight,\n scrollbarXRef: scrollbarXRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef\n });\n var _usePosition = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.usePosition)({\n data: dataProp,\n height: height,\n tableWidth: tableWidth,\n tableRef: tableRef,\n prefix: prefix,\n setCssPosition: setCssPosition,\n wheelWrapperRef: wheelWrapperRef,\n headerWrapperRef: headerWrapperRef,\n affixHeaderWrapperRef: affixHeaderWrapperRef,\n tableHeaderRef: tableHeaderRef,\n scrollX: scrollX,\n scrollY: scrollY,\n contentWidth: contentWidth,\n shouldFixedColumn: shouldFixedColumn\n }),\n forceUpdatePosition = _usePosition.forceUpdatePosition,\n deferUpdatePosition = _usePosition.deferUpdatePosition;\n var _useScrollListener = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useScrollListener)({\n rtl: rtl,\n data: dataProp,\n height: height,\n virtualized: virtualized,\n getTableHeight: getTableHeight,\n contentHeight: contentHeight,\n headerHeight: headerHeight,\n autoHeight: isAutoHeight,\n maxHeight: maxHeight,\n tableBodyRef: tableBodyRef,\n scrollbarXRef: scrollbarXRef,\n scrollbarYRef: scrollbarYRef,\n disabledScroll: disabledScroll,\n loading: loading,\n tableRef: tableRef,\n contentWidth: contentWidth,\n tableWidth: tableWidth,\n scrollY: scrollY,\n minScrollY: minScrollY,\n minScrollX: minScrollX,\n scrollX: scrollX,\n setScrollX: setScrollX,\n setScrollY: setScrollY,\n forceUpdatePosition: forceUpdatePosition,\n deferUpdatePosition: deferUpdatePosition,\n onScroll: onScroll,\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd\n }),\n isScrolling = _useScrollListener.isScrolling,\n onScrollHorizontal = _useScrollListener.onScrollHorizontal,\n onScrollVertical = _useScrollListener.onScrollVertical,\n onScrollBody = _useScrollListener.onScrollBody,\n onScrollTop = _useScrollListener.onScrollTop,\n onScrollLeft = _useScrollListener.onScrollLeft,\n onScrollTo = _useScrollListener.onScrollTo,\n onScrollByKeydown = _useScrollListener.onScrollByKeydown;\n var _useCellDescriptor = (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useCellDescriptor)({\n children: children,\n rtl: rtl,\n mouseAreaRef: mouseAreaRef,\n tableRef: tableRef,\n minScrollX: minScrollX,\n scrollX: scrollX,\n tableWidth: tableWidth,\n headerHeight: headerHeight,\n showHeader: showHeader,\n sortType: sortTypeProp,\n defaultSortType: defaultSortType,\n sortColumn: sortColumn,\n prefix: prefix,\n onSortColumn: onSortColumn,\n // Force table update after column width change, so scrollbar re-renders.\n onHeaderCellResize: forceUpdate,\n rowHeight: rowHeight\n }),\n headerCells = _useCellDescriptor.headerCells,\n bodyCells = _useCellDescriptor.bodyCells,\n allColumnsWidth = _useCellDescriptor.allColumnsWidth,\n hasCustomTreeCol = _useCellDescriptor.hasCustomTreeCol;\n var colCounts = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0);\n (0,_hooks__WEBPACK_IMPORTED_MODULE_21__.useUpdateEffect)(function () {\n if ((headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) !== colCounts.current) {\n onScrollLeft(0);\n colCounts.current = (headerCells === null || headerCells === void 0 ? void 0 : headerCells.length) || 0;\n }\n }, [children]);\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n return {\n get root() {\n return tableRef.current;\n },\n get body() {\n return wheelWrapperRef.current;\n },\n // The scroll position of the table\n get scrollPosition() {\n return {\n top: Math.abs(scrollY.current),\n left: Math.abs(scrollX.current)\n };\n },\n scrollTop: onScrollTop,\n scrollLeft: onScrollLeft\n };\n });\n var rowWidth = allColumnsWidth > tableWidth.current ? allColumnsWidth : tableWidth.current;\n\n // Whether to show vertical scroll bar\n var hasVerticalScrollbar = !isAutoHeight && contentHeight.current > getTableHeight() - headerHeight;\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var classes = mergeCls(className, withClassPrefix({\n bordered: bordered,\n loading: loading,\n treetable: isTree,\n hover: hover && !shouldRowSpanColumn,\n 'has-rowspan': shouldRowSpanColumn,\n 'word-wrap': wordWrap,\n 'cell-bordered': cellBordered\n }));\n var styles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n width: widthProp || 'auto',\n height: getTableHeight()\n }, style);\n var renderRowExpanded = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n var height = 0;\n if (typeof rowExpandedHeight === 'function') {\n height = rowExpandedHeight(rowData);\n } else {\n height = rowExpandedHeight;\n }\n var styles = {\n height: height\n };\n if (typeof renderRowExpandedProp === 'function') {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('row-expanded'),\n style: styles\n }, renderRowExpandedProp(rowData));\n }\n return null;\n }, [prefix, renderRowExpandedProp, rowExpandedHeight]);\n var renderRow = function renderRow(props, cells, shouldRenderExpandedRow, rowData) {\n var depth = props.depth,\n rowIndex = props.rowIndex,\n restRowProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded2);\n if (typeof rowClassName === 'function') {\n restRowProps.className = rowClassName(rowData, rowIndex);\n } else {\n restRowProps.className = rowClassName;\n }\n var rowStyles = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, props === null || props === void 0 ? void 0 : props.style);\n var rowRight = 0;\n if (rtl && contentWidth.current > tableWidth.current) {\n rowRight = tableWidth.current - contentWidth.current;\n rowStyles.right = rowRight;\n }\n var rowNode = null;\n\n // IF there are fixed columns, add a fixed group\n if (shouldFixedColumn && contentWidth.current > tableWidth.current) {\n var fixedLeftCells = [];\n var fixedRightCells = [];\n var scrollCells = [];\n var fixedLeftCellGroupWidth = 0;\n var fixedRightCellGroupWidth = 0;\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n var _cell$props = cell.props,\n fixed = _cell$props.fixed,\n width = _cell$props.width;\n var isFixedStart = fixed === 'left' || fixed === true;\n var isFixedEnd = fixed === 'right';\n if (rtl) {\n isFixedStart = fixed === 'right';\n isFixedEnd = fixed === 'left' || fixed === true;\n }\n if (isFixedStart) {\n fixedLeftCells.push(cell);\n fixedLeftCellGroupWidth += width;\n } else if (isFixedEnd) {\n fixedRightCells.push(cell);\n fixedRightCellGroupWidth += width;\n } else {\n scrollCells.push(cell);\n }\n }\n if (hasVerticalScrollbar && fixedRightCellGroupWidth) {\n fixedRightCellGroupWidth += _constants__WEBPACK_IMPORTED_MODULE_19__.SCROLLBAR_WIDTH;\n }\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, fixedLeftCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n fixed: \"left\",\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedLeftCellGroupWidth,\n style: rtl ? {\n right: tableWidth.current - fixedLeftCellGroupWidth - rowRight\n } : undefined\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_20__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_20__.resetLeftForCells)(fixedLeftCells))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_6__[\"default\"], null, (0,_utils__WEBPACK_IMPORTED_MODULE_20__.mergeCells)(scrollCells)), fixedRightCellGroupWidth ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n fixed: \"right\",\n style: rtl ? {\n right: 0 - rowRight\n } : {\n left: tableWidth.current - fixedRightCellGroupWidth\n },\n height: props.isHeaderRow ? props.headerHeight : props.height,\n width: fixedRightCellGroupWidth\n }, (0,_utils__WEBPACK_IMPORTED_MODULE_20__.mergeCells)((0,_utils__WEBPACK_IMPORTED_MODULE_20__.resetLeftForCells)(fixedRightCells, hasVerticalScrollbar ? _constants__WEBPACK_IMPORTED_MODULE_19__.SCROLLBAR_WIDTH : 0))) : null, shouldRenderExpandedRow && renderRowExpanded(rowData));\n } else {\n rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_CellGroup__WEBPACK_IMPORTED_MODULE_6__[\"default\"], null, (0,_utils__WEBPACK_IMPORTED_MODULE_20__.mergeCells)(cells)), shouldRenderExpandedRow && renderRowExpanded(rowData));\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_5__[\"default\"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, restRowProps, {\n \"data-depth\": depth,\n style: rowStyles\n }), renderRowProp ? renderRowProp(rowNode, rowData) : rowNode);\n };\n var renderTableHeader = function renderTableHeader(headerCells, rowWidth) {\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var rowProps = {\n 'aria-rowindex': 1,\n rowRef: tableHeaderRef,\n width: rowWidth,\n height: getRowHeight(),\n headerHeight: headerHeight,\n isHeaderRow: true,\n top: 0,\n rowIndex: -1\n };\n var fixedStyle = {\n position: 'fixed',\n overflow: 'hidden',\n height: headerHeight,\n width: tableWidth.current,\n top: top\n };\n\n // Affix header\n var header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n className: prefix('affix-header'),\n style: fixedStyle,\n ref: affixHeaderWrapperRef\n }, renderRow(rowProps, headerCells));\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, (affixHeader === 0 || affixHeader) && header, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n role: \"rowgroup\",\n className: prefix('header-row-wrapper'),\n ref: headerWrapperRef\n }, renderRow(rowProps, headerCells)));\n };\n var shouldRenderExpandedRow = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_3___default()(renderRowExpandedProp) && !isTree && rowKey && expandedRowKeys.some(function (key) {\n return key === rowData[rowKey];\n })) {\n return true;\n }\n return false;\n }, [expandedRowKeys, isTree, renderRowExpandedProp, rowKey]);\n var bindRowClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowClick === null || onRowClick === void 0 || onRowClick(rowData, event);\n };\n }, [onRowClick]);\n var bindRowContextMenu = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (rowData) {\n return function (event) {\n onRowContextMenu === null || onRowContextMenu === void 0 || onRowContextMenu(rowData, event);\n };\n }, [onRowContextMenu]);\n var handleTreeToggle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (treeRowKey, _rowIndex, rowData) {\n var open = false;\n var nextExpandedRowKeys = [];\n for (var i = 0; i < expandedRowKeys.length; i++) {\n var key = expandedRowKeys[i];\n if (key === treeRowKey) {\n open = true;\n } else {\n nextExpandedRowKeys.push(key);\n }\n }\n if (!open) {\n nextExpandedRowKeys.push(treeRowKey);\n }\n setExpandedRowKeys(nextExpandedRowKeys);\n onExpandChange === null || onExpandChange === void 0 || onExpandChange(!open, rowData);\n }, [expandedRowKeys, onExpandChange, setExpandedRowKeys]);\n\n /**\n * Records the status of merged rows.\n * { cellKey: [count,index]}\n */\n var rowSpanState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({});\n var renderRowData = function renderRowData(bodyCells, rowData, props, shouldRenderExpandedRow) {\n var hasChildren = isTree && rowData.children && Array.isArray(rowData.children);\n var nextRowKey = rowKey && typeof rowData[rowKey] !== 'undefined' ? rowData[rowKey] : props.key;\n var cellHeight = props.cellHeight,\n restRowProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(props, _excluded3);\n var rowProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, restRowProps, {\n key: nextRowKey,\n 'aria-rowindex': props.key + 2,\n rowRef: bindTableRowsRef(props.key, rowData),\n onClick: bindRowClick(rowData),\n onContextMenu: bindRowContextMenu(rowData)\n });\n var expanded = expandedRowKeys.some(function (key) {\n return rowKey && key === rowData[rowKey];\n });\n var cells = [];\n for (var i = 0; i < bodyCells.length; i++) {\n var _cell$props2, _cell$props2$rowSpan, _rowSpanState$current, _cell$props3, _rowSpanState$current2;\n var cell = bodyCells[i];\n var rowSpan = (_cell$props2 = cell.props) === null || _cell$props2 === void 0 || (_cell$props2$rowSpan = _cell$props2.rowSpan) === null || _cell$props2$rowSpan === void 0 ? void 0 : _cell$props2$rowSpan.call(_cell$props2, rowData);\n var dataCellHeight = rowSpan ? rowSpan * (cellHeight || _constants__WEBPACK_IMPORTED_MODULE_19__.ROW_HEIGHT) : cellHeight;\n var _cellKey = cell.props.dataKey || i;\n\n // Record the cell state of the merged row\n if (((_rowSpanState$current = rowSpanState.current[_cellKey]) === null || _rowSpanState$current === void 0 ? void 0 : _rowSpanState$current[1]) > 0) {\n rowSpanState.current[_cellKey][1] -= 1;\n\n // Restart counting when merged to the last cell.\n if (rowSpanState.current[_cellKey][1] === 0) {\n rowSpanState.current[_cellKey][0] = 0;\n }\n }\n if (rowSpan) {\n // The state of the initial merged cell\n rowSpanState.current[_cellKey] = [rowSpan, rowSpan];\n rowProps.rowSpan = rowSpan;\n rowProps.style = {\n overflow: 'inherit'\n };\n }\n\n // Cells marked as deleted when checking for merged cell.\n var removedCell = (_cell$props3 = cell.props) !== null && _cell$props3 !== void 0 && _cell$props3.rowSpan && !rowSpan && ((_rowSpanState$current2 = rowSpanState.current[_cellKey]) === null || _rowSpanState$current2 === void 0 ? void 0 : _rowSpanState$current2[0]) !== 0 ? true : false;\n cells.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cell, {\n 'aria-rowspan': rowSpan ? rowSpan : undefined,\n hasChildren: hasChildren,\n rowData: rowData,\n rowIndex: props.rowIndex,\n wordWrap: wordWrap,\n height: dataCellHeight,\n depth: props.depth,\n renderTreeToggle: renderTreeToggle,\n onTreeToggle: handleTreeToggle,\n rowKey: nextRowKey,\n expanded: expanded,\n rowSpan: rowSpan,\n removed: removedCell\n }));\n }\n return renderRow(rowProps, cells, shouldRenderExpandedRow, rowData);\n };\n var renderScrollbar = function renderScrollbar() {\n var height = getTableHeight();\n if (disabledScroll) {\n return null;\n }\n var scrollbars = [];\n if (hasHorizontalScrollbar) {\n scrollbars.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n key: \"scrollbar\",\n tableId: id,\n style: {\n width: tableWidth.current\n },\n length: tableWidth.current,\n onScroll: onScrollHorizontal,\n scrollLength: contentWidth.current,\n ref: scrollbarXRef\n }));\n }\n if (hasVerticalScrollbar) {\n scrollbars.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Scrollbar__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n vertical: true,\n key: \"vertical-scrollbar\",\n tableId: id,\n length: height - headerHeight,\n onScroll: onScrollVertical,\n scrollLength: contentHeight.current,\n ref: scrollbarYRef\n }));\n }\n return scrollbars;\n };\n var renderTableBody = function renderTableBody(bodyCells, rowWidth) {\n var _visibleRows$current;\n var height = getTableHeight();\n var bodyHeight = height - headerHeight;\n var bodyStyles = {\n top: headerHeight,\n height: bodyHeight\n };\n var contentHeight = 0;\n var topHideHeight = 0;\n var bottomHideHeight = 0;\n visibleRows.current = [];\n if (data) {\n var top = 0; // Row position\n var minTop = Math.abs(scrollY.current);\n var startHeight = 0;\n if (typeof rowExpandedHeight === 'function') {\n startHeight = data.length ? rowExpandedHeight(data[0]) : 100;\n } else {\n startHeight = rowExpandedHeight;\n }\n var maxTop = minTop + height + startHeight;\n var isCustomRowHeight = typeof rowHeight === 'function';\n var isUncertainHeight = !!renderRowExpandedProp || isCustomRowHeight || wordWrap;\n\n // If virtualized is enabled and the row height in the Table is variable,\n // you need to loop through the data to get the height of each row.\n if (isUncertainHeight && virtualized || !virtualized) {\n // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_20__.isSupportTouchEvent)()) {\n var coveredHeight = height * 3;\n minTop = Math.max(minTop - coveredHeight, 0);\n maxTop = maxTop + coveredHeight;\n }\n for (var index = 0; index < data.length; index++) {\n var rowData = data[index];\n var _maxHeight = tableRowsMaxHeight[index];\n var expandedRow = shouldRenderExpandedRow(rowData);\n var nextRowHeight = 0;\n var cellHeight = 0;\n if (typeof rowHeight === 'function') {\n nextRowHeight = rowHeight(rowData);\n cellHeight = nextRowHeight;\n } else {\n nextRowHeight = _maxHeight ? Math.max(_maxHeight + _constants__WEBPACK_IMPORTED_MODULE_19__.CELL_PADDING_HEIGHT, rowHeight) : rowHeight;\n cellHeight = nextRowHeight;\n if (expandedRow) {\n // If the row is expanded, the height of the expanded row is added.\n if (typeof rowExpandedHeight === 'function') {\n nextRowHeight += rowExpandedHeight(rowData);\n } else {\n nextRowHeight += rowExpandedHeight;\n }\n }\n }\n contentHeight += nextRowHeight;\n var rowProps = {\n key: index,\n top: top,\n rowIndex: index,\n width: rowWidth,\n depth: rowData[_constants__WEBPACK_IMPORTED_MODULE_19__.TREE_DEPTH],\n height: nextRowHeight,\n cellHeight: cellHeight\n };\n top += nextRowHeight;\n if (virtualized && !wordWrap) {\n if (top + nextRowHeight < minTop) {\n topHideHeight += nextRowHeight;\n continue;\n } else if (top > maxTop) {\n bottomHideHeight += nextRowHeight;\n continue;\n }\n }\n visibleRows.current.push(renderRowData(bodyCells, rowData, rowProps, expandedRow));\n }\n } else {\n /** virtualized */\n\n // If the row height of the Table is fixed, it is directly calculated by the row height and the number of rows,\n // thereby reducing the performance cost of traversing all data.\n var _nextRowHeight = getRowHeight();\n var startIndex = Math.max(Math.floor(minTop / _nextRowHeight), 0);\n var endIndex = Math.min(startIndex + Math.ceil(bodyHeight / _nextRowHeight) + 5, data.length);\n\n // Avoid white screens on the top and bottom of the table when touching and scrolling on the mobile terminal.\n // So supplement the display data row.\n if ((0,_utils__WEBPACK_IMPORTED_MODULE_20__.isSupportTouchEvent)()) {\n var coveredCount = Math.floor(height / _nextRowHeight * 3);\n startIndex = Math.max(startIndex - coveredCount, 0);\n endIndex = Math.min(endIndex + coveredCount, data.length);\n }\n contentHeight = data.length * _nextRowHeight;\n topHideHeight = startIndex * _nextRowHeight;\n bottomHideHeight = (data.length - endIndex) * _nextRowHeight;\n for (var _index = startIndex; _index < endIndex; _index++) {\n var _rowData = data[_index];\n var _rowProps = {\n key: _index,\n rowIndex: _index,\n depth: _rowData[_constants__WEBPACK_IMPORTED_MODULE_19__.TREE_DEPTH],\n top: _index * _nextRowHeight,\n width: rowWidth,\n height: _nextRowHeight,\n cellHeight: _nextRowHeight\n };\n visibleRows.current.push(renderRowData(bodyCells, _rowData, _rowProps, false));\n }\n }\n }\n var wheelStyles = {\n position: 'absolute',\n height: contentHeight,\n minHeight: height,\n pointerEvents: isScrolling ? 'none' : undefined\n };\n var topRowStyles = {\n height: topHideHeight\n };\n var bottomRowStyles = {\n height: bottomHideHeight\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n ref: tableBodyRef,\n role: \"rowgroup\",\n className: prefix('body-row-wrapper'),\n style: bodyStyles,\n onScroll: onScrollBody\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n style: wheelStyles,\n className: prefix('body-wheel-area'),\n ref: wheelWrapperRef\n }, topHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n style: topRowStyles,\n className: \"virtualized\"\n }) : null, visibleRows.current, bottomHideHeight ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Row__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n style: bottomRowStyles,\n className: \"virtualized\"\n }) : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_EmptyMessage__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n locale: locale,\n renderEmpty: renderEmpty,\n addPrefix: prefix,\n loading: !!((_visibleRows$current = visibleRows.current) !== null && _visibleRows$current !== void 0 && _visibleRows$current.length) || loading\n }), renderScrollbar(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Loader__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n locale: locale,\n loadAnimation: loadAnimation,\n loading: loading,\n addPrefix: prefix,\n renderLoading: renderLoading\n }));\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_TableProvider__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n classPrefix: classPrefix,\n setCssPosition: setCssPosition.current,\n rtl: rtl,\n isTree: isTree,\n hasCustomTreeCol: hasCustomTreeCol\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n role: isTree ? 'treegrid' : 'grid'\n // The aria-rowcount is specified on the element with the table.\n // Its value is an integer equal to the total number of rows available, including header rows.\n ,\n \"aria-rowcount\": data.length + 1,\n \"aria-colcount\": colCounts.current,\n \"aria-busy\": loading\n }, rest, {\n className: classes,\n style: styles,\n ref: tableRef,\n tabIndex: -1,\n onKeyDown: onScrollByKeydown\n }), showHeader && renderTableHeader(headerCells, rowWidth), children && renderTableBody(bodyCells, rowWidth), showHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_MouseArea__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n ref: mouseAreaRef,\n addPrefix: prefix,\n headerHeight: headerHeight,\n height: getTableHeight()\n })));\n});\nTable.displayName = 'Table';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Table);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/Table.js?");
|
|
11857
11769
|
|
|
11858
11770
|
/***/ }),
|
|
11859
11771
|
|
|
11860
|
-
/***/ "./node_modules/rsuite-table/es/
|
|
11861
|
-
|
|
11862
|
-
!*** ./node_modules/rsuite-table/es/
|
|
11863
|
-
|
|
11772
|
+
/***/ "./node_modules/rsuite-table/es/TableProvider.js":
|
|
11773
|
+
/*!*******************************************************!*\
|
|
11774
|
+
!*** ./node_modules/rsuite-table/es/TableProvider.js ***!
|
|
11775
|
+
\*******************************************************/
|
|
11864
11776
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11865
11777
|
|
|
11866
11778
|
"use strict";
|
|
11867
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var
|
|
11779
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TableContext: function() { return /* binding */ TableContext; },\n/* harmony export */ TableProvider: function() { return /* binding */ TableProvider; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./node_modules/rsuite-table/es/utils/index.js\");\n'use client';\n\n\n\n/**\n * Callback function type for translating DOM position.\n * @param style - The CSSStyleDeclaration object to modify.\n * @param x - The x-coordinate (optional).\n * @param y - The y-coordinate (optional).\n */\n\nvar TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});\nvar TableProvider = function TableProvider(props) {\n var children = props.children,\n _props$rtl = props.rtl,\n rtl = _props$rtl === void 0 ? (0,_utils__WEBPACK_IMPORTED_MODULE_1__.isRTL)() : _props$rtl,\n _props$hasCustomTreeC = props.hasCustomTreeCol,\n hasCustomTreeCol = _props$hasCustomTreeC === void 0 ? false : _props$hasCustomTreeC,\n isTree = props.isTree,\n classPrefix = props.classPrefix;\n var value = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {\n return {\n setCssPosition: _utils__WEBPACK_IMPORTED_MODULE_1__.setCssPosition,\n rtl: rtl != null ? rtl : (0,_utils__WEBPACK_IMPORTED_MODULE_1__.isRTL)(),\n hasCustomTreeCol: hasCustomTreeCol,\n isTree: isTree,\n classPrefix: classPrefix\n };\n }, [rtl, hasCustomTreeCol, isTree, classPrefix]);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableContext.Provider, {\n value: value\n }, children);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (TableProvider);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/TableProvider.js?");
|
|
11868
11780
|
|
|
11869
11781
|
/***/ }),
|
|
11870
11782
|
|
|
@@ -11879,6 +11791,215 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
11879
11791
|
|
|
11880
11792
|
/***/ }),
|
|
11881
11793
|
|
|
11794
|
+
/***/ "./node_modules/rsuite-table/es/hooks/index.js":
|
|
11795
|
+
/*!*****************************************************!*\
|
|
11796
|
+
!*** ./node_modules/rsuite-table/es/hooks/index.js ***!
|
|
11797
|
+
\*****************************************************/
|
|
11798
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11799
|
+
|
|
11800
|
+
"use strict";
|
|
11801
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ useAffix: function() { return /* reexport safe */ _useAffix__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; },\n/* harmony export */ useCellDescriptor: function() { return /* reexport safe */ _useCellDescriptor__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; },\n/* harmony export */ useClassNames: function() { return /* reexport safe */ _useClassNames__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; },\n/* harmony export */ useControlled: function() { return /* reexport safe */ _useControlled__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; },\n/* harmony export */ useIsomorphicLayoutEffect: function() { return /* reexport safe */ _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; },\n/* harmony export */ useMount: function() { return /* reexport safe */ _useMount__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; },\n/* harmony export */ usePosition: function() { return /* reexport safe */ _usePosition__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; },\n/* harmony export */ useScrollListener: function() { return /* reexport safe */ _useScrollListener__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; },\n/* harmony export */ useTable: function() { return /* reexport safe */ _useTable__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; },\n/* harmony export */ useTableData: function() { return /* reexport safe */ _useTableData__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; },\n/* harmony export */ useTableDimension: function() { return /* reexport safe */ _useTableDimension__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; },\n/* harmony export */ useTableRows: function() { return /* reexport safe */ _useTableRows__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; },\n/* harmony export */ useUpdateEffect: function() { return /* reexport safe */ _useUpdateEffect__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; },\n/* harmony export */ useUpdateLayoutEffect: function() { return /* reexport safe */ _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateEffect.js\");\n/* harmony import */ var _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useUpdateLayoutEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateLayoutEffect.js\");\n/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ \"./node_modules/rsuite-table/es/hooks/useIsomorphicLayoutEffect.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/hooks/useMount.js\");\n/* harmony import */ var _useClassNames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useClassNames */ \"./node_modules/rsuite-table/es/hooks/useClassNames.js\");\n/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useControlled */ \"./node_modules/rsuite-table/es/hooks/useControlled.js\");\n/* harmony import */ var _useCellDescriptor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useCellDescriptor */ \"./node_modules/rsuite-table/es/hooks/useCellDescriptor.js\");\n/* harmony import */ var _useTableDimension__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useTableDimension */ \"./node_modules/rsuite-table/es/hooks/useTableDimension.js\");\n/* harmony import */ var _useTableRows__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useTableRows */ \"./node_modules/rsuite-table/es/hooks/useTableRows.js\");\n/* harmony import */ var _useAffix__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useAffix */ \"./node_modules/rsuite-table/es/hooks/useAffix.js\");\n/* harmony import */ var _useScrollListener__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useScrollListener */ \"./node_modules/rsuite-table/es/hooks/useScrollListener.js\");\n/* harmony import */ var _usePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./usePosition */ \"./node_modules/rsuite-table/es/hooks/usePosition.js\");\n/* harmony import */ var _useTableData__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./useTableData */ \"./node_modules/rsuite-table/es/hooks/useTableData.js\");\n/* harmony import */ var _useTable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./useTable */ \"./node_modules/rsuite-table/es/hooks/useTable.js\");\n'use client';\n// Hooks\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/index.js?");
|
|
11802
|
+
|
|
11803
|
+
/***/ }),
|
|
11804
|
+
|
|
11805
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useAffix.js":
|
|
11806
|
+
/*!********************************************************!*\
|
|
11807
|
+
!*** ./node_modules/rsuite-table/es/hooks/useAffix.js ***!
|
|
11808
|
+
\********************************************************/
|
|
11809
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11810
|
+
|
|
11811
|
+
"use strict";
|
|
11812
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/getHeight */ \"./node_modules/dom-lib/esm/getHeight.js\");\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/removeStyle */ \"./node_modules/dom-lib/esm/removeStyle.js\");\n/* harmony import */ var dom_lib_on__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/on */ \"./node_modules/dom-lib/esm/on.js\");\n/* harmony import */ var _utils_toggleClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony import */ var _utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateEffect.js\");\n'use client';\n\n\n\n\n\n\n\n\nvar useAffix = function useAffix(props) {\n var getTableHeight = props.getTableHeight,\n contentHeight = props.contentHeight,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n affixHeader = props.affixHeader,\n tableOffset = props.tableOffset,\n headerOffset = props.headerOffset,\n headerHeight = props.headerHeight,\n scrollbarXRef = props.scrollbarXRef,\n affixHeaderWrapperRef = props.affixHeaderWrapperRef;\n var scrollListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var handleAffixHorizontalScrollbar = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableOffset$current, _scrollbarXRef$curren;\n var scrollY = window.scrollY || window.pageYOffset;\n var windowHeight = (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(window);\n var height = getTableHeight();\n var bottom = typeof affixHorizontalScrollbar === 'number' ? affixHorizontalScrollbar : 0;\n var offsetTop = ((_tableOffset$current = tableOffset.current) === null || _tableOffset$current === void 0 ? void 0 : _tableOffset$current.top) || 0;\n var fixedScrollbar = scrollY + windowHeight < height + (offsetTop + bottom) && scrollY + windowHeight - headerHeight > offsetTop + bottom;\n if (scrollbarXRef !== null && scrollbarXRef !== void 0 && (_scrollbarXRef$curren = scrollbarXRef.current) !== null && _scrollbarXRef$curren !== void 0 && _scrollbarXRef$curren.root) {\n (0,_utils_toggleClass__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(scrollbarXRef.current.root, 'fixed', fixedScrollbar);\n if (fixedScrollbar) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(scrollbarXRef.current.root, 'bottom', bottom + \"px\");\n } else {\n (0,dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(scrollbarXRef.current.root, 'bottom');\n }\n }\n }, [affixHorizontalScrollbar, headerHeight, scrollbarXRef, getTableHeight, tableOffset]);\n var handleAffixTableHeader = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _headerOffset$current;\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var scrollY = window.scrollY || window.pageYOffset;\n var offsetTop = ((_headerOffset$current = headerOffset.current) === null || _headerOffset$current === void 0 ? void 0 : _headerOffset$current.top) || 0;\n var fixedHeader = scrollY - (offsetTop - top) >= 0 && scrollY < offsetTop - top + contentHeight.current;\n if (affixHeaderWrapperRef.current) {\n (0,_utils_toggleClass__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(affixHeaderWrapperRef.current, 'fixed', fixedHeader);\n }\n }, [affixHeader, affixHeaderWrapperRef, contentHeight, headerOffset]);\n var handleWindowScroll = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n if ((0,_utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHeader)) {\n handleAffixTableHeader();\n }\n if ((0,_utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHorizontalScrollbar)) {\n handleAffixHorizontalScrollbar();\n }\n }, [affixHeader, affixHorizontalScrollbar, handleAffixTableHeader, handleAffixHorizontalScrollbar]);\n\n /**\n * Update the position of the fixed element after the height of the table changes.\n * fix: https://github.com/rsuite/rsuite/issues/1716\n */\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(handleWindowScroll, [getTableHeight]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n if ((0,_utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHeader) || (0,_utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHorizontalScrollbar)) {\n scrollListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(window, 'scroll', handleWindowScroll);\n }\n return function () {\n var _scrollListener$curre;\n (_scrollListener$curre = scrollListener.current) === null || _scrollListener$curre === void 0 || _scrollListener$curre.off();\n };\n }, [affixHeader, affixHorizontalScrollbar, handleWindowScroll]);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useAffix);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useAffix.js?");
|
|
11813
|
+
|
|
11814
|
+
/***/ }),
|
|
11815
|
+
|
|
11816
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useCellDescriptor.js":
|
|
11817
|
+
/*!*****************************************************************!*\
|
|
11818
|
+
!*** ./node_modules/rsuite-table/es/hooks/useCellDescriptor.js ***!
|
|
11819
|
+
\*****************************************************************/
|
|
11820
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11821
|
+
|
|
11822
|
+
"use strict";
|
|
11823
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/addClass */ \"./node_modules/dom-lib/esm/addClass.js\");\n/* harmony import */ var dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/removeClass */ \"./node_modules/dom-lib/esm/removeClass.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/merge */ \"./node_modules/lodash/merge.js\");\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useControlled */ \"./node_modules/rsuite-table/es/hooks/useControlled.js\");\n/* harmony import */ var _utils_getTableColumns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/getTableColumns */ \"./node_modules/rsuite-table/es/utils/getTableColumns.js\");\n/* harmony import */ var _utils_getTotalByColumns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony import */ var _utils_getColumnProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/getColumnProps */ \"./node_modules/rsuite-table/es/utils/getColumnProps.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateEffect.js\");\n/* harmony import */ var _utils_flushSync__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/flushSync */ \"./node_modules/rsuite-table/es/utils/flushSync.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/hooks/useMount.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Attach rendering-related attributes to all cells of the form and cache them.\n * @param props\n * @returns\n */\nvar useCellDescriptor = function useCellDescriptor(props) {\n var children = props.children,\n rtl = props.rtl,\n mouseAreaRef = props.mouseAreaRef,\n tableRef = props.tableRef,\n minScrollX = props.minScrollX,\n scrollX = props.scrollX,\n tableWidth = props.tableWidth,\n headerHeight = props.headerHeight,\n showHeader = props.showHeader,\n sortTypeProp = props.sortType,\n defaultSortType = props.defaultSortType,\n sortColumn = props.sortColumn,\n rowHeight = props.rowHeight,\n onSortColumn = props.onSortColumn,\n onHeaderCellResize = props.onHeaderCellResize,\n prefix = props.prefix;\n var _useControlled = (0,_useControlled__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(sortTypeProp, defaultSortType),\n sortType = _useControlled[0],\n setSortType = _useControlled[1];\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),\n cacheData = _useState[0],\n setCacheData = _useState[1];\n var clearCache = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {\n setCacheData(null);\n }, []);\n var setColumnResizing = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (resizing) {\n if (!tableRef.current) {\n return;\n }\n if (resizing) {\n (0,dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(tableRef.current, prefix('column-resizing'));\n } else {\n (0,dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableRef.current, prefix('column-resizing'));\n }\n }, [prefix, tableRef]);\n\n /**\n * storage column width from props.\n * if current column width not equal initial column width, use current column width and update cache.\n */\n var initialColumnWidths = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({});\n var columnWidths = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({});\n (0,_useMount__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(function () {\n // As the cells are cached before the table width is updated, it is necessary to clear the cache again. fix: #430\n clearCache();\n });\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(function () {\n clearCache();\n }, [children, sortColumn, sortType, tableWidth.current, scrollX.current, minScrollX.current]);\n var handleColumnResizeEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (columnWidth, _cursorDelta, dataKey, index) {\n columnWidths.current[dataKey + \"_\" + index + \"_width\"] = columnWidth;\n setColumnResizing(false);\n if (mouseAreaRef.current) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(mouseAreaRef.current, {\n display: 'none'\n });\n }\n\n // fix: https://github.com/rsuite/rsuite-table/issues/398\n (0,_utils_flushSync__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(function () {\n return clearCache();\n });\n onHeaderCellResize === null || onHeaderCellResize === void 0 || onHeaderCellResize(columnWidth, dataKey);\n }, [clearCache, mouseAreaRef, onHeaderCellResize, setColumnResizing]);\n var handleColumnResizeMove = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n var mouseAreaLeft = width + left;\n var x = mouseAreaLeft;\n var dir = 'left';\n if (rtl) {\n mouseAreaLeft += minScrollX.current + _constants__WEBPACK_IMPORTED_MODULE_14__.SCROLLBAR_WIDTH;\n dir = 'right';\n }\n if (!fixed) {\n x = mouseAreaLeft + (rtl ? -scrollX.current : scrollX.current);\n }\n if (mouseAreaRef.current) {\n var _addStyle;\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(mouseAreaRef.current, (_addStyle = {\n display: 'block'\n }, _addStyle[dir] = x + \"px\", _addStyle));\n }\n }, [minScrollX, mouseAreaRef, rtl, scrollX]);\n var handleColumnResizeStart = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n setColumnResizing(true);\n handleColumnResizeMove(width, left, fixed);\n }, [handleColumnResizeMove, setColumnResizing]);\n var handleSortColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (dataKey) {\n var nextSortType = sortType;\n if (sortColumn === dataKey) {\n nextSortType = sortType === _constants__WEBPACK_IMPORTED_MODULE_14__.SORT_TYPE.ASC ? _constants__WEBPACK_IMPORTED_MODULE_14__.SORT_TYPE.DESC : _constants__WEBPACK_IMPORTED_MODULE_14__.SORT_TYPE.ASC;\n setSortType(nextSortType);\n }\n onSortColumn === null || onSortColumn === void 0 || onSortColumn(dataKey, nextSortType);\n }, [onSortColumn, setSortType, sortColumn, sortType]);\n if (cacheData) {\n return cacheData;\n }\n var hasCustomTreeCol = false;\n var left = 0; // Cell left margin\n var headerCells = []; // Table header cell\n var bodyCells = []; // Table body cell\n\n if (!children) {\n var _cacheCell = {\n columns: [],\n headerCells: headerCells,\n bodyCells: bodyCells,\n hasCustomTreeCol: hasCustomTreeCol,\n allColumnsWidth: left\n };\n setCacheData(_cacheCell);\n return _cacheCell;\n }\n var columns = (0,_utils_getTableColumns__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(children);\n var count = columns.length;\n var _getTotalByColumns = (0,_utils_getTotalByColumns__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(columns),\n totalFlexGrow = _getTotalByColumns.totalFlexGrow,\n totalWidth = _getTotalByColumns.totalWidth;\n react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(columns, function (column, index) {\n if (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(column)) {\n var _initialColumnWidths$, _columnWidths$current;\n var columnChildren = column.props.children;\n var columnProps = (0,_utils_getColumnProps__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(column);\n var width = columnProps.width,\n resizable = columnProps.resizable,\n flexGrow = columnProps.flexGrow,\n minWidth = columnProps.minWidth,\n onResize = columnProps.onResize,\n treeCol = columnProps.treeCol;\n if (treeCol) {\n hasCustomTreeCol = true;\n }\n if (columnChildren.length !== 2) {\n throw new Error(\"Component <HeaderCell> and <Cell> is required, column index: \" + index + \" \");\n }\n var headerCell = columnChildren[0];\n var cell = columnChildren[1];\n var cellWidthId = cell.props.dataKey + \"_\" + index + \"_width\";\n\n // get column width from cache.\n var initialColumnWidth = (_initialColumnWidths$ = initialColumnWidths.current) === null || _initialColumnWidths$ === void 0 ? void 0 : _initialColumnWidths$[cellWidthId];\n var currentWidth = (_columnWidths$current = columnWidths.current) === null || _columnWidths$current === void 0 ? void 0 : _columnWidths$current[cellWidthId];\n var cellWidth = currentWidth || width || 0;\n var isControlled = typeof width === 'number' && typeof onResize === 'function';\n\n /**\n * in resizable mode,\n * if width !== initialColumnWidth, use current column width and update cache.\n */\n if (resizable && (initialColumnWidth || width) && initialColumnWidth !== width) {\n // initial or update initialColumnWidth cache.\n initialColumnWidths.current[cellWidthId] = width;\n /**\n * if currentWidth exist, update columnWidths cache.\n */\n if (currentWidth) {\n columnWidths.current[cellWidthId] = width;\n // update cellWidth\n cellWidth = width;\n }\n }\n if (tableWidth.current && flexGrow && totalFlexGrow) {\n var grewWidth = Math.max((tableWidth.current - totalWidth) / totalFlexGrow * flexGrow, minWidth || 60);\n /**\n * resizable = false, width will be recalc when table render.\n * resizable = true, only first render will use grewWidth.\n */\n cellWidth = resizable ? currentWidth || grewWidth : grewWidth;\n }\n var cellProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, lodash_omit__WEBPACK_IMPORTED_MODULE_5___default()(columnProps, ['children']), {\n 'aria-colindex': index + 1,\n left: left,\n headerHeight: headerHeight,\n key: index,\n width: isControlled ? width : cellWidth,\n height: typeof rowHeight === 'function' ? rowHeight() : rowHeight,\n firstColumn: index === 0,\n lastColumn: index === count - 1\n });\n if (showHeader && headerHeight) {\n var headerCellProps = {\n // Resizable column\n // `index` is used to define the serial number when dragging the column width\n index: index,\n dataKey: cell.props.dataKey,\n isHeaderCell: true,\n minWidth: columnProps.minWidth,\n sortable: columnProps.sortable,\n onSortColumn: handleSortColumn,\n sortType: sortType,\n sortColumn: sortColumn,\n flexGrow: resizable ? undefined : flexGrow\n };\n if (resizable) {\n lodash_merge__WEBPACK_IMPORTED_MODULE_6___default()(headerCellProps, {\n onResize: onResize,\n onColumnResizeEnd: handleColumnResizeEnd,\n onColumnResizeStart: handleColumnResizeStart,\n onColumnResizeMove: handleColumnResizeMove\n });\n }\n headerCells.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(headerCell, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, cellProps, headerCellProps)));\n }\n bodyCells.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(cell, cellProps));\n left += cellWidth;\n }\n });\n var cacheCell = {\n columns: columns,\n headerCells: headerCells,\n bodyCells: bodyCells,\n allColumnsWidth: left,\n hasCustomTreeCol: hasCustomTreeCol\n };\n setCacheData(cacheCell);\n return cacheCell;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useCellDescriptor);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useCellDescriptor.js?");
|
|
11824
|
+
|
|
11825
|
+
/***/ }),
|
|
11826
|
+
|
|
11827
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useClassNames.js":
|
|
11828
|
+
/*!*************************************************************!*\
|
|
11829
|
+
!*** ./node_modules/rsuite-table/es/hooks/useClassNames.js ***!
|
|
11830
|
+
\*************************************************************/
|
|
11831
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11832
|
+
|
|
11833
|
+
"use strict";
|
|
11834
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _useTable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useTable */ \"./node_modules/rsuite-table/es/hooks/useTable.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils_prefix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n'use client';\n\n\n\n\n\n// This is the only way I found to break circular references between ClassArray and ClassValue\n// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540\n\n/**\n * Add a prefix to all classNames.\n *\n * @param str prefix of className\n * @returns { withClassPrefix, merge, prefix }\n * - withClassPrefix: A function of combining className and adding a prefix to each className.\n * At the same time, the default `classPrefix` is the first className.\n * - merge: A merge className function.\n * - prefix: Add a prefix to className\n * - rootPrefix\n */\nfunction useClassNames(str, controlled) {\n var _ref = (0,_useTable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])() || {},\n _ref$classPrefix = _ref.classPrefix,\n contextClassPrefix = _ref$classPrefix === void 0 ? 'rs' : _ref$classPrefix;\n var componentName = controlled ? str : (0,_utils_prefix__WEBPACK_IMPORTED_MODULE_3__.prefix)(contextClassPrefix, str);\n\n /**\n * @example\n *\n * if str = 'button':\n * prefix('red', { active: true }) => 'rs-button-red rs-button-active'\n */\n var prefix = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n var mergeClasses = arguments.length ? classnames__WEBPACK_IMPORTED_MODULE_0___default().apply(void 0, arguments).split(' ').map(function (item) {\n return (0,_utils_prefix__WEBPACK_IMPORTED_MODULE_3__.prefix)(componentName, item);\n }) : [];\n return mergeClasses.filter(function (cls) {\n return cls;\n }).join(' ');\n }, [componentName]);\n\n /**\n * @example\n *\n * if str = 'button':\n * withClassPrefix('red', { active: true }) => 'rs-button rs-button-red rs-button-active'\n */\n var withClassPrefix = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {\n classes[_key] = arguments[_key];\n }\n var mergeClasses = prefix(classes);\n return mergeClasses ? componentName + \" \" + mergeClasses : componentName;\n }, [componentName, prefix]);\n\n /**\n * @example\n * rootPrefix('btn') => 'rs-btn'\n * rootPrefix('btn', { active: true }) => 'rs-btn rs-active'\n */\n var rootPrefix = function rootPrefix() {\n var mergeClasses = arguments.length ? classnames__WEBPACK_IMPORTED_MODULE_0___default().apply(void 0, arguments).split(' ').map(function (item) {\n return (0,_utils_prefix__WEBPACK_IMPORTED_MODULE_3__.prefix)(contextClassPrefix, item);\n }) : [];\n return mergeClasses.filter(function (cls) {\n return cls;\n }).join(' ');\n };\n return {\n withClassPrefix: withClassPrefix,\n merge: (classnames__WEBPACK_IMPORTED_MODULE_0___default()),\n prefix: prefix,\n rootPrefix: rootPrefix\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useClassNames);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useClassNames.js?");
|
|
11835
|
+
|
|
11836
|
+
/***/ }),
|
|
11837
|
+
|
|
11838
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useControlled.js":
|
|
11839
|
+
/*!*************************************************************!*\
|
|
11840
|
+
!*** ./node_modules/rsuite-table/es/hooks/useControlled.js ***!
|
|
11841
|
+
\*************************************************************/
|
|
11842
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11843
|
+
|
|
11844
|
+
"use strict";
|
|
11845
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\n\n/**\n * A hook for controlled value management.\n * In the case of passing the controlled value, the controlled value is returned, otherwise the value in state is returned.\n * Generally used for a component including controlled and uncontrolled modes.\n * @param controlledValue\n * @param defaultValue\n * @param formatValue\n */\nfunction useControlled(controlledValue, defaultValue) {\n var controlledRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);\n controlledRef.current = controlledValue !== undefined;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultValue),\n uncontrolledValue = _useState[0],\n setUncontrolledValue = _useState[1];\n\n // If it is controlled, this directly returns the attribute value.\n var value = controlledRef.current ? controlledValue : uncontrolledValue;\n var setValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextValue) {\n // Only update the value in state when it is not under control.\n if (!controlledRef.current) {\n setUncontrolledValue(nextValue);\n }\n }, [controlledRef]);\n return [value, setValue, controlledRef.current];\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useControlled);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useControlled.js?");
|
|
11846
|
+
|
|
11847
|
+
/***/ }),
|
|
11848
|
+
|
|
11849
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useIntersectionObserver.js":
|
|
11850
|
+
/*!***********************************************************************!*\
|
|
11851
|
+
!*** ./node_modules/rsuite-table/es/hooks/useIntersectionObserver.js ***!
|
|
11852
|
+
\***********************************************************************/
|
|
11853
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11854
|
+
|
|
11855
|
+
"use strict";
|
|
11856
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\n\n/**\n * useIntersectionObserver Hook\n *\n * @param ref - Ref object of the element to be observed\n */\nvar useIntersectionObserver = function useIntersectionObserver(ref) {\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n isVisible = _useState[0],\n setIsVisible = _useState[1];\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n // Check if the browser supports IntersectionObserver\n if (!('IntersectionObserver' in window)) {\n // If not supported, optionally set to visible or handle fallback logic\n setIsVisible(true); // Fallback: Set to visible\n return;\n }\n\n // Create an IntersectionObserver instance\n var observer = new IntersectionObserver(function (entries) {\n entries.forEach(function (entry) {\n setIsVisible(entry.isIntersecting);\n });\n });\n var element = ref === null || ref === void 0 ? void 0 : ref.current;\n\n // Start observing the target element\n if (element) {\n observer.observe(element);\n }\n\n // Cleanup function to unobserve the element when the component unmounts or dependencies change\n return function () {\n if (element) {\n observer.unobserve(element);\n }\n };\n }, [ref]);\n return isVisible;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useIntersectionObserver);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useIntersectionObserver.js?");
|
|
11857
|
+
|
|
11858
|
+
/***/ }),
|
|
11859
|
+
|
|
11860
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useIsomorphicLayoutEffect.js":
|
|
11861
|
+
/*!*************************************************************************!*\
|
|
11862
|
+
!*** ./node_modules/rsuite-table/es/hooks/useIsomorphicLayoutEffect.js ***!
|
|
11863
|
+
\*************************************************************************/
|
|
11864
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11865
|
+
|
|
11866
|
+
"use strict";
|
|
11867
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_canUseDOM__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/canUseDOM */ \"./node_modules/dom-lib/esm/canUseDOM.js\");\n'use client';\n\n\nvar useIsomorphicLayoutEffect = dom_lib_canUseDOM__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;\n/* harmony default export */ __webpack_exports__[\"default\"] = (useIsomorphicLayoutEffect);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useIsomorphicLayoutEffect.js?");
|
|
11868
|
+
|
|
11869
|
+
/***/ }),
|
|
11870
|
+
|
|
11871
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useMount.js":
|
|
11872
|
+
/*!********************************************************!*\
|
|
11873
|
+
!*** ./node_modules/rsuite-table/es/hooks/useMount.js ***!
|
|
11874
|
+
\********************************************************/
|
|
11875
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11876
|
+
|
|
11877
|
+
"use strict";
|
|
11878
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ \"./node_modules/rsuite-table/es/hooks/useIsomorphicLayoutEffect.js\");\n'use client';\n\nvar useMount = function useMount(effect) {\n (0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(effect, []);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useMount);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useMount.js?");
|
|
11879
|
+
|
|
11880
|
+
/***/ }),
|
|
11881
|
+
|
|
11882
|
+
/***/ "./node_modules/rsuite-table/es/hooks/usePosition.js":
|
|
11883
|
+
/*!***********************************************************!*\
|
|
11884
|
+
!*** ./node_modules/rsuite-table/es/hooks/usePosition.js ***!
|
|
11885
|
+
\***********************************************************/
|
|
11886
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11887
|
+
|
|
11888
|
+
"use strict";
|
|
11889
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var _utils_toggleClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateEffect.js\");\n/* harmony import */ var _utils_isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/isSupportTouchEvent */ \"./node_modules/rsuite-table/es/utils/isSupportTouchEvent.js\");\n/* harmony import */ var _utils_defer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\n\n\n\n\n\n/**\n * Update the position of the table according to the scrolling information of the table.\n * @param props\n * @returns\n */\nvar usePosition = function usePosition(props) {\n var data = props.data,\n height = props.height,\n tableWidth = props.tableWidth,\n tableRef = props.tableRef,\n prefix = props.prefix,\n setCssPosition = props.setCssPosition,\n wheelWrapperRef = props.wheelWrapperRef,\n headerWrapperRef = props.headerWrapperRef,\n affixHeaderWrapperRef = props.affixHeaderWrapperRef,\n tableHeaderRef = props.tableHeaderRef,\n scrollX = props.scrollX,\n scrollY = props.scrollY,\n contentWidth = props.contentWidth,\n shouldFixedColumn = props.shouldFixedColumn;\n var duration = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var bezier = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)('linear');\n var getScrollCellGroups = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableRef$current;\n return ((_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.querySelectorAll(\".\" + prefix('cell-group-scroll'))) || [];\n }, [prefix, tableRef]);\n var getFixedLeftCellGroups = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableRef$current2;\n return (_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : _tableRef$current2.querySelectorAll(\".\" + prefix('cell-group-fixed-left'));\n }, [prefix, tableRef]);\n var getFixedRightCellGroups = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableRef$current3;\n return (_tableRef$current3 = tableRef.current) === null || _tableRef$current3 === void 0 ? void 0 : _tableRef$current3.querySelectorAll(\".\" + prefix('cell-group-fixed-right'));\n }, [prefix, tableRef]);\n var updateWheelElementPosition = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (fixedCell) {\n if (wheelWrapperRef !== null && wheelWrapperRef !== void 0 && wheelWrapperRef.current) {\n // The animation when the mobile device touches and scrolls.\n var wheelStyle = (0,_utils_isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_4__[\"default\"])() ? {\n 'transition-duration': duration.current + \"ms\",\n 'transition-timing-function': bezier.current\n } : {};\n setCssPosition.current(wheelStyle, fixedCell ? 0 : scrollX.current, scrollY.current);\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(wheelWrapperRef.current, wheelStyle);\n }\n }, [scrollX, scrollY, setCssPosition, wheelWrapperRef]);\n var updatePositionByFixedCell = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var wheelGroupStyle = {};\n var scrollGroups = getScrollCellGroups();\n var fixedLeftGroups = getFixedLeftCellGroups();\n var fixedRightGroups = getFixedRightCellGroups();\n setCssPosition.current(wheelGroupStyle, scrollX.current, 0);\n var scrollArrayGroups = Array.from(scrollGroups);\n for (var i = 0; i < scrollArrayGroups.length; i++) {\n var group = scrollArrayGroups[i];\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(group, wheelGroupStyle);\n }\n updateWheelElementPosition(true);\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var scrollbarWidth = hasHorizontalScrollbar ? 0 : _constants__WEBPACK_IMPORTED_MODULE_6__.SCROLLBAR_WIDTH;\n var leftShadowClassName = prefix('cell-group-left-shadow');\n var rightShadowClassName = prefix('cell-group-right-shadow');\n var showLeftShadow = scrollX.current < 0;\n var showRightShadow = tableWidth.current - contentWidth.current - scrollbarWidth !== scrollX.current;\n (0,_utils_toggleClass__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(fixedLeftGroups, leftShadowClassName, showLeftShadow);\n (0,_utils_toggleClass__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(fixedRightGroups, rightShadowClassName, showRightShadow);\n }, [contentWidth, getFixedLeftCellGroups, getFixedRightCellGroups, getScrollCellGroups, updateWheelElementPosition, prefix, scrollX, tableWidth, setCssPosition]);\n\n /**\n * Update the position of the table according to the scrolling information of the table.\n * @param nextDuration CSS transition-duration\n * @param nextBezier CSS transition-timing-function\n */\n var updatePosition = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextDuration, nextBezier) {\n if (nextDuration) {\n duration.current = nextDuration;\n }\n if (nextBezier) {\n bezier.current = nextBezier;\n }\n\n // When there are fixed columns.\n if (shouldFixedColumn) {\n updatePositionByFixedCell();\n } else {\n var _affixHeaderElement$h;\n var headerStyle = {};\n setCssPosition.current(headerStyle, scrollX.current, 0);\n var headerElement = headerWrapperRef === null || headerWrapperRef === void 0 ? void 0 : headerWrapperRef.current;\n var affixHeaderElement = affixHeaderWrapperRef === null || affixHeaderWrapperRef === void 0 ? void 0 : affixHeaderWrapperRef.current;\n updateWheelElementPosition();\n headerElement && (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(headerElement, headerStyle);\n if (affixHeaderElement !== null && affixHeaderElement !== void 0 && (_affixHeaderElement$h = affixHeaderElement.hasChildNodes) !== null && _affixHeaderElement$h !== void 0 && _affixHeaderElement$h.call(affixHeaderElement)) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(affixHeaderElement === null || affixHeaderElement === void 0 ? void 0 : affixHeaderElement.firstChild, headerStyle);\n }\n }\n if (tableHeaderRef !== null && tableHeaderRef !== void 0 && tableHeaderRef.current) {\n (0,_utils_toggleClass__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(tableHeaderRef.current, prefix('cell-group-shadow'), scrollY.current < 0);\n }\n }, [affixHeaderWrapperRef, updateWheelElementPosition, headerWrapperRef, prefix, scrollX, scrollY, shouldFixedColumn, tableHeaderRef, setCssPosition, updatePositionByFixedCell]);\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(function () {\n if (scrollY.current !== 0) {\n updatePosition();\n }\n }, [height, data]);\n return {\n forceUpdatePosition: updatePosition,\n deferUpdatePosition: function deferUpdatePosition(nextDuration, nextBezier) {\n (0,_utils_defer__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(function () {\n updatePosition(nextDuration, nextBezier);\n });\n }\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (usePosition);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/usePosition.js?");
|
|
11890
|
+
|
|
11891
|
+
/***/ }),
|
|
11892
|
+
|
|
11893
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useScrollListener.js":
|
|
11894
|
+
/*!*****************************************************************!*\
|
|
11895
|
+
!*** ./node_modules/rsuite-table/es/hooks/useScrollListener.js ***!
|
|
11896
|
+
\*****************************************************************/
|
|
11897
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11898
|
+
|
|
11899
|
+
"use strict";
|
|
11900
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_WheelHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/WheelHandler */ \"./node_modules/dom-lib/esm/WheelHandler.js\");\n/* harmony import */ var dom_lib_scrollLeft__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/scrollLeft */ \"./node_modules/dom-lib/esm/scrollLeft.js\");\n/* harmony import */ var dom_lib_scrollTop__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/scrollTop */ \"./node_modules/dom-lib/esm/scrollTop.js\");\n/* harmony import */ var dom_lib_on__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/on */ \"./node_modules/dom-lib/esm/on.js\");\n/* harmony import */ var dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-lib/removeStyle */ \"./node_modules/dom-lib/esm/removeStyle.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateEffect.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/hooks/useMount.js\");\n/* harmony import */ var _utils_isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/isSupportTouchEvent */ \"./node_modules/rsuite-table/es/utils/isSupportTouchEvent.js\");\n/* harmony import */ var _utils_flushSync__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/flushSync */ \"./node_modules/rsuite-table/es/utils/flushSync.js\");\n/* harmony import */ var _utils_defer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n/* harmony import */ var _utils_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/requestAnimationTimeout */ \"./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n\n\n// Inertial sliding start time threshold\nvar momentumTimeThreshold = 300;\n\n// Inertial sliding start vertical distance threshold\nvar momentumYThreshold = 15;\n\n//List of Arrow Keys for scrolling through keys\nvar arrowKeysList = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n/**\n * Calculate the distance of inertial sliding.\n */\nvar momentum = function momentum(current, start, duration) {\n // Inertial sliding acceleration.\n var deceleration = 0.003;\n var distance = current - start;\n var speed = 2 * Math.abs(distance) / duration;\n var destination = current + speed / deceleration * (distance < 0 ? -1 : 1);\n return {\n delta: current - destination,\n duration: _constants__WEBPACK_IMPORTED_MODULE_12__.TRANSITION_DURATION,\n bezier: _constants__WEBPACK_IMPORTED_MODULE_12__.BEZIER\n };\n};\n\n/**\n * Add scroll, touch, and wheel monitoring events to the table,\n * and update the scroll position of the table.\n * @param props\n * @returns\n */\nvar useScrollListener = function useScrollListener(props) {\n var data = props.data,\n autoHeight = props.autoHeight,\n tableBodyRef = props.tableBodyRef,\n scrollbarXRef = props.scrollbarXRef,\n scrollbarYRef = props.scrollbarYRef,\n disabledScroll = props.disabledScroll,\n loading = props.loading,\n tableRef = props.tableRef,\n contentWidth = props.contentWidth,\n tableWidth = props.tableWidth,\n scrollY = props.scrollY,\n minScrollY = props.minScrollY,\n minScrollX = props.minScrollX,\n scrollX = props.scrollX,\n setScrollX = props.setScrollX,\n setScrollY = props.setScrollY,\n virtualized = props.virtualized,\n forceUpdatePosition = props.forceUpdatePosition,\n deferUpdatePosition = props.deferUpdatePosition,\n onScroll = props.onScroll,\n onTouchMove = props.onTouchMove,\n onTouchStart = props.onTouchStart,\n onTouchEnd = props.onTouchEnd,\n heightProp = props.height,\n getTableHeight = props.getTableHeight,\n contentHeight = props.contentHeight,\n headerHeight = props.headerHeight,\n rtl = props.rtl;\n var wheelListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var touchStartListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var touchMoveListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var touchEndListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n isScrolling = _useState[0],\n setScrolling = _useState[1];\n var touchX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var touchY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var disableEventsTimeoutId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);\n var isTouching = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);\n\n // The start time within the inertial sliding range.\n var momentumStartTime = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n\n // The vertical starting value within the inertial sliding range.\n var momentumStartY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var shouldHandleWheelX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta) {\n if (delta === 0 || disabledScroll || loading) {\n return false;\n }\n return true;\n }, [disabledScroll, loading]);\n var shouldHandleWheelY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta) {\n if (delta === 0 || disabledScroll || loading || autoHeight) {\n return false;\n }\n if (typeof scrollY.current === 'number' && typeof minScrollY.current === 'number') {\n return delta >= 0 && scrollY.current > minScrollY.current || delta < 0 && scrollY.current < 0;\n }\n }, [autoHeight, disabledScroll, loading, minScrollY, scrollY]);\n var debounceScrollEndedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n disableEventsTimeoutId.current = null;\n\n // Forces the end of scrolling to be prioritized so that virtualized long lists can update rendering.\n // There will be no scrolling white screen.\n (0,_utils_flushSync__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(function () {\n return setScrolling(false);\n });\n }, []);\n\n /**\n * Triggered when scrolling, including: wheel/touch/scroll\n * @param deltaX\n * @param deltaY\n * @param momentumOptions The configuration of inertial scrolling is used for the touch event.\n */\n var handleWheel = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (deltaX, deltaY, momentumOptions, event) {\n if (!tableRef.current) {\n return;\n }\n var nextScrollX = contentWidth.current <= tableWidth.current ? 0 : scrollX.current - deltaX;\n var nextScrollY = scrollY.current - deltaY;\n var y = Math.min(0, nextScrollY < minScrollY.current ? minScrollY.current : nextScrollY);\n var x = Math.min(0, nextScrollX < minScrollX.current ? minScrollX.current : nextScrollX);\n setScrollX(x);\n setScrollY(y);\n onScroll === null || onScroll === void 0 || onScroll(Math.abs(x), Math.abs(y));\n if (virtualized) {\n // Add a state to the table during virtualized scrolling.\n // Make it set CSS `pointer-events:none` on the DOM to avoid wrong event interaction.\n\n (0,_utils_flushSync__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(function () {\n return setScrolling(true);\n });\n if (disableEventsTimeoutId.current) {\n (0,_utils_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_11__.cancelAnimationTimeout)(disableEventsTimeoutId.current);\n }\n disableEventsTimeoutId.current = (0,_utils_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_11__.requestAnimationTimeout)(debounceScrollEndedCallback,\n // When momentum is enabled, set a delay of 50ms rendering.\n momentumOptions !== null && momentumOptions !== void 0 && momentumOptions.duration ? 50 : 0);\n }\n\n // When the user clicks on the scrollbar, the scrollbar will be moved to the clicked position.\n if ((event === null || event === void 0 ? void 0 : event.type) === 'click') {\n /**\n * With virtualized enabled, the list will be re-rendered on every scroll.\n * Update the position of the rendered list with a delay.\n * fix: https://github.com/rsuite/rsuite/issues/2378\n */\n deferUpdatePosition(momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.duration, momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.bezier);\n return;\n }\n forceUpdatePosition(momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.duration, momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.bezier);\n }, [tableRef, contentWidth, tableWidth, scrollX, scrollY, minScrollY, minScrollX, setScrollX, setScrollY, onScroll, forceUpdatePosition, deferUpdatePosition, virtualized, debounceScrollEndedCallback]);\n var onWheel = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (deltaX, deltaY, momentumOptions) {\n var _scrollbarXRef$curren, _scrollbarXRef$curren2, _scrollbarYRef$curren, _scrollbarYRef$curren2;\n handleWheel(deltaX, deltaY, momentumOptions);\n (_scrollbarXRef$curren = scrollbarXRef.current) === null || _scrollbarXRef$curren === void 0 || (_scrollbarXRef$curren2 = _scrollbarXRef$curren.onWheelScroll) === null || _scrollbarXRef$curren2 === void 0 || _scrollbarXRef$curren2.call(_scrollbarXRef$curren, deltaX);\n (_scrollbarYRef$curren = scrollbarYRef.current) === null || _scrollbarYRef$curren === void 0 || (_scrollbarYRef$curren2 = _scrollbarYRef$curren.onWheelScroll) === null || _scrollbarYRef$curren2 === void 0 || _scrollbarYRef$curren2.call(_scrollbarYRef$curren, deltaY, momentumOptions !== null && momentumOptions !== void 0 && momentumOptions.duration ? true : false);\n }, [handleWheel, scrollbarXRef, scrollbarYRef]);\n var wheelHandler = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n\n // Stop unending scrolling and remove transition\n var stopScroll = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableBodyRef$current, _scrollbarYRef$curren3;\n var wheelElement = (_tableBodyRef$current = tableBodyRef.current) === null || _tableBodyRef$current === void 0 ? void 0 : _tableBodyRef$current.querySelector('.rs-table-body-wheel-area');\n var handleElement = (_scrollbarYRef$curren3 = scrollbarYRef.current) === null || _scrollbarYRef$curren3 === void 0 ? void 0 : _scrollbarYRef$curren3.handle;\n var transitionCSS = ['transition-duration', 'transition-timing-function'];\n if (!virtualized && wheelElement) {\n // Get the current translate position.\n var matrix = window.getComputedStyle(wheelElement).getPropertyValue('transform');\n var offsetY = Math.round(+matrix.split(')')[0].split(', ')[5]);\n setScrollY(offsetY);\n }\n if (wheelElement) {\n (0,dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(wheelElement, transitionCSS);\n }\n if (handleElement) {\n (0,dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(handleElement, transitionCSS);\n }\n }, [scrollbarYRef, setScrollY, tableBodyRef, virtualized]);\n\n // Handle the Touch event and initialize it when touchstart is triggered.\n var handleTouchStart = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n var _event$touches$ = event.touches[0],\n pageX = _event$touches$.pageX,\n pageY = _event$touches$.pageY;\n touchX.current = pageX;\n touchY.current = pageY;\n momentumStartTime.current = new Date().getTime();\n momentumStartY.current = scrollY.current;\n isTouching.current = true;\n onTouchStart === null || onTouchStart === void 0 || onTouchStart(event);\n\n // Stop unfinished scrolling when Touch starts.\n stopScroll();\n }, [onTouchStart, scrollY, stopScroll]);\n\n // Handle the Touch event and update the scroll when touchmove is triggered.\n var handleTouchMove = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (!isTouching.current) {\n return;\n }\n var _event$touches$2 = event.touches[0],\n pageX = _event$touches$2.pageX,\n pageY = _event$touches$2.pageY;\n var deltaX = touchX.current - pageX;\n var deltaY = autoHeight ? 0 : touchY.current - pageY;\n if (!shouldHandleWheelY(deltaY) && !shouldHandleWheelX(deltaX)) {\n return;\n }\n\n /**\n * Prevent the default touch event when the table is scrollable.\n * fix: https://github.com/rsuite/rsuite-table/commit/21785fc18f430519ab5885c44540d9ffc30de366#commitcomment-36236425\n */\n if (!autoHeight && shouldHandleWheelY(deltaY)) {\n var _event$preventDefault;\n (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 || _event$preventDefault.call(event);\n }\n var now = new Date().getTime();\n onWheel(deltaX, deltaY);\n touchX.current = pageX;\n touchY.current = pageY;\n\n // Record the offset value and time under the condition of triggering inertial scrolling.\n if (now - momentumStartTime.current > momentumTimeThreshold) {\n momentumStartY.current = scrollY.current;\n momentumStartTime.current = now;\n }\n onTouchMove === null || onTouchMove === void 0 || onTouchMove(event);\n }, [autoHeight, onWheel, onTouchMove, scrollY, shouldHandleWheelX, shouldHandleWheelY]);\n var handleTouchEnd = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (!isTouching.current) {\n return;\n }\n isTouching.current = false;\n var touchDuration = new Date().getTime() - momentumStartTime.current;\n var absDeltaY = Math.abs(scrollY.current - momentumStartY.current);\n\n // Enable inertial sliding.\n if (touchDuration < momentumTimeThreshold && absDeltaY > momentumYThreshold) {\n var _momentum = momentum(scrollY.current, momentumStartY.current, touchDuration),\n delta = _momentum.delta,\n duration = _momentum.duration,\n bezier = _momentum.bezier;\n onWheel(0, delta, {\n duration: duration,\n bezier: bezier\n });\n onTouchEnd === null || onTouchEnd === void 0 || onTouchEnd(event);\n }\n }, [onWheel, onTouchEnd, scrollY]);\n\n /**\n * When the user uses the tab key in the Table, the onScroll event is triggered,\n * and the scroll bar position should be updated at the same time.\n * https://github.com/rsuite/rsuite/issues/234\n */\n var onScrollBody = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (event.target !== tableBodyRef.current) {\n return;\n }\n var left = (0,dom_lib_scrollLeft__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(event.target);\n var top = (0,dom_lib_scrollTop__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(event.target);\n if (top === 0 && left === 0) {\n return;\n }\n onWheel(left, top);\n (0,dom_lib_scrollLeft__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(event.target, 0);\n (0,dom_lib_scrollTop__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(event.target, 0);\n }, [onWheel, tableBodyRef]);\n var getControlledScrollTopValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {\n if (autoHeight) {\n return [0, 0];\n }\n var height = getTableHeight();\n\n // The maximum range of scrolling value is judged.\n value = Math.min(value, Math.max(0, contentHeight.current - (height - headerHeight)));\n\n // The value is a value of the theoretical scroll position of the table,\n // and the scrollY coordinate value and the value of the scroll bar position are calculated by value.\n return [-value, value / contentHeight.current * (height - headerHeight)];\n }, [autoHeight, contentHeight, getTableHeight, headerHeight]);\n var rerender = function rerender() {\n setScrolling(true);\n (0,_utils_defer__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(function () {\n if (tableBodyRef.current) {\n setScrolling(false);\n }\n });\n };\n var getControlledScrollLeftValue = function getControlledScrollLeftValue(value) {\n // The maximum range of scrolling value is judged.\n value = Math.min(value, Math.max(0, contentWidth.current - tableWidth.current));\n return [-value, value / contentWidth.current * tableWidth.current];\n };\n var onScrollTop = function onScrollTop(top) {\n var _scrollbarYRef$curren4, _scrollbarYRef$curren5;\n if (top === void 0) {\n top = 0;\n }\n var _getControlledScrollT = getControlledScrollTopValue(top),\n nextScrollY = _getControlledScrollT[0],\n handleScrollY = _getControlledScrollT[1];\n var height = getTableHeight();\n if (!loading && nextScrollY !== scrollY.current) {\n onScroll === null || onScroll === void 0 || onScroll(Math.abs(scrollX.current), Math.abs(nextScrollY));\n }\n setScrollY(nextScrollY);\n scrollbarYRef === null || scrollbarYRef === void 0 || (_scrollbarYRef$curren4 = scrollbarYRef.current) === null || _scrollbarYRef$curren4 === void 0 || (_scrollbarYRef$curren5 = _scrollbarYRef$curren4.resetScrollBarPosition) === null || _scrollbarYRef$curren5 === void 0 || _scrollbarYRef$curren5.call(_scrollbarYRef$curren4, handleScrollY);\n deferUpdatePosition();\n\n /**\n * After calling `scrollTop`, a white screen will appear when `virtualized` is true.\n * The reason is that the coordinates of the DOM are directly manipulated,\n * but the component is not re-rendered. Need to call `rerender`.\n * Fix: rsuite#1044\n */\n if (virtualized && contentHeight.current > height) {\n rerender();\n }\n };\n var onScrollLeft = function onScrollLeft(left) {\n var _scrollbarXRef$curren3, _scrollbarXRef$curren4;\n if (left === void 0) {\n left = 0;\n }\n var _getControlledScrollL = getControlledScrollLeftValue(left),\n nextScrollX = _getControlledScrollL[0],\n scrollbarX = _getControlledScrollL[1];\n setScrollX(nextScrollX);\n !loading && (onScroll === null || onScroll === void 0 ? void 0 : onScroll(Math.abs(nextScrollX), Math.abs(scrollY.current)));\n scrollbarXRef === null || scrollbarXRef === void 0 || (_scrollbarXRef$curren3 = scrollbarXRef.current) === null || _scrollbarXRef$curren3 === void 0 || (_scrollbarXRef$curren4 = _scrollbarXRef$curren3.resetScrollBarPosition) === null || _scrollbarXRef$curren4 === void 0 || _scrollbarXRef$curren4.call(_scrollbarXRef$curren3, scrollbarX);\n deferUpdatePosition();\n };\n var onScrollTo = function onScrollTo(coord) {\n var _ref = coord || {},\n x = _ref.x,\n y = _ref.y;\n if (typeof x === 'number') {\n onScrollLeft(x);\n }\n if (typeof y === 'number') {\n onScrollTop(y);\n }\n };\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n if (scrollY.current !== 0) {\n onScrollTop(Math.abs(scrollY.current));\n }\n\n // fix: #405 #404\n deferUpdatePosition();\n }, [heightProp, data]);\n var releaseListeners = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _wheelListener$curren, _touchStartListener$c, _touchMoveListener$cu, _touchEndListener$cur;\n wheelHandler.current = null;\n (_wheelListener$curren = wheelListener.current) === null || _wheelListener$curren === void 0 || _wheelListener$curren.off();\n (_touchStartListener$c = touchStartListener.current) === null || _touchStartListener$c === void 0 || _touchStartListener$c.off();\n (_touchMoveListener$cu = touchMoveListener.current) === null || _touchMoveListener$cu === void 0 || _touchMoveListener$cu.off();\n (_touchEndListener$cur = touchEndListener.current) === null || _touchEndListener$cur === void 0 || _touchEndListener$cur.off();\n }, []);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n var options = {\n passive: false\n };\n var tableBody = tableBodyRef.current;\n if (tableBody) {\n // Reset the listener after props is updated.\n releaseListeners();\n wheelHandler.current = new dom_lib_WheelHandler__WEBPACK_IMPORTED_MODULE_1__[\"default\"](onWheel, shouldHandleWheelX, shouldHandleWheelY, false);\n wheelListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'wheel', wheelHandler.current.onWheel, options);\n if ((0,_utils_isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_8__[\"default\"])()) {\n touchStartListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'touchstart', handleTouchStart, options);\n touchMoveListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'touchmove', handleTouchMove, options);\n touchEndListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'touchend', handleTouchEnd, options);\n }\n }\n return releaseListeners;\n }, [handleTouchEnd, handleTouchMove, handleTouchStart, onWheel, releaseListeners, shouldHandleWheelX, shouldHandleWheelY, tableBodyRef]);\n var onScrollByKeydown = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (event.currentTarget === event.target && arrowKeysList.indexOf(event.key) > -1) {\n event.preventDefault();\n var step = 40;\n switch (event.key) {\n case 'ArrowUp':\n onWheel(0, -step);\n break;\n case 'ArrowDown':\n onWheel(0, step);\n break;\n case 'ArrowLeft':\n onWheel(-step, 0);\n break;\n case 'ArrowRight':\n onWheel(step, 0);\n break;\n }\n }\n }, [onWheel]);\n (0,_useMount__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(function () {\n if (rtl) {\n var _scrollbarXRef$curren5, _scrollbarXRef$curren6;\n // Initialize scroll position\n setScrollX(tableWidth.current - contentWidth.current - _constants__WEBPACK_IMPORTED_MODULE_12__.SCROLLBAR_WIDTH);\n scrollbarXRef === null || scrollbarXRef === void 0 || (_scrollbarXRef$curren5 = scrollbarXRef.current) === null || _scrollbarXRef$curren5 === void 0 || (_scrollbarXRef$curren6 = _scrollbarXRef$curren5.resetScrollBarPosition) === null || _scrollbarXRef$curren6 === void 0 || _scrollbarXRef$curren6.call(_scrollbarXRef$curren5, -scrollX.current);\n forceUpdatePosition();\n }\n });\n var onScrollHorizontal = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta) {\n return handleWheel(delta, 0);\n }, [handleWheel]);\n var onScrollVertical = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta, event) {\n return handleWheel(0, delta, undefined, event);\n }, [handleWheel]);\n return {\n isScrolling: isScrolling,\n onScrollHorizontal: onScrollHorizontal,\n onScrollVertical: onScrollVertical,\n onScrollBody: onScrollBody,\n onScrollTop: onScrollTop,\n onScrollLeft: onScrollLeft,\n onScrollTo: onScrollTo,\n onScrollByKeydown: onScrollByKeydown\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useScrollListener);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useScrollListener.js?");
|
|
11901
|
+
|
|
11902
|
+
/***/ }),
|
|
11903
|
+
|
|
11904
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useTable.js":
|
|
11905
|
+
/*!********************************************************!*\
|
|
11906
|
+
!*** ./node_modules/rsuite-table/es/hooks/useTable.js ***!
|
|
11907
|
+
\********************************************************/
|
|
11908
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11909
|
+
|
|
11910
|
+
"use strict";
|
|
11911
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ useTable: function() { return /* binding */ useTable; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _TableProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../TableProvider */ \"./node_modules/rsuite-table/es/TableProvider.js\");\n/* harmony import */ var _utils_setCssPosition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/setCssPosition */ \"./node_modules/rsuite-table/es/utils/setCssPosition.js\");\n/* harmony import */ var _utils_isRTL__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/isRTL */ \"./node_modules/rsuite-table/es/utils/isRTL.js\");\n'use client';\n\n\n\n\nvar useTable = function useTable() {\n var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_TableProvider__WEBPACK_IMPORTED_MODULE_1__.TableContext),\n _useContext$setCssPos = _useContext.setCssPosition,\n setCssPosition = _useContext$setCssPos === void 0 ? _utils_setCssPosition__WEBPACK_IMPORTED_MODULE_2__[\"default\"] : _useContext$setCssPos,\n _useContext$rtl = _useContext.rtl,\n rtl = _useContext$rtl === void 0 ? (0,_utils_isRTL__WEBPACK_IMPORTED_MODULE_3__[\"default\"])() : _useContext$rtl,\n hasCustomTreeCol = _useContext.hasCustomTreeCol,\n isTree = _useContext.isTree,\n classPrefix = _useContext.classPrefix;\n return {\n setCssPosition: setCssPosition,\n rtl: rtl,\n hasCustomTreeCol: hasCustomTreeCol,\n isTree: isTree,\n classPrefix: classPrefix\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTable);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useTable.js?");
|
|
11912
|
+
|
|
11913
|
+
/***/ }),
|
|
11914
|
+
|
|
11915
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useTableData.js":
|
|
11916
|
+
/*!************************************************************!*\
|
|
11917
|
+
!*** ./node_modules/rsuite-table/es/hooks/useTableData.js ***!
|
|
11918
|
+
\************************************************************/
|
|
11919
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11920
|
+
|
|
11921
|
+
"use strict";
|
|
11922
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateEffect.js\");\n/* harmony import */ var _utils_flattenData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/flattenData */ \"./node_modules/rsuite-table/es/utils/flattenData.js\");\n/* harmony import */ var _utils_findAllParents__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/findAllParents */ \"./node_modules/rsuite-table/es/utils/findAllParents.js\");\n/* harmony import */ var _utils_shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/shouldShowRowByExpanded */ \"./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\n\n\n\n\n/**\n * Filter those expanded nodes.\n * @param data\n * @param expandedRowKeys\n * @param rowKey\n * @returns\n */\nvar filterTreeData = function filterTreeData(data, expandedRowKeys, rowKey) {\n return (0,_utils_flattenData__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(data).filter(function (rowData) {\n if (rowKey) {\n var parents = (0,_utils_findAllParents__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(rowData, rowKey);\n var expanded = (0,_utils_shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(expandedRowKeys, parents);\n\n // FIXME This function is supposed to be pure.\n // Don't mutate rowData in-place!\n rowData[_constants__WEBPACK_IMPORTED_MODULE_5__.EXPANDED_KEY] = expanded;\n rowData[_constants__WEBPACK_IMPORTED_MODULE_5__.TREE_DEPTH] = parents.length;\n return expanded;\n }\n });\n};\nfunction useTableData(props) {\n var data = props.data,\n isTree = props.isTree,\n expandedRowKeys = props.expandedRowKeys,\n rowKey = props.rowKey;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(function () {\n return isTree ? filterTreeData(data, expandedRowKeys, rowKey) : data;\n }),\n tableData = _useState[0],\n setData = _useState[1];\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function () {\n setData(isTree ? filterTreeData(data, expandedRowKeys, rowKey) : data);\n }, [data, expandedRowKeys, rowKey, isTree]);\n return tableData;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTableData);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useTableData.js?");
|
|
11923
|
+
|
|
11924
|
+
/***/ }),
|
|
11925
|
+
|
|
11926
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useTableDimension.js":
|
|
11927
|
+
/*!*****************************************************************!*\
|
|
11928
|
+
!*** ./node_modules/rsuite-table/es/hooks/useTableDimension.js ***!
|
|
11929
|
+
\*****************************************************************/
|
|
11930
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11931
|
+
|
|
11932
|
+
"use strict";
|
|
11933
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_getWidth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/getWidth */ \"./node_modules/dom-lib/esm/getWidth.js\");\n/* harmony import */ var dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/getHeight */ \"./node_modules/dom-lib/esm/getHeight.js\");\n/* harmony import */ var dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/getOffset */ \"./node_modules/dom-lib/esm/getOffset.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/hooks/useMount.js\");\n/* harmony import */ var _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useUpdateLayoutEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateLayoutEffect.js\");\n/* harmony import */ var _useIntersectionObserver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useIntersectionObserver */ \"./node_modules/rsuite-table/es/hooks/useIntersectionObserver.js\");\n/* harmony import */ var _utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony import */ var _juggle_resize_observer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @juggle/resize-observer */ \"./node_modules/@juggle/resize-observer/lib/exports/resize-observer.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n/**\n * The dimension information of the table,\n * including the height, width, scrollable distance and the coordinates of the scroll handle, etc.\n * @param props\n * @returns\n */\nvar useTableDimension = function useTableDimension(props) {\n var data = props.data,\n rowHeight = props.rowHeight,\n tableRef = props.tableRef,\n headerWrapperRef = props.headerWrapperRef,\n prefix = props.prefix,\n widthProp = props.width,\n affixHeader = props.affixHeader,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n headerHeight = props.headerHeight,\n heightProp = props.height,\n autoHeightProp = props.autoHeight,\n minHeight = props.minHeight,\n maxHeight = props.maxHeight,\n fillHeight = props.fillHeight,\n children = props.children,\n expandedRowKeys = props.expandedRowKeys,\n showHeader = props.showHeader,\n bordered = props.bordered,\n onTableResizeChange = props.onTableResizeChange,\n onTableScroll = props.onTableScroll;\n var contentHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var contentWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var minScrollY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var scrollY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var scrollX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var minScrollX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var tableWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(widthProp || 0);\n var tableHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(heightProp || 0);\n var columnCount = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var resizeObserver = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var containerResizeObserver = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var headerOffset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);\n var tableOffset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);\n var autoHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {\n return autoHeightProp && !maxHeight;\n }, [autoHeightProp, maxHeight]);\n var getRowHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (rowData) {\n return typeof rowHeight === 'function' ? rowHeight(rowData) : rowHeight;\n }, [rowHeight]);\n var calculateTableContextHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _table$querySelectorA;\n var prevContentHeight = contentHeight.current;\n var table = tableRef === null || tableRef === void 0 ? void 0 : tableRef.current;\n var rows = (table === null || table === void 0 ? void 0 : table.querySelectorAll(\".\" + (prefix === null || prefix === void 0 ? void 0 : prefix('row')))) || [];\n var virtualized = (table === null || table === void 0 || (_table$querySelectorA = table.querySelectorAll('.virtualized')) === null || _table$querySelectorA === void 0 ? void 0 : _table$querySelectorA.length) > 0;\n var nextContentHeight = rows.length ? Array.from(rows).map(function (row, index) {\n return (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(row) || getRowHeight(data === null || data === void 0 ? void 0 : data[index]);\n }).reduce(function (x, y) {\n return x + y;\n }) : 0;\n\n // After setting the affixHeader property, the height of the two headers should be subtracted.\n contentHeight.current = Math.round(nextContentHeight - (affixHeader ? headerHeight * 2 : headerHeight));\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n\n // The height of the table content area should be added to the height occupied by the horizontal scroll bar when autoHeight is set.\n if (autoHeight && hasHorizontalScrollbar) {\n contentHeight.current += _constants__WEBPACK_IMPORTED_MODULE_10__.SCROLLBAR_WIDTH;\n }\n var height = fillHeight ? tableHeight.current : Math.max(heightProp, maxHeight || 0);\n var tableBodyHeight = showHeader ? height - headerHeight : height;\n if (!autoHeight) {\n /**\n * The purpose of subtracting SCROLLBAR_WIDTH is to keep the scroll bar from blocking the content part.\n * But it will only be calculated when there is a horizontal scroll bar (contentWidth > tableWidth).\n */\n minScrollY.current = -(nextContentHeight - height) - (hasHorizontalScrollbar ? _constants__WEBPACK_IMPORTED_MODULE_10__.SCROLLBAR_WIDTH : 0);\n }\n\n // If the height of the content area is less than the height of the table, the vertical scroll bar is reset.\n if (nextContentHeight < height) {\n onTableScroll === null || onTableScroll === void 0 || onTableScroll({\n y: 0\n });\n }\n var currentScrollTop = Math.abs(scrollY.current);\n\n // When Table is set to virtualized, the logic will be entered every time the wheel event is\n // triggered to avoid resetting the scroll bar after scrolling to the bottom, so add the SCROLLBAR_WIDTH value.\n var maxScrollTop = nextContentHeight + _constants__WEBPACK_IMPORTED_MODULE_10__.SCROLLBAR_WIDTH - tableBodyHeight;\n\n // If the top value of the current scroll is greater than the scrollable range,\n // keep the vertical scroll bar at the bottom.\n if (maxScrollTop > 0 && currentScrollTop > maxScrollTop) {\n if (virtualized) {\n onTableScroll === null || onTableScroll === void 0 || onTableScroll({\n y: ((data === null || data === void 0 ? void 0 : data.length) || 0) * getRowHeight() - tableBodyHeight\n });\n } else {\n onTableScroll === null || onTableScroll === void 0 || onTableScroll({\n y: maxScrollTop\n });\n }\n }\n if (prevContentHeight !== contentHeight.current) {\n onTableResizeChange === null || onTableResizeChange === void 0 || onTableResizeChange(prevContentHeight, 'bodyHeightChanged');\n }\n }, [tableRef, prefix, affixHeader, headerHeight, autoHeight, maxHeight, fillHeight, heightProp, showHeader, getRowHeight, data, onTableScroll, onTableResizeChange]);\n var setOffsetByAffix = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var headerNode = headerWrapperRef === null || headerWrapperRef === void 0 ? void 0 : headerWrapperRef.current;\n if ((0,_utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(affixHeader) && headerNode) {\n headerOffset.current = (0,dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(headerNode);\n }\n if ((0,_utils_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(affixHorizontalScrollbar) && tableRef !== null && tableRef !== void 0 && tableRef.current) {\n tableOffset.current = (0,dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(tableRef === null || tableRef === void 0 ? void 0 : tableRef.current);\n }\n }, [affixHeader, affixHorizontalScrollbar, headerWrapperRef, tableRef]);\n var calculateTableContentWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var prevWidth = contentWidth.current;\n var prevColumnCount = columnCount.current;\n var table = tableRef === null || tableRef === void 0 ? void 0 : tableRef.current;\n var row = table === null || table === void 0 ? void 0 : table.querySelector(\".\" + prefix('row') + \":not(.virtualized)\");\n var nextContentWidth = row ? (0,dom_lib_getWidth__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(row) : 0;\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var scrollbarWidth = hasHorizontalScrollbar ? 0 : _constants__WEBPACK_IMPORTED_MODULE_10__.SCROLLBAR_WIDTH;\n contentWidth.current = nextContentWidth - (autoHeight ? scrollbarWidth : 0);\n columnCount.current = (row === null || row === void 0 ? void 0 : row.querySelectorAll(\".\" + prefix('cell')).length) || 0;\n\n // The value of SCROLLBAR_WIDTH is subtracted so that the scroll bar does not block the content part.\n // There is no vertical scroll bar after autoHeight.\n var minScrollWidth = -(nextContentWidth - tableWidth.current) - (autoHeight ? 0 : scrollbarWidth);\n if (minScrollX.current !== minScrollWidth) {\n minScrollX.current = minScrollWidth;\n if (scrollX.current < minScrollWidth) {\n // fix: 405#issuecomment-1464831646\n scrollX.current = minScrollWidth;\n }\n }\n\n /**\n * If the width of the content area and the number of columns change,\n * the horizontal scroll bar is reset.\n * fix: https://github.com/rsuite/rsuite/issues/2039\n */\n if (prevWidth > 0 && prevWidth !== contentWidth.current || prevColumnCount > 0 && prevColumnCount !== columnCount.current) {\n onTableResizeChange === null || onTableResizeChange === void 0 || onTableResizeChange(prevWidth, 'bodyWidthChanged');\n }\n }, [autoHeight, onTableResizeChange, prefix, tableRef]);\n var calculateTableWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextWidth) {\n var prevWidth = tableWidth.current;\n if (tableRef !== null && tableRef !== void 0 && tableRef.current) {\n tableWidth.current = nextWidth || (0,dom_lib_getWidth__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(tableRef === null || tableRef === void 0 ? void 0 : tableRef.current);\n }\n if (prevWidth && prevWidth !== tableWidth.current) {\n scrollX.current = 0;\n onTableResizeChange === null || onTableResizeChange === void 0 || onTableResizeChange(prevWidth, 'widthChanged');\n }\n setOffsetByAffix();\n }, [onTableResizeChange, setOffsetByAffix, tableRef]);\n var calculateTableHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextHeight) {\n var prevHeight = tableHeight.current;\n if (nextHeight) {\n tableHeight.current = nextHeight;\n } else if (tableRef !== null && tableRef !== void 0 && tableRef.current) {\n tableHeight.current = (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(tableRef.current.parentNode);\n }\n if (prevHeight && prevHeight !== tableHeight.current) {\n onTableResizeChange === null || onTableResizeChange === void 0 || onTableResizeChange(prevHeight, 'heightChanged');\n }\n }, [onTableResizeChange, tableRef]);\n (0,_useMount__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(function () {\n var _tableRef$current;\n calculateTableContextHeight();\n calculateTableContentWidth();\n calculateTableWidth();\n calculateTableHeight();\n setOffsetByAffix();\n containerResizeObserver.current = new _juggle_resize_observer__WEBPACK_IMPORTED_MODULE_9__.ResizeObserver(function (entries) {\n calculateTableHeight(entries[0].contentRect.height);\n });\n containerResizeObserver.current.observe(tableRef === null || tableRef === void 0 || (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.parentNode);\n var changeTableWidthWhenResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(function (entries) {\n var width = entries[0].contentRect.width;\n // bordered table width is 1px larger than the container width. fix: #405 #404\n var widthWithBorder = width + 2;\n calculateTableWidth(bordered ? widthWithBorder : width);\n }, 20);\n resizeObserver.current = new _juggle_resize_observer__WEBPACK_IMPORTED_MODULE_9__.ResizeObserver(changeTableWidthWhenResize);\n resizeObserver.current.observe(tableRef === null || tableRef === void 0 ? void 0 : tableRef.current);\n return function () {\n var _resizeObserver$curre, _containerResizeObser;\n (_resizeObserver$curre = resizeObserver.current) === null || _resizeObserver$curre === void 0 || _resizeObserver$curre.disconnect();\n (_containerResizeObser = containerResizeObserver.current) === null || _containerResizeObser === void 0 || _containerResizeObser.disconnect();\n };\n });\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n calculateTableHeight();\n calculateTableContextHeight();\n }, [fillHeight]);\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n calculateTableWidth();\n calculateTableContentWidth();\n calculateTableContextHeight();\n }, [data, heightProp, contentHeight.current, expandedRowKeys, children, calculateTableContextHeight, calculateTableContentWidth]);\n var isVisible = (0,_useIntersectionObserver__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(tableRef);\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n // When the table is visible, the width of the table is recalculated.\n // fix: https://github.com/rsuite/rsuite/issues/397\n if (isVisible) {\n calculateTableWidth();\n calculateTableContentWidth();\n }\n }, [isVisible]);\n var setScrollY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {\n scrollY.current = value;\n }, []);\n var setScrollX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {\n scrollX.current = value;\n }, []);\n var getTableHeight = function getTableHeight() {\n if (fillHeight) {\n return tableHeight.current;\n }\n\n // When the data is empty and autoHeight is set, use the default height to display the empty state.\n if ((data === null || data === void 0 ? void 0 : data.length) === 0 && autoHeight) {\n return heightProp;\n }\n var height = autoHeightProp ? headerHeight + contentHeight.current : heightProp;\n if (maxHeight && height > maxHeight) {\n return maxHeight;\n }\n if (minHeight && height < minHeight) {\n return minHeight;\n }\n return height;\n };\n return {\n contentHeight: contentHeight,\n contentWidth: contentWidth,\n minScrollY: minScrollY,\n minScrollX: minScrollX,\n scrollY: scrollY,\n scrollX: scrollX,\n tableWidth: tableWidth,\n headerOffset: headerOffset,\n tableOffset: tableOffset,\n getTableHeight: getTableHeight,\n setScrollY: setScrollY,\n setScrollX: setScrollX\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTableDimension);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useTableDimension.js?");
|
|
11934
|
+
|
|
11935
|
+
/***/ }),
|
|
11936
|
+
|
|
11937
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useTableRows.js":
|
|
11938
|
+
/*!************************************************************!*\
|
|
11939
|
+
!*** ./node_modules/rsuite-table/es/hooks/useTableRows.js ***!
|
|
11940
|
+
\************************************************************/
|
|
11941
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11942
|
+
|
|
11943
|
+
"use strict";
|
|
11944
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/getHeight */ \"./node_modules/dom-lib/esm/getHeight.js\");\n/* harmony import */ var _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useUpdateLayoutEffect */ \"./node_modules/rsuite-table/es/hooks/useUpdateLayoutEffect.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/hooks/useMount.js\");\n/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ \"./node_modules/lodash/isEmpty.js\");\n/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_defer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n'use client';\n\n\n\n\n\n\n/**\n * The row information of the table, get the DOM of all rows, and summarize the row height.\n * @param props\n * @returns\n */\nvar useTableRows = function useTableRows(props) {\n var prefix = props.prefix,\n wordWrap = props.wordWrap,\n data = props.data,\n expandedRowKeys = props.expandedRowKeys;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),\n tableRowsMaxHeight = _useState[0],\n setTableRowsMaxHeight = _useState[1];\n var tableRows = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({});\n var bindTableRowsRef = function bindTableRowsRef(index, rowData) {\n return function (ref) {\n if (ref) {\n tableRows.current[index] = [ref, rowData];\n }\n };\n };\n var calculateRowMaxHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n if (wordWrap) {\n var nextTableRowsMaxHeight = [];\n var curTableRows = Object.values(tableRows.current);\n for (var i = 0; i < curTableRows.length; i++) {\n var _curTableRows$i = curTableRows[i],\n row = _curTableRows$i[0];\n if (row) {\n var cells = row.querySelectorAll(\".\" + prefix('cell-wrap')) || [];\n var cellArray = Array.from(cells);\n var maxHeight = 0;\n for (var j = 0; j < cellArray.length; j++) {\n var cell = cellArray[j];\n var h = (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(cell);\n maxHeight = Math.max(maxHeight, h);\n }\n nextTableRowsMaxHeight.push(maxHeight);\n }\n }\n\n // Can't perform a React state update on an unmounted component\n if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(tableRows.current)) {\n setTableRowsMaxHeight(nextTableRowsMaxHeight);\n }\n }\n }, [prefix, wordWrap]);\n (0,_useMount__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(function () {\n (0,_utils_defer__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(calculateRowMaxHeight);\n });\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(function () {\n /**\n * After the data is updated, the height of the cell DOM needs to be re-acquired,\n * and what is often obtained is not the latest DOM that has been rendered.\n * So use `defer` to delay obtaining the height of the cell DOM.\n * TODO: To be improved\n */\n (0,_utils_defer__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(calculateRowMaxHeight);\n }, [data, expandedRowKeys]);\n return {\n bindTableRowsRef: bindTableRowsRef,\n tableRowsMaxHeight: tableRowsMaxHeight,\n tableRows: tableRows\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTableRows);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useTableRows.js?");
|
|
11945
|
+
|
|
11946
|
+
/***/ }),
|
|
11947
|
+
|
|
11948
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useUpdateEffect.js":
|
|
11949
|
+
/*!***************************************************************!*\
|
|
11950
|
+
!*** ./node_modules/rsuite-table/es/hooks/useUpdateEffect.js ***!
|
|
11951
|
+
\***************************************************************/
|
|
11952
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11953
|
+
|
|
11954
|
+
"use strict";
|
|
11955
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\nvar useUpdateEffect = function useUpdateEffect(effect, deps) {\n var isMounting = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n if (isMounting.current) {\n isMounting.current = false;\n return;\n }\n effect();\n }, deps);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useUpdateEffect);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useUpdateEffect.js?");
|
|
11956
|
+
|
|
11957
|
+
/***/ }),
|
|
11958
|
+
|
|
11959
|
+
/***/ "./node_modules/rsuite-table/es/hooks/useUpdateLayoutEffect.js":
|
|
11960
|
+
/*!*********************************************************************!*\
|
|
11961
|
+
!*** ./node_modules/rsuite-table/es/hooks/useUpdateLayoutEffect.js ***!
|
|
11962
|
+
\*********************************************************************/
|
|
11963
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11964
|
+
|
|
11965
|
+
"use strict";
|
|
11966
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ \"./node_modules/rsuite-table/es/hooks/useIsomorphicLayoutEffect.js\");\n'use client';\n\n\nvar useUpdateLayoutEffect = function useUpdateLayoutEffect(effect, deps) {\n var isMounting = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);\n (0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function () {\n if (isMounting.current) {\n isMounting.current = false;\n return;\n }\n effect();\n }, deps);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useUpdateLayoutEffect);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/hooks/useUpdateLayoutEffect.js?");
|
|
11967
|
+
|
|
11968
|
+
/***/ }),
|
|
11969
|
+
|
|
11970
|
+
/***/ "./node_modules/rsuite-table/es/icons/ArrowRight.js":
|
|
11971
|
+
/*!**********************************************************!*\
|
|
11972
|
+
!*** ./node_modules/rsuite-table/es/icons/ArrowRight.js ***!
|
|
11973
|
+
\**********************************************************/
|
|
11974
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11975
|
+
|
|
11976
|
+
"use strict";
|
|
11977
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ArrowRight: function() { return /* binding */ ArrowRight; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n'use client';\n\n\nvar ArrowRight = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function ArrowRight(props, ref) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"svg\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 16 16\",\n fill: \"currentColor\",\n ref: ref\n }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"path\", {\n d: \"m6 12 4-4-4-4z\"\n }));\n});\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/icons/ArrowRight.js?");
|
|
11978
|
+
|
|
11979
|
+
/***/ }),
|
|
11980
|
+
|
|
11981
|
+
/***/ "./node_modules/rsuite-table/es/icons/Sort.js":
|
|
11982
|
+
/*!****************************************************!*\
|
|
11983
|
+
!*** ./node_modules/rsuite-table/es/icons/Sort.js ***!
|
|
11984
|
+
\****************************************************/
|
|
11985
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11986
|
+
|
|
11987
|
+
"use strict";
|
|
11988
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Sort: function() { return /* binding */ Sort; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n'use client';\n\n\nvar Sort = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Sort(props, ref) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"svg\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 16 16\",\n fill: \"currentColor\",\n ref: ref\n }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"path\", {\n d: \"M7.616 3.18a.5.5 0 0 1 .696-.071l.072.071 2.5 3a.5.5 0 0 1-.704.704l-.064-.064L8 4.281 5.884 6.82a.5.5 0 0 1-.63.115l-.074-.051a.5.5 0 0 1-.115-.63l.051-.074zM7.616 12.82a.5.5 0 0 0 .696.071l.072-.071 2.5-3a.5.5 0 0 0-.704-.704l-.064.064L8 11.719 5.884 9.18a.5.5 0 0 0-.63-.115l-.074.051a.5.5 0 0 0-.115.63l.051.074z\"\n }));\n});\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/icons/Sort.js?");
|
|
11989
|
+
|
|
11990
|
+
/***/ }),
|
|
11991
|
+
|
|
11992
|
+
/***/ "./node_modules/rsuite-table/es/icons/SortDown.js":
|
|
11993
|
+
/*!********************************************************!*\
|
|
11994
|
+
!*** ./node_modules/rsuite-table/es/icons/SortDown.js ***!
|
|
11995
|
+
\********************************************************/
|
|
11996
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11997
|
+
|
|
11998
|
+
"use strict";
|
|
11999
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SortDown: function() { return /* binding */ SortDown; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n'use client';\n\n\nvar SortDown = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function SortDown(props, ref) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"svg\", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"0 0 16 16\",\n fill: \"currentColor\",\n ref: ref\n }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"path\", {\n d: \"M8.5 14a.5.5 0 0 0 .394-.192l3.996-4.996a.5.5 0 1 0-.781-.625l-3.11 3.887V2.499a.5.5 0 0 0-1 0v9.575l-3.11-3.887a.5.5 0 1 0-.781.625l3.998 4.997.013.015a.5.5 0 0 0 .38.175z\"\n }));\n});\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/icons/SortDown.js?");
|
|
12000
|
+
|
|
12001
|
+
/***/ }),
|
|
12002
|
+
|
|
11882
12003
|
/***/ "./node_modules/rsuite-table/es/index.js":
|
|
11883
12004
|
/*!***********************************************!*\
|
|
11884
12005
|
!*** ./node_modules/rsuite-table/es/index.js ***!
|
|
@@ -11886,7 +12007,18 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
11886
12007
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11887
12008
|
|
|
11888
12009
|
"use strict";
|
|
11889
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Cell: function() { return /* reexport safe */ _Cell__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; },\n/* harmony export */ Column: function() { return /* reexport safe */ _Column__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; },\n/* harmony export */ ColumnGroup: function() { return /* reexport safe */ _ColumnGroup__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; },\n/* harmony export */ HeaderCell: function() { return /* reexport safe */ _HeaderCell__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; },\n/* harmony export */ Table: function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Table */ \"./node_modules/rsuite-table/es/Table.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n'use client';\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/index.js?");
|
|
12010
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Cell: function() { return /* reexport safe */ _Cell__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; },\n/* harmony export */ Column: function() { return /* reexport safe */ _Column__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; },\n/* harmony export */ ColumnGroup: function() { return /* reexport safe */ _ColumnGroup__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; },\n/* harmony export */ HeaderCell: function() { return /* reexport safe */ _HeaderCell__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; },\n/* harmony export */ Table: function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Table */ \"./node_modules/rsuite-table/es/Table.js\");\n/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Column */ \"./node_modules/rsuite-table/es/Column.js\");\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Cell */ \"./node_modules/rsuite-table/es/Cell.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./types */ \"./node_modules/rsuite-table/es/types.js\");\n'use client';\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/index.js?");
|
|
12011
|
+
|
|
12012
|
+
/***/ }),
|
|
12013
|
+
|
|
12014
|
+
/***/ "./node_modules/rsuite-table/es/types.js":
|
|
12015
|
+
/*!***********************************************!*\
|
|
12016
|
+
!*** ./node_modules/rsuite-table/es/types.js ***!
|
|
12017
|
+
\***********************************************/
|
|
12018
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12019
|
+
|
|
12020
|
+
"use strict";
|
|
12021
|
+
eval("__webpack_require__.r(__webpack_exports__);\n'use client';\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/types.js?");
|
|
11890
12022
|
|
|
11891
12023
|
/***/ }),
|
|
11892
12024
|
|
|
@@ -11897,7 +12029,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
11897
12029
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11898
12030
|
|
|
11899
12031
|
"use strict";
|
|
11900
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ flattenChildren: function() { return /* binding */ _flattenChildren; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var
|
|
12032
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ flattenChildren: function() { return /* binding */ _flattenChildren; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react-is */ \"./node_modules/rsuite-table/es/utils/react-is.js\");\n'use client';\nfunction _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n\n\nvar _flattenChildren = function flattenChildren(children, flattened) {\n if (flattened === void 0) {\n flattened = [];\n }\n for (var _iterator = _createForOfIteratorHelperLoose(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children)), _step; !(_step = _iterator()).done;) {\n var child = _step.value;\n if ((0,_react_is__WEBPACK_IMPORTED_MODULE_1__.isFragment)(child)) {\n var _childEl$props;\n var childEl = child;\n if ((_childEl$props = childEl.props) !== null && _childEl$props !== void 0 && _childEl$props.children) {\n _flattenChildren(childEl.props.children, flattened);\n }\n } else {\n flattened.push(child);\n }\n }\n return flattened;\n};\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/children.js?");
|
|
11901
12033
|
|
|
11902
12034
|
/***/ }),
|
|
11903
12035
|
|
|
@@ -11963,7 +12095,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11963
12095
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11964
12096
|
|
|
11965
12097
|
"use strict";
|
|
11966
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ \"react-dom\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\nvar majorVersion = parseInt((react_dom__WEBPACK_IMPORTED_MODULE_0___default().version));\n\n/**\n * Force React to flush any updates inside the provided callback synchronously.\n * This ensures that the DOM is updated immediately.\n */\nvar flushSync = function flushSync(callback) {\n if (majorVersion >= 18) {\n var _ReactDOM$flushSync;\n (_ReactDOM$flushSync = (react_dom__WEBPACK_IMPORTED_MODULE_0___default().flushSync)) === null || _ReactDOM$flushSync === void 0
|
|
12098
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ \"react-dom\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\nvar majorVersion = parseInt((react_dom__WEBPACK_IMPORTED_MODULE_0___default().version));\n\n/**\n * Force React to flush any updates inside the provided callback synchronously.\n * This ensures that the DOM is updated immediately.\n */\nvar flushSync = function flushSync(callback) {\n if (majorVersion >= 18) {\n var _ReactDOM$flushSync;\n (_ReactDOM$flushSync = (react_dom__WEBPACK_IMPORTED_MODULE_0___default().flushSync)) === null || _ReactDOM$flushSync === void 0 || _ReactDOM$flushSync.call((react_dom__WEBPACK_IMPORTED_MODULE_0___default()), callback);\n return;\n }\n callback();\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (flushSync);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/flushSync.js?");
|
|
11967
12099
|
|
|
11968
12100
|
/***/ }),
|
|
11969
12101
|
|
|
@@ -11974,7 +12106,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
|
|
|
11974
12106
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11975
12107
|
|
|
11976
12108
|
"use strict";
|
|
11977
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ getColumnProps; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n'use client';\n\n/**\n * Get the union of the props of the column itself and the props of the custom column\n *\n * e.g.\n * const CustomColumn = React.forwardRef((props, ref) => {\n * return <Column ref={ref} sortable align=\"center\" flexGrow={1} fullText {...props} />;\n * });\n *\n * <CustomColumn width={100} >\n * <HeaderCell>Header</HeaderCell>\n * <Cell>Cell</Cell>\n * </CustomColumn>\n *\n */\nfunction getColumnProps(column) {\n var _column$type, _column$type$render
|
|
12109
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ getColumnProps; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n'use client';\n\n/**\n * Get the union of the props of the column itself and the props of the custom column\n *\n * e.g.\n * const CustomColumn = React.forwardRef((props, ref) => {\n * return <Column ref={ref} sortable align=\"center\" flexGrow={1} fullText {...props} />;\n * });\n *\n * <CustomColumn width={100} >\n * <HeaderCell>Header</HeaderCell>\n * <Cell>Cell</Cell>\n * </CustomColumn>\n *\n */\nfunction getColumnProps(column) {\n var _column$type, _column$type$render;\n var columnDefaultProps = ((_column$type = column['type']) === null || _column$type === void 0 || (_column$type$render = _column$type['render']) === null || _column$type$render === void 0 || (_column$type$render = _column$type$render.call(_column$type)) === null || _column$type$render === void 0 ? void 0 : _column$type$render.props) || {};\n return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, columnDefaultProps, column === null || column === void 0 ? void 0 : column.props);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/getColumnProps.js?");
|
|
11978
12110
|
|
|
11979
12111
|
/***/ }),
|
|
11980
12112
|
|
|
@@ -11985,7 +12117,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
11985
12117
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11986
12118
|
|
|
11987
12119
|
"use strict";
|
|
11988
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var
|
|
12120
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/flatten */ \"./node_modules/lodash/flatten.js\");\n/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _react_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./react-is */ \"./node_modules/rsuite-table/es/utils/react-is.js\");\n'use client';\n\n\n\n\n\n\n/**\n * Get the columns ReactElement array.\n * - Handling the case where there is an array of <Column> in children.\n * - Filter empty items in children.\n */\nfunction getTableColumns(children) {\n var childrenArray = Array.isArray(children) ? children : [children];\n var flattenColumns = lodash_flatten__WEBPACK_IMPORTED_MODULE_2___default()(childrenArray).map(function (column) {\n // If the column is a group, we need to get the columns from the children.\n if (column && column.type === _ColumnGroup__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n var _ref = column.props || {},\n header = _ref.header,\n groupChildren = _ref.children,\n align = _ref.align,\n fixed = _ref.fixed,\n verticalAlign = _ref.verticalAlign,\n groupHeaderHeight = _ref.groupHeaderHeight;\n var childColumns = getTableColumns(groupChildren);\n return childColumns.map(function (childColumn, index) {\n // Overwrite the props set by ColumnGroup to Column.\n var groupCellProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, childColumn && childColumn.props, {\n groupHeaderHeight: groupHeaderHeight,\n fixed: fixed,\n // Column extends the properties of Group (align,verticalAlign)\n align: childColumn && childColumn.props && childColumn.props.align || align,\n verticalAlign: childColumn && childColumn.props && childColumn.props.verticalAlign || verticalAlign\n });\n\n /**\n * Set attributes for the first column in the group:\n * @field groupCount: The number of grouping sub-items.\n * @field groupHeader: Group header title.\n * @field resizable: Set to not resizable.\n */\n\n if (index === 0) {\n groupCellProps.groupAlign = align;\n groupCellProps.groupVerticalAlign = verticalAlign;\n groupCellProps.groupCount = childColumns.length;\n groupCellProps.groupHeader = header;\n groupCellProps.resizable = false;\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(childColumn, groupCellProps);\n });\n } else if ((0,_react_is__WEBPACK_IMPORTED_MODULE_4__.isFragment)(column)) {\n // If the column is a fragment, we need to get the columns from the children.\n return getTableColumns(column.props && column.props.children);\n } else if (Array.isArray(column)) {\n // If the column is an array, need check item in the array.\n return getTableColumns(column);\n }\n\n // If the column is not a group, we just return the column.\n return column;\n });\n\n // Flatten the array in Columns into a one-dimensional array, and calculate lastColumn and firstColumn.\n return lodash_flatten__WEBPACK_IMPORTED_MODULE_2___default()(flattenColumns).filter(Boolean);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (getTableColumns);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/getTableColumns.js?");
|
|
11989
12121
|
|
|
11990
12122
|
/***/ }),
|
|
11991
12123
|
|
|
@@ -11996,7 +12128,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
11996
12128
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11997
12129
|
|
|
11998
12130
|
"use strict";
|
|
11999
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ \"./node_modules/lodash/isPlainObject.js\");\n/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _getColumnProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getColumnProps */ \"./node_modules/rsuite-table/es/utils/getColumnProps.js\");\n'use client';\n\n\n\nfunction getTotalByColumns(columns) {\n var totalFlexGrow = 0;\n var totalWidth = 0;\n var _count = function count(items) {\n Array.from(items).forEach(function (column) {\n if (
|
|
12131
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ \"./node_modules/lodash/isPlainObject.js\");\n/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _getColumnProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getColumnProps */ \"./node_modules/rsuite-table/es/utils/getColumnProps.js\");\n'use client';\n\n\n\nfunction getTotalByColumns(columns) {\n var totalFlexGrow = 0;\n var totalWidth = 0;\n var _count = function count(items) {\n Array.from(items).forEach(function (column) {\n if (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(column)) {\n var _getColumnProps = (0,_getColumnProps__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(column),\n flexGrow = _getColumnProps.flexGrow,\n _getColumnProps$width = _getColumnProps.width,\n width = _getColumnProps$width === void 0 ? 0 : _getColumnProps$width;\n totalFlexGrow += flexGrow || 0;\n totalWidth += flexGrow ? 0 : width;\n } else if (Array.isArray(column)) {\n _count(column);\n }\n });\n };\n if (Array.isArray(columns)) {\n _count(columns);\n } else if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(columns)) {\n var _ref = columns && columns.props || {},\n flexGrow = _ref.flexGrow,\n _ref$width = _ref.width,\n width = _ref$width === void 0 ? 0 : _ref$width;\n totalFlexGrow = flexGrow || 0;\n totalWidth = flexGrow ? 0 : width;\n }\n return {\n totalFlexGrow: totalFlexGrow,\n totalWidth: totalWidth\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (getTotalByColumns);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/getTotalByColumns.js?");
|
|
12000
12132
|
|
|
12001
12133
|
/***/ }),
|
|
12002
12134
|
|
|
@@ -12007,7 +12139,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac
|
|
|
12007
12139
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12008
12140
|
|
|
12009
12141
|
"use strict";
|
|
12010
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cancelAnimationTimeout: function() { return /* reexport safe */ _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_14__.cancelAnimationTimeout; },\n/* harmony export */ convertToFlex: function() { return /* reexport safe */ _convertToFlex__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; },\n/* harmony export */ defer: function() { return /* reexport safe */ _defer__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; },\n/* harmony export */ findAllParents: function() { return /* reexport safe */ _findAllParents__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; },\n/* harmony export */ findRowKeys: function() { return /* reexport safe */ _findRowKeys__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; },\n/* harmony export */ flattenData: function() { return /* reexport safe */ _flattenData__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; },\n/* harmony export */ getTableColumns: function() { return /* reexport safe */ _getTableColumns__WEBPACK_IMPORTED_MODULE_24__[\"default\"]; },\n/* harmony export */ getTotalByColumns: function() { return /* reexport safe */ _getTotalByColumns__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; },\n/* harmony export */ isNumberOrTrue: function() { return /* reexport safe */ _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; },\n/* harmony export */ isRTL: function() { return /* reexport safe */ _isRTL__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; },\n/* harmony export */ isSupportTouchEvent: function() { return /* reexport safe */ _isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; },\n/* harmony export */ mergeCells: function() { return /* reexport safe */ _mergeCells__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; },\n/* harmony export */ mergeRefs: function() { return /* reexport safe */ _mergeRefs__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; },\n/* harmony export */ prefix: function() { return /* reexport safe */ _prefix__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; },\n/* harmony export */ requestAnimationTimeout: function() { return /* reexport safe */ _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_14__.requestAnimationTimeout; },\n/* harmony export */ resetLeftForCells: function() { return /* reexport safe */ _resetLeftForCells__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; },\n/* harmony export */ shouldShowRowByExpanded: function() { return /* reexport safe */ _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; },\n/* harmony export */ toggle: function() { return /* reexport safe */ _toggle__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; },\n/* harmony export */ toggleClass: function() { return /* reexport safe */ _toggleClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; },\n/* harmony export */ translateDOMPositionXY: function() { return /* reexport safe */ _translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; },\n/* harmony export */ useAffix: function() { return /* reexport safe */ _useAffix__WEBPACK_IMPORTED_MODULE_28__[\"default\"]; },\n/* harmony export */ useCellDescriptor: function() { return /* reexport safe */ _useCellDescriptor__WEBPACK_IMPORTED_MODULE_25__[\"default\"]; },\n/* harmony export */ useClassNames: function() { return /* reexport safe */ _useClassNames__WEBPACK_IMPORTED_MODULE_22__[\"default\"]; },\n/* harmony export */ useControlled: function() { return /* reexport safe */ _useControlled__WEBPACK_IMPORTED_MODULE_23__[\"default\"]; },\n/* harmony export */ useIsomorphicLayoutEffect: function() { return /* reexport safe */ _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_20__[\"default\"]; },\n/* harmony export */ useMount: function() { return /* reexport safe */ _useMount__WEBPACK_IMPORTED_MODULE_21__[\"default\"]; },\n/* harmony export */ usePosition: function() { return /* reexport safe */ _usePosition__WEBPACK_IMPORTED_MODULE_30__[\"default\"]; },\n/* harmony export */ useScrollListener: function() { return /* reexport safe */ _useScrollListener__WEBPACK_IMPORTED_MODULE_29__[\"default\"]; },\n/* harmony export */ useTableData: function() { return /* reexport safe */ _useTableData__WEBPACK_IMPORTED_MODULE_31__[\"default\"]; },\n/* harmony export */ useTableDimension: function() { return /* reexport safe */ _useTableDimension__WEBPACK_IMPORTED_MODULE_26__[\"default\"]; },\n/* harmony export */ useTableRows: function() { return /* reexport safe */ _useTableRows__WEBPACK_IMPORTED_MODULE_27__[\"default\"]; },\n/* harmony export */ useUpdateEffect: function() { return /* reexport safe */ _useUpdateEffect__WEBPACK_IMPORTED_MODULE_18__[\"default\"]; },\n/* harmony export */ useUpdateLayoutEffect: function() { return /* reexport safe */ _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_19__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _prefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony import */ var _mergeCells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeCells */ \"./node_modules/rsuite-table/es/utils/mergeCells.js\");\n/* harmony import */ var _toggleClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./toggle */ \"./node_modules/rsuite-table/es/utils/toggle.js\");\n/* harmony import */ var _flattenData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./flattenData */ \"./node_modules/rsuite-table/es/utils/flattenData.js\");\n/* harmony import */ var _translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./translateDOMPositionXY */ \"./node_modules/rsuite-table/es/utils/translateDOMPositionXY.js\");\n/* harmony import */ var _isRTL__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./isRTL */ \"./node_modules/rsuite-table/es/utils/isRTL.js\");\n/* harmony import */ var _findRowKeys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./findRowKeys */ \"./node_modules/rsuite-table/es/utils/findRowKeys.js\");\n/* harmony import */ var _findAllParents__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./findAllParents */ \"./node_modules/rsuite-table/es/utils/findAllParents.js\");\n/* harmony import */ var _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./shouldShowRowByExpanded */ \"./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js\");\n/* harmony import */ var _resetLeftForCells__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./resetLeftForCells */ \"./node_modules/rsuite-table/es/utils/resetLeftForCells.js\");\n/* harmony import */ var _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony import */ var _mergeRefs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./mergeRefs */ \"./node_modules/rsuite-table/es/utils/mergeRefs.js\");\n/* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./requestAnimationTimeout */ \"./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js\");\n/* harmony import */ var _isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./isSupportTouchEvent */ \"./node_modules/rsuite-table/es/utils/isSupportTouchEvent.js\");\n/* harmony import */ var _convertToFlex__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./convertToFlex */ \"./node_modules/rsuite-table/es/utils/convertToFlex.js\");\n/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n/* harmony import */ var _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./useUpdateLayoutEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateLayoutEffect.js\");\n/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ \"./node_modules/rsuite-table/es/utils/useIsomorphicLayoutEffect.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/utils/useMount.js\");\n/* harmony import */ var _useClassNames__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./useClassNames */ \"./node_modules/rsuite-table/es/utils/useClassNames.js\");\n/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./useControlled */ \"./node_modules/rsuite-table/es/utils/useControlled.js\");\n/* harmony import */ var _getTableColumns__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./getTableColumns */ \"./node_modules/rsuite-table/es/utils/getTableColumns.js\");\n/* harmony import */ var _useCellDescriptor__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./useCellDescriptor */ \"./node_modules/rsuite-table/es/utils/useCellDescriptor.js\");\n/* harmony import */ var _useTableDimension__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./useTableDimension */ \"./node_modules/rsuite-table/es/utils/useTableDimension.js\");\n/* harmony import */ var _useTableRows__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./useTableRows */ \"./node_modules/rsuite-table/es/utils/useTableRows.js\");\n/* harmony import */ var _useAffix__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./useAffix */ \"./node_modules/rsuite-table/es/utils/useAffix.js\");\n/* harmony import */ var _useScrollListener__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./useScrollListener */ \"./node_modules/rsuite-table/es/utils/useScrollListener.js\");\n/* harmony import */ var _usePosition__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./usePosition */ \"./node_modules/rsuite-table/es/utils/usePosition.js\");\n/* harmony import */ var _useTableData__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./useTableData */ \"./node_modules/rsuite-table/es/utils/useTableData.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// Hooks\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/index.js?");
|
|
12142
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cancelAnimationTimeout: function() { return /* reexport safe */ _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_14__.cancelAnimationTimeout; },\n/* harmony export */ convertToFlex: function() { return /* reexport safe */ _convertToFlex__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; },\n/* harmony export */ defer: function() { return /* reexport safe */ _defer__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; },\n/* harmony export */ findAllParents: function() { return /* reexport safe */ _findAllParents__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; },\n/* harmony export */ findRowKeys: function() { return /* reexport safe */ _findRowKeys__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; },\n/* harmony export */ flattenData: function() { return /* reexport safe */ _flattenData__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; },\n/* harmony export */ getTableColumns: function() { return /* reexport safe */ _getTableColumns__WEBPACK_IMPORTED_MODULE_18__[\"default\"]; },\n/* harmony export */ getTotalByColumns: function() { return /* reexport safe */ _getTotalByColumns__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; },\n/* harmony export */ isNumberOrTrue: function() { return /* reexport safe */ _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; },\n/* harmony export */ isRTL: function() { return /* reexport safe */ _isRTL__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; },\n/* harmony export */ isSupportTouchEvent: function() { return /* reexport safe */ _isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; },\n/* harmony export */ mergeCells: function() { return /* reexport safe */ _mergeCells__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; },\n/* harmony export */ mergeRefs: function() { return /* reexport safe */ _mergeRefs__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; },\n/* harmony export */ prefix: function() { return /* reexport safe */ _prefix__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; },\n/* harmony export */ requestAnimationTimeout: function() { return /* reexport safe */ _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_14__.requestAnimationTimeout; },\n/* harmony export */ resetLeftForCells: function() { return /* reexport safe */ _resetLeftForCells__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; },\n/* harmony export */ setCssPosition: function() { return /* reexport safe */ _setCssPosition__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; },\n/* harmony export */ shouldShowRowByExpanded: function() { return /* reexport safe */ _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; },\n/* harmony export */ toggle: function() { return /* reexport safe */ _toggle__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; },\n/* harmony export */ toggleClass: function() { return /* reexport safe */ _toggleClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _prefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony import */ var _mergeCells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeCells */ \"./node_modules/rsuite-table/es/utils/mergeCells.js\");\n/* harmony import */ var _toggleClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./toggle */ \"./node_modules/rsuite-table/es/utils/toggle.js\");\n/* harmony import */ var _flattenData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./flattenData */ \"./node_modules/rsuite-table/es/utils/flattenData.js\");\n/* harmony import */ var _setCssPosition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./setCssPosition */ \"./node_modules/rsuite-table/es/utils/setCssPosition.js\");\n/* harmony import */ var _isRTL__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./isRTL */ \"./node_modules/rsuite-table/es/utils/isRTL.js\");\n/* harmony import */ var _findRowKeys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./findRowKeys */ \"./node_modules/rsuite-table/es/utils/findRowKeys.js\");\n/* harmony import */ var _findAllParents__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./findAllParents */ \"./node_modules/rsuite-table/es/utils/findAllParents.js\");\n/* harmony import */ var _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./shouldShowRowByExpanded */ \"./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js\");\n/* harmony import */ var _resetLeftForCells__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./resetLeftForCells */ \"./node_modules/rsuite-table/es/utils/resetLeftForCells.js\");\n/* harmony import */ var _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony import */ var _mergeRefs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./mergeRefs */ \"./node_modules/rsuite-table/es/utils/mergeRefs.js\");\n/* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./requestAnimationTimeout */ \"./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js\");\n/* harmony import */ var _isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./isSupportTouchEvent */ \"./node_modules/rsuite-table/es/utils/isSupportTouchEvent.js\");\n/* harmony import */ var _convertToFlex__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./convertToFlex */ \"./node_modules/rsuite-table/es/utils/convertToFlex.js\");\n/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n/* harmony import */ var _getTableColumns__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./getTableColumns */ \"./node_modules/rsuite-table/es/utils/getTableColumns.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/index.js?");
|
|
12011
12143
|
|
|
12012
12144
|
/***/ }),
|
|
12013
12145
|
|
|
@@ -12051,7 +12183,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
12051
12183
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12052
12184
|
|
|
12053
12185
|
"use strict";
|
|
12054
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\");\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n'use client';\n\n\n\n\n\n\nfunction cloneCell(Cell, props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(Cell, props);\n}\nfunction mergeCells(cells) {\n var nextCells = [];\n for (var i = 0; i < cells.length; i += 1) {\n var _cells$i$props = cells[i].props,\n width = _cells$i$props.width,\n colSpan = _cells$i$props.colSpan,\n groupCount = _cells$i$props.groupCount,\n groupHeader = _cells$i$props.groupHeader,\n groupAlign = _cells$i$props.groupAlign,\n groupVerticalAlign = _cells$i$props.groupVerticalAlign,\n isHeaderCell = _cells$i$props.isHeaderCell,\n headerHeight = _cells$i$props.headerHeight,\n groupHeaderHeight = _cells$i$props.groupHeaderHeight;\n var groupChildren = [];\n\n // Add grouping to column headers.\n if (groupCount && isHeaderCell) {\n var nextWidth = width;\n var left = 0;\n for (var j = 0; j < groupCount; j += 1) {\n var nextCell = cells[i + j];\n var _nextCell$props = nextCell.props,\n nextCellWidth = _nextCell$props.width,\n sortable = _nextCell$props.sortable,\n children = _nextCell$props.children,\n dataKey = _nextCell$props.dataKey,\n onSortColumn = _nextCell$props.onSortColumn,\n sortColumn = _nextCell$props.sortColumn,\n sortType = _nextCell$props.sortType,\n align = _nextCell$props.align,\n verticalAlign = _nextCell$props.verticalAlign,\n renderSortIcon = _nextCell$props.renderSortIcon;\n if (j !== 0) {\n nextWidth += nextCellWidth;\n left += cells[i + j - 1].props.width;\n cells[i + j] = cloneCell(nextCell, {\n removed: true\n });\n }\n groupChildren.push(
|
|
12186
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ \"./node_modules/lodash/isFunction.js\");\n/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ \"./node_modules/lodash/isNil.js\");\n/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ColumnGroup */ \"./node_modules/rsuite-table/es/ColumnGroup.js\");\n/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../HeaderCell */ \"./node_modules/rsuite-table/es/HeaderCell.js\");\n'use client';\n\n\n\n\n\n\nfunction cloneCell(Cell, props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(Cell, props);\n}\nfunction mergeCells(cells) {\n var nextCells = [];\n for (var i = 0; i < cells.length; i += 1) {\n var _cells$i$props = cells[i].props,\n width = _cells$i$props.width,\n colSpan = _cells$i$props.colSpan,\n groupCount = _cells$i$props.groupCount,\n groupHeader = _cells$i$props.groupHeader,\n groupAlign = _cells$i$props.groupAlign,\n groupVerticalAlign = _cells$i$props.groupVerticalAlign,\n isHeaderCell = _cells$i$props.isHeaderCell,\n headerHeight = _cells$i$props.headerHeight,\n groupHeaderHeight = _cells$i$props.groupHeaderHeight;\n var groupChildren = [];\n\n // Add grouping to column headers.\n if (groupCount && isHeaderCell) {\n var nextWidth = width;\n var left = 0;\n for (var j = 0; j < groupCount; j += 1) {\n var nextCell = cells[i + j];\n var _nextCell$props = nextCell.props,\n nextCellWidth = _nextCell$props.width,\n sortable = _nextCell$props.sortable,\n children = _nextCell$props.children,\n dataKey = _nextCell$props.dataKey,\n onSortColumn = _nextCell$props.onSortColumn,\n sortColumn = _nextCell$props.sortColumn,\n sortType = _nextCell$props.sortType,\n align = _nextCell$props.align,\n verticalAlign = _nextCell$props.verticalAlign,\n renderSortIcon = _nextCell$props.renderSortIcon;\n if (j !== 0) {\n nextWidth += nextCellWidth;\n left += cells[i + j - 1].props.width;\n cells[i + j] = cloneCell(nextCell, {\n removed: true\n });\n }\n groupChildren.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_HeaderCell__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n key: j,\n left: left,\n align: align,\n verticalAlign: verticalAlign,\n dataKey: dataKey,\n width: nextCellWidth,\n sortable: sortable,\n sortColumn: sortColumn,\n sortType: sortType,\n onSortColumn: onSortColumn,\n renderSortIcon: renderSortIcon\n }, children));\n }\n nextCells.push(cloneCell(cells[i], {\n width: nextWidth,\n children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ColumnGroup__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n width: nextWidth,\n headerHeight: headerHeight,\n header: groupHeader,\n align: groupAlign,\n verticalAlign: groupVerticalAlign,\n groupHeaderHeight: groupHeaderHeight\n }, groupChildren)\n }));\n continue;\n } else if (colSpan) {\n // If there is a colSpan attribute, go to its next Cell.\n // Determine whether the value is null or undefined, then merge this cell.\n\n var _nextWidth = width;\n for (var _j = 0; _j < colSpan; _j += 1) {\n var _nextCell = cells[i + _j];\n if (_nextCell) {\n var _nextCell$props2 = _nextCell.props,\n rowData = _nextCell$props2.rowData,\n rowIndex = _nextCell$props2.rowIndex,\n _children = _nextCell$props2.children,\n colSpanWidth = _nextCell$props2.width,\n _isHeaderCell = _nextCell$props2.isHeaderCell,\n _dataKey = _nextCell$props2.dataKey;\n var cellText = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(_children) ? _children(rowData, rowIndex) : lodash_get__WEBPACK_IMPORTED_MODULE_2___default()(rowData, _dataKey);\n if (rowData && lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(cellText) || _isHeaderCell && lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(_children)) {\n _nextWidth += colSpanWidth;\n cells[i + _j] = cloneCell(_nextCell, {\n removed: true\n });\n }\n }\n }\n nextCells.push(cloneCell(cells[i], {\n width: _nextWidth,\n 'aria-colspan': _nextWidth > width ? colSpan : undefined\n }));\n continue;\n }\n nextCells.push(cells[i]);\n }\n return nextCells;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (mergeCells);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/mergeCells.js?");
|
|
12055
12187
|
|
|
12056
12188
|
/***/ }),
|
|
12057
12189
|
|
|
@@ -12077,6 +12209,17 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
12077
12209
|
|
|
12078
12210
|
/***/ }),
|
|
12079
12211
|
|
|
12212
|
+
/***/ "./node_modules/rsuite-table/es/utils/react-is.js":
|
|
12213
|
+
/*!********************************************************!*\
|
|
12214
|
+
!*** ./node_modules/rsuite-table/es/utils/react-is.js ***!
|
|
12215
|
+
\********************************************************/
|
|
12216
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12217
|
+
|
|
12218
|
+
"use strict";
|
|
12219
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ isElement: function() { return /* binding */ isElement; },\n/* harmony export */ isFragment: function() { return /* binding */ isFragment; }\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n return object.type || object.$$typeof;\n }\n}\nfunction isFragment(children) {\n return react__WEBPACK_IMPORTED_MODULE_0___default().Children.count(children) === 1 && typeOf(children) === Symbol[\"for\"]('react.fragment');\n}\nfunction isElement(children) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(children);\n}\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/react-is.js?");
|
|
12220
|
+
|
|
12221
|
+
/***/ }),
|
|
12222
|
+
|
|
12080
12223
|
/***/ "./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js":
|
|
12081
12224
|
/*!***********************************************************************!*\
|
|
12082
12225
|
!*** ./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js ***!
|
|
@@ -12099,6 +12242,17 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
12099
12242
|
|
|
12100
12243
|
/***/ }),
|
|
12101
12244
|
|
|
12245
|
+
/***/ "./node_modules/rsuite-table/es/utils/setCssPosition.js":
|
|
12246
|
+
/*!**************************************************************!*\
|
|
12247
|
+
!*** ./node_modules/rsuite-table/es/utils/setCssPosition.js ***!
|
|
12248
|
+
\**************************************************************/
|
|
12249
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12250
|
+
|
|
12251
|
+
"use strict";
|
|
12252
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-lib/translateDOMPositionXY */ \"./node_modules/dom-lib/esm/translateDOMPositionXY.js\");\n'use client';\n\nvar setCssPosition = (0,dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_0__.getTranslateDOMPositionXY)({\n enable3DTransform: true\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (setCssPosition);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/setCssPosition.js?");
|
|
12253
|
+
|
|
12254
|
+
/***/ }),
|
|
12255
|
+
|
|
12102
12256
|
/***/ "./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js":
|
|
12103
12257
|
/*!***********************************************************************!*\
|
|
12104
12258
|
!*** ./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js ***!
|
|
@@ -12117,7 +12271,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
12117
12271
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12118
12272
|
|
|
12119
12273
|
"use strict";
|
|
12120
|
-
eval("__webpack_require__.r(__webpack_exports__);\n'use client';\n/**\n *
|
|
12274
|
+
eval("__webpack_require__.r(__webpack_exports__);\n'use client';\n/**\n * Selectively calls either method a or b based on the condition.\n * @param a - Function to be called when the condition is true\n * @param b - Function to be called when the condition is false\n * @returns A function that takes a target element and additional values,\n * which in turn returns a function that takes a condition\n */\nfunction toggle(a, b) {\n return function (target) {\n for (var _len = arguments.length, value = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n value[_key - 1] = arguments[_key];\n }\n var options = [target].concat(value);\n return function (condition) {\n if (condition) {\n a.apply(void 0, options);\n } else {\n b.apply(void 0, options);\n }\n };\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (toggle);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/toggle.js?");
|
|
12121
12275
|
|
|
12122
12276
|
/***/ }),
|
|
12123
12277
|
|
|
@@ -12128,172 +12282,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n'use client';\n/**\n * 根据
|
|
|
12128
12282
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12129
12283
|
|
|
12130
12284
|
"use strict";
|
|
12131
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var dom_lib_addClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-lib/addClass */ \"./node_modules/dom-lib/esm/addClass.js\");\n/* harmony import */ var dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/removeClass */ \"./node_modules/dom-lib/esm/removeClass.js\");\n'use client';\n\n\nvar toggleClass = function toggleClass(node, className, condition) {\n if (condition) {\n (0,dom_lib_addClass__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node, className);\n } else {\n (0,dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(node, className);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (node, className, condition) {\n if (!node) {\n return;\n }\n if (Array.isArray(node) || Object.getPrototypeOf(node)
|
|
12132
|
-
|
|
12133
|
-
/***/ }),
|
|
12134
|
-
|
|
12135
|
-
/***/ "./node_modules/rsuite-table/es/utils/translateDOMPositionXY.js":
|
|
12136
|
-
/*!**********************************************************************!*\
|
|
12137
|
-
!*** ./node_modules/rsuite-table/es/utils/translateDOMPositionXY.js ***!
|
|
12138
|
-
\**********************************************************************/
|
|
12139
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12140
|
-
|
|
12141
|
-
"use strict";
|
|
12142
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-lib/translateDOMPositionXY */ \"./node_modules/dom-lib/esm/translateDOMPositionXY.js\");\n'use client';\n\nvar translateDOMPositionXY = (0,dom_lib_translateDOMPositionXY__WEBPACK_IMPORTED_MODULE_0__.getTranslateDOMPositionXY)({\n enable3DTransform: true\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (translateDOMPositionXY);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/translateDOMPositionXY.js?");
|
|
12143
|
-
|
|
12144
|
-
/***/ }),
|
|
12145
|
-
|
|
12146
|
-
/***/ "./node_modules/rsuite-table/es/utils/useAffix.js":
|
|
12147
|
-
/*!********************************************************!*\
|
|
12148
|
-
!*** ./node_modules/rsuite-table/es/utils/useAffix.js ***!
|
|
12149
|
-
\********************************************************/
|
|
12150
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12151
|
-
|
|
12152
|
-
"use strict";
|
|
12153
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/getHeight */ \"./node_modules/dom-lib/esm/getHeight.js\");\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/removeStyle */ \"./node_modules/dom-lib/esm/removeStyle.js\");\n/* harmony import */ var dom_lib_on__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/on */ \"./node_modules/dom-lib/esm/on.js\");\n/* harmony import */ var _toggleClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony import */ var _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n'use client';\n\n\n\n\n\n\n\n\nvar useAffix = function useAffix(props) {\n var getTableHeight = props.getTableHeight,\n contentHeight = props.contentHeight,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n affixHeader = props.affixHeader,\n tableOffset = props.tableOffset,\n headerOffset = props.headerOffset,\n headerHeight = props.headerHeight,\n scrollbarXRef = props.scrollbarXRef,\n affixHeaderWrapperRef = props.affixHeaderWrapperRef;\n var scrollListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var handleAffixHorizontalScrollbar = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableOffset$current, _scrollbarXRef$curren;\n var scrollY = window.scrollY || window.pageYOffset;\n var windowHeight = (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(window);\n var height = getTableHeight();\n var bottom = typeof affixHorizontalScrollbar === 'number' ? affixHorizontalScrollbar : 0;\n var offsetTop = ((_tableOffset$current = tableOffset.current) === null || _tableOffset$current === void 0 ? void 0 : _tableOffset$current.top) || 0;\n var fixedScrollbar = scrollY + windowHeight < height + (offsetTop + bottom) && scrollY + windowHeight - headerHeight > offsetTop + bottom;\n if (scrollbarXRef !== null && scrollbarXRef !== void 0 && (_scrollbarXRef$curren = scrollbarXRef.current) !== null && _scrollbarXRef$curren !== void 0 && _scrollbarXRef$curren.root) {\n (0,_toggleClass__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(scrollbarXRef.current.root, 'fixed', fixedScrollbar);\n if (fixedScrollbar) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(scrollbarXRef.current.root, 'bottom', bottom + \"px\");\n } else {\n (0,dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(scrollbarXRef.current.root, 'bottom');\n }\n }\n }, [affixHorizontalScrollbar, headerHeight, scrollbarXRef, getTableHeight, tableOffset]);\n var handleAffixTableHeader = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _headerOffset$current;\n var top = typeof affixHeader === 'number' ? affixHeader : 0;\n var scrollY = window.scrollY || window.pageYOffset;\n var offsetTop = ((_headerOffset$current = headerOffset.current) === null || _headerOffset$current === void 0 ? void 0 : _headerOffset$current.top) || 0;\n var fixedHeader = scrollY - (offsetTop - top) >= 0 && scrollY < offsetTop - top + contentHeight.current;\n if (affixHeaderWrapperRef.current) {\n (0,_toggleClass__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(affixHeaderWrapperRef.current, 'fixed', fixedHeader);\n }\n }, [affixHeader, affixHeaderWrapperRef, contentHeight, headerOffset]);\n var handleWindowScroll = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n if ((0,_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHeader)) {\n handleAffixTableHeader();\n }\n if ((0,_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHorizontalScrollbar)) {\n handleAffixHorizontalScrollbar();\n }\n }, [affixHeader, affixHorizontalScrollbar, handleAffixTableHeader, handleAffixHorizontalScrollbar]);\n\n /**\n * Update the position of the fixed element after the height of the table changes.\n * fix: https://github.com/rsuite/rsuite/issues/1716\n */\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(handleWindowScroll, [getTableHeight]);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n if ((0,_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHeader) || (0,_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(affixHorizontalScrollbar)) {\n scrollListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(window, 'scroll', handleWindowScroll);\n }\n return function () {\n var _scrollListener$curre;\n (_scrollListener$curre = scrollListener.current) === null || _scrollListener$curre === void 0 ? void 0 : _scrollListener$curre.off();\n };\n }, [affixHeader, affixHorizontalScrollbar, handleWindowScroll]);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useAffix);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useAffix.js?");
|
|
12154
|
-
|
|
12155
|
-
/***/ }),
|
|
12156
|
-
|
|
12157
|
-
/***/ "./node_modules/rsuite-table/es/utils/useCellDescriptor.js":
|
|
12158
|
-
/*!*****************************************************************!*\
|
|
12159
|
-
!*** ./node_modules/rsuite-table/es/utils/useCellDescriptor.js ***!
|
|
12160
|
-
\*****************************************************************/
|
|
12161
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12162
|
-
|
|
12163
|
-
"use strict";
|
|
12164
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/addClass */ \"./node_modules/dom-lib/esm/addClass.js\");\n/* harmony import */ var dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/removeClass */ \"./node_modules/dom-lib/esm/removeClass.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/omit */ \"./node_modules/lodash/omit.js\");\n/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/merge */ \"./node_modules/lodash/merge.js\");\n/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _useControlled__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useControlled */ \"./node_modules/rsuite-table/es/utils/useControlled.js\");\n/* harmony import */ var _getTableColumns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getTableColumns */ \"./node_modules/rsuite-table/es/utils/getTableColumns.js\");\n/* harmony import */ var _getTotalByColumns__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getTotalByColumns */ \"./node_modules/rsuite-table/es/utils/getTotalByColumns.js\");\n/* harmony import */ var _getColumnProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getColumnProps */ \"./node_modules/rsuite-table/es/utils/getColumnProps.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n/* harmony import */ var _flushSync__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./flushSync */ \"./node_modules/rsuite-table/es/utils/flushSync.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/utils/useMount.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Attach rendering-related attributes to all cells of the form and cache them.\n * @param props\n * @returns\n */\nvar useCellDescriptor = function useCellDescriptor(props) {\n var children = props.children,\n rtl = props.rtl,\n mouseAreaRef = props.mouseAreaRef,\n tableRef = props.tableRef,\n minScrollX = props.minScrollX,\n scrollX = props.scrollX,\n tableWidth = props.tableWidth,\n headerHeight = props.headerHeight,\n showHeader = props.showHeader,\n sortTypeProp = props.sortType,\n defaultSortType = props.defaultSortType,\n sortColumn = props.sortColumn,\n rowHeight = props.rowHeight,\n onSortColumn = props.onSortColumn,\n onHeaderCellResize = props.onHeaderCellResize,\n prefix = props.prefix;\n var _useControlled = (0,_useControlled__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(sortTypeProp, defaultSortType),\n sortType = _useControlled[0],\n setSortType = _useControlled[1];\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),\n cacheData = _useState[0],\n setCacheData = _useState[1];\n var clearCache = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {\n setCacheData(null);\n }, []);\n var setColumnResizing = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (resizing) {\n if (!tableRef.current) {\n return;\n }\n if (resizing) {\n (0,dom_lib_addClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(tableRef.current, prefix('column-resizing'));\n } else {\n (0,dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableRef.current, prefix('column-resizing'));\n }\n }, [prefix, tableRef]);\n\n /**\n * storage column width from props.\n * if current column width not equal initial column width, use current column width and update cache.\n */\n var initialColumnWidths = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({});\n var columnWidths = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({});\n (0,_useMount__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(function () {\n // As the cells are cached before the table width is updated, it is necessary to clear the cache again. fix: #430\n clearCache();\n });\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(function () {\n clearCache();\n }, [children, sortColumn, sortType, tableWidth.current, scrollX.current, minScrollX.current]);\n var handleColumnResizeEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (columnWidth, _cursorDelta, dataKey, index) {\n columnWidths.current[dataKey + \"_\" + index + \"_width\"] = columnWidth;\n setColumnResizing(false);\n if (mouseAreaRef.current) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(mouseAreaRef.current, {\n display: 'none'\n });\n }\n\n // fix: https://github.com/rsuite/rsuite-table/issues/398\n (0,_flushSync__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(function () {\n return clearCache();\n });\n onHeaderCellResize === null || onHeaderCellResize === void 0 ? void 0 : onHeaderCellResize(columnWidth, dataKey);\n }, [clearCache, mouseAreaRef, onHeaderCellResize, setColumnResizing]);\n var handleColumnResizeMove = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n var mouseAreaLeft = width + left;\n var x = mouseAreaLeft;\n var dir = 'left';\n if (rtl) {\n mouseAreaLeft += minScrollX.current + _constants__WEBPACK_IMPORTED_MODULE_7__.SCROLLBAR_WIDTH;\n dir = 'right';\n }\n if (!fixed) {\n x = mouseAreaLeft + (rtl ? -scrollX.current : scrollX.current);\n }\n if (mouseAreaRef.current) {\n var _addStyle;\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(mouseAreaRef.current, (_addStyle = {\n display: 'block'\n }, _addStyle[dir] = x + \"px\", _addStyle));\n }\n }, [minScrollX, mouseAreaRef, rtl, scrollX]);\n var handleColumnResizeStart = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (width, left, fixed) {\n setColumnResizing(true);\n handleColumnResizeMove(width, left, fixed);\n }, [handleColumnResizeMove, setColumnResizing]);\n var handleSortColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (dataKey) {\n var nextSortType = sortType;\n if (sortColumn === dataKey) {\n nextSortType = sortType === _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.ASC ? _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.DESC : _constants__WEBPACK_IMPORTED_MODULE_7__.SORT_TYPE.ASC;\n setSortType(nextSortType);\n }\n onSortColumn === null || onSortColumn === void 0 ? void 0 : onSortColumn(dataKey, nextSortType);\n }, [onSortColumn, setSortType, sortColumn, sortType]);\n if (cacheData) {\n return cacheData;\n }\n var hasCustomTreeCol = false;\n var left = 0; // Cell left margin\n var headerCells = []; // Table header cell\n var bodyCells = []; // Table body cell\n\n if (!children) {\n var _cacheCell = {\n columns: [],\n headerCells: headerCells,\n bodyCells: bodyCells,\n hasCustomTreeCol: hasCustomTreeCol,\n allColumnsWidth: left\n };\n setCacheData(_cacheCell);\n return _cacheCell;\n }\n var columns = (0,_getTableColumns__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(children);\n var count = columns.length;\n var _getTotalByColumns = (0,_getTotalByColumns__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(columns),\n totalFlexGrow = _getTotalByColumns.totalFlexGrow,\n totalWidth = _getTotalByColumns.totalWidth;\n react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(columns, function (column, index) {\n if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(column)) {\n var _initialColumnWidths$, _columnWidths$current;\n var columnChildren = column.props.children;\n var columnProps = (0,_getColumnProps__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(column);\n var width = columnProps.width,\n resizable = columnProps.resizable,\n flexGrow = columnProps.flexGrow,\n minWidth = columnProps.minWidth,\n onResize = columnProps.onResize,\n treeCol = columnProps.treeCol;\n if (treeCol) {\n hasCustomTreeCol = true;\n }\n if (columnChildren.length !== 2) {\n throw new Error(\"Component <HeaderCell> and <Cell> is required, column index: \" + index + \" \");\n }\n var headerCell = columnChildren[0];\n var cell = columnChildren[1];\n var cellWidthId = cell.props.dataKey + \"_\" + index + \"_width\";\n\n // get column width from cache.\n var initialColumnWidth = (_initialColumnWidths$ = initialColumnWidths.current) === null || _initialColumnWidths$ === void 0 ? void 0 : _initialColumnWidths$[cellWidthId];\n var currentWidth = (_columnWidths$current = columnWidths.current) === null || _columnWidths$current === void 0 ? void 0 : _columnWidths$current[cellWidthId];\n var cellWidth = currentWidth || width || 0;\n var isControlled = typeof width === 'number' && typeof onResize === 'function';\n\n /**\n * in resizable mode,\n * if width !== initialColumnWidth, use current column width and update cache.\n */\n if (resizable && (initialColumnWidth || width) && initialColumnWidth !== width) {\n // initial or update initialColumnWidth cache.\n initialColumnWidths.current[cellWidthId] = width;\n /**\n * if currentWidth exist, update columnWidths cache.\n */\n if (currentWidth) {\n columnWidths.current[cellWidthId] = width;\n // update cellWidth\n cellWidth = width;\n }\n }\n if (tableWidth.current && flexGrow && totalFlexGrow) {\n var grewWidth = Math.max((tableWidth.current - totalWidth) / totalFlexGrow * flexGrow, minWidth || 60);\n /**\n * resizable = false, width will be recalc when table render.\n * resizable = true, only first render will use grewWidth.\n */\n cellWidth = resizable ? currentWidth || grewWidth : grewWidth;\n }\n var cellProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, lodash_omit__WEBPACK_IMPORTED_MODULE_5___default()(columnProps, ['children']), {\n 'aria-colindex': index + 1,\n left: left,\n headerHeight: headerHeight,\n key: index,\n width: isControlled ? width : cellWidth,\n height: typeof rowHeight === 'function' ? rowHeight() : rowHeight,\n firstColumn: index === 0,\n lastColumn: index === count - 1\n });\n if (showHeader && headerHeight) {\n var headerCellProps = {\n // Resizable column\n // `index` is used to define the serial number when dragging the column width\n index: index,\n dataKey: cell.props.dataKey,\n isHeaderCell: true,\n minWidth: columnProps.minWidth,\n sortable: columnProps.sortable,\n onSortColumn: handleSortColumn,\n sortType: sortType,\n sortColumn: sortColumn,\n flexGrow: resizable ? undefined : flexGrow\n };\n if (resizable) {\n lodash_merge__WEBPACK_IMPORTED_MODULE_6___default()(headerCellProps, {\n onResize: onResize,\n onColumnResizeEnd: handleColumnResizeEnd,\n onColumnResizeStart: handleColumnResizeStart,\n onColumnResizeMove: handleColumnResizeMove\n });\n }\n headerCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(headerCell, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, cellProps, headerCellProps)));\n }\n bodyCells.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(cell, cellProps));\n left += cellWidth;\n }\n });\n var cacheCell = {\n columns: columns,\n headerCells: headerCells,\n bodyCells: bodyCells,\n allColumnsWidth: left,\n hasCustomTreeCol: hasCustomTreeCol\n };\n setCacheData(cacheCell);\n return cacheCell;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useCellDescriptor);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useCellDescriptor.js?");
|
|
12165
|
-
|
|
12166
|
-
/***/ }),
|
|
12167
|
-
|
|
12168
|
-
/***/ "./node_modules/rsuite-table/es/utils/useClassNames.js":
|
|
12169
|
-
/*!*************************************************************!*\
|
|
12170
|
-
!*** ./node_modules/rsuite-table/es/utils/useClassNames.js ***!
|
|
12171
|
-
\*************************************************************/
|
|
12172
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12173
|
-
|
|
12174
|
-
"use strict";
|
|
12175
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"./node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _prefix__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./prefix */ \"./node_modules/rsuite-table/es/utils/prefix.js\");\n/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableContext */ \"./node_modules/rsuite-table/es/TableContext.js\");\n'use client';\n\n\n\n\n\n// This is the only way I found to break circular references between ClassArray and ClassValue\n// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540\n\n//eslint-disable-line @typescript-eslint/no-empty-interface\n\n/**\n * Add a prefix to all classNames.\n *\n * @param str prefix of className\n * @returns { withClassPrefix, merge, prefix }\n * - withClassPrefix: A function of combining className and adding a prefix to each className.\n * At the same time, the default `classPrefix` is the first className.\n * - merge: A merge className function.\n * - prefix: Add a prefix to className\n * - rootPrefix\n */\nfunction useClassNames(str, controlled) {\n var _ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_TableContext__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) || {},\n _ref$classPrefix = _ref.classPrefix,\n contextClassPrefix = _ref$classPrefix === void 0 ? 'rs' : _ref$classPrefix;\n var componentName = controlled ? str : (0,_prefix__WEBPACK_IMPORTED_MODULE_2__.prefix)(contextClassPrefix, str);\n\n /**\n * @example\n *\n * if str = 'button':\n * prefix('red', { active: true }) => 'rs-button-red rs-button-active'\n */\n var prefix = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var mergeClasses = arguments.length ? classnames__WEBPACK_IMPORTED_MODULE_1___default().apply(void 0, arguments).split(' ').map(function (item) {\n return (0,_prefix__WEBPACK_IMPORTED_MODULE_2__.prefix)(componentName, item);\n }) : [];\n return mergeClasses.filter(function (cls) {\n return cls;\n }).join(' ');\n }, [componentName]);\n\n /**\n * @example\n *\n * if str = 'button':\n * withClassPrefix('red', { active: true }) => 'rs-button rs-button-red rs-button-active'\n */\n var withClassPrefix = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {\n classes[_key] = arguments[_key];\n }\n var mergeClasses = prefix(classes);\n return mergeClasses ? componentName + \" \" + mergeClasses : componentName;\n }, [componentName, prefix]);\n\n /**\n * @example\n * rootPrefix('btn') => 'rs-btn'\n * rootPrefix('btn', { active: true }) => 'rs-btn rs-active'\n */\n var rootPrefix = function rootPrefix() {\n var mergeClasses = arguments.length ? classnames__WEBPACK_IMPORTED_MODULE_1___default().apply(void 0, arguments).split(' ').map(function (item) {\n return (0,_prefix__WEBPACK_IMPORTED_MODULE_2__.prefix)(contextClassPrefix, item);\n }) : [];\n return mergeClasses.filter(function (cls) {\n return cls;\n }).join(' ');\n };\n return {\n withClassPrefix: withClassPrefix,\n merge: (classnames__WEBPACK_IMPORTED_MODULE_1___default()),\n prefix: prefix,\n rootPrefix: rootPrefix\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useClassNames);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useClassNames.js?");
|
|
12176
|
-
|
|
12177
|
-
/***/ }),
|
|
12178
|
-
|
|
12179
|
-
/***/ "./node_modules/rsuite-table/es/utils/useControlled.js":
|
|
12180
|
-
/*!*************************************************************!*\
|
|
12181
|
-
!*** ./node_modules/rsuite-table/es/utils/useControlled.js ***!
|
|
12182
|
-
\*************************************************************/
|
|
12183
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12184
|
-
|
|
12185
|
-
"use strict";
|
|
12186
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\n\n/**\n * A hook for controlled value management.\n * In the case of passing the controlled value, the controlled value is returned, otherwise the value in state is returned.\n * Generally used for a component including controlled and uncontrolled modes.\n * @param controlledValue\n * @param defaultValue\n * @param formatValue\n */\nfunction useControlled(controlledValue, defaultValue) {\n var controlledRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);\n controlledRef.current = controlledValue !== undefined;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultValue),\n uncontrolledValue = _useState[0],\n setUncontrolledValue = _useState[1];\n\n // If it is controlled, this directly returns the attribute value.\n var value = controlledRef.current ? controlledValue : uncontrolledValue;\n var setValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextValue) {\n // Only update the value in state when it is not under control.\n if (!controlledRef.current) {\n setUncontrolledValue(nextValue);\n }\n }, [controlledRef]);\n return [value, setValue, controlledRef.current];\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useControlled);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useControlled.js?");
|
|
12187
|
-
|
|
12188
|
-
/***/ }),
|
|
12189
|
-
|
|
12190
|
-
/***/ "./node_modules/rsuite-table/es/utils/useIntersectionObserver.js":
|
|
12191
|
-
/*!***********************************************************************!*\
|
|
12192
|
-
!*** ./node_modules/rsuite-table/es/utils/useIntersectionObserver.js ***!
|
|
12193
|
-
\***********************************************************************/
|
|
12194
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12195
|
-
|
|
12196
|
-
"use strict";
|
|
12197
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\n\n/**\n * useIntersectionObserver Hook\n *\n * @param ref - Ref object of the element to be observed\n */\nvar useIntersectionObserver = function useIntersectionObserver(ref) {\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n isVisible = _useState[0],\n setIsVisible = _useState[1];\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n // Check if the browser supports IntersectionObserver\n if (!('IntersectionObserver' in window)) {\n // If not supported, optionally set to visible or handle fallback logic\n setIsVisible(true); // Fallback: Set to visible\n return;\n }\n\n // Create an IntersectionObserver instance\n var observer = new IntersectionObserver(function (entries) {\n entries.forEach(function (entry) {\n setIsVisible(entry.isIntersecting);\n });\n });\n var element = ref === null || ref === void 0 ? void 0 : ref.current;\n\n // Start observing the target element\n if (element) {\n observer.observe(element);\n }\n\n // Cleanup function to unobserve the element when the component unmounts or dependencies change\n return function () {\n if (element) {\n observer.unobserve(element);\n }\n };\n }, [ref]);\n return isVisible;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useIntersectionObserver);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useIntersectionObserver.js?");
|
|
12198
|
-
|
|
12199
|
-
/***/ }),
|
|
12200
|
-
|
|
12201
|
-
/***/ "./node_modules/rsuite-table/es/utils/useIsomorphicLayoutEffect.js":
|
|
12202
|
-
/*!*************************************************************************!*\
|
|
12203
|
-
!*** ./node_modules/rsuite-table/es/utils/useIsomorphicLayoutEffect.js ***!
|
|
12204
|
-
\*************************************************************************/
|
|
12205
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12206
|
-
|
|
12207
|
-
"use strict";
|
|
12208
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_canUseDOM__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/canUseDOM */ \"./node_modules/dom-lib/esm/canUseDOM.js\");\n'use client';\n\n\nvar useIsomorphicLayoutEffect = dom_lib_canUseDOM__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;\n/* harmony default export */ __webpack_exports__[\"default\"] = (useIsomorphicLayoutEffect);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useIsomorphicLayoutEffect.js?");
|
|
12209
|
-
|
|
12210
|
-
/***/ }),
|
|
12211
|
-
|
|
12212
|
-
/***/ "./node_modules/rsuite-table/es/utils/useMount.js":
|
|
12213
|
-
/*!********************************************************!*\
|
|
12214
|
-
!*** ./node_modules/rsuite-table/es/utils/useMount.js ***!
|
|
12215
|
-
\********************************************************/
|
|
12216
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12217
|
-
|
|
12218
|
-
"use strict";
|
|
12219
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ \"./node_modules/rsuite-table/es/utils/useIsomorphicLayoutEffect.js\");\n'use client';\n\nvar useMount = function useMount(effect) {\n (0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(effect, []);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useMount);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useMount.js?");
|
|
12220
|
-
|
|
12221
|
-
/***/ }),
|
|
12222
|
-
|
|
12223
|
-
/***/ "./node_modules/rsuite-table/es/utils/usePosition.js":
|
|
12224
|
-
/*!***********************************************************!*\
|
|
12225
|
-
!*** ./node_modules/rsuite-table/es/utils/usePosition.js ***!
|
|
12226
|
-
\***********************************************************/
|
|
12227
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12228
|
-
|
|
12229
|
-
"use strict";
|
|
12230
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/addStyle */ \"./node_modules/dom-lib/esm/addStyle.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _toggleClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toggleClass */ \"./node_modules/rsuite-table/es/utils/toggleClass.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n/* harmony import */ var _isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isSupportTouchEvent */ \"./node_modules/rsuite-table/es/utils/isSupportTouchEvent.js\");\n/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n'use client';\n\n\n\n\n\n\n\n/**\n * Update the position of the table according to the scrolling information of the table.\n * @param props\n * @returns\n */\nvar usePosition = function usePosition(props) {\n var data = props.data,\n height = props.height,\n tableWidth = props.tableWidth,\n tableRef = props.tableRef,\n prefix = props.prefix,\n translateDOMPositionXY = props.translateDOMPositionXY,\n wheelWrapperRef = props.wheelWrapperRef,\n headerWrapperRef = props.headerWrapperRef,\n affixHeaderWrapperRef = props.affixHeaderWrapperRef,\n tableHeaderRef = props.tableHeaderRef,\n scrollX = props.scrollX,\n scrollY = props.scrollY,\n contentWidth = props.contentWidth,\n shouldFixedColumn = props.shouldFixedColumn;\n var duration = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var bezier = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)('linear');\n var getScrollCellGroups = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableRef$current;\n return ((_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.querySelectorAll(\".\" + prefix('cell-group-scroll'))) || [];\n }, [prefix, tableRef]);\n var getFixedLeftCellGroups = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableRef$current2;\n return (_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : _tableRef$current2.querySelectorAll(\".\" + prefix('cell-group-fixed-left'));\n }, [prefix, tableRef]);\n var getFixedRightCellGroups = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableRef$current3;\n return (_tableRef$current3 = tableRef.current) === null || _tableRef$current3 === void 0 ? void 0 : _tableRef$current3.querySelectorAll(\".\" + prefix('cell-group-fixed-right'));\n }, [prefix, tableRef]);\n var updateWheelElementPosition = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (fixedCell) {\n if (wheelWrapperRef !== null && wheelWrapperRef !== void 0 && wheelWrapperRef.current) {\n // The animation when the mobile device touches and scrolls.\n var wheelStyle = (0,_isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_5__[\"default\"])() ? {\n 'transition-duration': duration.current + \"ms\",\n 'transition-timing-function': bezier.current\n } : {};\n translateDOMPositionXY.current(wheelStyle, fixedCell ? 0 : scrollX.current, scrollY.current);\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(wheelWrapperRef.current, wheelStyle);\n }\n }, [scrollX, scrollY, translateDOMPositionXY, wheelWrapperRef]);\n var updatePositionByFixedCell = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var wheelGroupStyle = {};\n var scrollGroups = getScrollCellGroups();\n var fixedLeftGroups = getFixedLeftCellGroups();\n var fixedRightGroups = getFixedRightCellGroups();\n translateDOMPositionXY.current(wheelGroupStyle, scrollX.current, 0);\n var scrollArrayGroups = Array.from(scrollGroups);\n for (var i = 0; i < scrollArrayGroups.length; i++) {\n var group = scrollArrayGroups[i];\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(group, wheelGroupStyle);\n }\n updateWheelElementPosition(true);\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var scrollbarWidth = hasHorizontalScrollbar ? 0 : _constants__WEBPACK_IMPORTED_MODULE_2__.SCROLLBAR_WIDTH;\n var leftShadowClassName = prefix('cell-group-left-shadow');\n var rightShadowClassName = prefix('cell-group-right-shadow');\n var showLeftShadow = scrollX.current < 0;\n var showRightShadow = tableWidth.current - contentWidth.current - scrollbarWidth !== scrollX.current;\n (0,_toggleClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(fixedLeftGroups, leftShadowClassName, showLeftShadow);\n (0,_toggleClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(fixedRightGroups, rightShadowClassName, showRightShadow);\n }, [contentWidth, getFixedLeftCellGroups, getFixedRightCellGroups, getScrollCellGroups, updateWheelElementPosition, prefix, scrollX, tableWidth, translateDOMPositionXY]);\n\n /**\n * Update the position of the table according to the scrolling information of the table.\n * @param nextDuration CSS transition-duration\n * @param nextBezier CSS transition-timing-function\n */\n var updatePosition = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextDuration, nextBezier) {\n if (nextDuration) {\n duration.current = nextDuration;\n }\n if (nextBezier) {\n bezier.current = nextBezier;\n }\n\n // When there are fixed columns.\n if (shouldFixedColumn) {\n updatePositionByFixedCell();\n } else {\n var _affixHeaderElement$h;\n var headerStyle = {};\n translateDOMPositionXY.current(headerStyle, scrollX.current, 0);\n var headerElement = headerWrapperRef === null || headerWrapperRef === void 0 ? void 0 : headerWrapperRef.current;\n var affixHeaderElement = affixHeaderWrapperRef === null || affixHeaderWrapperRef === void 0 ? void 0 : affixHeaderWrapperRef.current;\n updateWheelElementPosition();\n headerElement && (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(headerElement, headerStyle);\n if (affixHeaderElement !== null && affixHeaderElement !== void 0 && (_affixHeaderElement$h = affixHeaderElement.hasChildNodes) !== null && _affixHeaderElement$h !== void 0 && _affixHeaderElement$h.call(affixHeaderElement)) {\n (0,dom_lib_addStyle__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(affixHeaderElement === null || affixHeaderElement === void 0 ? void 0 : affixHeaderElement.firstChild, headerStyle);\n }\n }\n if (tableHeaderRef !== null && tableHeaderRef !== void 0 && tableHeaderRef.current) {\n (0,_toggleClass__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(tableHeaderRef.current, prefix('cell-group-shadow'), scrollY.current < 0);\n }\n }, [affixHeaderWrapperRef, updateWheelElementPosition, headerWrapperRef, prefix, scrollX, scrollY, shouldFixedColumn, tableHeaderRef, translateDOMPositionXY, updatePositionByFixedCell]);\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(function () {\n if (scrollY.current !== 0) {\n updatePosition();\n }\n }, [height, data]);\n return {\n forceUpdatePosition: updatePosition,\n deferUpdatePosition: function deferUpdatePosition(nextDuration, nextBezier) {\n (0,_defer__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n updatePosition(nextDuration, nextBezier);\n });\n }\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (usePosition);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/usePosition.js?");
|
|
12231
|
-
|
|
12232
|
-
/***/ }),
|
|
12233
|
-
|
|
12234
|
-
/***/ "./node_modules/rsuite-table/es/utils/useScrollListener.js":
|
|
12235
|
-
/*!*****************************************************************!*\
|
|
12236
|
-
!*** ./node_modules/rsuite-table/es/utils/useScrollListener.js ***!
|
|
12237
|
-
\*****************************************************************/
|
|
12238
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12239
|
-
|
|
12240
|
-
"use strict";
|
|
12241
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_WheelHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/WheelHandler */ \"./node_modules/dom-lib/esm/WheelHandler.js\");\n/* harmony import */ var dom_lib_scrollLeft__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/scrollLeft */ \"./node_modules/dom-lib/esm/scrollLeft.js\");\n/* harmony import */ var dom_lib_scrollTop__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/scrollTop */ \"./node_modules/dom-lib/esm/scrollTop.js\");\n/* harmony import */ var dom_lib_on__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-lib/on */ \"./node_modules/dom-lib/esm/on.js\");\n/* harmony import */ var dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-lib/removeStyle */ \"./node_modules/dom-lib/esm/removeStyle.js\");\n/* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./requestAnimationTimeout */ \"./node_modules/rsuite-table/es/utils/requestAnimationTimeout.js\");\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/utils/useMount.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./isSupportTouchEvent */ \"./node_modules/rsuite-table/es/utils/isSupportTouchEvent.js\");\n/* harmony import */ var _flushSync__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./flushSync */ \"./node_modules/rsuite-table/es/utils/flushSync.js\");\n/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// Inertial sliding start time threshold\nvar momentumTimeThreshold = 300;\n\n// Inertial sliding start vertical distance threshold\nvar momentumYThreshold = 15;\n\n//List of Arrow Keys for scrolling through keys\nvar arrowKeysList = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n/**\n * Calculate the distance of inertial sliding.\n */\nvar momentum = function momentum(current, start, duration) {\n // Inertial sliding acceleration.\n var deceleration = 0.003;\n var distance = current - start;\n var speed = 2 * Math.abs(distance) / duration;\n var destination = current + speed / deceleration * (distance < 0 ? -1 : 1);\n return {\n delta: current - destination,\n duration: _constants__WEBPACK_IMPORTED_MODULE_9__.TRANSITION_DURATION,\n bezier: _constants__WEBPACK_IMPORTED_MODULE_9__.BEZIER\n };\n};\n\n/**\n * Add scroll, touch, and wheel monitoring events to the table,\n * and update the scroll position of the table.\n * @param props\n * @returns\n */\nvar useScrollListener = function useScrollListener(props) {\n var data = props.data,\n autoHeight = props.autoHeight,\n tableBodyRef = props.tableBodyRef,\n scrollbarXRef = props.scrollbarXRef,\n scrollbarYRef = props.scrollbarYRef,\n disabledScroll = props.disabledScroll,\n loading = props.loading,\n tableRef = props.tableRef,\n contentWidth = props.contentWidth,\n tableWidth = props.tableWidth,\n scrollY = props.scrollY,\n minScrollY = props.minScrollY,\n minScrollX = props.minScrollX,\n scrollX = props.scrollX,\n setScrollX = props.setScrollX,\n setScrollY = props.setScrollY,\n virtualized = props.virtualized,\n forceUpdatePosition = props.forceUpdatePosition,\n deferUpdatePosition = props.deferUpdatePosition,\n onScroll = props.onScroll,\n onTouchMove = props.onTouchMove,\n onTouchStart = props.onTouchStart,\n onTouchEnd = props.onTouchEnd,\n heightProp = props.height,\n getTableHeight = props.getTableHeight,\n contentHeight = props.contentHeight,\n headerHeight = props.headerHeight,\n rtl = props.rtl;\n var wheelListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var touchStartListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var touchMoveListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var touchEndListener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),\n isScrolling = _useState[0],\n setScrolling = _useState[1];\n var touchX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var touchY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var disableEventsTimeoutId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);\n var isTouching = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);\n\n // The start time within the inertial sliding range.\n var momentumStartTime = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n\n // The vertical starting value within the inertial sliding range.\n var momentumStartY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var shouldHandleWheelX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta) {\n if (delta === 0 || disabledScroll || loading) {\n return false;\n }\n return true;\n }, [disabledScroll, loading]);\n var shouldHandleWheelY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta) {\n if (delta === 0 || disabledScroll || loading || autoHeight) {\n return false;\n }\n if (typeof scrollY.current === 'number' && typeof minScrollY.current === 'number') {\n return delta >= 0 && scrollY.current > minScrollY.current || delta < 0 && scrollY.current < 0;\n }\n }, [autoHeight, disabledScroll, loading, minScrollY, scrollY]);\n var debounceScrollEndedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n disableEventsTimeoutId.current = null;\n\n // Forces the end of scrolling to be prioritized so that virtualized long lists can update rendering.\n // There will be no scrolling white screen.\n (0,_flushSync__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(function () {\n return setScrolling(false);\n });\n }, []);\n\n /**\n * Triggered when scrolling, including: wheel/touch/scroll\n * @param deltaX\n * @param deltaY\n * @param momentumOptions The configuration of inertial scrolling is used for the touch event.\n */\n var handleWheel = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (deltaX, deltaY, momentumOptions, event) {\n if (!tableRef.current) {\n return;\n }\n var nextScrollX = contentWidth.current <= tableWidth.current ? 0 : scrollX.current - deltaX;\n var nextScrollY = scrollY.current - deltaY;\n var y = Math.min(0, nextScrollY < minScrollY.current ? minScrollY.current : nextScrollY);\n var x = Math.min(0, nextScrollX < minScrollX.current ? minScrollX.current : nextScrollX);\n setScrollX(x);\n setScrollY(y);\n onScroll === null || onScroll === void 0 ? void 0 : onScroll(Math.abs(x), Math.abs(y));\n if (virtualized) {\n // Add a state to the table during virtualized scrolling.\n // Make it set CSS `pointer-events:none` on the DOM to avoid wrong event interaction.\n\n (0,_flushSync__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(function () {\n return setScrolling(true);\n });\n if (disableEventsTimeoutId.current) {\n (0,_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__.cancelAnimationTimeout)(disableEventsTimeoutId.current);\n }\n disableEventsTimeoutId.current = (0,_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__.requestAnimationTimeout)(debounceScrollEndedCallback,\n // When momentum is enabled, set a delay of 50ms rendering.\n momentumOptions !== null && momentumOptions !== void 0 && momentumOptions.duration ? 50 : 0);\n }\n\n // When the user clicks on the scrollbar, the scrollbar will be moved to the clicked position.\n if ((event === null || event === void 0 ? void 0 : event.type) === 'click') {\n /**\n * With virtualized enabled, the list will be re-rendered on every scroll.\n * Update the position of the rendered list with a delay.\n * fix: https://github.com/rsuite/rsuite/issues/2378\n */\n deferUpdatePosition(momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.duration, momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.bezier);\n return;\n }\n forceUpdatePosition(momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.duration, momentumOptions === null || momentumOptions === void 0 ? void 0 : momentumOptions.bezier);\n }, [tableRef, contentWidth, tableWidth, scrollX, scrollY, minScrollY, minScrollX, setScrollX, setScrollY, onScroll, forceUpdatePosition, deferUpdatePosition, virtualized, debounceScrollEndedCallback]);\n var onWheel = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (deltaX, deltaY, momentumOptions) {\n var _scrollbarXRef$curren, _scrollbarXRef$curren2, _scrollbarYRef$curren, _scrollbarYRef$curren2;\n handleWheel(deltaX, deltaY, momentumOptions);\n (_scrollbarXRef$curren = scrollbarXRef.current) === null || _scrollbarXRef$curren === void 0 ? void 0 : (_scrollbarXRef$curren2 = _scrollbarXRef$curren.onWheelScroll) === null || _scrollbarXRef$curren2 === void 0 ? void 0 : _scrollbarXRef$curren2.call(_scrollbarXRef$curren, deltaX);\n (_scrollbarYRef$curren = scrollbarYRef.current) === null || _scrollbarYRef$curren === void 0 ? void 0 : (_scrollbarYRef$curren2 = _scrollbarYRef$curren.onWheelScroll) === null || _scrollbarYRef$curren2 === void 0 ? void 0 : _scrollbarYRef$curren2.call(_scrollbarYRef$curren, deltaY, momentumOptions !== null && momentumOptions !== void 0 && momentumOptions.duration ? true : false);\n }, [handleWheel, scrollbarXRef, scrollbarYRef]);\n var wheelHandler = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n\n // Stop unending scrolling and remove transition\n var stopScroll = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _tableBodyRef$current, _scrollbarYRef$curren3;\n var wheelElement = (_tableBodyRef$current = tableBodyRef.current) === null || _tableBodyRef$current === void 0 ? void 0 : _tableBodyRef$current.querySelector('.rs-table-body-wheel-area');\n var handleElement = (_scrollbarYRef$curren3 = scrollbarYRef.current) === null || _scrollbarYRef$curren3 === void 0 ? void 0 : _scrollbarYRef$curren3.handle;\n var transitionCSS = ['transition-duration', 'transition-timing-function'];\n if (!virtualized && wheelElement) {\n // Get the current translate position.\n var matrix = window.getComputedStyle(wheelElement).getPropertyValue('transform');\n var offsetY = Math.round(+matrix.split(')')[0].split(', ')[5]);\n setScrollY(offsetY);\n }\n if (wheelElement) {\n (0,dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(wheelElement, transitionCSS);\n }\n if (handleElement) {\n (0,dom_lib_removeStyle__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(handleElement, transitionCSS);\n }\n }, [scrollbarYRef, setScrollY, tableBodyRef, virtualized]);\n\n // Handle the Touch event and initialize it when touchstart is triggered.\n var handleTouchStart = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n var _event$touches$ = event.touches[0],\n pageX = _event$touches$.pageX,\n pageY = _event$touches$.pageY;\n touchX.current = pageX;\n touchY.current = pageY;\n momentumStartTime.current = new Date().getTime();\n momentumStartY.current = scrollY.current;\n isTouching.current = true;\n onTouchStart === null || onTouchStart === void 0 ? void 0 : onTouchStart(event);\n\n // Stop unfinished scrolling when Touch starts.\n stopScroll();\n }, [onTouchStart, scrollY, stopScroll]);\n\n // Handle the Touch event and update the scroll when touchmove is triggered.\n var handleTouchMove = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (!isTouching.current) {\n return;\n }\n var _event$touches$2 = event.touches[0],\n pageX = _event$touches$2.pageX,\n pageY = _event$touches$2.pageY;\n var deltaX = touchX.current - pageX;\n var deltaY = autoHeight ? 0 : touchY.current - pageY;\n if (!shouldHandleWheelY(deltaY) && !shouldHandleWheelX(deltaX)) {\n return;\n }\n\n /**\n * Prevent the default touch event when the table is scrollable.\n * fix: https://github.com/rsuite/rsuite-table/commit/21785fc18f430519ab5885c44540d9ffc30de366#commitcomment-36236425\n */\n if (!autoHeight && shouldHandleWheelY(deltaY)) {\n var _event$preventDefault;\n (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 ? void 0 : _event$preventDefault.call(event);\n }\n var now = new Date().getTime();\n onWheel(deltaX, deltaY);\n touchX.current = pageX;\n touchY.current = pageY;\n\n // Record the offset value and time under the condition of triggering inertial scrolling.\n if (now - momentumStartTime.current > momentumTimeThreshold) {\n momentumStartY.current = scrollY.current;\n momentumStartTime.current = now;\n }\n onTouchMove === null || onTouchMove === void 0 ? void 0 : onTouchMove(event);\n }, [autoHeight, onWheel, onTouchMove, scrollY, shouldHandleWheelX, shouldHandleWheelY]);\n var handleTouchEnd = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (!isTouching.current) {\n return;\n }\n isTouching.current = false;\n var touchDuration = new Date().getTime() - momentumStartTime.current;\n var absDeltaY = Math.abs(scrollY.current - momentumStartY.current);\n\n // Enable inertial sliding.\n if (touchDuration < momentumTimeThreshold && absDeltaY > momentumYThreshold) {\n var _momentum = momentum(scrollY.current, momentumStartY.current, touchDuration),\n delta = _momentum.delta,\n duration = _momentum.duration,\n bezier = _momentum.bezier;\n onWheel(0, delta, {\n duration: duration,\n bezier: bezier\n });\n onTouchEnd === null || onTouchEnd === void 0 ? void 0 : onTouchEnd(event);\n }\n }, [onWheel, onTouchEnd, scrollY]);\n\n /**\n * When the user uses the tab key in the Table, the onScroll event is triggered,\n * and the scroll bar position should be updated at the same time.\n * https://github.com/rsuite/rsuite/issues/234\n */\n var onScrollBody = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (event.target !== tableBodyRef.current) {\n return;\n }\n var left = (0,dom_lib_scrollLeft__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(event.target);\n var top = (0,dom_lib_scrollTop__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(event.target);\n if (top === 0 && left === 0) {\n return;\n }\n onWheel(left, top);\n (0,dom_lib_scrollLeft__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(event.target, 0);\n (0,dom_lib_scrollTop__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(event.target, 0);\n }, [onWheel, tableBodyRef]);\n var getControlledScrollTopValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {\n if (autoHeight) {\n return [0, 0];\n }\n var height = getTableHeight();\n\n // The maximum range of scrolling value is judged.\n value = Math.min(value, Math.max(0, contentHeight.current - (height - headerHeight)));\n\n // The value is a value of the theoretical scroll position of the table,\n // and the scrollY coordinate value and the value of the scroll bar position are calculated by value.\n return [-value, value / contentHeight.current * (height - headerHeight)];\n }, [autoHeight, contentHeight, getTableHeight, headerHeight]);\n var rerender = function rerender() {\n setScrolling(true);\n (0,_defer__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(function () {\n if (tableBodyRef.current) {\n setScrolling(false);\n }\n });\n };\n var getControlledScrollLeftValue = function getControlledScrollLeftValue(value) {\n // The maximum range of scrolling value is judged.\n value = Math.min(value, Math.max(0, contentWidth.current - tableWidth.current));\n return [-value, value / contentWidth.current * tableWidth.current];\n };\n var onScrollTop = function onScrollTop(top) {\n var _scrollbarYRef$curren4, _scrollbarYRef$curren5;\n if (top === void 0) {\n top = 0;\n }\n var _getControlledScrollT = getControlledScrollTopValue(top),\n nextScrollY = _getControlledScrollT[0],\n handleScrollY = _getControlledScrollT[1];\n var height = getTableHeight();\n if (!loading && nextScrollY !== scrollY.current) {\n onScroll === null || onScroll === void 0 ? void 0 : onScroll(Math.abs(scrollX.current), Math.abs(nextScrollY));\n }\n setScrollY(nextScrollY);\n scrollbarYRef === null || scrollbarYRef === void 0 ? void 0 : (_scrollbarYRef$curren4 = scrollbarYRef.current) === null || _scrollbarYRef$curren4 === void 0 ? void 0 : (_scrollbarYRef$curren5 = _scrollbarYRef$curren4.resetScrollBarPosition) === null || _scrollbarYRef$curren5 === void 0 ? void 0 : _scrollbarYRef$curren5.call(_scrollbarYRef$curren4, handleScrollY);\n deferUpdatePosition();\n\n /**\n * After calling `scrollTop`, a white screen will appear when `virtualized` is true.\n * The reason is that the coordinates of the DOM are directly manipulated,\n * but the component is not re-rendered. Need to call `rerender`.\n * Fix: rsuite#1044\n */\n if (virtualized && contentHeight.current > height) {\n rerender();\n }\n };\n var onScrollLeft = function onScrollLeft(left) {\n var _scrollbarXRef$curren3, _scrollbarXRef$curren4;\n if (left === void 0) {\n left = 0;\n }\n var _getControlledScrollL = getControlledScrollLeftValue(left),\n nextScrollX = _getControlledScrollL[0],\n scrollbarX = _getControlledScrollL[1];\n setScrollX(nextScrollX);\n !loading && (onScroll === null || onScroll === void 0 ? void 0 : onScroll(Math.abs(nextScrollX), Math.abs(scrollY.current)));\n scrollbarXRef === null || scrollbarXRef === void 0 ? void 0 : (_scrollbarXRef$curren3 = scrollbarXRef.current) === null || _scrollbarXRef$curren3 === void 0 ? void 0 : (_scrollbarXRef$curren4 = _scrollbarXRef$curren3.resetScrollBarPosition) === null || _scrollbarXRef$curren4 === void 0 ? void 0 : _scrollbarXRef$curren4.call(_scrollbarXRef$curren3, scrollbarX);\n deferUpdatePosition();\n };\n var onScrollTo = function onScrollTo(coord) {\n var _ref = coord || {},\n x = _ref.x,\n y = _ref.y;\n if (typeof x === 'number') {\n onScrollLeft(x);\n }\n if (typeof y === 'number') {\n onScrollTop(y);\n }\n };\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(function () {\n if (scrollY.current !== 0) {\n onScrollTop(Math.abs(scrollY.current));\n }\n\n // fix: #405 #404\n deferUpdatePosition();\n }, [heightProp, data]);\n var releaseListeners = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _wheelListener$curren, _touchStartListener$c, _touchMoveListener$cu, _touchEndListener$cur;\n wheelHandler.current = null;\n (_wheelListener$curren = wheelListener.current) === null || _wheelListener$curren === void 0 ? void 0 : _wheelListener$curren.off();\n (_touchStartListener$c = touchStartListener.current) === null || _touchStartListener$c === void 0 ? void 0 : _touchStartListener$c.off();\n (_touchMoveListener$cu = touchMoveListener.current) === null || _touchMoveListener$cu === void 0 ? void 0 : _touchMoveListener$cu.off();\n (_touchEndListener$cur = touchEndListener.current) === null || _touchEndListener$cur === void 0 ? void 0 : _touchEndListener$cur.off();\n }, []);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n var options = {\n passive: false\n };\n var tableBody = tableBodyRef.current;\n if (tableBody) {\n // Reset the listener after props is updated.\n releaseListeners();\n wheelHandler.current = new dom_lib_WheelHandler__WEBPACK_IMPORTED_MODULE_1__[\"default\"](onWheel, shouldHandleWheelX, shouldHandleWheelY, false);\n wheelListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'wheel', wheelHandler.current.onWheel, options);\n if ((0,_isSupportTouchEvent__WEBPACK_IMPORTED_MODULE_10__[\"default\"])()) {\n touchStartListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'touchstart', handleTouchStart, options);\n touchMoveListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'touchmove', handleTouchMove, options);\n touchEndListener.current = (0,dom_lib_on__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(tableBody, 'touchend', handleTouchEnd, options);\n }\n }\n return releaseListeners;\n }, [handleTouchEnd, handleTouchMove, handleTouchStart, onWheel, releaseListeners, shouldHandleWheelX, shouldHandleWheelY, tableBodyRef]);\n var onScrollByKeydown = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n if (event.currentTarget === event.target && arrowKeysList.indexOf(event.key) > -1) {\n event.preventDefault();\n var step = 40;\n switch (event.key) {\n case 'ArrowUp':\n onWheel(0, -step);\n break;\n case 'ArrowDown':\n onWheel(0, step);\n break;\n case 'ArrowLeft':\n onWheel(-step, 0);\n break;\n case 'ArrowRight':\n onWheel(step, 0);\n break;\n }\n }\n }, [onWheel]);\n (0,_useMount__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(function () {\n if (rtl) {\n var _scrollbarXRef$curren5, _scrollbarXRef$curren6;\n // Initialize scroll position\n setScrollX(tableWidth.current - contentWidth.current - _constants__WEBPACK_IMPORTED_MODULE_9__.SCROLLBAR_WIDTH);\n scrollbarXRef === null || scrollbarXRef === void 0 ? void 0 : (_scrollbarXRef$curren5 = scrollbarXRef.current) === null || _scrollbarXRef$curren5 === void 0 ? void 0 : (_scrollbarXRef$curren6 = _scrollbarXRef$curren5.resetScrollBarPosition) === null || _scrollbarXRef$curren6 === void 0 ? void 0 : _scrollbarXRef$curren6.call(_scrollbarXRef$curren5, -scrollX.current);\n forceUpdatePosition();\n }\n });\n var onScrollHorizontal = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta) {\n return handleWheel(delta, 0);\n }, [handleWheel]);\n var onScrollVertical = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (delta, event) {\n return handleWheel(0, delta, undefined, event);\n }, [handleWheel]);\n return {\n isScrolling: isScrolling,\n onScrollHorizontal: onScrollHorizontal,\n onScrollVertical: onScrollVertical,\n onScrollBody: onScrollBody,\n onScrollTop: onScrollTop,\n onScrollLeft: onScrollLeft,\n onScrollTo: onScrollTo,\n onScrollByKeydown: onScrollByKeydown\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useScrollListener);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useScrollListener.js?");
|
|
12242
|
-
|
|
12243
|
-
/***/ }),
|
|
12244
|
-
|
|
12245
|
-
/***/ "./node_modules/rsuite-table/es/utils/useTableData.js":
|
|
12246
|
-
/*!************************************************************!*\
|
|
12247
|
-
!*** ./node_modules/rsuite-table/es/utils/useTableData.js ***!
|
|
12248
|
-
\************************************************************/
|
|
12249
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12250
|
-
|
|
12251
|
-
"use strict";
|
|
12252
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _useUpdateEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useUpdateEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateEffect.js\");\n/* harmony import */ var _flattenData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flattenData */ \"./node_modules/rsuite-table/es/utils/flattenData.js\");\n/* harmony import */ var _findAllParents__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./findAllParents */ \"./node_modules/rsuite-table/es/utils/findAllParents.js\");\n/* harmony import */ var _shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shouldShowRowByExpanded */ \"./node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n'use client';\n\n\n\n\n\n\n/**\n * Filter those expanded nodes.\n * @param data\n * @param expandedRowKeys\n * @param rowKey\n * @returns\n */\nvar filterTreeData = function filterTreeData(data, expandedRowKeys, rowKey) {\n return (0,_flattenData__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(data).filter(function (rowData) {\n if (rowKey) {\n var parents = (0,_findAllParents__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(rowData, rowKey);\n var expanded = (0,_shouldShowRowByExpanded__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(expandedRowKeys, parents);\n\n // FIXME This function is supposed to be pure.\n // Don't mutate rowData in-place!\n rowData[_constants__WEBPACK_IMPORTED_MODULE_5__.EXPANDED_KEY] = expanded;\n rowData[_constants__WEBPACK_IMPORTED_MODULE_5__.TREE_DEPTH] = parents.length;\n return expanded;\n }\n });\n};\nfunction useTableData(props) {\n var data = props.data,\n isTree = props.isTree,\n expandedRowKeys = props.expandedRowKeys,\n rowKey = props.rowKey;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(function () {\n return isTree ? filterTreeData(data, expandedRowKeys, rowKey) : data;\n }),\n tableData = _useState[0],\n setData = _useState[1];\n (0,_useUpdateEffect__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function () {\n setData(isTree ? filterTreeData(data, expandedRowKeys, rowKey) : data);\n }, [data, expandedRowKeys, rowKey, isTree]);\n return tableData;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTableData);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useTableData.js?");
|
|
12253
|
-
|
|
12254
|
-
/***/ }),
|
|
12255
|
-
|
|
12256
|
-
/***/ "./node_modules/rsuite-table/es/utils/useTableDimension.js":
|
|
12257
|
-
/*!*****************************************************************!*\
|
|
12258
|
-
!*** ./node_modules/rsuite-table/es/utils/useTableDimension.js ***!
|
|
12259
|
-
\*****************************************************************/
|
|
12260
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12261
|
-
|
|
12262
|
-
"use strict";
|
|
12263
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_getWidth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/getWidth */ \"./node_modules/dom-lib/esm/getWidth.js\");\n/* harmony import */ var dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-lib/getHeight */ \"./node_modules/dom-lib/esm/getHeight.js\");\n/* harmony import */ var dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-lib/getOffset */ \"./node_modules/dom-lib/esm/getOffset.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ \"./node_modules/rsuite-table/es/constants.js\");\n/* harmony import */ var _juggle_resize_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @juggle/resize-observer */ \"./node_modules/@juggle/resize-observer/lib/exports/resize-observer.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/utils/useMount.js\");\n/* harmony import */ var _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useUpdateLayoutEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateLayoutEffect.js\");\n/* harmony import */ var _useIntersectionObserver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useIntersectionObserver */ \"./node_modules/rsuite-table/es/utils/useIntersectionObserver.js\");\n/* harmony import */ var _isNumberOrTrue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./isNumberOrTrue */ \"./node_modules/rsuite-table/es/utils/isNumberOrTrue.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_10__);\n'use client';\n\n\n\n\n\n\n\n\n\n\n\n/**\n * The dimension information of the table,\n * including the height, width, scrollable distance and the coordinates of the scroll handle, etc.\n * @param props\n * @returns\n */\nvar useTableDimension = function useTableDimension(props) {\n var data = props.data,\n rowHeight = props.rowHeight,\n tableRef = props.tableRef,\n headerWrapperRef = props.headerWrapperRef,\n prefix = props.prefix,\n widthProp = props.width,\n affixHeader = props.affixHeader,\n affixHorizontalScrollbar = props.affixHorizontalScrollbar,\n headerHeight = props.headerHeight,\n heightProp = props.height,\n autoHeightProp = props.autoHeight,\n minHeight = props.minHeight,\n maxHeight = props.maxHeight,\n fillHeight = props.fillHeight,\n children = props.children,\n expandedRowKeys = props.expandedRowKeys,\n showHeader = props.showHeader,\n bordered = props.bordered,\n onTableResizeChange = props.onTableResizeChange,\n onTableScroll = props.onTableScroll;\n var contentHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var contentWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var minScrollY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var scrollY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var scrollX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var minScrollX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var tableWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(widthProp || 0);\n var tableHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(heightProp || 0);\n var columnCount = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);\n var resizeObserver = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var containerResizeObserver = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n var headerOffset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);\n var tableOffset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);\n var autoHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {\n return autoHeightProp && !maxHeight;\n }, [autoHeightProp, maxHeight]);\n var getRowHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (rowData) {\n return typeof rowHeight === 'function' ? rowHeight(rowData) : rowHeight;\n }, [rowHeight]);\n var calculateTableContextHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var _table$querySelectorA;\n var prevContentHeight = contentHeight.current;\n var table = tableRef === null || tableRef === void 0 ? void 0 : tableRef.current;\n var rows = (table === null || table === void 0 ? void 0 : table.querySelectorAll(\".\" + (prefix === null || prefix === void 0 ? void 0 : prefix('row')))) || [];\n var virtualized = (table === null || table === void 0 ? void 0 : (_table$querySelectorA = table.querySelectorAll('.virtualized')) === null || _table$querySelectorA === void 0 ? void 0 : _table$querySelectorA.length) > 0;\n var nextContentHeight = rows.length ? Array.from(rows).map(function (row, index) {\n return (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(row) || getRowHeight(data === null || data === void 0 ? void 0 : data[index]);\n }).reduce(function (x, y) {\n return x + y;\n }) : 0;\n\n // After setting the affixHeader property, the height of the two headers should be subtracted.\n contentHeight.current = Math.round(nextContentHeight - (affixHeader ? headerHeight * 2 : headerHeight));\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n\n // The height of the table content area should be added to the height occupied by the horizontal scroll bar when autoHeight is set.\n if (autoHeight && hasHorizontalScrollbar) {\n contentHeight.current += _constants__WEBPACK_IMPORTED_MODULE_4__.SCROLLBAR_WIDTH;\n }\n var height = fillHeight ? tableHeight.current : Math.max(heightProp, maxHeight || 0);\n var tableBodyHeight = showHeader ? height - headerHeight : height;\n if (!autoHeight) {\n /**\n * The purpose of subtracting SCROLLBAR_WIDTH is to keep the scroll bar from blocking the content part.\n * But it will only be calculated when there is a horizontal scroll bar (contentWidth > tableWidth).\n */\n minScrollY.current = -(nextContentHeight - height) - (hasHorizontalScrollbar ? _constants__WEBPACK_IMPORTED_MODULE_4__.SCROLLBAR_WIDTH : 0);\n }\n\n // If the height of the content area is less than the height of the table, the vertical scroll bar is reset.\n if (nextContentHeight < height) {\n onTableScroll === null || onTableScroll === void 0 ? void 0 : onTableScroll({\n y: 0\n });\n }\n var currentScrollTop = Math.abs(scrollY.current);\n\n // When Table is set to virtualized, the logic will be entered every time the wheel event is\n // triggered to avoid resetting the scroll bar after scrolling to the bottom, so add the SCROLLBAR_WIDTH value.\n var maxScrollTop = nextContentHeight + _constants__WEBPACK_IMPORTED_MODULE_4__.SCROLLBAR_WIDTH - tableBodyHeight;\n\n // If the top value of the current scroll is greater than the scrollable range,\n // keep the vertical scroll bar at the bottom.\n if (maxScrollTop > 0 && currentScrollTop > maxScrollTop) {\n if (virtualized) {\n onTableScroll === null || onTableScroll === void 0 ? void 0 : onTableScroll({\n y: ((data === null || data === void 0 ? void 0 : data.length) || 0) * getRowHeight() - tableBodyHeight\n });\n } else {\n onTableScroll === null || onTableScroll === void 0 ? void 0 : onTableScroll({\n y: maxScrollTop\n });\n }\n }\n if (prevContentHeight !== contentHeight.current) {\n onTableResizeChange === null || onTableResizeChange === void 0 ? void 0 : onTableResizeChange(prevContentHeight, 'bodyHeightChanged');\n }\n }, [tableRef, prefix, affixHeader, headerHeight, autoHeight, maxHeight, fillHeight, heightProp, showHeader, getRowHeight, data, onTableScroll, onTableResizeChange]);\n var setOffsetByAffix = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var headerNode = headerWrapperRef === null || headerWrapperRef === void 0 ? void 0 : headerWrapperRef.current;\n if ((0,_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(affixHeader) && headerNode) {\n headerOffset.current = (0,dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(headerNode);\n }\n if ((0,_isNumberOrTrue__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(affixHorizontalScrollbar) && tableRef !== null && tableRef !== void 0 && tableRef.current) {\n tableOffset.current = (0,dom_lib_getOffset__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(tableRef === null || tableRef === void 0 ? void 0 : tableRef.current);\n }\n }, [affixHeader, affixHorizontalScrollbar, headerWrapperRef, tableRef]);\n var calculateTableContentWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n var prevWidth = contentWidth.current;\n var prevColumnCount = columnCount.current;\n var table = tableRef === null || tableRef === void 0 ? void 0 : tableRef.current;\n var row = table === null || table === void 0 ? void 0 : table.querySelector(\".\" + prefix('row') + \":not(.virtualized)\");\n var nextContentWidth = row ? (0,dom_lib_getWidth__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(row) : 0;\n\n // Whether to show the horizontal scroll bar\n var hasHorizontalScrollbar = contentWidth.current > tableWidth.current;\n var scrollbarWidth = hasHorizontalScrollbar ? 0 : _constants__WEBPACK_IMPORTED_MODULE_4__.SCROLLBAR_WIDTH;\n contentWidth.current = nextContentWidth - (autoHeight ? scrollbarWidth : 0);\n columnCount.current = (row === null || row === void 0 ? void 0 : row.querySelectorAll(\".\" + prefix('cell')).length) || 0;\n\n // The value of SCROLLBAR_WIDTH is subtracted so that the scroll bar does not block the content part.\n // There is no vertical scroll bar after autoHeight.\n var minScrollWidth = -(nextContentWidth - tableWidth.current) - (autoHeight ? 0 : scrollbarWidth);\n if (minScrollX.current !== minScrollWidth) {\n minScrollX.current = minScrollWidth;\n if (scrollX.current < minScrollWidth) {\n // fix: 405#issuecomment-1464831646\n scrollX.current = minScrollWidth;\n }\n }\n\n /**\n * If the width of the content area and the number of columns change,\n * the horizontal scroll bar is reset.\n * fix: https://github.com/rsuite/rsuite/issues/2039\n */\n if (prevWidth > 0 && prevWidth !== contentWidth.current || prevColumnCount > 0 && prevColumnCount !== columnCount.current) {\n onTableResizeChange === null || onTableResizeChange === void 0 ? void 0 : onTableResizeChange(prevWidth, 'bodyWidthChanged');\n }\n }, [autoHeight, onTableResizeChange, prefix, tableRef]);\n var calculateTableWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextWidth) {\n var prevWidth = tableWidth.current;\n if (tableRef !== null && tableRef !== void 0 && tableRef.current) {\n tableWidth.current = nextWidth || (0,dom_lib_getWidth__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(tableRef === null || tableRef === void 0 ? void 0 : tableRef.current);\n }\n if (prevWidth && prevWidth !== tableWidth.current) {\n scrollX.current = 0;\n onTableResizeChange === null || onTableResizeChange === void 0 ? void 0 : onTableResizeChange(prevWidth, 'widthChanged');\n }\n setOffsetByAffix();\n }, [onTableResizeChange, setOffsetByAffix, tableRef]);\n var calculateTableHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (nextHeight) {\n var prevHeight = tableHeight.current;\n if (nextHeight) {\n tableHeight.current = nextHeight;\n } else if (tableRef !== null && tableRef !== void 0 && tableRef.current) {\n tableHeight.current = (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(tableRef.current.parentNode);\n }\n if (prevHeight && prevHeight !== tableHeight.current) {\n onTableResizeChange === null || onTableResizeChange === void 0 ? void 0 : onTableResizeChange(prevHeight, 'heightChanged');\n }\n }, [onTableResizeChange, tableRef]);\n (0,_useMount__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(function () {\n var _tableRef$current;\n calculateTableContextHeight();\n calculateTableContentWidth();\n calculateTableWidth();\n calculateTableHeight();\n setOffsetByAffix();\n containerResizeObserver.current = new _juggle_resize_observer__WEBPACK_IMPORTED_MODULE_5__.ResizeObserver(function (entries) {\n calculateTableHeight(entries[0].contentRect.height);\n });\n containerResizeObserver.current.observe(tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.parentNode);\n var changeTableWidthWhenResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_10___default()(function (entries) {\n var width = entries[0].contentRect.width;\n // bordered table width is 1px larger than the container width. fix: #405 #404\n var widthWithBorder = width + 2;\n calculateTableWidth(bordered ? widthWithBorder : width);\n }, 20);\n resizeObserver.current = new _juggle_resize_observer__WEBPACK_IMPORTED_MODULE_5__.ResizeObserver(changeTableWidthWhenResize);\n resizeObserver.current.observe(tableRef === null || tableRef === void 0 ? void 0 : tableRef.current);\n return function () {\n var _resizeObserver$curre, _containerResizeObser;\n (_resizeObserver$curre = resizeObserver.current) === null || _resizeObserver$curre === void 0 ? void 0 : _resizeObserver$curre.disconnect();\n (_containerResizeObser = containerResizeObserver.current) === null || _containerResizeObser === void 0 ? void 0 : _containerResizeObser.disconnect();\n };\n });\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(function () {\n calculateTableHeight();\n calculateTableContextHeight();\n }, [fillHeight]);\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(function () {\n calculateTableWidth();\n calculateTableContentWidth();\n calculateTableContextHeight();\n }, [data, heightProp, contentHeight.current, expandedRowKeys, children, calculateTableContextHeight, calculateTableContentWidth]);\n var isVisible = (0,_useIntersectionObserver__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(tableRef);\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(function () {\n // When the table is visible, the width of the table is recalculated.\n // fix: https://github.com/rsuite/rsuite/issues/397\n if (isVisible) {\n calculateTableWidth();\n calculateTableContentWidth();\n }\n }, [isVisible]);\n var setScrollY = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {\n scrollY.current = value;\n }, []);\n var setScrollX = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (value) {\n scrollX.current = value;\n }, []);\n var getTableHeight = function getTableHeight() {\n if (fillHeight) {\n return tableHeight.current;\n }\n\n // When the data is empty and autoHeight is set, use the default height to display the empty state.\n if ((data === null || data === void 0 ? void 0 : data.length) === 0 && autoHeight) {\n return heightProp;\n }\n var height = autoHeightProp ? headerHeight + contentHeight.current : heightProp;\n if (maxHeight && height > maxHeight) {\n return maxHeight;\n }\n if (minHeight && height < minHeight) {\n return minHeight;\n }\n return height;\n };\n return {\n contentHeight: contentHeight,\n contentWidth: contentWidth,\n minScrollY: minScrollY,\n minScrollX: minScrollX,\n scrollY: scrollY,\n scrollX: scrollX,\n tableWidth: tableWidth,\n headerOffset: headerOffset,\n tableOffset: tableOffset,\n getTableHeight: getTableHeight,\n setScrollY: setScrollY,\n setScrollX: setScrollX\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTableDimension);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useTableDimension.js?");
|
|
12264
|
-
|
|
12265
|
-
/***/ }),
|
|
12266
|
-
|
|
12267
|
-
/***/ "./node_modules/rsuite-table/es/utils/useTableRows.js":
|
|
12268
|
-
/*!************************************************************!*\
|
|
12269
|
-
!*** ./node_modules/rsuite-table/es/utils/useTableRows.js ***!
|
|
12270
|
-
\************************************************************/
|
|
12271
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12272
|
-
|
|
12273
|
-
"use strict";
|
|
12274
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/getHeight */ \"./node_modules/dom-lib/esm/getHeight.js\");\n/* harmony import */ var _useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useUpdateLayoutEffect */ \"./node_modules/rsuite-table/es/utils/useUpdateLayoutEffect.js\");\n/* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useMount */ \"./node_modules/rsuite-table/es/utils/useMount.js\");\n/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ \"./node_modules/lodash/isEmpty.js\");\n/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./defer */ \"./node_modules/rsuite-table/es/utils/defer.js\");\n'use client';\n\n\n\n\n\n\n/**\n * The row information of the table, get the DOM of all rows, and summarize the row height.\n * @param props\n * @returns\n */\nvar useTableRows = function useTableRows(props) {\n var prefix = props.prefix,\n wordWrap = props.wordWrap,\n data = props.data,\n expandedRowKeys = props.expandedRowKeys;\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),\n tableRowsMaxHeight = _useState[0],\n setTableRowsMaxHeight = _useState[1];\n var tableRows = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({});\n var bindTableRowsRef = function bindTableRowsRef(index, rowData) {\n return function (ref) {\n if (ref) {\n tableRows.current[index] = [ref, rowData];\n }\n };\n };\n var calculateRowMaxHeight = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n if (wordWrap) {\n var nextTableRowsMaxHeight = [];\n var curTableRows = Object.values(tableRows.current);\n for (var i = 0; i < curTableRows.length; i++) {\n var _curTableRows$i = curTableRows[i],\n row = _curTableRows$i[0];\n if (row) {\n var cells = row.querySelectorAll(\".\" + prefix('cell-wrap')) || [];\n var cellArray = Array.from(cells);\n var maxHeight = 0;\n for (var j = 0; j < cellArray.length; j++) {\n var cell = cellArray[j];\n var h = (0,dom_lib_getHeight__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(cell);\n maxHeight = Math.max(maxHeight, h);\n }\n nextTableRowsMaxHeight.push(maxHeight);\n }\n }\n\n // Can't perform a React state update on an unmounted component\n if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(tableRows.current)) {\n setTableRowsMaxHeight(nextTableRowsMaxHeight);\n }\n }\n }, [prefix, wordWrap]);\n (0,_useMount__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(function () {\n (0,_defer__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(calculateRowMaxHeight);\n });\n (0,_useUpdateLayoutEffect__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(function () {\n /**\n * After the data is updated, the height of the cell DOM needs to be re-acquired,\n * and what is often obtained is not the latest DOM that has been rendered.\n * So use `defer` to delay obtaining the height of the cell DOM.\n * TODO: To be improved\n */\n (0,_defer__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(calculateRowMaxHeight);\n }, [data, expandedRowKeys]);\n return {\n bindTableRowsRef: bindTableRowsRef,\n tableRowsMaxHeight: tableRowsMaxHeight,\n tableRows: tableRows\n };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useTableRows);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useTableRows.js?");
|
|
12275
|
-
|
|
12276
|
-
/***/ }),
|
|
12277
|
-
|
|
12278
|
-
/***/ "./node_modules/rsuite-table/es/utils/useUpdateEffect.js":
|
|
12279
|
-
/*!***************************************************************!*\
|
|
12280
|
-
!*** ./node_modules/rsuite-table/es/utils/useUpdateEffect.js ***!
|
|
12281
|
-
\***************************************************************/
|
|
12282
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12283
|
-
|
|
12284
|
-
"use strict";
|
|
12285
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n'use client';\n\nvar useUpdateEffect = function useUpdateEffect(effect, deps) {\n var isMounting = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n if (isMounting.current) {\n isMounting.current = false;\n return;\n }\n effect();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useUpdateEffect);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useUpdateEffect.js?");
|
|
12286
|
-
|
|
12287
|
-
/***/ }),
|
|
12288
|
-
|
|
12289
|
-
/***/ "./node_modules/rsuite-table/es/utils/useUpdateLayoutEffect.js":
|
|
12290
|
-
/*!*********************************************************************!*\
|
|
12291
|
-
!*** ./node_modules/rsuite-table/es/utils/useUpdateLayoutEffect.js ***!
|
|
12292
|
-
\*********************************************************************/
|
|
12293
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12294
|
-
|
|
12295
|
-
"use strict";
|
|
12296
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ \"./node_modules/rsuite-table/es/utils/useIsomorphicLayoutEffect.js\");\n'use client';\n\n\nvar useUpdateLayoutEffect = function useUpdateLayoutEffect(effect, deps) {\n var isMounting = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);\n (0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function () {\n if (isMounting.current) {\n isMounting.current = false;\n return;\n }\n effect();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useUpdateLayoutEffect);\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/useUpdateLayoutEffect.js?");
|
|
12285
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var dom_lib_addClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-lib/addClass */ \"./node_modules/dom-lib/esm/addClass.js\");\n/* harmony import */ var dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-lib/removeClass */ \"./node_modules/dom-lib/esm/removeClass.js\");\n'use client';\n\n\nvar toggleClass = function toggleClass(node, className, condition) {\n if (condition) {\n (0,dom_lib_addClass__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(node, className);\n } else {\n (0,dom_lib_removeClass__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(node, className);\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (node, className, condition) {\n if (!node) {\n return;\n }\n if (Array.isArray(node) || Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(node), 'length')) {\n node = node;\n Array.from(node).forEach(function (item) {\n toggleClass(item, className, condition);\n });\n return;\n }\n toggleClass(node, className, condition);\n});\n\n//# sourceURL=webpack://rsuite/./node_modules/rsuite-table/es/utils/toggleClass.js?");
|
|
12297
12286
|
|
|
12298
12287
|
/***/ }),
|
|
12299
12288
|
|