/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackJsonp_bos-platform"] = self["webpackJsonp_bos-platform"] || []).push([[5968],{

/***/ "./src/component/web/DataGrid/ReportGrid/commands/commandUtils.js":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/commands/commandUtils.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.decimalAddOrSub = decimalAddOrSub;\nexports.deleteRowOrCol = deleteRowOrCol;\nexports.getCellsValueAndFormula = getCellsValueAndFormula;\nexports.getDelData = getDelData;\nexports.getInsertData = getInsertData;\nexports.insertRowOrCol = insertRowOrCol;\nexports.updateFormula = updateFormula;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reverse.js */ \"../../node_modules/core-js/modules/es.array.reverse.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _reportUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _directiveUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveUtils.js */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\");\nvar _responseToolbarUtils = __webpack_require__(/*! ../dataPipeModel/responseToolbarUtils */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\");\nvar _convertFormat = __webpack_require__(/*! ../utils/convertFormat */ \"./src/component/web/DataGrid/ReportGrid/utils/convertFormat.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction getInsertData(data, dir, area) {\n  var newData = [];\n  var direction = area === 'row' ? 'bottom' : 'after';\n  // 向后插入\n  if (dir === direction && _typeof(data[0]) === 'object') {\n    var _data$ = data[0],\n      index = _data$.index,\n      count = _data$.count;\n    for (var i = index + 1; i <= count + index; i++) {\n      newData.push(i);\n    }\n  } else if (dir === direction && _typeof(data[0]) !== 'object') {\n    newData = data.map(function (val, i) {\n      for (var j = i + 1; j < data.length; j++) {\n        val = val > data[j] || val === data[j] ? val + 1 : val;\n      }\n      return val + 1;\n    }).sort();\n    // 向前插入\n  } else if (dir !== direction && _typeof(data[0]) === 'object') {\n    var _data$2 = data[0],\n      _index = _data$2.index,\n      _count = _data$2.count;\n    for (var _i = _index; _i < _count + _index; _i++) {\n      newData.push(_i);\n    }\n  } else if (dir !== direction && _typeof(data[0]) !== 'object') {\n    // 适配后端 [5,2,3,7,9] => [8,2,3,7,9] => [2, 3, 7, 8, 9]  [5,5,5,5] => [8,7,6,5] => [5,6,7,8]\n    newData = data.map(function (val, i) {\n      for (var j = i + 1; j < data.length; j++) {\n        val = val > data[j] || val === data[j] ? val + 1 : val;\n      }\n      return val;\n    }).sort();\n  }\n  return newData;\n}\nfunction getDelData(data) {\n  var newData = [];\n  if (_typeof(data[0]) === 'object') {\n    var _data$3 = data[0],\n      index = _data$3.index,\n      count = _data$3.count;\n    for (var i = index; i < count + index; i++) {\n      newData.push(i);\n    }\n  } else {\n    newData = data.sort().reverse();\n  }\n  return newData;\n}\nfunction insertRowOrCol(options, isUndo, props, dataPipeModel, area) {\n  var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n  var _props$model = props.model,\n    pageId = _props$model.pageId,\n    key = _props$model.key;\n  // yTa与sheetId存在于撤销或反撤销阶段 这里用于判断反撤销\n  var data = options.data,\n    copyStyle = options.copyStyle,\n    dir = options.dir,\n    yTa = options.yTa,\n    sheetId = options.sheetId,\n    sheetName = options.sheetName;\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var sheetEventHandle = getGlobalContext().sheetEventHandle;\n  var spread = getGlobalContext().spread;\n  var sheet = spread.getSheetFromName(sheetName);\n  if (isUndo) {\n    var delData = getInsertData(data, dir, area) || [];\n    if (delData.length < 1) return;\n    Commands.undoTransaction(spread, options);\n    var method = area === 'row' ? 'deleteRow' : 'deleteCol';\n    var args = {\n      method: method,\n      data: delData,\n      isUndo: true\n    };\n    props.invokeControlMethodOnly({\n      pageId: pageId,\n      key: key\n    }, 'askExecute', [args]);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, sheetEventHandle.selectionChanged);\n  } else {\n    Commands.startTransaction(spread, options);\n    area === 'row' ? (0, _directiveUtils.addRows)(data, copyStyle, dir)(sheet) : (0, _directiveUtils.addCols)(data, copyStyle, dir)(sheet);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, sheetEventHandle.selectionChanged);\n    Commands.endTransaction(spread, options);\n    if (yTa || sheetId) {\n      var insertData = getInsertData(data, dir, area) || [];\n      // if (rows.length < 1) return\n      var _method = area === 'row' ? 'insertRow' : 'insertCol';\n      var _args = {\n        method: _method,\n        data: insertData,\n        isUndo: true\n      };\n      props.invokeControlMethodOnly({\n        pageId: pageId,\n        key: key\n      }, 'askExecute', [_args]);\n    }\n  }\n}\nfunction deleteRowOrCol(options, isUndo, props, dataPipeModel, area) {\n  var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n  var _props$model2 = props.model,\n    pageId = _props$model2.pageId,\n    key = _props$model2.key;\n  var sheetName = options.sheetName,\n    yTa = options.yTa,\n    sheetId = options.sheetId,\n    data = options.data;\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var sheetEventHandle = getGlobalContext().sheetEventHandle;\n  var spread = getGlobalContext().spread;\n  var sheet = spread.getSheetFromName(sheetName);\n  var si = spread.getActiveSheetIndex();\n  if (isUndo) {\n    Commands.undoTransaction(spread, options);\n    var rowOrColData = getDelData(data);\n    var cellValues = [];\n    var cellFormulas = [];\n    var count = area === 'row' ? sheet.getColumnCount() : sheet.getRowCount();\n    rowOrColData.forEach(function (val) {\n      for (var i = 0; i < count; i++) {\n        var r = area === 'row' ? val : i;\n        var c = area === 'row' ? i : val;\n        var value = sheet.getValue(r, c);\n        var formula = sheet.getFormula(r, c);\n        value !== null && cellValues.push({\n          r: r,\n          c: c,\n          v: value\n        });\n        formula && cellFormulas.push({\n          r: r,\n          c: c,\n          f: formula\n        });\n      }\n    });\n    var method = area === 'row' ? 'insertRow' : 'insertCol';\n    var args = {\n      method: method,\n      data: rowOrColData,\n      isUndo: true\n    };\n    props.invokeControlMethodOnly({\n      pageId: pageId,\n      key: key\n    }, 'askExecute', [args]);\n    cellFormulas.length > 0 && props.invokeControlMethodOnly({\n      pageId: pageId,\n      key: key\n    }, 'updateFormula', [{\n      si: si,\n      formulas: cellFormulas\n    }]);\n    cellValues.length > 0 && props.invokeControlMethodOnly({\n      pageId: pageId,\n      key: key\n    }, 'updateValue', [{\n      si: si,\n      values: cellValues\n    }]);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, sheetEventHandle.selectionChanged);\n  } else {\n    Commands.startTransaction(spread, options);\n    if (yTa || sheetId) {\n      var rows = getDelData(data);\n      var _method2 = area === 'row' ? 'deleteRow' : 'deleteCol';\n      var _args2 = {\n        method: _method2,\n        data: rows,\n        isUndo: true\n      };\n      props.invokeControlMethodOnly({\n        pageId: pageId,\n        key: key\n      }, 'askExecute', [_args2]);\n    }\n    area === 'row' ? (0, _directiveUtils.deleteRows)(data)(sheet) : (0, _directiveUtils.deleteCols)(data)(sheet);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, sheetEventHandle.selectionChanged);\n    Commands.endTransaction(spread, options);\n  }\n}\nfunction updateFormula(spread, options, isUndo) {\n  var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n  var sheetName = options.sheetName,\n    data = options.data;\n  var sheet = spread.getSheetFromName(sheetName);\n  if (isUndo) {\n    // 撤销公式未发值更新指令 这里也不发\n    Commands.undoTransaction(spread, options);\n  } else {\n    Commands.startTransaction(spread, options);\n    data.forEach(function (_ref) {\n      var r = _ref.r,\n        c = _ref.c,\n        f = _ref.f;\n      sheet.setFormula(r, c, f);\n      // 避免撤销时只撤销了公式没撤销值 避免更新值时未向后端发指令\n      sheet.setValue(r, c, 'spreadInvalidContentPadding0101');\n    });\n    Commands.endTransaction(spread, options);\n  }\n}\n\n/**\n * 获取给定区域的值与公式\n * @param {Object} sheet - 工作表\n * @param {Object} selections - 选中单元格区域\n * @return {Object} {cellsValue: [], cellsFormula: []} 给定区域的值与公式\n */\nfunction getCellsValueAndFormula(sheet, selections) {\n  var sheetName = sheet.name();\n  var cellsValue = [];\n  var cellsFormula = [];\n  // 清除类型是全部或者数据时，撤销之后才需要发updateValue请求\n  selections.forEach(function (sel) {\n    var newSel = (0, _responseToolbarUtils.convertRange)(sheet, sel);\n    var row = newSel.row,\n      col = newSel.col,\n      rowCount = newSel.rowCount,\n      colCount = newSel.colCount;\n    for (var i = row; i < row + rowCount; i++) {\n      for (var j = col; j < col + colCount; j++) {\n        var value = sheet.getValue(i, j);\n        var formula = sheet.getFormula(i, j);\n        cellsValue.push({\n          r: i,\n          c: j,\n          v: value,\n          sn: sheetName\n        });\n        cellsFormula.push({\n          r: i,\n          c: j,\n          f: formula,\n          sn: sheetName\n        });\n      }\n    }\n  });\n  return {\n    cellsValue: cellsValue,\n    cellsFormula: cellsFormula\n  };\n}\nfunction decimalAddOrSub(cell, formatStr) {\n  var row = cell.row,\n    col = cell.col,\n    sheet = cell.sheet;\n  var formatter = (sheet === null || sheet === void 0 ? void 0 : sheet.getCell(row, col).formatter()) || 'General';\n  var parseFormat = (0, _convertFormat.parse)(formatter);\n  var type = (0, _convertFormat.getFormatString)(formatter);\n  var includeDecimalArray = ['numbers', 'currency', 'percentage', 'accounting']; // 规定哪些格式可以使用添加/减少小数点\n  if (!formatter || !includeDecimalArray.includes(type)) return;\n  var decimalLength = parseFormat.decimalPlace || 0;\n  var decimalPlace = formatStr === 'decimalAdd' ? decimalLength + 1 : decimalLength - 1;\n  if (decimalPlace <= 0) return;\n  parseFormat.decimalPlace = decimalPlace;\n  var NewFormatter = (0, _convertFormat.stringify)(parseFormat, type);\n  var formatString = NewFormatter.formatString();\n  return formatString;\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/commands/commandUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/commands/customCommand.js":
/*!*************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/commands/customCommand.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = getCustomCommands;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _eventUtils = __webpack_require__(/*! ../events/eventUtils */ \"./src/component/web/DataGrid/ReportGrid/events/eventUtils.js\");\nvar _commandUtils = __webpack_require__(/*! ./commandUtils */ \"./src/component/web/DataGrid/ReportGrid/commands/commandUtils.js\");\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _directiveUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\");\nvar _directiveHandle = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveHandle */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js\");\nvar reportMethods = _interopRequireWildcard(__webpack_require__(/*! ../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\"));\nvar responseMethods = _interopRequireWildcard(__webpack_require__(/*! ../dataPipeModel/responseToolbarUtils */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\"));\nvar _borderInfo = __webpack_require__(/*! ../constant/borderInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/borderInfo.js\");\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 自定义Spread Command\n */\n\nfunction getCustomCommands(spread, props, dataPipeModel) {\n  var commandFuns = {};\n\n  /**\n   * 自定义键盘删除指令\n   */\n  var customDelete = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var _props$model = props.model,\n        pageId = _props$model.pageId,\n        key = _props$model.key;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        if (options.values) {\n          var values = [];\n          var si = spread.getActiveSheetIndex();\n          options.values.forEach(function (value) {\n            var r = value.r,\n              c = value.c,\n              sn = value.sn;\n            if (sn) {\n              var v = sheet.getValue(r, c);\n              values.push({\n                r: r,\n                c: c,\n                v: v,\n                sn: sn\n              });\n            } else {\n              var _v = sheet.getValue(r, c);\n              values.push({\n                r: r,\n                c: c,\n                v: _v\n              });\n            }\n          });\n          props.invokeControlMethodOnly({\n            pageId: pageId,\n            key: key\n          }, 'updateValue', [{\n            si: si,\n            values: values\n          }]);\n        }\n      } else {\n        Commands.startTransaction(spread, options);\n        var activeCol = sheet.getActiveColumnIndex();\n        var activeRow = sheet.getActiveRowIndex();\n        var isProtected = sheet.options.isProtected;\n        var _values = options.values,\n          formulas = options.formulas;\n        spread.suspendPaint();\n        if (_values !== []) {\n          _values.forEach(function (value) {\n            var r = value.r,\n              c = value.c,\n              v = value.v;\n            sheet.setValue(r, c, v);\n          });\n        }\n        if (formulas !== []) {\n          formulas.forEach(function (formula) {\n            var r = formula.r,\n              c = formula.c,\n              v = formula.v;\n            sheet.setFormula(r, c, v);\n            sheet.setValue(r, c, null);\n            _values.push({\n              r: r,\n              c: c,\n              v: null\n            });\n          });\n        }\n        spread.resumePaint();\n        if (!(isProtected && sheet.getCell(activeRow, activeCol).locked())) {\n          var args = {\n            type: 'KeyboardDelete',\n            value: null\n          };\n          dataPipeModel.sendData(args);\n        }\n        if (_values.length > 0) {\n          var _si = spread.getActiveSheetIndex();\n          props.invokeControlMethodOnly({\n            pageId: pageId,\n            key: key\n          }, 'updateValue', [{\n            si: _si,\n            values: _values\n          }]);\n        }\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.customDelete = customDelete;\n  /**\n   * 删除图片\n   */\n  var delePic = {\n    canUndo: true,\n    execute: function execute(context, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      options.cmd = 'delePic';\n      var _props$model2 = props.model,\n        pageId = _props$model2.pageId,\n        key = _props$model2.key;\n      var data = (0, _memoryCacher.getPageData)(pageId, [key, 'delePic']);\n      var sheet = spread.getActiveSheet();\n      if (isUndo) {\n        Commands.undoTransaction(context, options);\n        return true;\n      } else {\n        Commands.startTransaction(context, options);\n        sheet.floatingObjects.remove(data === null || data === void 0 ? void 0 : data.name);\n        Commands.endTransaction(context, options);\n        return true;\n      }\n    }\n  };\n  commandFuns.delePic = delePic;\n\n  /**\n   * delete键\n   */\n  var keyboardDelete = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var sheet = spread.getActiveSheet();\n      var changedCells = sheet.getSelections();\n      var formulas = [];\n      changedCells.forEach(function (s) {\n        var r = s.row;\n        var c = s.col;\n        var rc = r + s.rowCount;\n        var cc = c + s.colCount;\n        for (var i = r; i < rc; i++) {\n          for (var j = c; j < cc; j++) {\n            var f = sheet.getFormula(i, j);\n            f !== null && formulas.push({\n              r: i,\n              c: j,\n              f: null\n            });\n          }\n        }\n      });\n      var si = spread.getActiveSheetIndex();\n      var params = {\n        method: 'updateFormula',\n        arg: {\n          si: si,\n          formulas: formulas\n        },\n        needMergedKeys: ['formulas']\n      };\n      formulas.length > 0 && props.mergeAction.registerAction(params);\n    }\n  };\n  commandFuns.keyboardDelete = keyboardDelete;\n\n  /**\n   * 设置单元格前景色、背景色指令\n   */\n  var setCellColor = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var selections = options.xC.GLc;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        selections.forEach(function (sel) {\n          // range在选中整行整列（row或者count为-1）时，设置单元格颜色对已有颜色的单元格无效，需要手动将行列改为选中区域的形式（row或count不为-1）\n          var _responseMethods$conv = responseMethods.convertRange(sheet, sel),\n            row = _responseMethods$conv.row,\n            col = _responseMethods$conv.col,\n            rowCount = _responseMethods$conv.rowCount,\n            colCount = _responseMethods$conv.colCount;\n          for (var i = row; i < row + rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(sheet, i)) continue;\n            var range = sheet.getRange(i, col, 1, colCount);\n            if (options.colorType === 'fore') {\n              range.foreColor(options.color);\n            } else if (options.colorType === 'back') {\n              range.backColor(options.color);\n            }\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setCellColor = setCellColor;\n\n  /**\n    * 设置字体 与css设置font相似 参数从左到右分别为font-style，font-variant，font-weight，font-size/line-height，font-family\n    * @param {String} fontType - 需要设置的字体样式，从1到5，分别表示font的5个参数\n    * @param {String} changeData - 字体样式的具体值\n    */\n  var setFont = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var fontType = options.fontType,\n        changeData = options.changeData;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var sheet = spread.getActiveSheet();\n        var row = sheet.getActiveRowIndex();\n        var col = sheet.getActiveColumnIndex();\n        (0, _eventUtils.sendCellInfo)(col, row, sheet, dataPipeModel);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var _sheet = spread.getActiveSheet();\n        var selections = _sheet.getSelections();\n        selections.forEach(function (sel) {\n          var row = sel.row,\n            col = sel.col,\n            rowCount = sel.rowCount,\n            colCount = sel.colCount;\n          for (var i = row; i < row + rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(_sheet, i)) continue;\n            for (var j = col; j < col + colCount; j++) {\n              if (fontType === 1) {\n                var fontArr = responseMethods.getActiveCellStyle(_sheet, {\n                  r: i,\n                  c: j\n                });\n                fontArr[0] = changeData;\n                var fontStr = fontArr.join(' ');\n                _sheet.getCell(i, j).font(fontStr);\n              } else if (fontType === 3) {\n                var _fontArr = responseMethods.getActiveCellStyle(_sheet, {\n                  r: i,\n                  c: j\n                });\n                _fontArr[2] = changeData;\n                var _fontStr = _fontArr.join(' ');\n                _sheet.getCell(i, j).font(_fontStr);\n              } else if (fontType === 4) {\n                // 修改字体大小\n                var _fontArr2 = responseMethods.getActiveCellStyle(_sheet, {\n                  r: i,\n                  c: j\n                });\n                _fontArr2[3] = changeData;\n                var _fontStr2 = _fontArr2.join(' ');\n                _sheet.getCell(i, j).font(_fontStr2);\n                (0, _common.autoFitRow)(_sheet, i);\n              } else if (fontType === 5) {\n                var _fontArr3 = responseMethods.getActiveCellStyle(_sheet, {\n                  r: i,\n                  c: j\n                });\n                _fontArr3[4] = changeData;\n                var _fontStr3 = _fontArr3.join(' ');\n                _sheet.getCell(i, j).font(_fontStr3);\n              }\n            }\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setFont = setFont;\n\n  /**\n   * 设置下划线\n   */\n  var setUnderline = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var sheet = spread.getActiveSheet();\n        var row = sheet.getActiveRowIndex();\n        var col = sheet.getActiveColumnIndex();\n        (0, _eventUtils.sendCellInfo)(col, row, sheet, dataPipeModel);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var _sheet2 = spread.getActiveSheet();\n        var selections = _sheet2.getSelections();\n        var textDecoration = _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.underline;\n        if (!options.underline) {\n          textDecoration = _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.none;\n        }\n        selections.forEach(function (s) {\n          var row = s.row,\n            col = s.col,\n            rowCount = s.rowCount,\n            colCount = s.colCount;\n          for (var i = row; i < row + rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(_sheet2, i)) continue;\n            _sheet2.getRange(i, col, 1, colCount).textDecoration(textDecoration);\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setUnderline = setUnderline;\n\n  /**\n   * 设置单元格边框\n   */\n  var setBorder = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var sheet = spread.getActiveSheet();\n        var selections = sheet.getSelections();\n        var borderColor = options.color || '#000000';\n        var borderStyle = options.style || 'thin';\n        var border = new _spreadSheets[\"default\"].Spread.Sheets.LineBorder(borderColor, _spreadSheets[\"default\"].Spread.Sheets.LineStyle[borderStyle]);\n        var doCellBorder = function doCellBorder(row, col, rowCount, colCount, border, borderOption) {\n          for (var i = row; i < row + rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(sheet, i)) continue;\n            if (borderOption.outline) {\n              switch (i) {\n                case row:\n                  sheet.getRange(i, col, 1, colCount).setBorder(border, {\n                    top: true,\n                    left: true,\n                    right: true\n                  });\n                  break;\n                case row + rowCount - 1:\n                  sheet.getRange(i, col, 1, colCount).setBorder(border, {\n                    bottom: true,\n                    left: true,\n                    right: true\n                  });\n                  break;\n                default:\n                  sheet.getRange(i, col, 1, colCount).setBorder(border, {\n                    left: true,\n                    right: true\n                  });\n                  break;\n              }\n            } else {\n              sheet.getRange(i, col, 1, colCount).setBorder(border, borderOption);\n            }\n          }\n        };\n        selections.forEach(function (s) {\n          var row = s.row,\n            col = s.col,\n            rowCount = s.rowCount,\n            colCount = s.colCount;\n          switch (options.borderType) {\n            case _borderInfo.borderType.bottom:\n              doCellBorder(row + rowCount - 1, col, 1, colCount, border, {\n                bottom: true\n              });\n              break;\n            case _borderInfo.borderType.top:\n              doCellBorder(row, col, 1, colCount, border, {\n                top: true\n              });\n              break;\n            case _borderInfo.borderType.left:\n              doCellBorder(row, col, rowCount, 1, border, {\n                left: true\n              });\n              break;\n            case _borderInfo.borderType.right:\n              doCellBorder(row, col + colCount - 1, rowCount, 1, border, {\n                right: true\n              });\n              break;\n            case _borderInfo.borderType.none:\n              doCellBorder(row, col, rowCount, colCount, null, {\n                all: true,\n                diagonalUp: true,\n                diagonalDown: true\n              });\n              break;\n            case _borderInfo.borderType.all:\n              doCellBorder(row, col, rowCount, colCount, border, {\n                all: true\n              });\n              break;\n            case _borderInfo.borderType.outer:\n              doCellBorder(row, col, rowCount, colCount, border, {\n                outline: true\n              });\n              break;\n            case _borderInfo.borderType.wideOuter:\n              doCellBorder(row, col, rowCount, colCount, new _spreadSheets[\"default\"].Spread.Sheets.LineBorder(borderColor, _spreadSheets[\"default\"].Spread.Sheets.LineStyle.medium), {\n                outline: true\n              });\n              break;\n            case _borderInfo.borderType.diagonalDown:\n              doCellBorder(row, col, rowCount, colCount, border, {\n                diagonalDown: true\n              });\n              break;\n            case _borderInfo.borderType.diagonalUp:\n              doCellBorder(row, col, rowCount, colCount, border, {\n                diagonalUp: true\n              });\n              break;\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setBorder = setBorder;\n\n  /**\n   * 设置单元格换行\n   */\n  var setWordWrap = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var sheet = spread.getActiveSheet();\n        var row = sheet.getActiveRowIndex();\n        var col = sheet.getActiveColumnIndex();\n        (0, _eventUtils.sendCellInfo)(col, row, sheet, dataPipeModel);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var activeSheet = spread.getActiveSheet();\n        var selections = activeSheet.getSelections();\n        var sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport;\n        selections.forEach(function (selection) {\n          var _responseMethods$conv2 = responseMethods.convertRange(activeSheet, selection),\n            col = _responseMethods$conv2.col,\n            colCount = _responseMethods$conv2.colCount,\n            row = _responseMethods$conv2.row,\n            rowCount = _responseMethods$conv2.rowCount;\n          var cellStyle = activeSheet.getStyle(row, col);\n          var isWordWrap = cellStyle && cellStyle.wordWrap;\n          for (var i = row; i < row + rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(activeSheet, i)) continue;\n            activeSheet.getRange(i, col, 1, colCount, sheetArea).wordWrap(!isWordWrap);\n            var cursor = i;\n            while (cursor < rowCount + row) {\n              activeSheet.autoFitRow(cursor);\n              cursor++;\n            }\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setWordWrap = setWordWrap;\n\n  /**\n   * 设置垂直方向对齐方式\n   */\n  var setVAlign = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var sheet = spread.getActiveSheet();\n        var row = sheet.getActiveRowIndex();\n        var col = sheet.getActiveColumnIndex();\n        (0, _eventUtils.sendCellInfo)(col, row, sheet, dataPipeModel);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var _sheet3 = spread.getActiveSheet();\n        var selections = _sheet3.getSelections();\n        selections.forEach(function (sel) {\n          var newSel = responseMethods.convertRange(_sheet3, sel);\n          for (var i = newSel.row; i < newSel.row + newSel.rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(_sheet3, i)) continue;\n            if (options.vAlignType === 0) {\n              _sheet3.getRange(i, newSel.col, 1, newSel.colCount).vAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.left);\n            } else if (options.vAlignType === 1) {\n              _sheet3.getRange(i, newSel.col, 1, newSel.colCount).vAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.center);\n            } else if (options.vAlignType === 2) {\n              _sheet3.getRange(i, newSel.col, 1, newSel.colCount).vAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.right);\n            }\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setVAlign = setVAlign;\n\n  /**\n   * 设置水平方向对齐方式\n   */\n  var setHAlign = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var sheet = spread.getActiveSheet();\n        var row = sheet.getActiveRowIndex();\n        var col = sheet.getActiveColumnIndex();\n        (0, _eventUtils.sendCellInfo)(col, row, sheet, dataPipeModel);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var _sheet4 = spread.getActiveSheet();\n        var selections = _sheet4.getSelections();\n        selections.forEach(function (sel) {\n          var newSel = responseMethods.convertRange(_sheet4, sel);\n          for (var i = newSel.row; i < newSel.row + newSel.rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(_sheet4, i)) continue;\n            if (options.hAlignType === 0) {\n              _sheet4.getRange(i, newSel.col, 1, newSel.colCount).hAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.left);\n            } else if (options.hAlignType === 1) {\n              _sheet4.getRange(i, newSel.col, 1, newSel.colCount).hAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.center);\n            } else if (options.hAlignType === 2) {\n              _sheet4.getRange(i, newSel.col, 1, newSel.colCount).hAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.right);\n            }\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setHAlign = setHAlign;\n\n  /**\n   * 设置单元格缩进\n   */\n  var setTextIndent = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var sheet = spread.getActiveSheet();\n        var selections = sheet.getSelections();\n        selections.forEach(function (sel) {\n          var newSel = responseMethods.convertRange(sheet, sel);\n          for (var i = newSel.row; i < newSel.row + newSel.rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(sheet, i)) continue;\n            for (var j = newSel.col; j < newSel.col + newSel.colCount; j++) {\n              var cell = sheet.getCell(i, j);\n              var oldIndent = cell.textIndent() || 0;\n              if (options.indentType === 0) {\n                cell.textIndent(oldIndent + 1);\n              } else {\n                cell.textIndent(oldIndent - 1);\n              }\n            }\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setTextIndent = setTextIndent;\n\n  /**\n   * 合并单元格\n   */\n  var mergeCells = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var selections = options.xC.GLc;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var _sheet5 = spread.getActiveSheet();\n        var spans = _sheet5.getSpans();\n        selections.forEach(function (sel) {\n          var row = sel.row,\n            col = sel.col,\n            rowCount = sel.rowCount,\n            colCount = sel.colCount;\n          if (options.mergeType === 1) {\n            _sheet5.addSpan(row, col, rowCount, colCount);\n          } else if (options.mergeType === 2) {\n            spans.forEach(function (mergeSel) {\n              var r = mergeSel.row,\n                c = mergeSel.col,\n                rc = mergeSel.rowCount,\n                cc = mergeSel.colCount;\n              if (row <= r && r + rc <= row + rowCount && col <= c && c + cc <= col + colCount) {\n                _sheet5.removeSpan(r, c);\n              }\n            });\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      // 合并单元格是否处于点击状态，手动触发一次单元格更新\n      // 修复由于合并单元格没有触发事件导致工具栏不联动的问题\n      var sheet = spread.getActiveSheet();\n      dataPipeModel.sendData({\n        type: 'SendCellInfo',\n        sheet: sheet,\n        selections: selections\n      });\n      // 撤销不会触发selectionsChange事件\n      dataPipeModel.sendData({\n        type: 'UpdateMergeCell',\n        spread: spread\n      });\n      return true;\n    }\n  };\n  commandFuns.mergeCells = mergeCells;\n\n  /**\n    * 清楚单元格内容或者样式\n    */\n  var clearCells = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var _getCellsValueAndForm = (0, _commandUtils.getCellsValueAndFormula)(sheet, options.selections),\n          cellsValue = _getCellsValueAndForm.cellsValue,\n          cellsFormula = _getCellsValueAndForm.cellsFormula;\n        var si = spread.getActiveSheetIndex();\n        // todo: 如何手动触发一次valueChange事件\n        cellsFormula.length > 0 && props.invokeControlMethodOnly(props.model, 'updateFormula', [{\n          si: si,\n          formulas: cellsFormula\n        }]);\n        cellsValue.length > 0 && props.invokeControlMethodOnly(props.model, 'updateValue', [{\n          si: si,\n          values: cellsValue\n        }]);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var selections = sheet.getSelections();\n        options.selections = selections;\n        selections.forEach(function (selection) {\n          var s = responseMethods.convertRange(sheet, selection);\n          var row = s.row,\n            col = s.col,\n            rowCount = s.rowCount,\n            colCount = s.colCount;\n          for (var i = row; i < row + rowCount; i++) {\n            for (var j = col; j < col + colCount; j++) {\n              var cell = sheet.getCell(i, j);\n              if ((0, _common.isRowFilteredOut)(sheet, i)) continue;\n              if (options.clearType === 1) {\n                // 清除全部\n                if (cell.locked()) {\n                  // 锁定情况下不能清除值\n                  (0, _common.clearCellStyle)(sheet, i, j);\n                } else {\n                  (0, _common.clearCellStyle)(sheet, i, j);\n                  (0, _common.clearCellValue)(sheet, i, j);\n                }\n              } else if (options.clearType === 2) {\n                // 清除格式\n                // 清除样式不需要触发rangeChange请求\n                sheet.suppressRangeChanged = true;\n                (0, _common.clearCellStyle)(sheet, i, j);\n                sheet.suppressRangeChanged = false;\n              } else if (options.clearType === 3) {\n                // 清除内容\n                if (cell.locked()) continue;\n                (0, _common.clearCellValue)(sheet, i, j);\n              }\n            }\n          }\n        });\n\n        // 发送到后端的formula一定要等到前端执行完操作之后再获取，否则获得的是错误的数据\n        if (options.clearType === 1 || options.clearType === 2) {\n          var _si2 = spread.getActiveSheetIndex();\n          var _getCellsValueAndForm2 = (0, _commandUtils.getCellsValueAndFormula)(sheet, selections),\n            _cellsFormula = _getCellsValueAndForm2.cellsFormula;\n          _cellsFormula.length > 0 && props.invokeControlMethodOnly(props.model, 'updateFormula', [{\n            si: _si2,\n            formulas: _cellsFormula\n          }]);\n        }\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.clearCells = clearCells;\n\n  /**\n   * 设置单元格格式\n   */\n  var cellFormat = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var sheet = spread.getActiveSheet();\n        var selections = sheet.getSelections();\n        var formatStr = options.format;\n        selections.forEach(function (sel) {\n          var newSel = responseMethods.convertRange(sheet, sel);\n          var row = newSel.row,\n            col = newSel.col,\n            rowCount = newSel.rowCount,\n            colCount = newSel.colCount;\n          for (var i = row; i < row + rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(sheet, i)) continue;\n            var cell = sheet.getRange(i, col, 1, colCount);\n            if (formatStr === 'decimalAdd' || formatStr === 'decimalSub') {\n              formatStr = (0, _commandUtils.decimalAddOrSub)(cell, formatStr);\n            }\n            formatStr && cell.formatter(formatStr);\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.cellFormat = cellFormat;\n\n  /**\n   * 设置单元格锁定\n   */\n  var lockCells = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        var sheet = spread.getActiveSheet();\n        var selections = sheet.getSelections();\n        spread.suspendPaint();\n        selections.forEach(function (selection) {\n          var s = responseMethods.convertRange(sheet, selection);\n          for (var i = s.row; i < s.row + s.rowCount; i++) {\n            if ((0, _common.isRowFilteredOut)(sheet, i)) continue;\n            var range = sheet.getRange(i, s.col, 1, s.colCount);\n            if (options.lockType === 1) {\n              range.locked(true);\n            } else if (options.lockType === 2) {\n              range.locked(false);\n            }\n          }\n        });\n        reportMethods.protectSheet(sheet);\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.lockCells = lockCells;\n\n  /**\n   * 格式刷功能\n   */\n  var formatPainter = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        var source = options.source,\n          target = options.target,\n          sourceSheet = options.sourceSheet,\n          targetSheet = options.targetSheet;\n        spread.suspendPaint();\n        // 仅选一个目标单元格时将按源尺寸复制\n        if (target.rowCount === 1 && target.colCount === 1) {\n          target.rowCount = Math.min(source.rowCount, targetSheet.getRowCount() - target.row);\n          target.colCount = Math.min(source.colCount, targetSheet.getColumnCount() - target.col);\n        }\n        var targetEndRow = target.row + target.rowCount;\n        var targetEndCol = target.col + target.colCount;\n        for (var row = target.row; row < targetEndRow; row += source.rowCount) {\n          for (var col = target.col; col < targetEndCol; col += source.colCount) {\n            var copyRows = Math.min(targetEndRow - row, source.rowCount);\n            var copyCols = Math.min(targetEndCol - col, source.colCount);\n            for (var i = 0; i < copyRows; i++) {\n              for (var j = 0; j < copyCols; j++) {\n                var locked = targetSheet.getRange(i + row, j + col).locked();\n                var originStyle = sourceSheet.getStyle(i + source.row, j + source.col);\n                var isF7 = sourceSheet.getCellType(i + source.row, j + source.col).typeName === 'f7';\n                if (locked || isF7 || (0, _common.isRowFilteredOut)(sourceSheet, row)) continue;\n                // 每个单元格要设置一个独立的样式对象，否则会在paint时会相互影响\n                var targetStyle = targetSheet.getStyle(i + target.row, j + target.col);\n                var cellType = targetStyle && targetStyle.cellType;\n                var style = new _spreadSheets[\"default\"].Spread.Sheets.Style();\n                Object.assign(style, originStyle, {\n                  cellType: cellType\n                });\n                targetSheet.setStyle(i + row, j + col, style);\n              }\n            }\n          }\n          (0, _common.autoFitRow)(targetSheet, row); // 等复制样式之后再设置自适应\n        }\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.formatPainter = formatPainter;\n  /**\n   * 全部替换\n   */\n  var replaceAll = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var si = spread.getSheetIndex(options.sheet.name());\n      var _props$model3 = props.model,\n        pageId = _props$model3.pageId,\n        key = _props$model3.key;\n      var data = options.data,\n        sheetName = options.sheetName;\n      var sheet = spread.getSheetFromName(sheetName);\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        var changedValue = [];\n        data.forEach(function (item) {\n          var r = item.r,\n            c = item.c;\n          var value = sheet.getValue(r, c);\n          changedValue.push({\n            r: r,\n            c: c,\n            v: value\n          });\n        });\n        var _si3 = spread.getActiveSheetIndex();\n        changedValue.length > 0 && props.invokeControlMethodOnly({\n          pageId: pageId,\n          key: key\n        }, 'updateValue', [{\n          si: _si3,\n          values: changedValue\n        }]);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        var values = [];\n        var formulas = [];\n        data.forEach(function (_ref) {\n          var v = _ref.v,\n            c = _ref.c,\n            r = _ref.r;\n          if ((0, _common.isRowFilteredOut)(sheet, r)) return;\n          var isEqual = v && v.substr(0, 1) === '=';\n          var isFormula = sheet.getFormula(r, c);\n          if (isEqual && isFormula) {\n            try {\n              sheet.setFormula(r, c, v.substr(1));\n              formulas.push({\n                r: r,\n                c: c\n              });\n            } catch (error) {\n              dataPipeModel.sendData({\n                type: 'formulaError',\n                title: error\n              });\n            }\n          } else {\n            v = isEqual ? v.substr(1) : v;\n            sheet.setText(r, c, v);\n            values.push({\n              r: r,\n              c: c,\n              v: v,\n              sn: sheetName\n            });\n          }\n        });\n        spread.resumePaint();\n        if (formulas.length > 0) {\n          formulas.forEach(function (formula) {\n            var r = formula.r,\n              c = formula.c;\n            values.push({\n              r: r,\n              c: c,\n              v: sheet.getValue(r, c),\n              sn: sheetName\n            });\n          });\n        }\n        values.length > 0 && props.invokeControlMethodOnly({\n          pageId: pageId,\n          key: key\n        }, 'updateValue', [{\n          si: si,\n          values: values\n        }]);\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.replaceAll = replaceAll;\n\n  /**\n   * 插行/插列\n   * 传入的数据  [7, 7, 7, 7, 7, 7] ||  { index: 6, count: 3 }\n   * 给后端的数据 [7, 8, 9, 10, 11, 12]\n   */\n\n  var customInsertRow = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      (0, _commandUtils.insertRowOrCol)(options, isUndo, props, dataPipeModel, 'row');\n      return true;\n    }\n  };\n  commandFuns.customInsertRow = customInsertRow;\n  var customInsertCol = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      (0, _commandUtils.insertRowOrCol)(options, isUndo, props, dataPipeModel, 'col');\n      return true;\n    }\n  };\n  commandFuns.customInsertCol = customInsertCol;\n\n  /**\n   * 删行/删列\n   * 传入的数据  [10,9,8,7,6] || {index:1, count:3}\n   * 给后端的数据 [7, 8, 9, 10, 11, 12]\n   */\n\n  var customDeleteRow = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      (0, _commandUtils.deleteRowOrCol)(options, isUndo, props, dataPipeModel, 'row');\n      return true;\n    }\n  };\n  commandFuns.customDeleteRow = customDeleteRow;\n  var customDeleteCol = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      (0, _commandUtils.deleteRowOrCol)(options, isUndo, props, dataPipeModel, 'col');\n      return true;\n    }\n  };\n  commandFuns.customDeleteCol = customDeleteCol;\n\n  /**\n   * 设置公式\n   */\n  var customSetFormula = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      (0, _commandUtils.updateFormula)(spread, options, isUndo);\n      return true;\n    }\n  };\n  commandFuns.customSetFormula = customSetFormula;\n\n  /**\n   * 数据有效性\n  */\n  var setValidator = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var data = options.data;\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        var type = data.type,\n          option = data.option,\n          range = data.range,\n          callback = data.callback,\n          invokemethod = data.invokemethod,\n          si = data.si;\n        var sheet = spread.getSheet(si) || spread.getActiveSheet();\n        if (type === 0) {\n          (0, _directiveUtils.setValidator)(option, range, callback, invokemethod, sheet);\n        } else if (type === 1) {\n          (0, _directiveUtils.removeValidator)(range, sheet);\n        }\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setValidator = setValidator;\n\n  /**\n   * 复制指定区域的单元格到另一个区域\n   * @param {Object} data { range: [{ fromRow: 0, fromCol: 0, toRow: 2, toCol: 2, rc: 1, cc: 1 }], si: 0, type: 0 }\n  */\n  var copyCellsTo = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var data = options.data;\n      if (isUndo) {\n        var _data$range;\n        Commands.undoTransaction(spread, options);\n        var selection = (_data$range = data.range) === null || _data$range === void 0 ? void 0 : _data$range.map(function (item) {\n          return {\n            row: item.toRow,\n            col: item.toCol,\n            rowCount: item.rc,\n            colCount: item.cc\n          };\n        });\n        var sheet = spread.getActiveSheet();\n        var si = spread.getActiveSheetIndex();\n        var _getCellsValueAndForm3 = (0, _commandUtils.getCellsValueAndFormula)(sheet, selection),\n          cellsValue = _getCellsValueAndForm3.cellsValue,\n          cellsFormula = _getCellsValueAndForm3.cellsFormula;\n        data.useSpreadApi === true && cellsFormula.length > 0 && props.invokeControlMethodOnly(props.model, 'updateFormula', [{\n          si: si,\n          formulas: cellsFormula\n        }]); // 官方接口触发公式更新，需要手动发送请求\n        setTimeout(function () {\n          cellsValue.length > 0 && props.invokeControlMethodOnly(props.model, 'updateValue', [{\n            si: si,\n            values: cellsValue\n          }]);\n        }, 0);\n      } else {\n        Commands.startTransaction(spread, options);\n        if (data.useSpreadApi === true) {\n          // 使用官方API\n          var range = data.range,\n            type = data.type,\n            _si4 = data.si;\n          var _sheet6 = options.sheet;\n          (0, _directiveUtils.spreadCopyTo)(_sheet6, _si4, range, type, props);\n        } else {\n          // 使用前端重写api\n          var args = {\n            props: props,\n            spread: spread\n          };\n          var _type = data.type;\n          if (_type === 0) {\n            (0, _directiveHandle.copyStylesTo)([data], args);\n            (0, _directiveHandle.copyValuesTo)([data], args);\n            (0, _directiveHandle.copyCellSize)([data], args);\n          } else if (_type === 1) {\n            (0, _directiveHandle.copyValuesTo)([data], args);\n          } else if (_type === 2) {\n            (0, _directiveHandle.copyStylesTo)([data], args);\n            (0, _directiveHandle.copyCellSize)([data], args);\n          }\n        }\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.copyCellsTo = copyCellsTo;\n\n  /**\n    * 显示数据有效标识圈\n    */\n  var showInvalidData = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var data = options.data;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        spread.options.highlightInvalidData = data;\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.options.highlightInvalidData = data;\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.showInvalidData = showInvalidData;\n\n  /**\n    * 切换视图\n    */\n  var switchView = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var data = options.data;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        sheet.options.showFormulas = data;\n      } else {\n        Commands.startTransaction(spread, options);\n        sheet.options.showFormulas = data;\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.switchView = switchView;\n\n  /**\n    * 撤销与前进\n    */\n  var undoManger = {\n    canUndo: false,\n    execute: function execute(spread, options, isUndo) {\n      var undoManager = spread.undoManager();\n      var data = options.data;\n      if (data === 'undo') {\n        undoManager.undo();\n        var args = {\n          spread: spread,\n          props: props\n        };\n        reportMethods.onUndoSendDataToServer(args);\n      } else if (data === 'redo') {\n        undoManager.redo();\n      }\n      return true;\n    }\n  };\n  commandFuns.undoManger = undoManger;\n\n  /**\n   * 右侧单元格左移\n   */\n  var moveRightCellToLeft = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var colTotalCount = sheet.getColumnCount();\n      var totalSection; // 将区域切换为包含整行整列的\n      var si = spread.getActiveSheetIndex();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        totalSection = options.selections.map(function (selection) {\n          var row = selection.row,\n            rowCount = selection.rowCount,\n            col = selection.col;\n          return {\n            row: row,\n            rowCount: rowCount,\n            col: col,\n            colCount: colTotalCount - col\n          };\n        });\n      } else {\n        Commands.startTransaction(spread, options);\n        var selections = sheet.getSelections();\n        options.selections = selections;\n        totalSection = selections.map(function (selection) {\n          var row = selection.row,\n            rowCount = selection.rowCount,\n            col = selection.col,\n            colCount = selection.colCount;\n          for (var rowIndex = row; rowIndex < row + rowCount; rowIndex++) {\n            // 遍历选中的行，对右侧单元格依次右移\n            sheet.moveTo(rowIndex, col + colCount, rowIndex, col, 1, colTotalCount - col - colCount, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all);\n          }\n          return {\n            row: row,\n            rowCount: rowCount,\n            col: col,\n            colCount: colTotalCount - col\n          };\n        });\n        Commands.endTransaction(spread, options);\n      }\n      var _getCellsValueAndForm4 = (0, _commandUtils.getCellsValueAndFormula)(sheet, totalSection),\n        cellsValue = _getCellsValueAndForm4.cellsValue,\n        cellsFormula = _getCellsValueAndForm4.cellsFormula;\n      cellsFormula.length > 0 && props.invokeControlMethodOnly(props.model, 'updateFormula', [{\n        si: si,\n        formulas: cellsFormula,\n        triggerMode: 'moveRightCellToLeft'\n      }]);\n      cellsValue.length > 0 && props.invokeControlMethodOnly(props.model, 'updateValue', [{\n        si: si,\n        values: cellsValue,\n        triggerMode: 'moveRightCellToLeft'\n      }]);\n      return true;\n    }\n  };\n  commandFuns.moveRightCellToLeft = moveRightCellToLeft;\n\n  /**\n   * 下方单元格上移\n   */\n  var moveBottomCellToTop = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var rowTotalCount = sheet.getRowCount();\n      var totalSection; // 将区域切换为包含整行整列的\n      var si = spread.getActiveSheetIndex();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n        totalSection = options.selections.map(function (selection) {\n          var row = selection.row,\n            col = selection.col,\n            colCount = selection.colCount;\n          return {\n            row: row,\n            rowCount: rowTotalCount - row,\n            col: col,\n            colCount: colCount\n          };\n        });\n      } else {\n        Commands.startTransaction(spread, options);\n        var selections = sheet.getSelections();\n        options.selections = selections;\n        totalSection = selections.map(function (selection) {\n          var row = selection.row,\n            rowCount = selection.rowCount,\n            col = selection.col,\n            colCount = selection.colCount;\n          for (var colIndex = col; colIndex < col + colCount; colIndex++) {\n            // 遍历选中的列，对下方单元格依次上移\n            sheet.moveTo(row + rowCount, colIndex, row, colIndex, rowTotalCount - row - rowCount, 1, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all);\n          }\n          return {\n            row: row,\n            rowCount: rowTotalCount - row,\n            col: col,\n            colCount: colCount\n          };\n        });\n        Commands.endTransaction(spread, options);\n      }\n      var _getCellsValueAndForm5 = (0, _commandUtils.getCellsValueAndFormula)(sheet, totalSection),\n        cellsValue = _getCellsValueAndForm5.cellsValue,\n        cellsFormula = _getCellsValueAndForm5.cellsFormula;\n      cellsFormula.length > 0 && props.invokeControlMethodOnly(props.model, 'updateFormula', [{\n        si: si,\n        formulas: cellsFormula,\n        triggerMode: 'moveBottomCellToTop'\n      }]);\n      cellsValue.length > 0 && props.invokeControlMethodOnly(props.model, 'updateValue', [{\n        si: si,\n        values: cellsValue,\n        triggerMode: 'moveBottomCellToTop'\n      }]);\n      return true;\n    }\n  };\n  commandFuns.moveBottomCellToTop = moveBottomCellToTop;\n\n  /**\n   * 设置行高\n   */\n  var setRowsHeight = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var selections = sheet.getSelections();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        selections.forEach(function (sel) {\n          for (var row = sel.row; row < sel.row + sel.rowCount; row++) {\n            if ((0, _common.isRowFilteredOut)(sheet, row)) continue;\n            sheet.setRowHeight(row, options.height);\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setRowsHeight = setRowsHeight;\n\n  /**\n  * 设置行列隐藏与显示\n  */\n  var setRowOrColVisible = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        switch (options.data.type) {\n          case 'hideRow':\n            (0, _directiveUtils.setRowOrColVisible)(options.data.data, sheet, false, 'row');\n            break;\n          case 'unhideRow':\n            (0, _directiveUtils.setRowOrColVisible)(options.data.data, sheet, true, 'row');\n            break;\n          case 'hideColumn':\n            (0, _directiveUtils.setRowOrColVisible)(options.data.data, sheet, false, 'column');\n            break;\n          case 'unhideColumn':\n            (0, _directiveUtils.setRowOrColVisible)(options.data.data, sheet, true, 'column');\n            break;\n          default:\n            break;\n        }\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setRowOrColVisible = setRowOrColVisible;\n\n  /**\n   * 设置列宽\n   */\n  var setColsWidth = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var selections = sheet.getSelections();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        spread.suspendPaint();\n        selections.forEach(function (sel) {\n          for (var col = sel.col; col < sel.col + sel.colCount; col++) {\n            sheet.setColumnWidth(col, options.width);\n          }\n        });\n        spread.resumePaint();\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setColsWidth = setColsWidth;\n\n  /**\n   * 设置条件格式\n   */\n  var setConditionalFormatting = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var data = options.data;\n      var methodName = data.methodName,\n        parameters = data.parameters,\n        ranges = data.ranges;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        (0, _directiveUtils.setConditionalFormatting)(sheet, methodName, parameters, ranges);\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setConditionalFormatting = setConditionalFormatting;\n\n  /**\n   * 删除条件格式\n   */\n  var deleteConditionalFormatting = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var data = options.data;\n      var condition = data.condition;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        sheet.conditionalFormats.removeRule(condition);\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.deleteConditionalFormatting = deleteConditionalFormatting;\n\n  /**\n   * 编辑条件格式\n   */\n  var editConditionalFormatting = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var data = options.data;\n      var methodName = data.methodName,\n        parameters = data.parameters,\n        ranges = data.ranges,\n        condition = data.condition;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        sheet.conditionalFormats.removeRule(condition); // 由于spread没有开放编辑条件格式的接口，所以是先添加新的条件格式，然后移除旧的条件格式\n        (0, _directiveUtils.setConditionalFormatting)(sheet, methodName, parameters, ranges);\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.editConditionalFormatting = editConditionalFormatting;\n\n  /**\n   * 设置筛选\n   */\n  var setFilter = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        var selection = sheet.getSelections()[0];\n        if (sheet.rowFilter() !== null) {\n          // 关闭筛选\n          sheet.rowFilter().unfilter();\n          sheet.rowFilter(null);\n        } else {\n          // 开启筛选\n          if (selection.rowCount === 1 && selection.colCount !== 1) {\n            // 选中（点行号选中整行或手动框选）多个单元格为单行数据时，筛选下拉显示该筛选行下方所有单元格数据。（空白选项）- PRJ-00377016\n            selection.rowCount = sheet.getRowCount();\n          }\n          var filter = new _spreadSheets[\"default\"].Spread.Sheets.Filter.HideRowFilter(selection);\n          filter.filterDialogVisibleInfo({\n            // 暂时隐藏排序功能\n            sortByValue: false,\n            sortByColor: false\n          });\n          sheet.rowFilter(filter);\n        }\n        var data = {\n          type: 'LockToolbarItem',\n          lockItems: [{\n            name: 'SortAndFilter_ClearFilter',\n            isLock: true\n          }, {\n            name: 'SortAndFilter_ReapplyFilter',\n            isLock: true\n          }]\n        };\n        dataPipeModel.sendData(data);\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setFilter = setFilter;\n\n  /**\n   * 设置缩放\n   */\n  var setViewZoom = {\n    canUndo: true,\n    execute: function execute(spread, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      var sheet = spread.getActiveSheet();\n      var data = options.data;\n      var newScale = data.newScale;\n      if (isUndo) {\n        Commands.undoTransaction(spread, options);\n      } else {\n        Commands.startTransaction(spread, options);\n        sheet.zoom(newScale);\n        Commands.endTransaction(spread, options);\n      }\n      return true;\n    }\n  };\n  commandFuns.setViewZoom = setViewZoom;\n  return commandFuns;\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/commands/customCommand.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/commands/registerCommand.js":
/*!***************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/commands/registerCommand.js ***!
  \***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/esnext.string.replace-all.js */ \"../../node_modules/core-js/modules/esnext.string.replace-all.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _customCommand = _interopRequireDefault(__webpack_require__(/*! ./customCommand */ \"./src/component/web/DataGrid/ReportGrid/commands/customCommand.js\"));\nvar commandName = _interopRequireWildcard(__webpack_require__(/*! ../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\"));\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 注册自定义的命令\n */\n\nvar registerCommand = function registerCommand(spread, props, dataPipeModel) {\n  var commandManager = spread.commandManager();\n  var commandFuns = (0, _customCommand[\"default\"])(spread, props, dataPipeModel);\n  // commandManager.register('delete', commandFuns.customDelete)\n  commandManager.register('keyboardDelete', commandFuns.keyboardDelete, _spreadSheets[\"default\"].Spread.Commands.Key.del, false, false, false, false);\n  commandManager.register('setCellColor', commandFuns.setCellColor);\n  commandManager.register('setFont', commandFuns.setFont);\n  commandManager.register('setUnderline', commandFuns.setUnderline);\n  commandManager.register('setBorder', commandFuns.setBorder);\n  commandManager.register('clearCells', commandFuns.clearCells);\n  commandManager.register('setWordWrap', commandFuns.setWordWrap);\n  commandManager.register('setVAlign', commandFuns.setVAlign);\n  commandManager.register('setHAlign', commandFuns.setHAlign);\n  commandManager.register('setTextIndent', commandFuns.setTextIndent);\n  commandManager.register('mergeCells', commandFuns.mergeCells);\n  commandManager.register('cellFormat', commandFuns.cellFormat);\n  commandManager.register('lockCells', commandFuns.lockCells);\n  commandManager.register('formatPainter', commandFuns.formatPainter);\n  commandManager.register('replaceAll', commandFuns.replaceAll);\n  commandManager.register('delePic', commandFuns.delePic);\n  commandManager.register('customInsertRow', commandFuns.customInsertRow);\n  commandManager.register('customInsertCol', commandFuns.customInsertCol);\n  commandManager.register('customDeleteRow', commandFuns.customDeleteRow);\n  commandManager.register('customDeleteCol', commandFuns.customDeleteCol);\n  commandManager.register('customSetFormula', commandFuns.customSetFormula);\n  commandManager.register('setValidator', commandFuns.setValidator);\n  commandManager.register('copyCellsTo', commandFuns.copyCellsTo);\n  commandManager.register('KDMoveRightCellToLeft', commandFuns.moveRightCellToLeft);\n  commandManager.register('KDMoveBottomCellToTop', commandFuns.moveBottomCellToTop);\n  commandManager.register(commandName.KD_SET_ROW_OR_COL_VISIBLE, commandFuns.setRowOrColVisible);\n  commandManager.register('showInvalidData', commandFuns.showInvalidData);\n  commandManager.register('KDSwitchView', commandFuns.switchView);\n  commandManager.register('KDUndoManger', commandFuns.undoManger);\n  commandManager.register(commandName.KD_SET_ROWS_HEIGHT, commandFuns.setRowsHeight);\n  commandManager.register(commandName.KD_SET_COLS_WIDTH, commandFuns.setColsWidth);\n  commandManager.register(commandName.KD_SET_CONDITIONAL_FORMATTING, commandFuns.setConditionalFormatting);\n  commandManager.register(commandName.KD_DELETE_CONDITIONAL_FORMATTING, commandFuns.deleteConditionalFormatting);\n  commandManager.register(commandName.KD_EDIT_CONDITIONAL_FORMATTING, commandFuns.editConditionalFormatting);\n  commandManager.register(commandName.KD_SET_FILTER, commandFuns.setFilter);\n  commandManager.register(commandName.KD_SET_VIEW_ZOOM, commandFuns.setViewZoom);\n};\nvar _default = exports[\"default\"] = registerCommand;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/commands/registerCommand.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/borderInfo.js":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/borderInfo.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.borderType = exports.borderStyleInfo = void 0;\nvar _border_hair = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_hair.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_hair.png\"));\nvar _border_dashDot = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_dashDot.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_dashDot.png\"));\nvar _border_dashDotDot = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_dashDotDot.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_dashDotDot.png\"));\nvar _border_dotted = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_dotted.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_dotted.png\"));\nvar _border_dashed = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_dashed.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_dashed.png\"));\nvar _border_thin = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_thin.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_thin.png\"));\nvar _border_mediumDashDotDot = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_mediumDashDotDot.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDotDot.png\"));\nvar _border_mediumDashDot = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_mediumDashDot.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDot.png\"));\nvar _border_mediumDashed = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_mediumDashed.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_mediumDashed.png\"));\nvar _border_medium = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_medium.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_medium.png\"));\nvar _border_double = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_double.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_double.png\"));\nvar _border_thick = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/border_thick.png */ \"./src/component/web/DataGrid/ReportGrid/images/border_thick.png\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar borderType = exports.borderType = {\n  none: 5,\n  all: 6,\n  outer: 7,\n  wideOuter: 8,\n  diagonalDown: 9,\n  top: 2,\n  bottom: 1,\n  left: 3,\n  right: 4,\n  diagonalUp: 10\n};\nvar borderStyleInfo = exports.borderStyleInfo = [{\n  key: 'hair',\n  value: 7,\n  image: _border_hair[\"default\"]\n}, {\n  key: 'dashDot',\n  value: 9,\n  image: _border_dashDot[\"default\"]\n}, {\n  key: 'dashDotDot',\n  value: 11,\n  image: _border_dashDotDot[\"default\"]\n}, {\n  key: 'dotted',\n  value: 4,\n  image: _border_dotted[\"default\"]\n}, {\n  key: 'dashed',\n  value: 3,\n  image: _border_dashed[\"default\"]\n}, {\n  key: 'thin',\n  value: 1,\n  image: _border_thin[\"default\"]\n}, {\n  key: 'mediumDashDotDot',\n  value: 12,\n  image: _border_mediumDashDotDot[\"default\"]\n}, {\n  key: 'mediumDashDot',\n  value: 10,\n  image: _border_mediumDashDot[\"default\"]\n}, {\n  key: 'mediumDashed',\n  value: 8,\n  image: _border_mediumDashed[\"default\"]\n}, {\n  key: 'medium',\n  value: 2,\n  image: _border_medium[\"default\"]\n}, {\n  key: 'double',\n  value: 6,\n  image: _border_double[\"default\"]\n}, {\n  key: 'thick',\n  value: 5,\n  image: _border_thick[\"default\"]\n}];\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/borderInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/conditionalFormatsInfo.js":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/conditionalFormatsInfo.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.getDefaultConditionalFormats = exports.TAB = exports.RULE_TYPE = exports.PREVIEW_VALUE = exports.PREVIEW_KEY = exports.PAGE = exports.CONDITIONAL_TYPE = void 0;\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\n// 条件格式类型\nvar CONDITIONAL_TYPE = exports.CONDITIONAL_TYPE = {\n  ADD_CELL_VALUE_RULE: 'addCellValueRule',\n  ADD_SPECIFIC_TEXT_RULE: 'addSpecificTextRule',\n  ADD_DATE_OCCURRING_RULE: 'addDateOccurringRule',\n  ADD_FORMULA_RULE: 'addFormulaRule'\n};\n\n// 预览关键字\nvar PREVIEW_KEY = exports.PREVIEW_KEY = {\n  FONT_WEIGHT: 'fontWeight',\n  FONT_STYLE: 'fontStyle',\n  TEXT_DECORATION: 'textDecoration',\n  BACKGROUND_COLOR: 'backgroundColor',\n  COLOR: 'color'\n};\n\n// 预览值\nvar PREVIEW_VALUE = exports.PREVIEW_VALUE = {\n  BOLD: 'bold',\n  NORMAL: 'normal',\n  ITALIC: 'italic',\n  UNDERLINE: 'underline',\n  SPREAD_UNDERLINE: 1,\n  // spread中text-decoration是数字不是字符串\n  NONE: 'none',\n  SPREAD_NONE: 0\n};\n\n// 页面\nvar PAGE = exports.PAGE = {\n  ADD: 0,\n  MANAGER: 1\n};\n\n// 页签\nvar TAB = exports.TAB = {\n  RANGE: 'range',\n  SHEET: 'sheet'\n};\n\n// 条件格式类型-对应spread\nvar RULE_TYPE = exports.RULE_TYPE = {\n  CELL_VALUE_RULE: 1,\n  SPECIFIC_TEXT_RULE: 2,\n  FORMULA_RULE: 3,\n  DATE_OCCURRING_RULE: 4\n};\n\n// 条件格式信息\nvar getDefaultConditionalFormats = exports.getDefaultConditionalFormats = function getDefaultConditionalFormats() {\n  return {\n    // 应用范围\n    rangeScope: {\n      key: 'rangeScope',\n      title: (0, _intlApi.getLangMsg)('spread.key0397'),\n      value: '',\n      defaultValue: ''\n    },\n    // 条件类型\n    conditionalType: {\n      key: 'conditionalType',\n      title: (0, _intlApi.getLangMsg)('spread.key0398'),\n      value: [{\n        value: CONDITIONAL_TYPE.ADD_CELL_VALUE_RULE,\n        alias: (0, _intlApi.getLangMsg)('spread.key0399')\n      }, {\n        value: CONDITIONAL_TYPE.ADD_SPECIFIC_TEXT_RULE,\n        alias: (0, _intlApi.getLangMsg)('spread.key0400')\n      }, {\n        value: CONDITIONAL_TYPE.ADD_DATE_OCCURRING_RULE,\n        alias: (0, _intlApi.getLangMsg)('spread.key0401')\n      }, {\n        value: CONDITIONAL_TYPE.ADD_FORMULA_RULE,\n        alias: (0, _intlApi.getLangMsg)('spread.key0413')\n      }],\n      defaultValue: CONDITIONAL_TYPE.ADD_CELL_VALUE_RULE\n    },\n    // 限定值范围\n    comparisonOperators: {\n      key: 'comparisonOperators',\n      value: [{\n        value: 0,\n        alias: (0, _intlApi.getLangMsg)('spread.key0194')\n      }, {\n        value: 1,\n        alias: (0, _intlApi.getLangMsg)('spread.key0195')\n      }, {\n        value: 2,\n        alias: (0, _intlApi.getLangMsg)('spread.key0196')\n      }, {\n        value: 3,\n        alias: (0, _intlApi.getLangMsg)('spread.key0197')\n      }, {\n        value: 4,\n        alias: (0, _intlApi.getLangMsg)('spread.key0198')\n      }, {\n        value: 5,\n        alias: (0, _intlApi.getLangMsg)('spread.key0199')\n      }, {\n        value: 6,\n        alias: (0, _intlApi.getLangMsg)('spread.key0200')\n      }, {\n        value: 7,\n        alias: (0, _intlApi.getLangMsg)('spread.key0201')\n      }],\n      defaultValue: 0\n    },\n    // 特殊文本\n    textComparisonOperators: {\n      key: 'textComparisonOperators',\n      value: [{\n        value: 0,\n        alias: (0, _intlApi.getLangMsg)('spread.key0377')\n      }, {\n        value: 1,\n        alias: (0, _intlApi.getLangMsg)('spread.key0378')\n      }, {\n        value: 2,\n        alias: (0, _intlApi.getLangMsg)('spread.key0379')\n      }, {\n        value: 3,\n        alias: (0, _intlApi.getLangMsg)('spread.key0380')\n      }],\n      defaultValue: 0\n    },\n    // 日期类型\n    dateOccurringType: {\n      key: 'dateOccurringType',\n      value: [{\n        value: 1,\n        alias: (0, _intlApi.getLangMsg)('spread.key0381')\n      }, {\n        value: 0,\n        alias: (0, _intlApi.getLangMsg)('spread.key0382')\n      }, {\n        value: 2,\n        alias: (0, _intlApi.getLangMsg)('spread.key0383')\n      }, {\n        value: 3,\n        alias: (0, _intlApi.getLangMsg)('spread.key0384')\n      }, {\n        value: 8,\n        alias: (0, _intlApi.getLangMsg)('spread.key0385')\n      }, {\n        value: 7,\n        alias: (0, _intlApi.getLangMsg)('spread.key0386')\n      }, {\n        value: 9,\n        alias: (0, _intlApi.getLangMsg)('spread.key0387')\n      }, {\n        value: 5,\n        alias: (0, _intlApi.getLangMsg)('spread.key0388')\n      }, {\n        value: 4,\n        alias: (0, _intlApi.getLangMsg)('spread.key0389')\n      }, {\n        value: 6,\n        alias: (0, _intlApi.getLangMsg)('spread.key0390')\n      }, {\n        value: 12,\n        alias: (0, _intlApi.getLangMsg)('spread.key0391')\n      }, {\n        value: 11,\n        alias: (0, _intlApi.getLangMsg)('spread.key0392')\n      }, {\n        value: 10,\n        alias: (0, _intlApi.getLangMsg)('spread.key0393')\n      }, {\n        value: 15,\n        alias: (0, _intlApi.getLangMsg)('spread.key0394')\n      }, {\n        value: 14,\n        alias: (0, _intlApi.getLangMsg)('spread.key0395')\n      }, {\n        value: 13,\n        alias: (0, _intlApi.getLangMsg)('spread.key0396')\n      }],\n      defaultValue: 1\n    },\n    // 数值类型输入的数值\n    comparisonValue1: {\n      key: 'comparisonValue1',\n      value: '',\n      defaultValue: ''\n    },\n    comparisonValue2: {\n      key: 'comparisonValue2',\n      value: '',\n      defaultValue: ''\n    },\n    // 文本类型输入的数值\n    textComparisonValue: {\n      key: 'textComparisonValue',\n      value: '',\n      defaultValue: ''\n    },\n    // 自定义公式\n    customFormula: {\n      key: 'customFormula',\n      value: '',\n      defaultValue: ''\n    }\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/conditionalFormatsInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/customCommand.js":
/*!*************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/customCommand.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.KD_SET_VIEW_ZOOM = exports.KD_SET_ROW_OR_COL_VISIBLE = exports.KD_SET_ROWS_HEIGHT = exports.KD_SET_FILTER = exports.KD_SET_CONDITIONAL_FORMATTING = exports.KD_SET_COLS_WIDTH = exports.KD_EDIT_CONDITIONAL_FORMATTING = exports.KD_DELETE_CONDITIONAL_FORMATTING = void 0;\n/**\n * 自定义指令映射表\n */\nvar KD_SET_ROW_OR_COL_VISIBLE = exports.KD_SET_ROW_OR_COL_VISIBLE = 'KDSetRowOrColVisible'; // 设置行列显隐\n\nvar KD_SET_CONDITIONAL_FORMATTING = exports.KD_SET_CONDITIONAL_FORMATTING = 'KDSetConditionalFormatting'; // 设置条件格式\n\nvar KD_DELETE_CONDITIONAL_FORMATTING = exports.KD_DELETE_CONDITIONAL_FORMATTING = 'KDDeleteConditionalFormatting'; // 删除条件格式\n\nvar KD_EDIT_CONDITIONAL_FORMATTING = exports.KD_EDIT_CONDITIONAL_FORMATTING = 'KDEditConditionalFormatting'; // 编辑条件格式\n\nvar KD_SET_FILTER = exports.KD_SET_FILTER = 'KDSetFilter'; // 设置过滤\n\nvar KD_SET_COLS_WIDTH = exports.KD_SET_COLS_WIDTH = 'KDSetColsWidth'; // 设置列宽\n\nvar KD_SET_ROWS_HEIGHT = exports.KD_SET_ROWS_HEIGHT = 'KDSetRowsHeight'; // 设置行高\n\nvar KD_SET_VIEW_ZOOM = exports.KD_SET_VIEW_ZOOM = 'KDSetViewZoom'; // 设置缩放\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/customCommand.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/formatInfo.js":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/formatInfo.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.formatDataText = exports.excelNumberFormats = exports.excelCurrencyFormats = exports.dateFormats = exports.customCellsFormat = exports.currencyFormats = void 0;\nexports.getCategoryList = getCategoryList;\nexports.getCellFormatItems = getCellFormatItems;\nexports.getExcelFormatDropdownList = getExcelFormatDropdownList;\nexports.getFormatDropdownList = getFormatDropdownList;\nexports.getFormatInfo = getFormatInfo;\nexports.numberFormats = void 0;\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction getFormatInfo(type, formatObj, formatStandard) {\n  var formatInfo = {\n    // 小数位数（数值、货币、会计专用、百分比）\n    decimalPlace: {\n      key: 'decimalPlace',\n      title: (0, _intlApi.getLangMsg)('spread.key0079'),\n      type: 'select',\n      group: 'numbers|currency|accounting|percentage',\n      standard: 'spread|excel',\n      value: [{\n        alias: '0',\n        value: 0\n      }, {\n        alias: '1',\n        value: 1\n      }, {\n        alias: '2',\n        value: 2\n      }, {\n        alias: '3',\n        value: 3\n      }, {\n        alias: '4',\n        value: 4\n      }, {\n        alias: '5',\n        value: 5\n      }, {\n        alias: '6',\n        value: 6\n      }, {\n        alias: '7',\n        value: 7\n      }, {\n        alias: '8',\n        value: 8\n      }, {\n        alias: '9',\n        value: 9\n      }, {\n        alias: '10',\n        value: 10\n      }, {\n        alias: '11',\n        value: 11\n      }, {\n        alias: '12',\n        value: 12\n      }, {\n        alias: '13',\n        value: 13\n      }, {\n        alias: '14',\n        value: 14\n      }, {\n        alias: '15',\n        value: 15\n      }, {\n        alias: '16',\n        value: 16\n      }]\n    },\n    // 千分位分隔符（数值）\n    thousandSeparator: {\n      key: 'thousandSeparator',\n      title: \"\".concat((0, _intlApi.getLangMsg)('spread.key0080'), \"(,)\"),\n      type: 'checkbox',\n      group: 'numbers',\n      standard: 'spread|excel',\n      value: false\n    },\n    // 常规\n    generalText: {\n      key: 'generalText',\n      type: 'text',\n      group: 'general',\n      standard: 'spread|excel',\n      value: (0, _intlApi.getLangMsg)('spread.key0081')\n    },\n    // 负数（数值） - spread标准\n    negativeNumber: {\n      key: 'negativeNumber',\n      title: (0, _intlApi.getLangMsg)('spread.key0082'),\n      type: 'select',\n      group: 'numbers',\n      standard: 'spread',\n      value: [{\n        alias: '-1234.10',\n        value: 0,\n        explain: 'normal'\n      }, {\n        alias: '1234.10',\n        value: 1,\n        fontColor: '#ff0000',\n        explain: '[Red]0.00'\n      }, {\n        alias: '(1234.10)',\n        value: 2,\n        explain: '(#,##0.00)'\n      }, {\n        alias: '(1234.10)',\n        value: 3,\n        fontColor: '#ff0000',\n        explain: '[Red](#,##0.00)'\n      }]\n    },\n    // 负数（数值） - excel标准\n    excelNegativeNumber: {\n      key: 'negativeNumber',\n      title: (0, _intlApi.getLangMsg)('spread.key0082'),\n      type: 'select',\n      group: 'numbers',\n      standard: 'excel',\n      value: [{\n        alias: '(1234.10)',\n        value: 0,\n        fontColor: '#ff0000',\n        explain: '0.00_);[Red](0.00)'\n      }, {\n        alias: '(1234.10)',\n        value: 1,\n        explain: '0.00_);(0.00)'\n      }, {\n        alias: '1234.10',\n        value: 2,\n        fontColor: '#ff0000',\n        explain: '0.00;[Red]0.00'\n      }, {\n        alias: '-1234.10',\n        value: 3,\n        explain: '0.00'\n      }, {\n        alias: '-1234.10',\n        value: 4,\n        fontColor: '#ff0000',\n        explain: '0.00_ ;[Red]-0.00'\n      }]\n    },\n    // 货币符号（货币）\n    currencySymbol: {\n      key: 'currencySymbol',\n      title: (0, _intlApi.getLangMsg)('spread.key0083'),\n      type: 'select',\n      group: 'currency',\n      standard: 'spread|excel',\n      value: [{\n        alias: '¥',\n        value: '¥'\n      }, {\n        alias: '$',\n        value: '$'\n      }]\n    },\n    // 负数（货币）-中国\n    currencyTypeAtChinese: {\n      key: 'currencyType',\n      title: (0, _intlApi.getLangMsg)('spread.key0082'),\n      type: 'select',\n      group: 'currency',\n      currencySymbolType: '¥',\n      standard: 'spread',\n      value: [{\n        alias: '-¥1,234',\n        value: 0,\n        explain: '$#,##0'\n      }, {\n        alias: '¥1,234',\n        value: 1,\n        explain: '$#,##0;[Red]$#,##0',\n        fontColor: '#ff0000'\n      }, {\n        alias: '¥-1,234',\n        value: 2,\n        explain: '$#,##0;$-#,##0'\n      }, {\n        alias: '¥-1,234',\n        value: 3,\n        explain: '$#,##0;[Red]$-#,##0',\n        fontColor: '#ff0000'\n      }]\n    },\n    // 负数（货币）-美国\n    currencyTypeAtEnglish: {\n      key: 'currencyType',\n      title: (0, _intlApi.getLangMsg)('spread.key0082'),\n      type: 'select',\n      group: 'currency',\n      currencySymbolType: '$',\n      standard: 'spread',\n      value: [{\n        alias: '-$1,234',\n        value: 0,\n        explain: '¥#,##0'\n      }, {\n        alias: '$1,234',\n        value: 1,\n        explain: '¥#,##0;[Red]¥#,##0',\n        fontColor: '#ff0000'\n      }, {\n        alias: '$-1,234',\n        value: 2,\n        explain: '¥#,##0;¥-#,##0'\n      }, {\n        alias: '$-1,234',\n        value: 3,\n        explain: '¥#,##0;[Red]¥-#,##0',\n        fontColor: '#ff0000'\n      }]\n    },\n    // 负数（货币）excel标准-中国\n    excelCurrencyTypeAtChinese: {\n      key: 'currencyType',\n      title: (0, _intlApi.getLangMsg)('spread.key0082'),\n      type: 'select',\n      group: 'currency',\n      currencySymbolType: '¥',\n      standard: 'excel',\n      value: [{\n        alias: '(¥1,234.10)',\n        value: 0,\n        explain: '¥#,##0.00_);[Red](¥#,##0.00)',\n        fontColor: '#ff0000'\n      }, {\n        alias: '(¥1,234.10)',\n        value: 1,\n        explain: '¥#,##0.00_);(¥#,##0.00)'\n      }, {\n        alias: '¥1.234.10',\n        value: 2,\n        explain: '¥#,##0.00;[Red]¥#,##0.00',\n        fontColor: '#ff0000'\n      }, {\n        alias: '¥-1,234.10',\n        value: 3,\n        explain: '¥#,##0.00;¥-#,##0.00'\n      }, {\n        alias: '¥-1.234.10',\n        value: 4,\n        explain: '¥#,##0.00;[Red]¥-#,##0.00',\n        fontColor: '#ff0000'\n      }]\n    },\n    // 负数（货币）excel标准-美国\n    excelCurrencyTypeAtEnglish: {\n      key: 'currencyType',\n      title: (0, _intlApi.getLangMsg)('spread.key0082'),\n      type: 'select',\n      group: 'currency',\n      currencySymbolType: '$',\n      standard: 'excel',\n      value: [{\n        alias: '($1.234,10)',\n        value: 0,\n        explain: '$#,##0.00_);[Red]($#,##0.00)',\n        fontColor: '#ff0000'\n      }, {\n        alias: '($1.234,10)',\n        value: 1,\n        explain: '$#,##0.00_);($#,##0.00)'\n      }, {\n        alias: '$1.234,10',\n        value: 2,\n        explain: '$#,##0.00;[Red]$#,##0.00',\n        fontColor: '#ff0000'\n      }, {\n        alias: '-$1.234,10',\n        value: 3,\n        explain: '$#,##0.00;-$#,##0.00'\n      }, {\n        alias: '-$1.234,10',\n        value: 4,\n        explain: '$#,##0.00;[Red]-$#,##0.00',\n        fontColor: '#ff0000'\n      }]\n    },\n    // 货币符号（会计专用）\n    accountingSymbol: {\n      key: 'accountingSymbol',\n      title: (0, _intlApi.getLangMsg)('spread.key0083'),\n      type: 'select',\n      group: 'accounting',\n      standard: 'spread|excel',\n      value: [{\n        alias: '无',\n        value: 2\n      }, {\n        alias: '¥',\n        value: 0\n      }, {\n        alias: '$',\n        value: 1\n      }]\n    },\n    // tips（会计）\n    accountingText: {\n      key: 'accountingText',\n      type: 'text',\n      group: 'accounting',\n      standard: 'spread|excel',\n      value: (0, _intlApi.getLangMsg)('spread.key0084')\n    },\n    // 类型（日期）\n    dateType: {\n      key: 'dateType',\n      title: (0, _intlApi.getLangMsg)('spread.key0085'),\n      type: 'select',\n      group: 'date',\n      standard: 'spread|excel',\n      value: [{\n        alias: '2018/8/8',\n        value: 0\n      }, {\n        alias: '2018年8月8日',\n        value: 1\n      }, {\n        alias: '2018年8月',\n        value: 2\n      }, {\n        alias: '8月8日',\n        value: 3\n      }, {\n        alias: '8/8/2018',\n        value: 4\n      }, {\n        alias: '星期三, 八月 08, 2018',\n        value: 5\n      }]\n    },\n    // 文本\n    text: {\n      key: 'text',\n      type: 'text',\n      group: 'text',\n      standard: 'spread|excel',\n      value: (0, _intlApi.getLangMsg)('spread.key0086')\n    },\n    // 自定义\n    custom: {\n      key: 'custom',\n      standard: 'spread|excel',\n      title: (0, _intlApi.getLangMsg)('spread.key0085'),\n      type: 'custom',\n      group: 'custom',\n      value: ''\n    }\n  };\n  var items = [];\n  for (var key in formatInfo) {\n    var value = formatInfo[key];\n    var group = value.group && value.group.split('|');\n    var standard = value.standard && value.standard.split('|');\n    if (group.includes(type) && standard.includes(formatStandard)) {\n      if (value.currencySymbolType) {\n        // 货币与数值两种类型的负号需要联动，需要根据对于的货币显示对应的负号\n        if (value.currencySymbolType === formatObj.currencySymbol) {\n          // 联动校验，符合当前显示条件的才添加\n          items.push(value);\n        }\n      } else {\n        // 其他类型不需要联动校验，则直接添加\n        items.push(value);\n      }\n    }\n  }\n  return items;\n}\nfunction getCategoryList() {\n  return [{\n    key: 'general',\n    value: 0,\n    text: (0, _intlApi.getLangMsg)('spread.key0071')\n  }, {\n    key: 'numbers',\n    value: 1,\n    text: (0, _intlApi.getLangMsg)('spread.key0072')\n  }, {\n    key: 'currency',\n    value: 2,\n    text: (0, _intlApi.getLangMsg)('spread.key0073')\n  }, {\n    key: 'accounting',\n    value: 3,\n    text: (0, _intlApi.getLangMsg)('spread.key0074')\n  }, {\n    key: 'date',\n    value: 4,\n    text: (0, _intlApi.getLangMsg)('spread.key0075')\n  }, {\n    key: 'percentage',\n    value: 5,\n    text: (0, _intlApi.getLangMsg)('spread.key0076')\n  }, {\n    key: 'text',\n    value: 6,\n    text: (0, _intlApi.getLangMsg)('spread.key0077')\n  }, {\n    key: 'custom',\n    value: 7,\n    text: (0, _intlApi.getLangMsg)('spread.key0078')\n  }];\n}\nvar formatDataText = exports.formatDataText = [(0, _intlApi.getLangMsg)('spread.key0071'), (0, _intlApi.getLangMsg)('spread.key0072'), (0, _intlApi.getLangMsg)('spread.key0073'), (0, _intlApi.getLangMsg)('spread.key0074'), (0, _intlApi.getLangMsg)('spread.key0252'), (0, _intlApi.getLangMsg)('spread.key0253'), (0, _intlApi.getLangMsg)('spread.key0256'), (0, _intlApi.getLangMsg)('spread.key0076'), (0, _intlApi.getLangMsg)('spread.key0254'), (0, _intlApi.getLangMsg)('spread.key0255'), (0, _intlApi.getLangMsg)('spread.key0077'), (0, _intlApi.getLangMsg)('spread.key0078')];\nfunction getFormatDropdownList() {\n  return [{\n    text: formatDataText[0],\n    formatValue: 'General',\n    value: 'general',\n    select: true\n  }, {\n    text: formatDataText[1],\n    formatValue: '#,##0.00',\n    value: 'numbers'\n  }, {\n    text: formatDataText[2],\n    formatValue: '¥#,##0.00',\n    value: 'currency'\n  }, {\n    text: formatDataText[3],\n    formatValue: '_(¥* #,##0.00_);_(¥* (#,##0.00);_(¥* \"-\"??_);_(@_)',\n    value: 'accounting'\n  }, {\n    text: formatDataText[4],\n    formatValue: 'yyyy/m/d;@',\n    value: 'shortDate'\n  }, {\n    text: formatDataText[5],\n    formatValue: 'yyyy年m月d日;@',\n    value: 'longDate'\n  }, {\n    text: formatDataText[6],\n    formatValue: 'h:mm:ss',\n    value: 'time'\n  }, {\n    text: formatDataText[7],\n    formatValue: '0.00%',\n    value: 'percentage'\n  }, {\n    text: formatDataText[8],\n    formatValue: '# ?/?',\n    value: 'fraction'\n  }, {\n    text: formatDataText[9],\n    formatValue: '0.00E+00',\n    value: 'scientific'\n  }, {\n    text: formatDataText[10],\n    formatValue: '@',\n    value: 'text'\n  }, {\n    text: formatDataText[11],\n    formatValue: 'custom',\n    value: 'custom'\n  }];\n}\nfunction getExcelFormatDropdownList() {\n  return [{\n    text: formatDataText[0],\n    formatValue: 'General',\n    value: 'general',\n    select: true\n  }, {\n    text: formatDataText[1],\n    formatValue: '0.00_);[Red](0.00)',\n    value: 'numbers'\n  }, {\n    text: formatDataText[2],\n    formatValue: '\"¥\"#,##0.00_);[Red](\"¥\"#,##0.00)',\n    value: 'currency'\n  }, {\n    text: formatDataText[3],\n    formatValue: '_ \"¥\"* #,##0.00_ ;_ \"¥\"* -#,##0.00_ ;_ \"¥\"* \"-\"??_ ;_ @_ ',\n    value: 'accounting'\n  }, {\n    text: formatDataText[4],\n    formatValue: 'yyyy/m/d;@',\n    value: 'shortDate'\n  }, {\n    text: formatDataText[5],\n    formatValue: 'yyyy年m月d日;@',\n    value: 'longDate'\n  }, {\n    text: formatDataText[6],\n    formatValue: 'h:mm:ss',\n    value: 'time'\n  }, {\n    text: formatDataText[7],\n    formatValue: '0.00%',\n    value: 'percentage'\n  }, {\n    text: formatDataText[8],\n    formatValue: '# ?/?',\n    value: 'fraction'\n  }, {\n    text: formatDataText[9],\n    formatValue: '0.00E+00',\n    value: 'scientific'\n  }, {\n    text: formatDataText[10],\n    formatValue: '@',\n    value: 'text'\n  }, {\n    text: formatDataText[11],\n    formatValue: 'custom',\n    value: 'custom'\n  }];\n}\nfunction getCellFormatItems() {\n  return {\n    percentage: '0.00%',\n    thousand: '#,##0.00',\n    decimalAdd: 'decimalAdd',\n    decimalSub: 'decimalSub'\n  };\n}\nvar numberFormats = exports.numberFormats = ['0', '0;[Red]0', '0_);(0)', '0_);[Red](0)', '#,##0', '#,##0;[Red]#,##0', '#,##0_);(#,##0)', '#,##0_);[Red](#,##0)'];\nvar excelNumberFormats = exports.excelNumberFormats = ['0_);[Red](0)', '0_);(0)', '0;[Red]0', '0', '0_ ;[Red]-0', '#,##0_);[Red](#,##0)', '#,##0_);(#,##0)', '#,##0;[Red]#,##0', '#,##0', '#,##0_ ;[Red]-#,##0'];\nvar currencyFormats = exports.currencyFormats = ['#,##0', '#,##0;[Red]#,##0', '#,##0;-#,##0', '#,##0;[Red]-#,##0'];\nvar excelCurrencyFormats = exports.excelCurrencyFormats = ['#,##0_);[Red](#,##0)', '#,##0_);(#,##0)', '#,##0;[Red]#,##0', '#,##0;-#,##0', '#,##0;[Red]-#,##0'];\nvar dateFormats = exports.dateFormats = ['yyyy/m/d;@', 'yyyy年m月d日;@', 'yyyy年m月;@', 'm月d日;@', 'm/d/yyyy', 'dddd, mmmm dd, yyyy'];\nvar customCellsFormat = exports.customCellsFormat = ['General', '0', '0.00', '#,##0', '#,##0.00', '#,##0.00;(#,##0.00);\"-\"??;@', '#,##0;(#,##0)', '#,##0;[Red](#,##0)', '#,##0.00;(#,##0.00)', '#,##0.00;[Red](#,##0.00)', '$#,##0;($#,##0)', '$#,##0;[Red]($#,##0)', '$#,##0.00;($#,##0.00)', '$#,##0.00;[Red]($#,##0.00)', '0%', '0.00%', '0.00E+00', '##0.0E+0', '# ?/?', '# ??/??', 'm/d/yyyy', 'd-mmm-yy', 'd-mmm', 'mmm-yy', 'h:mm AM/PM', 'h:mm:ss AM/PM', 'hh:mm', 'hh:mm:ss', 'm/d/yyyy hh:mm', 'mm:ss', 'mm:ss.0', '@', '[h]:mm:ss', '$ #,##0;$ (#,##0);$ \"-\";@', ' #,##0; (#,##0); \"-\";@', '$ #,##0.00;$ (#,##0.00);$ \"-\"??;@', ' #,##0.00; (#,##0.00); \"-\"??;@', 'hh:mm:ss', '00000', '# ???/???', '000-00-0000', 'dddd, mmmm dd, yyyy', 'm/d;@', '[<=9999999]###-####;(###) ###-####', '# ?/8'];\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/formatInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/keys.js":
/*!****************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/keys.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\nvar KEYS = ['Tab', 'Enter', 'Backspace', 'ArrowDown', 'ArrowUp', 'ArrowLeft', 'ArrowRight', 'Shift', 'Meta', 'CapsLock', 'Escape', 'Control', 'Alt', 'Insert', 'Del', 'Delete', 'Home', 'End', 'PageUp', 'PageDown', 'Up', 'Down', 'Left', 'Right', 'NumLock', 'Divide', 'Multiply', 'Subtract', 'Add', 'Esc', 'Win', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'F10', 'F11', 'F12', 'Process'];\nvar _default = exports[\"default\"] = KEYS;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/keys.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/printInfo.js":
/*!*********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/printInfo.js ***!
  \*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.cs = exports.ce = exports.ZOOM_OPTION = exports.CENTER_OPTIONS = void 0;\nexports[\"default\"] = getPrintInfo;\nexports.fr = exports.fl = exports.fc = void 0;\nexports.getNewPrintInfo = getNewPrintInfo;\nexports.transformPrintInfo = exports.srh = exports.sgl = exports.sch = exports.sb = exports.rs = exports.rrs = exports.rre = exports.re = exports.rcs = exports.rce = exports.hr = exports.hl = exports.hc = void 0;\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 打印参数设置面板的数据来源\n */\n\nfunction getPrintInfo() {\n  var print = _spreadSheets[\"default\"].Spread.Sheets.Print;\n  return {\n    orientation: {\n      key: 'orientation',\n      title: (0, _intlApi.getLangMsg)('spread.key0088'),\n      value: [{\n        alias: (0, _intlApi.getLangMsg)('spread.key0089'),\n        value: print.PrintPageOrientation.portrait,\n        \"default\": true\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0090'),\n        value: print.PrintPageOrientation.landscape\n      }]\n    },\n    paperSize: {\n      key: 'paperSize',\n      title: (0, _intlApi.getLangMsg)('spread.key0091'),\n      value: [{\n        alias: 'A2',\n        value: print.PaperKind.a2\n      }, {\n        alias: 'A3',\n        value: print.PaperKind.a3\n      }, {\n        alias: 'A4',\n        value: print.PaperKind.a4,\n        \"default\": true\n      }, {\n        alias: 'A5',\n        value: print.PaperKind.a5\n      }, {\n        alias: 'A6',\n        value: print.PaperKind.a6\n      }, {\n        alias: 'Legal',\n        value: print.PaperKind.legal\n      }, {\n        alias: 'Letter',\n        value: print.PaperKind.letter\n      }, {\n        alias: 'Tabloid',\n        value: print.PaperKind.tabloid\n      }, {\n        alias: '8K',\n        value: print.PaperKind.a3Rotated\n      }, {\n        alias: 'B4',\n        value: print.PaperKind.b4\n      }, {\n        alias: 'B5',\n        value: print.PaperKind.b5\n      }, {\n        alias: 'B6Jis',\n        value: print.PaperKind.b6Jis\n      }]\n    },\n    showColumnHeader: {\n      key: 'showColumnHeader',\n      title: (0, _intlApi.getLangMsg)('spread.key0092'),\n      value: [\n      // { alias: '默认', value: print.PrintVisibilityType.inherit },\n      {\n        alias: (0, _intlApi.getLangMsg)('spread.key0093'),\n        value: print.PrintVisibilityType.hide,\n        \"default\": true\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0094'),\n        value: print.PrintVisibilityType.show\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0095'),\n        value: print.PrintVisibilityType.showOnce\n      }]\n    },\n    showRowHeader: {\n      key: 'showRowHeader',\n      title: (0, _intlApi.getLangMsg)('spread.key0096'),\n      value: [\n      // { alias: '默认', value: print.PrintVisibilityType.inherit },\n      {\n        alias: (0, _intlApi.getLangMsg)('spread.key0093'),\n        value: print.PrintVisibilityType.hide,\n        \"default\": true\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0094'),\n        value: print.PrintVisibilityType.show\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0095'),\n        value: print.PrintVisibilityType.showOnce\n      }]\n    },\n    printArea: {\n      key: 'printArea',\n      title: (0, _intlApi.getLangMsg)('spread.key0125'),\n      value: [{\n        alias: (0, _intlApi.getLangMsg)('spread.key0126'),\n        value: 'activeSheet',\n        \"default\": true\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0132'),\n        value: 'fixedRange'\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0127'),\n        value: 'designatedArea'\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0282'),\n        value: 'allArea'\n      }]\n    },\n    printCenteringnumber: {\n      key: 'printCenteringnumber',\n      title: (0, _intlApi.getLangMsg)('spread.key0146'),\n      value: [{\n        alias: (0, _intlApi.getLangMsg)('spread.key0153'),\n        value: _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.none,\n        \"default\": true\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0143'),\n        value: _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.horizontal\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0144'),\n        value: _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.vertical\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0145'),\n        value: _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.both\n      }]\n    },\n    repeatRowStart: {\n      key: 'repeatRowStart',\n      title: (0, _intlApi.getLangMsg)('spread.key0097'),\n      value: ''\n    },\n    repeatRowEnd: {\n      key: 'repeatRowEnd',\n      title: (0, _intlApi.getLangMsg)('spread.key0098'),\n      value: ''\n    },\n    repeatColumnStart: {\n      key: 'repeatColumnStart',\n      title: (0, _intlApi.getLangMsg)('spread.key0099'),\n      value: ''\n    },\n    repeatColumnEnd: {\n      key: 'repeatColumnEnd',\n      title: (0, _intlApi.getLangMsg)('spread.key0100'),\n      value: ''\n    },\n    zoomFactor: {\n      key: 'zoomFactor',\n      title: (0, _intlApi.getLangMsg)('spread.key0147'),\n      value: 1\n    },\n    showPageNumber: {\n      key: 'showPageNumber',\n      title: (0, _intlApi.getLangMsg)('spread.key0101'),\n      value: false\n    },\n    blackAndWhite: {\n      key: 'blackAndWhite',\n      title: (0, _intlApi.getLangMsg)('spread.key0134'),\n      value: false\n    },\n    bestFit: {\n      key: 'bestFit',\n      title: (0, _intlApi.getLangMsg)('spread.key0136'),\n      value: false\n    },\n    removeHorizontalBlank: {\n      key: 'removeHorizontalBlank',\n      title: (0, _intlApi.getLangMsg)('spread.key0142'),\n      value: false\n    },\n    fitPagesWide: {\n      key: 'fitPagesWide',\n      title: (0, _intlApi.getLangMsg)('spread.key0137'),\n      value: 1\n    },\n    qualityFactor: {\n      key: 'qualityFactor',\n      title: (0, _intlApi.getLangMsg)('spread.key0242'),\n      value: 4\n    },\n    fitPagesTall: {\n      key: 'fitPagesTall',\n      title: (0, _intlApi.getLangMsg)('spread.key0138'),\n      value: 1\n    },\n    marginTop: {\n      key: 'marginTop',\n      title: (0, _intlApi.getLangMsg)('spread.key0234'),\n      value: 20\n    },\n    marginRight: {\n      key: 'marginRight',\n      title: (0, _intlApi.getLangMsg)('spread.key0235'),\n      value: 0\n    },\n    marginBottom: {\n      key: 'marginBottom',\n      title: (0, _intlApi.getLangMsg)('spread.key0236'),\n      value: 20\n    },\n    marginLeft: {\n      key: 'marginLeft',\n      title: (0, _intlApi.getLangMsg)('spread.key0237'),\n      value: 0\n    },\n    headerLeft: {\n      key: 'headerLeft',\n      title: (0, _intlApi.getLangMsg)('spread.key0237'),\n      value: ''\n    },\n    headerCenter: {\n      key: 'headerCenter',\n      title: (0, _intlApi.getLangMsg)('spread.key0238'),\n      value: ''\n    },\n    headerRight: {\n      key: 'headerRight',\n      title: (0, _intlApi.getLangMsg)('spread.key0235'),\n      value: ''\n    },\n    footerLeft: {\n      key: 'footerLeft',\n      title: (0, _intlApi.getLangMsg)('spread.key0244'),\n      value: ''\n    },\n    footerCenter: {\n      key: 'footerCenter',\n      title: (0, _intlApi.getLangMsg)('spread.key0245'),\n      value: ''\n    },\n    footerRight: {\n      key: 'footerRight',\n      title: (0, _intlApi.getLangMsg)('spread.key0246'),\n      value: ''\n    }\n  };\n}\nfunction getNewPrintInfo() {\n  var print = _spreadSheets[\"default\"].Spread.Sheets.Print;\n  return {\n    // 打印区域\n    printArea: {\n      key: 'printArea',\n      title: (0, _intlApi.getLangMsg)('spread.key0125'),\n      value: [{\n        alias: (0, _intlApi.getLangMsg)('spread.key0126'),\n        value: 'activeSheet'\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0127'),\n        value: 'designatedArea'\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0132'),\n        value: 'fixedRange'\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0282'),\n        value: 'allArea'\n      }],\n      defaultValue: 'activeSheet'\n    },\n    range: {\n      key: 'range',\n      title: (0, _intlApi.getLangMsg)('spread.key0135'),\n      value: ''\n    },\n    // 打印方向\n    orientation: {\n      key: 'orientation',\n      title: (0, _intlApi.getLangMsg)('spread.key0088'),\n      value: [{\n        label: (0, _intlApi.getLangMsg)('spread.key0089'),\n        value: print.PrintPageOrientation.portrait\n      }, {\n        label: (0, _intlApi.getLangMsg)('spread.key0090'),\n        value: print.PrintPageOrientation.landscape\n      }],\n      defaultValue: print.PrintPageOrientation.portrait\n    },\n    // 纸张大小\n    paperSize: {\n      key: 'paperSize',\n      title: (0, _intlApi.getLangMsg)('spread.key0091'),\n      value: [{\n        alias: 'A2 (420 x 594 mm)',\n        value: print.PaperKind.a2\n      }, {\n        alias: 'A3 (297 x 420 mm)',\n        value: print.PaperKind.a3\n      }, {\n        alias: 'A4 (210 x 297 mm)',\n        value: print.PaperKind.a4\n      }, {\n        alias: 'A5 (148 x 210 mm)',\n        value: print.PaperKind.a5\n      }, {\n        alias: 'A6 (105 x 148 mm)',\n        value: print.PaperKind.a6\n      }, {\n        alias: 'Legal (216 x 356 mm)',\n        value: print.PaperKind.legal\n      }, {\n        alias: 'Letter (216 x 279 mm)',\n        value: print.PaperKind.letter\n      }, {\n        alias: 'Tabloid (279 x 432 mm)',\n        value: print.PaperKind.tabloid\n      }, {\n        alias: '8K (420 x 285 mm)',\n        value: print.PaperKind.a3Rotated\n      }, {\n        alias: 'B4 (257 x 364 mm)',\n        value: print.PaperKind.b4\n      }, {\n        alias: 'B5 (176 x 250 mm)',\n        value: print.PaperKind.b5\n      }, {\n        alias: 'B6 JIS (128 x 182 mm)',\n        value: print.PaperKind.b6Jis\n      }],\n      defaultValue: print.PaperKind.a4\n    },\n    // 颜色\n    blackAndWhite: {\n      key: 'blackAndWhite',\n      title: (0, _intlApi.getLangMsg)('spread.key0134'),\n      value: [{\n        label: (0, _intlApi.getLangMsg)('spread.key0325'),\n        value: 0\n      }, {\n        label: (0, _intlApi.getLangMsg)('spread.key0326'),\n        value: 1\n      }],\n      defaultValue: 0\n    },\n    // 缩放\n    zoomOptions: {\n      key: 'zoomOptions',\n      title: (0, _intlApi.getLangMsg)('spread.key0334'),\n      value: [{\n        alias: (0, _intlApi.getLangMsg)('spread.key0335'),\n        // value: { fitPagesWide: 1, fitPagesTall: 1, bestFit: true },\n        value: ZOOM_OPTION.ALL_IN_ONE\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0336'),\n        // value: { fitPagesWide: 1, fitPagesTall: -1, bestFit: true },\n        value: ZOOM_OPTION.COL_IN_ONE\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0337'),\n        // value: { fitPagesWide: -1, fitPagesTall: 1, bestFit: true },\n        value: ZOOM_OPTION.ROW_IN_ONE\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0338'),\n        value: ZOOM_OPTION.PERCENTAGE\n      }, {\n        alias: (0, _intlApi.getLangMsg)('spread.key0339'),\n        value: ZOOM_OPTION.OTHER\n      }],\n      defaultValue: ZOOM_OPTION.PERCENTAGE\n    },\n    // 缩放到几页宽\n    fitPagesWide: {\n      key: 'fitPagesWide',\n      title: (0, _intlApi.getLangMsg)('spread.key0137'),\n      value: 1\n    },\n    // 缩放到几页高\n    fitPagesTall: {\n      key: 'fitPagesTall',\n      title: (0, _intlApi.getLangMsg)('spread.key0138'),\n      value: 1\n    },\n    // 缩放比例\n    zoomFactor: {\n      key: 'zoomFactor',\n      title: (0, _intlApi.getLangMsg)('spread.key0147'),\n      value: 100,\n      unit: '%'\n    },\n    // 标题行起始\n    repeatRowStart: {\n      key: 'repeatRowStart',\n      title: (0, _intlApi.getLangMsg)('spread.key0097'),\n      value: ''\n    },\n    // 标题行结束\n    repeatRowEnd: {\n      key: 'repeatRowEnd',\n      title: (0, _intlApi.getLangMsg)('spread.key0098'),\n      value: ''\n    },\n    // 标题列开始\n    repeatColumnStart: {\n      key: 'repeatColumnStart',\n      title: (0, _intlApi.getLangMsg)('spread.key0099'),\n      value: ''\n    },\n    // 标题列结束\n    repeatColumnEnd: {\n      key: 'repeatColumnEnd',\n      title: (0, _intlApi.getLangMsg)('spread.key0100'),\n      value: ''\n    },\n    // 边距\n    marginTop: {\n      key: 'marginTop',\n      title: (0, _intlApi.getLangMsg)('spread.key0234'),\n      value: 20,\n      unit: 'mm'\n    },\n    marginRight: {\n      key: 'marginRight',\n      title: (0, _intlApi.getLangMsg)('spread.key0235'),\n      value: '',\n      unit: 'mm'\n    },\n    marginBottom: {\n      key: 'marginBottom',\n      title: (0, _intlApi.getLangMsg)('spread.key0236'),\n      value: 20,\n      unit: 'mm'\n    },\n    marginLeft: {\n      key: 'marginLeft',\n      title: (0, _intlApi.getLangMsg)('spread.key0237'),\n      value: '',\n      unit: 'mm'\n    },\n    // 居中方式\n    centerOptions: {\n      key: 'centerOptions',\n      title: (0, _intlApi.getLangMsg)('spread.key0342'),\n      value: [{\n        key: 'horizontal',\n        value: CENTER_OPTIONS.HORIZONTAL,\n        label: (0, _intlApi.getLangMsg)('spread.key0343')\n      }, {\n        key: 'vertical',\n        value: CENTER_OPTIONS.VERTICAL,\n        label: (0, _intlApi.getLangMsg)('spread.key0344')\n      }],\n      defaultValue: []\n    },\n    // 打印质量\n    qualityFactor: {\n      key: 'qualityFactor',\n      title: (0, _intlApi.getLangMsg)('spread.key0242'),\n      value: [{\n        alias: '1',\n        value: 1\n      }, {\n        alias: '2',\n        value: 2\n      }, {\n        alias: '3',\n        value: 3\n      }, {\n        alias: '4',\n        value: 4\n      }, {\n        alias: '5',\n        value: 5\n      }, {\n        alias: '6',\n        value: 6\n      }, {\n        alias: '7',\n        value: 7\n      }, {\n        alias: '8',\n        value: 8\n      }],\n      defaultValue: 4\n    },\n    // 打印页码\n    showPageNumber: {\n      key: 'showPageNumber',\n      title: (0, _intlApi.getLangMsg)('spread.key0101'),\n      value: false\n    },\n    // 打印行号列标\n    showRowAndColHeader: {\n      key: 'showRowAndColHeader',\n      title: (0, _intlApi.getLangMsg)('spread.key0345'),\n      value: false\n    },\n    // 清除打印空白页\n    removeHorizontalBlank: {\n      key: 'removeHorizontalBlank',\n      title: (0, _intlApi.getLangMsg)('spread.key0142'),\n      value: false\n    },\n    // 打印网格线\n    showGridLine: {\n      key: 'showGridLine',\n      title: (0, _intlApi.getLangMsg)('spread.key0328'),\n      value: true\n    },\n    topRow: {\n      key: 'topRow',\n      title: (0, _intlApi.getLangMsg)('spread.key0348'),\n      value: ''\n    },\n    leftCol: {\n      key: 'leftCol',\n      title: (0, _intlApi.getLangMsg)('spread.key0349'),\n      value: ''\n    },\n    // 显示页眉\n    pageHeader: {\n      key: 'showPageHeader',\n      title: (0, _intlApi.getLangMsg)('spread.key0330'),\n      value: false\n    },\n    // 页眉\n    headerLeft: {\n      key: 'headerLeft',\n      title: (0, _intlApi.getLangMsg)('spread.key0237'),\n      value: ''\n    },\n    headerCenter: {\n      key: 'headerCenter',\n      title: (0, _intlApi.getLangMsg)('spread.key0238'),\n      value: ''\n    },\n    headerRight: {\n      key: 'headerRight',\n      title: (0, _intlApi.getLangMsg)('spread.key0235'),\n      value: ''\n    },\n    pageFooter: {\n      key: 'showPageFooter',\n      title: (0, _intlApi.getLangMsg)('spread.key0331')\n    },\n    // 页脚\n    footerLeft: {\n      key: 'footerLeft',\n      title: (0, _intlApi.getLangMsg)('spread.key0237'),\n      value: ''\n    },\n    footerCenter: {\n      key: 'footerCenter',\n      title: (0, _intlApi.getLangMsg)('spread.key0238'),\n      value: ''\n    },\n    footerRight: {\n      key: 'footerRight',\n      title: (0, _intlApi.getLangMsg)('spread.key0235'),\n      value: ''\n    }\n  };\n}\n\n/**\n * 打印参数的映射表\n * by kechuang\n */\n\nvar sgl = exports.sgl = 'showGridLine'; // 是否打印网格线 (默认是打印)。\nvar sb = exports.sb = 'showBorder'; // 是否打印控件的外边框线。\n// 是否打印列头/行头， 参数为PrintVisibilityType枚举值  inherit: 继承自表单的设置 ((默认) 行头/列头可见)。hide: 不打印。show: 在每页中都显示。showOnce: 显示一次 (在第一页)。\nvar sch = exports.sch = 'showColumnHeader';\nvar srh = exports.srh = 'showRowHeader';\n\n// 打印区域\nvar rs = exports.rs = 'rowStart'; // 设定打印区域的开始行索引。\nvar re = exports.re = 'rowEnd'; // 设定打印区域的结束行索引。\nvar cs = exports.cs = 'columnStart'; // 设定打印区域的开始列索引。\nvar ce = exports.ce = 'columnEnd'; // 设定打印区域的结束列索引。\n\n// 重复打印\nvar rcs = exports.rcs = 'repeatColumnStart'; // 设定在每页左边打印重复区域的开始列索引。\nvar rce = exports.rce = 'repeatColumnEnd'; // 设定每页左边打印重复区域的结束列索引。\nvar rrs = exports.rrs = 'repeatRowStart'; // 设定每页上边打印重复区域的开始行索引。\nvar rre = exports.rre = 'repeatRowEnd'; // 设定每页上边打印重复区域的结束行索引。\n\n// 表头，表脚样式  (支持文本和特殊值    &开头，特殊值暂时不支持，没有想到好的格式)\nvar hl = exports.hl = 'headerLeft'; // 表头区域左部分的文本及样式。\nvar hc = exports.hc = 'headerCenter'; // 表头区域中间部分的文本及样式。\nvar hr = exports.hr = 'headerRight'; // 表头区域右部分的文本及样式。\nvar fl = exports.fl = 'footerLeft'; // 表脚区域左部分的文本及样式。\nvar fc = exports.fc = 'footerCenter'; // 表脚区域中间部分的文本及样式。\nvar fr = exports.fr = 'footerRight'; // 表脚区域右部分的文本及样式。\n\n// 缩放\nvar ZOOM_OPTION = exports.ZOOM_OPTION = {\n  ALL_IN_ONE: 0,\n  COL_IN_ONE: 1,\n  ROW_IN_ONE: 2,\n  PERCENTAGE: 3,\n  OTHER: 4\n};\n\n// 居中方式\nvar CENTER_OPTIONS = exports.CENTER_OPTIONS = {\n  HORIZONTAL: 'horizontal',\n  VERTICAL: 'vertical'\n};\n\n// 设置图片，使用之前需要先设置图片占位符，暂时不支持图片\n// export const hli = 'headerLeftImage';// 表头区域左部分的图片。\n// export const hci = 'headerCenterImage';// 表头区域中间部分的图片。\n// export const hri = 'headerRightImage';// 表头区域右部分的图片。\n// export const fli = 'footerLeftImage';// 表脚区域左部分的图片。\n// export const fci = 'footerCenterImage';// 表脚区域中间部分的图片。\n// export const fri = 'footerRightImage';// 表脚区域右部分的图片。\n\nvar transformPrintInfo = exports.transformPrintInfo = function transformPrintInfo(sheet, printInfo) {\n  var printInfoCopy = Object.assign({}, printInfo);\n  // 缩放\n  if (printInfoCopy.zoomOptions !== undefined) {\n    switch (printInfoCopy.zoomOptions) {\n      case ZOOM_OPTION.ALL_IN_ONE:\n        printInfoCopy.fitPagesWide = 1;\n        printInfoCopy.fitPagesTall = 1;\n        printInfoCopy.bestFit = true;\n        break;\n      case ZOOM_OPTION.COL_IN_ONE:\n        printInfoCopy.fitPagesWide = 1;\n        printInfoCopy.fitPagesTall = -1;\n        printInfoCopy.bestFit = true;\n        break;\n      case ZOOM_OPTION.ROW_IN_ONE:\n        printInfoCopy.fitPagesWide = -1;\n        printInfoCopy.fitPagesTall = 1;\n        printInfoCopy.bestFit = true;\n        break;\n      case ZOOM_OPTION.PERCENTAGE:\n        break;\n      case ZOOM_OPTION.OTHER:\n        printInfoCopy.bestFit = true;\n        break;\n      default:\n        printInfoCopy.fitPagesWide = 1;\n        printInfoCopy.fitPagesTall = 1;\n        printInfoCopy.bestFit = false;\n        break;\n    }\n    printInfoCopy.zoomFactor = printInfoCopy.zoomFactor / 100;\n  }\n  // 居中方式\n  if (printInfoCopy.centerOptions.length === 1) {\n    if (printInfoCopy.centerOptions.includes(CENTER_OPTIONS.HORIZONTAL)) {\n      printInfoCopy.printCenteringnumber = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.horizontal;\n    } else if (printInfoCopy.centerOptions.includes(CENTER_OPTIONS.VERTICAL)) {\n      printInfoCopy.printCenteringnumber = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.vertical;\n    }\n  } else if (printInfoCopy.centerOptions.length === 2) {\n    printInfoCopy.printCenteringnumber = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.both;\n  } else {\n    printInfoCopy.printCenteringnumber = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintCentering.none;\n  }\n  // 打印行号列标\n  if (printInfoCopy.showRowAndColHeader) {\n    printInfoCopy.showRowHeader = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintVisibilityType.show;\n    printInfoCopy.showColumnHeader = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintVisibilityType.show;\n  } else {\n    printInfoCopy.showRowHeader = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintVisibilityType.hide;\n    printInfoCopy.showColumnHeader = _spreadSheets[\"default\"].Spread.Sheets.Print.PrintVisibilityType.hide;\n  }\n  // 打印标题\n  if (printInfoCopy.topRow) {\n    var selection = (0, _common.unExplainActiveCell)(sheet, printInfoCopy.topRow);\n    printInfoCopy.repeatRowStart = selection.row + 1;\n    printInfoCopy.repeatRowEnd = selection.row + selection.rowCount;\n  }\n  if (printInfoCopy.leftCol) {\n    var _selection = (0, _common.unExplainActiveCell)(sheet, printInfoCopy.leftCol);\n    printInfoCopy.repeatColumnStart = _selection.col + 1;\n    printInfoCopy.repeatColumnEnd = _selection.col + _selection.colCount;\n  }\n  // 打印页眉\n  if (!printInfoCopy.pageHeader) {\n    printInfoCopy.headerLeft = '';\n    printInfoCopy.headerCenter = '';\n    printInfoCopy.headerRight = '';\n  }\n  // 打印页脚\n  if (!printInfoCopy.pageFooter) {\n    printInfoCopy.footerLeft = '';\n    printInfoCopy.footerCenter = '';\n    printInfoCopy.footerRight = '';\n  }\n  return printInfoCopy;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/printInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js":
/*!******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js ***!
  \******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.USE_SHEET_PRINT_CONFIG = exports.USE_PT_FONT_SIZE = exports.USE_NEW_INSERT = exports.USE_EXCEL_CELLS_FORMAT = exports.IS_UPDATE_STYLE_SEND_REQUEST = exports.IS_EDIT_SEND_REQUEST = exports.CALC_PRECISION = exports.ALLOW_MAX_INSERT_9999 = void 0;\nvar IS_EDIT_SEND_REQUEST = exports.IS_EDIT_SEND_REQUEST = 'isEditSendRequest'; // 编辑态发送网络请求\n\nvar ALLOW_MAX_INSERT_9999 = exports.ALLOW_MAX_INSERT_9999 = 'allowMaxInsert9999'; // 允许最大插入9999行\n\nvar USE_NEW_INSERT = exports.USE_NEW_INSERT = 'useNewInsert'; // 使用新版插入，可以向上/向下插入\n\nvar CALC_PRECISION = exports.CALC_PRECISION = 'calcPrecision'; // 计算精度，默认是12\n\nvar USE_PT_FONT_SIZE = exports.USE_PT_FONT_SIZE = 'usePtFontSize'; // 使用pt作为font-size的单位，默认是px\n\nvar USE_SHEET_PRINT_CONFIG = exports.USE_SHEET_PRINT_CONFIG = 'useSheetPrintConfig'; // 按工作表保存打印配置\n\nvar USE_EXCEL_CELLS_FORMAT = exports.USE_EXCEL_CELLS_FORMAT = 'useExcelCellsFormat'; // 使用与excel同步的单元格格式\n\nvar IS_UPDATE_STYLE_SEND_REQUEST = exports.IS_UPDATE_STYLE_SEND_REQUEST = 'isUpdateStyleSendRequest';\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/settingInfo.js":
/*!***********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/settingInfo.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.settingInfo = exports.getCategoryList = void 0;\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar getCategoryList = exports.getCategoryList = [{\n  key: 'general',\n  value: 0,\n  text: (0, _intlApi.getLangMsg)('spread.key0169')\n}, {\n  key: 'protect',\n  value: 0,\n  text: (0, _intlApi.getLangMsg)('spread.key0170')\n}, {\n  key: 'calculate',\n  value: 0,\n  text: (0, _intlApi.getLangMsg)('spread.key0171')\n}, {\n  key: 'shearPlate',\n  value: 0,\n  text: (0, _intlApi.getLangMsg)('spread.key0172')\n}];\nvar settingInfo = exports.settingInfo = {\n  general: [{\n    key: 'hideZero',\n    title: (0, _intlApi.getLangMsg)('spread.key0158'),\n    type: 'checkbox',\n    value: false\n  }, {\n    key: 'shrinkToFit',\n    title: (0, _intlApi.getLangMsg)('spread.key0159'),\n    type: 'checkbox',\n    value: false\n  }, {\n    key: 'notPastePicture',\n    title: (0, _intlApi.getLangMsg)('spread.key0160'),\n    type: 'checkbox',\n    value: false\n  }, {\n    key: 'rowHeight',\n    title: (0, _intlApi.getLangMsg)('spread.key0161'),\n    type: 'input',\n    value: '20'\n  }, {\n    key: 'colWidth',\n    title: (0, _intlApi.getLangMsg)('spread.key0162'),\n    type: 'input',\n    value: '62'\n  }],\n  protect: [{\n    key: 'protect',\n    title: (0, _intlApi.getLangMsg)('spread.key0163'),\n    type: 'checkbox',\n    value: false\n  }, {\n    key: 'showLock',\n    title: (0, _intlApi.getLangMsg)('spread.key0164'),\n    type: 'checkbox',\n    value: false\n  }],\n  calculate: [{\n    key: 'startIteration',\n    title: (0, _intlApi.getLangMsg)('spread.key0165'),\n    type: 'checkbox',\n    value: true\n  }, {\n    key: 'maxIterationCount',\n    title: (0, _intlApi.getLangMsg)('spread.key0166'),\n    type: 'input',\n    value: 100\n  }, {\n    key: 'maxIterationChange',\n    title: (0, _intlApi.getLangMsg)('spread.key0167'),\n    type: 'input',\n    value: 0.01\n  }],\n  shearPlate: [{\n    key: 'allowCopyPasteExcelStyle',\n    title: (0, _intlApi.getLangMsg)('spread.key0168'),\n    type: 'checkbox',\n    value: true\n  }]\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/settingInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/spreadStyle.js":
/*!***********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/spreadStyle.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.TEXT_DECORATION = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar TEXT_DECORATION = exports.TEXT_DECORATION = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.none, 'none'), _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.underline, 'underline'), _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.lineThrough, 'lineThrough'), _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.overline, 'overline'), _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.doubleUnderline, 'doubleUnderline');\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/spreadStyle.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js":
/*!***********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.verticalAlignItems = exports.textIndentItems = exports.switchViewItem = exports.sortAndFilterItems = exports.newInsertRowAndColItems = exports.lockCellItem = exports.keyMap = exports.insertRowAndColItems = exports.frozenSheetItems = exports.fontSizeData = exports.fontFamilyData = exports.fontFamilyArray = exports.fontDecorationItems = exports.defultToolbarItem = exports.dataValidationItems = exports.clearCellItem = exports.cellBorderData = void 0;\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _borderInfo = __webpack_require__(/*! ./borderInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/borderInfo.js\");\nvar _toolbarElement = __webpack_require__(/*! ../ui/toolbar/toolbarElement */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/index.js\");\nvar _Separator = _interopRequireDefault(__webpack_require__(/*! ../ui/common/Separator */ \"./src/component/web/DataGrid/ReportGrid/ui/common/Separator.jsx\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar fontFamilyArray = exports.fontFamilyArray = [(0, _intlApi.getLangMsg)('spread.key0422'), (0, _intlApi.getLangMsg)('spread.key0423'), (0, _intlApi.getLangMsg)('spread.key0424'), (0, _intlApi.getLangMsg)('spread.key0425'), (0, _intlApi.getLangMsg)('spread.key0426'), (0, _intlApi.getLangMsg)('spread.key0427'), 'Arial Unicode MS', 'Calibri', 'Times New Roman'];\nvar fontFamilyData = exports.fontFamilyData = [{\n  text: fontFamilyArray[0],\n  value: fontFamilyArray[0]\n}, {\n  text: fontFamilyArray[1],\n  value: fontFamilyArray[1]\n}, {\n  text: fontFamilyArray[2],\n  value: fontFamilyArray[2]\n}, {\n  text: fontFamilyArray[3],\n  value: fontFamilyArray[3]\n}, {\n  text: fontFamilyArray[4],\n  value: fontFamilyArray[4]\n}, {\n  text: fontFamilyArray[5],\n  value: fontFamilyArray[5]\n}, {\n  text: fontFamilyArray[6],\n  value: fontFamilyArray[6]\n}, {\n  text: fontFamilyArray[7],\n  value: fontFamilyArray[7]\n}, {\n  text: fontFamilyArray[8],\n  value: fontFamilyArray[8]\n}];\nvar fontSizeData = exports.fontSizeData = [{\n  text: '8',\n  value: 8\n}, {\n  text: '9',\n  value: 9\n}, {\n  text: '10',\n  value: 10\n}, {\n  text: '11',\n  value: 11\n}, {\n  text: '12',\n  value: 12\n}, {\n  text: '14',\n  value: 14\n}, {\n  text: '16',\n  value: 16\n}, {\n  text: '18',\n  value: 18\n}, {\n  text: '20',\n  value: 20\n}, {\n  text: '24',\n  value: 24\n}, {\n  text: '26',\n  value: 26\n}, {\n  text: '28',\n  value: 28\n}, {\n  text: '36',\n  value: 36\n}, {\n  text: '48',\n  value: 48\n}, {\n  text: '72',\n  value: 72\n}];\nvar cellBorderData = exports.cellBorderData = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0012'),\n  icon: 'iconcool wukuangxian',\n  value: _borderInfo.borderType.none\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0013'),\n  icon: 'iconcool suoyoukuangxian',\n  select: true,\n  value: _borderInfo.borderType.all\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0014'),\n  icon: 'iconcool waicekuangxian',\n  value: _borderInfo.borderType.outer\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0015'),\n  icon: 'iconcool cuheikuangxian',\n  value: _borderInfo.borderType.wideOuter\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0417'),\n  icon: 'iconcool xiexiabiankuang',\n  value: _borderInfo.borderType.diagonalDown\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0009'),\n  icon: 'iconcool shangbiankuang',\n  value: _borderInfo.borderType.top\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0008'),\n  icon: 'iconcool xiabiankuang',\n  value: _borderInfo.borderType.bottom\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0010'),\n  icon: 'iconcool zuobiankuang',\n  value: _borderInfo.borderType.left\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0011'),\n  icon: 'iconcool youbiankuang',\n  value: _borderInfo.borderType.right\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0418'),\n  icon: 'iconcool xieshangbiankuang',\n  value: _borderInfo.borderType.diagonalUp\n}];\nvar clearCellItem = exports.clearCellItem = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0017'),\n  value: 1,\n  key: 'ClearCells_Al'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0018'),\n  value: 2,\n  key: 'ClearCells_Format'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0019'),\n  value: 3,\n  key: 'ClearCells_Content'\n}];\nvar lockCellItem = exports.lockCellItem = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0029'),\n  value: 1,\n  icon: 'iconcool suoding2',\n  key: 'LockCells_LockCells'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0030'),\n  value: 2,\n  icon: 'iconcool jiechusuoding',\n  key: 'LockCells_UnlockCells'\n}];\nvar fontDecorationItems = exports.fontDecorationItems = [{\n  key: 'FontDecoration_weight',\n  text: (0, _intlApi.getLangMsg)('spread.key0002'),\n  icon: 'iconcool jiacu',\n  value: 1\n}, {\n  key: 'FontDecoration_italic',\n  text: (0, _intlApi.getLangMsg)('spread.key0003'),\n  icon: 'iconcool xieti',\n  value: 2\n}, {\n  key: 'FontDecoration_underline',\n  text: (0, _intlApi.getLangMsg)('spread.key0004'),\n  icon: 'iconcool xiahuaxian',\n  value: 3\n}];\nvar verticalAlignItems = exports.verticalAlignItems = [{\n  key: 'VerticalAlign_top',\n  text: (0, _intlApi.getLangMsg)('spread.key0021'),\n  icon: 'iconcool zhiding',\n  value: 0\n}, {\n  key: 'VerticalAlign_bottom',\n  text: (0, _intlApi.getLangMsg)('spread.key0022'),\n  icon: 'iconcool shangxiajuzhong',\n  value: 1\n}, {\n  key: 'VerticalAlign_center',\n  text: (0, _intlApi.getLangMsg)('spread.key0023'),\n  icon: 'iconcool zhidi',\n  value: 2\n}];\nvar textIndentItems = exports.textIndentItems = [{\n  key: 'TextIndent_add',\n  text: (0, _intlApi.getLangMsg)('spread.key0027'),\n  icon: 'iconcool suojinliangzengda',\n  value: 0\n}, {\n  key: 'TextIndent_minus',\n  text: (0, _intlApi.getLangMsg)('spread.key0028'),\n  icon: 'iconcool suojinliangjianshao',\n  value: 1\n}];\nvar frozenSheetItems = exports.frozenSheetItems = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0287'),\n  icon: 'iconcool dongjieshouxing',\n  value: 3,\n  key: 'FrozenSheets_FirstColumn'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0288'),\n  icon: 'iconcool dongjieshoulie',\n  value: 4,\n  key: 'FrozenSheets_FirstRow'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0289'),\n  icon: 'iconcool dongjiechuangti',\n  value: 1,\n  key: 'FrozenSheets_FrozenSheets'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0290'),\n  icon: 'iconcool quxiaodongjie',\n  value: 2,\n  key: 'FrozenSheets_UnfrozenSheets'\n}];\nvar switchViewItem = exports.switchViewItem = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0049'),\n  icon: 'iconcool zhishitu',\n  value: 'value',\n  key: 'SwitchView_ValueView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0050'),\n  icon: 'iconcool Itemgongshishitu',\n  value: 'formula',\n  key: 'SwitchView_FormulaView'\n}];\nvar sortAndFilterItems = exports.sortAndFilterItems = [{\n  value: 'setFilter',\n  text: (0, _intlApi.getLangMsg)('spread.key0057'),\n  key: 'SortAndFilter_Filter'\n}, {\n  value: 'clearFilter',\n  text: (0, _intlApi.getLangMsg)('spread.key0058'),\n  key: 'SortAndFilter_ClearFilter'\n}, {\n  value: 'reapplyFilter',\n  text: (0, _intlApi.getLangMsg)('spread.key0059'),\n  key: 'SortAndFilter_ReapplyFilter'\n}];\nvar newInsertRowAndColItems = exports.newInsertRowAndColItems = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0295'),\n  icon: 'iconcool shang3',\n  text1: (0, _intlApi.getLangMsg)('spread.key0156'),\n  value: 1,\n  key: 'NewInsertRowAndCol_InsertRowTop',\n  input: true\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0296'),\n  icon: 'iconcool xia15',\n  text1: (0, _intlApi.getLangMsg)('spread.key0156'),\n  value: 2,\n  key: 'NewInsertRowAndCol_InsertRowBottom',\n  input: true\n}, {\n  key: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0297'),\n  icon: 'iconcool zuo4',\n  text1: (0, _intlApi.getLangMsg)('spread.key0154'),\n  value: 3,\n  key: 'NewInsertRowAndCol_InsertColLeft',\n  input: true\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0298'),\n  icon: 'iconcool you8',\n  text1: (0, _intlApi.getLangMsg)('spread.key0154'),\n  value: 4,\n  key: 'NewInsertRowAndCol_InsertColRight',\n  input: true\n}, {\n  key: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0038'),\n  value: 5,\n  key: 'NewInsertRowAndCol_DeleteRow'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0039'),\n  value: 6,\n  key: 'NewInsertRowAndCol_DeleteCol'\n}];\nvar insertRowAndColItems = exports.insertRowAndColItems = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0301'),\n  text1: (0, _intlApi.getLangMsg)('spread.key0156'),\n  value: 1,\n  key: 'InsertRowAndCol_InsertRowTop',\n  input: true\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0302'),\n  text1: (0, _intlApi.getLangMsg)('spread.key0154'),\n  value: 3,\n  key: 'InsertRowAndCol_InsertColLeft',\n  input: true\n}, {\n  key: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0038'),\n  value: 5,\n  key: 'InsertRowAndCol_DeleteRow'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0039'),\n  value: 6,\n  key: 'InsertRowAndCol_DeleteCol'\n}];\nvar dataValidationItems = exports.dataValidationItems = [{\n  text: (0, _intlApi.getLangMsg)('spread.key0183'),\n  value: 1,\n  key: 'DataValidation_DataValidation'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0230'),\n  value: 2,\n  key: 'DataValidation_CircleInvalidData'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0231'),\n  value: 3,\n  key: 'DataValidation_ClearInvalidCircle'\n}];\nvar defultToolbarItem = exports.defultToolbarItem = [{\n  key: 'Undo',\n  groupId: 0\n}, {\n  key: 'FormatPainter',\n  groupId: 0\n}, {\n  key: 'ClearCells',\n  groupId: 0\n}, {\n  key: 'FontStyle',\n  groupId: 1\n}, {\n  key: 'FontDecoration',\n  groupId: 1\n}, {\n  key: 'ForeAndBackColor',\n  groupId: 1\n}, {\n  key: 'CellsBorder',\n  groupId: 1\n}, {\n  key: 'TextAlign',\n  groupId: 2\n}, {\n  key: 'VerticalAlign',\n  groupId: 2\n}, {\n  key: 'TextIndent',\n  groupId: 2\n}, {\n  key: 'WordWrap',\n  groupId: 2\n}, {\n  key: 'MergeCells',\n  groupId: 2\n}, {\n  key: 'CellFormat',\n  groupId: 3\n}, {\n  key: 'FrozenSheets',\n  groupId: 4\n}, {\n  key: 'LockCells',\n  groupId: 4\n}, {\n  key: 'SwitchView',\n  groupId: 5\n}, {\n  key: 'SortAndFilter',\n  groupId: 5\n}, {\n  key: 'ConditionalFormats',\n  groupId: 5\n}, {\n  key: 'Find',\n  groupId: 5\n}, {\n  key: 'InsertRowAndCol',\n  groupId: 6\n}, {\n  key: 'NewInsertRowAndCol',\n  groupId: 6\n}, {\n  key: 'UploadFile',\n  groupId: 7\n}, {\n  key: 'ExportFile',\n  groupId: 7\n}, {\n  key: 'DataValidation',\n  groupId: 8\n}, {\n  key: 'CheckFormula',\n  groupId: 8\n}, {\n  key: 'Print',\n  groupId: 9\n}, {\n  key: 'Setting',\n  groupId: 9\n}, {\n  key: 'RichText',\n  groupId: 9\n}, {\n  key: 'MoveOrCopySheet',\n  groupId: 9\n}];\n\n/**\n * key:唯一标识（或许？）\n * title:显示的文本内容\n * icon：图标\n * groupId：分组id\n * Component：react组件，用于生成按钮或挂载弹窗\n * onlyComponent：是否只显示传入的react组件，否的话不需要生成按钮\n * items：下拉列表 注意下拉项key的前缀是父节点的key\n * dropDownType 按钮类型 0：按钮与下拉不分开  1：按钮与下拉分开\n * DropdownRender：react组件，用于渲染下拉列表\n * showTitle 是否显示标题 如果显示那么标题在图标后面\n */\n\nvar keyMap = exports.keyMap = {\n  // 零组\n  Undo: [{\n    key: 'undo',\n    title: (0, _intlApi.getLangMsg)('spread.key0128'),\n    icon: 'iconcool chexiao',\n    groupId: 0,\n    isLock: true\n  }, {\n    key: 'redo',\n    title: (0, _intlApi.getLangMsg)('spread.key0129'),\n    icon: 'iconcool zhongzuo',\n    groupId: 0,\n    isLock: true\n  }],\n  FormatPainter: {\n    Component: _toolbarElement.FormatPainter,\n    groupId: 0,\n    onlyComponent: true\n  },\n  ClearCells: {\n    title: (0, _intlApi.getLangMsg)('spread.key0292'),\n    icon: 'iconcool qingchu',\n    items: clearCellItem,\n    groupId: 0\n  },\n  // 一组\n  FontStyle: [{\n    key: 'fontFamily',\n    title: (0, _intlApi.getLangMsg)('spread.key0293'),\n    items: fontFamilyData,\n    groupId: 1,\n    btnType: 'select',\n    isHideTitle: true,\n    style: {\n      width: 84\n    }\n  }, {\n    key: 'fontSize',\n    title: (0, _intlApi.getLangMsg)('spread.key0275'),\n    items: fontSizeData,\n    groupId: 1,\n    btnType: 'select',\n    isHideTitle: true,\n    style: {\n      width: 18\n    },\n    listStyle: {\n      minWidth: 60\n    }\n  }],\n  FontDecoration: {\n    title: (0, _intlApi.getLangMsg)('spread.key0276'),\n    icon: 'iconcool jiacu',\n    dropDownType: 1,\n    items: fontDecorationItems,\n    groupId: 1\n  },\n  ForeAndBackColor: {\n    Component: _toolbarElement.ForeAndBackColor,\n    groupId: 1,\n    onlyComponent: true\n  },\n  CellsBorder: {\n    title: (0, _intlApi.getLangMsg)('spread.key0007'),\n    dropDownType: 1,\n    items: cellBorderData,\n    groupId: 1,\n    DropdownRender: _toolbarElement.CellsBorder\n  },\n  // 二组\n  TextAlign: [{\n    key: 'textAlignLeft',\n    title: (0, _intlApi.getLangMsg)('spread.key0024'),\n    icon: 'iconcool duiqizuo',\n    groupId: 2\n  }, {\n    key: 'textAlignCenter',\n    title: (0, _intlApi.getLangMsg)('spread.key0025'),\n    icon: 'iconcool duiqijuzhong',\n    groupId: 2\n  }, {\n    key: 'textAlignRight',\n    title: (0, _intlApi.getLangMsg)('spread.key0026'),\n    icon: 'iconcool duiqiyou',\n    groupId: 2\n  }],\n  VerticalAlign: {\n    title: (0, _intlApi.getLangMsg)('spread.key0021'),\n    icon: 'iconcool shangxiajuzhong',\n    groupId: 2,\n    dropDownType: 0,\n    items: verticalAlignItems\n  },\n  TextIndent: {\n    title: (0, _intlApi.getLangMsg)('spread.key0279'),\n    icon: 'iconcool suojinliangzengda',\n    groupId: 2,\n    dropDownType: 1,\n    items: textIndentItems\n  },\n  WordWrap: {\n    title: (0, _intlApi.getLangMsg)('spread.key0020'),\n    icon: 'iconcool zidonghuanxing',\n    groupId: 2\n  },\n  MergeCells: {\n    title: (0, _intlApi.getLangMsg)('spread.key0280'),\n    tips: (0, _intlApi.getLangMsg)('spread.key0034'),\n    icon: 'iconcool hebingdanyuange',\n    groupId: 2,\n    showTitle: true\n  },\n  // 三组\n  CellFormat: [{\n    key: 'CellFormat',\n    Component: _toolbarElement.CellsFormat,\n    groupId: 3,\n    onlyComponent: true\n  }, {\n    key: 'CellFormatPercentage',\n    title: (0, _intlApi.getLangMsg)('spread.key0248'),\n    icon: 'kdfont kdfont-baifenbi',\n    groupId: 3\n  }, {\n    key: 'CellFormatThousand',\n    title: (0, _intlApi.getLangMsg)('spread.key0249'),\n    icon: 'kdfont kdfont-qianfenwei',\n    groupId: 3\n  }, {\n    key: 'CellFormatDecimalAdd',\n    title: (0, _intlApi.getLangMsg)('spread.key0250'),\n    icon: 'kdfont kdfont-zengjiaxiaoshuweishu',\n    groupId: 3\n  }, {\n    key: 'CellFormatDecimalSub',\n    title: (0, _intlApi.getLangMsg)('spread.key0251'),\n    icon: 'kdfont kdfont-jianshaoxiaoshuweishu',\n    groupId: 3\n  }],\n  // 四组\n  FrozenSheets: {\n    title: (0, _intlApi.getLangMsg)('spread.key0044'),\n    icon: 'iconcool dongjiechuangti',\n    groupId: 4,\n    items: frozenSheetItems,\n    showTitle: true\n  },\n  LockCells: {\n    title: (0, _intlApi.getLangMsg)('spread.key0031'),\n    icon: 'iconcool suoding2',\n    groupId: 4\n  },\n  // 五组\n  SwitchView: {\n    title: (0, _intlApi.getLangMsg)('spread.key0050'),\n    icon: 'iconcool gongshi',\n    groupId: 5,\n    showTitle: true\n  },\n  SortAndFilter: {\n    title: (0, _intlApi.getLangMsg)('spread.key0057'),\n    icon: 'iconcool shaixuan',\n    groupId: 5,\n    dropDownType: 1,\n    items: sortAndFilterItems\n  },\n  ConditionalFormats: {\n    title: (0, _intlApi.getLangMsg)('spread.key0376'),\n    icon: 'iconcool tiaojiangeshi',\n    showTitle: true,\n    Component: _toolbarElement.ConditionalFormats\n  },\n  Find: {\n    title: (0, _intlApi.getLangMsg)('spread.key0103'),\n    icon: 'iconcool chazhao',\n    groupId: 5,\n    Component: _toolbarElement.Find\n  },\n  // 六组\n  InsertRowAndCol: {\n    title: (0, _intlApi.getLangMsg)('spread.key0286'),\n    icon: 'iconcool zengjiadanyuange',\n    showTitle: true,\n    groupId: 6,\n    items: insertRowAndColItems,\n    DropdownRender: _toolbarElement.InsertRowAndCol\n  },\n  NewInsertRowAndCol: {\n    title: (0, _intlApi.getLangMsg)('spread.key0286'),\n    icon: 'iconcool zengjiadanyuange',\n    showTitle: true,\n    groupId: 6,\n    items: newInsertRowAndColItems,\n    DropdownRender: _toolbarElement.InsertRowAndCol,\n    isHide: true\n  },\n  // 七组\n  UploadFile: {\n    title: (0, _intlApi.getLangMsg)('spread.key0047'),\n    icon: 'iconcool daoru',\n    groupId: 7,\n    Component: _toolbarElement.UploadFile\n  },\n  ExportFile: {\n    title: (0, _intlApi.getLangMsg)('spread.key0102'),\n    icon: 'iconcool daochu',\n    groupId: 7\n  },\n  // 八组\n  DataValidation: {\n    title: (0, _intlApi.getLangMsg)('spread.key0183'),\n    items: dataValidationItems,\n    icon: 'iconcool youxiaoxing',\n    groupId: 8,\n    showTitle: true,\n    Component: _toolbarElement.DataValidation\n  },\n  CheckFormula: {\n    title: (0, _intlApi.getLangMsg)('spread.key0148'),\n    icon: 'iconcool gongshijiancha',\n    groupId: 8,\n    Component: _toolbarElement.CheckFormula,\n    showTitle: true\n  },\n  // 九组\n  Print: {\n    title: (0, _intlApi.getLangMsg)('spread.key0052'),\n    icon: 'iconcool dayin',\n    groupId: 9,\n    Component: _toolbarElement.Print\n  },\n  Setting: {\n    title: (0, _intlApi.getLangMsg)('spread.key0062'),\n    icon: 'iconcool shezhi2',\n    groupId: 9,\n    Component: _toolbarElement.Setting\n  },\n  Separator: {\n    key: 'Separator',\n    Component: _Separator[\"default\"]\n  },\n  // 九组（以下不会在工具栏渲染图标，仅作为右键弹窗显示）\n  RichText: {\n    Component: _toolbarElement.RichText,\n    groupId: 9,\n    onlyComponent: true\n  },\n  MoveOrCopySheet: {\n    Component: _toolbarElement.MoveOrCopySheet,\n    groupId: 9,\n    onlyComponent: true\n  }\n};\n\n// [{\n//   name: '默认1',\n//   key: 'default1',\n//   toolbarItems: [{ key: 'Undo' }, // 默认功能\n//     {\n//       key: 'CheckFormula0', // 唯一标识\n//       icon: 'iconcool kdfont kdfont-shanchuxing', // 字体图标\n//       title: {\n//         zh_CN: '中文',\n//         zh_TW: '繁体',\n//         en_US: 'english'\n//       },\n//       groupId: 0 ,\n//       showTitle: true,\n//       dropDownType:0,items: [ // 下拉项\n//         {\n//           title: {\n//             zh_CN: '中文',\n//             zh_TW: '繁体',\n//             en_US: 'english'\n//           },\n//           icon: 'iconcool kdfont kdfont-guolvpaixu', // 字体图标，\n//           callback: 'sss',\n//           invokeAction: 'sssss',\n//           key: 'AutoFitColumn0123',\n//         }\n//       ]\n//     }\n//   ]\n// }]\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/constant/validationInfo.js":
/*!**************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/constant/validationInfo.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.getValidatorInfo = exports.getCategoryList = exports.defaultInfo = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _serverproperties = __webpack_require__(/*! @/constant/serverproperties.js */ \"./src/constant/serverproperties.js\");\nvar _defaultInfo;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar getCategoryList = exports.getCategoryList = [{\n  key: 'settings',\n  value: 0,\n  text: (0, _intlApi.getLangMsg)('spread.key0179')\n}, {\n  key: 'information',\n  value: 1,\n  text: (0, _intlApi.getLangMsg)('spread.key0180')\n}, {\n  key: 'error',\n  value: 2,\n  text: (0, _intlApi.getLangMsg)('spread.key0181')\n}, {\n  key: 'highlight',\n  value: 3,\n  text: (0, _intlApi.getLangMsg)('spread.key0182')\n}];\nvar defaultInfo = exports.defaultInfo = (_defaultInfo = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defaultInfo, _serverproperties.VALIDATOR_TYPE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0185'),\n  value: [{\n    alias: (0, _intlApi.getLangMsg)('spread.key0186'),\n    value: 0,\n    \"default\": true\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0187'),\n    value: 1\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0188'),\n    value: 2\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0189'),\n    value: 3\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0190'),\n    value: 4\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0191'),\n    value: 6\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0192'),\n    value: 7\n  }]\n}), _serverproperties.VALIDATOR_COMPARISON_OPERATOR, {\n  title: (0, _intlApi.getLangMsg)('spread.key0193'),\n  value: [{\n    alias: (0, _intlApi.getLangMsg)('spread.key0194'),\n    value: 0,\n    \"default\": true\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0195'),\n    value: 1\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0196'),\n    value: 2\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0197'),\n    value: 3\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0198'),\n    value: 4\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0199'),\n    value: 5\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0200'),\n    value: 6\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0201'),\n    value: 7\n  }]\n}), _serverproperties.VALUE_1, {\n  title: (0, _intlApi.getLangMsg)('spread.key0203'),\n  value: null\n}), _serverproperties.VALUE_2, {\n  title: (0, _intlApi.getLangMsg)('spread.key0204'),\n  value: null\n}), _serverproperties.VALUE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0226'),\n  value: null\n}), _serverproperties.IGNORE_BLANK, {\n  title: (0, _intlApi.getLangMsg)('spread.key0202'),\n  value: true\n}), _serverproperties.SHOW_INPUT_MSG, {\n  title: (0, _intlApi.getLangMsg)('spread.key0205'),\n  value: true\n}), _serverproperties.INPUT_TITLE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0207'),\n  value: ''\n}), _serverproperties.INPUT_MESSAGE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0208'),\n  value: ''\n}), _serverproperties.SHOW_ERROR_MESSAGE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0209'),\n  value: true\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defaultInfo, _serverproperties.ERROR_STYLE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0211'),\n  value: [{\n    alias: (0, _intlApi.getLangMsg)('spread.key0212'),\n    value: 0,\n    \"default\": true\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0213'),\n    value: 1\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0214'),\n    value: 2\n  }]\n}), _serverproperties.ERROR_TITLE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0207'),\n  value: ''\n}), _serverproperties.ERROR_MSG, {\n  title: (0, _intlApi.getLangMsg)('spread.key0215'),\n  value: ''\n}), _serverproperties.HIGHLIGHT_TYPE, {\n  title: (0, _intlApi.getLangMsg)('spread.key0211'),\n  value: [{\n    alias: (0, _intlApi.getLangMsg)('spread.key0216'),\n    value: 0,\n    \"default\": true\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0217'),\n    value: 1\n  }]\n}), _serverproperties.HIGHLIGHT_STYLE_COLOR, {\n  title: (0, _intlApi.getLangMsg)('spread.key0218'),\n  value: '#ff0000'\n}), _serverproperties.DOGEAR_POSITION, {\n  title: (0, _intlApi.getLangMsg)('spread.key0219'),\n  value: [{\n    alias: (0, _intlApi.getLangMsg)('spread.key0220'),\n    value: 0,\n    \"default\": true\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0221'),\n    value: 1\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0222'),\n    value: 2\n  }, {\n    alias: (0, _intlApi.getLangMsg)('spread.key0223'),\n    value: 3\n  }]\n}));\n\n// GMT转年月日\nvar GMTToStr = function GMTToStr(value) {\n  if (_typeof(value) === 'object' || (value === null || value === void 0 ? void 0 : value.indexOf('中国标准时间')) > 1 && (value === null || value === void 0 ? void 0 : value.indexOf('GMT')) > 1) {\n    var d = new Date(value);\n    return \"\".concat(d.getFullYear(), \"/\").concat(d.getMonth() + 1, \"/\").concat(d.getDate());\n  }\n  return value;\n};\nvar getValidatorInfo = exports.getValidatorInfo = function getValidatorInfo(row, col, sheet) {\n  var validator = sheet.getDataValidator(row, col);\n  if (!validator) return false;\n  var value1 = GMTToStr(validator.value1());\n  var value2 = GMTToStr(validator.value2());\n  var validatorInfo = [];\n  var highlightStyle = validator.highlightStyle();\n  validatorInfo[_serverproperties.VALIDATOR_TYPE] = validator.type();\n  validatorInfo[_serverproperties.VALIDATOR_COMPARISON_OPERATOR] = validator.comparisonOperator();\n  validatorInfo[_serverproperties.VALUE_1] = value1;\n  validatorInfo[_serverproperties.VALUE_2] = value2;\n  validatorInfo[_serverproperties.SHOW_INPUT_MSG] = validator.showInputMessage();\n  validatorInfo[_serverproperties.INPUT_TITLE] = validator.inputTitle();\n  validatorInfo[_serverproperties.INPUT_MESSAGE] = validator.inputMessage();\n  validatorInfo[_serverproperties.IGNORE_BLANK] = validator.ignoreBlank();\n  validatorInfo[_serverproperties.SHOW_ERROR_MESSAGE] = validator.showErrorMessage();\n  validatorInfo[_serverproperties.ERROR_STYLE] = validator.errorStyle();\n  validatorInfo[_serverproperties.ERROR_TITLE] = validator.errorTitle();\n  validatorInfo[_serverproperties.ERROR_MSG] = validator.errorMessage();\n  validatorInfo[_serverproperties.HIGHLIGHT_TYPE] = highlightStyle.type;\n  validatorInfo[_serverproperties.DOGEAR_POSITION] = highlightStyle.position;\n  validatorInfo[_serverproperties.HIGHLIGHT_STYLE_COLOR] = highlightStyle.color;\n  validatorInfo[_serverproperties.IS_FORMULA_LIST_VALIDATOR] = validator.type() === 1;\n  return validatorInfo;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/constant/validationInfo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/contextMenuService.js":
/*!*********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/contextMenuService.js ***!
  \*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = initContextMenuService;\nexports.handleChildListChange = handleChildListChange;\nexports.mutationObserverCallback = mutationObserverCallback;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n// ============================= 服务初始化 =======================================\n/**\n * 初始化服务，暴露给外面调用\n */\nfunction initContextMenuService(target) {\n  var config = {\n    childList: true\n  };\n  var observer = new MutationObserver(mutationObserverCallback);\n  observer.observe(target, config);\n  return observer;\n}\n\n// =============================== Observer =======================================\n/**\n * MutationObserver 回调\n * @param {[object]} mutations\n */\nfunction mutationObserverCallback(mutations) {\n  mutations.forEach(function (mutation) {\n    if (mutation.type === 'childList') {\n      handleChildListChange(mutation);\n    }\n  });\n}\n\n/**\n * 处理 child list 变化\n * @param {[object]} mutation\n */\n\nfunction handleChildListChange(mutation) {\n  mutation.addedNodes.forEach(function (addedNode) {\n    var menuContainer = addedNode.querySelector('.gc-ui-contextmenu-container.ui-widget');\n    if (menuContainer) {\n      menuContainer.children.forEach(function (menu) {\n        menu.addEventListener('mouseenter', handleMouseEnter);\n      });\n    }\n  });\n  mutation.removedNodes.forEach(function (removedNode) {\n    var menuContainer = removedNode.querySelector('.gc-ui-contextmenu-container.ui-widget');\n    if (menuContainer) {\n      menuContainer.children.forEach(function (menu) {\n        menu.removeEventListener('mouseenter', handleMouseEnter);\n      });\n    }\n  });\n}\n\n// =============================== listener ========================================\nfunction handleMouseEnter(e) {\n  var menuContainer = e.target.parentElement; // 一级菜单容器\n  var subMenuContainer = e.target.querySelector('.gc-ui-contextmenu-subitems-container.ui-widget'); // 二级菜单容器\n  if (!subMenuContainer || isMouseInPanelAtHorizontal(menuContainer.getBoundingClientRect(), e.x)) return; // 如果二级菜单不存在或者鼠标在二级菜单上则不进行位置计算\n  var _subMenuContainer$get = subMenuContainer.getBoundingClientRect(),\n    subMenuContainerHeight = _subMenuContainer$get.height; // 二级菜单容器的高度\n  var _menuContainer$getBou = menuContainer.getBoundingClientRect(),\n    menuContainerHeight = _menuContainer$getBou.height; // 一级菜单容器的高度\n  var menuItemOffsetTop = e.target.offsetTop; // 一级菜单项距离顶部的距离\n  var menuContainerScrollTop = menuContainer.scrollTop; // 一级菜单容器的滚动距离（一级菜单项的距离顶部的距离，减去一级菜单容器的滚动距离，即可算出当前一级菜单项距离一级菜单容器的视口顶部距离）\n  // 如果二级菜单容器的高度大于一级菜单的高度，并且二级菜单容器的高度大于spread容器的高度，则上下都设置为0，压缩高度出现滚动条\n  if (subMenuContainerHeight > menuContainerHeight) {\n    var spreadContainer = menuContainer.closest('.kd-cq-spread-main');\n    if (subMenuContainerHeight > spreadContainer) {\n      subMenuContainer.style.top = 0;\n      subMenuContainer.style.bottom = 0;\n    }\n    // 如果二级菜单容器的高度小于一级菜单项距离底部的距离，则二级菜单容器的顶部要与一级菜单项顶部对齐\n  } else if (subMenuContainerHeight < menuContainerHeight - (menuItemOffsetTop - menuContainerScrollTop)) {\n    subMenuContainer.style.top = \"\".concat(menuItemOffsetTop - menuContainerScrollTop, \"px\");\n    subMenuContainer.style.bottom = '';\n    // 如果二级菜单容器的高度大于一级菜单项距离底部的距离，则二级菜单容器的底部要与一级菜单底部对齐\n  } else if (subMenuContainerHeight > menuContainerHeight - (menuItemOffsetTop - menuContainerScrollTop)) {\n    subMenuContainer.style.top = '';\n    subMenuContainer.style.bottom = 0;\n  }\n}\n\n// =============================== util ========================================\n/**\n * 计算水平位置上鼠标是否在面板内\n * @param {Object} panelArea - 面板的位置信息，通过getBoundingClientRect获取\n * @param {Object} mouseX - 鼠标的x坐标\n */\nfunction isMouseInPanelAtHorizontal(panelArea, mouseX) {\n  var x = panelArea.x,\n    width = panelArea.width;\n  return mouseX > x + width ||\n  // 鼠标在面板右边\n  mouseX < x; // 鼠标在面板左边\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/contextMenuService.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/customMenuList.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/customMenuList.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.newCommandArr = void 0;\nvar M = _interopRequireWildcard(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\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 && Object.prototype.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\n/**\n * 右键菜单项\n * name 唯一标识\n * command 触发时执行的方法\n * text 内容\n * area 触发区域\n * index 索引\n * subMenu 子项\n * menuView 菜单项的dom\n */\n\nvar newCommandArr = exports.newCommandArr = [{\n  name: 'deleteColumns',\n  command: M.deleteColsCommand\n}, {\n  name: 'deleteRows',\n  command: M.deleteRowsCommand\n}, {\n  name: 'insertColumns',\n  command: M.insertColsCommand\n}, {\n  name: 'insertRows',\n  command: M.insertRowsCommand\n},\n// {\n//   name: 'insertColMany',\n//   command: M.insertColMany,\n//   text: getLangMsg('spread.key0139'),\n//   area: 'colHeader',\n//   index: 12\n// },\n// {\n//   name: 'insertRowMany',\n//   command: M.insertRowMany,\n//   text: getLangMsg('spread.key0140'),\n//   area: 'rowHeader',\n//   index: 12\n// },\n{\n  name: 'filter',\n  command: M.setFilter\n}, {\n  name: 'deleteSheet',\n  command: M.deleteSheetCommand\n}, {\n  name: 'hideSheet',\n  command: M.hideSheetCommand\n}, {\n  name: 'unhideSheet',\n  command: M.unhideSheetCommand\n}, {\n  name: 'insertSheet',\n  command: M.insertSheetCommand\n}, {\n  name: 'richText',\n  command: M.richText,\n  area: 'viewport',\n  text: (0, _intlApi.getLangMsg)('spread.key0141')\n}, {\n  name: 'insertCopiedRow',\n  command: M.insertCopiedCell,\n  text: (0, _intlApi.getLangMsg)('spread.key0177'),\n  area: 'rowHeader',\n  index: 13\n}, {\n  name: 'insertCopiedCol',\n  command: M.insertCopiedCell,\n  text: (0, _intlApi.getLangMsg)('spread.key0178'),\n  area: 'colHeader',\n  index: 13\n}, {\n  name: 'cellsFormat',\n  command: M.formatCells,\n  text: (0, _intlApi.getLangMsg)('spread.key0069'),\n  area: 'viewport'\n}, {\n  name: 'setBGC',\n  text: (0, _intlApi.getLangMsg)('spread.key0257'),\n  area: 'sheetTab',\n  subMenu: [{\n    name: 'selectColorPicker',\n    menuView: 'selectColor'\n  }],\n  index: 42\n}, {\n  name: 'deleteRowOrColumns',\n  text: (0, _intlApi.getLangMsg)('spread.key0258'),\n  area: 'viewport',\n  index: 22,\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0259'),\n    name: 'context_moveRightCellToLeft',\n    iconClass: 'gc-spread-no-icon',\n    command: M.moveRightCellToLeft\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0260'),\n    name: 'context_moveBottomCellToTop',\n    iconClass: 'gc-spread-no-icon',\n    command: M.moveBottomCellToTop\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0261'),\n    name: 'context_deleteRows',\n    iconClass: 'gc-spread-no-icon',\n    command: M.deleteRowsCommand\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0262'),\n    name: 'context_deleteColumns',\n    iconClass: 'gc-spread-no-icon',\n    command: M.deleteColsCommand\n  }]\n}, {\n  name: 'insertRowOrColumns',\n  text: (0, _intlApi.getLangMsg)('spread.key0294'),\n  area: 'viewport',\n  index: 18,\n  subMenu: [{\n    name: 'insertRowsTop',\n    menuView: 'insertRowsTopView'\n  }, {\n    name: 'insertRowsBottom',\n    menuView: 'insertRowsBottomView'\n  }, {\n    type: 'separator'\n  }, {\n    name: 'insertColsLeft',\n    menuView: 'insertColsLeftView'\n  }, {\n    name: 'insertColsRight',\n    menuView: 'insertColsRightView'\n  }]\n}, {\n  name: 'rows_insertRowsTop',\n  text: (0, _intlApi.getLangMsg)('spread.key0365'),\n  menuView: 'insertRowsTopView',\n  area: 'rowHeader',\n  index: 12\n}, {\n  name: 'rows_insertRowsBottom',\n  text: (0, _intlApi.getLangMsg)('spread.key0366'),\n  menuView: 'insertRowsBottomView',\n  area: 'rowHeader',\n  index: 13\n}, {\n  name: 'cols_insertColsLeft',\n  text: (0, _intlApi.getLangMsg)('spread.key0363'),\n  menuView: 'insertColsLeftView',\n  area: 'colHeader',\n  index: 12\n}, {\n  name: 'cols_insertColsRight',\n  text: (0, _intlApi.getLangMsg)('spread.key0364'),\n  menuView: 'insertColsRightView',\n  area: 'colHeader',\n  index: 13\n}, {\n  name: 'moveOrCopySheet',\n  command: M.moveOrCopySheet,\n  text: (0, _intlApi.getLangMsg)('spread.key0296'),\n  area: 'sheetTab',\n  index: 40\n}, {\n  name: 'rows_setRowsHeightView',\n  menuView: 'setRowsHeightView',\n  text: (0, _intlApi.getLangMsg)('spread.key0323'),\n  area: 'rowHeader'\n}, {\n  name: 'cols_setColsWidthView',\n  menuView: 'setColsWidthView',\n  text: (0, _intlApi.getLangMsg)('spread.key0324'),\n  area: 'colHeader'\n}];\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/customMenuList.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/defaultMenuList.js":
/*!******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/defaultMenuList.js ***!
  \******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.defaultMenuList = void 0;\n// spread官方右键默认菜单项，用于将右键菜单还原\nvar defaultMenuList = exports.defaultMenuList = [{\n  text: '复制',\n  name: 'gc.spread.copy',\n  command: 'gc.spread.contextMenu.copy',\n  iconClass: 'gc-spread-copy',\n  workArea: 'viewportcolHeaderrowHeaderslicercornerpivotTable'\n}, {\n  text: '剪切',\n  name: 'gc.spread.cut',\n  command: 'gc.spread.contextMenu.cut',\n  iconClass: 'gc-spread-cut',\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  text: '粘贴选项:',\n  name: 'gc.spread.pasteOptions',\n  iconClass: 'gc-spread-pasteOptions',\n  type: 'groupHeader',\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteAll',\n  name: 'gc.spread.pasteAll',\n  iconClass: 'gc-spread-pasteAll',\n  group: 'gc.spread.pasteOptions',\n  text: '全部粘贴',\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteFormula',\n  name: 'gc.spread.pasteFormula',\n  iconClass: 'gc-spread-pasteFormula',\n  group: 'gc.spread.pasteOptions',\n  text: '公式',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteValues',\n  name: 'gc.spread.pasteValues',\n  iconClass: 'gc-spread-pasteValues',\n  group: 'gc.spread.pasteOptions',\n  text: '值',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteFormatting',\n  name: 'gc.spread.pasteFormatting',\n  iconClass: 'gc-spread-pasteFormatting',\n  group: 'gc.spread.pasteOptions',\n  text: '格式',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteValuesFormatting',\n  name: 'gc.spread.pasteValuesFormatting',\n  iconClass: 'gc-spread-pasteValuesFormatting',\n  group: 'gc.spread.pasteOptions',\n  text: '值&格式',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteFormulaFormatting',\n  name: 'gc.spread.pasteFormulaFormatting',\n  iconClass: 'gc-spread-pasteFormulaFormatting',\n  group: 'gc.spread.pasteOptions',\n  text: '公式&格式',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  text: '粘贴',\n  name: 'gc.spread.paste',\n  command: 'gc.spread.contextMenu.pasteValues',\n  iconClass: 'gc-spread-pasteOptions',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  type: 'separator'\n}, {\n  text: '置顶/取消置顶 行',\n  name: 'gc.spread.pinRows',\n  command: 'gc.spread.contextMenu.pinRows',\n  workArea: 'rowHeader'\n}, {\n  text: '插入多行',\n  name: 'gc.spread.insertRowMany',\n  workArea: 'rowHeader',\n  command: 'new_insertRowMany'\n}, {\n  text: '插入多列',\n  name: 'gc.spread.insertColMany',\n  workArea: 'colHeader',\n  command: 'new_insertColMany'\n}, {\n  text: '置顶/取消置顶 列',\n  name: 'gc.spread.pinColumns',\n  command: 'gc.spread.contextMenu.pinColumns',\n  workArea: 'colHeader'\n}, {\n  type: 'separator'\n}, {\n  text: '清除',\n  command: 'gc.spread.contextMenu.clearContents',\n  name: 'gc.spread.clearContents',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, {\n  type: 'separator'\n}, {\n  text: '插入复制的单元格',\n  name: 'gc.spread.rowHeaderinsertCopiedCells',\n  command: 'gc.spread.contextMenu.rowHeaderinsertCopiedCells',\n  workArea: 'rowHeader'\n}, {\n  text: '插入剪贴的单元格',\n  name: 'gc.spread.rowHeaderinsertCutCells',\n  command: 'gc.spread.contextMenu.rowHeaderinsertCutCells',\n  workArea: 'rowHeader'\n}, {\n  text: '插入复制的单元格',\n  name: 'gc.spread.colHeaderinsertCopiedCells',\n  command: 'gc.spread.contextMenu.colHeaderinsertCopiedCells',\n  workArea: 'colHeader'\n}, {\n  text: '插入剪贴的单元格',\n  name: 'gc.spread.colHeaderinsertCutCells',\n  command: 'gc.spread.contextMenu.colHeaderinsertCutCells',\n  workArea: 'colHeader'\n}, {\n  text: '插入复制的单元格...',\n  name: 'gc.spread.insertCopiedCells',\n  subMenu: [{\n    text: '活动单元格右移',\n    name: 'gc.spread.insertCopiedCellsshiftCellsRight',\n    command: 'gc.spread.contextMenu.insertCopiedCellsshiftCellsRight',\n    iconClass: 'gc-spread-shiftCellsRight'\n  }, {\n    text: '活动单元格下移',\n    name: 'gc.spread.insertCopiedCellsshiftCellsDown',\n    command: 'gc.spread.contextMenu.insertCopiedCellsshiftCellsDown',\n    iconClass: 'gc-spread-shiftCellsDown'\n  }],\n  workArea: 'viewport'\n}, {\n  text: '插入剪贴的单元格...',\n  name: 'gc.spread.insertCutCells',\n  subMenu: [{\n    text: '活动单元格右移',\n    name: 'gc.spread.insertCutCellsshiftCellsRight',\n    command: 'gc.spread.contextMenu.insertCutCellsshiftCellsRight',\n    iconClass: 'gc-spread-shiftCellsRight'\n  }, {\n    text: '活动单元格下移',\n    name: 'gc.spread.insertCutCellsshiftCellsDown',\n    command: 'gc.spread.contextMenu.insertCutCellsshiftCellsDown',\n    iconClass: 'gc-spread-shiftCellsDown'\n  }],\n  workArea: 'viewport'\n}, {\n  text: '插入',\n  name: 'gc.spread.insertRows',\n  command: 'new_insertRows',\n  workArea: 'rowHeader'\n}, {\n  text: '插入',\n  name: 'gc.spread.insertColumns',\n  command: 'new_insertColumns',\n  workArea: 'colHeader'\n}, {\n  text: '删除',\n  name: 'gc.spread.deleteRows',\n  command: 'new_deleteRows',\n  workArea: 'rowHeader'\n}, {\n  text: '删除',\n  name: 'gc.spread.deleteColumns',\n  command: 'new_deleteColumns',\n  workArea: 'colHeader'\n}, {\n  type: 'separator'\n}, {\n  text: '插入',\n  name: 'gc.spread.tableInsert',\n  subMenu: [{\n    text: '在左侧插入表列(L)',\n    name: 'gc.spread.tableInsertColumnsLeft',\n    command: 'tableInsertColumnsLeftForContextMenu',\n    iconClass: 'gc-spread-tableInsertColumnsLeft'\n  }, {\n    text: '在右侧插入表列(R)',\n    name: 'gc.spread.tableInsertColumnsRight',\n    command: 'tableInsertColumnsRightForContextMenu',\n    iconClass: 'gc-spread-tableInsertColumnsRight'\n  }, {\n    text: '在上方插入表行(A)',\n    name: 'gc.spread.tableInsertRowsAbove',\n    command: 'tableInsertRowsAboveForContextMenu',\n    iconClass: 'gc-spread-tableInsertRowsAbove'\n  }, {\n    text: '在下方插入表行(B)',\n    name: 'gc.spread.tableInsertRowsBelow',\n    command: 'tableInsertRowsBelowForContextMenu',\n    iconClass: 'gc-spread-tableInsertRowsBelow'\n  }],\n  workArea: 'table'\n}, {\n  text: '删除',\n  name: 'gc.spread.tableDelete',\n  subMenu: [{\n    text: '表列(C)',\n    name: 'gc.spread.tableDeleteColumns',\n    command: 'tableDeleteColumnsForContextMenu',\n    iconClass: 'gc-spread-tableDeleteColumns'\n  }, {\n    text: '表行(R)',\n    name: 'gc.spread.tableDeleteRows',\n    command: 'tableDeleteRowsForContextMenu',\n    iconClass: 'gc-spread-tableDeleteRows'\n  }],\n  workArea: 'table'\n}, {\n  type: 'separator'\n}, {\n  text: '插入',\n  name: 'gc.spread.insertSheet',\n  command: 'new_insertSheet',\n  workArea: 'sheetTab'\n}, {\n  text: '删除',\n  name: 'gc.spread.deleteSheet',\n  command: 'new_deleteSheet',\n  workArea: 'sheetTab'\n}, {\n  type: 'separator'\n}, {\n  text: '过滤',\n  name: 'gc.spread.filter',\n  command: 'new_filter',\n  workArea: 'viewportcorner'\n}, {\n  text: '排序',\n  name: 'gc.spread.sort',\n  subMenu: [{\n    text: '从A到Z',\n    name: 'gc.spread.sortAscend',\n    command: 'gc.spread.contextMenu.sortAscend',\n    iconClass: 'gc-spread-sortAscend'\n  }, {\n    text: '从Z到A',\n    name: 'gc.spread.sortDescend',\n    command: 'gc.spread.contextMenu.sortDescend',\n    iconClass: 'gc-spread-sortDescend'\n  }],\n  workArea: 'viewportcorner'\n}, {\n  text: '从A到Z',\n  name: 'gc.spread.slicerSortAscend',\n  command: 'gc.spread.contextMenu.slicerSortAscend',\n  iconClass: 'gc-spread-sortAscend',\n  workArea: 'slicer'\n}, {\n  text: '从Z到A',\n  name: 'gc.spread.slicerSortDescend',\n  command: 'gc.spread.contextMenu.slicerSortDescend',\n  iconClass: 'gc-spread-sortDescend',\n  workArea: 'slicer'\n}, {\n  type: 'separator'\n}, {\n  text: '插入批注',\n  name: 'gc.spread.insertComment',\n  command: 'gc.spread.contextMenu.insertComment',\n  iconClass: 'gc-spread-insertComment',\n  workArea: 'viewportcorner'\n}, {\n  text: '编辑批注',\n  name: 'gc.spread.editComment',\n  command: 'gc.spread.contextMenu.editComment',\n  iconClass: 'gc-spread-editComment',\n  workArea: 'viewportcorner'\n}, {\n  text: '删除批注',\n  name: 'gc.spread.deleteComment',\n  command: 'gc.spread.contextMenu.deleteComment',\n  iconClass: 'gc-spread-deleteComment',\n  workArea: 'viewportcorner'\n}, {\n  text: '显示/隐藏 批注',\n  name: 'gc.spread.toggleComment',\n  command: 'gc.spread.contextMenu.toggleComment',\n  workArea: 'viewportcorner'\n}, {\n  type: 'separator'\n}, {\n  text: '隐藏',\n  name: 'gc.spread.hideRows',\n  command: 'gc.spread.contextMenu.hideRows',\n  workArea: 'rowHeader'\n}, {\n  text: '显示',\n  name: 'gc.spread.unhideRows',\n  command: 'gc.spread.contextMenu.unhideRows',\n  workArea: 'rowHeader'\n}, {\n  text: '隐藏',\n  name: 'gc.spread.hideColumns',\n  command: 'gc.spread.contextMenu.hideColumns',\n  workArea: 'colHeader'\n}, {\n  text: '显示',\n  name: 'gc.spread.unhideColumns',\n  command: 'gc.spread.contextMenu.unhideColumns',\n  workArea: 'colHeader'\n}, {\n  type: 'separator'\n}, {\n  text: '隐藏',\n  name: 'gc.spread.hideSheet',\n  command: 'new_hideSheet',\n  workArea: 'sheetTab'\n}, {\n  text: '显示',\n  name: 'gc.spread.unhideSheet',\n  command: 'new_unhideSheet',\n  workArea: 'sheetTab'\n}, {\n  type: 'separator'\n}, {\n  text: '移除',\n  name: 'gc.spread.removeSlicer',\n  command: 'gc.spread.contextMenu.removeSlicer',\n  workArea: 'slicer'\n}, {\n  type: 'separator'\n}, {\n  text: '排序',\n  name: 'gc.spread.sort',\n  subMenu: [{\n    text: '从A到Z',\n    name: 'gc.spread.sortAscend',\n    command: 'pivotSort',\n    iconClass: 'gc-spread-sortAscend',\n    commandOptions: {\n      subType: 0\n    },\n    placeholder: 'SortType'\n  }, {\n    text: '从Z到A',\n    name: 'gc.spread.sortDescend',\n    command: 'pivotSort',\n    iconClass: 'gc-spread-sortDescend',\n    commandOptions: {\n      subType: 1\n    },\n    placeholder: 'SortType'\n  }],\n  workArea: 'pivotHeader'\n}, {\n  text: '刷新',\n  name: 'gc.spread.pivotpivotRefresh',\n  command: 'pivotRefresh',\n  iconClass: 'gc-spread-pivotRefresh',\n  workArea: 'pivotPageFilterpivotTopLeftpivotContentpivotHeaderpivotGrandTotalpivotEmptyLabel'\n}, {\n  text: '删除 {0}',\n  name: 'gc.spread.pivotremoveField',\n  command: 'removeField',\n  iconClass: 'gc-spread-removeField',\n  workArea: 'pivotPageFilterpivotTopLeftpivotContentpivotHeader',\n  placeholder: 'FieldName'\n}, {\n  text: '删除总计',\n  name: 'gc.spread.pivotremovePivotGrandTotal',\n  command: 'removePivotGrandTotal',\n  workArea: 'pivotGrandTotal'\n}, {\n  text: '值汇总依据',\n  name: 'gc.spread.pivotpivotSummarizeValuesBy',\n  subMenu: [{\n    text: '求和',\n    name: 'gc.spread.pivotSum',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      subTotalType: 8\n    }\n  }, {\n    text: '计数',\n    name: 'gc.spread.pivotCount',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      subTotalType: 1\n    }\n  }, {\n    text: '平均值',\n    name: 'gc.spread.pivotAverage',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      subTotalType: 0\n    }\n  }, {\n    text: '最大值',\n    name: 'gc.spread.pivotMax',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      subTotalType: 3\n    }\n  }, {\n    text: '最小值',\n    name: 'gc.spread.pivotMin',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      subTotalType: 4\n    }\n  }, {\n    text: '乘积',\n    name: 'gc.spread.pivotProduct',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      subTotalType: 5\n    }\n  }],\n  workArea: 'pivotTopLeftpivotContentpivotGrandTotal'\n}, {\n  text: '值显示方式',\n  name: 'gc.spread.pivotpivotShowValueAs',\n  subMenu: [{\n    text: '无计算',\n    name: 'gc.spread.pivotNoCalculation',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 0\n    }\n  }, {\n    text: '总计的百分比',\n    name: 'gc.spread.pivotGrandtotal',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 1\n    }\n  }, {\n    text: '列汇总的百分比',\n    name: 'gc.spread.pivotColumnTotal',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 3\n    }\n  }, {\n    text: '行汇总的百分比',\n    name: 'gc.spread.pivotRowTotal',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 2\n    }\n  }, {\n    text: '百分比...',\n    name: 'gc.spread.pivotOf',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 4\n    }\n  }, {\n    text: '父行汇总的百分比',\n    name: 'gc.spread.pivotParentRowTotal',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 5\n    }\n  }, {\n    text: '父列汇总的百分比',\n    name: 'gc.spread.pivotParentColumnTotal',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 6\n    }\n  }, {\n    text: '父级汇总的百分比',\n    name: 'gc.spread.pivotOfParentTotal',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 7\n    }\n  }, {\n    text: '差异...',\n    name: 'gc.spread.pivotDifferenceFrom',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 8\n    }\n  }, {\n    text: '差异百分比...',\n    name: 'gc.spread.pivotPercentDifferenceFro',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 9\n    }\n  }, {\n    text: '按某一字段汇总...',\n    name: 'gc.spread.pivotRunningTotalIn',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 10\n    }\n  }, {\n    text: '按某一字段汇总的百分比...',\n    name: 'gc.spread.pivotPercentRunningTotalIn',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 11\n    }\n  }, {\n    text: '升序排列...',\n    name: 'gc.spread.pivotRankSmallestToLargest',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 12\n    }\n  }, {\n    text: '降序排列...',\n    name: 'gc.spread.pivotRankLargestToSmallest',\n    command: 'OpenPivotShowValueAsDialog',\n    commandOptions: {\n      showValueAsType: 13\n    }\n  }, {\n    text: '指数',\n    name: 'gc.spread.pivotIndex',\n    command: 'UpdatePivotValueFieldCmd',\n    commandOptions: {\n      showValueAsType: 14\n    }\n  }],\n  workArea: 'pivotTopLeftpivotContent'\n}, {\n  text: '筛选',\n  name: 'gc.spread.pivotpivotFilter',\n  iconClass: 'gc-spread-pivotFilter',\n  subMenu: [{\n    text: '从 {0} 中清除筛选',\n    name: 'gc.spread.pivotClearFilterFrom',\n    command: 'ClearCommand',\n    iconClass: 'gc-spread-pivotClearFilterFrom',\n    placeholder: 'FieldName',\n    commandOptions: {\n      clearType: 0\n    }\n  }, {\n    text: '仅保留所选项目',\n    name: 'gc.spread.pivotKeepOnlySelectedItems',\n    command: 'filterFieldLabelValue',\n    commandOptions: {\n      subType: 1\n    }\n  }, {\n    text: '隐藏所选项目',\n    name: 'gc.spread.pivotHideSelectedItems',\n    command: 'filterFieldLabelValue',\n    commandOptions: {\n      subType: 2\n    }\n  }, {\n    text: '前10个...',\n    name: 'gc.spread.pivotTop10',\n    command: 'createDialogForValueFilter',\n    commandOptions: {\n      isTop10: true\n    }\n  }, {\n    text: '标签筛选...',\n    name: 'gc.spread.pivotLabelFilters',\n    command: 'createDialogForLabelFilter'\n  }, {\n    text: '值筛选...',\n    name: 'gc.spread.pivotValueFilters',\n    command: 'createDialogForValueFilter'\n  }],\n  workArea: 'pivotHeader'\n}, {\n  text: '展开/折叠',\n  name: 'gc.spread.pivotpivotExpandOrCollapse',\n  subMenu: [{\n    text: '展开',\n    name: 'gc.spread.pivotExpand',\n    command: 'pivotExpand',\n    iconClass: 'gc-spread-pivotExpand'\n  }, {\n    text: '折叠',\n    name: 'gc.spread.pivotCollapse',\n    command: 'pivotCollapse',\n    iconClass: 'gc-spread-pivotCollapse'\n  }, {\n    text: '展开整个字段',\n    name: 'gc.spread.pivotExpandEntireField',\n    command: 'pivotExpandEntireField',\n    iconClass: 'gc-spread-pivotExpandEntireField'\n  }, {\n    text: '折叠整个字段',\n    name: 'gc.spread.pivotCollapseEntireField',\n    command: 'pivotCollapseEntireField',\n    iconClass: 'gc-spread-pivotCollapseEntireField'\n  }],\n  workArea: 'pivotHeader'\n}, {\n  text: '组合...',\n  name: 'gc.spread.pivotpivotTableGroup',\n  command: 'OpenPivotGroupDialog',\n  iconClass: 'gc-spread-pivotTableGroup',\n  workArea: 'pivotHeader'\n}, {\n  text: '取消组合...',\n  name: 'gc.spread.pivotpivotTableUnGroup',\n  command: 'pivotTableUnGroup',\n  iconClass: 'gc-spread-pivotTableUnGroup',\n  workArea: 'pivotHeader'\n}, {\n  text: '显示详细信息',\n  name: 'gc.spread.pivotpivotShowDetails',\n  command: 'pivotShowDetails',\n  iconClass: 'gc-spread-pivotShowDetails',\n  workArea: 'pivotContent'\n}, {\n  text: '值字段设置...',\n  name: 'gc.spread.pivotopenValueFieldSettingDialogCmd',\n  command: 'openValueFieldSettingDialogCmd',\n  iconClass: 'gc-spread-openValueFieldSettingDialogCmd',\n  workArea: 'pivotTopLeftpivotContentpivotGrandTotal'\n}, {\n  text: '富文本',\n  name: 'gc.spread.richText',\n  workArea: 'viewport',\n  command: 'new_richText'\n}, {\n  text: '设置单元格格式',\n  name: 'gc.spread.cellsFormat',\n  command: 'new_cellsFormat',\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}];\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/defaultMenuList.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/kdSpreadMenuList.js":
/*!*******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/kdSpreadMenuList.js ***!
  \*******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.kdSpreadMenuList = exports.kdNewSpreadMenuList = void 0;\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\n/**\n * 定制默认右键菜单项，对官方右键菜单进行的二次开发设计\n * 排序规则：\n * viewport\n * colHeader\n * rowHeader\n * 由于slicer、corner、pivotTable需要设计器配合，所以无用，直接删除\n */\nvar kdSpreadMenuList = exports.kdSpreadMenuList = [/* ------- 第一块区域开始 -------- */\n/* ------- 第一块区域viewport、colHeader、rowHeader通用 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0355'),\n  name: 'gc.spread.copy',\n  command: 'gc.spread.contextMenu.copy',\n  iconClass: 'gc-spread-copy',\n  workArea: 'viewportcolHeaderrowHeaderslicercornerpivotTable'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0356'),\n  name: 'gc.spread.cut',\n  command: 'gc.spread.contextMenu.cut',\n  iconClass: 'gc-spread-cut',\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteAll',\n  name: 'gc.spread.pasteAll',\n  text: (0, _intlApi.getLangMsg)('spread.key0310'),\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0311'),\n  name: 'gc.spread.pasteOptions',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0303'),\n    name: 'gc.spread.pasteValues',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteValues'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0304'),\n    name: 'gc.spread.pasteFormula',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteFormula'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0305'),\n    name: 'gc.spread.pasteFormatting',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteFormatting'\n  }, {\n    type: 'separator'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0306'),\n    name: 'gc.spread.pasteValuesFormatting',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteValuesFormatting'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0307'),\n    name: 'gc.spread.pasteFormulaFormatting',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteFormulaFormatting'\n  }],\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, /* ------- 第一块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第二块区域开始 -------- */\n/* ------- viewport begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0294'),\n  name: 'gc.spread.insertRowOrColumns',\n  workArea: 'viewport',\n  command: 'new_insertRowOrColumns',\n  subMenu: [{\n    name: 'gc.spread.insertRowMany',\n    command: 'new_insertRowsTop',\n    menuView: 'insertRowsTopView'\n  }, {\n    name: 'gc.spread.insertColMany',\n    command: 'new_insertColsLeft',\n    menuView: 'insertColsLeftView'\n  }]\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.insertCopiedCells',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0358'),\n    name: 'gc.spread.insertCopiedCellsshiftCellsRight',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCopiedCellsshiftCellsRight'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0359'),\n    name: 'gc.spread.insertCopiedCellsshiftCellsDown',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCopiedCellsshiftCellsDown'\n  }],\n  workArea: 'viewport'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0360'),\n  name: 'gc.spread.insertCutCells',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0358'),\n    name: 'gc.spread.insertCutCellsshiftCellsRight',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCutCellsshiftCellsRight'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0359'),\n    name: 'gc.spread.insertCutCellsshiftCellsDown',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCutCellsshiftCellsDown'\n  }],\n  workArea: 'viewport'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0258'),\n  name: 'gc.spread.deleteRowOrColumns',\n  workArea: 'viewport',\n  command: 'new_deleteRowOrColumns',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0259'),\n    name: 'gc.spread.context_moveRightCellToLeft',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_moveRightCellToLeft'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0260'),\n    name: 'gc.spread.context_moveBottomCellToTop',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_moveBottomCellToTop'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0261'),\n    name: 'gc.spread.context_deleteRows',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_deleteRows'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0262'),\n    name: 'gc.spread.context_deleteColumns',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_deleteColumns'\n  }]\n}, /* ------- viewport end -------- */\n/* ------- colHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0363'),\n  name: 'gc.spread.insertColMany',\n  workArea: 'colHeader',\n  command: 'new_cols_insertColsLeft',\n  menuView: 'insertColsLeftView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0323'),\n  name: 'gc.spread.cols_setColsWidthView',\n  workArea: 'colHeader',\n  command: 'new_cols_setColsWidthView',\n  menuView: 'setColsWidthView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.colHeaderinsertCopiedCells',\n  command: 'gc.spread.contextMenu.colHeaderinsertCopiedCells',\n  workArea: 'colHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.colHeaderinsertCutCells',\n  command: 'gc.spread.contextMenu.colHeaderinsertCutCells',\n  workArea: 'colHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0039'),\n  name: 'gc.spread.deleteColumns',\n  command: 'new_deleteColumns',\n  workArea: 'colHeader'\n}, /* ------- colHeader end -------- */\n/* ------- rowHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0365'),\n  name: 'gc.spread.insertRowMany',\n  workArea: 'rowHeader',\n  command: 'new_rows_insertRowsTop',\n  menuView: 'insertRowsTopView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0323'),\n  name: 'gc.spread.rows_setRowsHeightView',\n  workArea: 'rowHeader',\n  command: 'new_rows_setRowsHeightView',\n  menuView: 'setRowsHeightView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0038'),\n  name: 'gc.spread.deleteRows',\n  command: 'new_deleteRows',\n  workArea: 'rowHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.rowHeaderinsertCopiedCells',\n  command: 'gc.spread.contextMenu.rowHeaderinsertCopiedCells',\n  workArea: 'rowHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0360'),\n  name: 'gc.spread.rowHeaderinsertCutCells',\n  command: 'gc.spread.contextMenu.rowHeaderinsertCutCells',\n  workArea: 'rowHeader'\n}, /* ------- rowHeader end -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0058'),\n  command: 'gc.spread.contextMenu.clearContents',\n  name: 'gc.spread.clearContents',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, /* ------- 第二块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第三块区域开始 -------- */\n/* ------- viewport begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0367'),\n  name: 'gc.spread.filter',\n  command: 'new_filter',\n  iconClass: 'gc-spread-filter',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0368'),\n  name: 'gc.spread.sort',\n  iconClass: 'gc-spread-sort',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0308'),\n    name: 'gc.spread.sortAscend',\n    command: 'gc.spread.contextMenu.sortAscend',\n    iconClass: 'gc-spread-sortAscend'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0309'),\n    name: 'gc.spread.sortDescend',\n    command: 'gc.spread.contextMenu.sortDescend',\n    iconClass: 'gc-spread-sortDescend'\n  }],\n  workArea: 'viewportcorner'\n}, /* ------- viewport end -------- */\n/* ------- colHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0369'),\n  name: 'gc.spread.hideColumns',\n  command: 'gc.spread.contextMenu.hideColumns',\n  workArea: 'colHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0370'),\n  name: 'gc.spread.unhideColumns',\n  command: 'gc.spread.contextMenu.unhideColumns',\n  workArea: 'colHeader'\n}, /* ------- colHeader end -------- */\n/* ------- rowHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0369'),\n  name: 'gc.spread.hideRows',\n  command: 'gc.spread.contextMenu.hideRows',\n  workArea: 'rowHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0370'),\n  name: 'gc.spread.unhideRows',\n  command: 'gc.spread.contextMenu.unhideRows',\n  workArea: 'rowHeader'\n}, /* ------- rowHeader end -------- */\n/* ------- 第三块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第四块区域开始 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0371'),\n  name: 'gc.spread.insertComment',\n  command: 'gc.spread.contextMenu.insertComment',\n  iconClass: 'gc-spread-insertComment',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0372'),\n  name: 'gc.spread.editComment',\n  command: 'gc.spread.contextMenu.editComment',\n  iconClass: 'gc-spread-editComment',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0373'),\n  name: 'gc.spread.deleteComment',\n  command: 'gc.spread.contextMenu.deleteComment',\n  iconClass: 'gc-spread-deleteComment',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0374'),\n  name: 'gc.spread.toggleComment',\n  command: 'gc.spread.contextMenu.toggleComment',\n  workArea: 'viewportcorner'\n}, /* ------- 第四块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第五块区域开始 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0141'),\n  name: 'gc.spread.richText',\n  workArea: 'viewport',\n  command: 'new_richText'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0069'),\n  name: 'gc.spread.cellsFormat',\n  workArea: 'viewportcolHeaderrowHeader',\n  command: 'new_cellsFormat'\n}, /* ------- 第五块区域结束 -------- */\n\n/* ------- sheetTab区域开始 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0294'),\n  name: 'gc.spread.insertSheet',\n  command: 'new_insertSheet',\n  workArea: 'sheetTab'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0258'),\n  name: 'gc.spread.deleteSheet',\n  command: 'new_deleteSheet',\n  workArea: 'sheetTab'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0312'),\n  name: 'gc.spread.moveOrCopySheet',\n  command: 'new_moveOrCopySheet',\n  workArea: 'sheetTab'\n}, {\n  type: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0257'),\n  name: 'gc.spread.setBGC',\n  command: 'new_setBGC',\n  subMenu: [{\n    name: 'gc.spread.selectColorPicker',\n    command: 'new_selectColorPicker',\n    menuView: 'selectColor'\n  }],\n  workArea: 'sheetTab'\n}, {\n  type: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0369'),\n  name: 'gc.spread.hideSheet',\n  command: 'new_hideSheet',\n  workArea: 'sheetTab'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0370'),\n  name: 'gc.spread.unhideSheet',\n  command: 'new_unhideSheet',\n  workArea: 'sheetTab'\n}\n/* ------- sheetTab区域结束 -------- */];\n\n// 这一版本有向上插入与向下插入，由于业务不兼容，需要二开参数开启\nvar kdNewSpreadMenuList = exports.kdNewSpreadMenuList = [/* ------- 第一块区域开始 -------- */\n/* ------- 第一块区域viewport、colHeader、rowHeader通用 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0355'),\n  name: 'gc.spread.copy',\n  command: 'gc.spread.contextMenu.copy',\n  iconClass: 'gc-spread-copy',\n  workArea: 'viewportcolHeaderrowHeaderslicercornerpivotTable'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0356'),\n  name: 'gc.spread.cut',\n  command: 'gc.spread.contextMenu.cut',\n  iconClass: 'gc-spread-cut',\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  command: 'gc.spread.contextMenu.pasteAll',\n  name: 'gc.spread.pasteAll',\n  text: (0, _intlApi.getLangMsg)('spread.key0310'),\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0311'),\n  name: 'gc.spread.pasteOptions',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0303'),\n    name: 'gc.spread.pasteValues',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteValues'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0304'),\n    name: 'gc.spread.pasteFormula',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteFormula'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0305'),\n    name: 'gc.spread.pasteFormatting',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteFormatting'\n  }, {\n    type: 'separator'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0306'),\n    name: 'gc.spread.pasteValuesFormatting',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteValuesFormatting'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0307'),\n    name: 'gc.spread.pasteFormulaFormatting',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.pasteFormulaFormatting'\n  }],\n  workArea: 'viewportcolHeaderrowHeaderslicercorner'\n}, /* ------- 第一块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第二块区域开始 -------- */\n/* ------- viewport begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0294'),\n  name: 'gc.spread.insertRowOrColumns',\n  workArea: 'viewport',\n  command: 'new_insertRowOrColumns',\n  subMenu: [{\n    name: 'gc.spread.insertRowsTop',\n    command: 'new_insertRowsTop',\n    menuView: 'insertRowsTopView'\n  }, {\n    name: 'gc.spread.insertRowsBottom',\n    command: 'new_insertRowsBottom',\n    menuView: 'insertRowsBottomView'\n  }, {\n    type: 'separator'\n  }, {\n    name: 'gc.spread.insertColsLeft',\n    command: 'new_insertColsLeft',\n    menuView: 'insertColsLeftView'\n  }, {\n    name: 'gc.spread.insertColsRight',\n    command: 'new_insertColsRight',\n    menuView: 'insertColsRightView'\n  }]\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.insertCopiedCells',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0358'),\n    name: 'gc.spread.insertCopiedCellsshiftCellsRight',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCopiedCellsshiftCellsRight'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0359'),\n    name: 'gc.spread.insertCopiedCellsshiftCellsDown',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCopiedCellsshiftCellsDown'\n  }],\n  workArea: 'viewport'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0360'),\n  name: 'gc.spread.insertCutCells',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0358'),\n    name: 'gc.spread.insertCutCellsshiftCellsRight',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCutCellsshiftCellsRight'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0359'),\n    name: 'gc.spread.insertCutCellsshiftCellsDown',\n    iconClass: 'gc-spread-no-icon',\n    command: 'gc.spread.contextMenu.insertCutCellsshiftCellsDown'\n  }],\n  workArea: 'viewport'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0258'),\n  name: 'gc.spread.deleteRowOrColumns',\n  workArea: 'viewport',\n  command: 'new_deleteRowOrColumns',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0259'),\n    name: 'gc.spread.context_moveRightCellToLeft',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_moveRightCellToLeft'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0260'),\n    name: 'gc.spread.context_moveBottomCellToTop',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_moveBottomCellToTop'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0261'),\n    name: 'gc.spread.context_deleteRows',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_deleteRows'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0262'),\n    name: 'gc.spread.context_deleteColumns',\n    iconClass: 'gc-spread-no-icon',\n    command: 'new_context_deleteColumns'\n  }]\n}, /* ------- viewport end -------- */\n/* ------- colHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0363'),\n  name: 'gc.spread.cols_insertColsLeft',\n  workArea: 'colHeader',\n  command: 'new_cols_insertColsLeft',\n  menuView: 'insertColsLeftView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0364'),\n  name: 'gc.spread.cols_insertColsRight',\n  workArea: 'colHeader',\n  command: 'new_cols_insertColsRight',\n  menuView: 'insertColsRightView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0323'),\n  name: 'gc.spread.cols_setColsWidthView',\n  workArea: 'colHeader',\n  command: 'new_cols_setColsWidthView',\n  menuView: 'setColsWidthView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.colHeaderinsertCopiedCells',\n  command: 'gc.spread.contextMenu.colHeaderinsertCopiedCells',\n  workArea: 'colHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.colHeaderinsertCutCells',\n  command: 'gc.spread.contextMenu.colHeaderinsertCutCells',\n  workArea: 'colHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0039'),\n  name: 'gc.spread.deleteColumns',\n  command: 'new_deleteColumns',\n  workArea: 'colHeader'\n}, /* ------- colHeader end -------- */\n/* ------- rowHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0365'),\n  name: 'gc.spread.rows_insertRowsTop',\n  workArea: 'rowHeader',\n  command: 'new_rows_insertRowsTop',\n  menuView: 'insertRowsTopView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0366'),\n  name: 'gc.spread.rows_insertRowsBottom',\n  workArea: 'rowHeader',\n  command: 'new_rows_insertRowsBottom',\n  menuView: 'insertRowsBottomView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0323'),\n  name: 'gc.spread.rows_setRowsHeightView',\n  workArea: 'rowHeader',\n  command: 'new_rows_setRowsHeightView',\n  menuView: 'setRowsHeightView'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0038'),\n  name: 'gc.spread.deleteRows',\n  command: 'new_deleteRows',\n  workArea: 'rowHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0357'),\n  name: 'gc.spread.rowHeaderinsertCopiedCells',\n  command: 'gc.spread.contextMenu.rowHeaderinsertCopiedCells',\n  workArea: 'rowHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0360'),\n  name: 'gc.spread.rowHeaderinsertCutCells',\n  command: 'gc.spread.contextMenu.rowHeaderinsertCutCells',\n  workArea: 'rowHeader'\n}, /* ------- rowHeader end -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0058'),\n  command: 'gc.spread.contextMenu.clearContents',\n  name: 'gc.spread.clearContents',\n  workArea: 'viewportcolHeaderrowHeadercorner'\n}, /* ------- 第二块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第三块区域开始 -------- */\n/* ------- viewport begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0367'),\n  name: 'gc.spread.filter',\n  command: 'new_filter',\n  iconClass: 'gc-spread-filter',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0368'),\n  name: 'gc.spread.sort',\n  iconClass: 'gc-spread-sort',\n  subMenu: [{\n    text: (0, _intlApi.getLangMsg)('spread.key0308'),\n    name: 'gc.spread.sortAscend',\n    command: 'gc.spread.contextMenu.sortAscend',\n    iconClass: 'gc-spread-sortAscend'\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0309'),\n    name: 'gc.spread.sortDescend',\n    command: 'gc.spread.contextMenu.sortDescend',\n    iconClass: 'gc-spread-sortDescend'\n  }],\n  workArea: 'viewportcorner'\n}, /* ------- viewport end -------- */\n/* ------- colHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0369'),\n  name: 'gc.spread.hideColumns',\n  command: 'gc.spread.contextMenu.hideColumns',\n  workArea: 'colHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0370'),\n  name: 'gc.spread.unhideColumns',\n  command: 'gc.spread.contextMenu.unhideColumns',\n  workArea: 'colHeader'\n}, /* ------- colHeader end -------- */\n/* ------- rowHeader begin -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0369'),\n  name: 'gc.spread.hideRows',\n  command: 'gc.spread.contextMenu.hideRows',\n  workArea: 'rowHeader'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0370'),\n  name: 'gc.spread.unhideRows',\n  command: 'gc.spread.contextMenu.unhideRows',\n  workArea: 'rowHeader'\n}, /* ------- rowHeader end -------- */\n/* ------- 第三块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第四块区域开始 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0371'),\n  name: 'gc.spread.insertComment',\n  command: 'gc.spread.contextMenu.insertComment',\n  iconClass: 'gc-spread-insertComment',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0372'),\n  name: 'gc.spread.editComment',\n  command: 'gc.spread.contextMenu.editComment',\n  iconClass: 'gc-spread-editComment',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0373'),\n  name: 'gc.spread.deleteComment',\n  command: 'gc.spread.contextMenu.deleteComment',\n  iconClass: 'gc-spread-deleteComment',\n  workArea: 'viewportcorner'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0374'),\n  name: 'gc.spread.toggleComment',\n  command: 'gc.spread.contextMenu.toggleComment',\n  workArea: 'viewportcorner'\n}, /* ------- 第四块区域结束 -------- */\n{\n  type: 'separator'\n}, /* ------- 第五块区域开始 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0141'),\n  name: 'gc.spread.richText',\n  workArea: 'viewport',\n  command: 'new_richText'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0069'),\n  name: 'gc.spread.cellsFormat',\n  workArea: 'viewportcolHeaderrowHeader',\n  command: 'new_cellsFormat'\n}, /* ------- 第五块区域结束 -------- */\n\n/* ------- sheetTab区域开始 -------- */\n{\n  text: (0, _intlApi.getLangMsg)('spread.key0294'),\n  name: 'gc.spread.insertSheet',\n  command: 'new_insertSheet',\n  workArea: 'sheetTab'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0258'),\n  name: 'gc.spread.deleteSheet',\n  command: 'new_deleteSheet',\n  workArea: 'sheetTab'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0312'),\n  name: 'moveOrCopySheet',\n  command: 'new_moveOrCopySheet',\n  workArea: 'sheetTab'\n}, {\n  type: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0257'),\n  name: 'gc.spread.setBGC',\n  command: 'new_setBGC',\n  subMenu: [{\n    name: 'gc.spread.selectColorPicker',\n    command: 'new_selectColorPicker',\n    menuView: 'selectColor'\n  }],\n  workArea: 'sheetTab'\n}, {\n  type: 'separator'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0369'),\n  name: 'gc.spread.hideSheet',\n  command: 'new_hideSheet',\n  workArea: 'sheetTab'\n}, {\n  text: (0, _intlApi.getLangMsg)('spread.key0370'),\n  name: 'gc.spread.unhideSheet',\n  command: 'new_unhideSheet',\n  workArea: 'sheetTab'\n}\n/* ------- sheetTab区域结束 -------- */];\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/kdSpreadMenuList.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/menuClickFunction.js":
/*!********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/menuClickFunction.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.clickDeleteRowOrColumns = clickDeleteRowOrColumns;\nexports.clickRichText = clickRichText;\nexports.insertCopiedCell = insertCopiedCell;\nexports.insertRowOrColumnsClick = insertRowOrColumnsClick;\nexports.openContextMenu = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _reportUtils = __webpack_require__(/*! ../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 所有的右键菜单项被点击时都会执行这个方法,动态调整右键菜单项时会用到（不支持异步）\n */\n\nvar openContextMenu = exports.openContextMenu = function openContextMenu(spread, model) {\n  function ContextMenu() {}\n  ContextMenu.prototype = new _spreadSheets[\"default\"].Spread.Sheets.ContextMenu.ContextMenu(spread);\n  ContextMenu.prototype.onOpenMenu = function (menuData, itemsDataForShown, hitInfo, spread) {\n    var _hitInfo$worksheetHit;\n    var _loop = function _loop() {\n      var item = itemsDataForShown[i];\n      var menuItem = memuCustomEventList.find(function (_ref3) {\n        var name = _ref3.name;\n        return item.name === 'gc.spread.' + name;\n      });\n      if (menuItem) {\n        var result = menuItem.method(item, model, spread);\n        for (var key in item) {\n          item[key] = result[key];\n        }\n      }\n    };\n    for (var i = 0; i < itemsDataForShown.length; i++) {\n      _loop();\n    }\n    // 为浮动菜单添加右键菜单项“删除图片”功能\n    if (hitInfo !== null && hitInfo !== void 0 && (_hitInfo$worksheetHit = hitInfo.worksheetHitInfo) !== null && _hitInfo$worksheetHit !== void 0 && (_hitInfo$worksheetHit = _hitInfo$worksheetHit.floatingObjectHitInfo) !== null && _hitInfo$worksheetHit !== void 0 && _hitInfo$worksheetHit.floatingObject) {\n      itemsDataForShown.push({\n        text: (0, _intlApi.getLangMsg)('spread.key0174'),\n        name: 'delete',\n        command: 'delePic',\n        workArea: 'viewportcolHeaderrowHeaderslicercorner'\n      });\n    }\n    // 设置宽高只有在配置中允许用户设置时才显示\n    if (!spread.options.allowUserResize) {\n      var setColsWidthViewIndex = itemsDataForShown.findIndex(function (_ref) {\n        var name = _ref.name;\n        return name === 'gc.spread.cols_setColsWidthView';\n      });\n      var setRowsHeightViewIndex = itemsDataForShown.findIndex(function (_ref2) {\n        var name = _ref2.name;\n        return name === 'gc.spread.rows_setRowsHeightView';\n      });\n      setColsWidthViewIndex !== -1 && itemsDataForShown.splice(setColsWidthViewIndex, 1);\n      setRowsHeightViewIndex !== -1 && itemsDataForShown.splice(setRowsHeightViewIndex, 1);\n    }\n  };\n  return ContextMenu;\n};\nvar memuCustomEventList = [{\n  name: 'richText',\n  method: clickRichText\n}, {\n  name: 'insertCopiedRow',\n  method: insertCopiedCell\n}, {\n  name: 'insertCopiedCol',\n  method: insertCopiedCell\n}, {\n  name: 'deleteRowOrColumns',\n  method: clickDeleteRowOrColumns\n}, {\n  name: 'insertRowOrColumns',\n  method: insertRowOrColumnsClick\n}];\n\n// 锁定单元格禁止使用富文本功能\nfunction clickRichText(item, model, spread) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var isDisabled = (0, _reportUtils.selectionsIsLock)(sheet, selections);\n  item.disable = isDisabled;\n  return item;\n}\n\n// 锁定单元格禁止使用删除单元格功能\nfunction clickDeleteRowOrColumns(item, model, spread) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var isDisabled = (0, _reportUtils.selectionsIsLock)(sheet, selections);\n  item.disable = isDisabled;\n  item.subMenu.forEach(function (subItem) {\n    if (subItem.name === 'gc.spread.context_deleteRows' || subItem.name === 'gc.spread.context_deleteColumns') return;\n    subItem.disable = isDisabled;\n  });\n  return item;\n}\n\n// 根据是否复制过单元格动态显示粘贴选项\nfunction insertCopiedCell(item, model, spread) {\n  var _spread$cutSelectionS;\n  var area = (_spread$cutSelectionS = spread.cutSelectionSArgs) === null || _spread$cutSelectionS === void 0 ? void 0 : _spread$cutSelectionS.insertCopiedCellArea;\n  if (!area || item.workArea !== area) delete item.name;\n  return item;\n}\n\n// 选中整行/列不允许插入行/列\nfunction insertRowOrColumnsClick(item, model, spread) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  if (selections[0].row === -1) {\n    item.subMenu.forEach(function (subItem) {\n      if (subItem.name === 'gc.spread.insertRowsTop' || subItem.name === 'gc.spread.insertRowsBottom' || subItem.name === 'gc.spread.insertRowMany') {\n        subItem.disable = true;\n      }\n    });\n  } else if (selections[0].col === -1) {\n    item.subMenu.forEach(function (subItem) {\n      if (subItem.name === 'gc.spread.insertColsLeft' || subItem.name === 'gc.spread.insertColsRight' || subItem.name === 'gc.spread.insertColMany') {\n        subItem.disable = true;\n      }\n    });\n  }\n  return item;\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/menuClickFunction.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/menuView.js":
/*!***********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/menuView.js ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.setRowsHeightView = exports.setColsWidthView = exports.selectColor = exports.insertRowsTopView = exports.insertRowsBottomView = exports.insertColsRightView = exports.insertColsLeftView = void 0;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _ColorPicker = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/common/ColorPicker */ \"./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js\"));\nvar _ContextMenuInput = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput */ \"./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.js\");\nvar _serverSpreadParams = __webpack_require__(/*! ../constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nvar M = _interopRequireWildcard(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nvar DISABLE_CLASS_NAME = 'gc-ui-contextmenu-disable';\nvar selectColor = exports.selectColor = function selectColor(root, option) {\n  var spread = option.spread,\n    dataPipeModel = option.dataPipeModel;\n  var sheet = spread.getActiveSheet();\n  var currentColor = sheet.options.sheetTabColor;\n  var selectColorClick = function selectColorClick(type, color, model) {\n    var selectedSheet = M.getSelectedSheet(spread);\n    selectedSheet.forEach(function (sheetName) {\n      M.setTabSheetBGC(spread.getSheetFromName(sheetName), color);\n    });\n  };\n  root.style.cssText = ';padding: 0; background-color: #ffffff';\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ColorPicker[\"default\"], {\n    style: {\n      padding: '4px 12px'\n    },\n    defaultColor: currentColor,\n    dataPipeModel: dataPipeModel,\n    buttonText: (0, _intlApi.getLangMsg)('spread.key0320'),\n    onColorChange: selectColorClick,\n    isContextMenu: true\n  }), root);\n  return root;\n};\nvar insertRowsTopView = exports.insertRowsTopView = function insertRowsTopView(root, option) {\n  var _spread$serverSpreadP, _spread$serverSpreadP2, _spread$serverSpreadP3, _spread$serverSpreadP4;\n  var dataPipeModel = option.dataPipeModel,\n    spread = option.spread;\n  var props = {\n    defaultValue: 1,\n    max: (_spread$serverSpreadP = spread.serverSpreadParams) !== null && _spread$serverSpreadP !== void 0 && _spread$serverSpreadP[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 9999 : 999,\n    min: 0,\n    digitLength: (_spread$serverSpreadP2 = spread.serverSpreadParams) !== null && _spread$serverSpreadP2 !== void 0 && _spread$serverSpreadP2[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 4 : 3,\n    decimalLength: 0,\n    disabled: root.className.includes(DISABLE_CLASS_NAME)\n  };\n  var viewProps = {\n    icon: ((_spread$serverSpreadP3 = spread.serverSpreadParams) === null || _spread$serverSpreadP3 === void 0 ? void 0 : _spread$serverSpreadP3[_serverSpreadParams.USE_NEW_INSERT]) && 'shang3',\n    beforeText: (_spread$serverSpreadP4 = spread.serverSpreadParams) !== null && _spread$serverSpreadP4 !== void 0 && _spread$serverSpreadP4[_serverSpreadParams.USE_NEW_INSERT] ? (0, _intlApi.getLangMsg)('spread.key0295') : (0, _intlApi.getLangMsg)('spread.key0301')\n  };\n  var callback = function callback(count) {\n    var args = {\n      type: 'AddRow',\n      addType: 5,\n      count: count\n    };\n    dataPipeModel.sendData(args);\n  };\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ContextMenuInput.ContextMenuInput, _extends({}, viewProps, {\n    callback: callback\n  }, props)), root);\n  return root;\n};\nvar insertRowsBottomView = exports.insertRowsBottomView = function insertRowsBottomView(root, option) {\n  var _spread$serverSpreadP5, _spread$serverSpreadP6;\n  var dataPipeModel = option.dataPipeModel,\n    spread = option.spread;\n  var props = {\n    defaultValue: 1,\n    max: (_spread$serverSpreadP5 = spread.serverSpreadParams) !== null && _spread$serverSpreadP5 !== void 0 && _spread$serverSpreadP5[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 9999 : 999,\n    min: 0,\n    digitLength: (_spread$serverSpreadP6 = spread.serverSpreadParams) !== null && _spread$serverSpreadP6 !== void 0 && _spread$serverSpreadP6[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 4 : 3,\n    decimalLength: 0,\n    disabled: root.className.includes(DISABLE_CLASS_NAME)\n  };\n  var callback = function callback(count) {\n    var args = {\n      type: 'AddRow',\n      addType: 5,\n      count: count,\n      dir: 'bottom'\n    };\n    dataPipeModel.sendData(args);\n  };\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ContextMenuInput.ContextMenuInput, _extends({\n    icon: \"xia15\",\n    beforeText: (0, _intlApi.getLangMsg)('spread.key0296'),\n    callback: callback\n  }, props)), root);\n  return root;\n};\nvar insertColsLeftView = exports.insertColsLeftView = function insertColsLeftView(root, option) {\n  var _spread$serverSpreadP7, _spread$serverSpreadP8, _spread$serverSpreadP9, _spread$serverSpreadP10;\n  var dataPipeModel = option.dataPipeModel,\n    spread = option.spread;\n  var props = {\n    defaultValue: 1,\n    max: (_spread$serverSpreadP7 = spread.serverSpreadParams) !== null && _spread$serverSpreadP7 !== void 0 && _spread$serverSpreadP7[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 9999 : 999,\n    min: 0,\n    digitLength: (_spread$serverSpreadP8 = spread.serverSpreadParams) !== null && _spread$serverSpreadP8 !== void 0 && _spread$serverSpreadP8[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 4 : 3,\n    decimalLength: 0,\n    disabled: root.className.includes(DISABLE_CLASS_NAME)\n  };\n  var viewProps = {\n    icon: ((_spread$serverSpreadP9 = spread.serverSpreadParams) === null || _spread$serverSpreadP9 === void 0 ? void 0 : _spread$serverSpreadP9[_serverSpreadParams.USE_NEW_INSERT]) && 'zuo4',\n    beforeText: (_spread$serverSpreadP10 = spread.serverSpreadParams) !== null && _spread$serverSpreadP10 !== void 0 && _spread$serverSpreadP10[_serverSpreadParams.USE_NEW_INSERT] ? (0, _intlApi.getLangMsg)('spread.key0297') : (0, _intlApi.getLangMsg)('spread.key0302')\n  };\n  var callback = function callback(count) {\n    var args = {\n      type: 'AddRow',\n      addType: 6,\n      count: count\n    };\n    dataPipeModel.sendData(args);\n  };\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ContextMenuInput.ContextMenuInput, _extends({}, viewProps, {\n    callback: callback\n  }, props)), root);\n  return root;\n};\nvar insertColsRightView = exports.insertColsRightView = function insertColsRightView(root, option) {\n  var _spread$serverSpreadP11, _spread$serverSpreadP12;\n  var dataPipeModel = option.dataPipeModel,\n    spread = option.spread;\n  var props = {\n    defaultValue: 1,\n    max: (_spread$serverSpreadP11 = spread.serverSpreadParams) !== null && _spread$serverSpreadP11 !== void 0 && _spread$serverSpreadP11[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 9999 : 999,\n    min: 0,\n    digitLength: (_spread$serverSpreadP12 = spread.serverSpreadParams) !== null && _spread$serverSpreadP12 !== void 0 && _spread$serverSpreadP12[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 4 : 3,\n    decimalLength: 0,\n    disabled: root.className.includes(DISABLE_CLASS_NAME)\n  };\n  var callback = function callback(count) {\n    var args = {\n      type: 'AddRow',\n      addType: 6,\n      count: count,\n      dir: 'after'\n    };\n    dataPipeModel.sendData(args);\n  };\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ContextMenuInput.ContextMenuInput, _extends({\n    icon: \"you8\",\n    beforeText: (0, _intlApi.getLangMsg)('spread.key0298'),\n    callback: callback\n  }, props)), root);\n  return root;\n};\nvar setRowsHeightView = exports.setRowsHeightView = function setRowsHeightView(root, option) {\n  var dataPipeModel = option.dataPipeModel,\n    spread = option.spread;\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var isAllEqual = !selections.some(function (sel) {\n    var row = sel.row,\n      rowCount = sel.rowCount;\n    for (var j = row; j < row + rowCount; j++) {\n      if (sheet.getRowHeight(j) !== sheet.getRowHeight(row)) {\n        return true;\n      }\n    }\n  });\n  var defaultHeight = isAllEqual ? sheet.getRowHeight(selections[0].row) : '';\n  var callback = function callback(count) {\n    var args = {\n      type: 'KDSetRowsHeight',\n      height: count\n    };\n    dataPipeModel.sendData(args);\n  };\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ContextMenuInput.ContextMenuInput, {\n    icon: \"xinggao\",\n    beforeText: (0, _intlApi.getLangMsg)('spread.key0323'),\n    callback: callback,\n    defaultValue: defaultHeight,\n    max: 999,\n    min: 0,\n    digitLength: 3,\n    decimalLength: 0\n  }), root);\n  return root;\n};\nvar setColsWidthView = exports.setColsWidthView = function setColsWidthView(root, option) {\n  var dataPipeModel = option.dataPipeModel,\n    spread = option.spread;\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var isAllEqual = !selections.some(function (sel) {\n    var col = sel.col,\n      colCount = sel.colCount;\n    for (var j = col; j < col + colCount; j++) {\n      if (sheet.getColumnWidth(j) !== sheet.getColumnWidth(col)) {\n        return true;\n      }\n    }\n  });\n  var defaultWidth = isAllEqual ? sheet.getColumnWidth(selections[0].col) : '';\n  var callback = function callback(count) {\n    var args = {\n      type: 'KDSetColsWidth',\n      width: count\n    };\n    dataPipeModel.sendData(args);\n  };\n  _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(_ContextMenuInput.ContextMenuInput, {\n    icon: \"liekuan2\",\n    beforeText: (0, _intlApi.getLangMsg)('spread.key0324'),\n    callback: callback,\n    defaultValue: defaultWidth,\n    max: 999,\n    min: 0,\n    digitLength: 3,\n    decimalLength: 0\n  }), root);\n  return root;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/menuView.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/contextMenu/registerMenuItems.js":
/*!********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/contextMenu/registerMenuItems.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createMenuView = exports.changeContextCommand = void 0;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar menuView = _interopRequireWildcard(__webpack_require__(/*! ./menuView */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/menuView.js\"));\nvar _kdSpreadMenuList = __webpack_require__(/*! ./kdSpreadMenuList */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/kdSpreadMenuList.js\");\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 自定义右键\n * @param {*} option { model spread dataPipeModel invokeControlMethodOnly }\n * @param {*} menuItemArr [{ name: '', command: }]\n */\nvar changeContextCommand = exports.changeContextCommand = function changeContextCommand(option, menuItemArr) {\n  menuItemArr.forEach(function (newMenuData) {\n    createMenuItem(option, newMenuData);\n  });\n  var CustomMenuView = createMenuView(option);\n  option.spread.contextMenu.menuView = new CustomMenuView();\n  option.spread.contextMenu.menuData = (0, _lodash.cloneDeep)(_kdSpreadMenuList.kdSpreadMenuList);\n};\nvar getItemName = function getItemName(name) {\n  return 'gc.spread.' + name;\n};\nvar getCommandName = function getCommandName(name) {\n  return 'new_' + name;\n};\n\n// 注册指令，并添加右键\nvar createMenuItem = function createMenuItem(option, newMenuData) {\n  var name = newMenuData.name,\n    text = newMenuData.text,\n    area = newMenuData.area,\n    index = newMenuData.index,\n    _newMenuData$subMenu = newMenuData.subMenu,\n    subMenu = _newMenuData$subMenu === void 0 ? [] : _newMenuData$subMenu,\n    command = newMenuData.command,\n    menuView = newMenuData.menuView,\n    iconClass = newMenuData.iconClass;\n  var newSubMenu = [];\n  if (subMenu.length > 0) {\n    subMenu.forEach(function (_ref) {\n      var text = _ref.text,\n        name = _ref.name,\n        iconClass = _ref.iconClass,\n        command = _ref.command,\n        menuView = _ref.menuView,\n        type = _ref.type;\n      if (type) {\n        newSubMenu.push({\n          type: 'separator'\n        });\n      } else {\n        var subMenuName = getItemName(name);\n        var _commandName = getCommandName(name);\n        newSubMenu.push({\n          text: text,\n          name: subMenuName,\n          iconClass: iconClass,\n          command: _commandName,\n          menuView: menuView\n        });\n        commandManager(option, _commandName, command);\n      }\n    });\n  }\n\n  // const itemName = getItemName(name)\n  var commandName = getCommandName(name);\n  commandManager(option, commandName, command);\n\n  // const menuData = option.spread.contextMenu.menuData\n\n  // if (text) {\n  //   const item = { text, name: itemName, iconClass, workArea: area, command: commandName }\n  //   menuView && Object.assign(item, { menuView })\n  //   newSubMenu.length > 0 && Object.assign(item, { subMenu: newSubMenu })\n  //   index === undefined ? menuData.push(item) : menuData.splice(index, 0, item)\n  // } else {\n  //   menuData.forEach((data) => {\n  //     if (data.name === itemName) {\n  //       data.command = commandName\n  //     }\n  //   })\n  // }\n\n  // option.spread.contextMenu.menuData = kdSpreadMenuList\n};\nvar commandManager = function commandManager(_ref2, name, command) {\n  var spread = _ref2.spread,\n    model = _ref2.model,\n    invokeControlMethodOnly = _ref2.invokeControlMethodOnly,\n    dataPipeModel = _ref2.dataPipeModel;\n  if (!command) return;\n  var newCommand = {\n    canUndo: false,\n    execute: function execute() {\n      command(spread, model, invokeControlMethodOnly, dataPipeModel);\n    }\n  };\n  spread.commandManager().register(name, newCommand, null, false, false, false, false);\n};\n\n// 修改右键菜单项的view\nvar createMenuView = exports.createMenuView = function createMenuView(option) {\n  function CustomMenuView() {}\n  CustomMenuView.prototype = new _spreadSheets[\"default\"].Spread.Sheets.ContextMenu.MenuView();\n  CustomMenuView.prototype.createMenuItemElement = function (menuItemData) {\n    var self = this;\n    var containers = _spreadSheets[\"default\"].Spread.Sheets.ContextMenu.MenuView.prototype.createMenuItemElement.call(self, menuItemData);\n    if (menuItemData.menuView) {\n      return menuView[menuItemData.menuView](containers[0], option);\n    } else {\n      return containers;\n    }\n  };\n  return CustomMenuView;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/contextMenu/registerMenuItems.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/baseData.js":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/baseData.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.get.js */ \"../../node_modules/core-js/modules/es.reflect.get.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createBaseDataCell = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _spreadStyle = _interopRequireDefault(__webpack_require__(/*! ../styles/spreadStyle.less */ \"./src/component/web/DataGrid/ReportGrid/styles/spreadStyle.less\"));\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _BaseData = _interopRequireDefault(__webpack_require__(/*! ../../../base/BaseData */ \"./src/component/web/base/BaseData/index.js\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _componentutil = __webpack_require__(/*! ../../../../../util/componentutil */ \"./src/util/componentutil.js\");\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\nvar _f = _interopRequireDefault(__webpack_require__(/*! ../ui/toolbar/img/f7.png */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/f7.png\"));\nvar _xiala = _interopRequireDefault(__webpack_require__(/*! ../ui/toolbar/img/xiala.png */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/xiala.png\"));\nvar _keys = _interopRequireDefault(__webpack_require__(/*! ../constant/keys.js */ \"./src/component/web/DataGrid/ReportGrid/constant/keys.js\"));\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _waitGetLookUpListUtil = _interopRequireDefault(__webpack_require__(/*! @/util/waitGetLookUpListUtil.js */ \"./src/util/waitGetLookUpListUtil.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 基础资料单元格（f7）\n * by kechuang\n */\nvar f7Icon = document.createElement('img');\nvar xialaIcon = document.createElement('img');\nf7Icon.src = _f[\"default\"];\nxialaIcon.src = _xiala[\"default\"];\n// 在外面包一层函数，才能取到GC对象\nvar createBaseDataCell = exports.createBaseDataCell = function createBaseDataCell(dataPipeModel) {\n  // f7类型的单元格\n  var FList = /*#__PURE__*/function (_GC$Spread$Sheets$Cel) {\n    _inherits(FList, _GC$Spread$Sheets$Cel);\n    function FList(selectType, displayType, lockClickable, showAddBtnWhenNoData, doSetItemByNumber) {\n      var _this;\n      _classCallCheck(this, FList);\n      // 这里一定不能改入参的数据格式，不要改成对象解构的形式，不然JSON解析会报错\n      _this = _callSuper(this, FList);\n      _this.typeName = 'f7';\n      _this.value = null;\n      _this.selectType = selectType; // 判断f7单元格是否可以模糊查询 0:可以，1：不可以\n      _this.displayType = displayType; // 1表示显示风格为下拉\n      _this.lockClickable = lockClickable; // true表示锁定可点击\n      _this.showAddBtnWhenNoData = showAddBtnWhenNoData || false;\n      _this.doSetItemByNumber = doSetItemByNumber; // 模糊查询无选项时，点击空白向后端发送网络请求\n      // this.props = props;  //不要把props绑定在自定义单元格类型this上，如果spread设置了多个自定义单元格，会导致解析spread json串时内存溢出\n      return _this;\n    }\n    _createClass(FList, [{\n      key: \"paint\",\n      value: function paint(ctx, value, x, y, w, h, style, context) {\n        var _tagInfo$currentEntrt, _tagInfo$currentEntrt2;\n        if (value) {\n          this.value = value;\n        }\n        style.hAlign = 0;\n        _get(_getPrototypeOf(FList.prototype), \"paint\", this).call(this, ctx, value, x, y, w, h, style, context); // 如果把paint放在最后的话，背景色会将图标覆盖\n        var tagInfo = context.sheet.tag() || {};\n        this.selected = ((_tagInfo$currentEntrt = tagInfo.currentEntrtF7Cell) === null || _tagInfo$currentEntrt === void 0 ? void 0 : _tagInfo$currentEntrt.row) === context.row && ((_tagInfo$currentEntrt2 = tagInfo.currentEntrtF7Cell) === null || _tagInfo$currentEntrt2 === void 0 ? void 0 : _tagInfo$currentEntrt2.col) === context.col;\n        if (this.selected) {\n          if (this.displayType === 1) {\n            ctx.drawImage(xialaIcon, x + w - 18, y + (h - 16) / 2, 16, 16);\n          } else {\n            ctx.drawImage(f7Icon, x + w - 18, y + (h - 16) / 2, 16, 16);\n          }\n        }\n      }\n    }, {\n      key: \"createEditorElement\",\n      value: function createEditorElement(context) {\n        var div = document.createElement('div');\n        div.id = 'f7list';\n        div.className = _spreadStyle[\"default\"].flist;\n        var endEditHandle = function endEditHandle() {\n          context.sheet.endEdit(true);\n        };\n        var cell = {};\n        cell.r = context.row;\n        cell.c = context.col;\n        var value = context.sheet.getValue(cell.r, cell.c);\n        var spread = context.sheet.parent;\n        var props = spread._props_;\n        if (this.selectType === 0) {\n          _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(SPBaseData, _extends({}, props, {\n            cell: cell,\n            showAddBtnWhenNoData: this.showAddBtnWhenNoData,\n            inputValue: value,\n            initPuzzyQueryValue: this.key,\n            endEdit: endEditHandle,\n            displayType: this.displayType,\n            doSetItemByNumber: this.doSetItemByNumber\n          })), div);\n        } else if (this.selectType === 1) {\n          _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(NormalBaseData, _extends({}, props, {\n            cell: cell,\n            value: value\n          })), div);\n        }\n        return div;\n      }\n    }, {\n      key: \"getEditorValue\",\n      value: function getEditorValue(editorContext) {\n        if (editorContext) {\n          // return super.getEditorValue();\n          if (this.selectType === 0) {\n            return this.value;\n          } else if (this.selectType === 1) {\n            var inputDom = editorContext.querySelector('input'); // 获取baseData输入框元素\n            return inputDom.value;\n          }\n        }\n      }\n    }, {\n      key: \"setEditorValue\",\n      value: function setEditorValue(editorContext, value) {\n        var fatherNode = editorContext.parentNode;\n        fatherNode.style.cssText += ';width: 100%;height: 100%;';\n        this.value = value;\n        if (editorContext) {\n          _get(_getPrototypeOf(FList.prototype), \"setEditorValue\", this).call(this, editorContext, value);\n        }\n      }\n    }, {\n      key: \"isEditingValueChanged\",\n      value: function isEditingValueChanged(oldValue, newValue) {\n        if (newValue !== oldValue) {\n          return true;\n        }\n        return false;\n      }\n    }, {\n      key: \"getHitInfo\",\n      value: function getHitInfo(x, y, cellStyle, cellRect, context) {\n        var width = cellRect.width,\n          height = cellRect.height;\n        var cx = cellRect.x;\n        var cy = cellRect.y;\n        var left = cx + width - 18;\n        var right = cx + width - 2;\n        var top = cy + (height - 16) / 2;\n        var bottom = cy + (height + 6) / 2;\n        var info = {\n          x: x,\n          y: y,\n          row: context.row,\n          col: context.col,\n          cellRect: cellRect,\n          sheetArea: context.sheetArea\n        };\n        if (x >= left && x <= right && y >= top && y <= bottom) {\n          info.isReservedLocation = true;\n        }\n        return info;\n      }\n    }, {\n      key: \"processMouseMove\",\n      value: function processMouseMove(hitInfo) {\n        var sheet = hitInfo.sheet;\n        var div = sheet.getParent().getHost();\n        var canvas = div.querySelector('canvas');\n        if (sheet && hitInfo.isReservedLocation && this.selected) {\n          canvas.style.cursor = 'pointer';\n          return true;\n        } else {\n          canvas.style.cursor = 'default';\n        }\n        return false;\n      }\n    }, {\n      key: \"processMouseDown\",\n      value: function processMouseDown(hitInfo) {\n        var sheet = hitInfo.sheet,\n          row = hitInfo.row,\n          col = hitInfo.col;\n        var isLocked = sheet.getCell(row, col).locked();\n        if (isLocked && !this.lockClickable) return;\n        if (hitInfo.isReservedLocation && this.showIcon) {\n          if (this.displayType === 1) {\n            sheet.startEdit();\n            this.formMouseDown = true;\n          } else {\n            var spread = hitInfo.sheet.parent;\n            var props = spread._props_;\n            props.invokeControlMethodOnly(props.model, 'f7Click', [{\n              cell: {\n                r: hitInfo.row,\n                c: hitInfo.col\n              }\n            }]);\n          }\n        }\n      }\n    }, {\n      key: \"isReservedKey\",\n      value: function isReservedKey(event, context) {\n        // 键盘事件是否由单元格控制，除了KEYS中定义的，其余的键盘事件由单元格控制，会走processKeyDown方法\n        if (!_keys[\"default\"].includes(event.key)) {\n          if (event.metaKey || event.ctrlKey || event.altKey) {\n            return false;\n          }\n          return true;\n        }\n        return false;\n      }\n    }, {\n      key: \"processKeyDown\",\n      value: function processKeyDown(event, context) {\n        var sheet = context.sheet;\n        if (event.key) {\n          if (event.key === 'Spacebar') {\n            this.key = ' ';\n          } else {\n            this.key = event.key;\n          }\n          sheet.startEdit();\n        }\n      }\n    }, {\n      key: \"activateEditor\",\n      value: function activateEditor(editorContext, cellStyle, cellRect, context) {\n        var _this2 = this;\n        setTimeout(function () {\n          var inputDom = editorContext.querySelector('input'); // 获取baseData输入框元素\n          var iconDom = editorContext.querySelector('span[data-search]'); // 获取baseData搜索图标元素\n          if (_this2.formMouseDown) {\n            setTimeout(function () {\n              iconDom.click();\n            }, 200);\n          }\n          inputDom.focus();\n          var spread = context.sheet.parent;\n          spread.commandManager().setShortcutKey(null, _spreadSheets[\"default\"].Spread.Commands.Key.up, false, false, false, false);\n          spread.commandManager().setShortcutKey(null, _spreadSheets[\"default\"].Spread.Commands.Key.down, false, false, false, false);\n          spread.commandManager().setShortcutKey(null, _spreadSheets[\"default\"].Spread.Commands.Key.left, false, false, false, false);\n          spread.commandManager().setShortcutKey(null, _spreadSheets[\"default\"].Spread.Commands.Key.right, false, false, false, false);\n        }, 0);\n      }\n    }, {\n      key: \"deactivateEditor\",\n      value: function deactivateEditor(editorContext, context) {\n        var _this3 = this;\n        // 销毁编辑态增加的dom\n        // 适配f7的enter事件\n        setTimeout(function () {\n          delete _this3.formMouseDown;\n          delete _this3.key;\n          _reactDom[\"default\"].unmountComponentAtNode(editorContext);\n          var spread = context.sheet.parent;\n          spread.commandManager().setShortcutKey('navigationUp', _spreadSheets[\"default\"].Spread.Commands.Key.up, false, false, false, false);\n          spread.commandManager().setShortcutKey('navigationDown', _spreadSheets[\"default\"].Spread.Commands.Key.down, false, false, false, false);\n          spread.commandManager().setShortcutKey('navigationLeft', _spreadSheets[\"default\"].Spread.Commands.Key.left, false, false, false, false);\n          spread.commandManager().setShortcutKey('navigationRight', _spreadSheets[\"default\"].Spread.Commands.Key.right, false, false, false, false);\n        }, 0);\n      }\n    }]);\n    return FList;\n  }(_spreadSheets[\"default\"].Spread.Sheets.CellTypes.Base);\n  return FList;\n};\n\n// spread包装的basedata组件\nvar SPBaseData = /*#__PURE__*/function (_React$Component) {\n  _inherits(SPBaseData, _React$Component);\n  function SPBaseData(props) {\n    var _this4;\n    _classCallCheck(this, SPBaseData);\n    _this4 = _callSuper(this, SPBaseData, [props]);\n    _this4.setItemByNumber = function (newqueryStr) {\n      if (!_this4.props.doSetItemByNumber) return;\n      var _this4$props = _this4.props,\n        model = _this4$props.model,\n        invokeControlMethodOnly = _this4$props.invokeControlMethodOnly,\n        cell = _this4$props.cell;\n      invokeControlMethodOnly(model, 'invokeAction', [{\n        cell: _objectSpread(_objectSpread({}, cell), {}, {\n          v: newqueryStr\n        }),\n        invokemethod: 'setItemByNumber'\n      }]);\n    };\n    _this4.state = {};\n    _this4.lookupList = [];\n    _this4.handleClick = _this4.handleClick.bind(_assertThisInitialized(_this4));\n    _this4.handleBaseDataChange = _lodash[\"default\"].debounce(_this4.handleBaseDataChange.bind(_assertThisInitialized(_this4)), 300); // 延迟300毫秒触发搜索\n    _this4.handleChange = _this4.handleChange.bind(_assertThisInitialized(_this4));\n    _this4.setLookupData = _this4.setLookupData.bind(_assertThisInitialized(_this4));\n    _this4.selectLookupItem = _this4.selectLookupItem.bind(_assertThisInitialized(_this4));\n    _this4.onClickAddBtn = _this4.onClickAddBtn.bind(_assertThisInitialized(_this4));\n    return _this4;\n  }\n  _createClass(SPBaseData, [{\n    key: \"handleClick\",\n    value: function handleClick(e) {\n      var props = this.props;\n      var _props$model = props.model,\n        pageId = _props$model.pageId,\n        key = _props$model.key;\n      var r = props.cell.r;\n      var c = props.cell.c;\n      props.invokeControlMethodOnly({\n        pageId: pageId,\n        key: key\n      }, 'f7Click', [{\n        cell: {\n          r: r,\n          c: c\n        }\n      }]);\n    }\n  }, {\n    key: \"onClickAddBtn\",\n    value: function onClickAddBtn(searchword) {\n      var model = this.props.model;\n      var r = this.props.cell.r;\n      var c = this.props.cell.c;\n      this.props.invokeControlMethodOnly(model, 'invokeAction', [{\n        cell: {\n          r: r,\n          c: c,\n          v: searchword\n        },\n        invokemethod: 'quickAddNew'\n      }]);\n    }\n\n    // 当输入内容改变时，向后台发送指令，获取新的lookupList\n  }, {\n    key: \"handleBaseDataChange\",\n    value: function handleBaseDataChange(lookupInfo) {\n      var props = this.props;\n      var _props$model2 = props.model,\n        pageId = _props$model2.pageId,\n        key = _props$model2.key;\n      var r = props.cell.r;\n      var c = props.cell.c;\n      if (lookupInfo.value === '') {\n        // 业务要求，清空内容时，需要往后端发送请求\n        props.invokeControlMethodOnly({\n          pageId: pageId,\n          key: key\n        }, 'setItemByIdFromClient', [['', '', '', r, c]]);\n        return;\n      }\n      if (lookupInfo) {\n        props.invokeControlMethodOnly({\n          pageId: pageId,\n          key: key\n        }, 'getLookupData', [{\n          r: r,\n          c: c,\n          lookupInfo: lookupInfo\n        }]);\n      }\n    }\n\n    // 输入框的onChange事件\n  }, {\n    key: \"handleChange\",\n    value: function handleChange(value) {\n      var newState = Object.assign({}, this.state, {\n        value: value\n      });\n      this.setState(newState);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this5 = this;\n      return /*#__PURE__*/_react[\"default\"].createElement(_BaseData[\"default\"], {\n        fromSpread: true,\n        initSize: 5,\n        onClick: this.handleClick,\n        onChange: this.handleChange,\n        alias: this.props.inputValue ? this.props.inputValue.toString() : '',\n        value: this.props.inputValue ? this.props.inputValue.toString() : '',\n        lookUpList: (0, _immutable.fromJS)(this.state.lookupList || []),\n        refreshId: this.refreshId,\n        onBaseDataChange: this.handleBaseDataChange,\n        onBaseDataSelectItem: function onBaseDataSelectItem(baseDataKey) {\n          return _this5.selectLookupItem(baseDataKey);\n        },\n        displayType: this.props.displayType,\n        showMoreClick: this.handleClick,\n        onClickAddBtn: this.onClickAddBtn,\n        showAddBtnWhenNoData: this.props.showAddBtnWhenNoData,\n        initPuzzyQueryValue: this.props.initPuzzyQueryValue,\n        setItemByNumber: this.setItemByNumber,\n        inited: true\n      });\n    }\n  }, {\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var props = this.props;\n      var _props$model3 = props.model,\n        pageId = _props$model3.pageId,\n        key = _props$model3.key;\n      var r = props.cell.r;\n      var c = props.cell.c;\n      this.removeLookUpListender = (0, _memoryCacher.addDataChangeListener)(pageId, [\"\".concat(key, \"_\").concat(r, \"_\").concat(c), 'setLookupData'], this.setLookupData);\n    }\n  }, {\n    key: \"setLookupData\",\n    value: function setLookupData(data) {\n      this.lookupList = data || [];\n      this.refreshId = (0, _componentutil.createNewId)();\n      this.setState(Object.assign({}, this.state, {\n        lookupList: data\n      }));\n    }\n  }, {\n    key: \"selectLookupItem\",\n    value: function selectLookupItem(primaryKey) {\n      var props = this.props;\n      var _props$model4 = props.model,\n        pageId = _props$model4.pageId,\n        key = _props$model4.key;\n      var lookupList = this.state.lookupList;\n      var args = lookupList.filter(function (item) {\n        if (item[0] === primaryKey) {\n          return item;\n        }\n      });\n      var newArgs = args[0];\n      newArgs.push(props.cell.r);\n      newArgs.push(props.cell.c);\n      props.invokeControlMethodOnly({\n        pageId: pageId,\n        key: key\n      }, 'setItemByIdFromClient', [newArgs]);\n      // 退出编辑\n      props.endEdit();\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      this.removeLookUpListender && this.removeLookUpListender();\n    }\n  }]);\n  return SPBaseData;\n}(_react[\"default\"].Component); // 不带模糊查询的BaseData组件\nvar NormalBaseData = /*#__PURE__*/function (_React$Component2) {\n  _inherits(NormalBaseData, _React$Component2);\n  function NormalBaseData(props) {\n    var _this6;\n    _classCallCheck(this, NormalBaseData);\n    _this6 = _callSuper(this, NormalBaseData, [props]);\n    _this6.state = {\n      value: props.value ? props.value : ''\n    };\n    _this6.handleClick = _this6.handleClick.bind(_assertThisInitialized(_this6));\n    return _this6;\n  }\n  _createClass(NormalBaseData, [{\n    key: \"handleClick\",\n    value: function handleClick(e) {\n      var props = this.props;\n      var _props$model5 = props.model,\n        pageId = _props$model5.pageId,\n        key = _props$model5.key;\n      var r = props.cell.r;\n      var c = props.cell.c;\n      props.invokeControlMethodOnly({\n        pageId: pageId,\n        key: key\n      }, 'f7Click', [{\n        cell: {\n          r: r,\n          c: c\n        }\n      }]);\n    }\n  }, {\n    key: \"changeHandle\",\n    value: function changeHandle(e) {\n      var value = e.target.value;\n      this.setState({\n        value: value\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this7 = this;\n      var iconClass = (0, _classnames[\"default\"])(_defineProperty({\n        'kdfont kdfont-f': true\n      }, _spreadStyle[\"default\"].searchBtn, true));\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n        type: \"text\",\n        className: _spreadStyle[\"default\"].input,\n        value: this.state.value,\n        onChange: function onChange(e) {\n          return _this7.changeHandle(e);\n        }\n      }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        \"data-search\": true,\n        className: iconClass,\n        onClick: this.handleClick\n      }));\n    }\n  }]);\n  return NormalBaseData;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/baseData.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/customBaseType.js":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/customBaseType.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = rewriteBaseType;\nexports.setHighlight = exports.setDotMark = exports.setCornerMark = void 0;\n__webpack_require__(/*! core-js/modules/es.array.fill.js */ \"../../node_modules/core-js/modules/es.array.fill.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _lockCell = _interopRequireDefault(__webpack_require__(/*! ../ui/toolbar/img/lockCell.png */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/lockCell.png\"));\nvar _color = _interopRequireDefault(__webpack_require__(/*! color */ \"./node_modules/color/index.js\"));\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _global = _interopRequireWildcard(__webpack_require__(/*! @/global */ \"./src/global/index.js\"));\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 重写base type\n */\n\nfunction rewriteBaseType() {\n  // 重写Base类型\n  var img = document.createElement('img');\n  img.src = _lockCell[\"default\"];\n  var CustomBase = _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Base;\n  if (!_global[\"default\"][_global.ORIGIN_SPREAD_PAINT]) {\n    // 这里需要把原始的paint存起来，否则修改原型链之后，自定义的oldPaint会是上一次的customPaint，导致paint里面的oldPaint指向越来越长\n    _global[\"default\"][_global.ORIGIN_SPREAD_PAINT] = _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Base.prototype.paint;\n  }\n  var oldPaint = _global[\"default\"][_global.ORIGIN_SPREAD_PAINT];\n  CustomBase.prototype.paint = function (ctx, value, x, y, w, h, style, context) {\n    setHighlight({\n      style: style,\n      context: context\n    });\n    oldPaint.apply(this, [ctx, value, x, y, w, h, style, context]);\n    if (!ctx) return;\n    setDotMark({\n      ctx: ctx,\n      x: x,\n      y: y,\n      w: w,\n      h: h\n    }, this.dotMark);\n    setCornerMark({\n      ctx: ctx,\n      x: x,\n      y: y,\n      w: w,\n      h: h\n    }, this.cornerMark);\n    if (style.locked && context.sheet.options.isProtected && context.sheet.options.showLockIcon) {\n      ctx.save();\n      ctx.drawImage(img, x + w - 10, y, 10, 10);\n      ctx.restore();\n    }\n  };\n}\nvar setDotMark = exports.setDotMark = function setDotMark(_ref, dotMark) {\n  var ctx = _ref.ctx,\n    x = _ref.x,\n    y = _ref.y,\n    w = _ref.w,\n    h = _ref.h;\n  if (dotMark && dotMark.visibility) {\n    var _dotMark$backgroundCo = dotMark.backgroundColor,\n      backgroundColor = _dotMark$backgroundCo === void 0 ? 'red' : _dotMark$backgroundCo,\n      position = dotMark.position;\n    var size = 4;\n    var r = size / 2;\n    var dr = 1;\n    var centerX;\n    var centerY;\n    ctx.save();\n    ctx.beginPath();\n    position.forEach(function (item) {\n      if (item === 0) {\n        // 左上角\n        centerX = x + r + dr;\n        centerY = y + r + dr;\n      } else if (item === 1) {\n        // 右上角\n        centerX = x + w - r - dr;\n        centerY = y + r + dr;\n      } else if (item === 2) {\n        // 右下角\n        centerX = x + w - r - dr;\n        centerY = y + h - r - dr;\n      } else if (item === 3) {\n        // 左下角\n        centerX = x + r + dr;\n        centerY = y + h - r - dr;\n      }\n      ctx.arc(centerX, centerY, r, 0, Math.PI * 2, true);\n      ctx.closePath();\n    });\n    ctx.fillStyle = backgroundColor;\n    ctx.fill();\n    ctx.restore();\n  }\n};\nvar setCornerMark = exports.setCornerMark = function setCornerMark(_ref2, cornerMark) {\n  var ctx = _ref2.ctx,\n    x = _ref2.x,\n    y = _ref2.y,\n    w = _ref2.w,\n    h = _ref2.h;\n  if (cornerMark && cornerMark.visibility) {\n    var text = cornerMark.text,\n      backgroundColor = cornerMark.backgroundColor,\n      fontColor = cornerMark.fontColor,\n      position = cornerMark.position;\n    ctx.save();\n    ctx.font = '10px Microsoft YaHei';\n    position.forEach(function (item) {\n      if (item === 0) {\n        // 左上角\n        ctx.beginPath();\n        ctx.moveTo(x, y);\n        ctx.lineTo(x + 20, y);\n        ctx.lineTo(x, y + 20);\n        ctx.lineTo(x, y);\n        ctx.closePath();\n        ctx.fillStyle = backgroundColor;\n        ctx.fill();\n        ctx.fillStyle = fontColor;\n        ctx.fillText(text.slice(0, 1), x + 10, y + 10);\n      } else if (item === 1) {\n        // 右上角\n        ctx.beginPath();\n        ctx.moveTo(x + w, y);\n        ctx.lineTo(x + w - 20, y);\n        ctx.lineTo(x + w, y + 20);\n        ctx.lineTo(x + w, y);\n        ctx.closePath();\n        ctx.fillStyle = backgroundColor;\n        ctx.fill();\n        ctx.fillStyle = fontColor;\n        ctx.fillText(text.slice(0, 1), x + w - 2, y + 10);\n      } else if (item === 2) {\n        // 右下角\n        ctx.beginPath();\n        ctx.moveTo(x + w, y + h);\n        ctx.lineTo(x + w - 20, y + h);\n        ctx.lineTo(x + w, y + h - 20);\n        ctx.lineTo(x + w, y + h);\n        ctx.closePath();\n        ctx.fillStyle = backgroundColor;\n        ctx.fill();\n        ctx.fillStyle = fontColor;\n        ctx.fillText(text.slice(0, 1), x + w - 2, y + h - 2);\n      } else if (item === 3) {\n        // 左下角\n        ctx.beginPath();\n        ctx.moveTo(x, y + h);\n        ctx.lineTo(x + 20, y + h);\n        ctx.lineTo(x, y + h - 20);\n        ctx.lineTo(x, y + h);\n        ctx.closePath();\n        ctx.fillStyle = backgroundColor;\n        ctx.fill();\n        ctx.fillStyle = fontColor;\n        ctx.fillText(text.slice(0, 1), x + 10, y + h - 2);\n      }\n    });\n    ctx.restore();\n  }\n};\nvar setHighlight = exports.setHighlight = function setHighlight(_ref3) {\n  var _tagInfo$highlightCon;\n  var style = _ref3.style,\n    context = _ref3.context;\n  if (!context) return;\n  var row = context.row,\n    col = context.col,\n    sheet = context.sheet;\n  var tagInfo = sheet.tag();\n  if (tagInfo !== null && tagInfo !== void 0 && (_tagInfo$highlightCon = tagInfo.highlightConfig) !== null && _tagInfo$highlightCon !== void 0 && _tagInfo$highlightCon.useHighlight) {\n    var sels = sheet.getSelections();\n    if (sels && sels.length !== 0) {\n      sels.forEach(function (sel) {\n        // 设置当前绘制样式，不会影响导出效果\n        var convertSel = (0, _common.convertRange)(sheet, sel);\n        var rowSpan = convertSel.row + convertSel.rowCount;\n        var colSpan = convertSel.col + convertSel.colCount;\n        if (row >= sel.row && row < rowSpan && col >= sel.col && col < colSpan) {\n          var _style$backColor;\n          style.backColor = (_style$backColor = style.backColor) !== null && _style$backColor !== void 0 ? _style$backColor : '';\n        } else if (row >= sel.row && row < rowSpan || col >= sel.col && col < colSpan) {\n          if (style.backColor) {\n            var styleColor = (0, _color[\"default\"])(style.backColor);\n            var backColor = (0, _color[\"default\"])(tagInfo.highlightConfig.highlightColor);\n            var mixColor = styleColor.mix(backColor, 0.4).rgb();\n            style.backColor = mixColor.string();\n          } else {\n            style.backColor = tagInfo.highlightConfig.highlightColor;\n          }\n        }\n      });\n    }\n  }\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/customBaseType.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/customButton.js":
/*!**************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/customButton.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.get.js */ \"../../node_modules/core-js/modules/es.reflect.get.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createCustomBtnCell = void 0;\n__webpack_require__(/*! core-js/modules/es.array.fill.js */ \"../../node_modules/core-js/modules/es.array.fill.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 按钮单元格\n * by kechuang\n */\n// 在外面包一层函数，才能取到GC对象\nvar createCustomBtnCell = exports.createCustomBtnCell = function createCustomBtnCell() {\n  var CustomButton = /*#__PURE__*/function (_GC$Spread$Sheets$Cel) {\n    _inherits(CustomButton, _GC$Spread$Sheets$Cel);\n    function CustomButton(text) {\n      var _this;\n      _classCallCheck(this, CustomButton);\n      _this = _callSuper(this, CustomButton);\n      _this.typeName = 'btn';\n      _this.innerText = text;\n      _this.status = false;\n      return _this;\n    }\n    _createClass(CustomButton, [{\n      key: \"paint\",\n      value: function paint(ctx, value, x, y, w, h, style, options) {\n        if (!ctx) {\n          return;\n        }\n        ctx.save();\n        var nX = x + 10;\n        var nY = y + 5;\n        var nW = w - 20;\n        var nH = h - 10;\n        ctx.beginPath();\n        ctx.moveTo(nX + 4, nY);\n        ctx.arcTo(nX + nW, nY, nX + nW, nY + nH, 4);\n        ctx.arcTo(nX + nW, nY + nH, nX, nY + nH, 4);\n        ctx.arcTo(nX, nY + nH, nX, nY, 4);\n        ctx.arcTo(nX, nY, nX + nW, nY, 4);\n        ctx.closePath();\n        var gradient = ctx.createLinearGradient(nX, nY, nX, nY + nH);\n        if (this.status === true) {\n          gradient.addColorStop(0, '#71CECF');\n          gradient.addColorStop(0.25, '#3DC7C9');\n          gradient.addColorStop(0.5, '#42BEBF');\n          gradient.addColorStop(0.75, '#3DC7C9');\n          gradient.addColorStop(1, '#71CECF');\n        } else {\n          gradient.addColorStop(0, '#FFBB97');\n          gradient.addColorStop(0.25, '#FD9D77');\n          gradient.addColorStop(0.5, '#FC8555');\n          gradient.addColorStop(0.75, '#FD9D77');\n          gradient.addColorStop(1, '#FFBB97');\n        }\n        ctx.fillStyle = gradient;\n        ctx.fill();\n        ctx.font = '14px serif';\n        ctx.textAlign = 'center';\n        ctx.textBaseline = 'middle';\n        ctx.fillStyle = '#ffffff';\n        var midX = nX + nW / 2;\n        var midY = nY + nH / 2;\n        ctx.fillText(this.innerText, midX, midY);\n        ctx.restore();\n      }\n    }, {\n      key: \"text\",\n      value: function text(value) {\n        if (value !== undefined) {\n          return _get(_getPrototypeOf(CustomButton.prototype), \"text\", this).call(this, value);\n        } else {\n          return _get(_getPrototypeOf(CustomButton.prototype), \"text\", this).call(this);\n        }\n      }\n    }, {\n      key: \"fromJSON\",\n      value: function fromJSON(v) {\n        var text = v.text;\n        this.innerText = text === undefined ? '' : text;\n        this.text(text);\n      }\n      // createEditorElement () {\n      //   let div = document.createElement('div')\n      //   div.className = customCellStyle['customBtn']\n      //   let spanElement = document.createElement('span')\n      //   spanElement.innerHTML = this.innerText\n      //   div.appendChild(spanElement)\n      //   div.style.backgroundImage = 'none'\n\n      //   // 当按钮有编辑态的时候，用来设置按钮编辑态的样式\n      //   div.removeEventListener('mousemove')\n      //   div.addEventListener('mouseenter', () => {\n      //     console.log('enter')\n      //     div.className = customCellStyle['customBtn']\n      //   })\n      //   div.addEventListener('mouseleave', () => {\n      //     console.log('leave')\n      //     div.className = customCellStyle['customBtn']\n      //   })\n      //   div.addEventListener('mousedown', () => {\n      //     console.log('down')\n      //     div.className = div.className + ' ' + customCellStyle['customBtn_click']\n      //   })\n      //   div.addEventListener('mouseup', () => {\n      //     console.log('down')\n      //     div.className = customCellStyle['customBtn']\n      //   })\n      //   return div\n      // }\n    }, {\n      key: \"getHitInfo\",\n      value: function getHitInfo(x, y, cellStyle, cellRect, context) {\n        var nx = cellRect.x + 10;\n        var ny = cellRect.y + 5;\n        var nw = cellRect.width - 20;\n        var nh = cellRect.height - 10;\n        var info = {\n          x: x,\n          y: y,\n          row: context.row,\n          col: context.col,\n          cellRect: cellRect,\n          sheetArea: context.sheetArea\n        };\n        if (nx <= x && x <= nx + nw && ny <= y && y <= ny + nh) {\n          info.isReservedLocation = true;\n        }\n        return info;\n      }\n    }, {\n      key: \"processMouseUp\",\n      value: function processMouseUp(hitInfo) {\n        this.status = false;\n        return _get(_getPrototypeOf(CustomButton.prototype), \"processMouseUp\", this).call(this, hitInfo);\n      }\n    }, {\n      key: \"processMouseDown\",\n      value: function processMouseDown(hitInfo) {\n        this.status = true;\n        return _get(_getPrototypeOf(CustomButton.prototype), \"processMouseDown\", this).call(this, hitInfo);\n      }\n    }]);\n    return CustomButton;\n  }(_spreadSheets[\"default\"].Spread.Sheets.CellTypes.Button);\n  return CustomButton;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/customButton.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/customCornerCell.js":
/*!******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/customCornerCell.js ***!
  \******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.get.js */ \"../../node_modules/core-js/modules/es.reflect.get.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createCornerCell = void 0;\n__webpack_require__(/*! core-js/modules/es.array.fill.js */ \"../../node_modules/core-js/modules/es.array.fill.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 用于分组列节点的自定义单元格\n */\nvar DR = 1; // 边框距离\n\nvar createCornerCell = exports.createCornerCell = function createCornerCell() {\n  var CornerCell = /*#__PURE__*/function (_GC$Spread$Sheets$Cel) {\n    _inherits(CornerCell, _GC$Spread$Sheets$Cel);\n    function CornerCell(st, bc, pos, height, width, hoverHeight, hoverWidth) {\n      var _this;\n      _classCallCheck(this, CornerCell);\n      _this = _callSuper(this, CornerCell);\n      _this.visibility = st; // 是否可见\n      _this.backgroundColor = bc; // 背景颜色\n      _this.position = pos; // 标记点位置\n      _this.tagHeight = height; // 标记高度\n      _this.tagWidth = width; // 标记宽度\n      _this.hoverHeight = hoverHeight; // 鼠标覆盖高度\n      _this.hoverWidth = hoverWidth; // 鼠标覆盖宽度\n      return _this;\n    }\n    _createClass(CornerCell, [{\n      key: \"paint\",\n      value: function paint(ctx, value, x, y, w, h, style, context) {\n        var _this2 = this;\n        var rectX;\n        var rectY;\n        ctx.save();\n        ctx.beginPath();\n        this.position.forEach(function (item) {\n          if (item === 0) {\n            // 左上角\n            rectX = x + DR;\n            rectY = y + DR;\n          } else if (item === 1) {\n            // 右上角\n            rectX = x + w - DR - _this2.tagWidth;\n            rectY = y + DR;\n          } else if (item === 2) {\n            // 右下角\n            rectX = x + w - DR - _this2.tagWidth;\n            rectY = y + h - DR - _this2.tagHeight;\n          } else if (item === 3) {\n            // 左下角\n            rectX = x + DR;\n            rectY = y + h - DR - _this2.tagHeight;\n          }\n          ctx.fillStyle = _this2.backgroundColor;\n          ctx.fillRect(rectX, rectY, _this2.tagWidth, _this2.tagHeight);\n          ctx.closePath();\n        });\n        ctx.fillStyle = this.backgroundColor;\n        ctx.fill();\n        ctx.restore();\n        _get(_getPrototypeOf(CornerCell.prototype), \"paint\", this).call(this, ctx, value, x, y, w, h, style, context);\n      }\n    }, {\n      key: \"getHitInfo\",\n      value: function getHitInfo(x, y, cellStyle, cellRect, context) {\n        var _this3 = this;\n        var width = cellRect.width,\n          height = cellRect.height,\n          cx = cellRect.x,\n          cy = cellRect.y;\n        var left, right, top, bottom;\n        var info = {\n          x: x,\n          y: y,\n          row: context.row,\n          col: context.col,\n          cellRect: cellRect,\n          sheetArea: context.sheetArea\n        };\n        this.position.some(function (item) {\n          if (item === 0) {\n            // 左上角\n            left = cx;\n            right = cx + _this3.hoverWidth;\n            top = cy;\n            bottom = cy + _this3.hoverHeight;\n            if (x >= left && x <= right && y >= top && y <= bottom) {\n              info.isReservedLocation = true;\n              return true;\n            }\n          } else if (item === 1) {\n            // 右上角\n            left = cx + width - _this3.hoverWidth;\n            right = cx + width;\n            top = cy;\n            bottom = cy + _this3.hoverHeight;\n            if (x >= left && x <= right && y >= top && y <= bottom) {\n              info.isReservedLocation = true;\n              return true;\n            }\n          } else if (item === 2) {\n            // 右下角\n            left = cx + width - _this3.hoverWidth;\n            right = cx + width;\n            top = cy + height - _this3.hoverHeight;\n            bottom = cy + height;\n            if (x >= left && x <= right && y >= top && y <= bottom) {\n              info.isReservedLocation = true;\n              return true;\n            }\n          } else if (item === 3) {\n            // 左下角\n            left = cx;\n            right = cx + _this3.hoverWidth;\n            top = cy + height - _this3.hoverHeight;\n            bottom = cy + height;\n            if (x >= left && x <= right && y >= top && y <= bottom) {\n              info.isReservedLocation = true;\n              return true;\n            }\n          }\n        });\n        return info;\n      }\n    }, {\n      key: \"processMouseMove\",\n      value: function processMouseMove(hitInfo) {\n        var sheet = hitInfo.sheet;\n        var div = sheet.getParent().getHost();\n        var canvas = div.querySelector('canvas');\n        if (sheet && hitInfo.isReservedLocation) {\n          canvas.style.cursor = 'pointer';\n          return true;\n        } else {\n          canvas.style.cursor = 'default';\n        }\n        return false;\n      }\n    }, {\n      key: \"processMouseDown\",\n      value: function processMouseDown(hitInfo) {\n        if (hitInfo.isReservedLocation) {\n          var spread = hitInfo.sheet.parent;\n          var props = spread._props_;\n          props.invokeControlMethodOnly(props.model, 'invokeAction', [{\n            cell: {\n              r: hitInfo.row,\n              c: hitInfo.col\n            },\n            invokemethod: 'cornerTagClick'\n          }]);\n        }\n      }\n    }, {\n      key: \"getEditorValue\",\n      value: function getEditorValue(editorContext) {\n        try {\n          if (editorContext) {\n            var input1 = editorContext.children[0];\n            var editorValue = input1.value;\n            return editorValue;\n          }\n        } catch (error) {\n          console.log(error);\n        }\n      }\n    }, {\n      key: \"setEditorValue\",\n      value: function setEditorValue(editorContext, value) {\n        if (editorContext) {\n          if (value) {\n            var input1 = editorContext.children[0];\n            input1.value = value;\n          }\n        }\n      }\n    }, {\n      key: \"updateEditor\",\n      value: function updateEditor(editorContext, cellStyle, cellRect) {\n        if (editorContext) {\n          editorContext.style.width = cellRect.width + 'px';\n          editorContext.style.height = cellRect.height + 'px';\n          editorContext.children[0].focus();\n        }\n      }\n    }, {\n      key: \"createEditorElement\",\n      value: function createEditorElement(context) {\n        var div = document.createElement('div');\n        div.style.backgroundColor = 'white';\n        div.style.overflow = 'hidden';\n        div.style.position = 'relative';\n        var input1 = document.createElement('input');\n        var type = document.createAttribute('type');\n        type.nodeValue = 'text';\n        input1.setAttributeNode(type);\n        input1.style.width = '100%';\n        input1.style.height = '100%';\n        input1.style.boxSizing = 'border-box';\n        div.appendChild(input1);\n        return div;\n      }\n    }]);\n    return CornerCell;\n  }(_spreadSheets[\"default\"].Spread.Sheets.CellTypes.Base);\n  return CornerCell;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/customCornerCell.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/customFormulaCell.js":
/*!*******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/customFormulaCell.js ***!
  \*******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createCustomFormulaCell = void 0;\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _spreadStyle = _interopRequireDefault(__webpack_require__(/*! ../styles/spreadStyle.less */ \"./src/component/web/DataGrid/ReportGrid/styles/spreadStyle.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * spread自定义公式单元格\n * by kechuang\n */\nvar createCustomFormulaCell = exports.createCustomFormulaCell = function createCustomFormulaCell(dataPipeModel) {\n  var CustomFormulaCell = /*#__PURE__*/function (_GC$Spread$Sheets$Cel) {\n    _inherits(CustomFormulaCell, _GC$Spread$Sheets$Cel);\n    function CustomFormulaCell(props) {\n      var _this;\n      _classCallCheck(this, CustomFormulaCell);\n      _this = _callSuper(this, CustomFormulaCell);\n      _this.typeName = 'formula';\n      return _this;\n    }\n    _createClass(CustomFormulaCell, [{\n      key: \"updateEditor\",\n      value: function updateEditor(editorContext, cellStyle, cellRect, context) {\n        // 这里不能修改editorContext的值，这样会影响基类其他的方法\n        // 只能在editorContext外面dom节点来操作，从而改变单元格\n        var container = editorContext.parentNode;\n        container.className = _spreadStyle[\"default\"].formulaCellContainer;\n        // editorContext.className=customCellStyle['editor'];\n        var div = document.createElement('div');\n        div.className = _spreadStyle[\"default\"].formulaCell;\n        div.id = 'formulaIcon';\n        container.appendChild(div);\n        var cell = {};\n        cell.r = context.row;\n        cell.c = context.col;\n        var props = dataPipeModel.getData('PostProps');\n        _reactDom[\"default\"].render( /*#__PURE__*/_react[\"default\"].createElement(SPFormulaCell, _extends({}, props, {\n          cell: cell\n        })), div);\n      }\n    }, {\n      key: \"deactivateEditor\",\n      value: function deactivateEditor(editorContext, context) {\n        // 销毁编辑态增加的dom\n        var addIconDom = editorContext.nextSibling;\n        editorContext.parentNode.removeChild(addIconDom);\n      }\n    }]);\n    return CustomFormulaCell;\n  }(_spreadSheets[\"default\"].Spread.Sheets.CellTypes.Text);\n  return CustomFormulaCell;\n};\nvar SPFormulaCell = /*#__PURE__*/function (_React$Component) {\n  _inherits(SPFormulaCell, _React$Component);\n  function SPFormulaCell() {\n    var _this2;\n    _classCallCheck(this, SPFormulaCell);\n    _this2 = _callSuper(this, SPFormulaCell);\n    _this2.showFormulaPanel = _this2.showFormulaPanel.bind(_assertThisInitialized(_this2));\n    return _this2;\n  }\n  _createClass(SPFormulaCell, [{\n    key: \"showFormulaPanel\",\n    value: function showFormulaPanel() {\n      var props = this.props;\n      var _props$model = props.model,\n        pageId = _props$model.pageId,\n        key = _props$model.key;\n      var cell = props.cell;\n      props.invokeControlMethodOnly({\n        pageId: pageId,\n        key: key\n      }, 'showFormulaPanel', [{\n        cell: cell\n      }]);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var iconClass = 'kdfont kdfont-bianji kd-hover-color';\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: iconClass,\n        onClick: this.showFormulaPanel\n      }));\n    }\n  }]);\n  return SPFormulaCell;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/customFormulaCell.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/customGroupColCell.js":
/*!********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/customGroupColCell.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.get.js */ \"../../node_modules/core-js/modules/es.reflect.get.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createGroupColNode = void 0;\n__webpack_require__(/*! core-js/modules/es.array.fill.js */ \"../../node_modules/core-js/modules/es.array.fill.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _increaseIndicator = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/increaseIndicator.png */ \"./src/component/web/DataGrid/ReportGrid/images/increaseIndicator.png\"));\nvar _decreaseIndicator = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/decreaseIndicator.png */ \"./src/component/web/DataGrid/ReportGrid/images/decreaseIndicator.png\"));\nvar _rotate = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/images/rotate.png */ \"./src/component/web/DataGrid/ReportGrid/images/rotate.png\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 用于分组列节点的自定义单元格\n */\nvar flod = document.createElement('img');\nvar unFlod = document.createElement('img');\nvar rotate = document.createElement('img');\nflod.src = _increaseIndicator[\"default\"];\nunFlod.src = _decreaseIndicator[\"default\"];\nrotate.src = _rotate[\"default\"];\nvar createGroupColNode = exports.createGroupColNode = function createGroupColNode() {\n  var GroupColNode = /*#__PURE__*/function (_GC$Spread$Sheets$Cel) {\n    _inherits(GroupColNode, _GC$Spread$Sheets$Cel);\n    function GroupColNode(vAlign, groupNodeType, drill, radix, spaceRight, isVertical) {\n      var _this;\n      _classCallCheck(this, GroupColNode);\n      _this = _callSuper(this, GroupColNode);\n      _this.vAlign = vAlign; // 距离左侧距离\n      _this.groupNodeType = groupNodeType; // 自定义节点类型\n      _this.drill = drill;\n      _this.radix = radix || 5; // 基数，与vAlign共同计算左侧距离\n      _this.spaceRight = spaceRight || 4; // 分组号距离右侧的距离\n      _this.isVertical = isVertical; // 是否垂直分组\n      return _this;\n    }\n    _createClass(GroupColNode, [{\n      key: \"paint\",\n      value: function paint(ctx, value, x, y, w, h, style, context) {\n        var sheet = context.sheet;\n        var imgWidth = 14 * (Math.round(sheet.zoom() * 100) / 100);\n        var imgHeight = 14 * (Math.round(sheet.zoom() * 100) / 100);\n        var interval = this.vAlign * this.radix;\n        if (this.isVertical) {\n          // 垂直显示\n          var pageX = x + (w - imgHeight) / 2;\n          var pageY = y + interval;\n          var imgCount = 0; // 图片个数，用于计算偏移值\n\n          // canvas绘制背景色保证分组号背景色与单元格背景色相同\n          ctx.save();\n          ctx.rect(x, y, w, imgHeight * 2 + this.spaceRight * 2 + interval);\n          ctx.fillStyle = style.backColor || '#ffffff';\n          ctx.fill();\n          ctx.restore();\n\n          // 左侧图片\n          if (this.groupNodeType === 1) {\n            ctx.drawImage(flod, pageX, pageY, imgWidth, imgHeight);\n            imgCount++;\n          } else if (this.groupNodeType === 2) {\n            ctx.drawImage(unFlod, pageX, pageY, imgWidth, imgHeight);\n            imgCount++;\n          }\n          // 中间图片\n          if (this.drill === 1) {\n            ctx.drawImage(rotate, pageX, pageY + imgWidth + 4, imgWidth, imgHeight);\n            imgCount++;\n          }\n          // 右侧文字\n          _get(_getPrototypeOf(GroupColNode.prototype), \"paint\", this).call(this, ctx, value, x, pageY + imgHeight * imgCount + this.spaceRight, w, h - (imgHeight * imgCount + this.spaceRight + interval), style, context);\n        } else {\n          // 水平显示\n          var _pageX = x + interval;\n          var _pageY = y + (h - imgHeight) / 2;\n          var _imgCount = 0; // 图片个数，用于计算偏移值\n\n          // canvas绘制背景色保证分组号背景色与单元格背景色相同\n          ctx.save();\n          ctx.rect(x, y, imgWidth * 2 + this.spaceRight * 2 + interval, h);\n          ctx.fillStyle = style.backColor || '#ffffff';\n          ctx.fill();\n          ctx.restore();\n\n          // 左侧图片\n          if (this.groupNodeType === 1) {\n            ctx.drawImage(flod, _pageX, _pageY, imgWidth, imgHeight);\n            _imgCount++;\n          } else if (this.groupNodeType === 2) {\n            ctx.drawImage(unFlod, _pageX, _pageY, imgWidth, imgHeight);\n            _imgCount++;\n          }\n          // 中间图片\n          if (this.drill === 1) {\n            ctx.drawImage(rotate, _pageX + imgWidth + 4, _pageY, imgWidth, imgHeight);\n            _imgCount++;\n          }\n          // 右侧文字\n          _get(_getPrototypeOf(GroupColNode.prototype), \"paint\", this).call(this, ctx, value, _pageX + imgWidth * _imgCount + this.spaceRight, y, w - (imgWidth * _imgCount + this.spaceRight + interval), h, style, context);\n        }\n      }\n    }, {\n      key: \"getHitInfo\",\n      value: function getHitInfo(x, y, cellStyle, cellRect, context) {\n        var sheet = context.sheet;\n        var imgWidth = 14 * (Math.round(sheet.zoom() * 100) / 100);\n        var imgHeight = 14 * (Math.round(sheet.zoom() * 100) / 100);\n        var height = cellRect.height,\n          width = cellRect.width;\n        var cx = cellRect.x;\n        var cy = cellRect.y;\n        var left, right, top, bottom, info;\n        if (this.isVertical) {\n          left = cx + (width - imgWidth) / 2;\n          right = cx + (width + imgWidth) / 2;\n          top = cy + this.vAlign * this.radix;\n          bottom = cy + this.vAlign * this.radix + imgHeight;\n          info = {\n            x: x,\n            y: y,\n            row: context.row,\n            col: context.col,\n            cellRect: cellRect,\n            sheetArea: context.sheetArea\n          };\n        } else {\n          left = cx + this.vAlign * this.radix;\n          right = cx + this.vAlign * this.radix + imgWidth;\n          top = cy + (height - imgHeight) / 2;\n          bottom = cy + (height + imgHeight) / 2;\n          info = {\n            x: x,\n            y: y,\n            row: context.row,\n            col: context.col,\n            cellRect: cellRect,\n            sheetArea: context.sheetArea\n          };\n        }\n        if (x >= left && x <= right && y >= top && y <= bottom && this.groupNodeType !== 3) {\n          info.isReservedLocation = true;\n        }\n        return info;\n      }\n    }, {\n      key: \"processMouseMove\",\n      value: function processMouseMove(hitInfo) {\n        var sheet = hitInfo.sheet;\n        var div = sheet.getParent().getHost();\n        var canvas = div.querySelector('canvas');\n        if (sheet && hitInfo.isReservedLocation) {\n          canvas.style.cursor = 'pointer';\n          return true;\n        } else {\n          canvas.style.cursor = 'default';\n        }\n        return false;\n      }\n    }, {\n      key: \"processMouseDown\",\n      value: function processMouseDown(hitInfo) {\n        if (hitInfo.isReservedLocation) {\n          var spread = hitInfo.sheet.parent;\n          var props = spread._props_;\n          props.invokeControlMethodOnly(props.model, 'invokeAction', [{\n            cell: {\n              r: hitInfo.row,\n              c: hitInfo.col,\n              groupNodeType: this.groupNodeType\n            },\n            invokemethod: 'groupNodeChange'\n          }]);\n        }\n      }\n    }, {\n      key: \"getEditorValue\",\n      value: function getEditorValue(editorContext) {\n        try {\n          if (editorContext) {\n            var input1 = editorContext.children[0];\n            var editorValue = input1.value;\n            return editorValue;\n          }\n        } catch (error) {\n          console.log(error);\n        }\n      }\n    }, {\n      key: \"setEditorValue\",\n      value: function setEditorValue(editorContext, value) {\n        if (editorContext) {\n          if (value) {\n            var input1 = editorContext.children[0];\n            input1.value = value;\n          }\n        }\n      }\n    }, {\n      key: \"updateEditor\",\n      value: function updateEditor(editorContext, cellStyle, cellRect) {\n        if (editorContext) {\n          editorContext.style.width = cellRect.width + 'px';\n          editorContext.style.height = cellRect.height + 'px';\n          editorContext.children[0].focus();\n        }\n      }\n    }, {\n      key: \"createEditorElement\",\n      value: function createEditorElement(context) {\n        var div = document.createElement('div');\n        div.style.backgroundColor = 'white';\n        div.style.overflow = 'hidden';\n        div.style.position = 'relative';\n        var input1 = document.createElement('input');\n        var type = document.createAttribute('type');\n        type.nodeValue = 'text';\n        input1.setAttributeNode(type);\n        input1.style.width = '100%';\n        input1.style.height = '100%';\n        input1.style.boxSizing = 'border-box';\n        div.appendChild(input1);\n        return div;\n      }\n    }]);\n    return GroupColNode;\n  }(_spreadSheets[\"default\"].Spread.Sheets.CellTypes.Base);\n  return GroupColNode;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/customGroupColCell.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/customCell/index.js":
/*!*******************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/customCell/index.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createCustomCell = void 0;\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _baseData = __webpack_require__(/*! ./baseData.js */ \"./src/component/web/DataGrid/ReportGrid/customCell/baseData.js\");\nvar _customButton = __webpack_require__(/*! ./customButton.js */ \"./src/component/web/DataGrid/ReportGrid/customCell/customButton.js\");\nvar _customFormulaCell = __webpack_require__(/*! ./customFormulaCell.js */ \"./src/component/web/DataGrid/ReportGrid/customCell/customFormulaCell.js\");\nvar _customBaseType = _interopRequireDefault(__webpack_require__(/*! ./customBaseType */ \"./src/component/web/DataGrid/ReportGrid/customCell/customBaseType.js\"));\nvar _customGroupColCell = __webpack_require__(/*! ./customGroupColCell */ \"./src/component/web/DataGrid/ReportGrid/customCell/customGroupColCell.js\");\nvar _customCornerCell = __webpack_require__(/*! ./customCornerCell.js */ \"./src/component/web/DataGrid/ReportGrid/customCell/customCornerCell.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * spread自定义单元格工厂\n * by kechuang\n */\n\nvar createCustomCell = exports.createCustomCell = function createCustomCell(dataPipeModel) {\n  var FList = (0, _baseData.createBaseDataCell)(dataPipeModel);\n  var CustomButton = (0, _customButton.createCustomBtnCell)();\n  var CustomFormulaCell = (0, _customFormulaCell.createCustomFormulaCell)(dataPipeModel);\n  var GroupColNode = (0, _customGroupColCell.createGroupColNode)();\n  var CustomCornerCell = (0, _customCornerCell.createCornerCell)();\n  var matchCellType = {\n    f7: FList,\n    btn: CustomButton,\n    formula: CustomFormulaCell,\n    groupNode: GroupColNode,\n    cornerCell: CustomCornerCell\n  };\n\n  // 建立类型名和对应类型之间的映射关系\n  var oldFun = _spreadSheets[\"default\"].Spread.Sheets.getTypeFromString;\n  // 这个方法会获取json中的所有的typeName值，所以在定义自定义公式时不要用typeName,否则会出错\n  _spreadSheets[\"default\"].Spread.Sheets.getTypeFromString = function (typeString) {\n    switch (typeString) {\n      case 'f7':\n        return FList;\n      case 'btn':\n        return CustomButton;\n      case 'groupNode':\n        return GroupColNode;\n      // case 'formula':\n      // return CustomFormulaCell;  //暂时不用\n      case 'cornerCell':\n        return CustomCornerCell;\n      default:\n        return oldFun.apply(this, arguments);\n    }\n  };\n  (0, _customBaseType[\"default\"])(dataPipeModel);\n  return matchCellType;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/customCell/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/dataPipeModel/DataPipeModel.js":
/*!******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/dataPipeModel/DataPipeModel.js ***!
  \******************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * 数据管道模型\n * 用于整个spread控件，用来传输数据\n * 每个spread控件会拥有一个唯一的实例，相互独立\n * by kechuang\n */\nvar DataPipeModel = /*#__PURE__*/function () {\n  function DataPipeModel() {\n    _classCallCheck(this, DataPipeModel);\n    this.holdCallback = {};\n  }\n\n  /**\n   * 注册回调函数\n   * @param {*} callbackType 回调函数的类型\n   * @param {*} callback 回调函数\n   **/\n  _createClass(DataPipeModel, [{\n    key: \"registerCallback\",\n    value: function registerCallback(callbackType, callback) {\n      var _this = this;\n      if (this.holdCallback[callbackType]) {\n        this.holdCallback[callbackType].push(callback);\n      } else {\n        this.holdCallback[callbackType] = [callback];\n      }\n      return function () {\n        _this.holdCallback[callbackType].splice(_this.holdCallback[callbackType].length - 1, 1);\n      };\n    }\n\n    /**\n     * 主动将数据传输过去\n     * 调用函数和回调函数是一对多的关系\n     * @param {*} data 需要传输的数据\n     */\n  }, {\n    key: \"sendData\",\n    value: function sendData(data) {\n      var type = data.type;\n      var callbackArr = this.holdCallback[type];\n      callbackArr === null || callbackArr === void 0 || callbackArr.forEach(function (callback) {\n        try {\n          callback(data);\n        } catch (error) {\n          console.error(error, type);\n        }\n      });\n    }\n\n    /**\n     * 主动从其他对象获取数据\n     * 调用函数和回调函数是多对一的关系\n     * @param {*} type 获取数据的类型\n     **/\n  }, {\n    key: \"getData\",\n    value: function getData(type) {\n      var callback = this.holdCallback[type][0];\n      var result;\n      try {\n        result = callback();\n      } catch (error) {\n        console.error(error, type);\n      }\n      return result;\n    }\n  }, {\n    key: \"setSpreadData\",\n    value: function setSpreadData(key, value) {\n      this.holdCallback[key] = value;\n    }\n  }, {\n    key: \"getSpreadData\",\n    value: function getSpreadData(key) {\n      return this.holdCallback[key];\n    }\n  }, {\n    key: \"removeSpreadData\",\n    value: function removeSpreadData(key) {\n      // delete this.holdCallback[key]\n    }\n  }]);\n  return DataPipeModel;\n}();\nvar _default = exports[\"default\"] = DataPipeModel;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/dataPipeModel/DataPipeModel.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/dataPipeModel/index.js":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/dataPipeModel/index.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"DataPipeModel\", ({\n  enumerable: true,\n  get: function get() {\n    return _DataPipeModel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"registerResponseToolbarFuns\", ({\n  enumerable: true,\n  get: function get() {\n    return _responseToolbar[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"spreadExpose\", ({\n  enumerable: true,\n  get: function get() {\n    return _spreadExpose[\"default\"];\n  }\n}));\nvar _responseToolbar = _interopRequireDefault(__webpack_require__(/*! ./responseToolbar */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbar.js\"));\nvar _DataPipeModel = _interopRequireDefault(__webpack_require__(/*! ./DataPipeModel */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/DataPipeModel.js\"));\nvar _spreadExpose = _interopRequireDefault(__webpack_require__(/*! ./spreadExpose */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/spreadExpose.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/dataPipeModel/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbar.js":
/*!********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbar.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = registerResponseToolbarFuns;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar responseMethod = _interopRequireWildcard(__webpack_require__(/*! ./responseToolbarUtils */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\"));\nvar commandName = _interopRequireWildcard(__webpack_require__(/*! ../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\"));\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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 用来响应工具栏对spread表格的操作\n * by kechuang\n */\n/**\n * 注册工具栏的操作函数\n * @param {*} dataPipeModel\n * @param {*} params\n */\nfunction registerResponseToolbarFuns(dataPipeModel, params) {\n  var spread = params.spread,\n    model = params.model,\n    invokeControlMethodOnly = params.invokeControlMethodOnly;\n  var responseToolbarCallback = getAllSpreadCallbackFuns(spread, model, invokeControlMethodOnly, dataPipeModel);\n  var keys = Object.keys(responseToolbarCallback);\n  keys.forEach(function (methodName) {\n    dataPipeModel.registerCallback(methodName, responseToolbarCallback[methodName]);\n  });\n}\nfunction getAllSpreadCallbackFuns(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var commandManager = spread.commandManager();\n  return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({\n    FontChanged: function FontChanged(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setFont',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    UnderlineChanged: function UnderlineChanged(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setUnderline',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    ColorChanged: function ColorChanged(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setCellColor',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    SetBorder: function SetBorder(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setBorder',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    WordWrap: function WordWrap(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setWordWrap',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    ClearCell: function ClearCell(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'clearCells',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    LockCell: function LockCell(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'lockCells',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    MergeCell: function MergeCell(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'mergeCells',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    VAlignChange: function VAlignChange(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setVAlign',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    HAlignChanged: function HAlignChanged(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setHAlign',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    IndentChanged: function IndentChanged(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setTextIndent',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    SetValidator: function SetValidator(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'setValidator',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    CopyCellsTo: function CopyCellsTo(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'copyCellsTo',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    CellFormat: function CellFormat(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'cellFormat',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    FormatPainter: function FormatPainter(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'formatPainter',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    ReplaceAll: function ReplaceAll(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'replaceAll',\n        sheetName: data.sheet.name()\n      }, data));\n    },\n    CustomInsertRow: function CustomInsertRow(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'customInsertRow',\n        sheetName: data.sheet.name()\n      }, data));\n    },\n    CustomInsertCol: function CustomInsertCol(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'customInsertCol',\n        sheetName: data.sheet.name()\n      }, data));\n    },\n    CustomDeleteRow: function CustomDeleteRow(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'customDeleteRow',\n        sheetName: data.sheet.name()\n      }, data));\n    },\n    CustomDeleteCol: function CustomDeleteCol(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'customDeleteCol',\n        sheetName: data.sheet.name()\n      }, data));\n    },\n    CustomSetFormula: function CustomSetFormula(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'customSetFormula',\n        sheetName: data.sheet.name()\n      }, data));\n    },\n    Delete: function Delete(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'delete',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    ShowInvalidData: function ShowInvalidData(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'showInvalidData',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    AddRow: function AddRow(data) {\n      responseMethod.addRow(data)(spread, model, invokeControlMethodOnly);\n    },\n    DeleteRow: function DeleteRow(data) {\n      responseMethod.deleteRow(data)(spread, model, invokeControlMethodOnly);\n    },\n    FrozenSheet: function FrozenSheet(data) {\n      responseMethod.frozenSheet(data)(spread, dataPipeModel);\n    },\n    SwitchView: function SwitchView(data) {\n      responseMethod.switchView(data)(spread, model, invokeControlMethodOnly);\n    },\n    SortAndFilter: function SortAndFilter(data) {\n      responseMethod.sortAndFilter(data)(spread, dataPipeModel);\n    },\n    Setting: function Setting(data) {\n      responseMethod.setting(data)(spread);\n    },\n    CheckFormula: function CheckFormula(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'checkFormula',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    KDSwitchView: function KDSwitchView(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'KDSwitchView',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    KDUndoManger: function KDUndoManger(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'KDUndoManger',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    KDMoveRightCellToLeft: function KDMoveRightCellToLeft(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'KDMoveRightCellToLeft',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    },\n    KDMoveBottomCellToTop: function KDMoveBottomCellToTop(data) {\n      commandManager.execute(_objectSpread({\n        cmd: 'KDMoveBottomCellToTop',\n        sheetName: spread.getActiveSheet().name()\n      }, data));\n    }\n  }, commandName.KD_SET_ROW_OR_COL_VISIBLE, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: commandName.KD_SET_ROW_OR_COL_VISIBLE,\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_SET_ROWS_HEIGHT, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: [commandName.KD_SET_ROWS_HEIGHT],\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_SET_COLS_WIDTH, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: [commandName.KD_SET_COLS_WIDTH],\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_SET_CONDITIONAL_FORMATTING, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: commandName.KD_SET_CONDITIONAL_FORMATTING,\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_DELETE_CONDITIONAL_FORMATTING, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: commandName.KD_DELETE_CONDITIONAL_FORMATTING,\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_EDIT_CONDITIONAL_FORMATTING, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: commandName.KD_EDIT_CONDITIONAL_FORMATTING,\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_SET_FILTER, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: commandName.KD_SET_FILTER,\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  }), commandName.KD_SET_VIEW_ZOOM, function (data) {\n    commandManager.execute(_objectSpread({\n      cmd: commandName.KD_SET_VIEW_ZOOM,\n      sheetName: spread.getActiveSheet().name()\n    }, data));\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbar.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js":
/*!*************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js ***!
  \*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.clearCells = exports.addRow = void 0;\nexports.convertRange = convertRange;\nexports.switchView = exports.switchValueView = exports.switchFormulaView = exports.sortAndFilter = exports.setting = exports.setWordWrap = exports.setVAlign = exports.setUnderline = exports.setTextIndent = exports.setHAlign = exports.setFont = exports.setFilter = exports.setCellsFormat = exports.setCellColor = exports.setCellBorder = exports.mergeCells = exports.lockCells = exports.getActiveCellStyle = exports.frozenSheet = exports.deleteRow = void 0;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _reportUtils = __webpack_require__(/*! ../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _customCommand = __webpack_require__(/*! ../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 用来响应工具栏对spread表格的操作的具体实现\n * by kechuang\n */\n\n/** 工具方法 */\n\nvar getActiveCellStyle = exports.getActiveCellStyle = function getActiveCellStyle(sheet, cell) {\n  var cellStyle = sheet.getActualStyle(cell.r, cell.c);\n  var font = cellStyle ? cellStyle.font : sheet.getCell(cell.r, cell.c).font();\n  var div = document.createElement('div');\n  div.style.font = font;\n  var style = div.style;\n  var fontStyle = style.fontStyle;\n  var fontVariant = style.fontVariant;\n  var fontWeight = style.fontWeight;\n  var fontSize = style.fontSize;\n  var fontFam = style.fontFamily;\n  return [fontStyle, fontVariant, fontWeight, fontSize, fontFam];\n};\n\n/** 工具方法 */\n\n/** 响应工具栏的方法 */\n// let getToolbarInputValue = (data) => {\n//     let spread = getSpread();\n//     let value = data.value;\n//     let sheet = spread.getActiveSheet();\n//     if (value[0] === '=') {\n//         return;\n//     } else {\n//         let r = sheet.getActiveRowIndex();\n//         let c = sheet.getActiveColumnIndex();\n//         spread.suspendPaint();\n//         sheet.setValue(r, c, value);\n//         spread.resumePaint();\n//     }\n// }\n// registerCallbcakArr.push({ type: 'InputChanged', callback: getToolbarInputValue });\n\n// let getToolbarInputBlur = (data) => {\n//     let spread = getSpread();\n//     let cell = data.cell;\n//     if (cell === null) {\n//         cell = { r: 0, c: 0 }\n//     }\n//     let sheet = spread.getActiveSheet();\n//     spread.suspendPaint();\n//     if (data.value[0] === '=') {\n//         let formula = data.value.slice(1);\n//         sheet.setFormula(cell.r, cell.c, formula);\n//     } else {\n//         let value = data.value;\n//         let e = { type: 'valueChanged' };\n//         let args = { row: cell.r, col: cell.c, newValue: value };\n//         let sheetEvents = getSheetEvent();\n//         sheetEvents.valueChanged(e, args);\n//     }\n//     spread.resumePaint();\n// }\n// registerCallbcakArr.push({ type: 'InputBlur', callback: getToolbarInputBlur });\n\n// let getCellFontStyle = (data) => {\n//     let spread = getSpread();\n//     let sheet = spread.getActiveSheet();\n//     let selections = sheet.getSelections();\n//     spread.suspendPaint();\n//     selections.forEach((s) => {\n//         sheet.getRange(s.row, s.col, s.rowCount, s.colCount).font(data.font);\n//     });\n//     spread.resumePaint();\n// }\n// registerCallbcakArr.push({ type: 'FontChanged', callback: getCellFontStyle });\n\nvar setCellBorder = exports.setCellBorder = function setCellBorder(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    var borderColor = '#000000';\n    var border = new _spreadSheets[\"default\"].Spread.Sheets.LineBorder(borderColor, _spreadSheets[\"default\"].Spread.Sheets.LineStyle.thin);\n    spread.suspendPaint();\n    var doCellBorder = function doCellBorder(row, col, rowCount, colCount, border, borderOption) {\n      sheet.getRange(row, col, rowCount, colCount).setBorder(border, borderOption);\n    };\n    selections.forEach(function (s) {\n      var row = s.row,\n        col = s.col,\n        rowCount = s.rowCount,\n        colCount = s.colCount;\n      switch (data.borderType) {\n        case 1:\n          doCellBorder(row + rowCount - 1, col, 1, colCount, border, {\n            bottom: true\n          });\n          break;\n        case 2:\n          doCellBorder(row, col, 1, colCount, border, {\n            top: true\n          });\n          break;\n        case 3:\n          doCellBorder(row, col, rowCount, 1, border, {\n            left: true\n          });\n          break;\n        case 4:\n          doCellBorder(row, col + colCount - 1, rowCount, 1, border, {\n            right: true\n          });\n          break;\n        case 5:\n          doCellBorder(row, col, rowCount, colCount, null, {\n            all: true\n          });\n          break;\n        case 6:\n          doCellBorder(row, col, rowCount, colCount, border, {\n            all: true\n          });\n          break;\n        case 7:\n          doCellBorder(row, col, rowCount, colCount, border, {\n            left: true,\n            top: true,\n            right: true,\n            bottom: true\n          });\n          break;\n        case 8:\n          doCellBorder(row, col, rowCount, colCount, new _spreadSheets[\"default\"].Spread.Sheets.LineBorder(borderColor, _spreadSheets[\"default\"].Spread.Sheets.LineStyle.medium), {\n            left: true,\n            top: true,\n            right: true,\n            bottom: true\n          });\n          break;\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar setCellColor = exports.setCellColor = function setCellColor(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    selections.forEach(function (selection) {\n      var s = convertRange(sheet, selection);\n      var range = sheet.getRange(s.row, s.col, s.rowCount, s.colCount);\n      if (data.colorType === 'fore') {\n        range.foreColor(data.color);\n      } else if (data.colorType === 'back') {\n        range.backColor(data.color);\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar clearCells = exports.clearCells = function clearCells(data) {\n  return function (spread, model, invokeControlMethodOnly) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    selections.forEach(function (selection) {\n      var s = convertRange(sheet, selection);\n      var range = sheet.getRange(s.row, s.col, s.rowCount, s.colCount);\n      if (data.clearType === 1) {\n        range.clear(3); // 清除data和style\n      } else if (data.clearType === 2) {\n        // 清除样式不需要触发rangeChange请求\n        sheet.suppressRangeChanged = true;\n        range.clear(_spreadSheets[\"default\"].Spread.Sheets.StorageType.style);\n        sheet.suppressRangeChanged = false;\n      } else if (data.clearType === 3) {\n        range.clear(_spreadSheets[\"default\"].Spread.Sheets.StorageType.data);\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar lockCells = exports.lockCells = function lockCells(data) {\n  return function (spread, model, invokeControlMethodOnly, dataPipeModel) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    // sheet.options.isProtected = false;\n    selections.forEach(function (selection) {\n      var s = convertRange(sheet, selection);\n      var range = sheet.getRange(s.row, s.col, s.rowCount, s.colCount);\n      if (data.lockType === 1) {\n        range.locked(true);\n      } else if (data.lockType === 2) {\n        range.locked(false);\n      }\n    });\n    (0, _reportUtils.protectSheet)(sheet);\n    spread.resumePaint();\n    // 将工具栏锁定和解锁的单元格传到后端模型\n    // let isLocked = data.lockType === 1 ? true : false;\n    // invokeControlMethodOnly(model, 'lockCells', [{isLocked:isLocked,ranges:selections}]);\n  };\n};\nfunction convertRange(sheet, _ref) {\n  var row = _ref.row,\n    col = _ref.col,\n    rowCount = _ref.rowCount,\n    colCount = _ref.colCount;\n  return {\n    row: row === -1 ? 0 : row,\n    col: col === -1 ? 0 : col,\n    rowCount: rowCount === -1 ? sheet.getRowCount() : rowCount,\n    colCount: colCount === -1 ? sheet.getColumnCount() : colCount\n  };\n}\nvar frozenSheet = exports.frozenSheet = function frozenSheet(data) {\n  return function (spread, dataPipeModel) {\n    var sheet = spread.getActiveSheet();\n    var row = sheet.getActiveRowIndex();\n    var col = sheet.getActiveColumnIndex();\n    sheet.options.frozenlineColor = 'red';\n    spread.suspendPaint();\n    if (data.frozenType === 1) {\n      sheet.frozenRowCount(row);\n      sheet.frozenColumnCount(col);\n    } else if (data.frozenType === 2) {\n      sheet.frozenRowCount(0);\n      sheet.frozenColumnCount(0);\n    } else if (data.frozenType === 3) {\n      sheet.frozenRowCount(1);\n      sheet.frozenColumnCount(0);\n    } else if (data.frozenType === 4) {\n      sheet.frozenColumnCount(1);\n      sheet.frozenRowCount(0);\n    }\n    spread.resumePaint();\n    // 冻结行之后要对工具栏的相应选项进行置灰操作\n    dataPipeModel.sendData({\n      type: 'LockToolbarItem',\n      lockItems: [{\n        name: 'FrozenSheets_UnfrozenSheets',\n        isLock: sheet.frozenRowCount() === 0 && sheet.frozenColumnCount() === 0\n      }]\n    });\n  };\n};\nvar setFont = exports.setFont = function setFont(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      var r = s.row;\n      var c = s.col;\n      var rc = s.rowCount;\n      var cc = s.colCount;\n      for (var i = r; i < r + rc; i++) {\n        for (var j = c; j < c + cc; j++) {\n          if (data.fontType === 1) {\n            var fontArr = getActiveCellStyle(sheet, {\n              r: i,\n              c: j\n            });\n            fontArr[0] = data.changeData;\n            var fontStr = fontArr.join(' ');\n            sheet.getCell(i, j).font(fontStr);\n          } else if (data.fontType === 3) {\n            var _fontArr = getActiveCellStyle(sheet, {\n              r: i,\n              c: j\n            });\n            _fontArr[2] = data.changeData;\n            var _fontStr = _fontArr.join(' ');\n            sheet.getCell(i, j).font(_fontStr);\n          } else if (data.fontType === 4) {\n            var _fontArr2 = getActiveCellStyle(sheet, {\n              r: i,\n              c: j\n            });\n            _fontArr2[3] = data.changeData;\n            var _fontStr2 = _fontArr2.join(' ');\n            sheet.getCell(i, j).font(_fontStr2);\n          } else if (data.fontType === 5) {\n            var _fontArr3 = getActiveCellStyle(sheet, {\n              r: i,\n              c: j\n            });\n            _fontArr3[4] = data.changeData;\n            var _fontStr3 = _fontArr3.join(' ');\n            sheet.getCell(i, j).font(_fontStr3);\n          }\n        }\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar setUnderline = exports.setUnderline = function setUnderline(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    var textDecoration = _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.underline;\n    if (!data.underline) {\n      textDecoration = _spreadSheets[\"default\"].Spread.Sheets.TextDecorationType.none;\n    }\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      sheet.getRange(s.row, s.col, s.rowCount, s.colCount).textDecoration(textDecoration);\n    });\n    spread.resumePaint();\n  };\n};\nvar mergeCells = exports.mergeCells = function mergeCells(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    var spans = sheet.getSpans();\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      if (data.mergeType === 1) {\n        sheet.addSpan(s.row, s.col, s.rowCount, s.colCount);\n      } else if (data.mergeType === 2) {\n        spans.forEach(function (sp) {\n          if (s.row <= sp.row && sp.row <= s.row + s.rowCount && s.col <= sp.col && sp.col <= s.col + s.colCount) {\n            sheet.removeSpan(sp.row, sp.col);\n          }\n        });\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar addRow = exports.addRow = function addRow(data) {\n  return function (spread, model, invokeControlMethodOnly) {\n    // if (data.addType === 3) {\n    //   insertRowsCommand(spread, model, invokeControlMethodOnly)\n    // } else if (data.addType === 4) {\n    //   insertColsCommand(spread, model, invokeControlMethodOnly)\n    // } else\n    if (data.addType === 5) {\n      (0, _reportUtils.insertRows)({\n        spread: spread,\n        model: model,\n        invokeControlMethodOnly: invokeControlMethodOnly,\n        data: data\n      });\n    } else if (data.addType === 6) {\n      (0, _reportUtils.insertCols)({\n        spread: spread,\n        model: model,\n        invokeControlMethodOnly: invokeControlMethodOnly,\n        data: data\n      });\n    }\n  };\n};\nvar deleteRow = exports.deleteRow = function deleteRow(data) {\n  return function (spread, model, invokeControlMethodOnly) {\n    if (data.deleteType === 3) {\n      (0, _reportUtils.deleteRowsCommand)(spread, model, invokeControlMethodOnly);\n    } else if (data.deleteType === 4) {\n      (0, _reportUtils.deleteColsCommand)(spread, model, invokeControlMethodOnly);\n    }\n  };\n};\nvar setVAlign = exports.setVAlign = function setVAlign(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      if (data.vAlignType === 0) {\n        sheet.getRange(s.row, s.col, s.rowCount, s.colCount).vAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.left);\n      } else if (data.vAlignType === 1) {\n        sheet.getRange(s.row, s.col, s.rowCount, s.colCount).vAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.center);\n      } else if (data.vAlignType === 2) {\n        sheet.getRange(s.row, s.col, s.rowCount, s.colCount).vAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.right);\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar setHAlign = exports.setHAlign = function setHAlign(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      if (data.hAlignType === 0) {\n        sheet.getRange(s.row, s.col, s.rowCount, s.colCount).hAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.left);\n      } else if (data.hAlignType === 1) {\n        sheet.getRange(s.row, s.col, s.rowCount, s.colCount).hAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.center);\n      } else if (data.hAlignType === 2) {\n        sheet.getRange(s.row, s.col, s.rowCount, s.colCount).hAlign(_spreadSheets[\"default\"].Spread.Sheets.HorizontalAlign.right);\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar setTextIndent = exports.setTextIndent = function setTextIndent(data) {\n  return function (spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      var r = s.row;\n      var c = s.col;\n      var rc = r + s.rowCount;\n      var cc = c + s.colCount;\n      for (var i = r; i < rc; i++) {\n        for (var j = c; j < cc; j++) {\n          var cell = sheet.getCell(i, j);\n          var oldIndent = cell.textIndent() || 0;\n          if (data.indentType === 0) {\n            cell.textIndent(oldIndent + 1);\n          } else {\n            cell.textIndent(oldIndent - 1);\n          }\n        }\n      }\n    });\n    spread.resumePaint();\n  };\n};\nvar setCellsFormat = exports.setCellsFormat = function setCellsFormat(data) {\n  return function (spread) {\n    console.log('format:', data);\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    var formatStr = data.format;\n    spread.suspendPaint();\n    selections.forEach(function (s) {\n      sheet.getRange(s.row, s.col, s.rowCount, s.colCount).formatter(formatStr);\n    });\n    spread.resumePaint();\n  };\n};\nvar switchView = exports.switchView = function switchView(data) {\n  return function (spread, model, invokeControlMethodOnly) {\n    var sheet = spread.getActiveSheet();\n    var sheetName = sheet.name();\n    var showFormulaCells = data.showFormulaCells,\n      currentViewType = data.currentViewType,\n      baseType = data.baseType,\n      viewType = data.viewType;\n    if (viewType === currentViewType) return;\n    switch (viewType) {\n      case 'value':\n        {\n          // 选择值视图\n          switchValueView(sheetName, showFormulaCells, sheet);\n          break;\n        }\n      case 'formula':\n        {\n          // 选择公式视图\n          switchFormulaView(sheetName, showFormulaCells, sheet);\n          break;\n        }\n      default:\n        {\n          if (baseType === currentViewType) {\n            invokeControlMethodOnly(model, 'viewOptionClick', data.viewType);\n          } else {\n            if (baseType === 'value') {\n              switchValueView(sheetName, showFormulaCells, sheet);\n            } else if (baseType === 'formula') {\n              switchFormulaView(sheetName, showFormulaCells, sheet);\n            }\n            invokeControlMethodOnly(model, 'viewOptionClick', viewType);\n          }\n          break;\n        }\n    }\n  };\n};\nvar setWordWrap = exports.setWordWrap = function setWordWrap(data) {\n  return function (spread) {\n    var activeSheet = spread.getActiveSheet();\n    var selections = activeSheet.getSelections();\n    var sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport;\n    spread.suspendPaint();\n    selections.forEach(function (selection) {\n      var col = selection.col,\n        colCount = selection.colCount,\n        row = selection.row,\n        rowCount = selection.rowCount;\n      if (col === -1) col = 0;\n      if (row === -1) row = 0;\n      var cellStyle = activeSheet.getStyle(row, col);\n      var isWordWrap = cellStyle && cellStyle.wordWrap;\n      activeSheet.getRange(row, col, rowCount, colCount, sheetArea).wordWrap(!isWordWrap);\n      var cursor = row;\n      while (cursor < rowCount + row) {\n        activeSheet.autoFitRow(cursor);\n        cursor++;\n      }\n    });\n    spread.resumePaint();\n  };\n};\n\n/** 响应工具栏的方法 */\n\n// 设置值视图\nvar switchValueView = exports.switchValueView = function switchValueView(sheetName, showFormulaCells, sheet) {\n  var formulaCells = showFormulaCells[sheetName];\n  if (formulaCells.length <= 0) return;\n  sheet.suspendPaint();\n  formulaCells.forEach(function (element) {\n    var row = element.row,\n      col = element.col,\n      formula = element.formula;\n    sheet.setFormula(row, col, '=' + formula);\n  });\n  formulaCells = [];\n  sheet.resumePaint();\n};\n\n// 设置公式视图\nvar switchFormulaView = exports.switchFormulaView = function switchFormulaView(sheetName, showFormulaCells, sheet) {\n  if (showFormulaCells[sheetName] === undefined) showFormulaCells[sheetName] = [];\n  var rowCount = sheet.getRowCount();\n  var columnCount = sheet.getColumnCount();\n  sheet.suspendPaint();\n  for (var r = 0; r < rowCount; r++) {\n    for (var c = 0; c < columnCount; c++) {\n      var formula = sheet.getFormula(r, c);\n      if (formula) {\n        sheet.setFormula(r, c, '');\n        sheet.setText(r, c, '=' + formula);\n        showFormulaCells[sheetName].push({\n          row: r,\n          col: c,\n          formula: formula\n        });\n      }\n    }\n  }\n  sheet.resumePaint();\n};\n\n// 排序和过滤\nvar sortAndFilter = exports.sortAndFilter = function sortAndFilter(data) {\n  return function (spread, dataPipeModel) {\n    var sheet = spread.getActiveSheet();\n    switch (data.eventType) {\n      case 'sortAZ':\n        {\n          sortRange(sheet, true);\n          break;\n        }\n      case 'sortZA':\n        {\n          sortRange(sheet, false);\n          break;\n        }\n      case 'customSort':\n        {\n          break;\n        }\n      case 'setFilter':\n        {\n          setFilter(sheet, dataPipeModel);\n          break;\n        }\n      case 'clearFilter':\n        {\n          if (sheet.rowFilter() && sheet.rowFilter().isFiltered()) {\n            sheet.rowFilter().unfilter();\n          }\n          break;\n        }\n      case 'reapplyFilter':\n        {\n          sheet.rowFilter().filter();\n          break;\n        }\n    }\n  };\n};\n\n/**\n * 排序\n * @param {*} sheet\n * @param {*} ascending true是升序，false是降序\n */\nvar sortRange = function sortRange(sheet, ascending) {\n  var selection = sheet.getSelections()[0];\n  var row = selection.row,\n    col = selection.col,\n    rowCount = selection.rowCount,\n    colCount = selection.colCount;\n  sheet.sortRange(row, col, rowCount, colCount, true, [{\n    index: col === -1 ? 0 : col,\n    ascending: ascending\n  }]);\n};\nvar setFilter = exports.setFilter = function setFilter(sheet, dataPipeModel) {\n  dataPipeModel.sendData({\n    type: _customCommand.KD_SET_FILTER\n  });\n};\nvar setting = exports.setting = function setting(data) {\n  return function (spread) {\n    var sheet = spread.getSheet(data.si) || spread.getActiveSheet();\n    var tagInfo = sheet.tag() || {};\n    var settingInfo = tagInfo.settingInfo || {};\n    switch (data.eventType) {\n      case 1:\n        sheet.options.showLockIcon = true;\n        settingInfo.showLock = true;\n        sheet.repaint();\n        break;\n      case 2:\n        sheet.options.showLockIcon = false;\n        settingInfo.showLock = false;\n        sheet.repaint();\n        break;\n      default:\n        break;\n    }\n    tagInfo.settingInfo = settingInfo;\n    sheet.tag(tagInfo);\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/dataPipeModel/spreadExpose.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/dataPipeModel/spreadExpose.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = spreadExpose;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/**\n * spread通过dataPipeModel暴露出去的方法\n * by kechuang\n */\n\nfunction spreadExpose(context) {\n  var dataPipeModel = context.dataPipeModel,\n    spread = context.spread,\n    sheetEventHandle = context.sheetEventHandle,\n    props = context.props;\n  var registerArray = [{\n    key: 'PostSheet',\n    callback: function callback() {\n      return spread.getActiveSheet();\n    }\n  }, {\n    key: 'PostSpread',\n    callback: function callback() {\n      return spread;\n    }\n  }, {\n    key: 'PostSheetEvent',\n    callback: function callback() {\n      return sheetEventHandle;\n    }\n  }, {\n    key: 'PostContext',\n    callback: function callback() {\n      return context;\n    }\n  }, {\n    key: 'PostProps',\n    callback: function callback() {\n      return props;\n    }\n  }];\n  registerArray.forEach(function (item) {\n    dataPipeModel.registerCallback(item.key, item.callback);\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/dataPipeModel/spreadExpose.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/directives/EventHolder.js":
/*!*************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/directives/EventHolder.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * 指令暂存队列\n * 后端指令发过来的时候，spread有可能还没有初始化完成\n * 需要先放在队列中暂存，初始化完成之后再按顺序执行\n * by kechuang\n */\n\nvar _running = Symbol('_running'); // 是否执行指令的标志\nvar EventHolder = exports[\"default\"] = /*#__PURE__*/function () {\n  function EventHolder(pageId, key, eventMappingList) {\n    _classCallCheck(this, EventHolder);\n    this.pageId = pageId;\n    this.key = key;\n    this[_running] = false;\n    this.eventMappingList = eventMappingList; // 指令映射列表\n    this.eventQueue = [];\n  }\n  _createClass(EventHolder, [{\n    key: \"execute\",\n    value: function execute(context) {\n      this[_running] = true;\n      var spread = context.spread;\n      spread.suspendPaint();\n      while (this.eventQueue.length) {\n        try {\n          var event = this.shift();\n          if (event) {\n            var methodName = event.methodName,\n              data = event.data;\n            var eventFun = this.eventMappingList[methodName];\n            eventFun && eventFun(data, context);\n          }\n        } catch (err) {\n          console.warn(err);\n        }\n      }\n      spread.resumePaint();\n      this[_running] = false;\n    }\n  }, {\n    key: \"push\",\n    value: function push(event) {\n      this.eventQueue.push({\n        methodName: event.methodName,\n        data: event.data\n      });\n    }\n  }, {\n    key: \"shift\",\n    value: function shift() {\n      return this.eventQueue.shift();\n    }\n  }, {\n    key: \"beginRunning\",\n    value: function beginRunning() {\n      var len = this.eventQueue.length;\n      if (!this[_running] && len > 0) {\n        return true;\n      } else {\n        return false;\n      }\n    }\n  }]);\n  return EventHolder;\n}();\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/directives/EventHolder.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/directives/actionUtils.js":
/*!*************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/directives/actionUtils.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.analysisBorder = analysisBorder;\nexports.analysisStyle = analysisStyle;\nexports.createArea = exports.convertData2SpraedJSon = void 0;\nexports.getBorderColorAndStyle = getBorderColorAndStyle;\nexports.getCellType = getCellType;\nexports.isNumber = void 0;\nexports.lockOrUnlockCell = lockOrUnlockCell;\nexports.mergeStyle = mergeStyle;\nexports.moveTo = void 0;\nexports.setSheetPrintInfo = setSheetPrintInfo;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-names.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-names.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.set.js */ \"../../node_modules/core-js/modules/es.set.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _serverproperties = __webpack_require__(/*! ../../../../../constant/serverproperties */ \"./src/constant/serverproperties.js\");\nvar printConstant = _interopRequireWildcard(__webpack_require__(/*! ../constant/printInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/printInfo.js\"));\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 指令的工具方法\n */\n\nfunction getBorderColorAndStyle(arr) {\n  var obj = [];\n  var length = arr.length;\n  switch (length) {\n    case 1:\n      obj[0] = obj[1] = obj[2] = obj[3] = arr[0];\n      break;\n    case 2:\n      obj[0] = obj[2] = arr[0];\n      obj[1] = obj[3] = arr[1];\n      break;\n    case 3:\n      obj[0] = arr[0];\n      obj[2] = arr[2];\n      obj[1] = obj[3] = arr[1];\n      break;\n    case 4:\n      for (var i = 0; i < 4; i++) {\n        obj[i] = arr[i];\n      }\n      break;\n    default:\n      break;\n  }\n  return obj;\n}\nfunction analysisBorder(borderObj) {\n  var borderColor = borderObj[_serverproperties.BORDER_LINE_COLOR] ? getBorderColorAndStyle(borderObj[_serverproperties.BORDER_LINE_COLOR]) : [];\n  var borderStyle = borderObj[_serverproperties.BORDER_LINE_STYLE] ? getBorderColorAndStyle(borderObj[_serverproperties.BORDER_LINE_STYLE]) : [];\n  var border = {};\n  var ns = _spreadSheets[\"default\"].Spread.Sheets;\n  border.borderTop = new ns.LineBorder(borderColor[0], ns.LineStyle[borderStyle[0]]);\n  border.borderRight = new ns.LineBorder(borderColor[1], ns.LineStyle[borderStyle[1]]);\n  border.borderBottom = new ns.LineBorder(borderColor[2], ns.LineStyle[borderStyle[2]]);\n  border.borderLeft = new ns.LineBorder(borderColor[3], ns.LineStyle[borderStyle[3]]);\n  return border;\n}\n\n// 解析后台传回来的样式\nfunction analysisStyle(styleObj) {\n  var style = new _spreadSheets[\"default\"].Spread.Sheets.Style();\n  if (styleObj === undefined) return style;\n  var newStyle = {};\n  styleObj[_serverproperties.BACK_COLOR] !== undefined && (newStyle.backColor = styleObj[_serverproperties.BACK_COLOR]);\n  styleObj[_serverproperties.FORE_COLOR] !== undefined && (newStyle.foreColor = styleObj[_serverproperties.FORE_COLOR]);\n  styleObj[_serverproperties.FONT] !== undefined && (newStyle.font = styleObj[_serverproperties.FONT]);\n  styleObj[_serverproperties.COLOR] !== undefined && (newStyle.color = styleObj[_serverproperties.COLOR]);\n  styleObj[_serverproperties.WIDTH] !== undefined && (newStyle.width = styleObj[_serverproperties.WIDTH]);\n  styleObj[_serverproperties.FLEX_GROW] !== undefined && (newStyle.flexGrow = styleObj[_serverproperties.FLEX_GROW]);\n  styleObj[_serverproperties.V_ALIGN] !== undefined && (newStyle.vAlign = styleObj[_serverproperties.V_ALIGN]);\n  styleObj[_serverproperties.H_ALIGN] !== undefined && (newStyle.hAlign = styleObj[_serverproperties.H_ALIGN]);\n  styleObj[_serverproperties.FORMATTER] !== undefined && (newStyle.formatter = styleObj[_serverproperties.FORMATTER]);\n  styleObj[_serverproperties.LOCKED] !== undefined && (newStyle.locked = styleObj[_serverproperties.LOCKED]);\n  styleObj[_serverproperties.SHRINK_TO_FIT] !== undefined && (newStyle.shrinkToFit = styleObj[_serverproperties.SHRINK_TO_FIT]);\n  styleObj[_serverproperties.TEXT_INDENT] !== undefined && (newStyle.textIndent = styleObj[_serverproperties.TEXT_INDENT]);\n  styleObj[_serverproperties.THEME_FONT] !== undefined && (newStyle.themeFont = styleObj[_serverproperties.THEME_FONT]);\n  styleObj[_serverproperties.WORD_WRAP] !== undefined && (newStyle.wordWrap = styleObj[_serverproperties.WORD_WRAP]);\n  styleObj[_serverproperties.TEXT_DECORATION] !== undefined && (newStyle.textDecoration = styleObj[_serverproperties.TEXT_DECORATION]);\n  styleObj[_serverproperties.SHOW_ELLIPSIS] !== undefined && (newStyle.showEllipsis = styleObj[_serverproperties.SHOW_ELLIPSIS]);\n  var border = {};\n  if (styleObj[_serverproperties.BORDER_LINE]) {\n    border = analysisBorder(styleObj[_serverproperties.BORDER_LINE]);\n  }\n  style = Object.assign(style, newStyle, border);\n  return style;\n}\n\n// merge新样式和老样式\nfunction mergeStyle(oldStyle, newStyle) {\n  if (oldStyle === null) {\n    return newStyle;\n  }\n  var newProps = Object.getOwnPropertyNames(newStyle);\n  var oldProps = Object.getOwnPropertyNames(oldStyle);\n  var props = new Set(newProps.concat(oldProps));\n  props.forEach(function (p) {\n    if (oldStyle[p] && !newStyle[p]) {\n      newStyle[p] = oldStyle[p];\n    }\n  });\n  return newStyle;\n}\nfunction lockOrUnlockCell(sheet, status) {\n  var rowCount = sheet.getRowCount();\n  var colCount = sheet.getColumnCount();\n  sheet.suspendPaint();\n  sheet.getRange(0, 0, rowCount, colCount).locked(status);\n  sheet.resumePaint();\n}\n\n// 重置单元格的锁定属性，恢复成默认\n// let defaultCellLocked = (sheet) => {\n//   let maxRowCount = sheet.getRowCount()\n//   let maxColCount = sheet.getColumnCount()\n//   for (let r = 0; r < maxRowCount; r++) {\n//     for (let c = 0; c < maxColCount; c++) {\n//       let cellStyle = sheet.getStyle(r, c)\n//       if (cellStyle && (cellStyle.locked !== undefined)) {\n//         sheet.getCell(r, c).locked(undefined)\n//       }\n//     }\n//   }\n// }\n\n// //删除行样式和列样式，样式优先级：单元格 > 行 > 列 > defaultStyle\n// let deleteRowAndColStyle = (sheet) => {\n//   let maxRowCount = sheet.getRowCount()\n//   let maxColCount = sheet.getColumnCount()\n//   for (let i = 0; i < maxRowCount; i++) {\n//     let rowStyle = sheet.getStyle(i, -1)\n//     if (rowStyle && (rowStyle.locked !== undefined)) {\n//       sheet.getRange(i, -1, 1, 1).locked(undefined)\n//     }\n//   }\n//   for (let i = 0; i < maxColCount; i++) {\n//     let colStyle = sheet.getStyle(-1, i)\n//     if (colStyle && (colStyle.locked !== undefined)) {\n//       sheet.getRange(-1, i, 1, 1).locked(undefined)\n//     }\n//   }\n// }\n\nfunction setSheetPrintInfo(printInfo, spread) {\n  printInfo.forEach(function (item) {\n    var _item$index = item.index,\n      index = _item$index === void 0 ? [] : _item$index,\n      _item$info = item.info,\n      info = _item$info === void 0 ? {} : _item$info;\n    index.forEach(function (i) {\n      var sheet = spread.getSheet(i);\n      if (sheet) {\n        var _printInfo = sheet.printInfo();\n        Object.keys(info).forEach(function (key) {\n          _printInfo[printConstant[key]](info[key]);\n        });\n      }\n    });\n  });\n}\nfunction getCellType(typeName) {\n  var cellTypes = ['Base', 'Text', 'ColumnHeader', 'RowHeader', 'Corner', 'CheckBox', 'Button', 'ComboBox', 'HyperLink'];\n  if (typeName in cellTypes) {\n    var cellType = cellTypes[typeName];\n    return _spreadSheets[\"default\"].Spread.Sheets.CellTypes[cellType];\n  }\n}\nvar moveTo = exports.moveTo = function moveTo(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, option) {\n  return function (sheet) {\n    sheet.moveTo(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, option);\n    if (toRow > fromRow || toColumn > fromColumn) {\n      for (var i = rowCount + fromRow - 1; i >= fromRow; i--) {\n        for (var j = fromColumn + columnCount - 1; j >= fromColumn; j--) {\n          var style = sheet.getActualStyle(i, j);\n          if (style.locked) {\n            sheet.getCell(i, j).locked(false);\n            sheet.getCell(toRow + i - fromRow, toColumn + j - fromColumn).locked(true);\n          } else {\n            sheet.getCell(toRow + i - fromRow, toColumn + j - fromColumn).locked(false);\n          }\n        }\n      }\n    } else {\n      for (var _i = fromRow; _i < fromRow + rowCount; _i++) {\n        for (var _j = fromColumn; _j < fromColumn + columnCount; _j++) {\n          var _style = sheet.getActualStyle(_i, _j);\n          if (_style.locked) {\n            sheet.getCell(_i, _j).locked(false);\n            sheet.getCell(toRow + _i - fromRow, toColumn + _j - fromColumn).locked(true);\n          } else {\n            sheet.getCell(toRow + _i - fromRow, toColumn + _j - fromColumn).locked(false);\n          }\n        }\n      }\n    }\n  };\n};\nvar convertData2SpraedJSon = exports.convertData2SpraedJSon = function convertData2SpraedJSon(originJson) {\n  // 根据后端返回的json，构造符合spreadJS渲染格式的json\n  var spread = originJson.spread,\n    styles = originJson.styles;\n  var sheets = spread.sheets;\n  var keys = Object.keys(sheets);\n  for (var i = 0; i < keys.length; i++) {\n    var dataTable = sheets[keys[i]].data.dataTable;\n    for (var r in dataTable) {\n      for (var c in dataTable[r]) {\n        var styleIndex = dataTable[r][c].s;\n        var value = dataTable[r][c].v;\n        if (styleIndex) {\n          delete dataTable[r][c].s;\n          dataTable[r][c].style = styles[styleIndex];\n        }\n        if (value) {\n          delete dataTable[r][c].v;\n          dataTable[r][c].value = value;\n        }\n      }\n    }\n    sheets[keys[i]].data.dataTable = dataTable;\n  }\n  spread.sheets = sheets;\n  return spread;\n};\nvar isNumber = exports.isNumber = function isNumber(value) {\n  var reg = /^-?\\d*\\.?\\d*$/;\n  return value != null && reg.test(value.toString());\n};\nvar createArea = exports.createArea = function createArea(area) {\n  var sheetArea;\n  switch (area) {\n    case 'corner':\n      sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.corner;\n      break;\n    case 'colHeader':\n      sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.colHeader;\n      break;\n    case 'rowHeader':\n      sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.rowHeader;\n      break;\n    default:\n      sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport;\n      break;\n  }\n  return sheetArea;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/directives/actionUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.addContextMenuItems = addContextMenuItems;\nexports.addSheets = addSheets;\nexports.addToolbarItems = addToolbarItems;\nexports.appendCols = appendCols;\nexports.appendRows = appendRows;\nexports.autoFitColumns = autoFitColumns;\nexports.autoFitRows = autoFitRows;\nexports.batchExportExcelFiles = batchExportExcelFiles;\nexports.calcOnDemand = calcOnDemand;\nexports.callbackAction = callbackAction;\nexports.clearCellsStyle = clearCellsStyle;\nexports.clearDisplayContent = clearDisplayContent;\nexports.closeToolbar = closeToolbar;\nexports.controlToolbarItems = controlToolbarItems;\nexports.copyCellSize = copyCellSize;\nexports.copyCellsTo = copyCellsTo;\nexports.copyStylesTo = copyStylesTo;\nexports.copyValuesTo = copyValuesTo;\nexports.deleteCol = deleteCol;\nexports.deleteContextMenuItems = deleteContextMenuItems;\nexports.deleteRow = deleteRow;\nexports.deleteSheets = deleteSheets;\nexports.excuteToolbarActions = excuteToolbarActions;\nexports.expandColumnOutlines = expandColumnOutlines;\nexports.expandRowOutlines = expandRowOutlines;\nexports.exportExcelFile = exportExcelFile;\nexports.fieldDeleteCol = fieldDeleteCol;\nexports.fieldDeleteRow = fieldDeleteRow;\nexports.fieldInsertCol = fieldInsertCol;\nexports.fieldInsertRow = fieldInsertRow;\nexports.frozenSheet = frozenSheet;\nexports.getCellValid = getCellValid;\nexports.getColumnsWidth = getColumnsWidth;\nexports.getFormula = getFormula;\nexports.getLockedCells = getLockedCells;\nexports.getOutlineColumnNode = getOutlineColumnNode;\nexports.getRangeStyles = getRangeStyles;\nexports.getRangeValues = getRangeValues;\nexports.getRowsHeight = getRowsHeight;\nexports.getSpreadJson = getSpreadJson;\nexports.hideColumn = hideColumn;\nexports.hideContextMenuItems = hideContextMenuItems;\nexports.hideRow = hideRow;\nexports.hideZero = hideZero;\nexports.insertCol = insertCol;\nexports.insertRow = insertRow;\nexports.lockCell = lockCell;\nexports.lockSheet = lockSheet;\nexports.lockToolbarItems = lockToolbarItems;\nexports.notPastePicture = notPastePicture;\nexports.print = print;\nexports.registerCustomFormula = registerCustomFormula;\nexports.resetCell = resetCell;\nexports.resetContextMenu = resetContextMenu;\nexports.setActiveSheet = setActiveSheet;\nexports.setAllCustomFormulaCell = setAllCustomFormulaCell;\nexports.setBtnCell = setBtnCell;\nexports.setCellStyle = setCellStyle;\nexports.setCellTag = setCellTag;\nexports.setCheckboxCell = setCheckboxCell;\nexports.setColumnOutlines = setColumnOutlines;\nexports.setColumnsVisible = setColumnsVisible;\nexports.setColumnsWidth = setColumnsWidth;\nexports.setComboCell = setComboCell;\nexports.setComment = setComment;\nexports.setConditionalFormatting = setConditionalFormatting;\nexports.setCornerMark = setCornerMark;\nexports.setCustomBtnCell = setCustomBtnCell;\nexports.setCustomFormulaCell = setCustomFormulaCell;\nexports.setCustomSheetMenu = setCustomSheetMenu;\nexports.setDefaultStyle = setDefaultStyle;\nexports.setDisplayContent = setDisplayContent;\nexports.setExpandBtnVisible = setExpandBtnVisible;\nexports.setFListCell = setFListCell;\nexports.setFormula = setFormula;\nexports.setGCParams = setGCParams;\nexports.setGroupColNode = setGroupColNode;\nexports.setHyperLinkCell = setHyperLinkCell;\nexports.setLookupData = setLookupData;\nexports.setOutlineColumn = setOutlineColumn;\nexports.setRowFilter = setRowFilter;\nexports.setRowOutlines = setRowOutlines;\nexports.setRowsHeight = setRowsHeight;\nexports.setRowsVisible = setRowsVisible;\nexports.setSelections = setSelections;\nexports.setSheetDefaultStyle = setSheetDefaultStyle;\nexports.setSheetDefaults = setSheetDefaults;\nexports.setSheetName = setSheetName;\nexports.setSheetsVisible = setSheetsVisible;\nexports.setShortcutKey = setShortcutKey;\nexports.setSpan = setSpan;\nexports.setSpreadJson = setSpreadJson;\nexports.setSpreadParams = setSpreadParams;\nexports.setStatusBarVisible = setStatusBarVisible;\nexports.setTimeSeleCell = setTimeSeleCell;\nexports.setToolbarCustomExpend = setToolbarCustomExpend;\nexports.setToolbarCustomInputValue = setToolbarCustomInputValue;\nexports.setToolbarGroups = setToolbarGroups;\nexports.setValidator = setValidator;\nexports.setViewOptions = setViewOptions;\nexports.setVirtualMode = setVirtualMode;\nexports.setWorkbookOptions = setWorkbookOptions;\nexports.setWorksheetOptions = setWorksheetOptions;\nexports.setZoom = setZoom;\nexports.showLockCell = showLockCell;\nexports.stopAsyncCalculate = stopAsyncCalculate;\nexports.stopAsyncCalculatyList = stopAsyncCalculatyList;\nexports.stopCalculate = stopCalculate;\nexports.styleChangeListner = styleChangeListner;\nexports.syncSpreads = syncSpreads;\nexports.unhideColumn = unhideColumn;\nexports.unhideRow = unhideRow;\nexports.unlockCell = unlockCell;\nexports.unlockSheet = unlockSheet;\nexports.updataValue = updataValue;\nexports.updateCustomFormulaValue = updateCustomFormulaValue;\nexports.zoomChangeLicense = zoomChangeLicense;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar M = _interopRequireWildcard(__webpack_require__(/*! ./directiveUtils.js */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\"));\nvar _utils = __webpack_require__(/*! ../utils */ \"./src/component/web/DataGrid/ReportGrid/utils/index.js\");\nvar _reportUtils = __webpack_require__(/*! ../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _actionUtils = __webpack_require__(/*! ./actionUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/actionUtils.js\");\nvar _console = _interopRequireDefault(__webpack_require__(/*! ../../../../../api/console */ \"./src/api/console.js\"));\nvar _increaseIndicator = _interopRequireDefault(__webpack_require__(/*! ../images/increaseIndicator.png */ \"./src/component/web/DataGrid/ReportGrid/images/increaseIndicator.png\"));\nvar _decreaseIndicator = _interopRequireDefault(__webpack_require__(/*! ../images/decreaseIndicator.png */ \"./src/component/web/DataGrid/ReportGrid/images/decreaseIndicator.png\"));\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nvar _toolbarTopUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\");\nvar _defaultMenuList = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/contextMenu/defaultMenuList.js */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/defaultMenuList.js\");\nvar commandName = _interopRequireWildcard(__webpack_require__(/*! ../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\"));\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); } /**\n * spread表格和后端对接的指令\n * by 柯创\n */\n// import timeSlicing from '@/util/timeSlicing.js'\n\n// const MAX_RUN_TIME = 180\n// const timeSlicingConfig = { timeCallback: next => next(), maxRunTime: MAX_RUN_TIME }\n/**\n * 回调函数指令，后端告诉前端它还有后续的动作\n * @param {object} data {callback:, invokemethod:}\n * @param {object} args ReportGrid\n */\nfunction callbackAction(data, args) {\n  var callback = data.callback,\n    invokemethod = data.invokemethod;\n  var _args$props = args.props,\n    model = _args$props.model,\n    dispatch = _args$props.dispatch;\n  dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n    invokemethod: invokemethod\n  }]));\n}\n\n/**\n * 加载spreadJS的json文件\n * @param {json} data spreadJS压缩过后的json串||{ ssjson:\"\", config:{ doNotRecalculateAfterLoad: true }}\n * @param {object} args ReportGrid\n */\nfunction setSpreadJson(data, args) {\n  var initSpreadFromJSon = args.initSpreadFromJSon,\n    spread = args.spread,\n    props = args.props;\n  // const { model, dispatch } = props\n  if (data && data.ssjson) {\n    var ssjson = data.ssjson,\n      callback = data.callback,\n      invokemethod = data.invokemethod,\n      showProgress = data.showProgress;\n    var json = M.convertSSJson(spread, ssjson);\n    // const jsonOptions = { incrementalLoading: {} }\n    // if (showProgress) {\n    //   jsonOptions.incrementalLoading.loading = (progress) => {\n    //     args.dataPipeModel.sendData({ type: 'loadSpreadJson', progress: progress })\n    //   }\n    // }\n    // if (callback && invokemethod) {\n    //   jsonOptions.incrementalLoading.loaded = () => {\n    //     dispatch(invokeControlMethodOnly(model, callback, [{ invokemethod }]))\n    //   }\n    // }\n    if (!json) return;\n    initSpreadFromJSon(args.spread, json, data.config);\n  } else {\n    var _json = M.convertSSJson(spread, data);\n    initSpreadFromJSon(args.spread, _json);\n  }\n}\n\n// 开启公式局部计算，代码在index里执行，这里是为了防止报错\nfunction calcOnDemand(data, args) {}\n\n/**\n * 在指定工作表尾部追加count行\n * @param {object} data {count:, si:}\n * @param {object} args ReportGrid\n */\nfunction appendRows(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  var rowCount = sheet.getRowCount();\n  M.appRows(rowCount, data.count)(sheet);\n  (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n/**\n * 在指定工作表尾部追加count列\n * @param {object} data {count:, si:}\n * @param {object} args ReportGrid\n */\nfunction appendCols(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  var colCount = sheet.getColumnCount();\n  M.appCols(colCount, data.count)(sheet);\n  (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n/**\n * 删除指定工作表的列\n * @param {object} data {data:[], si:,isUndo:false} || {data: [{ index:, count: }], si:,isUndo:false}\n * @param {object} args ReportGrid\n */\nfunction deleteRow(data, args) {\n  var dataArgs = data.data,\n    si = data.si,\n    isUndo = data.isUndo;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo && _typeof(dataArgs[1]) !== 'object') {\n    args.dataPipeModel.sendData({\n      type: 'CustomDeleteRow',\n      data: dataArgs,\n      sheet: sheet\n    });\n  } else {\n    M.deleteRows(dataArgs)(sheet);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n  }\n}\n/**\n * 在指定工作表的指定索引处添加行\n * @param {object} data {data:[{ index:, count: }], dir: 'bottom', copyStyle: false, si:,isUndo:false} || {data:[1, 2], dir: 'bottom', copyStyle: false, si:,isUndo:false}\n * @param {object} args ReportGrid\n */\nfunction insertRow(data, args) {\n  var dataArgs = data.data,\n    copyStyle = data.copyStyle,\n    dir = data.dir,\n    si = data.si,\n    isUndo = data.isUndo,\n    copySize = data.copySize,\n    copySpans = data.copySpans;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo && _typeof(dataArgs[1]) !== 'object') {\n    args.dataPipeModel.sendData({\n      type: 'CustomInsertRow',\n      data: dataArgs,\n      copyStyle: copyStyle,\n      dir: dir,\n      sheet: sheet,\n      copySize: copySize\n    });\n  } else {\n    M.addRows(dataArgs, copyStyle, dir, copySize, copySpans)(sheet);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n  }\n}\n/**\n * 在指定工作表的指定索引处添加一列\n * @param {object} data {data:[{ index:, count: }], dir: 'after', copyStyle: false, si:,isUndo:false} || {data:[1, 2], copyStyle: false, si:,isUndo:false}\n * @param {object} args ReportGrid\n */\nfunction insertCol(data, args) {\n  var dataArgs = data.data,\n    copyStyle = data.copyStyle,\n    dir = data.dir,\n    si = data.si,\n    isUndo = data.isUndo,\n    copySize = data.copySize;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo && _typeof(dataArgs[1]) !== 'object') {\n    args.dataPipeModel.sendData({\n      type: 'CustomInsertCol',\n      data: dataArgs,\n      copyStyle: copyStyle,\n      dir: dir,\n      sheet: sheet,\n      copySize: copySize\n    });\n  } else {\n    M.addCols(dataArgs, copyStyle, dir, copySize)(sheet);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n  }\n}\n/**\n * 删除指定工作表的行\n * @param {object} data {data:[], si} || {data: [{ index:, count: }], si:}\n * @param {object} args ReportGrid\n */\nfunction deleteCol(data, args) {\n  var dataArgs = data.data,\n    si = data.si,\n    isUndo = data.isUndo;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo && _typeof(dataArgs[1]) !== 'object') {\n    args.dataPipeModel.sendData({\n      type: 'CustomDeleteCol',\n      data: dataArgs,\n      sheet: sheet\n    });\n  } else {\n    M.deleteCols(dataArgs)(sheet);\n    (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n  }\n}\n\n/**\n * 设置列宽（以像素为单位）\n * @param {object} data {index:[], num:, si:,area:''}\n * @param {object} args ReportGrid\n */\nfunction setColumnsWidth(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.setColumnsWidth(data.index, data.num, data.area)(sheet);\n}\n/**\n * 设置行高（以像素为单位）\n * @param {object} data {index:[], num:, si:,area:''}\n * @param {object} args ReportGrid\n */\nfunction setRowsHeight(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.setRowsHeight(data.index, data.num, data.area)(sheet);\n}\n\n/**\n * 获取行高\n * @param {object} data {index:[2,3], callback: 'invokeAction', invokemethod: 'invokemethod', si}\n * @param {object} args ReportGrid\n */\nfunction getRowsHeight(data, args) {\n  var index = data.index,\n    callback = data.callback,\n    invokemethod = data.invokemethod,\n    si = data.si;\n  var props = args.props,\n    spread = args.spread;\n  var model = props.model,\n    dispatch = props.dispatch;\n  var sheet = M.getSheet(spread, si);\n  var infos = [];\n  index.forEach(function (item) {\n    var height = sheet.getRowHeight(item);\n    infos.push({\n      r: item,\n      h: height\n    });\n  });\n  dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n    infos: infos,\n    invokemethod: invokemethod\n  }]));\n}\n\n/**\n * 获取列宽\n * @param {object} data {index:[2,3], callback: 'invokeAction', invokemethod: 'invokemethod', si}\n * @param {object} args ReportGrid\n */\nfunction getColumnsWidth(data, args) {\n  var index = data.index,\n    callback = data.callback,\n    invokemethod = data.invokemethod,\n    si = data.si;\n  var props = args.props,\n    spread = args.spread;\n  var model = props.model,\n    dispatch = props.dispatch;\n  var sheet = M.getSheet(spread, si);\n  var infos = [];\n  index.forEach(function (item) {\n    var width = sheet.getColumnWidth(item);\n    infos.push({\n      c: item,\n      w: width\n    });\n  });\n  dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n    infos: infos,\n    invokemethod: invokemethod\n  }]));\n}\n\n/**\n * 锁定指定工作表的单元格\n * @param {object} data {selections: [{r:, c:, rc:, cc:}], si:} || [{r:, c:, rc:, cc:}]\n * @param {object} ReportGrid\n */\nfunction lockCell(data, args) {\n  var selections = data.selections,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  if (selections) {\n    M.lockCell(selections)(sheet);\n  } else {\n    // 兼容旧的参数类型\n    M.lockCell(data)(sheet);\n  }\n}\n/**\n * 解锁指定工作表的单元格\n * @param {object} data {selections: [{r:, c:, rc:, cc:}], si:} || [{r:, c:, rc:, cc:}]\n * @param {object} ReportGrid\n */\nfunction unlockCell(data, args) {\n  var selections = data.selections,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  if (selections) {\n    M.unlockCell(selections)(sheet);\n  } else {\n    M.unlockCell(data)(sheet);\n  }\n}\n\n/**\n * 锁定指定工作表\n * @param {object} data {si:[]}\n * @param {object} args ReportGrid\n */\nfunction lockSheet(data, args) {\n  if (data.si) {\n    data.si.forEach(function (item) {\n      var sheet = M.getSheet(args.spread, item);\n      M.lockSheet()(sheet);\n    });\n  } else {\n    // 兼容旧的参数格式\n    var sheet = M.getSheet(args.spread);\n    M.lockSheet()(sheet);\n  }\n}\n/**\n * 解锁指定工作表\n * @param {object} data {si:[]}\n * @param {object} args ReportGrid\n */\nfunction unlockSheet(data, args) {\n  if (data.si) {\n    data.si.forEach(function (item) {\n      var sheet = M.getSheet(args.spread, item);\n      M.unlockSheet()(sheet);\n    });\n  } else {\n    // 兼容旧的参数格式\n    var sheet = M.getSheet(args.spread);\n    M.unlockSheet()(sheet);\n  }\n}\n\n/**\n * 更新指定工作表单元格的值\n * @param {object} data {si:, area:'', cells: [{r:, c:, v:}]} || [{r:, c:, v:, area:,}] area的值有三种 colHeader(列头) rowHeader(行头) viewport(单元格区域)\n * @param {object} args ReportGrid\n */\nfunction updataValue(data, args) {\n  var transData = data.uvJson ? JSON.parse((0, _utils.tranform2Json)(data.uvJson)) : data;\n  var si = transData.si,\n    cells = transData.cells,\n    area = transData.area;\n  var sheet = M.getSheet(args.spread, si);\n  if (cells) {\n    var _iterator = _createForOfIteratorHelper(cells),\n      _step;\n    try {\n      for (_iterator.s(); !(_step = _iterator.n()).done;) {\n        var rdata = _step.value;\n        var r = rdata.r,\n          c = rdata.c,\n          v = rdata.v;\n        var sheetArea = (0, _actionUtils.createArea)(area);\n        M.setValue(r, c, v, sheetArea)(sheet);\n      }\n    } catch (err) {\n      _iterator.e(err);\n    } finally {\n      _iterator.f();\n    }\n  } else {\n    var _iterator2 = _createForOfIteratorHelper(transData),\n      _step2;\n    try {\n      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n        var _rdata = _step2.value;\n        var _r = _rdata.r,\n          _c = _rdata.c,\n          _v = _rdata.v,\n          _area = _rdata.area;\n        var _sheetArea = (0, _actionUtils.createArea)(_area);\n        M.setValue(_r, _c, _v, _sheetArea)(sheet);\n      }\n    } catch (err) {\n      _iterator2.e(err);\n    } finally {\n      _iterator2.f();\n    }\n  }\n}\n\n/**\n * 合并单元格\n * @param {object} data {range:[{r:, c:, rc:, cc:}], si:}\n * @param {object} args ReportGrid\n */\nfunction setSpan(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.setSpan(data, args)(sheet);\n}\n\n/**\n * 设置单元格样式/格式\n * area的值有三种 colHeader(列头) rowHeader(行头) viewport(单元格区域)\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{bl:{bls:['dashDot'], blc:['#00f']} } }]  //设置单元格边框样式\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{bkc:'#666', frc:'#000'} }] //设置单元格的前景色和背景色\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{f: '8pt Arial'} }] //设置单元格字体\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{fm:'0.00%'} }]  //设置单元格格式\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{va:1, ha:1} }] //设置单元格垂直、水平对齐方式\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{l:true} }] //指示是否将单元格标记为已锁定\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{ww:true} }] //设置单元格是否自动换行\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{stf:true} }] //指示内容是否收缩以适应\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{ti:2} }] //表示单元格中文本的缩进单元数(一个整数值)，其中增量1表示8个像素。\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{td:} }] //td的值为数字 设置文本下划线(underline):1 双下划线(doubleUnderline):8 删除线(lineThrough):2 无(none):0\n * data: [{range: [{r:2, c:2, rc:2, cc:2}],area: 'colHeader', style:{ep:true} }] //ep为一个布尔值 true表示设置文本省略符 文本省略符的悬浮提示是默认存在的（显示文本全部内容），目前(2020.08)没有相关属性。\n * ||\n * {data:[], si:} //支持指定页签设置样式\n */\nfunction setCellStyle(data, args) {\n  if (Array.isArray(data)) {\n    var sheet = args.spread.getActiveSheet();\n    M.setCellStyle(data)(sheet);\n  } else {\n    var _sheet = M.getSheet(args.spread, data.si);\n    M.setCellStyle(data.data)(_sheet);\n  }\n}\n\n/**\n * 获取指定区域单元格样式\n * @param {object} data [{range: [{r:, c:, rc:, cc:}], callback, invokemethod, si:}]\n * @param {object} args ReportGrid\n */\nfunction getRangeStyles(data, args) {\n  data.forEach(function (item) {\n    var invokemethod = item.invokemethod,\n      callback = item.callback,\n      range = item.range,\n      si = item.si;\n    var _args$props2 = args.props,\n      model = _args$props2.model,\n      dispatch = _args$props2.dispatch;\n    var sheet = M.getSheet(args.spread, si);\n    var styles = M.getRangeStyles(range)(sheet);\n    dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n      data: styles,\n      invokemethod: invokemethod,\n      si: si\n    }]));\n  });\n}\n\n/**\n * 复制指定区域的样式到另一个区域\n * @param {object} data [{range: [{fromRow:, fromCol:, toRow:, toCol:, rc:, cc:}], si:}]\n * @param {object} args ReportGrid\n*/\nfunction copyStylesTo(data, args) {\n  data.forEach(function (item) {\n    var si = item.si,\n      range = item.range;\n    var sheet = M.getSheet(args.spread, si);\n    M.copyStylesTo(range)(sheet);\n  });\n}\nfunction copyValuesTo(data, args) {\n  var spread = args.spread,\n    props = args.props;\n  data.forEach(function (item) {\n    var si = item.si,\n      range = item.range;\n    var sheet = M.getSheet(spread, si);\n    M.copyValuesTo(range, sheet, props, si);\n  });\n}\n\n/**\n * 设置spread底部缩放的显示(true)与隐藏(false)\n * @param {object} data {visible: true|false}\n * @param {object} args\n */\nfunction setStatusBarVisible(data, args) {\n  args.setState({\n    showBottom: data.visible\n  });\n}\n\n/**\n * 区域范围内新增行\n * @param {object} data {range: {r:, c:, rc:, cc:}, index:, count:, styleIndex:, si:, copySize:true}\n * @param {object} args ReportGrid\n */\nfunction fieldInsertRow(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.fieldInsertRow(data.range, data.index, data.count, data.styleIndex, data.copySize)(sheet);\n  (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n/**\n * 区域范围内新增列\n * @param {object} data {range: {r:, c:, rc:, cc:}, index:, count:, styleIndex:, si:,copySize:true}\n * @param {object} args ReportGrid\n */\nfunction fieldInsertCol(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.fieldInsertCol(data.range, data.index, data.count, data.styleIndex, data.copySize)(sheet);\n  (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n/**\n * 区域范围内删除行\n * @param {object} data {range: {r:, c:, rc:, cc:}, index:, count:, si:}\n * @param {object} args ReportGrid\n */\nfunction fieldDeleteRow(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.fieldDeleteRow(data.range, data.index, data.count)(sheet);\n  (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n/**\n * 区域范围内删除列\n * @param {object} data {range: {r:, c:, rc:, cc:}, index:, count:, si:}\n * @param {object} args ReportGrid\n */\nfunction fieldDeleteCol(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.fieldDeleteCol(data.range, data.index, data.count)(sheet);\n  (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n\n/**\n * 设置f7类型的单元格\n * @param {object} data {cell: [{r:1, c:1}], showAddBtnWhenNoData:true, lockClickable:true, doSetItemByNumber: true, selectType:0, dst:1, si:} || {range: [{r:, c:, rc:, cc}],showAddBtnWhenNoData:true, lockClickable:true, selectType, dst:1}\n * @param {object} args ReportGrid\n */\nfunction setFListCell(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  var FList = args.cellClass.f7;\n  M.setFListCell(data)(sheet, FList);\n}\n\n/**\n * 设置分组列节点(自定义单元格做的)\n * @param {object} data [{*r:number, *c:number,  *groupNodeType :1||2||3, *vAlign:bumber, *drill:1||0,, radix:number, spaceRight: number, isVertical: false}]\n * @param {object} args ReportGrid\n */\nfunction setGroupColNode(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  var GroupNode = args.cellClass.groupNode;\n  data.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      _item$vAlign = item.vAlign,\n      vAlign = _item$vAlign === void 0 ? 0 : _item$vAlign,\n      radix = item.radix,\n      groupNodeType = item.groupNodeType,\n      drill = item.drill,\n      spaceRight = item.spaceRight,\n      _item$isVertical = item.isVertical,\n      isVertical = _item$isVertical === void 0 ? false : _item$isVertical;\n    var cellType = new GroupNode(vAlign + 1, groupNodeType, drill, radix, spaceRight, isVertical);\n    sheet.getCell(r, c).cellType(cellType);\n  });\n}\n/**\n * 设置下拉列表类型的单元格\n * @param {*} data\n  [{\n    cell: { r: 0, c: 0 },\n    option: [\n      { text: 'Oranges', value: '11k' },\n      { text: 'Apples', value: '15k' },\n      { text: 'Grape', value: '100k' }\n    ],\n    editable: true,\n    height: 24\n  }]\n * @param {*} args\n */\n\nfunction setComboCell(data, args) {\n  var sheet = args.spread.getActiveSheet();\n  M.setComboCell(data, args)(sheet);\n}\n// 设置按钮类型的单元格\nfunction setBtnCell(data, args) {\n  // [{cell:{r:,c:},text:}]\n  var sheet = args.spread.getActiveSheet();\n  M.setBtnCell(data, args)(sheet);\n}\n// 自定义按钮类型的单元格\nfunction setCustomBtnCell(data, args) {\n  // [{cell:{r:,c:},text:}]\n  var sheet = args.spread.getActiveSheet();\n  var CustomButton = args.cellClass.btn;\n  M.setCustomBtnCell(data, args)(sheet, CustomButton);\n}\n/**\n * 设置超链接单元格\n * @param {*} { callback:, invokemethod:, si:0, range: [{r:1, c:1, rc: 10, cc:1, options:{text:'超链接',value:'https://www.baidu.com',color:'red',visitedColor:'blue',toolTip: '超链接' }}] }\n * @param {*} args ReportGrid\n */\nfunction setHyperLinkCell(data, args) {\n  M.setHyperLinkCell(data, args);\n}\n\n/**\n * 给单元格设置特殊标识（小红点）\n * @param {Object} data - [{r: 0, c: 0, st: true, pos:[0,1,2,3], bc:'green', height: 4, width: 4, hoverHeight: 4, hoverwidth: 4, canClick: true}]\n * || {range: [{r:0, c:0, rc:10, cc:10}], st: true, pos:[0,1,2,3], bc:'green', height: 4, width: 4, hoverHeight: 4, hoverwidth: 4, canClick: true}\n * position: 0:topLeft/1:topRight/2:bottomRight/3:bottomLeft\n * @param {Object} args ReportGrid\n */\nfunction setCellTag(data, args) {\n  var sheet = args.spread.getActiveSheet();\n  var CornerCell = args.cellClass.cornerCell;\n  if (Array.isArray(data)) {\n    var _iterator3 = _createForOfIteratorHelper(data),\n      _step3;\n    try {\n      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n        var item = _step3.value;\n        M.setCellTag(item, args)(sheet, CornerCell);\n      }\n    } catch (err) {\n      _iterator3.e(err);\n    } finally {\n      _iterator3.f();\n    }\n  } else {\n    var _iterator4 = _createForOfIteratorHelper(data.range),\n      _step4;\n    try {\n      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n        var cell = _step4.value;\n        var r = cell.r,\n          c = cell.c,\n          rc = cell.rc,\n          cc = cell.cc;\n        for (var i = r; i < r + rc; i++) {\n          for (var j = c; j < c + cc; j++) {\n            M.setCellTag(_objectSpread(_objectSpread({}, data), {}, {\n              r: i,\n              c: j\n            }), args)(sheet, CornerCell);\n          }\n        }\n      }\n    } catch (err) {\n      _iterator4.e(err);\n    } finally {\n      _iterator4.f();\n    }\n  }\n}\n/**\n * 给单元格设置角标\n * @param {Object} data [{ range: [{r:, c:, rc:, cc:}], vi: true|false, text: 'T', bc: 'green', fc: 'white', pos: [0,1 ] }]\n * @param {Object} args ReportGrid\n */\nfunction setCornerMark(data, args) {\n  var sheet = args.spread.getActiveSheet();\n  data.forEach(function (item) {\n    M.setCornerMark(item)(sheet);\n  });\n}\n/**\n * 重置单元格类型\n * @param {object} data {range:[{r:, c:, rc:, cc:}], si:}\n * @param {object} args ReportGrid\n */\nfunction resetCell(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.resetCell(data.range)(sheet);\n}\n\n/**\n * 获取SpreadJS的json串，包含回传请求指令和后台触发事件\n * isCompressStyle提取公共样式，默认关闭，（谨慎使用，这个比较耗时，且数据结构会改变）\n * si获取指定sheet页的JSON\n * @param {*} callbackParams {callback:, invokemethod:,isCompressStyle:, sheetName:}\n * @param {*} args ReportGrid\n */\nfunction getSpreadJson(data, args) {\n  args.spread.suspendCalcService(false);\n  var methodName = data.callback,\n    invokemethod = data.invokemethod,\n    isCompressStyle = data.isCompressStyle,\n    sheetName = data.sheetName;\n  var toJSONObj = args.spread.toJSON();\n  if (isCompressStyle) {\n    M.handleNamedStyles(toJSONObj, args.spread);\n  }\n  var spreadStr = sheetName !== undefined ? args.spread.getSheetFromName(sheetName).toJSON() : toJSONObj;\n  var jsonStr = JSON.stringify(spreadStr);\n  var baseStr = (0, _utils.tranform2Base64)(jsonStr);\n  args.props.dispatch((0, _gridaction.invokeControlMethodOnly)(args.props.model, methodName, [{\n    data: baseStr,\n    invokemethod: invokemethod\n  }]));\n  args.spread.resumeCalcService(false);\n}\n\n/**\n * 设置f7单元格类型的lookup数据\n * @param {*} data {r:, c:, data:[]}\n * @param {*} args ReportGrid\n */\nfunction setLookupData(data, args) {\n  var _args$props$model = args.props.model,\n    pageId = _args$props$model.pageId,\n    key = _args$props$model.key;\n  var r = data.r;\n  var c = data.c;\n  var dataArgs = data.data;\n  (0, _memoryCacher.setPageData)(pageId, [\"\".concat(key, \"_\").concat(r, \"_\").concat(c), 'setLookupData'], dataArgs);\n}\n\n/**\n * 设置自定义的公式单元格\n * @param {*} data {cell: [{r:, c:}], si:}\n * @param {*} args ReportGrid\n */\nfunction setCustomFormulaCell(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  var CustomFormulaCell = args.cellClass.formula;\n  M.setCustomFormulaCell(data.cell, CustomFormulaCell, args.props)(sheet);\n}\n\n/**\n * 设置所有单元格都为公式单元格\n * @param {*} data {si: }\n * @param {*} args ReportGrid\n */\nfunction setAllCustomFormulaCell(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  var CustomFormulaCell = args.cellClass.formula;\n  M.setAllCustomFormulaCell(CustomFormulaCell)(sheet);\n}\n\n/**\n 注册自定义公式\n[{\n  formulaName: 'FACTORIAL',\n  argsNum: 1,\n  minArgs: 1,\n  maxArgs: 1,\n  returnType: '',\n\n  isAsynUpdate: true,//异步更新\n  defaultValue: 'loading...',  //默认值\n  evaluateMode: 0,//计算模式，0 单元格需要计算时进行重算 1 只计算一次 2 定时计算\n  callback: 'autoFitColumn', // 回传给后端的，用于功能的具体实现\n  invokeAction: 'invokeAction', // 回传给后端的，用于处理前端spread所有的请求\n\n  descriptionInfo: {\n    description: '自定义公式',\n    parameters: [{\n      name: ''\n    }]\n  }\n}]\n*/\nfunction registerCustomFormula(data, args) {\n  data.forEach(function (item, i) {\n    var isAsynUpdate = item.isAsynUpdate;\n    if (isAsynUpdate) {\n      // 异步公式\n      M.registerAsyncFunction(args, i, item);\n    } else {\n      M.registerCustomFormula(item);\n    }\n  });\n}\n/**\n * 更新自定义公式的值\n * @param {*} data {si:0,cell:[{id:'83720mis39',v:'102'}]}\n * @param {*} args\n */\nfunction updateCustomFormulaValue(data, args) {\n  var si = data.si,\n    cell = data.cell;\n  var dataPipeModel = args.dataPipeModel;\n  var sheet = M.getSheet(args.spread, si);\n  M.updateCustomFormulaValue(cell, sheet, dataPipeModel);\n}\n\n/**\n * 给单元格设置公式，f为‘’时回去清除当前单元格的公式\n * @param {*} data [{ r: 0, c: 0, f: A1 + 1, isUndo: false }] ||  { cell: [{ r: 0, c: 0, f: A1 + 1 }], si: 0, isUndo: false }\n * @param {*} args ReportGrid\n */\nfunction setFormula(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  try {\n    sheet.suppressUpdateFormula = true; // 通过后端指令设置公式，不需要再发updateFormula请求\n    if (Array.isArray(data)) {\n      if (data.length > 0) {\n        data[0].isUndo ? args.dataPipeModel.sendData({\n          type: 'CustomSetFormula',\n          data: data,\n          sheet: sheet\n        }) : M.setFormula(data)(sheet);\n      }\n    } else {\n      var cell = data.cell;\n      data.isUndo ? args.dataPipeModel.sendData({\n        type: 'CustomSetFormula',\n        data: cell,\n        sheet: sheet\n      }) : M.setFormula(cell)(sheet);\n    }\n    sheet.suppressUpdateFormula = false;\n  } catch (error) {\n    sheet.suppressUpdateFormula = false;\n    _console[\"default\"].log(error);\n  }\n}\n\n/**\n * 设置选中的单元格\n * @param {*} data { r: 50, c: 5, rc: 1, cc: 1, si: 1, triggerSel: false, position: { row: 'center', col: 'center' }, autoFocus: true }\n * @param {*} args ReportGrid\n */\nfunction setSelections(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  M.setSelections(data)(args, sheet);\n  data.triggerSel && (0, _reportUtils.triggerSelectionChanged)(sheet, args.sheetEventHandle.selectionChanged);\n}\n\n// 导出excel文件\nfunction exportExcelFile(data, args) {\n  // {fileName:}\n  var excelIo = args.excelIo;\n  var spread = args.spread;\n  // 启用了局部计算场景下，引出时暂停重算，否则含有自定义公式的单元格内容会变为0\n  spread.suspendCalcService(false);\n  M.beforeExportExcel(args);\n  var json = spread.toJSON();\n  M.exportExcelFile(data.fileName, json)(excelIo);\n  M.afterExportExcel(args);\n  spread.resumeCalcService(false);\n}\n\n/**\n * 批量导出excel文件\n * @param {data:[{json:''},...], fileName:'fileName'}\n */\nfunction batchExportExcelFiles(data, args) {\n  var parsedData = JSON.parse((0, _utils.tranform2Json)(data));\n  M.batchExportExcelFiles(parsedData.data, parsedData.fileName)(args);\n}\n\n/**\n * 锁定工具栏的某些操作按钮\n * name: FontStyle(字体样式)、FontDecoration(加粗、斜体、下划线)、ForeAndBackColor(前后背景色)、CellsBorder(设置边框)、ClearCells(清除单元格)、CellFormat(单元格格式)、WordWrap(自动换行)\n * name: TextAlign(文本对齐)、TextIndent(文本缩进)、LockCells(锁定单元格)、MergeCells(合并单元格)\n * name: InsertRowAndCol(插入和删除行列)、FrozenSheets(冻结窗体)、UploadFile(导入)、ExportFile(导出)、SwitchView(切换视图)、Print(打印)\n * @param [{name: 'LockCells', isLock: true|false}] or {isLock: true|false}\n */\nfunction lockToolbarItems(data, args) {\n  var dataPipeModel = args.dataPipeModel;\n  if (Array.isArray(data)) {\n    var hideItems = data.filter(function (_ref) {\n      var isHide = _ref.isHide;\n      return isHide !== undefined;\n    });\n    var lockItems = data.filter(function (_ref2) {\n      var isLock = _ref2.isLock;\n      return isLock !== undefined;\n    });\n    hideItems.length > 0 && M.hideToolbarItem(hideItems, dataPipeModel);\n    lockItems.length > 0 && M.lockToolbarItem(lockItems, dataPipeModel);\n  } else if (data.isLock !== undefined) {\n    M.lockToolbar(data, dataPipeModel);\n  } else {\n    _console[\"default\"].log('arguments is not right!');\n  }\n}\n\n/**\n * 暴露toolbar方法\n * @param {Object} data - 执行操作的按钮以及下拉菜单key值 {name: 'SwitchView', itemName: 'SwitchView_ValueView'}\n * @param {Object} args - ReportGrid\n */\nfunction excuteToolbarActions() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var args = arguments.length > 1 ? arguments[1] : undefined;\n  var dataPipeModel = args.dataPipeModel;\n  M.excuteToolbarAction(data, dataPipeModel);\n}\n\n/**\n * @param {object} data\n *  [{\n        key: 'AutoFitColumn', // 唯一标识\n        icon: 'kdfont kdfont-guolvpaixu', // 字体图标\n        title: '宽度自适应', // tips\n        callback: 'autoFitColumn', // 回传给后端的，用于功能的具体实现\n        invokeAction: 'invokeAction', // 回传给后端的，用于处理前端spread所有的请求\n        item: [ // 下拉项\n          {\n            title: 'ssss',\n            callback: 'sss',\n            invokeAction: 'sssss',\n            key: 'AutoFitColumn001'\n          }\n        ]\n    }]\n * @param {*} args\n */\nfunction addToolbarItems() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var args = arguments.length > 1 ? arguments[1] : undefined;\n  args.dataPipeModel.sendData({\n    type: 'AddToolbarItem',\n    data: data\n  });\n}\n\n/**\n * 隐藏或显示上下文菜单的某些功能\n * @param {*} data [{name: , isHide: ,subMenu}] or {isHide: true/false}\n * @param {*} args ReportGrid\n */\nfunction hideContextMenuItems(data, args) {\n  var menuData = args.spread.contextMenu.menuData;\n  var menuDataConstant = args.menuDataConstant;\n  if (Array.isArray(data)) {\n    data.forEach(function (menuItems) {\n      M.hideContextMenuItem(menuItems, menuData)(menuDataConstant);\n    });\n    // 对隐藏后的菜单进行排序，防止多次显示隐藏后菜单顺序异常，menuDataConstant中的顺序是初始状态的\n    var newMenuData = menuDataConstant.reduce(function (newMenuData, item) {\n      var constantMenuName = item.name,\n        constantMenuType = item.type,\n        constantMenuWorkArea = item.workArea;\n      if (!constantMenuName && constantMenuType === 'separator') {\n        newMenuData.push({\n          type: 'separator'\n        });\n      } else {\n        var isExistItem = menuData.find(function (_ref3) {\n          var name = _ref3.name,\n            workArea = _ref3.workArea;\n          return name === constantMenuName && workArea === constantMenuWorkArea;\n        });\n        isExistItem && newMenuData.push(isExistItem);\n      }\n      return newMenuData;\n    }, []);\n    args.spread.contextMenu.menuData = newMenuData;\n  } else if (data.isHide !== undefined) {\n    M.hideContextMenu(data)(args.spread);\n  } else {\n    _console[\"default\"].log('arguments is not right!');\n  }\n}\n\n/**\n * 删除上下文菜单的某些功能\n * @param {*} data [{name}]\n * @param {*} args ReportGrid\n */\nfunction deleteContextMenuItems(data, args) {\n  if (Array.isArray(data)) {\n    data.forEach(function (item) {\n      M.deleteContextMenuItems(item, args);\n    });\n  } else {\n    _console[\"default\"].log('arguments is not right!');\n  }\n}\n\n// 设置当前工作表的视图\nfunction setViewOptions(data, args) {\n  // [{type:  ,text:  ,baseType:  }]  baseType,后端的自定义视图所基于的基础视图\n  data.type = 'SetViewOptions';\n  var dataPipeModel = args.dataPipeModel;\n  dataPipeModel.sendData(data);\n}\n\n// 设置打印spread\nfunction print() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var args = arguments.length > 1 ? arguments[1] : undefined;\n  // {index:,printInfo:[{index:[],info:{}}],showPanel:false}\n  if (data.showPanel) {\n    args.dataPipeModel.sendData({\n      type: 'print'\n    });\n  } else {\n    M.print(data.index, data.printInfo)(args.spread);\n  }\n}\n\n// 清除单元格格式\nfunction clearCellsStyle(data, args) {\n  // [{r:,c:,rc:,cc:，type: }] type:1 样式和值 2 样式 3 值 默认清除样式\n  M.clearCellsStyle(data)(args.spread, args.props);\n}\n\n/**\n * 设置需要跟后端交互的工具栏按钮\n * @param [{name: 工具栏按钮名称, isCtl: true/false}]\n */\nfunction controlToolbarItems(data, args) {\n  var dataPipeModel = args.dataPipeModel;\n  M.controlToolbarItems(data, dataPipeModel);\n}\n\n/**\n * 设置展示区域的内容\n * @param [{key: , text: , s: }, ...]\n */\nfunction setDisplayContent(data, args) {\n  var dataPipeModel = args.dataPipeModel;\n  M.setDisplayContent(data, dataPipeModel);\n}\n\n/**\n * 清除展示区域指定内容\n * @param ['key']\n */\nfunction clearDisplayContent(data, args) {\n  var params = {\n    type: 'ClearDisplayContent',\n    keys: data\n  };\n  args.dataPipeModel.sendData(params);\n}\n\n/**\n * 关闭工具栏\n * @param {Object} data {hideExpandBtn: true}\n */\nfunction closeToolbar(data, args) {\n  data.type = 'CloseToolbar';\n  args.dataPipeModel.sendData(data);\n}\n\n/**\n * 设置工具栏“展开/收起”按钮的可见性\n * @param {Object} data {visible: true|false}\n * @param {Object} args ReportGrid\n */\nfunction setExpandBtnVisible(data, args) {\n  data.type = 'SetExpandBtnVisible';\n  args.dataPipeModel.sendData(data);\n}\n\n/**\n * 冻结窗体\n * data: {r:3, c:3, tr:3, tc:3, flc:'#f00', si: 0}\n */\nfunction frozenSheet(data, args) {\n  var sheet = args.spread.getSheet(data.si);\n  if (sheet === null) {\n    sheet = args.spread.getActiveSheet();\n  }\n  M.frozenSheet(data, sheet);\n}\n\n/**\n * 自适应列宽\n * data: {c:[1,3,5], si:0}\n */\nfunction autoFitColumns(data, args) {\n  var spread = args.spread;\n  var sheet = spread.getSheet(data.si) || spread.getActiveSheet();\n  M.autoFitColumns(data, sheet);\n}\n\n/**\n * 自适应行高\n * data: {r:[2,4,6], si:0}\n */\nfunction autoFitRows(data, args) {\n  var spread = args.spread;\n  var sheet = spread.getSheet(data.si) || spread.getActiveSheet();\n  M.autoFitRows(data, sheet);\n}\n\n/**\n * 设置工作簿选项\n * @param {Object} data {allowCopyPasteExcelStyle:false, ... iterativeCalculationMaximumIterations 迭代次数 iterativeCalculationMaximumChange迭代最小值}\n * @param {Object} args ReportGrid\n */\nfunction setWorkbookOptions(data, args) {\n  var spread = args.spread;\n  spread.options = Object.assign(spread.options, data);\n}\n\n/**\n * 设置工作表选项\n * @param {Object} data [{si:, options: {allowCellOverflow: false, ...}}, ...]\n * @param {Object} args ReportGrid\n */\nfunction setWorksheetOptions(data, args) {\n  var spread = args.spread;\n  M.setWorksheetOptions(data, spread);\n}\n\n/**\n * 注册快捷键\n * @param {Object} data {commandName:'ctrlA', key:65, ctrl:true, shift:false, alt:false, meta:false}\n * @param {Object} args ReportGrid\n */\nfunction setShortcutKey(data, args) {\n  M.setShortcutKey(data, args);\n}\n\n/**\n * 设置行可见性\n * @param {object} data {rows: [1, 3], value: false, si:}\n */\nfunction setRowsVisible(data, args) {\n  var rows = data.rows,\n    value = data.value,\n    si = data.si;\n  var spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  var _iterator5 = _createForOfIteratorHelper(rows),\n    _step5;\n  try {\n    for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n      var row = _step5.value;\n      sheet.setRowVisible(row, value);\n    }\n  } catch (err) {\n    _iterator5.e(err);\n  } finally {\n    _iterator5.f();\n  }\n}\n\n/**\n * 设置列可见性\n * @param {object} data {cols: [2, 4], value: true, si:}\n */\nfunction setColumnsVisible(data, args) {\n  var cols = data.cols,\n    value = data.value,\n    si = data.si;\n  var spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  var _iterator6 = _createForOfIteratorHelper(cols),\n    _step6;\n  try {\n    for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n      var col = _step6.value;\n      sheet.setColumnVisible(col, value);\n    }\n  } catch (err) {\n    _iterator6.e(err);\n  } finally {\n    _iterator6.f();\n  }\n}\n\n/**\n * 获取指定范围的值\n * @param {*} data {range:[{r:, c:, rc:, cc:}], si:, getF:false, compression:false }\n * @param {*} args\n */\nfunction getRangeValues(data, args) {\n  if (data.compression) {\n    M.newGetRangeValues(data, args);\n  } else {\n    M.getRangeValues(data, args);\n  }\n}\n\n/**\n * 添加右键菜单项\n * @param {*} data 一级菜单: {callback: 'invokeAction', items: [{name: 'insertRowsBehind', text: '向后插入行', workArea: ['viewport', 'colHeader', 'rowHeader', 'slicer', 'corner']}]}\n *                 二级和三级菜单: {callback: 'invokeAction', items: [{name: '', text: '', workArea: [], subMenu:[{name:'',text:''subMenu:[...]}]}]}\n * @param {*} args\n */\nfunction addContextMenuItems(data, args) {\n  var items = data.items,\n    callback = data.callback;\n  items.forEach(function (item) {\n    M.addContextMenuItem(item, args, callback);\n  });\n}\n\n/**\n * 设置分组列\n * @param {Object} data {c:0, options: {showCheckBox:false, maxLevel:2, collapsed: true || {1:true,3:false} }}\n * @param {ReportGrid} args ReportGrid\n */\nfunction setOutlineColumn(data, args) {\n  var c = data.c,\n    _data$options = data.options,\n    options = _data$options === void 0 ? {} : _data$options,\n    si = data.si;\n  var spread = args.spread;\n  var _args$props$model2 = args.props.model,\n    pageId = _args$props$model2.pageId,\n    key = _args$props$model2.key;\n  var sheet = M.getSheet(spread, si);\n  options.expandIndicator = _increaseIndicator[\"default\"];\n  options.collapseIndicator = _decreaseIndicator[\"default\"];\n  sheet.outlineColumn.options(_objectSpread({\n    columnIndex: c\n  }, options));\n  sheet.showRowOutline(false);\n  var rowCount = sheet.getRowCount();\n  if (options.collapsed !== undefined) {\n    var collapsed = options.collapsed;\n    var instance = new _spreadSheets[\"default\"].Spread.Sheets.OutlineColumn.OutlineColumn(sheet);\n    if (Object.prototype.toString.call(collapsed) === '[object Object]') {\n      (0, _memoryCacher.setPageData)(pageId, [key, 'groupNode'], collapsed);\n      for (var _key in collapsed) {\n        instance.setCollapsed(parseInt(_key), collapsed[_key]);\n      }\n    } else {\n      for (var r = rowCount - 2; r >= 0; r--) {\n        instance.setCollapsed(r, collapsed);\n      }\n    }\n  }\n}\n\n/**\n * 获取分组的折叠状态\n * @param {Object} data {si:0, invokemethod, callback}\n * @param {ReportGrid} args ReportGrid\n */\nfunction getOutlineColumnNode(data, args) {\n  var spread = args.spread,\n    props = args.props;\n  var _props$model = props.model,\n    pageId = _props$model.pageId,\n    key = _props$model.key,\n    dispatch = props.dispatch;\n  var callback = data.callback,\n    invokemethod = data.invokemethod,\n    si = data.si;\n  var sheet = M.getSheet(spread, si);\n  var collapsed = (0, _memoryCacher.getPageData)(pageId, [key, 'groupNode']);\n  var instance = new _spreadSheets[\"default\"].Spread.Sheets.OutlineColumn.OutlineColumn(sheet);\n  var groupNodeStatus = {};\n  for (var _key2 in collapsed) {\n    var fold = instance.getCollapsed(parseInt(_key2));\n    Object.assign(groupNodeStatus, _defineProperty({}, _key2, fold));\n  }\n  dispatch((0, _gridaction.invokeControlMethodOnly)({\n    pageId: pageId,\n    key: key\n  }, callback, [{\n    invokemethod: invokemethod,\n    collapsed: groupNodeStatus\n  }]));\n}\n\n/**\n * 设置虚模式\n  * @param {Object} data { isOpen: true, delay: '300', callback: 'invokeAction', invokemethod: 'invokemethod', unRepeatRequest: false}\n * @param {Object} args ReportGrid\n */\nfunction setVirtualMode(data, args) {\n  var model = args.props.model;\n  var pageId = model.pageId,\n    key = model.key;\n  (0, _memoryCacher.setPageData)(pageId, [key, 'virtualMode'], data);\n  if (data.unRepeatRequest) (0, _memoryCacher.setPageData)(pageId, [key, 'repeatRequestArray'], []);\n}\n\n/**\n * 新增sheet页\n * @param {Object} data {sheets: [{index:, name:, rc:, cc:}]}\n * @param {Object} args ReportGrid\n */\nfunction addSheets(data, args) {\n  M.addSheets(data.sheets, args);\n}\n\n/**\n * 删除sheet页\n * @param {Object} data {index: [2,3]}\n * @param {Object} args ReportGrid\n */\nfunction deleteSheets(data, args) {\n  M.deleteSheets(data, args.spread);\n}\n\n/**\n * 设置页签的可见性\n * @param {*} data {index: [1,2], visible: false}\n * @param {*} args ReportGrid\n */\nfunction setSheetsVisible(data, args) {\n  M.setSheetsVisible(data, args.spread);\n}\n\n/**\n * 设置行的区域分组\n * @param {Object} data {groups: [{index: 0, count: 1, isHide: false}], si:}\n */\nfunction setRowOutlines(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  data.groups.forEach(function (item) {\n    var index = item.index,\n      count = item.count,\n      isHide = item.isHide;\n    isHide ? sheet.rowOutlines.ungroupRange(index, count) : sheet.rowOutlines.group(index, count);\n  });\n}\n\n/**\n * 设置列的区域分组\n * @param {Object} data {groups: [{index: 0, count: 1, isHide: false}], si:}\n */\nfunction setColumnOutlines(data, args) {\n  var sheet = M.getSheet(args.spread, data.si);\n  data.groups.forEach(function (item) {\n    var index = item.index,\n      count = item.count,\n      isHide = item.isHide;\n    isHide ? sheet.columnOutlines.ungroupRange(index, count) : sheet.columnOutlines.group(index, count);\n  });\n}\n\n/**\n * 展开或收起行的区域分组\n * @param {Object} data {levels: [], expand: , si:}\n */\nfunction expandRowOutlines(data, args) {\n  var levels = data.levels,\n    expand = data.expand,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  levels.forEach(function (level) {\n    sheet.rowOutlines.expand(level, expand);\n  });\n}\n\n/**\n * 展开或收起列的区域分组\n * @param {Object} data {levels: [], expand: , si:}\n */\nfunction expandColumnOutlines(data, args) {\n  var levels = data.levels,\n    expand = data.expand,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  levels.forEach(function (level) {\n    sheet.columnOutlines.expand(level, expand);\n  });\n}\n\n/**\n * 设置默认单元格样式\n * @param {Object} data {style: {}, si:}\n */\nfunction setDefaultStyle(data, args) {\n  var style = data.style,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  var defaultStyle = sheet.getDefaultStyle();\n  var newStyle = Object.assign(defaultStyle, style);\n  sheet.setDefaultStyle(newStyle, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n}\n\n/**\n * 设置批注\n * @param {Object} data [{ options: [{ r: 0, c: 0, v: '这是一个批注', remove: false }, { r: 1, c: 1, v: '', remove: true }], si: 0 }]\n */\nfunction setComment(data, args) {\n  data.forEach(function (item) {\n    var si = item.si,\n      options = item.options;\n    var sheet = M.getSheet(args.spread, si);\n    M.setComment(options, sheet);\n  });\n}\n\n/**\n * 设置过滤\n * @param {Object} data [{ r: -1, c: 0, rr: -1, cc: 2, si: 0 }]\n */\nfunction setRowFilter(data, args) {\n  data.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      rc = item.rc,\n      cc = item.cc,\n      si = item.si;\n    var sheet = M.getSheet(args.spread, si);\n    M.setRowFilter({\n      r: r,\n      c: c,\n      rc: rc,\n      cc: cc\n    }, sheet);\n  });\n}\n\n/**\n * 切换页签\n * @param {Object} data {name:'',si:''}\n */\nfunction setActiveSheet(data, args) {\n  var name = data.name,\n    si = data.si;\n  var newName = name || M.getSheet(args.spread, si).name();\n  args.spread.setActiveSheet(newName);\n}\n\n/**\n * 首次样式改变时通知后端\n * @param {Object} data\n */\nfunction styleChangeListner(data, args) {\n  try {\n    var _args$props$model3 = args.props.model,\n      key = _args$props$model3.key,\n      pageId = _args$props$model3.pageId;\n    (0, _memoryCacher.setPageData)(pageId, [key, 'styleChange'], data);\n  } catch (error) {\n    _console[\"default\"].log(error);\n  }\n}\n\n/**\n * 修改sheet名称\n * @param {Object} data [{oldName:'sheet1',si:0,newName:'资产负债表'}] oldName与si都可不传\n */\nfunction setSheetName(data, args) {\n  try {\n    data.forEach(function (item) {\n      var oldName = item.oldName,\n        si = item.si,\n        newName = item.newName;\n      var sheet;\n      if (oldName) {\n        sheet = args.spread.getSheetFromName(oldName);\n      } else {\n        sheet = M.getSheet(args.spread, si);\n      }\n      sheet.name(newName);\n    });\n  } catch (error) {\n    _console[\"default\"].log(error);\n  }\n}\n\n/**\n * 获取锁定的单元格\n * @param {Object} data [{ callback: 'invokeAction', invokemethod: 'invokemethod', si: 0, compression: false }]\n */\nfunction getLockedCells(data, args) {\n  try {\n    data.forEach(function (item) {\n      var sheet = M.getSheet(args.spread, item.si);\n      M.getLockedCells(args.props, sheet, item);\n    });\n  } catch (error) {\n    _console[\"default\"].log(error);\n  }\n}\n\n/**\n * 获取公式\n * @param {Object} data { callback: 'invokeAction', invokemethod: 'invokemethod', si: 0,options:[{r:0,c:0,rc:10,cc:10}]||'all'}\n */\nfunction getFormula(data, args) {\n  var options = data.options,\n    si = data.si,\n    callback = data.callback,\n    invokemethod = data.invokemethod;\n  var props = args.props,\n    spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  if (Array.isArray(options)) {\n    options.forEach(function (range) {\n      M.getFormula({\n        range: range,\n        callback: callback,\n        invokemethod: invokemethod,\n        si: si\n      }, sheet, props);\n    });\n  } else {\n    var range = {\n      r: 0,\n      c: 0,\n      rc: sheet.getRowCount(),\n      cc: sheet.getColumnCount()\n    };\n    M.getFormula({\n      range: range,\n      callback: callback,\n      invokemethod: invokemethod,\n      si: si\n    }, sheet, props);\n  }\n}\n\n/**\n * 暂停公式计算\n * @param {*} data {stop: true|false}\n */\n\nfunction stopCalculate(data, args) {\n  if (data.stop) {\n    args.spread.suspendCalcService(false);\n  } else {\n    args.spread.resumeCalcService(false);\n  }\n}\n\n/**\n * 暂停异步公式计算\n * @param {*} data {stop: true|false}\n */\n\nfunction stopAsyncCalculate(data, args) {\n  if (data.stop) {\n    args.dataPipeModel.setSpreadData('stopAsyncCalculate', true);\n  } else {\n    args.dataPipeModel.setSpreadData('stopAsyncCalculate', false);\n  }\n}\n\n/* * 监听缩放比例变化\n * @param {Object} data {isOpen:true/false,callback:'invokeAction',invokemethod:'zoomChange'}\n */\nfunction zoomChangeLicense(data, args) {\n  M.zoomChangeLicense(data, args);\n}\n\n/**\n * 设置缩放比例\n * @param {Object} data {zoom:0.25~4}\n */\nfunction setZoom(data, args) {\n  var zoom = data.zoom;\n  var sheet = args.spread.getActiveSheet();\n  sheet.zoom(zoom);\n  args.dataPipeModel.sendData({\n    type: 'SetZoomingScale',\n    scale: zoom\n  });\n}\n\n/**\n * 隐藏零值\n * @param {Object} data {ishide: true,si:0}\n */\nfunction hideZero(data, args) {\n  var spread = args.spread;\n  var oldPaint = _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Text.prototype.paint;\n  M.hideZero(oldPaint, data, spread);\n}\n\n/**\n * 禁止粘贴图片\n * @param {Object} data true/false\n */\nfunction notPastePicture(data, args) {\n  var sheet = args.spread.getActiveSheet();\n  (0, _toolbarTopUtils.createSpreadTag)(sheet, {\n    notPastePicture: data\n  });\n}\n\n/**\n * 显示锁定单元格图标\n * @param {Object} data {showLock:true/false,si:0} 1:显示 2:不显示\n */\nfunction showLockCell(data, args) {\n  var showLock = data.showLock,\n    si = data.si;\n  if (showLock) {\n    args.dataPipeModel.sendData({\n      type: 'Setting',\n      eventType: 1,\n      si: si\n    });\n  } else {\n    args.dataPipeModel.sendData({\n      type: 'Setting',\n      eventType: 2,\n      si: si\n    });\n  }\n}\n\n/**\n * 设置复选框类型的单元格\n * @param {Object} data {si:'',callback:'',invokemethod:'',ranges:[{r,c,rc,cc}]}\n */\nfunction setCheckboxCell(data, args) {\n  var si = data.si,\n    callback = data.callback,\n    invokemethod = data.invokemethod,\n    ranges = data.ranges;\n  var spread = args.spread,\n    props = args.props;\n  var sheet = M.getSheet(spread, si);\n  M.setCheckboxCell(sheet, props, callback, invokemethod, ranges);\n}\n\n/**\n * 设置时间类型的单元格\n * @param {Object} data  { si: '', ranges: [{ r, c, rc, cc }], imageType: 0到18, showTime: false, calendarPage: 1到3, startDay: 1到7 }\n */\nfunction setTimeSeleCell(data, args) {\n  var si = data.si,\n    ranges = data.ranges,\n    _data$imageType = data.imageType,\n    imageType = _data$imageType === void 0 ? 2 : _data$imageType,\n    _data$calendarPage = data.calendarPage,\n    calendarPage = _data$calendarPage === void 0 ? 1 : _data$calendarPage,\n    _data$showTime = data.showTime,\n    showTime = _data$showTime === void 0 ? false : _data$showTime,\n    _data$startDay = data.startDay,\n    startDay = _data$startDay === void 0 ? 1 : _data$startDay;\n  var spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  ranges.forEach(function (item) {\n    M.setTimeSeleCell(sheet, item, imageType, calendarPage, showTime, startDay);\n  });\n}\n\n/**\n * 条件格式\n * @param {Object} data { si: '', ranges: [{ r: 0, c: 0, rc: 10, cc: 10 }], methodName: 'addCellValueRule', parameters: {}, isUndo: false }\n */\nfunction setConditionalFormatting(data, args) {\n  var ranges = data.ranges,\n    si = data.si,\n    methodName = data.methodName,\n    parameters = data.parameters;\n  var spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  var spreadRanges = ranges.map(function (_ref4) {\n    var r = _ref4.r,\n      c = _ref4.c,\n      rc = _ref4.rc,\n      cc = _ref4.cc;\n    return new _spreadSheets[\"default\"].Spread.Sheets.Range(r, c, rc, cc);\n  });\n  M.setConditionalFormatting(sheet, methodName, parameters, spreadRanges);\n}\n\n/**\n * Indicates the default row height and column width of the sheet\n * @param {Object} data {si:'',setting:{rowHeight:‘’,colWidth:‘’,rowHeaderColWidth:‘’,colHeaderRowHeight:‘’}\n * https://demo.grapecity.com.cn/spreadjs/help/latest/content/SpreadJS~GC.Spread.Sheets.Worksheet~defaults.html?highlight=defaults%2C\n */\nfunction setSheetDefaults(data, args) {\n  var setting = data.setting,\n    si = data.si;\n  var spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  for (var key in setting) {\n    sheet.defaults[key] = setting[key];\n  }\n}\n\n/**\n * Sets the default style information for the sheet.\n * @param {Object} data {si:'', style:{backColor:'',borderRight:''}, area:1|2|3|0}\n * https://demo.grapecity.com.cn/spreadjs/help/latest/content/SpreadJS~GC.Spread.Sheets.Worksheet~setDefaultStyle.html?highlight=setdefaultstyle%2C\n*/\nfunction setSheetDefaultStyle(data, args) {\n  var style = data.style,\n    si = data.si,\n    area = data.area;\n  var sheet = M.getSheet(args.spread, si);\n  var defaultStyle = sheet.getDefaultStyle();\n  var newStyle = Object.assign(defaultStyle, style);\n  sheet.setDefaultStyle(newStyle, area);\n}\n\n/**\n * 复制指定区域的单元格到另一个区域\n * @param {Object} data { range: [{ fromRow: 0, fromCol: 0, toRow: 2, toCol: 2, rc: 1, cc: 1 }], si: 0, type: 0, useSpreadApi: false }\n * fromRow、fromCol 复制的区域\n * toRow、toCol 粘贴的区域\n * rc、cc 粘贴区域的大小\n * type 0：粘贴所有，1：粘贴值，2：粘贴样式\n */\n\nfunction copyCellsTo(data, args) {\n  if (data.isUndo) {\n    // 是否可撤销，如果可撤销就走命令\n    args.dataPipeModel.sendData({\n      type: 'CopyCellsTo',\n      data: data,\n      sheet: args.spread.getActiveSheet()\n    });\n  } else {\n    if (data.useSpreadApi === true) {\n      // 使用官方API\n      var range = data.range,\n        si = data.si,\n        type = data.type;\n      var sheet = M.getSheet(args.spread, si);\n      M.spreadCopyTo(sheet, si, range, type, args.props);\n    } else {\n      // 使用前端重写api\n      var _type = data.type;\n      if (_type === 0) {\n        copyStylesTo([data], args);\n        copyValuesTo([data], args);\n        copyCellSize([data], args);\n      } else if (_type === 1) {\n        copyValuesTo([data], args);\n      } else if (_type === 2) {\n        copyStylesTo([data], args);\n        copyCellSize([data], args);\n      }\n    }\n  }\n}\nfunction copyCellSize(data, args) {\n  data.forEach(function (item) {\n    var si = item.si,\n      range = item.range;\n    var sheet = M.getSheet(args.spread, si);\n    M.copyCellSize(range, sheet);\n  });\n}\nfunction setValidator(data, args) {\n  var type = data.type,\n    option = data.option,\n    range = data.range,\n    callback = data.callback,\n    invokemethod = data.invokemethod,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  if (type === 0) {\n    M.setValidator(option, range, callback, invokemethod, sheet);\n  } else if (type === 1) {\n    M.removeValidator(range, sheet);\n  }\n}\nfunction getCellValid(data, args) {\n  var cell = data.cell,\n    si = data.si;\n  var sheet = M.getSheet(args.spread, si);\n  M.getCellValid(cell, sheet, args.props);\n}\n\n/**\n * 恢复默认设置\n * @param {*} data\n * @param {*} args {type:{},}\n */\n\nfunction resetContextMenu() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var args = arguments.length > 1 ? arguments[1] : undefined;\n  var type = data.type,\n    si = data.si;\n  var spread = args.spread;\n  var sheet = M.getSheet(spread, si);\n  if (type === 'formula') {\n    M.removeCustomFunction(sheet, 'all');\n  }\n  if (type === 'contextMenu') {\n    spread.contextMenu.menuData = _defaultMenuList.defaultMenuList;\n  }\n}\n\n/**\n * 设置分组工具栏\n * @param {Array} data - 分组列表\n * [\n {\n  name: '默认',\n  key: 'default',\n  toolbarItems: ['FontStyle','Undo', // 默认功能\n   {\n    key: 'AutoFitColumn', // 自定义功能，具体参数祥见工具栏扩展方案\n    icon: 'kdfont-zishiying',\n    title: '宽度自适应',\n    callback: 'autoFitColumn',\n    invokeAction: 'invokeAction',\n    isCustom: true, // 自定义功能必填\n    item: [\n     {\n      icon: '',\n      title: '',\n      callback: '',\n      invokeAction: '',\n      key: 'AutoFitColumn001',\n     },\n    ],\n   },\n  ],\n }\n]\n * @param {Object} args - ReportGrid\n */\nfunction setToolbarGroups() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var args = arguments.length > 1 ? arguments[1] : undefined;\n  var dataPipeModel = args.dataPipeModel;\n  M.setToolbarGroups(data, dataPipeModel);\n}\n/**\n * 配置哪些执行指令前需要暂停的异步公式的计算\n * @param {*} data {list:['ssss']}\n * @param {*} args\n */\nfunction stopAsyncCalculatyList(data, args) {\n  var _data$list;\n  if ((data === null || data === void 0 || (_data$list = data.list) === null || _data$list === void 0 ? void 0 : _data$list.length) > 0) {\n    args.dataPipeModel.setSpreadData('asyncCalculatyList', data.list);\n  }\n}\n\n/**\n * 设置工具栏底部自定义按钮\n * @param {Object} data - { itemConfig: {...}, inputConfig: {...} }\n * @param {Object} args - ReportGrid\n */\nfunction setToolbarCustomExpend(data, args) {\n  var _data$itemConfig = data.itemConfig,\n    itemConfig = _data$itemConfig === void 0 ? {} : _data$itemConfig,\n    _data$inputConfig = data.inputConfig,\n    inputConfig = _data$inputConfig === void 0 ? {} : _data$inputConfig;\n  var dataPipeModel = args.dataPipeModel;\n  dataPipeModel.sendData({\n    type: 'SetToolbarCustomExpend',\n    customItem: itemConfig,\n    customInput: inputConfig\n  });\n}\n\n/**\n * 设置工具栏底部自定义按钮\n * @param {Object} data - 自定义item参数，与工具栏自定义按钮相同\n * @param {Object} args - ReportGrid\n */\nfunction setToolbarCustomInputValue(data, args) {\n  var dataPipeModel = args.dataPipeModel;\n  dataPipeModel.sendData({\n    type: 'SetToolbarCustomInputValue',\n    customInput: data\n  });\n}\n\n/**\n * 自定义sheet标签页菜单\n * @param {Object} data - 自定义菜单数组\n * @param {Object} args - ReportGrid\n */\nfunction setCustomSheetMenu(data, args) {\n  if (Array.isArray(data)) {\n    M.setCustomSheetMenu(data, args);\n  } else {\n    _console[\"default\"].warn(\"customSheetMenu\\u671F\\u671B\\u7684\\u6570\\u636E\\u7C7B\\u578B\\u662F\\u6570\\u7EC4\\uFF0C\\u5B9E\\u9645\\u662F\".concat(data));\n  }\n}\n\n/**\n * 隐藏行\n * @param {Object} data - 隐藏行 {data:[], si:,isUndo:false}|| {data: [{ index:, count: }], si:,isUndo:false}\n * @param {Object} args - ReportGrid\n */\nfunction hideRow(data, args) {\n  var dataArgs = data.data,\n    si = data.si,\n    isUndo = data.isUndo;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo) {\n    args.dataPipeModel.sendData({\n      type: commandName.KD_SET_ROW_OR_COL_VISIBLE,\n      data: _objectSpread(_objectSpread({}, data), {}, {\n        type: 'hideRow'\n      }),\n      sheet: args.spread.getActiveSheet()\n    });\n  } else {\n    M.setRowOrColVisible(dataArgs, sheet, false, 'row');\n  }\n}\n\n/**\n * 显示行\n * @param {Object} data - 显示行 {data:[], si:,isUndo:false}|| {data: [{ index:, count: }], si:,isUndo:false}\n * @param {Object} args - ReportGrid\n */\nfunction unhideRow(data, args) {\n  var dataArgs = data.data,\n    si = data.si,\n    isUndo = data.isUndo;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo) {\n    args.dataPipeModel.sendData({\n      type: commandName.KD_SET_ROW_OR_COL_VISIBLE,\n      data: _objectSpread(_objectSpread({}, data), {}, {\n        type: 'unhideRow'\n      }),\n      sheet: args.spread.getActiveSheet()\n    });\n  } else {\n    M.setRowOrColVisible(dataArgs, sheet, true, 'row');\n  }\n}\n\n/**\n * 隐藏列\n * @param {Object} data - 隐藏行 {data:[], si:,isUndo:false}|| {data: [{ index:, count: }], si:,isUndo:false}\n * @param {Object} args - ReportGrid\n */\nfunction hideColumn(data, args) {\n  var dataArgs = data.data,\n    si = data.si,\n    isUndo = data.isUndo;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo) {\n    args.dataPipeModel.sendData({\n      type: commandName.KD_SET_ROW_OR_COL_VISIBLE,\n      data: _objectSpread(_objectSpread({}, data), {}, {\n        type: 'hideColumn'\n      }),\n      sheet: args.spread.getActiveSheet()\n    });\n  } else {\n    M.setRowOrColVisible(dataArgs, sheet, false, 'column');\n  }\n}\n\n/**\n * 显示列\n * @param {Object} data - 显示列 {data:[], si:,isUndo:false}|| {data: [{ index:, count: }], si:,isUndo:false}\n * @param {Object} args - ReportGrid\n */\nfunction unhideColumn(data, args) {\n  var dataArgs = data.data,\n    si = data.si,\n    isUndo = data.isUndo;\n  var sheet = M.getSheet(args.spread, si);\n  if (isUndo) {\n    args.dataPipeModel.sendData({\n      type: commandName.KD_SET_ROW_OR_COL_VISIBLE,\n      data: _objectSpread(_objectSpread({}, data), {}, {\n        type: 'unhideColumn'\n      }),\n      sheet: args.spread.getActiveSheet()\n    });\n  } else {\n    M.setRowOrColVisible(dataArgs, sheet, true, 'column');\n  }\n}\n\n/**\n * 设置spread全局参数\n * @param {Object} data - 设置的参数 {data: {key: value}}\n * @param {Object} args - ReportGrid\n */\nfunction setSpreadParams(data, args) {\n  var dataArgs = data.data;\n  if (_typeof(dataArgs) === 'object') {\n    args.spread.serverSpreadParams = dataArgs;\n    M.setSpreadParamsCallback(dataArgs, args);\n  } else {\n    _console[\"default\"].warn(\"\\u53C2\\u6570\\u7C7B\\u578B\\u9519\\u8BEF\\uFF0C\\u671F\\u671B\\u6536\\u5230\\u7684\\u53C2\\u6570\\u7C7B\\u578B\\u662F\\uFF1Aobject\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536\\u5230\\u7684\\u53C2\\u6570\\u7C7B\\u578B\\u662F\\uFF1A\".concat(_typeof(dataArgs)));\n  }\n}\n\n/**\n * 设置GC层面的参数\n * @param {Object} data - 设置的参数 {data: {key: value}}\n * @param {Object} args - ReportGrid\n */\nfunction setGCParams(data, args) {\n  var dataArgs = data.data;\n  if (_typeof(dataArgs) === 'object') {\n    M.setGCParams(dataArgs, args);\n  } else {\n    _console[\"default\"].warn(\"\\u53C2\\u6570\\u7C7B\\u578B\\u9519\\u8BEF\\uFF0C\\u671F\\u671B\\u6536\\u5230\\u7684\\u53C2\\u6570\\u7C7B\\u578B\\u662F\\uFF1Aobject\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536\\u5230\\u7684\\u53C2\\u6570\\u7C7B\\u578B\\u662F\\uFF1A\".concat(_typeof(dataArgs)));\n  }\n}\n\n/**\n * 多表联动，仅仅对各个当前活动的工作表进行联动处理\n * @param {Object} data - 多表联动参数 { slaveSpreadKeys: [key2, key3], syncOptions: [scrollBar, rowHeight, colWidth, zoom], sync: true }\n * @param {Object} args - ReportGrid\n */\nfunction syncSpreads(data, args) {\n  var _data$slaveSpreadKeys = data.slaveSpreadKeys,\n    slaveSpreadKeys = _data$slaveSpreadKeys === void 0 ? [] : _data$slaveSpreadKeys,\n    syncOptions = data.syncOptions,\n    _data$sync = data.sync,\n    sync = _data$sync === void 0 ? true : _data$sync;\n  var spread = args.spread,\n    props = args.props;\n  var _props$model2 = props.model,\n    pageId = _props$model2.pageId,\n    key = _props$model2.key;\n  var listenerKey = \"\".concat(key, \"_\").concat(slaveSpreadKeys.join('_')); // 添加监听key，作为监听的唯一key值，否则listener会被覆盖\n\n  var removeListener = function removeListener(listenerKey) {\n    var unBindSyncSheetEvents = (0, _memoryCacher.getPageData)(pageId, [key, listenerKey]);\n    if (unBindSyncSheetEvents) {\n      unBindSyncSheetEvents();\n      (0, _memoryCacher.deletePageData)(pageId, [key, listenerKey]);\n    }\n  };\n  if (sync) {\n    var slaveSpread = slaveSpreadKeys.map(function (slaveSpreadKey) {\n      var _document$getElementB;\n      var spradDOM = (_document$getElementB = document.getElementById(\"\".concat(pageId).concat(slaveSpreadKey))) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.querySelector('[gcuielement=\"gcSpread\"]');\n      var spreadCase = _spreadSheets[\"default\"].Spread.Sheets.findControl(spradDOM);\n      return spreadCase;\n    }).filter(function (spreadCase) {\n      return spreadCase;\n    });\n    if (slaveSpread.length === 0) return;\n    var allSyncSpreads = [spread].concat(slaveSpread);\n    removeListener(listenerKey); // 存在重复key事件绑定时，先移除旧的\n    var unBindSyncSheetEvents = M.bindSyncSheetEvents(spread, slaveSpread, syncOptions, listenerKey);\n    (0, _memoryCacher.setPageData)(pageId, [key, listenerKey], unBindSyncSheetEvents);\n    allSyncSpreads.forEach(function (allSyncSpread) {\n      allSyncSpread.bind(_spreadSheets[\"default\"].Spread.Sheets.Events.ActiveSheetChanged, function (e, args) {\n        var lastUnBindSyncSheetEvents = (0, _memoryCacher.getPageData)(pageId, [key, listenerKey]);\n        lastUnBindSyncSheetEvents();\n        lastUnBindSyncSheetEvents = M.bindSyncSheetEvents(spread, slaveSpread, syncOptions, listenerKey); // 切换工作表时新的工作表也需要联动\n        (0, _memoryCacher.setPageData)(pageId, [key, listenerKey], lastUnBindSyncSheetEvents);\n      });\n    });\n  } else {\n    removeListener(listenerKey);\n  }\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.beforeExportExcel = exports.batchRequestData = exports.batchExportExcelFiles = exports.autoFitRows = exports.autoFitColumns = exports.appRows = exports.appCols = exports.afterExportExcel = exports.addSheets = exports.addRows = exports.addContextMenuItem = exports.addCols = void 0;\nexports.bindSyncSheetEvents = bindSyncSheetEvents;\nexports.getValue = exports.getSheet = exports.getRangeValues = exports.getRangeStyles = exports.getLockedCells = exports.getFormula = exports.getCellValid = exports.frozenSheet = exports.fieldInsertRow = exports.fieldInsertCol = exports.fieldDeleteRow = exports.fieldDeleteCol = exports.exportExcelFile = exports.excuteToolbarAction = exports.deleteSheets = exports.deleteRows = exports.deleteContextMenuItems = exports.deleteCols = exports.copyValuesTo = exports.copyStylesTo = exports.copyCellSize = exports.convertSSJson = exports.controlToolbarItems = exports.clearCellsStyle = exports.cellFormat = void 0;\nexports.handleNamedStyles = handleNamedStyles;\nexports.setRowFilter = exports.setHyperLinkCell = exports.setGCParams = exports.setFormula = exports.setFListCell = exports.setDisplayContent = exports.setCustomSheetMenu = exports.setCustomFormulaCell = exports.setCustomBtnCell = exports.setCornerMark = exports.setConditionalFormatting = exports.setComment = exports.setComboCell = exports.setColumnsWidth = exports.setCheckboxCell = exports.setCellTag = exports.setCellStyle = exports.setBtnCell = exports.setAllCustomFormulaCell = exports.resetCell = exports.removeValidator = exports.removeCustomFunction = exports.registerCustomFormula = exports.registerAsyncFunction = exports.print = exports.newGetRangeValues = exports.lockToolbarItem = exports.lockToolbar = exports.lockSheet = exports.lockCell = exports.hideZero = exports.hideToolbarItem = exports.hideContextMenuItem = exports.hideContextMenu = void 0;\nexports.setRowOrColVisible = setRowOrColVisible;\nexports.unlockSheet = exports.unlockCell = exports.spreadCopyTo = exports.setWorksheetOptions = exports.setValue = exports.setValidator = exports.setToolbarGroups = exports.setTimeSeleCell = exports.setSpreadParamsCallback = exports.setSpan = exports.setShortcutKey = exports.setSheetsVisible = exports.setSelections = exports.setRowsHeight = void 0;\nexports.updateCustomFormulaValue = updateCustomFormulaValue;\nexports.zoomChangeLicense = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.every.js */ \"../../node_modules/core-js/modules/es.array.every.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\nvar _fileSaver = _interopRequireDefault(__webpack_require__(/*! file-saver */ \"../../node_modules/file-saver/dist/FileSaver.min.js\"));\nvar _serverproperties = __webpack_require__(/*! @/constant/serverproperties.js */ \"./src/constant/serverproperties.js\");\nvar _actionUtils = __webpack_require__(/*! ./actionUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/actionUtils.js\");\nvar _reportUtils = __webpack_require__(/*! ../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _serverproperties2 = __webpack_require__(/*! @/constant/serverproperties */ \"./src/constant/serverproperties.js\");\nvar Format = _interopRequireWildcard(__webpack_require__(/*! ../utils/convertFormat */ \"./src/component/web/DataGrid/ReportGrid/utils/convertFormat.js\"));\nvar _bindEvent = __webpack_require__(/*! ../events/bindEvent */ \"./src/component/web/DataGrid/ReportGrid/events/bindEvent.js\");\nvar _eventHandle = __webpack_require__(/*! ../events/eventHandle */ \"./src/component/web/DataGrid/ReportGrid/events/eventHandle.js\");\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _utils = __webpack_require__(/*! ../utils */ \"./src/component/web/DataGrid/ReportGrid/utils/index.js\");\nvar _toolbarTopUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\");\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _console = _interopRequireDefault(__webpack_require__(/*! @/api/console.js */ \"./src/api/console.js\"));\nvar _getRandom = _interopRequireDefault(__webpack_require__(/*! @/util/getRandom.js */ \"./src/util/getRandom.js\"));\nvar _commandUtils = __webpack_require__(/*! ../commands/commandUtils */ \"./src/component/web/DataGrid/ReportGrid/commands/commandUtils.js\");\nvar _serverSpreadParams = __webpack_require__(/*! ../constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nvar _kdSpreadMenuList = __webpack_require__(/*! ../contextMenu/kdSpreadMenuList */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/kdSpreadMenuList.js\");\nvar customCommandName = _interopRequireWildcard(__webpack_require__(/*! ../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\"));\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /**\n * 后端指令的具体处理方法\n * by kechuang\n */ // import timeSlicing from '@/util/timeSlicing.js'\n// const MAX_RUN_TIME = 180\n// const timeSlicingConfig = { timeCallback: next => next(), maxRunTime: MAX_RUN_TIME }\n\nvar getSheet = exports.getSheet = function getSheet(spread, index) {\n  return spread.getSheet(index) || spread.getActiveSheet();\n};\nvar appRows = exports.appRows = function appRows(index, count) {\n  return function (sheet) {\n    sheet.addRows(index, count);\n  };\n};\nvar appCols = exports.appCols = function appCols(index, count) {\n  return function (sheet) {\n    sheet.addColumns(index, count);\n  };\n};\nvar addRows = exports.addRows = function addRows(data, copyStyle, dir, copySize, copySpans) {\n  return function (sheet) {\n    var cc = sheet.getColumnCount();\n    var sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport;\n    var option = _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.style;\n    var _iterator = _createForOfIteratorHelper(data),\n      _step;\n    try {\n      var _loop = function _loop() {\n        var item = _step.value;\n        if (_typeof(item) === 'object') {\n          var index = item.index,\n            count = item.count;\n          var height = sheet.getRowHeight(index, sheetArea) || sheet.defaults.rowHeight || 20;\n          var spans = copySpans ? sheet.getSpans(sheet.getRange(index, -1, 1, 1)) : [];\n          dir === 'bottom' ? sheet.addRows(index + 1, count) : sheet.addRows(index, count);\n          if (copyStyle !== false) {\n            var _loop2 = function _loop2(i) {\n              if (dir === 'bottom') {\n                spans.forEach(function (_ref) {\n                  var col = _ref.col,\n                    colCount = _ref.colCount,\n                    row = _ref.row,\n                    rowCount = _ref.rowCount;\n                  if (index + i + 1 <= row || index + i + 1 >= row + rowCount) {\n                    sheet.addSpan(index + i + 1, col, 1, colCount);\n                  }\n                });\n                sheet.setRowHeight(index + i + 1, height, sheetArea);\n                sheet.copyTo(index, 0, index + i + 1, 0, 1, cc, option);\n              } else {\n                spans.forEach(function (_ref2) {\n                  var col = _ref2.col,\n                    colCount = _ref2.colCount,\n                    row = _ref2.row,\n                    rowCount = _ref2.rowCount;\n                  if (index + i <= row || index + i >= row + rowCount) {\n                    sheet.addSpan(index + i, col, 1, colCount);\n                  }\n                });\n                sheet.setRowHeight(index + i, height, sheetArea);\n                sheet.copyTo(index + count, 0, index + i, 0, 1, cc, option);\n              }\n            };\n            // 支持不带样式的新增行\n            for (var i = 0; i < count; i++) {\n              _loop2(i);\n            }\n          } else if (copySize) {\n            for (var _i = 0; _i < count; _i++) {\n              if (dir === 'bottom') {\n                sheet.setRowHeight(index + _i + 1, height, sheetArea);\n              } else {\n                sheet.setRowHeight(index + _i, height, sheetArea);\n              }\n            }\n          }\n        } else {\n          var _height = sheet.getRowHeight(item, sheetArea);\n          var _spans = copySpans ? sheet.getSpans(sheet.getRange(item, -1, 1, 1)) : [];\n          dir === 'bottom' ? sheet.addRows(item + 1, 1) : sheet.addRows(item, 1);\n          if (copyStyle !== false) {\n            if (dir === 'bottom') {\n              _spans.forEach(function (_ref3) {\n                var col = _ref3.col,\n                  colCount = _ref3.colCount,\n                  row = _ref3.row,\n                  rowCount = _ref3.rowCount;\n                if (item + 1 <= row || item + 1 >= row + rowCount) {\n                  sheet.addSpan(item + 1, col, 1, colCount);\n                }\n              });\n              sheet.setRowHeight(item + 1, _height, sheetArea);\n              sheet.copyTo(item, 0, item + 1, 0, 1, cc, option);\n            } else {\n              _spans.forEach(function (_ref4) {\n                var col = _ref4.col,\n                  colCount = _ref4.colCount,\n                  row = _ref4.row,\n                  rowCount = _ref4.rowCount;\n                if (item <= row || item >= row + rowCount) {\n                  sheet.addSpan(item, col, 1, colCount);\n                }\n              });\n              sheet.setRowHeight(item, _height, sheetArea);\n              sheet.copyTo(item + 1, 0, item, 0, 1, cc, option);\n            }\n          } else if (copySize) {\n            if (dir === 'bottom') {\n              sheet.setRowHeight(item + 1, _height, sheetArea);\n            } else {\n              sheet.setRowHeight(item, _height, sheetArea);\n            }\n          }\n        }\n      };\n      for (_iterator.s(); !(_step = _iterator.n()).done;) {\n        _loop();\n      }\n    } catch (err) {\n      _iterator.e(err);\n    } finally {\n      _iterator.f();\n    }\n  };\n};\nvar addCols = exports.addCols = function addCols(data, copyStyle, dir, copySize) {\n  return function (sheet) {\n    var rc = sheet.getRowCount();\n    var sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport;\n    var option = _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.style;\n    var _iterator2 = _createForOfIteratorHelper(data),\n      _step2;\n    try {\n      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n        var item = _step2.value;\n        if (_typeof(item) === 'object') {\n          var index = item.index,\n            count = item.count;\n          var width = sheet.getColumnWidth(index, sheetArea) || sheet.defaults.colWidth || 62;\n          dir === 'after' ? sheet.addColumns(index + 1, count) : sheet.addColumns(index, count);\n          if (copyStyle !== false) {\n            // 支持不带样式的新增行\n            for (var i = 0; i < count; i++) {\n              if (dir === 'after') {\n                sheet.setColumnWidth(index + i + 1, width, sheetArea);\n                sheet.copyTo(0, index, 0, index + i + 1, rc, 1, option);\n              } else {\n                sheet.setColumnWidth(index + i, width, sheetArea);\n                sheet.copyTo(0, index + count, 0, index + i, rc, 1, option);\n              }\n            }\n          } else if (copySize) {\n            for (var _i2 = 0; _i2 < count; _i2++) {\n              if (dir === 'after') {\n                sheet.setColumnWidth(index + _i2 + 1, width, sheetArea);\n              } else {\n                sheet.setColumnWidth(index + _i2, width, sheetArea);\n              }\n            }\n          }\n        } else {\n          var _width = sheet.getColumnWidth(item, sheetArea);\n          dir === 'after' ? sheet.addColumns(item + 1, 1) : sheet.addColumns(item, 1);\n          if (copyStyle !== false) {\n            if (dir === 'after') {\n              sheet.setColumnWidth(item + 1, _width, sheetArea);\n              sheet.copyTo(0, item, 0, item + 1, rc, 1, option);\n            } else {\n              sheet.setColumnWidth(item, _width, sheetArea);\n              sheet.copyTo(0, item + 1, 0, item, rc, 1, option);\n            }\n          } else if (copySize) {\n            if (dir === 'after') {\n              sheet.setColumnWidth(item + 1, _width, sheetArea);\n            } else {\n              sheet.setColumnWidth(item, _width, sheetArea);\n            }\n          }\n        }\n      }\n    } catch (err) {\n      _iterator2.e(err);\n    } finally {\n      _iterator2.f();\n    }\n  };\n};\nvar deleteRows = exports.deleteRows = function deleteRows(data) {\n  return function (sheet) {\n    var _iterator3 = _createForOfIteratorHelper(data),\n      _step3;\n    try {\n      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n        var item = _step3.value;\n        if (_typeof(item) === 'object') {\n          var index = item.index,\n            count = item.count;\n          sheet.deleteRows(index, count);\n        } else {\n          sheet.deleteRows(item, 1);\n        }\n      }\n    } catch (err) {\n      _iterator3.e(err);\n    } finally {\n      _iterator3.f();\n    }\n  };\n};\nvar deleteCols = exports.deleteCols = function deleteCols(data) {\n  return function (sheet) {\n    var _iterator4 = _createForOfIteratorHelper(data),\n      _step4;\n    try {\n      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n        var item = _step4.value;\n        if (_typeof(item) === 'object') {\n          var index = item.index,\n            count = item.count;\n          sheet.deleteColumns(index, count);\n        } else {\n          sheet.deleteColumns(item, 1);\n        }\n      }\n    } catch (err) {\n      _iterator4.e(err);\n    } finally {\n      _iterator4.f();\n    }\n  };\n};\nvar setColumnsWidth = exports.setColumnsWidth = function setColumnsWidth(index, num, area) {\n  return function (sheet) {\n    var sheetArea = (0, _actionUtils.createArea)(area);\n    var _iterator5 = _createForOfIteratorHelper(index),\n      _step5;\n    try {\n      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n        var item = _step5.value;\n        sheet.setColumnWidth(item, num, sheetArea);\n      }\n    } catch (err) {\n      _iterator5.e(err);\n    } finally {\n      _iterator5.f();\n    }\n  };\n};\nvar setRowsHeight = exports.setRowsHeight = function setRowsHeight(index, num, area) {\n  return function (sheet) {\n    var sheetArea = (0, _actionUtils.createArea)(area);\n    var _iterator6 = _createForOfIteratorHelper(index),\n      _step6;\n    try {\n      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n        var item = _step6.value;\n        sheet.setRowHeight(item, num, sheetArea);\n      }\n    } catch (err) {\n      _iterator6.e(err);\n    } finally {\n      _iterator6.f();\n    }\n  };\n};\n// f:\"0.00_);(0.00)\"\nvar cellFormat = exports.cellFormat = function cellFormat(r, c, f) {\n  return function (sheet) {\n    sheet.getCell(r, c).formatter(f);\n  };\n};\nvar setValue = exports.setValue = function setValue(r, c, v, area) {\n  return function (sheet) {\n    sheet.getCell(r, c, area).value(v);\n  };\n};\nvar getValue = exports.getValue = function getValue(r, c) {\n  return function (sheet) {\n    return sheet.getCell(r, c).value(); // text();\n  };\n};\n// 锁定单元格，sheet单元格默认是锁定的 spread默认不是保护状态，保护状态下的锁定才生效\nvar lockCell = exports.lockCell = function lockCell(ranges) {\n  return function (sheet) {\n    var _iterator7 = _createForOfIteratorHelper(ranges),\n      _step7;\n    try {\n      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n        var range = _step7.value;\n        sheet.getRange(range.r, range.c, range.rc, range.cc).locked(true);\n      }\n    } catch (err) {\n      _iterator7.e(err);\n    } finally {\n      _iterator7.f();\n    }\n    (0, _reportUtils.protectSheet)(sheet);\n  };\n};\nvar unlockCell = exports.unlockCell = function unlockCell(ranges) {\n  return function (sheet) {\n    var _iterator8 = _createForOfIteratorHelper(ranges),\n      _step8;\n    try {\n      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n        var range = _step8.value;\n        sheet.getRange(range.r, range.c, range.rc, range.cc).locked(false);\n      }\n    } catch (err) {\n      _iterator8.e(err);\n    } finally {\n      _iterator8.f();\n    }\n    (0, _reportUtils.protectSheet)(sheet);\n  };\n};\nvar lockSheet = exports.lockSheet = function lockSheet() {\n  return function (sheet) {\n    (0, _actionUtils.lockOrUnlockCell)(sheet, true);\n    (0, _reportUtils.protectSheet)(sheet);\n  };\n};\nvar unlockSheet = exports.unlockSheet = function unlockSheet() {\n  return function (sheet) {\n    sheet.options.isProtected = false;\n    (0, _actionUtils.lockOrUnlockCell)(sheet, false);\n  };\n};\nvar setSpan = exports.setSpan = function setSpan(data) {\n  return function (sheet) {\n    var ranges = data.range;\n    ranges.forEach(function (item) {\n      try {\n        sheet.addSpan(item.r, item.c, item.rc, item.cc); // 合并可能会出现无效区间的情况，这个时候剩下的指令会中断\n      } catch (error) {\n        _console[\"default\"].error(error);\n      }\n    });\n  };\n};\nvar setCellStyle = exports.setCellStyle = function setCellStyle(data) {\n  return function (sheet) {\n    var _iterator9 = _createForOfIteratorHelper(data),\n      _step9;\n    try {\n      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n        var item = _step9.value;\n        if (item.style[_serverproperties2.LOCKED]) {\n          (0, _reportUtils.protectSheet)(sheet); // 设置单元格锁定表单需要处于保护状态\n        }\n        var ranges = item.range;\n        var sheetArea = (0, _actionUtils.createArea)(item.area);\n        for (var i = 0; i < ranges.length; i++) {\n          var _ranges$i = ranges[i],\n            r = _ranges$i.r,\n            c = _ranges$i.c,\n            rc = _ranges$i.rc,\n            cc = _ranges$i.cc;\n          rc = rc === -1 || rc > sheet.getRowCount ? sheet.getRowCount : rc;\n          cc = cc === -1 || cc > sheet.getColumnCount ? sheet.getColumnCount : cc;\n          for (var _i3 = r; _i3 < rc + r; _i3++) {\n            for (var j = c; j < cc + c; j++) {\n              var originStyle = sheet.getStyle(_i3, j);\n              // 每个单元格要设置一个独立的样式对象，否则会在paint时会相互影响\n              var style = new _spreadSheets[\"default\"].Spread.Sheets.Style();\n              var newStyle = (0, _actionUtils.analysisStyle)(item.style);\n              style = Object.assign(style, originStyle, newStyle);\n              sheet.setStyle(_i3, j, style, sheetArea);\n            }\n          }\n        }\n      }\n    } catch (err) {\n      _iterator9.e(err);\n    } finally {\n      _iterator9.f();\n    }\n  };\n};\nvar getRangeStyles = exports.getRangeStyles = function getRangeStyles(range) {\n  return function (sheet) {\n    var styles = [];\n    range.forEach(function (item) {\n      for (var i = item.r; i < item.rc + item.r; i++) {\n        for (var j = item.c; j < item.cc + item.c; j++) {\n          var style = sheet.getStyle(i, j);\n          styles.push({\n            style: style,\n            r: i,\n            c: j\n          });\n        }\n      }\n    });\n    return styles;\n  };\n};\nvar copyStylesTo = exports.copyStylesTo = function copyStylesTo(range) {\n  return function (sheet) {\n    range.forEach(function (item) {\n      var toRow = item.toRow,\n        toCol = item.toCol,\n        fromRow = item.fromRow,\n        fromCol = item.fromCol,\n        formRow = item.formRow,\n        formCol = item.formCol,\n        rc = item.rc,\n        cc = item.cc;\n      for (var i = 0; i < rc; i++) {\n        for (var j = 0; j < cc; j++) {\n          var _ref5, _ref6;\n          var locked = sheet.getRange(i + toRow, j + toCol).locked();\n          var isF7 = sheet.getCellType((_ref5 = i + fromRow) !== null && _ref5 !== void 0 ? _ref5 : formRow, j + (fromCol !== null && fromCol !== void 0 ? fromCol : formCol)).typeName === 'f7';\n          if (locked || isF7) continue;\n          var originStyle = sheet.getStyle((_ref6 = i + fromRow) !== null && _ref6 !== void 0 ? _ref6 : formRow, j + (fromCol !== null && fromCol !== void 0 ? fromCol : formCol));\n          // 每个单元格要设置一个独立的样式对象，否则会在paint时会相互影响\n          var style = new _spreadSheets[\"default\"].Spread.Sheets.Style();\n          style = Object.assign(style, originStyle);\n          sheet.setStyle(i + toRow, j + toCol, style);\n        }\n      }\n    });\n  };\n};\nvar copyCellSize = exports.copyCellSize = function copyCellSize(range, sheet) {\n  var sheetArea = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport;\n  range.forEach(function (item) {\n    var toRow = item.toRow,\n      toCol = item.toCol,\n      fromRow = item.fromRow,\n      fromCol = item.fromCol,\n      rc = item.rc,\n      cc = item.cc;\n    var isRowHeader = toCol === 0 && fromCol === 0;\n    var isColHeader = toRow === 0 && fromRow === 0;\n    if (isRowHeader) {\n      for (var i = 0; i < rc; i++) {\n        var height = sheet.getRowHeight(fromRow, sheetArea);\n        sheet.setRowHeight(toRow + i, height, sheetArea);\n      }\n    } else if (isColHeader) {\n      for (var _i4 = 0; _i4 < cc; _i4++) {\n        var width = sheet.getColumnWidth(fromCol, sheetArea);\n        sheet.setColumnWidth(toCol + _i4, width, sheetArea);\n      }\n    }\n  });\n};\nvar copyValuesTo = exports.copyValuesTo = function copyValuesTo(range, sheet, props, si) {\n  var dispatch = props.dispatch,\n    model = props.model;\n  range.forEach(function (item) {\n    var toRow = item.toRow,\n      toCol = item.toCol,\n      fromRow = item.fromRow,\n      fromCol = item.fromCol,\n      rc = item.rc,\n      cc = item.cc;\n    var cellValues = [];\n    for (var i = 0; i < rc; i++) {\n      for (var j = 0; j < cc; j++) {\n        var isF7 = sheet.getCellType(i + fromRow, j + fromCol).typeName === 'f7';\n        if (isF7) continue;\n        var v = sheet.getValue(i + fromRow, j + fromCol);\n        var f = sheet.getFormula(i + fromRow, j + fromCol);\n        if (v !== null) {\n          cellValues.push({\n            r: i + toRow,\n            c: j + toCol,\n            v: v\n          });\n          sheet.setValue(i + toRow, j + toCol, v);\n        }\n        f && sheet.setFormula(i + toRow, j + toCol, f);\n      }\n    }\n    if (cellValues.length > 0) {\n      // 先发公式更新 再发值更新\n      setTimeout(function () {\n        dispatch((0, _gridaction.invokeControlMethodOnly)(model, 'updateValue', [{\n          si: si,\n          values: cellValues\n        }]));\n      }, 0);\n    }\n  });\n};\n\n/**\n * 调用spread官方接口进行单元格复制\n * @param {Object} sheet - 工作表\n * @param {Number} si - sheetIndex（工作表索引）\n * @param {Array} range - 需要进行操作的单元格\n * @param {Number} type - 复制操作 0：全部，1：值，2：样式\n * @param {Object} props - props\n */\nvar spreadCopyTo = exports.spreadCopyTo = function spreadCopyTo(sheet, si, range, type, props) {\n  var selection = range.filter(function (item) {\n    var fromRow = item.fromRow,\n      fromColumn = item.fromCol,\n      toRow = item.toRow,\n      toColumn = item.toCol,\n      rowCount = item.rc,\n      columnCount = item.cc;\n    // 对单元格进行复制操作\n    if (type === 0) {\n      sheet.copyTo(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, 2047);\n    } else if (type === 1) {\n      sheet.copyTo(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, 1 | 2); // 复制值与公式\n    } else if (type === 2) {\n      sheet.copyTo(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, 64);\n      return null; // 没有发生值改变时不用通知后端\n    }\n    // 返回复制的单元格，网络请求通知后端\n    return {\n      row: item.toRow,\n      col: item.toCol,\n      rowCount: item.rc,\n      colCount: item.cc\n    };\n  });\n  var _getCellsValueAndForm = (0, _commandUtils.getCellsValueAndFormula)(sheet, selection),\n    cellsValue = _getCellsValueAndForm.cellsValue,\n    cellsFormula = _getCellsValueAndForm.cellsFormula;\n  cellsFormula.length > 0 && props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, 'updateFormula', [{\n    si: si,\n    formulas: cellsFormula\n  }]));\n  cellsValue.length > 0 && props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, 'updateValue', [{\n    si: si,\n    values: cellsValue\n  }]));\n};\nvar fieldInsertRow = exports.fieldInsertRow = function fieldInsertRow(range, index, count, styleIndex, copySize) {\n  return function (sheet) {\n    var fr = index;\n    var fc = range.c;\n    var tr = fr + count;\n    var tc = fc;\n    var rc = range.rc - index + range.r;\n    var cc = range.cc;\n    var allCC = sheet.getColumnCount();\n    var allRC = sheet.getRowCount();\n    if (range.cc + range.c > allCC || range.rc + range.r > allRC || count > allRC) return;\n    if (index < range.r || index > range.rc + range.r) return;\n    try {\n      (0, _actionUtils.moveTo)(fr, fc, tr, tc, rc, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all)(sheet);\n    } catch (err) {\n      _console[\"default\"].log(err);\n    }\n    var si = styleIndex < index ? styleIndex : styleIndex + count;\n    var height = sheet.getRowHeight(si, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n    var width = sheet.getColumnWidth(si, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n    for (var i = 0; i < count; i++) {\n      var sr = index + i;\n      sheet.copyTo(si, fc, sr, fc, 1, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.style);\n      if (copySize) {\n        sheet.setRowHeight(sr, height, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n        sheet.setColumnWidth(sr, width, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n      }\n    }\n\n    // sheet.clear(fr,fc,count,range.cc);\n  };\n};\nvar fieldInsertCol = exports.fieldInsertCol = function fieldInsertCol(range, index, count, styleIndex, copySize) {\n  return function (sheet) {\n    var fr = range.r;\n    var fc = index;\n    var tr = fr;\n    var tc = fc + count;\n    var rc = range.rc;\n    var cc = range.cc - index + range.c;\n    var allCC = sheet.getColumnCount();\n    var allRC = sheet.getRowCount();\n    if (range.cc + range.c > allCC || range.rc + range.r > allRC || count > allCC) return;\n    if (index < range.c || index > range.cc + range.c) return;\n    try {\n      (0, _actionUtils.moveTo)(fr, fc, tr, tc, rc, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all)(sheet);\n    } catch (err) {\n      _console[\"default\"].log(err);\n    }\n    var si = styleIndex < index ? styleIndex : styleIndex + count;\n    var height = sheet.getRowHeight(si, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n    var width = sheet.getColumnWidth(si, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n    for (var i = 0; i < count; i++) {\n      var sr = index + i;\n      sheet.copyTo(fr, si, fr, sr, rc, 1, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.style);\n      if (copySize) {\n        sheet.setRowHeight(sr, height, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n        sheet.setColumnWidth(sr, width, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n      }\n    }\n  };\n};\nvar fieldDeleteRow = exports.fieldDeleteRow = function fieldDeleteRow(range, index, count) {\n  return function (sheet) {\n    var fr = index + count;\n    var fc = range.c;\n    var tr = index;\n    var tc = fc;\n    var rc = range.rc + range.r - index - count;\n    var cc = range.cc;\n    sheet.suppressRangeChanged = true;\n    if (rc <= 0) {\n      sheet.getRange(index, fc, count, cc).clear(3);\n    } else if (rc < count) {\n      (0, _actionUtils.moveTo)(fr, fc, tr, tc, rc, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all)(sheet);\n      sheet.getRange(index + rc, fc, count - rc, cc).clear(3);\n    } else {\n      (0, _actionUtils.moveTo)(fr, fc, tr, tc, rc, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all)(sheet);\n    }\n    sheet.suppressRangeChanged = false;\n  };\n};\nvar fieldDeleteCol = exports.fieldDeleteCol = function fieldDeleteCol(range, index, count) {\n  return function (sheet) {\n    var fr = range.r;\n    var fc = index + count;\n    var tr = fr;\n    var tc = index;\n    var rc = range.rc;\n    var cc = range.cc + range.c - index - count;\n    sheet.suppressRangeChanged = true;\n    if (cc <= 0) {\n      sheet.getRange(fr, index, rc, count).clear(3);\n    } else if (cc < count) {\n      (0, _actionUtils.moveTo)(fr, fc, tr, tc, rc, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all)(sheet);\n      sheet.getRange(fr, index + cc, rc, count - cc).clear(3);\n    } else {\n      (0, _actionUtils.moveTo)(fr, fc, tr, tc, rc, cc, _spreadSheets[\"default\"].Spread.Sheets.CopyToOptions.all)(sheet);\n    }\n    sheet.suppressRangeChanged = false;\n  };\n};\nvar setFListCell = exports.setFListCell = function setFListCell(data) {\n  return function (sheet, FList) {\n    var cells = data.cell,\n      ranges = data.range,\n      selectType = data.selectType,\n      displayType = data.dst,\n      lockClickable = data.lockClickable,\n      showAddBtnWhenNoData = data.showAddBtnWhenNoData,\n      doSetItemByNumber = data.doSetItemByNumber;\n    if (cells) {\n      var _iterator10 = _createForOfIteratorHelper(cells),\n        _step10;\n      try {\n        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n          var cell = _step10.value;\n          var r = cell.r,\n            c = cell.c;\n          var cellType = new FList(selectType, displayType, lockClickable, showAddBtnWhenNoData, doSetItemByNumber);\n          sheet.getCell(r, c).cellType(cellType);\n        }\n      } catch (err) {\n        _iterator10.e(err);\n      } finally {\n        _iterator10.f();\n      }\n    }\n    if (ranges) {\n      var _iterator11 = _createForOfIteratorHelper(ranges),\n        _step11;\n      try {\n        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n          var range = _step11.value;\n          var _r = range.r,\n            _c = range.c,\n            rc = range.rc,\n            cc = range.cc;\n          for (var i = 0; i < rc; i++) {\n            for (var j = 0; j < cc; j++) {\n              var _cellType = new FList(selectType, displayType, lockClickable, showAddBtnWhenNoData, doSetItemByNumber);\n              sheet.getCell(_r + i, _c + j).cellType(_cellType);\n            }\n          }\n          // 以下方法设置F7类型，会导致再设置小红点的时候，整个范围都出现小红点\n          // let cellType = new FList(selectType, displayType)\n          // sheet.getRange(r, c, rc, cc).cellType(cellType)\n        }\n      } catch (err) {\n        _iterator11.e(err);\n      } finally {\n        _iterator11.f();\n      }\n    }\n  };\n};\nvar setComboCell = exports.setComboCell = function setComboCell(data) {\n  return function (sheet) {\n    data.forEach(function (item) {\n      var option = item.option,\n        cell = item.cell,\n        _item$editable = item.editable,\n        editable = _item$editable === void 0 ? true : _item$editable,\n        _item$height = item.height,\n        height = _item$height === void 0 ? 22 : _item$height;\n      var cellType = new _spreadSheets[\"default\"].Spread.Sheets.CellTypes.ComboBox().items(option).editable(editable).itemHeight(height);\n      sheet.getCell(cell.r, cell.c).cellType(cellType);\n    });\n  };\n};\nvar setBtnCell = exports.setBtnCell = function setBtnCell(data) {\n  return function (sheet) {\n    data.forEach(function (item) {\n      var text = item.text;\n      var cell = item.cell;\n      var cellType = new _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Button();\n      cellType.text(text);\n      cellType.marginTop(7);\n      cellType.marginBottom(7);\n      cellType.marginLeft(14);\n      cellType.marginRight(14);\n      sheet.getCell(cell.r, cell.c).cellType(cellType);\n    });\n  };\n};\nvar setCustomBtnCell = exports.setCustomBtnCell = function setCustomBtnCell(data) {\n  return function (sheet, CustomButton) {\n    data.forEach(function (item) {\n      var text = item.text;\n      var cell = item.cell;\n      var cellType = new CustomButton(text);\n      var thisCell = sheet.getCell(cell.r, cell.c);\n      cellType.text(text);\n      thisCell.cellType(cellType);\n    });\n  };\n};\nvar setHyperLinkCell = exports.setHyperLinkCell = function setHyperLinkCell(data, args) {\n  var callback = data.callback,\n    invokemethod = data.invokemethod,\n    range = data.range,\n    si = data.si;\n  var props = args.props,\n    spread = args.spread;\n  var dispatch = props.dispatch;\n  var sheet = getSheet(spread, si);\n  range.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      rc = item.rc,\n      cc = item.cc,\n      _item$options = item.options,\n      options = _item$options === void 0 ? {} : _item$options;\n    var text = options.text,\n      value = options.value,\n      color = options.color,\n      visitedColor = options.visitedColor,\n      toolTip = options.toolTip;\n    var hyperlink = {};\n    var _loop3 = function _loop3(i) {\n      var _loop4 = function _loop4(j) {\n        var formatInfo = Format.parse(sheet.getFormatter(i, j));\n        var hAlign = sheet.getCell(i, j).hAlign();\n        var cellValue = sheet.getCell(i, j).value();\n        if ((0, _actionUtils.isNumber)(cellValue)) {\n          if (hAlign === 3) {\n            // 设置超链接会把数字当成字符串，所以需要设置成右对齐\n            sheet.getCell(i, j).hAlign(2);\n          }\n          // 对单元格的值进行格式化，再塞回单元格\n          var decimalPlace = formatInfo.decimalPlace,\n            thousandSeparator = formatInfo.thousandSeparator;\n          text = Number(cellValue);\n          if (decimalPlace) {\n            text = text.toFixed(decimalPlace);\n          }\n          if (thousandSeparator) {\n            var reg = /\\d{1,3}(?=(\\d{3})+$)/g;\n            text = text.toString().replace(/^(\\d+)((\\.\\d+)?)$/, function (s, s1, s2) {\n              return s1.replace(reg, '$&,') + s2;\n            });\n          }\n        }\n        hyperlink = {\n          url: value,\n          tooltip: toolTip,\n          linkColor: color,\n          visitedLinkColor: visitedColor\n        };\n        if (!value) {\n          var command = function command() {\n            dispatch((0, _gridaction.invokeControlMethodOnly)(args.props.model, callback, [{\n              invokemethod: invokemethod,\n              r: i,\n              c: j\n            }]));\n          };\n          Object.assign(hyperlink, {\n            command: command\n          });\n        }\n        sheet.setValue(i, j, text);\n        sheet.setHyperlink(i, j, hyperlink);\n      };\n      for (var j = c; j < c + cc; j++) {\n        _loop4(j);\n      }\n    };\n    for (var i = r; i < r + rc; i++) {\n      _loop3(i);\n    }\n  });\n};\nvar setCellTag = exports.setCellTag = function setCellTag(cell) {\n  return function (sheet, CornerCell) {\n    var r = cell.r,\n      c = cell.c,\n      st = cell.st,\n      bc = cell.bc,\n      pos = cell.pos,\n      _cell$height = cell.height,\n      height = _cell$height === void 0 ? 4 : _cell$height,\n      _cell$width = cell.width,\n      width = _cell$width === void 0 ? 4 : _cell$width,\n      _cell$hoverHeight = cell.hoverHeight,\n      hoverHeight = _cell$hoverHeight === void 0 ? height : _cell$hoverHeight,\n      _cell$hoverWidth = cell.hoverWidth,\n      hoverWidth = _cell$hoverWidth === void 0 ? width : _cell$hoverWidth,\n      canClick = cell.canClick;\n    if (st && canClick) {\n      var cellType = new CornerCell(st, bc, pos, height, width, hoverHeight, hoverWidth);\n      sheet.getCell(r, c).cellType(cellType);\n    } else {\n      var _cellType2 = sheet.getCellType(cell.r, cell.c);\n      var CellType = (0, _actionUtils.getCellType)(_cellType2.typeName);\n      if (CellType) {\n        _cellType2 = new CellType();\n      }\n      _cellType2.dotMark = {\n        visibility: st,\n        backgroundColor: bc,\n        position: pos\n      };\n      sheet.getCell(r, c).cellType(_cellType2);\n    }\n  };\n};\nvar setCornerMark = exports.setCornerMark = function setCornerMark(data) {\n  return function (sheet) {\n    var range = data.range,\n      vi = data.vi,\n      text = data.text,\n      bc = data.bc,\n      fc = data.fc,\n      pos = data.pos;\n    range.forEach(function (item) {\n      var r = item.r,\n        c = item.c,\n        rc = item.rc,\n        cc = item.cc;\n      for (var i = r; i < r + rc; i++) {\n        for (var j = c; j < c + cc; j++) {\n          var cellType = sheet.getCellType(i, j);\n          var CellType = (0, _actionUtils.getCellType)(cellType.typeName);\n          if (CellType) {\n            cellType = new CellType();\n          }\n          cellType.cornerMark = {\n            visibility: vi,\n            text: text,\n            backgroundColor: bc,\n            fontColor: fc,\n            position: pos\n          };\n          sheet.getCell(i, j).cellType(cellType);\n        }\n      }\n    });\n  };\n};\nvar resetCell = exports.resetCell = function resetCell(ranges) {\n  return function (sheet) {\n    var originType = new _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Text();\n    ranges.forEach(function (range) {\n      var rc = range.r + range.rc;\n      var cc = range.c + range.cc;\n      for (var r = range.r; r < rc; r++) {\n        for (var c = range.c; c < cc; c++) {\n          sheet.getCell(r, c).cellType(originType);\n        }\n      }\n    });\n  };\n};\nvar setCustomFormulaCell = exports.setCustomFormulaCell = function setCustomFormulaCell(cells, CustomFormulaCell, props) {\n  return function (sheet) {\n    cells.forEach(function (cell) {\n      var cellType = new CustomFormulaCell(props);\n      sheet.getCell(cell.r, cell.c).cellType(cellType);\n    });\n  };\n};\nvar setAllCustomFormulaCell = exports.setAllCustomFormulaCell = function setAllCustomFormulaCell(CustomFormulaCell) {\n  return function (sheet) {\n    var colCount = sheet.getColumnCount();\n    for (var c = 0; c < colCount; c++) {\n      sheet.getRange(-1, c, 1, 1).cellType(new CustomFormulaCell());\n    }\n  };\n};\nvar setFormula = exports.setFormula = function setFormula(cells) {\n  return function (sheet) {\n    var _iterator12 = _createForOfIteratorHelper(cells),\n      _step12;\n    try {\n      for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n        var cell = _step12.value;\n        sheet.setFormula(cell.r, cell.c, cell.f);\n        // 同时删除单元格的值\n        if (cell.f === null || cell.f === '') {\n          sheet.setValue(cell.r, cell.c, null);\n        }\n      }\n    } catch (err) {\n      _iterator12.e(err);\n    } finally {\n      _iterator12.f();\n    }\n  };\n};\n\n// 注意args里的属性,DataValidation有用到\nvar setSelections = exports.setSelections = function setSelections(selections) {\n  return function (args, sheet) {\n    var _position$row, _position$col;\n    // selections.forEach((s) => {\n    //   // sheet.setSelection()只能设置一个选中区域\n    //   sheet.addSelection(s.r, s.c, s.rc, s.cc)\n    // })\n    args.spread.setActiveSheet(sheet.name());\n    var r = selections.r,\n      c = selections.c,\n      rc = selections.rc,\n      cc = selections.cc,\n      position = selections.position,\n      autoFocus = selections.autoFocus;\n    sheet.setSelection(r, c, rc, cc);\n    sheet.showRow(r, _spreadSheets[\"default\"].Spread.Sheets.VerticalPosition[(_position$row = position === null || position === void 0 ? void 0 : position.row) !== null && _position$row !== void 0 ? _position$row : 'nearest']);\n    sheet.showColumn(c, _spreadSheets[\"default\"].Spread.Sheets.HorizontalPosition[(_position$col = position === null || position === void 0 ? void 0 : position.col) !== null && _position$col !== void 0 ? _position$col : 'nearest']);\n    var cellInfo = {\n      type: 'SendCellInfo',\n      selections: sheet.getSelections(),\n      sheet: sheet\n    };\n    args.dataPipeModel.sendData(cellInfo);\n    autoFocus && args.spread.focus(true);\n  };\n};\nvar beforeExportExcel = exports.beforeExportExcel = function beforeExportExcel(args) {\n  // 业务要求导出的excel默认显示页签、解除锁定\n  var spread = args.spread;\n  spread.options.tabStripVisible = true;\n  var sheetCount = spread.getSheetCount();\n  for (var i = 0; i < sheetCount; i++) {\n    spread.getSheet(i).options.isProtected = false;\n  }\n};\nvar exportExcelFile = exports.exportExcelFile = function exportExcelFile(fileName, json) {\n  return function (excelIo) {\n    if (fileName.substr(-5, 5) !== '.xlsx') {\n      fileName += '.xlsx';\n    }\n    excelIo.save(json, function (blob) {\n      (0, _fileSaver[\"default\"])(blob, fileName);\n    }, function (e) {\n      _console[\"default\"].log(e);\n    });\n  };\n};\nvar afterExportExcel = exports.afterExportExcel = function afterExportExcel(args) {\n  // 导出excel完成之后需要还原设置\n  var spread = args.spread;\n  args.supportMultipleTab();\n  var sheetCount = spread.getSheetCount();\n  for (var i = 0; i < sheetCount; i++) {\n    var sheet = spread.getSheet(i);\n    (0, _reportUtils.protectSheet)(sheet);\n  }\n};\nvar batchExportExcelFiles = exports.batchExportExcelFiles = function batchExportExcelFiles(data, fileName) {\n  return function (args) {\n    var spread = args.spread,\n      tempSpread = args.tempSpread,\n      excelIo = args.excelIo;\n    var tabStripVisible = spread.options.tabStripVisible;\n    if (data.length === 0) return;\n    data && data.forEach(function (item, index) {\n      item.json = JSON.parse(item.json);\n      if (index === 0) {\n        spread.fromJSON(item.json);\n      } else {\n        tempSpread.fromJSON(item.json);\n        var count = tempSpread.getSheetCount();\n        for (var i = 0; i < count; i++) {\n          var sheet = tempSpread.getSheet(i);\n          var sheetCount = spread.getSheetCount();\n          var name = sheet.name();\n          var tempSheet = void 0;\n          try {\n            tempSheet = new _spreadSheets[\"default\"].Spread.Sheets.Worksheet(name);\n            spread.addSheet(sheetCount, tempSheet);\n          } catch (e) {\n            tempSheet = new _spreadSheets[\"default\"].Spread.Sheets.Worksheet();\n            spread.addSheet(sheetCount, tempSheet);\n            name = tempSheet.name();\n            sheet.name(name);\n          }\n          tempSheet.fromJSON(sheet.toJSON());\n        }\n      }\n    });\n    spread.options.tabStripVisible = tabStripVisible;\n    var json = spread.toJSON();\n    exportExcelFile(fileName, json)(excelIo);\n  };\n};\nvar excuteToolbarAction = exports.excuteToolbarAction = function excuteToolbarAction(data, dataPipeModel) {\n  var name = data.name,\n    itemName = data.itemName;\n  var args = {\n    type: 'ExcuteToolbarAction',\n    name: name,\n    itemName: itemName\n  };\n  dataPipeModel.sendData(args);\n};\nvar lockToolbar = exports.lockToolbar = function lockToolbar(data, dataPipeModel) {\n  var isLock = data.isLock,\n    allowSingleUnlock = data.allowSingleUnlock;\n  dataPipeModel.sendData({\n    type: 'LockToolbar',\n    isLockAll: isLock,\n    allowSingleUnlock: allowSingleUnlock\n  });\n};\nvar lockToolbarItem = exports.lockToolbarItem = function lockToolbarItem(lockItems, dataPipeModel) {\n  dataPipeModel.sendData({\n    type: 'LockToolbarItem',\n    lockItems: lockItems\n  });\n};\nvar hideToolbarItem = exports.hideToolbarItem = function hideToolbarItem(hideItems, dataPipeModel) {\n  dataPipeModel.sendData({\n    type: 'HideToolbar',\n    hideItems: hideItems\n  });\n};\nvar hideContextMenu = exports.hideContextMenu = function hideContextMenu(data) {\n  return function (spread) {\n    spread.options.allowContextMenu = !data.isHide;\n  };\n};\nvar hideContextMenuItem = exports.hideContextMenuItem = function hideContextMenuItem(data, menuData) {\n  return function (menuDataConstant) {\n    if (data.isHide) {\n      menuData.every(function (item, index) {\n        var _item$name, _data$workArea, _item$workArea;\n        var menuName = (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('gc.spread.')[1];\n        var workArea = (_data$workArea = data.workArea) !== null && _data$workArea !== void 0 ? _data$workArea : '';\n        if (menuName === data.name && (_item$workArea = item.workArea) !== null && _item$workArea !== void 0 && _item$workArea.includes(workArea)) {\n          if (data.subMenu) {\n            menuData[index].subMenu.every(function (menu, i) {\n              var _menu$name;\n              var subMenuName = (_menu$name = menu.name) === null || _menu$name === void 0 ? void 0 : _menu$name.split('gc.spread.')[1];\n              if (subMenuName === data.subMenu) {\n                menuData[index].subMenu.splice(i, 1);\n                return false;\n              } else {\n                return true;\n              }\n            });\n          } else {\n            menuData.splice(index, 1);\n            return false;\n          }\n        } else {\n          return true;\n        }\n      });\n    } else {\n      var menuDataIndex;\n      var hasName = menuData.find(function (item, index) {\n        var _data$workArea2, _item$workArea2;\n        var workArea = (_data$workArea2 = data.workArea) !== null && _data$workArea2 !== void 0 ? _data$workArea2 : '';\n        if (item.name === \"gc.spread.\".concat(data.name) && (_item$workArea2 = item.workArea) !== null && _item$workArea2 !== void 0 && _item$workArea2.includes(workArea)) {\n          menuDataIndex = index;\n          return true;\n        }\n      });\n      menuDataConstant.every(function (item, index) {\n        var _item$name2, _data$workArea3, _item$workArea3;\n        var menuName = (_item$name2 = item.name) === null || _item$name2 === void 0 ? void 0 : _item$name2.split('gc.spread.')[1];\n        var workArea = (_data$workArea3 = data.workArea) !== null && _data$workArea3 !== void 0 ? _data$workArea3 : '';\n        if (menuName === data.name && (_item$workArea3 = item.workArea) !== null && _item$workArea3 !== void 0 && _item$workArea3.includes(workArea)) {\n          if (data.subMenu) {\n            menuDataConstant[index].subMenu.every(function (menu, i) {\n              var _menu$name2;\n              var hasSubName = menuData[menuDataIndex].subMenu.find(function (item) {\n                return item.name === \"gc.spread.\".concat(data.subMenu);\n              });\n              if (hasSubName) return false;\n              var subMenuName = (_menu$name2 = menu.name) === null || _menu$name2 === void 0 ? void 0 : _menu$name2.split('gc.spread.')[1];\n              if (subMenuName === data.subMenu) {\n                menuData[menuDataIndex].subMenu.splice(i, 0, menu);\n                return false;\n              } else {\n                return true;\n              }\n            });\n          } else {\n            !hasName && menuData.splice(index, 0, item);\n            return false;\n          }\n        } else {\n          return true;\n        }\n      });\n    }\n  };\n};\n// menuData是实际控制右键菜单的数组\nvar deleteContextMenuItems = exports.deleteContextMenuItems = function deleteContextMenuItems(_ref7, args) {\n  var name = _ref7.name;\n  var menuDataConstant = args.menuDataConstant;\n  var menuData = args.spread.contextMenu.menuData;\n  menuData.find(function (item, index) {\n    if (item.name === \"gc.spread.\".concat(name)) {\n      menuData.splice(index, 1);\n      return true;\n    }\n  });\n  menuDataConstant.find(function (item, index) {\n    if (item.name === \"gc.spread.\".concat(name)) {\n      menuDataConstant.splice(index, 1);\n      return true;\n    }\n  });\n};\nvar print = exports.print = function print(index, printInfo) {\n  return function (spread) {\n    (0, _actionUtils.setSheetPrintInfo)(printInfo, spread);\n    if (index === undefined) {\n      spread.print();\n    } else {\n      spread.print(index);\n    }\n  };\n};\nvar clearCellsStyle = exports.clearCellsStyle = function clearCellsStyle(data) {\n  return function (spread, props) {\n    var sheet = spread.getActiveSheet();\n    var formulas = [];\n    data.forEach(function (s) {\n      var r = s.r,\n        c = s.c,\n        rc = s.rc,\n        cc = s.cc;\n      var type = s === null || s === void 0 ? void 0 : s.type;\n      if (type === 1 || type === 3) {\n        for (var i = r; i < rc + r; i++) {\n          for (var j = c; j < cc + c; j++) {\n            if (sheet.getFormula(i, j) !== null) {\n              formulas.push({\n                r: i,\n                c: j,\n                f: null\n              });\n            }\n          }\n        }\n      }\n    });\n    // 先发公式再发值，后端基于公式修改值，不能颠倒\n    if (formulas.length > 0) {\n      props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, 'updateFormula', [{\n        si: 0,\n        formulas: formulas\n      }]));\n    }\n    data.forEach(function (s) {\n      var r = s.r,\n        c = s.c,\n        rc = s.rc,\n        cc = s.cc;\n      var range = sheet.getRange(r, c, rc, cc);\n      var type = s === null || s === void 0 ? void 0 : s.type;\n      if (type === 1) {\n        range.clear(3);\n      } else if (type === 3) {\n        range.clear(_spreadSheets[\"default\"].Spread.Sheets.StorageType.data);\n      } else {\n        sheet.suppressRangeChanged = true;\n        range.clear(_spreadSheets[\"default\"].Spread.Sheets.StorageType.style);\n        sheet.suppressRangeChanged = false;\n      }\n    });\n  };\n};\nvar controlToolbarItems = exports.controlToolbarItems = function controlToolbarItems(data, dataPipeModel) {\n  data.forEach(function (item) {\n    var args = {\n      type: 'ControlToolbarItem',\n      name: item.name,\n      isCtl: item.isCtl\n    };\n    dataPipeModel.sendData(args);\n  });\n};\nvar setDisplayContent = exports.setDisplayContent = function setDisplayContent(data, dataPipeModel) {\n  data.forEach(function (item) {\n    item.type = 'SetDisplayContent';\n    item.style = (0, _actionUtils.analysisStyle)(item.s);\n    dataPipeModel.sendData(item);\n  });\n};\nvar frozenSheet = exports.frozenSheet = function frozenSheet(data, sheet) {\n  if (sheet === null) return;\n  sheet.frozenRowCount(data.r || 0);\n  sheet.frozenColumnCount(data.c || 0);\n  sheet.frozenTrailingRowCount(data.tr || 0);\n  sheet.frozenTrailingColumnCount(data.tc || 0);\n  sheet.options.frozenlineColor = data.flc || 'red';\n};\nvar autoFitColumns = exports.autoFitColumns = function autoFitColumns(data, sheet) {\n  var columns = data.c;\n  if (!_lodash[\"default\"].isArray(columns)) {\n    _console[\"default\"].warn('autoFitColumns指令参数格式错误');\n    return false;\n  }\n  columns.forEach(function (item) {\n    if (item === -1) {\n      var cc = sheet.getColumnCount();\n      for (var i = 0; i < cc; i++) {\n        sheet.autoFitColumn(i);\n      }\n    } else {\n      sheet.autoFitColumn(item);\n    }\n  });\n};\nvar autoFitRows = exports.autoFitRows = function autoFitRows(data, sheet) {\n  var rows = data.r;\n  if (!_lodash[\"default\"].isArray(rows)) {\n    _console[\"default\"].warn('autoFitRows指令参数格式错误');\n    return false;\n  }\n  rows.forEach(function (item) {\n    if (item === -1) {\n      var rc = sheet.getRowCount();\n      for (var i = 0; i < rc; i++) {\n        sheet.autoFitRow(i);\n      }\n    } else {\n      sheet.autoFitRow(item);\n    }\n  });\n};\nvar setWorksheetOptions = exports.setWorksheetOptions = function setWorksheetOptions(data, spread) {\n  data.forEach(function (item) {\n    var sheet = getSheet(spread, item.si);\n    sheet.options = Object.assign(sheet.options, item.options);\n  });\n};\nvar setShortcutKey = exports.setShortcutKey = function setShortcutKey(data, args) {\n  var spread = args.spread;\n  var dispatch = args.props.dispatch;\n  var commandName = data.commandName,\n    key = data.key,\n    ctrl = data.ctrl,\n    shift = data.shift,\n    alt = data.alt,\n    meta = data.meta;\n  var commandManager = spread.commandManager();\n  var command = {\n    canUndo: true,\n    execute: function execute(context, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      if (isUndo) {\n        Commands.undoTransaction(context, options);\n      } else {\n        Commands.startTransaction(context, options);\n        dispatch((0, _gridaction.invokeControlMethodOnly)(args.props.model, 'invokeAction', [{\n          invokemethod: commandName\n        }]));\n        Commands.endTransaction(context, options);\n      }\n      return true;\n    }\n  };\n  commandManager.register(commandName, command);\n  commandManager.setShortcutKey(commandName, key, ctrl, shift, alt, meta);\n};\nvar getRangeValues = exports.getRangeValues = function getRangeValues(data, args) {\n  var range = data.range,\n    si = data.si,\n    getF = data.getF;\n  var props = args.props,\n    spread = args.spread;\n  var model = props.model,\n    dispatch = props.dispatch;\n  var sheet = getSheet(spread, si);\n  var cellValues = [];\n  var cellFormulas = [];\n  range.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      rc = item.rc,\n      cc = item.cc;\n    for (var i = r; i < r + rc; i++) {\n      for (var j = c; j < c + cc; j++) {\n        var v = sheet.getValue(i, j);\n        cellValues.push({\n          r: i,\n          c: j,\n          v: v\n        });\n        if (getF) {\n          var f = sheet.getFormula(i, j);\n          f && cellFormulas.push({\n            r: i,\n            c: j,\n            f: f\n          });\n        }\n      }\n    }\n  });\n  if (cellFormulas.length > 0) {\n    dispatch((0, _gridaction.invokeControlMethodOnly)(model, 'updateFormula', [{\n      si: si,\n      formulas: cellFormulas\n    }]));\n  }\n  dispatch((0, _gridaction.invokeControlMethodOnly)(model, 'updateValue', [{\n    si: si,\n    values: cellValues\n  }]));\n};\nvar newGetRangeValues = exports.newGetRangeValues = function newGetRangeValues(_ref8, args) {\n  var range = _ref8.range,\n    si = _ref8.si,\n    getF = _ref8.getF;\n  var props = args.props,\n    spread = args.spread;\n  var model = props.model,\n    dispatch = props.dispatch;\n  var sheet = getSheet(spread, si);\n  var valueData = [];\n  var formulaData = [];\n  range.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      rc = item.rc,\n      cc = item.cc;\n    var cellValue = [];\n    for (var i = r; i < r + rc; i++) {\n      for (var j = c; j < c + cc; j++) {\n        var v = sheet.getValue(i, j);\n        cellValue.push(v);\n        if (getF) {\n          var f = sheet.getFormula(i, j);\n          f && formulaData.push(f);\n        }\n      }\n    }\n    cellValue.push({\n      r: r,\n      c: c,\n      rc: rc,\n      cc: cc\n    });\n    formulaData.length && formulaData.push({\n      r: r,\n      c: c,\n      rc: rc,\n      cc: cc\n    });\n    valueData.push(cellValue);\n  });\n  if (formulaData.length > 0) {\n    var formulaBase64 = (0, _utils.tranform2Base64)(JSON.stringify(valueData));\n    dispatch((0, _gridaction.invokeControlMethodOnly)(model, 'invokeAction', [{\n      si: si,\n      data: formulaBase64,\n      invokemethod: 'rangeformulas'\n    }]));\n  }\n  var valueBase64 = (0, _utils.tranform2Base64)(JSON.stringify(valueData));\n  dispatch((0, _gridaction.invokeControlMethodOnly)(model, 'invokeAction', [{\n    si: si,\n    data: valueBase64,\n    invokemethod: 'rangeValues'\n  }]));\n};\nvar addContextMenuItem = exports.addContextMenuItem = function addContextMenuItem(menuItem, args, callback) {\n  var spread = args.spread;\n  var menuData = spread.contextMenu.menuData;\n  var newItem = customContextMenuItem(menuData, menuItem, args, callback);\n  if (newItem) {\n    menuData.push(newItem);\n    // 遍历menudata数组，查找是否有对象的name属性与menuDataConstant的name相同\n    for (var i = 0; i < args.menuDataConstant.length; i++) {\n      if (args.menuDataConstant[i].name === newItem.name) {\n        // 如果找到相同的name，则删除该对象\n        args.menuDataConstant.splice(i, 1);\n        break;\n      }\n    }\n    // 将menu对象添加到menuData数组中\n    args.menuDataConstant.push(newItem);\n  }\n};\nfunction checkName(array, name) {\n  var gcName = \"gc.spread.\".concat(name);\n  return array.some(function (item) {\n    return item.name === gcName || item.subMenu && item.subMenu.some(function (subMenuItem) {\n      return subMenuItem.name === gcName;\n    });\n  });\n}\nvar customContextMenuItem = function customContextMenuItem(menuData, menuItem, args, callback) {\n  var _menuItem$workArea;\n  var name = menuItem.name,\n    text = menuItem.text,\n    subMenu = menuItem.subMenu,\n    iconClass = menuItem.iconClass;\n  var workArea = (_menuItem$workArea = menuItem.workArea) !== null && _menuItem$workArea !== void 0 ? _menuItem$workArea : ['viewport']; // 后端传值可能为null，workArea单独处理\n  var hasName = subMenu ? subMenu.some(function (item) {\n    return checkName(menuData, item.name);\n  }) : checkName(menuData, name);\n  if (hasName) return false;\n  var newItem;\n  // 页签头右键菜单支持后端插件新增分割线 “{type:separator}”，数据格式与其他菜单格式不同\n  if (menuItem.type && menuItem.type === 'separator') {\n    newItem = {\n      type: 'separator'\n    };\n  } else {\n    workArea = workArea.join('');\n    if (subMenu) {\n      var secondMenu = [];\n      var threeMenu = [];\n      subMenu.forEach(function (item) {\n        var text = item.text,\n          name = item.name,\n          _item$iconClass = item.iconClass,\n          iconClass = _item$iconClass === void 0 ? 'gc-spread-no-icon' : _item$iconClass;\n        if (item.subMenu) {\n          item.subMenu.forEach(function (item) {\n            var text = item.text,\n              name = item.name,\n              _item$iconClass2 = item.iconClass,\n              iconClass = _item$iconClass2 === void 0 ? 'gc-spread-no-icon' : _item$iconClass2;\n            var command = customCommand(args, name, callback);\n            threeMenu.push({\n              command: command,\n              name: 'gc.spread.' + name,\n              text: text,\n              iconClass: iconClass\n            });\n          });\n          secondMenu.push({\n            name: 'gc.spread.' + name,\n            text: text,\n            subMenu: threeMenu,\n            iconClass: iconClass\n          });\n        } else {\n          var command = customCommand(args, name, callback);\n          secondMenu.push({\n            command: command,\n            name: 'gc.spread.' + name,\n            text: text,\n            iconClass: iconClass\n          });\n        }\n      });\n      newItem = {\n        text: text,\n        name: 'gc.spread.' + name,\n        workArea: workArea,\n        subMenu: secondMenu,\n        iconClass: iconClass\n      };\n    } else {\n      var command = customCommand(args, name, callback);\n      newItem = {\n        text: text,\n        name: 'gc.spread.' + name,\n        workArea: workArea,\n        command: command,\n        iconClass: iconClass\n      };\n    }\n  }\n  return newItem;\n};\nvar customCommand = function customCommand(args, name, callback) {\n  var props = args.props,\n    spread = args.spread;\n  var model = props.model,\n    dispatch = props.dispatch;\n  var command = 'gc.spread.contextMenu.' + name;\n  spread.commandManager().register(command, {\n    canUndo: true,\n    execute: function execute(context, options, isUndo) {\n      var Commands = _spreadSheets[\"default\"].Spread.Sheets.Commands;\n      options.cmd = command;\n      if (isUndo) {\n        Commands.undoTransaction(context, options);\n      } else {\n        Commands.startTransaction(context, options);\n        dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n          invokemethod: name\n        }]));\n        Commands.endTransaction(context, options);\n      }\n      return true;\n    }\n  });\n  return command;\n};\nvar addSheets = exports.addSheets = function addSheets(sheets, params) {\n  var spread = params.spread;\n  sheets.forEach(function (item) {\n    var index = item.index,\n      name = item.name,\n      rc = item.rc,\n      cc = item.cc;\n    var sheet = new _spreadSheets[\"default\"].Spread.Sheets.Worksheet(name);\n    rc && sheet.setRowCount(rc);\n    cc && sheet.setColumnCount(cc);\n    spread.addSheet(index, sheet);\n    (0, _bindEvent.bindSheetEvent)(sheet, (0, _eventHandle.getSheetEventHandle)(params));\n    if (index > spread.sheets.length) {\n      index = spread.sheets.length;\n    }\n    (0, _common.setSheetDefaultStyle)(spread, index);\n  });\n};\nvar deleteSheets = exports.deleteSheets = function deleteSheets(data, spread) {\n  var _data$index = data.index,\n    index = _data$index === void 0 ? [] : _data$index;\n  // const sheetCount = spread.getSheetCount()\n  // if (index.length >= sheetCount) {\n  //  console.error('工作簿内至少含有一张可视工作表。')\n  // }\n\n  // if(!afterHandleCankeepOneSheetVisible(spread, index)){\n  //   return\n  // }\n\n  // 将服务端返回的多个页签索引按降序排序\n  if (index.length > 1) {\n    index.sort(indexDes);\n  }\n  index && index.forEach(function (item) {\n    spread.removeSheet(item);\n  });\n};\nfunction indexDes(a, b) {\n  return b - a;\n}\nvar setSheetsVisible = exports.setSheetsVisible = function setSheetsVisible(data, spread) {\n  var _data$index2 = data.index,\n    index = _data$index2 === void 0 ? [] : _data$index2,\n    visible = data.visible;\n  // 如果未传需要显示的sheet页,则默认按照顺序显示\n  if (visible && index.length < 1) {\n    for (var i = 0; i < spread.sheets.length; i++) {\n      if (!spread.sheets[i].visible()) {\n        spread.sheets[i].visible(true);\n        break;\n      }\n    }\n  } else if (visible && index.length >= 1) {\n    index.forEach(function (item) {\n      spread.sheets[item].visible(true);\n    });\n  } else if (!visible) {\n    index.forEach(function (item) {\n      var sheet = spread.getSheet(item);\n      sheet && (sheet === null || sheet === void 0 ? void 0 : sheet.visible(false));\n      // 隐藏的时候，去掉选中状态\n      sheet && (sheet === null || sheet === void 0 ? void 0 : sheet.isSelected(false));\n    });\n  }\n};\nvar registerCustomFormula = exports.registerCustomFormula = function registerCustomFormula(_ref9) {\n  var formulaName = _ref9.formulaName,\n    argsNum = _ref9.argsNum,\n    _ref9$minArgs = _ref9.minArgs,\n    minArgs = _ref9$minArgs === void 0 ? argsNum : _ref9$minArgs,\n    _ref9$maxArgs = _ref9.maxArgs,\n    maxArgs = _ref9$maxArgs === void 0 ? argsNum : _ref9$maxArgs,\n    descriptionInfo = _ref9.descriptionInfo,\n    returnType = _ref9.returnType;\n  var CustomFormula = /*#__PURE__*/function (_GC$Spread$CalcEngine) {\n    _inherits(CustomFormula, _GC$Spread$CalcEngine);\n    function CustomFormula(name, minArgs, maxArgs, descriptionInfo, returnType) {\n      var _this;\n      _classCallCheck(this, CustomFormula);\n      _this = _callSuper(this, CustomFormula, [name, minArgs, maxArgs]);\n      _this.name = name;\n      _this.minArgs = minArgs;\n      _this.maxArgs = maxArgs;\n      _this.descriptionInfo = descriptionInfo;\n      _this.returnType = returnType;\n      return _this;\n    }\n    _createClass(CustomFormula, [{\n      key: \"evaluate\",\n      value: function evaluate() {\n        switch (this.returnType) {\n          case 1:\n            // number类型\n            return 0;\n          case 2:\n            // string类型\n            return '';\n          default:\n            return '#VALUE!';\n        }\n      }\n    }, {\n      key: \"description\",\n      value: function description() {\n        return this.descriptionInfo;\n      }\n    }]);\n    return CustomFormula;\n  }(_spreadSheets[\"default\"].Spread.CalcEngine.Functions.Function); // 将自定义公式方法绑定在全局\n  _spreadSheets[\"default\"].Spread.CalcEngine.Functions.defineGlobalCustomFunction(formulaName, new CustomFormula(formulaName, minArgs, maxArgs, descriptionInfo, returnType));\n};\nvar getLastFormula = function getLastFormula(sheet) {\n  var rc = sheet.getRowCount();\n  var cc = sheet.getColumnCount();\n  for (var i = rc - 1; i > -1; i--) {\n    for (var j = cc - 1; j > -1; j--) {\n      var formula = sheet.getFormula(i, j);\n      if (formula) {\n        return {\n          r: i,\n          c: j\n        };\n      }\n    }\n  }\n};\nvar registerAsyncFunction = exports.registerAsyncFunction = function registerAsyncFunction(args, index, option) {\n  var formulaName = option.formulaName,\n    argsNum = option.argsNum,\n    _option$minArgs = option.minArgs,\n    minArgs = _option$minArgs === void 0 ? argsNum : _option$minArgs,\n    _option$maxArgs = option.maxArgs,\n    maxArgs = _option$maxArgs === void 0 ? argsNum : _option$maxArgs,\n    descriptionInfo = option.descriptionInfo,\n    evaluateMode = option.evaluateMode,\n    defaultValue = option.defaultValue;\n  var props = args.props,\n    dataPipeModel = args.dataPipeModel,\n    spread = args.spread;\n  var AsyncFunction = function AsyncFunction() {};\n  AsyncFunction.prototype = new _spreadSheets[\"default\"].Spread.CalcEngine.Functions.AsyncFunction(formulaName, minArgs, maxArgs);\n  AsyncFunction.prototype.evaluateAsync = function (context) {\n    if (dataPipeModel.getSpreadData('stopAsyncCalculate')) {\n      var row = context.row,\n        col = context.col;\n      var sheet = context.ctx.source.getSheet();\n      // spread bug最后一个自定义公式无法暂停计算，需要把公式拿到后端去计算\n      var range = getLastFormula(sheet);\n      if ((range === null || range === void 0 ? void 0 : range.r) !== row || (range === null || range === void 0 ? void 0 : range.c) !== col) return;\n    }\n    var id = (0, _getRandom[\"default\"])(16) + index;\n    dataPipeModel.setSpreadData(id, context);\n    var formula = [this.name];\n    if (arguments.length > 0) {\n      var arg;\n      for (var i = 1; i < arguments.length; i++) {\n        arg = arguments[i];\n        if (arg.xf && arg.xf.getSheet) {\n          // 追加引用单元格所属表页的名称，发到后端用于计算，简写为属性sn\n          arg = Object.assign({}, arg, {\n            sn: arg.xf.getSheet().name()\n          });\n        }\n        formula.push(arg);\n        arg = undefined;\n      }\n    }\n    var data = {\n      id: id,\n      f: formula\n    };\n    batchRequestData(props, option, dataPipeModel, data);\n  };\n  AsyncFunction.prototype.defaultValue = function () {\n    return defaultValue;\n  };\n  AsyncFunction.prototype.evaluateMode = function () {\n    return evaluateMode;\n  };\n  AsyncFunction.prototype.acceptsReference = function () {\n    return true;\n  };\n  AsyncFunction.prototype.isContextSensitive = function () {\n    return true;\n  };\n  AsyncFunction.prototype.description = function () {\n    return descriptionInfo;\n  };\n  AsyncFunction.prototype.acceptsReferencefunction = function () {\n    return true;\n  };\n  spread.addCustomFunction(new AsyncFunction());\n};\nfunction updateCustomFormulaValue(cell, sheet, dataPipeModel) {\n  cell.forEach(function (_ref10) {\n    var id = _ref10.id,\n      v = _ref10.v;\n    var ctx = dataPipeModel.getSpreadData(id);\n    if (!ctx) return;\n    ctx.setAsyncResult(v);\n    dataPipeModel.removeSpreadData(id);\n  });\n}\nvar batchRequestData = exports.batchRequestData = function batchRequestData(props, option, dataPipeModel, data) {\n  var dataAll = dataPipeModel.getSpreadData('customFormulaData') || [];\n  var callback = option.callback,\n    invokeAction = option.invokeAction;\n  var model = props.model,\n    dispatch = props.dispatch;\n  dataAll.push(data);\n  dataPipeModel.setSpreadData('customFormulaData', dataAll);\n  var timer;\n  if (!timer) {\n    timer = setTimeout(function () {\n      var callingStack = dataAll;\n      dataPipeModel.setSpreadData('customFormulaData', '');\n      dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n        invokemethod: invokeAction,\n        data: callingStack\n      }]));\n      timer = null;\n    }, 100);\n  }\n};\nvar setComment = exports.setComment = function setComment(options, sheet) {\n  options.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      v = item.v,\n      remove = item.remove;\n    if (remove) {\n      sheet.comments.remove(r, c);\n    } else {\n      sheet.comments.add(r, c, v);\n    }\n  });\n};\nvar setRowFilter = exports.setRowFilter = function setRowFilter(_ref11, sheet) {\n  var r = _ref11.r,\n    c = _ref11.c,\n    rc = _ref11.rc,\n    cc = _ref11.cc;\n  var range = new _spreadSheets[\"default\"].Spread.Sheets.Range(r, c, rc, cc);\n  sheet.rowFilter(new _spreadSheets[\"default\"].Spread.Sheets.Filter.HideRowFilter(range));\n};\nvar getLockedCells = exports.getLockedCells = function getLockedCells(props, sheet, _ref12) {\n  var callback = _ref12.callback,\n    invokemethod = _ref12.invokemethod,\n    compression = _ref12.compression;\n  var rc = sheet.getRowCount();\n  var cc = sheet.getColumnCount();\n  var lockedCells = [];\n  for (var r = 0; r < rc; r++) {\n    for (var c = 0; c < cc; c++) {\n      if (sheet.getCell(r, c).locked()) {\n        lockedCells.push({\n          r: r,\n          c: c\n        });\n      }\n    }\n  }\n  if (compression) {\n    var data = (0, _utils.tranform2Base64)(JSON.stringify(lockedCells));\n    props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, callback, [{\n      invokemethod: invokemethod,\n      data: data\n    }]));\n  } else {\n    props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, callback, [{\n      invokemethod: invokemethod,\n      data: lockedCells\n    }]));\n  }\n};\nvar zoomChangeLicense = exports.zoomChangeLicense = function zoomChangeLicense(data, args) {\n  var _args$props = args.props,\n    model = _args$props.model,\n    dispatch = _args$props.dispatch;\n  var key = model.key,\n    pageId = model.pageId;\n  var isOpen = data.isOpen,\n    callback = data.callback,\n    invokemethod = data.invokemethod;\n  var zoomChange = (0, _reportUtils.debounce)(function () {\n    var sheet = args.spread.getActiveSheet();\n    var zoom = Math.round(sheet.zoom() * 100) / 100;\n    dispatch((0, _gridaction.invokeControlMethodOnly)({\n      key: key,\n      pageId: pageId\n    }, callback, [{\n      data: zoom,\n      invokemethod: invokemethod\n    }]));\n  }, 100);\n  if (isOpen) {\n    args.spread.bind(_spreadSheets[\"default\"].Spread.Sheets.Events.ViewZooming, zoomChange);\n  } else {\n    args.spread.unbind(_spreadSheets[\"default\"].Spread.Sheets.Events.ViewZooming, zoomChange);\n  }\n  (0, _memoryCacher.setPageData)(pageId, [key, 'zoomChange'], data);\n};\nvar getFormula = exports.getFormula = function getFormula(_ref13, sheet, props) {\n  var range = _ref13.range,\n    callback = _ref13.callback,\n    invokemethod = _ref13.invokemethod,\n    si = _ref13.si;\n  var formulas = [];\n  for (var i = range.r; i < range.rc + range.r; i++) {\n    for (var j = range.c; j < range.cc + range.c; j++) {\n      var formula = sheet.getFormula(i, j);\n      formula && formulas.push({\n        r: i,\n        c: j,\n        f: formula\n      });\n    }\n  }\n  var formulaBase64 = [];\n  if (formulas.length > 0) {\n    formulaBase64 = (0, _utils.tranform2Base64)(JSON.stringify(formulas));\n  }\n  props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, callback, [{\n    si: si,\n    invokemethod: invokemethod,\n    data: formulaBase64\n  }]));\n};\nvar hideZero = exports.hideZero = function hideZero(oldPaint, data, spread) {\n  var sheet = spread.getActiveSheet();\n  var ishide = typeof data === 'boolean' ? data : data.ishide;\n  if (ishide) {\n    _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Text.prototype.paint = function (ctx, value, x, y, w, h, style, context) {\n      var tagInfo = context.sheet.tag();\n      var hideZero = tagInfo && tagInfo.settingInfo && tagInfo.settingInfo.hideZero;\n      if (value === 0 && !(context !== null && context !== void 0 && context.showZero) && hideZero) {\n        oldPaint.call(this, ctx, '', x, y, w, h, style, context);\n      } else {\n        oldPaint.apply(this, arguments);\n      }\n    };\n  } else {\n    _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Text.prototype.paint = function (ctx, value, x, y, w, h, style, context) {\n      var tagInfo = context.sheet.tag();\n      var hideZero = tagInfo && tagInfo.settingInfo && tagInfo.settingInfo.hideZero;\n      if (value === 0 && !hideZero) {\n        context.showZero = true;\n        oldPaint.call(this, ctx, 0, x, y, w, h, style, context);\n      } else {\n        oldPaint.apply(this, arguments);\n      }\n    };\n  }\n  sheet.repaint();\n  (0, _toolbarTopUtils.createSpreadTag)(sheet, {\n    hideZero: data.ishide\n  });\n};\nvar setCheckboxCell = exports.setCheckboxCell = function setCheckboxCell(sheet, props, callback, invokemethod, ranges) {\n  ranges.forEach(function (item) {\n    var r = item.r,\n      c = item.c,\n      rc = item.rc,\n      cc = item.cc;\n    rc = rc === -1 ? sheet.getRowCount : rc;\n    cc = cc === -1 ? sheet.getColumnCount : cc;\n    for (var i = r; i < r + rc; i++) {\n      for (var j = c; j < c + cc; j++) {\n        var checkBox = new _spreadSheets[\"default\"].Spread.Sheets.CellTypes.CheckBox();\n        sheet.setCellType(i, j, checkBox, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n      }\n    }\n  });\n  var _props$model = props.model,\n    key = _props$model.key,\n    pageId = _props$model.pageId;\n  (0, _memoryCacher.setPageData)(pageId, [key, 'spreadCustomCheckBox'], {\n    callback: callback,\n    invokemethod: invokemethod,\n    ranges: ranges\n  });\n};\nvar setTimeSeleCell = exports.setTimeSeleCell = function setTimeSeleCell(sheet, item, imageType, calendarPage, showTime, startDay) {\n  var r = item.r,\n    c = item.c,\n    rc = item.rc,\n    cc = item.cc;\n  for (var i = r; i < r + rc; i++) {\n    for (var j = c; j < c + cc; j++) {\n      var style = new _spreadSheets[\"default\"].Spread.Sheets.Style();\n      var newStyle = {};\n      newStyle.cellButtons = [{\n        imageType: parseInt(imageType),\n        command: 'openDateTimePicker',\n        useButtonStyle: true\n      }];\n      newStyle.dropDowns = [{\n        type: _spreadSheets[\"default\"].Spread.Sheets.DropDownType.dateTimePicker,\n        option: {\n          showTime: showTime,\n          calendarPage: parseInt(calendarPage),\n          startDay: parseInt(startDay)\n        }\n      }];\n      var originStyle = sheet.getStyle(i, j);\n      style = Object.assign(style, originStyle, newStyle);\n      sheet.setStyle(i, j, style);\n    }\n  }\n};\nvar convertSSJson = exports.convertSSJson = function convertSSJson(spread, data) {\n  var json;\n  if (_typeof(data) === 'object') {\n    _console[\"default\"].time('convertData2SpraedJSon');\n    json = (0, _actionUtils.convertData2SpraedJSon)(data);\n    _console[\"default\"].timeEnd('convertData2SpraedJSon');\n  } else {\n    _console[\"default\"].time('tranform2Json');\n    var jsonStr = (0, _utils.tranform2Json)(data);\n    _console[\"default\"].timeEnd('tranform2Json');\n    _console[\"default\"].time('JSON.parse');\n    json = JSON.parse(jsonStr);\n    _console[\"default\"].timeEnd('JSON.parse');\n  }\n  _console[\"default\"].time('spreadRender');\n  return json;\n};\nvar setConditionalFormatting = exports.setConditionalFormatting = function setConditionalFormatting(sheet, methodName, parameters, ranges) {\n  switch (methodName) {\n    case 'add2ScaleRule':\n      {\n        var minType = parameters.minType,\n          minValue = parameters.minValue,\n          maxType = parameters.maxType,\n          maxValue = parameters.maxValue,\n          minColor = parameters.minColor,\n          maxColor = parameters.maxColor;\n        sheet.conditionalFormats.add2ScaleRule(minType, minValue, minColor, maxType, maxValue, maxColor, ranges);\n        break;\n      }\n    case 'add3ScaleRule':\n      {\n        var _minType = parameters.minType,\n          _minValue = parameters.minValue,\n          _minColor = parameters.minColor,\n          midType = parameters.midType,\n          midValue = parameters.midValue,\n          midColor = parameters.midColor,\n          _maxType = parameters.maxType,\n          _maxValue = parameters.maxValue,\n          _maxColor = parameters.maxColor;\n        sheet.conditionalFormats.add3ScaleRule(_minType, _minValue, _minColor, midType, midValue, midColor, _maxType, _maxValue, _maxColor, ranges);\n        break;\n      }\n    case 'addAverageRule':\n      {\n        var type = parameters.type;\n        var newStyle = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addAverageRule(type, newStyle, ranges);\n        break;\n      }\n    case 'addCellValueRule':\n      {\n        var _type = parameters.type,\n          value1 = parameters.value1,\n          value2 = parameters.value2;\n        var _newStyle = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addCellValueRule(_type, value1, value2, _newStyle, ranges);\n        break;\n      }\n    case 'addDataBarRule':\n      {\n        var _minType2 = parameters.minType,\n          _minValue2 = parameters.minValue,\n          _maxType2 = parameters.maxType,\n          _maxValue2 = parameters.maxValue,\n          color = parameters.color;\n        sheet.conditionalFormats.addDataBarRule(_minType2, _minValue2, _maxType2, _maxValue2, color, ranges);\n        break;\n      }\n    case 'addDateOccurringRule':\n      {\n        var _type2 = parameters.type;\n        var _newStyle2 = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addDateOccurringRule(_type2, _newStyle2, ranges);\n        break;\n      }\n    case 'addDuplicateRule':\n      {\n        var _newStyle3 = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addDuplicateRule(_newStyle3, ranges);\n        break;\n      }\n    case 'addFormulaRule':\n      {\n        var formula = parameters.formula;\n        var _newStyle4 = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addFormulaRule(formula, _newStyle4, ranges);\n        break;\n      }\n    case 'addIconSetRule':\n      {\n        var iconSetType = parameters.iconSetType;\n        var iconSetRule = sheet.conditionalFormats.addIconSetRule(iconSetType, ranges);\n        iconSetRule.iconSetType();\n        iconSetRule.reverseIconOrder(false);\n        iconSetRule.showIconOnly(false);\n        break;\n      }\n    case 'addSpecificTextRule':\n      {\n        var comparisonOperator = parameters.comparisonOperator,\n          text = parameters.text;\n        var _newStyle5 = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addSpecificTextRule(comparisonOperator, text, _newStyle5, ranges);\n        break;\n      }\n    case 'addTop10Rule':\n      {\n        var _type3 = parameters.type,\n          rank = parameters.rank;\n        var _newStyle6 = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addTop10Rule(_type3, rank, _newStyle6, ranges);\n        break;\n      }\n    case 'addUniqueRule':\n      {\n        var _newStyle7 = Object.assign(new _spreadSheets[\"default\"].Spread.Sheets.Style(), (0, _actionUtils.analysisStyle)(parameters.style));\n        sheet.conditionalFormats.addUniqueRule(_newStyle7, ranges);\n        break;\n      }\n    case 'clearRule':\n      {\n        sheet.conditionalFormats.clearRule();\n        break;\n      }\n    default:\n      break;\n  }\n};\nvar setValidator = exports.setValidator = function setValidator(option, range, callback, invokemethod, sheet) {\n  var _option$VALUE_, _option$VALUE_2;\n  var spreadNS = _spreadSheets[\"default\"].Spread.Sheets;\n  var GCSpreadSheetsDataValidation = spreadNS.DataValidation;\n  var ddv = null;\n  var validatorTypes = option[_serverproperties.VALIDATOR_TYPE];\n  var v1 = (_option$VALUE_ = option[_serverproperties.VALUE_1]) !== null && _option$VALUE_ !== void 0 ? _option$VALUE_ : null;\n  var v2 = (_option$VALUE_2 = option[_serverproperties.VALUE_2]) !== null && _option$VALUE_2 !== void 0 ? _option$VALUE_2 : null;\n  var comparisonOperator = option[_serverproperties.VALIDATOR_COMPARISON_OPERATOR];\n  var errorMessage = option[_serverproperties.ERROR_MSG];\n  var errorStyle = option[_serverproperties.ERROR_STYLE];\n  var errorTitle = option[_serverproperties.ERROR_TITLE];\n  var showErrorMessage = option[_serverproperties.SHOW_ERROR_MESSAGE];\n  var ignoreBlank = option[_serverproperties.IGNORE_BLANK];\n  var showInputMessage = option[_serverproperties.SHOW_INPUT_MSG];\n  var inputTitle = option[_serverproperties.INPUT_TITLE];\n  var inputMessage = option[_serverproperties.INPUT_MESSAGE];\n  var highLightType = option[_serverproperties.HIGHLIGHT_TYPE];\n  var dogearPosition = option[_serverproperties.DOGEAR_POSITION];\n  var iconPosition = option[_serverproperties.ICON_POSITION];\n  var highlightStyleColor = option[_serverproperties.HIGHLIGHT_STYLE_COLOR];\n  var position = dogearPosition !== null && dogearPosition !== void 0 ? dogearPosition : iconPosition;\n  var image = option[_serverproperties.HIGHLIGHT_STYLE_IMAGE];\n  var regex = /([$][A-Za-z0-9]){2}/; // $1$2\n  // 下拉引用其他单元格的值要用单独的一个接口\n  var isFormulaListValidator = regex.test(v1);\n\n  // const isFormulaListValidator = option[IS_FORMULA_LIST_VALIDATOR]\n\n  if (showErrorMessage && callback && invokemethod) {\n    errorTitle = errorTitle + '__customCallback__' + \"\".concat(callback) + '_cuttingline_' + \"\".concat(invokemethod);\n  }\n  if (validatorTypes === 4 && (new Date(v1).toString() === 'Invalid Date' || new Date(v2).toString() === 'Invalid Date')) return;\n  switch (validatorTypes) {\n    case 1:\n      ddv = GCSpreadSheetsDataValidation.createNumberValidator(parseInt(comparisonOperator), v1, v2, true);\n      break;\n    case 2:\n      ddv = GCSpreadSheetsDataValidation.createNumberValidator(parseInt(comparisonOperator), v1, v2, false);\n      break;\n    case 3:\n      isFormulaListValidator ? ddv = GCSpreadSheetsDataValidation.createFormulaListValidator(v1) : ddv = GCSpreadSheetsDataValidation.createListValidator(v1);\n      ddv.inCellDropdown(true);\n      break;\n    case 4:\n      ddv = isFormulaListValidator ? GCSpreadSheetsDataValidation.createDateValidator(parseInt(comparisonOperator), v1, v2) : GCSpreadSheetsDataValidation.createDateValidator(parseInt(comparisonOperator), new Date(v1), new Date(v2));\n      break;\n    case 6:\n      ddv = GCSpreadSheetsDataValidation.createTextLengthValidator(parseInt(comparisonOperator), v1, v2);\n      break;\n    case 7:\n      ddv = GCSpreadSheetsDataValidation.createFormulaValidator(v1);\n      break;\n  }\n  ddv.errorMessage(errorMessage);\n  ddv.errorStyle(parseInt(errorStyle));\n  ddv.errorTitle(errorTitle);\n  ddv.showErrorMessage(showErrorMessage);\n  ddv.ignoreBlank(ignoreBlank);\n  ddv.showInputMessage(showInputMessage);\n  ddv.inputTitle(inputTitle);\n  ddv.inputMessage(inputMessage);\n  ddv.highlightStyle({\n    type: highLightType,\n    color: highlightStyleColor,\n    position: position || 0,\n    image: image\n  });\n  range.forEach(function (item) {\n    var col = item.col,\n      row = item.row,\n      rowCount = item.rowCount,\n      colCount = item.colCount;\n    sheet.setDataValidator(row, col, rowCount, colCount, ddv);\n  });\n};\nvar removeValidator = exports.removeValidator = function removeValidator(range, sheet) {\n  range.forEach(function (item) {\n    var col = item.col,\n      row = item.row,\n      rowCount = item.rowCount,\n      colCount = item.colCount;\n    sheet.setDataValidator(row, col, rowCount, colCount, null);\n  });\n};\nvar getCellValid = exports.getCellValid = function getCellValid(cells, callback, invokemethod, sheet, props) {\n  var valid = [];\n  cells.forEach(function (cell) {\n    var r = cell.r,\n      c = cell.c;\n    var validator = sheet.getDataValidator(r, c);\n    valid.push({\n      r: r,\n      c: c,\n      isValid: validator.isValid()\n    });\n  });\n  props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, callback, [{\n    invokemethod: invokemethod,\n    data: valid\n  }]));\n};\n\n// 清除自定义公式\nvar removeCustomFunction = exports.removeCustomFunction = function removeCustomFunction(sheet, formula) {\n  if (formula === 'all') {\n    sheet.clearCustomFunctions();\n  } else {\n    sheet.removeCustomFunction(formula);\n  }\n};\n\n// 设置自定义分组\nvar setToolbarGroups = exports.setToolbarGroups = function setToolbarGroups(data, dataPipeModel) {\n  dataPipeModel.sendData({\n    type: 'SetToolbarGroups',\n    customGroupItems: data\n  });\n};\n\n/**\n * 设置自定义sheet标签菜单\n */\nvar setCustomSheetMenu = exports.setCustomSheetMenu = function setCustomSheetMenu(data, args) {\n  var menuData = args.spread.contextMenu.menuData;\n  var menuDataConstant = args.menuDataConstant;\n  var customMenuArray = data.reduce(function (totalCustomItems, curCustomItem) {\n    var _menuItem$workArea2;\n    var menuItem = menuDataConstant.find(function (item) {\n      return item.name === \"gc.spread.\".concat(curCustomItem.name);\n    });\n    // 设置自定义标签菜单只负责排序，添加使用addContextMenuItems指令，如果有自定义添加的需求再改\n    // if (!menuItem) { // 判断添加的item是否在标准功能中，不存在则为自定义功能\n    //   const addItem = {\n    //     ...customItem,\n    //     workArea: ['sheetTab']\n    //   }\n    //   menuItem = customContextMenuItem(menuData, addItem, args, addItem.callback)\n    // }\n    if (menuItem !== null && menuItem !== void 0 && (_menuItem$workArea2 = menuItem.workArea) !== null && _menuItem$workArea2 !== void 0 && _menuItem$workArea2.includes('sheetTab')) {\n      totalCustomItems.push(menuItem);\n    } else if ((curCustomItem === null || curCustomItem === void 0 ? void 0 : curCustomItem.type) === 'separator') {\n      totalCustomItems.push({\n        type: 'separator'\n      });\n    }\n    return totalCustomItems;\n  }, []);\n  var notSheetAreaMenu = menuData.filter(function (item) {\n    var _item$workArea4;\n    return !(item !== null && item !== void 0 && (_item$workArea4 = item.workArea) !== null && _item$workArea4 !== void 0 && _item$workArea4.includes('sheetTab'));\n  });\n  var newMenuData = notSheetAreaMenu.concat(customMenuArray);\n  args.spread.contextMenu.menuData = newMenuData;\n};\n\n/**\n * 隐藏或显示行\n * @param {Array} data - 需要隐藏或显示的行\n * @param {Object} sheet - 工作表\n * @param {Boolean} visible - true表示显示， false表示隐藏\n * @param {String} area - 隐藏行列， row隐藏行， column隐藏列\n */\nfunction setRowOrColVisible(data, sheet, visible, area) {\n  data.forEach(function (item) {\n    if (_typeof(item) === 'object') {\n      var index = item.index,\n        count = item.count;\n      for (var _item = index; _item < index + count; _item++) {\n        area === 'row' ? sheet.setRowVisible(_item, visible) : sheet.setColumnVisible(_item, visible);\n      }\n    } else {\n      area === 'row' ? sheet.setRowVisible(item, visible) : sheet.setColumnVisible(item, visible);\n    }\n  });\n}\n\n/**\n * 设置spread全局参数之后处理的回调\n * @param {Object} data - 设置的参数 {data: {key: value}}\n * @param {Object} args - ReportGrid\n */\nvar setSpreadParamsCallback = exports.setSpreadParamsCallback = function setSpreadParamsCallback(data, args) {\n  if (data[_serverSpreadParams.USE_NEW_INSERT]) {\n    args.spread.contextMenu.menuData = _kdSpreadMenuList.kdNewSpreadMenuList;\n    hideToolbarItem([{\n      name: 'InsertRowAndCol',\n      isLock: false,\n      isHide: true,\n      group: 'default'\n    }, {\n      name: 'NewInsertRowAndCol',\n      isLock: false,\n      isHide: false,\n      group: 'default'\n    }], args.dataPipeModel);\n  } else if (data[_serverSpreadParams.USE_PT_FONT_SIZE]) {\n    var style = {\n      font: '11pt 宋体'\n    };\n    (0, _common.setCustomSheetDefaultStyle)({\n      spread: args.spread,\n      style: style\n    });\n    // 特殊处理，单元格(0, 0)默认设置了样式，需要将px转换为pt\n    // 暂不处理\n    // const sheet = args.spread.getActiveSheet()\n    // const fontArr = getActiveCellStyle(sheet, { r: 0, c: 0 })\n    // const cellFontSize = fontArr[4] === '12px' ? '12px' : '12pt'\n    // args.dataPipeModel.sendData({ type: 'FontChanged', fontType: 4, changeData: cellFontSize })\n  } else if (data[_serverSpreadParams.USE_EXCEL_CELLS_FORMAT]) {\n    args.dataPipeModel.sendData({\n      type: 'updateFormatItems'\n    });\n  }\n};\n\n/**\n * 设置GC层面的参数\n * @param {Object} data - 设置的参数 {key: value}\n * @param {Object} args - ReportGrid\n */\nvar setGCParams = exports.setGCParams = function setGCParams(data, args) {\n  if (data[_serverSpreadParams.CALC_PRECISION]) {\n    _spreadSheets[\"default\"].Spread.CalcEngine.Functions.CALC_PRECISION = data[_serverSpreadParams.CALC_PRECISION];\n  }\n};\n\n/**\n * 提取单元格内的公共样式\n * @param {Object} toJSONObj spreadJson\n */\nfunction handleNamedStyles(toJSONObj, spread) {\n  var activeSheetIndex = spread.getActiveSheetIndex();\n  toJSONObj.activeSheetIndex = activeSheetIndex;\n  var sheetPropertys = [];\n  for (var i = 0; i < spread.getSheetCount(); i++) {\n    var sheet = spread.getSheet(i);\n    var sheetProperty = {};\n    sheetProperty.index = i;\n    sheetProperty.sheetName = sheet.name();\n    sheetProperty.rowCount = sheet.getRowCount();\n    sheetProperty.columnCount = sheet.getColumnCount();\n    sheetProperty.frozenColumnCount = sheet.frozenColumnCount();\n    sheetProperty.frozenRowCount = sheet.frozenRowCount();\n    sheetProperty.activeRowIndex = sheet.getActiveRowIndex();\n    sheetProperty.activeColumnIndex = sheet.getActiveColumnIndex();\n    sheetProperty.sheetTag = sheet.tag;\n    toJSONObj.sheets[sheetProperty.sheetName].rowCount = spread.getSheet(i).getRowCount();\n    toJSONObj.sheets[sheetProperty.sheetName].columnCount = spread.getSheet(i).getColumnCount();\n    toJSONObj.sheets[sheetProperty.sheetName].sjDataFormulas = spread.getSheet(i).sjDataFormulas;\n    toJSONObj.sheets[sheetProperty.sheetName].sheetTag = spread.getSheet(i).tag;\n    sheetPropertys.push(sheetProperty);\n  }\n  toJSONObj.sheetPropertys = sheetPropertys;\n  buildNamedStyles(toJSONObj);\n}\nfunction buildNamedStyles(toJSONObj) {\n  var sheetPropertys = toJSONObj.sheetPropertys;\n  var namedStyles = toJSONObj.namedStyles;\n  if (!namedStyles) {\n    namedStyles = [];\n  }\n  for (var i = 0; i < sheetPropertys.length; i++) {\n    var sheetProperty = sheetPropertys[i];\n    var dataTable = toJSONObj.sheets[sheetProperty.sheetName].data.dataTable;\n    if (!dataTable) {\n      continue;\n    }\n    for (var r = 0; r < sheetProperty.rowCount; r++) {\n      for (var c = 0; c < sheetProperty.columnCount; c++) {\n        var row = dataTable[r.toString()];\n        if (row) {\n          var cell = row[c.toString()];\n          if (cell) {\n            var style = cell.style;\n            if (style && typeof style !== 'string') {\n              var namedStyle = getNamedStyle(namedStyles, style);\n              if (namedStyle) {\n                toJSONObj.sheets[sheetProperty.sheetName].data.dataTable[r.toString()][c.toString()].style = namedStyle.name;\n              } else if (typeof style !== 'string') {\n                style.name = createRandomId();\n                namedStyles.push(style);\n                toJSONObj.sheets[sheetProperty.sheetName].data.dataTable[r.toString()][c.toString()].style = style.name;\n              } else {\n                toJSONObj.sheets[sheetProperty.sheetName].data.dataTable[r.toString()][c.toString()].style = null;\n              }\n              // }\n            }\n          }\n        }\n      }\n    }\n    toJSONObj.namedStyles = namedStyles;\n  }\n}\nfunction getNamedStyle(namedStyles, style) {\n  for (var i = 0; i < namedStyles.length; i++) {\n    var nameStyle = namedStyles[i];\n    if (typeof style === 'string') {\n      if (nameStyle.name === style) {\n        return nameStyle;\n      }\n    } else {\n      if (isStyleEqual(nameStyle, style)) {\n        return nameStyle;\n      }\n    }\n  }\n  if (typeof style !== 'string') {\n    style.name = createRandomId();\n    namedStyles.push(style);\n    return style;\n  } else {\n    return null;\n  }\n}\nfunction isStyleEqual(style1, style2) {\n  if (isBorderEqual(style1.borderLeft, style2.borderLeft) && isBorderEqual(style1.borderTop, style2.borderTop) && isBorderEqual(style1.borderBottom, style2.borderBottom) && isBorderEqual(style1.borderRight, style2.borderRight) && style1.backColor === style2.backColor && style1.backgroundImage === style2.backgroundImage && style1.backgroundImageLayout === style2.backgroundImageLayout && style1.font === style2.font && style1.foreColor === style2.foreColor && style1.formatter === style2.formatter && style1.hAlign === style2.hAlign && style1.imeMode === style2.imeMode && style1.isVerticalText === style2.isVerticalText && style1.vAlign === style2.vAlign && style1.locked === style2.locked && style1.textDecoration === style2.textDecoration && style1.textIndent === style2.textIndent && style1.textOrientation === style2.textOrientation && style1.formatter === style2.formatter) {\n    return true;\n  }\n  return false;\n}\nfunction isBorderEqual(border1, border2) {\n  if (!(border1 && border2)) {\n    if (!border1 && !border2) {\n      return true;\n    }\n    return false;\n  } else {\n    if (border1.style === border2.style && border1.color === border2.color) {\n      return true;\n    }\n    return false;\n  }\n}\nfunction createRandomId() {\n  return 'styleName_' + (0, _getRandom[\"default\"])();\n}\n\n/**\n * 绑定主从sheet事件\n * 副sheet会跟随主sheet的事件，例如主sheet滚动，副sheet也滚动\n * @param {Object} masterSpread - 主spread\n * @param {Objext} slaveActiveSpreads - 从spread\n * @param {Array} eventList - 需要绑定的事件\n * @param {String} listenerKey - 监听的唯一key值，否则listener会被覆盖\n */\nfunction bindSyncSheetEvents(masterSpread) {\n  var slaveSpreads = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n  var eventList = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n  var listenerKey = arguments.length > 3 ? arguments[3] : undefined;\n  var slaveActiveSheets = slaveSpreads.map(function (slaveSpread) {\n    return slaveSpread.getActiveSheet();\n  });\n  var masterActiveSheet = masterSpread.getActiveSheet();\n  var handleTopRowChanged = function handleTopRowChanged(e, args) {\n    // 设置垂直滚动条同步滚动\n    slaveActiveSheets.forEach(function (slaveActiveSheet) {\n      return slaveActiveSheet.showRow(args.newTopRow, _spreadSheets[\"default\"].Spread.Sheets.VerticalPosition.top);\n    });\n  };\n  var handleRowHeightChanged = function handleRowHeightChanged(e, args) {\n    // 设置行高同步修改\n    var rowList = args.rowList,\n      sheet = args.sheet;\n    var rowHeight = sheet.getRowHeight(rowList[0]); // 多行拖动的时候，高度最终都是相同的，所以只需要拿拖动的第一行的宽度\n    slaveActiveSheets.forEach(function (slaveActiveSheet) {\n      return rowList.forEach(function (row) {\n        return slaveActiveSheet.setRowHeight(row, rowHeight);\n      });\n    });\n  };\n  var handleLeftColumnChanged = function handleLeftColumnChanged(e, args) {\n    // 设置水平滚动条同步滚动\n    slaveActiveSheets.forEach(function (slaveActiveSheet) {\n      return slaveActiveSheet.showColumn(args.newLeftCol, _spreadSheets[\"default\"].Spread.Sheets.HorizontalPosition.left);\n    });\n  };\n  var handleColumnWidthChanged = function handleColumnWidthChanged(e, args) {\n    // 设置列宽同步修改\n    var colList = args.colList,\n      sheet = args.sheet;\n    var colWidth = sheet.getColumnWidth(colList[0]); // 多列拖动的时候，宽度最终都是相同的，所以只需要拿拖动的第一列的宽度\n    slaveActiveSheets.forEach(function (slaveActiveSheet) {\n      return colList.forEach(function (col) {\n        return slaveActiveSheet.setColumnWidth(col, colWidth);\n      });\n    });\n  };\n  var handleViewZoomed = function handleViewZoomed(e, args) {\n    // 设置缩放同步\n    var newZoomFactor = args.newZoomFactor;\n    slaveSpreads.forEach(function (slaveSpread) {\n      return slaveSpread.commandManager().execute({\n        // 缩放同步执行的是命令，因为底下的百分比按钮需要联动...\n        cmd: customCommandName.KD_SET_VIEW_ZOOM,\n        sheetName: slaveSpread.getActiveSheet().name(),\n        data: {\n          newScale: newZoomFactor\n        }\n      });\n    });\n  };\n  masterSpread.commandManager().addListener(listenerKey, function (props) {\n    // 这里之所以加监听是因为前端通过API去设置的格式不能触发事件监听函数，需要用命令监听\n    var command = props.command;\n    switch (command.type) {\n      case customCommandName.KD_SET_ROWS_HEIGHT:\n        {\n          if (eventList.includes('rowHeight')) {\n            var rowList = masterActiveSheet.getSelections().map(function (selection) {\n              return selection.row;\n            });\n            var rowHeight = masterActiveSheet.getRowHeight(rowList[0]);\n            slaveActiveSheets.forEach(function (slaveActiveSheet) {\n              return rowList.forEach(function (row) {\n                return slaveActiveSheet.setRowHeight(row, rowHeight);\n              });\n            });\n          }\n          break;\n        }\n      case customCommandName.KD_SET_COLS_WIDTH:\n        {\n          if (eventList.includes('columnWidth')) {\n            var colList = masterActiveSheet.getSelections().map(function (selection) {\n              return selection.col;\n            });\n            var _rowHeight = masterActiveSheet.getColumnWidth(colList[0]);\n            slaveActiveSheets.forEach(function (slaveActiveSheet) {\n              return colList.forEach(function (col) {\n                return slaveActiveSheet.setColumnWidth(col, _rowHeight);\n              });\n            });\n          }\n          break;\n        }\n      case customCommandName.KD_SET_VIEW_ZOOM:\n        {\n          if (eventList.includes('viewZoom')) {\n            var newScale = command.data.newScale;\n            slaveSpreads.forEach(function (slaveSpread) {\n              return slaveSpread.commandManager().execute({\n                cmd: customCommandName.KD_SET_VIEW_ZOOM,\n                sheetName: slaveSpread.getActiveSheet().name(),\n                data: {\n                  newScale: newScale\n                }\n              });\n            });\n          }\n          break;\n        }\n      default:\n        break;\n    }\n  });\n  var spreadEvents = _spreadSheets[\"default\"].Spread.Sheets.Events;\n  if (eventList.includes('topRow')) {\n    masterActiveSheet.bind(spreadEvents.TopRowChanged, handleTopRowChanged);\n  }\n  if (eventList.includes('leftColumn')) {\n    masterActiveSheet.bind(spreadEvents.LeftColumnChanged, handleLeftColumnChanged);\n  }\n  if (eventList.includes('rowHeight')) {\n    masterActiveSheet.bind(spreadEvents.RowHeightChanged, handleRowHeightChanged);\n  }\n  if (eventList.includes('columnWidth')) {\n    masterActiveSheet.bind(spreadEvents.ColumnWidthChanged, handleColumnWidthChanged);\n  }\n  if (eventList.includes('viewZoom')) {\n    masterActiveSheet.bind(spreadEvents.ViewZoomed, handleViewZoomed);\n  }\n  return function () {\n    masterSpread.commandManager().removeListener(listenerKey);\n    masterActiveSheet.unbind(spreadEvents.TopRowChanged, handleTopRowChanged);\n    masterActiveSheet.unbind(spreadEvents.LeftColumnChanged, handleLeftColumnChanged);\n    masterActiveSheet.unbind(spreadEvents.RowHeightChanged, handleRowHeightChanged);\n    masterActiveSheet.unbind(spreadEvents.ColumnWidthChanged, handleColumnWidthChanged);\n    masterActiveSheet.unbind(spreadEvents.ViewZoomed, handleViewZoomed);\n  };\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/directives/index.js":
/*!*******************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/directives/index.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"EventHolder\", ({\n  enumerable: true,\n  get: function get() {\n    return _EventHolder[\"default\"];\n  }\n}));\nexports.allDirective = void 0;\nvar _allDirective = _interopRequireWildcard(__webpack_require__(/*! ./directiveHandle */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js\"));\nexports.allDirective = _allDirective;\nvar _EventHolder = _interopRequireDefault(__webpack_require__(/*! ./EventHolder */ \"./src/component/web/DataGrid/ReportGrid/directives/EventHolder.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/directives/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/events/bindEvent.js":
/*!*******************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/events/bindEvent.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.bindEvent = bindEvent;\nexports.bindSheetEvent = bindSheetEvent;\nexports.bindSpreadEvent = bindSpreadEvent;\nexports.unbindEvent = unbindEvent;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _eventList = __webpack_require__(/*! ./eventList */ \"./src/component/web/DataGrid/ReportGrid/events/eventList.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /**\n * 绑定所需的spread事件\n * by kechuang\n */\nfunction bindEvent(spread, spreadEventHandle, sheetEventHandle) {\n  if (spreadEventHandle) {\n    bindSpreadEvent(spread, spreadEventHandle);\n  }\n  var sheetCount = spread.getSheetCount();\n  for (var i = 0; i < sheetCount; i++) {\n    bindSheetEvent(spread.getSheet(i), sheetEventHandle);\n  }\n}\nfunction unbindEvent(spread) {\n  spread.unbindAll();\n  var sheetCount = spread.getSheetCount();\n  for (var i = 0; i < sheetCount; i++) {\n    spread.getSheet(i).unbindAll();\n  }\n}\nfunction bindSpreadEvent(spread, spreadEventHandle) {\n  Object.keys(spreadEventHandle).forEach(function (eventName) {\n    var _iterator = _createForOfIteratorHelper(_eventList.spreadEventList),\n      _step;\n    try {\n      for (_iterator.s(); !(_step = _iterator.n()).done;) {\n        var name = _step.value;\n        if (eventName.toLowerCase() === name.toLowerCase()) {\n          if (_spreadSheets[\"default\"].Spread.Sheets.Events[name]) {\n            spread.bind(_spreadSheets[\"default\"].Spread.Sheets.Events[name], spreadEventHandle[eventName]);\n          }\n          break;\n        }\n      }\n    } catch (err) {\n      _iterator.e(err);\n    } finally {\n      _iterator.f();\n    }\n  });\n}\nfunction bindSheetEvent(sheet, sheetEventHandle) {\n  Object.keys(sheetEventHandle).forEach(function (eventName) {\n    var _iterator2 = _createForOfIteratorHelper(_eventList.sheetEventList),\n      _step2;\n    try {\n      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n        var name = _step2.value;\n        if (eventName.toLowerCase() === name.toLowerCase()) {\n          if (_spreadSheets[\"default\"].Spread.Sheets.Events[name]) {\n            sheet.bind(_spreadSheets[\"default\"].Spread.Sheets.Events[name], sheetEventHandle[eventName]);\n          }\n          break;\n        }\n      }\n    } catch (err) {\n      _iterator2.e(err);\n    } finally {\n      _iterator2.f();\n    }\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/events/bindEvent.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/events/eventHandle.js":
/*!*********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/events/eventHandle.js ***!
  \*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.getSheetEventHandle = getSheetEventHandle;\nexports.getSpreadEventHandle = getSpreadEventHandle;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar HandleUtils = _interopRequireWildcard(__webpack_require__(/*! ./eventHandleUtils */ \"./src/component/web/DataGrid/ReportGrid/events/eventHandleUtils.js\"));\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _eventUtils = __webpack_require__(/*! ./eventUtils */ \"./src/component/web/DataGrid/ReportGrid/events/eventUtils.js\");\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nvar _reportUtils = __webpack_require__(/*! ../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _serverSpreadParams = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * spreadjs事件\n * by kechuang\n */\n/**\n * 绑定在spread层上的事件\n * @param {*} params 需要入侵到事件的参数\n */\nfunction getSpreadEventHandle(params) {\n  var spreadEventList = {};\n  var newTabFlag = false;\n  spreadEventList.buttonClicked = function (e, args) {\n    HandleUtils.buttonClicked(e, args)(params);\n  };\n  spreadEventList.ActiveSheetChanging = function (e, args) {\n    var _params$spread$server;\n    var scale = args.newSheet.zoom();\n    params.dataPipeModel.sendData({\n      type: 'SetZoomingScale',\n      scale: scale\n    });\n    if ((_params$spread$server = params.spread.serverSpreadParams) !== null && _params$spread$server !== void 0 && _params$spread$server[_serverSpreadParams.USE_SHEET_PRINT_CONFIG]) {\n      params.dataPipeModel.sendData({\n        type: 'print',\n        isHide: true\n      });\n    }\n  };\n  spreadEventList.ActiveSheetChanged = function (e, args) {\n    HandleUtils.sheetTabChange(args.newSheet, newTabFlag)(params);\n    if (newTabFlag) {\n      HandleUtils.mountEvent(args.newSheet, params);\n      newTabFlag = false;\n    }\n  };\n  spreadEventList.SheetTabClick = function (e, args) {\n    if (args.sheetTabIndex === -1) {\n      newTabFlag = true;\n    }\n  };\n  spreadEventList.SheetNameChanged = function (e, args) {\n    var newValue = args.newValue;\n    HandleUtils.sheetNameChanged(newValue)(params);\n  };\n  spreadEventList.SheetMoved = function (e, args) {\n    var oldIndex = args.oldIndex,\n      newIndex = args.newIndex;\n    HandleUtils.sheetMoved(oldIndex, newIndex)(params);\n  };\n  return spreadEventList;\n}\n\n/**\n * 绑定在sheet层的事件\n * @param {*} params\n */\nfunction getSheetEventHandle(params) {\n  var sheetEventList = {};\n  var spread = params.spread;\n  sheetEventList.selectionChanged = function (e, args) {\n    HandleUtils.selectionChanged(e, args)(params.props, params.dataPipeModel, params.spread);\n    params.dataPipeModel.sendData({\n      type: 'UpdateMergeCell',\n      spread: params.spread\n    });\n  };\n  sheetEventList.SelectionChanging = function (e, args) {\n    HandleUtils.selectionChanging(e, args)(params.props, params.dataPipeModel, params.spread);\n  };\n\n  // sheetEventList.cellClick = (e, args) => {\n  //   params.dataPipeModel.setSpreadData('stopAsyncCalculate', false)\n  // }\n\n  sheetEventList.clipboardChanged = function (e, args) {\n    // 用来将粘贴板的数据暂存在sheet对象\n    var sheet = args.sheet;\n    (0, _eventUtils.getSelectedRangesAndValue)(sheet, spread);\n  };\n  sheetEventList.clipboardPasting = function (e, args) {\n    var isCalcOnDemand = params.dataPipeModel.getSpreadData('calcOnDemand');\n    if (isCalcOnDemand) {\n      params.spread.options.calcOnDemand = false;\n    }\n    params.dataPipeModel.setSpreadData('stopAsyncCalculate', true);\n    // 不粘贴图片\n    if (args.pasteData.text === '' && args.pasteData.image) {\n      var _tagInfo$settingInfo$, _tagInfo$settingInfo;\n      var tagInfo = params.spread.getActiveSheet().tag();\n      args.cancel = (_tagInfo$settingInfo$ = tagInfo === null || tagInfo === void 0 || (_tagInfo$settingInfo = tagInfo.settingInfo) === null || _tagInfo$settingInfo === void 0 ? void 0 : _tagInfo$settingInfo.notPastePicture) !== null && _tagInfo$settingInfo$ !== void 0 ? _tagInfo$settingInfo$ : false;\n    } else {\n      var _params$props$model = params.props.model,\n        pageId = _params$props$model.pageId,\n        key = _params$props$model.key;\n      var range = JSON.parse(JSON.stringify(args.cellRange));\n      (0, _memoryCacher.setPageData)(pageId, [key, 'pasteRange'], {\n        range: range\n      });\n      args.sheet.suppressRangeChanged = true;\n      HandleUtils.clipboardPasting(e, args, spread);\n    }\n  };\n  sheetEventList.pictureChanged = function (e, args) {\n    var _params$props$model2 = params.props.model,\n      pageId = _params$props$model2.pageId,\n      key = _params$props$model2.key;\n    (0, _memoryCacher.setPageData)(pageId, [key, 'delePic'], {\n      name: args.picture.name()\n    });\n  };\n  sheetEventList.clipboardPasted = function (e, args) {\n    var sheet = args.sheet;\n    (0, _eventUtils.setSpecialCell)(sheet, args.specialCellData, args.mergeCell);\n    if (spread.cutSelectionSArgs && spread.cutSelectionSArgs.isCut) {\n      if (sheet.isCutting) {\n        var _spread$cutSelectionS = spread.cutSelectionSArgs,\n          selections = _spread$cutSelectionS.selections,\n          sheetName = _spread$cutSelectionS.sheetName;\n        Object.assign(args, {\n          cutRange: selections,\n          fromSheetName: sheetName\n        });\n      }\n    }\n    HandleUtils.clipboardPasted(args)(params, args.lockedCells);\n    spread.cutSelectionSArgs = null;\n    sheet.isCutting = false;\n    var isCalcOnDemand = params.dataPipeModel.getSpreadData('calcOnDemand');\n    if (isCalcOnDemand) {\n      params.spread.options.calcOnDemand = true;\n    }\n    // params.dataPipeModel.sendData({ type: 'HideLoading' })\n  };\n  var shouldUpdateFormula = false;\n  sheetEventList.DragFillBlock = function (e, args) {\n    var sheet = args.sheet,\n      fillRange = args.fillRange;\n    // 选中区域和填充区域任一地方存在公式才发送公式更新请求\n    shouldUpdateFormula = (0, _reportUtils.selectionsHasFormula)(sheet, sheet.getSelections()) || (0, _reportUtils.selectionsHasFormula)(sheet, [fillRange]);\n  };\n  sheetEventList.dragFillBlockCompleted = function (e, args) {\n    HandleUtils.dragFillBlockCompleted(args)(_objectSpread(_objectSpread({}, params), {}, {\n      shouldUpdateFormula: shouldUpdateFormula\n    }));\n  };\n\n  /**\n   * 单元格通过编辑态去改变单元格的值的时候\n   * 触发这个事件（setValue方法不会触发）\n   * @param {*} e\n   * @param {*} args\n   */\n  sheetEventList.valueChanged = function (e, args) {\n    HandleUtils.valueChanged(args)(params);\n  };\n  sheetEventList.editStarting = function (e, args) {\n    params.dataPipeModel.setSpreadData('stopAsyncCalculate', false);\n    HandleUtils.editStarting(args)(params);\n  };\n  sheetEventList.editEnded = function (e, args) {\n    var col = args.col,\n      row = args.row,\n      editingText = args.editingText,\n      sheet = args.sheet;\n    var formula = sheet.getFormula(row, col);\n    // 若公式修改成功了 那么当前单元格的公式应与input框中输入的内容一致\n    // 特殊处理：少一个括号的时候会自定填充，这时没必要再提示公式错误；spread会将去除空格的发送到后端，这时也没必要再提示公式错误\n    var userInput = typeof editingText === 'string' ? editingText.toLowerCase() : editingText;\n    var realityInput = '=' + (typeof formula === 'string' ? formula.toLowerCase() : formula);\n    try {\n      if (formula && userInput.replace(/\\s+/g, '') !== realityInput && userInput && realityInput !== userInput && (realityInput === null || realityInput === void 0 ? void 0 : realityInput.length) !== (userInput === null || userInput === void 0 ? void 0 : userInput.length) + 1) {\n        // 跨页签引用时，该方法触发两次，第二次userInput才有值， 因此需判断userInput是否存在\n        var message = {\n          content: (0, _intlApi.getLangMsg)({\n            key: 'spread.key0175',\n            variables: {\n              row: row + 1,\n              col: col + 1\n            }\n          }),\n          type: 1\n        };\n        (0, _appModelFunction.setDataMessages)(params.props.model.pageId, message);\n      }\n    } catch (error) {\n      console.log(error);\n    }\n    HandleUtils.editEnded(args)(params);\n  };\n\n  /**\n   * 当工作表的单元格发生改变，需要重绘单元格时触发\n   * 用来监控自定义公式单元格中公式的变化（暂时）\n   * @param {*} e\n   * @param {*} args\n   */\n  sheetEventList.cellChanged = function (e, args) {\n    if (!params.spread.isReplaceSelection) {\n      HandleUtils.cellChanged(args)(params);\n    }\n  };\n\n  /**\n   * rangeChanged事件的触发方式很多，复制粘贴可以触发，移动拖拽可以触发，清除时触发等多种触发方式\n   * 公式单元格计算时会触发\n   * @param {*} e\n   * @param {*} args\n   */\n\n  // 这里有问题 清除公式只发了公式更新的指令  未发值更新指令 撤销只发了公式更新指令 未发值更新指令\n\n  sheetEventList.rangeChanged = function (e, args) {\n    // 2:clear, 3:paste, 6:evaluateFormula\n    var _params$props$model3 = params.props.model,\n      pageId = _params$props$model3.pageId,\n      key = _params$props$model3.key;\n    var pasteRange = (0, _memoryCacher.getPageData)(pageId, [key, 'pasteRange']);\n    var suppressRangeChanged = args.sheet.suppressRangeChanged;\n    if (suppressRangeChanged && pasteRange !== null && pasteRange !== void 0 && pasteRange.range && args.action === 6) {\n      var _pasteRange$range = pasteRange.range,\n        col = _pasteRange$range.col,\n        colCount = _pasteRange$range.colCount,\n        row = _pasteRange$range.row,\n        rowCount = _pasteRange$range.rowCount;\n      // 公式重新计算时，需要将计算后的值同步到后端\n      var formulaRecalculation = args.changedCells.filter(function (_ref) {\n        var r = _ref.row,\n          c = _ref.col;\n        return !(r >= row && r <= row + rowCount && c >= col && c <= col + colCount);\n      });\n      (0, _memoryCacher.setPageData)(pageId, [key, 'pasteRange'], {\n        range: ''\n      });\n      HandleUtils.rangeChanged(args)(params, formulaRecalculation);\n    }\n    if (args.action === 6 || args.action === 2) {\n      !suppressRangeChanged && HandleUtils.rangeChanged(args)(params);\n    }\n    if (args.action === 3) {\n      var _col = args.col,\n        _colCount = args.colCount,\n        _row = args.row,\n        _rowCount = args.rowCount,\n        sheetName = args.sheetName;\n      if (params.spread.CancelCtrlZArgs) {\n        params.spread.CancelCtrlZArgs.ranges.push({\n          col: _col,\n          colCount: _colCount,\n          row: _row,\n          rowCount: _rowCount\n        });\n      } else {\n        var CancelCtrlZArgs = {\n          ranges: [{\n            col: _col,\n            colCount: _colCount,\n            row: _row,\n            rowCount: _rowCount\n          }],\n          sheetName: sheetName\n        };\n        params.spread.CancelCtrlZArgs = CancelCtrlZArgs;\n      }\n    }\n  };\n\n  /**\n     * 告诉后端当前单元格是否锁定\n     * @param {*} e\n     * @param {*} args\n     */\n  sheetEventList.cellDoubleClick = function (e, args) {\n    HandleUtils.cellDoubleClick(args)(params.props);\n  };\n  sheetEventList.UserZooming = function (e, args) {\n    var data = {\n      type: 'SetZoomingScale',\n      scale: args.newZoomFactor\n    };\n    params.dataPipeModel.sendData(data);\n  };\n  sheetEventList.RangeFiltered = function (e, info) {\n    HandleUtils.rangeFiltered(info)(params.dataPipeModel);\n  };\n  sheetEventList.ColumnWidthChanging = function (e, args) {\n    if (args.header) {\n      args.cancel = true;\n      args.sheet.repaint(); // 有时候拖拽的虚线没有消失，所以需要重绘一次\n    }\n  };\n  sheetEventList.ColumnChanged = function (e, args) {\n    var _params$props$model4 = params.props.model,\n      pageId = _params$props$model4.pageId,\n      key = _params$props$model4.key;\n    var repeatRequestArray = (0, _memoryCacher.getPageData)(pageId, [key, 'repeatRequestArray']);\n    if (repeatRequestArray) (0, _memoryCacher.setPageData)(pageId, [key, 'repeatRequestArray'], []); // 新增或者删除列时，清空记录的已发送过的行列\n  };\n  sheetEventList.RowHeightChanging = function (e, args) {\n    if (args.header) {\n      args.cancel = true;\n      args.sheet.repaint();\n    }\n  };\n  sheetEventList.RowHeightChanged = function (e, args) {\n    var _sheet$tag;\n    var rowList = args.rowList,\n      sheet = args.sheet;\n    var changedRowListConfig = ((_sheet$tag = sheet.tag()) === null || _sheet$tag === void 0 ? void 0 : _sheet$tag.changedRowListConfig) || {};\n    var _changedRowListConfig = changedRowListConfig.changedRowList,\n      changedRowList = _changedRowListConfig === void 0 ? [] : _changedRowListConfig,\n      isAutoFit = changedRowListConfig.isAutoFit;\n    if (!isAutoFit) {\n      changedRowList = changedRowList.concat(rowList);\n    }\n    (0, _common.setSheetTag)(sheet, {\n      changedRowListConfig: {\n        changedRowList: changedRowList,\n        isAutoFit: false\n      }\n    });\n  };\n  sheetEventList.RowChanged = function (e, args) {\n    var _params$props$model5 = params.props.model,\n      pageId = _params$props$model5.pageId,\n      key = _params$props$model5.key;\n    var repeatRequestArray = (0, _memoryCacher.getPageData)(pageId, [key, 'repeatRequestArray']);\n    if (repeatRequestArray) (0, _memoryCacher.setPageData)(pageId, [key, 'repeatRequestArray'], []); // 新增或者删除列时，清空记录的已发送过的行列\n  };\n  sheetEventList.EnterCell = function (e, args) {\n    var sheet = args.sheet,\n      col = args.col,\n      row = args.row;\n    var cellType = sheet.getCellType(row, col);\n    if (cellType.typeName === 'f7') {\n      var tagInfo = sheet.tag() || {};\n      tagInfo.currentEntrtF7Cell = {\n        row: row,\n        col: col\n      };\n      sheet.tag(tagInfo);\n      setTimeout(function () {\n        cellType.showIcon = true;\n      }, 0);\n      sheet.repaint();\n    }\n  };\n  sheetEventList.LeaveCell = function (e, args) {\n    var sheet = args.sheet,\n      col = args.col,\n      row = args.row;\n    var cellType = sheet.getCellType(row, col);\n    if (cellType.typeName === 'f7') {\n      var tagInfo = sheet.tag() || {};\n      tagInfo.currentEntrtF7Cell = {};\n      sheet.tag(tagInfo);\n      delete cellType.showIcon;\n      sheet.repaint();\n    }\n  };\n  sheetEventList.TopRowChanged = function (e, args) {\n    HandleUtils.sendViewportRange(args)(params.props);\n  };\n  sheetEventList.LeftColumnChanged = function (e, args) {\n    HandleUtils.sendViewportRange(args)(params.props);\n  };\n  sheetEventList.UserFormulaEntered = function (e, args) {\n    if (args.isCircularReference) {\n      var col = args.col,\n        row = args.row;\n      var pageId = params.props.model.pageId;\n      var message = {\n        content: (0, _intlApi.getLangMsg)({\n          key: 'spread.key0149',\n          variables: {\n            row: row + 1,\n            col: col + 1\n          }\n        }),\n        duration: 3000,\n        type: 1\n      };\n      (0, _appModelFunction.setDataMessages)(pageId, message);\n    }\n  };\n  sheetEventList.ValidationError = function (e, args) {\n    var dataValidator = args.validator;\n    if (!dataValidator.showErrorMessage()) return;\n    var _params$props$model6 = params.props.model,\n      pageId = _params$props$model6.pageId,\n      key = _params$props$model6.key;\n    var col = args.col,\n      row = args.row;\n    var errorStyle = dataValidator.errorStyle();\n    var errorTitle = dataValidator.errorTitle();\n    var errorMessage = dataValidator.errorMessage();\n    var titleArray = errorTitle.split('__customCallback__');\n    var title = titleArray[0];\n    var invokemethod = titleArray[1] && titleArray[1].split('_cuttingline_')[0];\n    var callback = titleArray[1] && titleArray[1].split('_cuttingline_')[1];\n    if (invokemethod && callback) {\n      var data = {\n        r: row,\n        c: col,\n        type: errorStyle\n      };\n      params.props.dispatch((0, _gridaction.invokeControlMethodOnly)({\n        pageId: pageId,\n        key: key\n      }, callback, [{\n        data: data,\n        invokemethod: invokemethod\n      }]));\n    }\n    var message;\n    var content = title || errorMessage ? (0, _intlApi.getLangMsg)({\n      key: 'spread.key0228',\n      variables: {\n        title: \"[\".concat(title, \"]: \"),\n        msg: errorMessage\n      }\n    }) : (0, _intlApi.getLangMsg)({\n      key: 'spread.key0227'\n    });\n    if (dataValidator) {\n      if (errorStyle === 1 || errorStyle === 2) {\n        args.validationResult = 0;\n        message = {\n          content: content,\n          duration: 3000,\n          type: 2\n        };\n      } else if (errorStyle === 0) {\n        args.validationResult = 1;\n        message = {\n          content: content,\n          duration: 3000,\n          type: 1\n        };\n      }\n      (0, _appModelFunction.setDataMessages)(pageId, message);\n    }\n  };\n  return sheetEventList;\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/events/eventHandle.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/events/eventHandleUtils.js":
/*!**************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/events/eventHandleUtils.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.valueChanged = exports.sheetTabChange = exports.sheetNameChanged = exports.sheetMoved = exports.sendViewportRange = exports.selectionChanging = exports.selectionChanged = exports.rangeFiltered = exports.rangeChanged = exports.mountEvent = exports.editStarting = exports.editEnded = exports.dragFillBlockCompleted = exports.clipboardPasting = exports.clipboardPasted = exports.cellDoubleClick = exports.cellChanged = exports.buttonClicked = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\nvar _appModelFunction = __webpack_require__(/*! ../../../../../model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _eventUtils = __webpack_require__(/*! ./eventUtils */ \"./src/component/web/DataGrid/ReportGrid/events/eventUtils.js\");\nvar M = _interopRequireWildcard(__webpack_require__(/*! ../directives/directiveUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\"));\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _eventHandle = __webpack_require__(/*! ../events/eventHandle */ \"./src/component/web/DataGrid/ReportGrid/events/eventHandle.js\");\nvar _bindEvent = __webpack_require__(/*! ../events/bindEvent */ \"./src/component/web/DataGrid/ReportGrid/events/bindEvent.js\");\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nvar _appModelFunction2 = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _serverSpreadParams = __webpack_require__(/*! ../constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nvar proxy = _interopRequireWildcard(__webpack_require__(/*! @/proxy/formproxy */ \"./src/proxy/formproxy.js\"));\nvar _ajaxState = __webpack_require__(/*! @/api/ajaxState */ \"./src/api/ajaxState.js\");\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /**\n * 事件处理方法\n * by kechuang\n */\n// cellchanged节流触发sendCellInfo\n// const debounceSend = _.debounce(sendCellInfo, 300, { trailing: true })\n\nvar selectionChanged = exports.selectionChanged = function selectionChanged(e, args) {\n  return function (props, dataPipeModel, spread) {\n    var _spread$serverSpreadP;\n    var _props$model = props.model,\n      pageId = _props$model.pageId,\n      key = _props$model.key;\n    var selectRows = [];\n    var selectCols = [];\n    var newSelections = args.newSelections;\n    var selectRange = (0, _common.convertRange)(args.sheet, newSelections[0]);\n    for (var i = 0; i < selectRange.rowCount; i++) {\n      selectRows.push(selectRange.row + i);\n    }\n    for (var j = 0; j < selectRange.colCount; j++) {\n      selectCols.push(selectRange.col + j);\n    }\n    var selectState = {\n      fieldKey: newSelections[0].col,\n      row: newSelections[0].row,\n      selRows: selectRows,\n      selCols: selectCols,\n      isClientNewRow: false,\n      clientNewRows: '',\n      sheetName: args.sheetName || args.sheet.name()\n    };\n    if (newSelections.length > 1) {\n      selectState.selections = newSelections;\n    }\n    // 选中整行/整列时，工具栏中插入行/列需要隐藏\n    var foreName = (_spread$serverSpreadP = spread.serverSpreadParams) !== null && _spread$serverSpreadP !== void 0 && _spread$serverSpreadP[_serverSpreadParams.USE_NEW_INSERT] ? 'New' : '';\n    if (newSelections[0].row === -1) {\n      dataPipeModel.sendData({\n        type: 'LockToolbarItem',\n        lockItems: [{\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertRowTop\"),\n          isLock: true\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertRowBottom\"),\n          isLock: true\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertColLeft\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertColRight\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_DeleteRow\"),\n          isLock: true\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_DeleteCol\"),\n          isLock: false\n        }]\n      });\n    } else if (newSelections[0].col === -1) {\n      dataPipeModel.sendData({\n        type: 'LockToolbarItem',\n        lockItems: [{\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertRowTop\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertRowBottom\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertColLeft\"),\n          isLock: true\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertColRight\"),\n          isLock: true\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_DeleteRow\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_DeleteCol\"),\n          isLock: true\n        }]\n      });\n    } else {\n      dataPipeModel.sendData({\n        type: 'LockToolbarItem',\n        lockItems: [{\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertColLeft\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertColRight\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertRowTop\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_InsertRowBottom\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_DeleteRow\"),\n          isLock: false\n        }, {\n          name: \"\".concat(foreName, \"InsertRowAndCol_DeleteCol\"),\n          isLock: false\n        }]\n      });\n    }\n    // 多页签时，获取选中的页签索引写入控件postData，传到后端给插件用\n    var selSheets = (0, _common.getSeletedSheets)(spread);\n    if (selSheets) {\n      selectState.selSheets = selSheets;\n    }\n    var sheet = args.sheet;\n    var changeData = {};\n    changeData.type = 'SendCellInfo';\n    changeData.sheet = sheet;\n    changeData.selections = newSelections;\n    dataPipeModel.sendData(changeData);\n    props.dispatch((0, _appModelFunction.convertAppModelFunctionAction)((0, _appModelFunction.setControlPostValue)(pageId, key, selectState))); // 也许后台没有模型？\n    props.dispatch((0, _gridaction.EntityRowClick)({\n      pageId: pageId,\n      key: key\n    }, [args.newSelections[0].row]));\n  };\n};\nvar selectionChanging = exports.selectionChanging = function selectionChanging(e, args) {\n  return function (props, dataPipeModel, spread) {\n    var newSelections = args.newSelections;\n    var sheet = args.sheet;\n    var changeData = {};\n    changeData.type = 'SendChangingCellInfo';\n    changeData.sheet = sheet;\n    changeData.selections = newSelections;\n    dataPipeModel.sendData(changeData);\n  };\n};\nvar firstStyleChangeFlag = true;\nvar cellChanged = exports.cellChanged = function cellChanged(args) {\n  return function (_ref) {\n    var _spread$serverSpreadP2;\n    var dataPipeModel = _ref.dataPipeModel,\n      mergeAction = _ref.mergeAction,\n      spread = _ref.spread,\n      props = _ref.props;\n    var _props$model2 = props.model,\n      pageId = _props$model2.pageId,\n      key = _props$model2.key;\n    if (firstStyleChangeFlag) {\n      var cache = (0, _memoryCacher.getPageData)(pageId, [key, 'styleChange']);\n      if (cache) {\n        var callback = cache.callback,\n          invokemethod = cache.invokemethod;\n        props.dispatch((0, _gridaction.invokeControlMethodOnly)({\n          pageId: pageId,\n          key: key\n        }, callback, [{\n          data: '',\n          invokemethod: invokemethod\n        }]));\n        firstStyleChangeFlag = false;\n      }\n    }\n    var col = args.col,\n      row = args.row,\n      sheet = args.sheet,\n      newValue = args.newValue,\n      propertyName = args.propertyName;\n    // debounceSend(col, row, sheet, dataPipeModel)\n    (0, _eventUtils.sendCellInfo)(col, row, sheet, dataPipeModel);\n    if (args.propertyName === 'formula' && !sheet.suppressUpdateFormula) {\n      if (sheet.getCell(args.row, args.col).locked()) return;\n      var si = spread.getActiveSheetIndex();\n      var params = {\n        method: 'updateFormula',\n        arg: {\n          si: si,\n          formulas: [{\n            r: args.row,\n            c: args.col,\n            f: newValue\n          }]\n        },\n        needMergedKeys: ['formulas']\n      };\n      mergeAction.registerAction(params);\n    }\n    if ((_spread$serverSpreadP2 = spread.serverSpreadParams) !== null && _spread$serverSpreadP2 !== void 0 && _spread$serverSpreadP2[_serverSpreadParams.IS_UPDATE_STYLE_SEND_REQUEST]) {\n      if (propertyName === '[styleinfo]') {\n        var _si = spread.getActiveSheetIndex();\n        var _params = {\n          method: 'invokeAction',\n          arg: {\n            si: _si,\n            styles: [{\n              r: args.row,\n              c: args.col,\n              style: newValue.toJSON()\n            }],\n            invokemethod: 'updateStyle'\n          },\n          needMergedKeys: ['styles']\n        };\n        mergeAction.registerAction(_params);\n      }\n    }\n  };\n};\nvar clipboardPasting = exports.clipboardPasting = function clipboardPasting(e, args, spread) {\n  args.lockedCells = spread.lockedCells || [];\n  // 粘贴遵循一个规则：粘贴值和样式（业务要求遇到f7类型的不粘贴样式），保持原来的单元格类型不变\n  var _getSpecialCell = (0, _eventUtils.getSpecialCell)(args.cellRange, args.sheet, args.lockedCells),\n    specialCellData = _getSpecialCell.specialCellData,\n    mergeCell = _getSpecialCell.mergeCell;\n  args.specialCellData = specialCellData;\n  args.mergeCell = mergeCell || [];\n};\nvar clipboardPasted = exports.clipboardPasted = function clipboardPasted(args) {\n  return function (_ref2) {\n    var props = _ref2.props,\n      spread = _ref2.spread;\n    var _props$model3 = props.model,\n      pageId = _props$model3.pageId,\n      key = _props$model3.key;\n    var sheet = args.sheet,\n      cellrange = args.cellRange,\n      _args$fromSheetName = args.fromSheetName,\n      fromSheetName = _args$fromSheetName === void 0 ? sheet.name() : _args$fromSheetName,\n      cutrange = args.cutRange;\n    var fromSheet = spread.getSheetFromName(fromSheetName);\n    var fromSi = spread.getSheetIndex(fromSheetName);\n    var cellValues = [];\n    var cellFormulas = [];\n    var cutValues = [];\n    var cutFormulas = [];\n    var cellRange = (0, _common.convertRange)(sheet, cellrange);\n    var cutRange = cutrange && (0, _common.convertRange)(fromSheet, cutrange);\n    var isLockCell = false;\n    // 清除开始加的粘贴不执行rangeChanged变量\n    //   这可能存在问题，不要提交到release\n    sheet.suppressRangeChanged = false;\n    if (cutRange) {\n      var oldCellValues = spread.cutSelectionSArgs.cellValues;\n      var oldFormulaValues = spread.cutSelectionSArgs.cellFormulas;\n      for (var r = cutRange.row; r < cutRange.row + cutRange.rowCount; r++) {\n        for (var c = cutRange.col; c < cutRange.col + cutRange.colCount; c++) {\n          var f = fromSheet.getFormula(r, c);\n          var v = fromSheet.getValue(r, c);\n          var index = cutRange.colCount * (r - cutRange.row) + c - cutRange.col;\n          if (oldCellValues[index] !== null) {\n            cutValues.push({\n              r: r,\n              c: c,\n              v: v\n            });\n          }\n          if (oldFormulaValues[index] !== null) {\n            cutFormulas.push({\n              r: r,\n              c: c,\n              f: f\n            });\n          }\n        }\n      }\n    }\n    sheet.suspendPaint();\n    var _loop = function _loop(_r) {\n      (0, _common.autoFitRow)(sheet, _r);\n      var _loop2 = function _loop2(_c) {\n        var f = sheet.getFormula(_r, _c);\n        var v = sheet.getValue(_r, _c);\n        var cell = args.lockedCells.find(function (item) {\n          return item.r === _r && item.c === _c;\n        });\n        if (!cell) {\n          // 非锁定单元格才做值更新\n          var _index = cellRange.colCount * (_r - cellRange.row) + _c - cellRange.col;\n          var oldCell = args.specialCellData[_index];\n          if (oldCell.formula !== f) {\n            cellFormulas.push({\n              r: _r,\n              c: _c,\n              f: f\n            });\n          }\n          if (oldCell.value !== v) {\n            cellValues.push({\n              r: _r,\n              c: _c,\n              v: v\n            });\n          }\n          // 按住ctrl并连续按下v键会粘贴锁定单元格的锁定样式 这时需要手动解除锁定样式\n          sheet.getCell(_r, _c).locked() && sheet.getCell(_r, _c).locked(false);\n        } else {\n          // 锁定单元格塞回原来的值，不参与值更新\n          isLockCell = true;\n          if (cell.f) {\n            sheet.setFormula(_r, _c, cell.f);\n          } else {\n            sheet.setFormula(_r, _c, '');\n            sheet.setValue(_r, _c, cell.v);\n          }\n          sheet.getCell(cell.r, cell.c).locked(true);\n        }\n      };\n      for (var _c = cellRange.col; _c < cellRange.col + cellRange.colCount; _c++) {\n        _loop2(_c);\n      }\n    };\n    for (var _r = cellRange.row; _r < cellRange.row + cellRange.rowCount; _r++) {\n      _loop(_r);\n    }\n    sheet.resumePaint();\n    var si = spread.getActiveSheetIndex();\n    delete spread.CancelCtrlZArgs;\n    sendData({\n      type: 'formulas',\n      cutCellItem: cutFormulas,\n      cellItem: cellFormulas,\n      toSi: si,\n      fromSi: fromSi,\n      props: props\n    });\n    sendData({\n      type: 'values',\n      cutCellItem: cutValues,\n      cellItem: cellValues,\n      toSi: si,\n      fromSi: fromSi,\n      props: props\n    });\n    if (isLockCell) {\n      var message = {\n        content: (0, _intlApi.getLangMsg)({\n          key: 'spread.key0157'\n        }),\n        duration: 3000,\n        type: 'warning'\n      };\n      (0, _appModelFunction2.setDataMessages)(pageId, message);\n    }\n  };\n};\nfunction sendData(_ref3) {\n  var type = _ref3.type,\n    cutCellItem = _ref3.cutCellItem,\n    cellItem = _ref3.cellItem,\n    toSi = _ref3.toSi,\n    fromSi = _ref3.fromSi,\n    props = _ref3.props;\n  var _props$model4 = props.model,\n    pageId = _props$model4.pageId,\n    key = _props$model4.key;\n  var args = [];\n  if (cutCellItem.length > 0) {\n    if (toSi === fromSi) {\n      cellItem.push.apply(cellItem, _toConsumableArray(cutCellItem));\n      args.push(_defineProperty({\n        si: toSi\n      }, type, cellItem));\n    } else {\n      args.push(_defineProperty({\n        si: toSi\n      }, type, cellItem), _defineProperty({\n        si: fromSi\n      }, type, cutCellItem));\n    }\n  } else if (cellItem.length > 0) {\n    args.push(_defineProperty({\n      si: toSi\n    }, type, cellItem));\n  }\n  // si在最外层，合并不了，只能发两次请求了\n  args.forEach(function (item) {\n    var actionKey = type === 'values' ? 'updateValue' : 'updateFormula';\n    var requestKey = (0, _ajaxState.makeAjaxKey)(pageId, key, actionKey);\n    proxy.disableDisposeAction(requestKey);\n    props.dispatch((0, _gridaction.invokeControlMethodOnly)({\n      pageId: pageId,\n      key: key\n    }, actionKey, [item]));\n    proxy.allowDisposeAction(requestKey);\n  });\n}\nvar dragFillBlockCompleted = exports.dragFillBlockCompleted = function dragFillBlockCompleted(args) {\n  return function (_ref4) {\n    var props = _ref4.props,\n      spread = _ref4.spread,\n      shouldUpdateFormula = _ref4.shouldUpdateFormula;\n    var _props$model5 = props.model,\n      pageId = _props$model5.pageId,\n      key = _props$model5.key;\n    var cellValues = [];\n    var cellFormulas = [];\n    var fillRange = args.fillRange;\n    var sheet = args.sheet;\n    sheet.suspendPaint();\n    for (var r = fillRange.row; r < fillRange.row + fillRange.rowCount; r++) {\n      (0, _common.autoFitRow)(sheet, r);\n      for (var c = fillRange.col; c < fillRange.col + fillRange.colCount; c++) {\n        M.setCellTag([{\n          r: r,\n          c: c,\n          st: false\n        }])(sheet); // 拖拽填充不带小红点\n        var v = sheet.getValue(r, c);\n        var f = sheet.getFormula(r, c);\n        cellValues.push({\n          r: r,\n          c: c,\n          v: v\n        });\n        cellFormulas.push({\n          r: r,\n          c: c,\n          f: f\n        });\n      }\n    }\n    sheet.resumePaint();\n    if (cellFormulas.length > 0 && shouldUpdateFormula) {\n      var si = spread.getActiveSheetIndex();\n      props.dispatch((0, _gridaction.invokeControlMethodOnly)({\n        pageId: pageId,\n        key: key\n      }, 'updateFormula', [{\n        si: si,\n        formulas: cellFormulas\n      }]));\n    }\n    if (cellValues.length > 0) {\n      var _si2 = spread.getActiveSheetIndex();\n      props.dispatch((0, _gridaction.invokeControlMethodOnly)({\n        pageId: pageId,\n        key: key\n      }, 'updateValue', [{\n        si: _si2,\n        values: cellValues\n      }]));\n    }\n  };\n};\nvar valueChanged = exports.valueChanged = function valueChanged(args) {\n  return function (_ref5) {\n    var spread = _ref5.spread,\n      mergeAction = _ref5.mergeAction;\n    // let { pageId, key } = props.model;\n    // let v = args.newValue;\n    // let r = args.row;\n    // let c = args.col;\n    // props.invokeControlMethodOnly({ pageId, key }, 'updateValue', [{ values: [{ r, c, v }] }]);\n    var row = args.row,\n      col = args.col,\n      newValue = args.newValue,\n      sheetName = args.sheetName;\n    var si = spread.getSheetIndex(args.sheetName);\n    var params;\n    if (spread.options.tabStripVisible) {\n      params = {\n        method: 'updateValue',\n        arg: {\n          si: si,\n          values: [{\n            r: row,\n            c: col,\n            v: newValue,\n            sn: sheetName\n          }]\n        },\n        needMergedKeys: ['values']\n      };\n    } else {\n      params = {\n        method: 'updateValue',\n        arg: {\n          si: si,\n          values: [{\n            r: row,\n            c: col,\n            v: newValue\n          }]\n        },\n        needMergedKeys: ['values']\n      };\n    }\n    mergeAction.registerAction(params);\n  };\n};\nvar buttonClicked = exports.buttonClicked = function buttonClicked(e, args) {\n  return function (params) {\n    var row = args.row,\n      col = args.col;\n    var props = params.props,\n      spread = params.spread;\n    var dispatch = props.dispatch,\n      model = props.model;\n    var pageId = model.pageId,\n      key = model.key;\n    var cache = (0, _memoryCacher.getPageData)(pageId, [key, 'spreadCustomCheckBox']);\n    if (!cache || e.type !== 'ButtonClicked') return;\n    var callback = cache.callback,\n      invokemethod = cache.invokemethod,\n      ranges = cache.ranges;\n    if (!callback || !invokemethod || ranges.length < 1) return;\n    var isCheckbox = false;\n    ranges.forEach(function (item) {\n      var r = item.r,\n        c = item.c,\n        rc = item.rc,\n        cc = item.cc;\n      for (var i = r; i < r + rc; i++) {\n        for (var j = c; j < c + cc; j++) {\n          if (row === i && col === j) {\n            isCheckbox = true;\n            return;\n          }\n        }\n      }\n    });\n    if (!isCheckbox) return;\n    var data = {\n      r: args.row,\n      c: args.col\n    };\n    var si = spread.getActiveSheetIndex();\n    dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n      si: si,\n      data: data,\n      invokemethod: invokemethod\n    }]));\n  };\n};\nvar editStarting = exports.editStarting = function editStarting(args) {\n  return function (_ref6) {\n    var _spread$serverSpreadP3;\n    var props = _ref6.props,\n      spread = _ref6.spread;\n    var sheet = args.sheet,\n      row = args.row,\n      col = args.col;\n    var cell = sheet.getCell(row, col);\n    var type = cell.cellType();\n    if (type && type.typeName === 'btn') {\n      args.cancel = true;\n    }\n    var isEditSendRequset = (_spread$serverSpreadP3 = spread.serverSpreadParams) === null || _spread$serverSpreadP3 === void 0 ? void 0 : _spread$serverSpreadP3[_serverSpreadParams.IS_EDIT_SEND_REQUEST]; // 后端可通过setSpreadParams设置全局spread参数开启网络请求的发送\n    isEditSendRequset && props.invokeControlMethodOnly(props.model, 'invokeAction', [{\n      invokemethod: 'editStarting'\n    }]);\n  };\n};\nvar editEnded = exports.editEnded = function editEnded(args) {\n  return function (_ref7) {\n    var _spread$serverSpreadP4;\n    var props = _ref7.props,\n      spread = _ref7.spread;\n    var sheet = args.sheet,\n      row = args.row,\n      col = args.col,\n      editingText = args.editingText;\n    if (_lodash[\"default\"].includes(editingText, '\\n')) {\n      sheet.getCell(row, col).wordWrap(true);\n      sheet.autoFitRow(row);\n    }\n    var isEditSendRequset = (_spread$serverSpreadP4 = spread.serverSpreadParams) === null || _spread$serverSpreadP4 === void 0 ? void 0 : _spread$serverSpreadP4[_serverSpreadParams.IS_EDIT_SEND_REQUEST];\n    isEditSendRequset && props.invokeControlMethodOnly(props.model, 'invokeAction', [{\n      invokemethod: 'editEnded'\n    }]);\n  };\n};\nvar rangeChanged = exports.rangeChanged = function rangeChanged(args) {\n  return function (_ref8, formulaRecalculation) {\n    var spread = _ref8.spread,\n      mergeAction = _ref8.mergeAction;\n    // let { pageId, key } = props.model;\n    var sheet = args.sheet,\n      sheetName = args.sheetName;\n    var changedCells;\n    var cellFormulas = [];\n    if ((formulaRecalculation === null || formulaRecalculation === void 0 ? void 0 : formulaRecalculation.length) > 0) {\n      changedCells = formulaRecalculation;\n    } else {\n      changedCells = args.changedCells;\n    }\n    var changedValue = [];\n    if (spread.options.tabStripVisible) {\n      changedCells.forEach(function (cell) {\n        var r = cell.row;\n        var c = cell.col;\n        var v = sheet.getValue(r, c);\n        var f = sheet.getFormula(r, c);\n        var lockedCells = spread.lockedCells || [];\n        var lock = lockedCells.find(function (item) {\n          return item.r === r && item.c === c;\n        });\n        if (!lock) {\n          // 这里只针对撤销\n          f !== null && cellFormulas.push({\n            r: r,\n            c: c,\n            f: f,\n            sn: sheetName\n          });\n          changedValue.push({\n            r: r,\n            c: c,\n            v: v,\n            sn: sheetName\n          });\n        }\n      });\n    } else {\n      changedCells.forEach(function (cell) {\n        var r = cell.row;\n        var c = cell.col;\n        var v = sheet.getValue(r, c);\n        var f = sheet.getFormula(r, c);\n        var lockedCells = spread.lockedCells || [];\n        var lock = lockedCells.find(function (item) {\n          return item.r === r && item.c === c;\n        });\n        if (!lock) {\n          f !== null && cellFormulas.push({\n            r: r,\n            c: c,\n            f: f\n          });\n          changedValue.push({\n            r: r,\n            c: c,\n            v: v\n          });\n        }\n      });\n    }\n    // props.invokeControlMethodOnly({ pageId, key }, 'updateValue', [{ values: changedValue }]);\n    var si = spread.getActiveSheetIndex();\n    cellFormulas.length > 0 && args.action === 2 && mergeAction.registerAction({\n      method: 'updateFormula',\n      arg: {\n        si: si,\n        formulas: cellFormulas\n      },\n      needMergedKeys: ['formulas']\n    });\n    var params = {\n      method: 'updateValue',\n      arg: {\n        si: si,\n        values: changedValue\n      },\n      needMergedKeys: ['values']\n    };\n    setTimeout(function () {\n      changedValue.length > 0 && mergeAction.registerAction(params);\n    }, 0);\n  };\n};\nvar cellDoubleClick = exports.cellDoubleClick = function cellDoubleClick(args) {\n  return function (props) {\n    var _props$model6 = props.model,\n      pageId = _props$model6.pageId,\n      key = _props$model6.key;\n    var row = args.row,\n      col = args.col,\n      sheet = args.sheet;\n    var sheetIsProtected = sheet.options.isProtected;\n    var cellIsLocked = sheet.getCell(row, col).locked();\n    if (row !== 0 && !row || col !== 0 && !col) return;\n    if (sheetIsProtected && cellIsLocked) {\n      props.dispatch((0, _gridaction.invokeControlMethodOnly)({\n        pageId: pageId,\n        key: key\n      }, 'cellIsLocked', [{\n        values: {\n          r: row,\n          c: col\n        }\n      }]));\n    }\n  };\n};\nvar rangeFiltered = exports.rangeFiltered = function rangeFiltered(info) {\n  return function (dataPipeModel) {\n    var data = {\n      type: 'LockToolbarItem',\n      lockItems: [{\n        name: 'SortAndFilter_ClearFilter',\n        isLock: false\n      }, {\n        name: 'SortAndFilter_ReapplyFilter',\n        isLock: false\n      }]\n    };\n    dataPipeModel.sendData(data);\n    console.log(info);\n  };\n};\nvar timer = null;\nvar sendViewportRange = exports.sendViewportRange = function sendViewportRange(args) {\n  return function (props) {\n    var model = props.model;\n    var pageId = model.pageId,\n      key = model.key;\n    var cache = (0, _memoryCacher.getPageData)(pageId, [key, 'virtualMode']);\n    var repeatRequestArray = (0, _memoryCacher.getPageData)(pageId, [key, 'repeatRequestArray']);\n    if (!cache) return;\n    var isOpen = cache.isOpen,\n      callback = cache.callback,\n      invokemethod = cache.invokemethod,\n      delay = cache.delay;\n    if (isOpen === false) return;\n    clearTimeout(timer);\n    // 滚动条停止滚动300ms后，发送可视区域范围的请求\n    timer = setTimeout(function () {\n      var sheet = args.sheet;\n      var _getViewport = getViewport(sheet),\n        viewport = _getViewport.viewport,\n        fixedViewport = _getViewport.fixedViewport;\n      var _viewport$ = viewport[0],\n        topRow = _viewport$.topRow,\n        bottomRow = _viewport$.bottomRow,\n        leftCol = _viewport$.leftCol,\n        rightCol = _viewport$.rightCol;\n      var data = getExpandViewportRange(sheet, {\n        topRow: topRow,\n        bottomRow: bottomRow,\n        leftCol: leftCol,\n        rightCol: rightCol\n      });\n      if ((fixedViewport === null || fixedViewport === void 0 ? void 0 : fixedViewport.length) > 0) {\n        data.fixedViewport = fixedViewport;\n      }\n      if (Array.isArray(repeatRequestArray)) {\n        if (!isRepeatRequest(data, repeatRequestArray)) {\n          // 重复的网络请求不再发送\n          updateRepeatRequestArray(data, repeatRequestArray);\n          var mergeSquareArray = (0, _common.mergeSquare)(repeatRequestArray);\n          (0, _memoryCacher.setPageData)(pageId, [key, 'repeatRequestArray'], mergeSquareArray);\n          props.dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n            invokemethod: invokemethod,\n            data: data\n          }]));\n        }\n      } else {\n        props.dispatch((0, _gridaction.invokeControlMethodOnly)(model, callback, [{\n          invokemethod: invokemethod,\n          data: data\n        }]));\n      }\n    }, delay || 300);\n  };\n};\nvar isScrollRepeat = function isScrollRepeat(scrollViewport, repeatRequestArray) {\n  return repeatRequestArray.some(function (repeatRequest) {\n    return (0, _common.isInside)(scrollViewport, repeatRequest);\n  });\n}; // 判断滚动区域是否重复\n\nvar isFixedRepeat = function isFixedRepeat(fixedViewport, repeatRequestArray) {\n  return fixedViewport.some(function (viewport) {\n    return repeatRequestArray.some(function (repeatRequest) {\n      return (0, _common.isInside)(viewport, repeatRequest);\n    });\n  });\n}; // 判断固定区域是否重复\n\nvar isRepeatRequest = function isRepeatRequest(_ref9, repeatRequestArray) {\n  var topRow = _ref9.topRow,\n    bottomRow = _ref9.bottomRow,\n    leftCol = _ref9.leftCol,\n    rightCol = _ref9.rightCol,\n    fixedViewport = _ref9.fixedViewport;\n  return fixedViewport ? isScrollRepeat({\n    topRow: topRow,\n    bottomRow: bottomRow,\n    leftCol: leftCol,\n    rightCol: rightCol\n  }, repeatRequestArray) && isFixedRepeat(fixedViewport, repeatRequestArray) : isScrollRepeat({\n    topRow: topRow,\n    bottomRow: bottomRow,\n    leftCol: leftCol,\n    rightCol: rightCol\n  }, repeatRequestArray);\n};\nvar updateRepeatRequestArray = function updateRepeatRequestArray(_ref10, repeatRequestArray) {\n  var topRow = _ref10.topRow,\n    bottomRow = _ref10.bottomRow,\n    leftCol = _ref10.leftCol,\n    rightCol = _ref10.rightCol,\n    fixedViewport = _ref10.fixedViewport;\n  repeatRequestArray.push({\n    topRow: topRow,\n    bottomRow: bottomRow,\n    leftCol: leftCol,\n    rightCol: rightCol\n  });\n  fixedViewport === null || fixedViewport === void 0 || fixedViewport.forEach(function (viewport) {\n    return repeatRequestArray.push(viewport);\n  });\n};\nvar getViewport = function getViewport(sheet) {\n  var viewport = [];\n  var fixedViewport = [];\n  var top = sheet.getViewportTopRow(1);\n  var bottom = sheet.getViewportBottomRow(1);\n  var left = sheet.getViewportLeftColumn(1);\n  var right = sheet.getViewportRightColumn(1);\n  var fixedTop = sheet.getViewportTopRow(0);\n  var fixedBottom = sheet.getViewportBottomRow(0);\n  var fixedLeft = sheet.getViewportLeftColumn(0);\n  var fixedRight = sheet.getViewportRightColumn(0);\n  viewport.push({\n    topRow: top,\n    bottomRow: bottom,\n    leftCol: left,\n    rightCol: right\n  });\n  if (fixedTop === 0 && fixedLeft === 0 && fixedRight === -1 && fixedBottom === -1) {\n    return {\n      viewport: viewport\n    };\n  }\n  if (fixedTop === 0 && fixedLeft === 0 && fixedRight === -1) {\n    fixedViewport.push({\n      topRow: 0,\n      bottomRow: fixedBottom,\n      leftCol: left,\n      rightCol: right\n    });\n  } else if (fixedTop === 0 && fixedBottom === -1 && fixedLeft === 0) {\n    fixedViewport.push({\n      topRow: top,\n      bottomRow: bottom,\n      leftCol: 0,\n      rightCol: fixedRight\n    });\n  } else if (fixedTop !== -1 && fixedBottom !== -1 && fixedLeft !== -1 && fixedRight !== -1) {\n    fixedViewport.push({\n      topRow: fixedTop,\n      bottomRow: fixedBottom,\n      leftCol: fixedLeft,\n      rightCol: fixedRight\n    });\n    fixedViewport.push({\n      topRow: 0,\n      bottomRow: fixedBottom,\n      leftCol: left,\n      rightCol: right\n    });\n    fixedViewport.push({\n      topRow: top,\n      bottomRow: bottom,\n      leftCol: 0,\n      rightCol: fixedRight\n    });\n  }\n  return {\n    viewport: viewport,\n    fixedViewport: fixedViewport\n  };\n};\nvar getExpandViewportRange = function getExpandViewportRange(sheet, _ref11) {\n  var topRow = _ref11.topRow,\n    bottomRow = _ref11.bottomRow,\n    leftCol = _ref11.leftCol,\n    rightCol = _ref11.rightCol;\n  // 上下左右各扩展viewport一倍的范围\n  topRow = topRow > 0 ? topRow : 0;\n  bottomRow = bottomRow > 0 ? bottomRow : 0;\n  leftCol = leftCol > 0 ? leftCol : 0;\n  rightCol = rightCol > 0 ? rightCol : 0;\n  var lastRow = sheet.getRowCount() - 1;\n  var lastCol = sheet.getColumnCount() - 1;\n  var diffRows = bottomRow - topRow;\n  var diffCols = rightCol - leftCol;\n  var newTopRow = topRow - diffRows > 0 ? topRow - diffRows : 0;\n  var newBottomRow = bottomRow + diffRows >= lastRow ? lastRow : bottomRow + diffRows;\n  var newLeftCol = leftCol - diffCols > 0 ? leftCol - diffCols : 0;\n  var newRightCol = rightCol + diffCols >= lastCol ? lastCol : rightCol + diffCols;\n  return {\n    topRow: newTopRow,\n    bottomRow: newBottomRow,\n    leftCol: newLeftCol,\n    rightCol: newRightCol\n  };\n};\n\n// 挂载事件\nvar mountEvent = exports.mountEvent = function mountEvent(sheet, params) {\n  (0, _bindEvent.bindSheetEvent)(sheet, (0, _eventHandle.getSheetEventHandle)(params));\n  (0, _common.setSheetDefaultStyle)(params.spread);\n};\n\n// 更改页签名称\nvar sheetNameChanged = exports.sheetNameChanged = function sheetNameChanged(newValue) {\n  return function (params) {\n    var props = params.props,\n      spread = params.spread;\n    var index = spread.getSheetIndex(newValue);\n    var args = {\n      method: 'modifySheetName',\n      index: index,\n      name: newValue\n    };\n    props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, 'askExecute', [args]));\n  };\n};\n\n// 交换两个页签的位置\nvar sheetMoved = exports.sheetMoved = function sheetMoved(oldIndex, newIndex) {\n  return function (params) {\n    var props = params.props;\n    var args = {\n      method: 'exchangeSheet',\n      afterIndex: newIndex,\n      beforIndex: oldIndex\n    };\n    props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, 'askExecute', [args]));\n  };\n};\n\n// 增加页签或切换页签时向后端发送指令\nvar sheetTabChange = exports.sheetTabChange = function sheetTabChange(newSheet, newTabFlag) {\n  return function (params) {\n    var props = params.props,\n      spread = params.spread,\n      dataPipeModel = params.dataPipeModel;\n    var dispatch = props.dispatch,\n      model = props.model;\n    var pageId = model.pageId,\n      key = model.key;\n    var index = spread.getActiveSheetIndex();\n    var sheet = spread.getActiveSheet();\n    var sheetName = newSheet.name();\n    var requestKey = (0, _ajaxState.makeAjaxKey)(pageId, key, 'askExecute');\n    proxy.disableDisposeAction(requestKey);\n    var args = {\n      method: newTabFlag ? 'newTab' : 'activeSheetChange',\n      index: index,\n      sheetName: sheetName\n    };\n    dispatch((0, _gridaction.invokeControlMethodOnly)(model, 'askExecute', [args]));\n    proxy.allowDisposeAction(requestKey);\n    selectionChanged({\n      type: 'SelectionChanged'\n    }, {\n      newSelections: sheet.getSelections(),\n      sheet: sheet\n    })(props, dataPipeModel, spread);\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/events/eventHandleUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/events/eventList.js":
/*!*******************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/events/eventList.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.spreadEventList = exports.sheetEventList = void 0;\n/**\n * spreadJS提供的接口\n * by  kechuang\n */\nvar spreadEventList = exports.spreadEventList = ['ActiveSheetChanged', 'ActiveSheetChanging', 'ButtonClicked', 'SheetNameChanged', 'SheetNameChanging', 'SheetTabClick', 'SheetTabDoubleClick', 'SheetMoving', 'SheetMoved'];\nvar sheetEventList = exports.sheetEventList = ['CellChanged', 'CellClick', 'CellDoubleClick', 'ClipboardChanged', 'ClipboardChanging', 'ClipboardPasted', 'ClipboardPasting', 'ColumnChanged', 'ColumnWidthChanged', 'ColumnWidthChanging', 'CommentChanged', 'CommentRemoved', 'CommentRemoving', 'DragDropBlock', 'DragDropBlockCompleted', 'DragFillBlock', 'DragFillBlockCompleted', 'EditChange', 'EditEnded', 'EditEnding', 'EditorStatusChanged', 'EditStarting', 'EnterCell', 'FloatingObjectChanged', 'FloatingObjectLoaded', 'FloatingObjectRemoved', 'FloatingObjectRemoving', 'FloatingObjectSelectionChanged', 'InvalidOperation', 'LeaveCell', 'LeftColumnChanged', 'PictureChanged', 'PictureSelectionChanged', 'RangeChanged', 'RangeFiltered', 'RangeFiltering', 'RangeGroupStateChanged', 'RangeGroupStateChanging', 'RangeSorted', 'RangeSorting', 'RowChanged', 'RowHeightChanged', 'RowHeightChanging', 'SelectionChanged', 'SelectionChanging', 'SlicerChanged', 'SparklineChanged', 'TableFiltered', 'TableFiltering', 'TopRowChanged', 'TouchToolStripOpening', 'UserFormulaEntered', 'UserZooming', 'ValidationError', 'ValueChanged'];\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/events/eventList.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/events/eventUtils.js":
/*!********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/events/eventUtils.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.getLockedCells = getLockedCells;\nexports.getSelectedRangesAndValue = getSelectedRangesAndValue;\nexports.getSelectionLocked = getSelectionLocked;\nexports.getSelectionsCellValue = getSelectionsCellValue;\nexports.getSpecialCell = getSpecialCell;\nexports.postUpdateAction = postUpdateAction;\nexports.sendCellInfo = sendCellInfo;\nexports.setSpecialCell = setSpecialCell;\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _common = __webpack_require__(/*! ../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * 缓存所有单元格的类型、样式、公式、值\n * @param {*} cellRange\n * @param {*} sheet\n */\nfunction getSpecialCell(cellRange, sheet, lockedCells) {\n  var specialCellData = [];\n  var rc = cellRange.row + cellRange.rowCount;\n  var cc = cellRange.col + cellRange.colCount;\n  if (cellRange.row === -1) {\n    cellRange.row = 0;\n    rc = sheet.getRowCount();\n  }\n  if (cellRange.col === -1) {\n    cellRange.col = 0;\n    cc = sheet.getColumnCount();\n  }\n  var spans = sheet.getSpans(sheet.getRange(cellRange.row, cellRange.col, cellRange.rowCount, cellRange.colCount));\n  var mergeCell = [];\n  lockedCells.forEach(function (item) {\n    var r = item.r,\n      c = item.c;\n    spans.forEach(function (item) {\n      var row = item.row,\n        col = item.col,\n        colCount = item.colCount,\n        rowCount = item.rowCount;\n      if (row <= r && row + rowCount >= r && col <= c && col + colCount >= c) {\n        mergeCell.push({\n          row: row,\n          col: col,\n          colCount: colCount,\n          rowCount: rowCount\n        });\n      }\n    });\n  });\n  var _loop = function _loop(r) {\n    var _loop2 = function _loop2(c) {\n      var cellType = sheet.getCellType(r, c);\n      var cellStyle = sheet.getStyle(r, c);\n      var isLocked = lockedCells.findIndex(function (item) {\n        return item.r === r && item.c === c;\n      }) > -1;\n      var value = sheet.getValue(r, c);\n      var formula = sheet.getFormula(r, c);\n      specialCellData.push({\n        r: r,\n        c: c,\n        value: value,\n        formula: formula,\n        cellType: cellType,\n        cellStyle: cellStyle,\n        isLocked: isLocked\n      });\n    };\n    for (var c = cellRange.col; c < cc; c++) {\n      _loop2(c);\n    }\n  };\n  for (var r = cellRange.row; r < rc; r++) {\n    _loop(r);\n  }\n  return {\n    specialCellData: specialCellData,\n    mergeCell: mergeCell\n  };\n}\n\n/**\n * 将缓存的特殊单元格重新设置到原来的位置上\n * @param {*} sheet\n * @param {*} specailCellData\n */\nfunction setSpecialCell(sheet, specailCellData, mergeCell) {\n  if (specailCellData.length === 0) {\n    return;\n  }\n  specailCellData.forEach(function (item) {\n    var r = item.r;\n    var c = item.c;\n    if (item.cellType.typeName === 'f7' || item.isLocked) {\n      sheet.clear(r, c, 1, 1, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport, _spreadSheets[\"default\"].Spread.Sheets.StorageType.style);\n      sheet.setStyle(r, c, item.cellStyle);\n      sheet.setCellType(r, c, item.cellType);\n      sheet.removeSpan(r, c);\n    }\n  });\n  if ((mergeCell === null || mergeCell === void 0 ? void 0 : mergeCell.length) > 0) {\n    mergeCell.forEach(function (item) {\n      var row = item.row,\n        rowCount = item.rowCount,\n        col = item.col,\n        colCount = item.colCount;\n      sheet.addSpan(row, col, rowCount, colCount);\n    });\n  }\n}\n\n/**\n * 获取复制或剪贴区域的range和值\n * @param {*} sheet\n */\nfunction getSelectedRangesAndValue(sheet, spread) {\n  // const { pageId, key } = model\n  var cutSelectionSArgs = {};\n  var cutSelections = sheet.getSelections();\n  if (cutSelections.length > 1) {\n    cutSelectionSArgs.isCut = false; // spread不支持多区域剪切，ctrl键选中两个区域无法剪切\n  } else {\n    var rc = sheet.getRowCount();\n    var cc = sheet.getColumnCount();\n    var _cutSelections$ = cutSelections[0],\n      col = _cutSelections$.col,\n      colCount = _cutSelections$.colCount,\n      row = _cutSelections$.row,\n      rowCount = _cutSelections$.rowCount;\n    var isColHeader = row === -1 && rowCount === rc;\n    var isRowHeader = col === -1 && colCount === cc;\n    if (isColHeader || isRowHeader) {\n      var area = isColHeader ? 'colHeader' : 'rowHeader';\n      // setPageData(pageId, [key, 'copiedCellSelection'], { range: cutSelections[0], area })\n      cutSelectionSArgs.insertCopiedCellArea = area;\n    }\n    cutSelectionSArgs.isCut = true;\n    cutSelectionSArgs.selections = (0, _common.convertRange)(sheet, cutSelections[0]);\n    cutSelectionSArgs.cellValues = getSelectionsCellValue(cutSelectionSArgs.selections, sheet, false);\n    cutSelectionSArgs.cellFormulas = getSelectionsCellValue(cutSelectionSArgs.selections, sheet, true);\n    cutSelectionSArgs.sheetName = sheet.name();\n  }\n  // 可能出现跨sheet剪切的情况，所以剪切信息要绑在spread上\n  spread.cutSelectionSArgs = cutSelectionSArgs;\n}\n\n/**\n * 获取选中区域的单元格值或公式的数组\n */\nfunction getSelectionsCellValue(cellRange, sheet, isFormula) {\n  var cellValues = [];\n  for (var r = cellRange.row; r < cellRange.row + cellRange.rowCount; r++) {\n    for (var c = cellRange.col; c < cellRange.col + cellRange.colCount; c++) {\n      var v = isFormula ? sheet.getFormula(r, c) : sheet.getValue(r, c);\n      cellValues.push(v);\n    }\n  }\n  return cellValues;\n}\n\n/**\n * 判断复制的区域在粘贴前后是否发生改变\n * 从而判断是否是剪切\n * @param {*} sheet\n */\n// export function whetherChanged (sheet) {\n//   let hasChanged = false\n//   if (!sheet.cutSelectionSArgs) {\n//     return\n//   } else {\n//     const cutRange = sheet.cutSelectionSArgs.selections\n//     const oldCellValues = sheet.cutSelectionSArgs.cellValues\n//     const oldFormulaValues = sheet.cutSelectionSArgs.cellFormulas\n//     const newCellValues = getSelectionsCellValue(cutRange, sheet, false)\n//     const newCellFormulas = getSelectionsCellValue(cutRange, sheet, true)\n//     for (let i = 0; i < oldCellValues.length; i++) {\n//       let oldV = oldCellValues[i]\n//       let newV = newCellValues[i]\n//       if (oldV !== null) {\n//         if (oldV instanceof Object) {\n//           oldV = JSON.stringify(oldV)\n//           newV = JSON.stringify(newV)\n//         }\n//         hasChanged = oldV !== newV\n//       }\n//       if (hasChanged) {\n//         break\n//       }\n//     }\n//     if (!hasChanged) {\n//       for (let i = 0; i < oldFormulaValues.length; i++) {\n//         const oldF = oldFormulaValues[i]\n//         const newF = newCellFormulas[i]\n//         if (oldF !== null) {\n//           hasChanged = oldF !== newF\n//         }\n//         if (hasChanged) {\n//           break\n//         }\n//       }\n//     }\n//   }\n//   return hasChanged\n// }\n\n/**\n * 给工具栏发送单元格信息\n * @param {*} col\n * @param {*} row\n * @param {*} sheet\n * @param {*} dataPipeModel\n */\nfunction sendCellInfo(col, row, sheet, dataPipeModel) {\n  var activeRow = sheet.getActiveRowIndex();\n  var activeCol = sheet.getActiveColumnIndex();\n  var selections = sheet.getSelections();\n  if (activeRow === row && activeCol === col) {\n    var changeData = {};\n    changeData.type = 'SendCellInfo';\n    changeData.sheet = sheet;\n    changeData.selections = selections;\n    dataPipeModel.sendData(changeData);\n  } else {}\n}\n\n/**\n * 合并参数之后统一走这个方法想后端发指令\n * @param {*} props\n * @param {*} method\n * @param {*} args\n * @param {*} argsKey\n */\nfunction postUpdateAction(props, method, args, argsKey) {\n  props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, method, [_defineProperty({}, argsKey, args)]));\n  // mergeActionArgs.clearHoldArr()\n}\nfunction getLockedCells(sheet, range) {\n  var rc = (range === null || range === void 0 ? void 0 : range.rowCount) || sheet.getRowCount();\n  var cc = (range === null || range === void 0 ? void 0 : range.colCount) || sheet.getColumnCount();\n  var row = (range === null || range === void 0 ? void 0 : range.row) || 0;\n  var col = (range === null || range === void 0 ? void 0 : range.col) || 0;\n  var lockedCells = [];\n  for (var r = row; r < rc + row; r++) {\n    for (var c = col; c < cc + col; c++) {\n      if (sheet.getCell(r, c).locked()) {\n        var v = sheet.getValue(r, c);\n        var f = sheet.getFormula(r, c);\n        f ? lockedCells.push({\n          r: r,\n          c: c,\n          f: f\n        }) : lockedCells.push({\n          r: r,\n          c: c,\n          v: v\n        });\n      }\n    }\n  }\n  return lockedCells;\n}\nfunction getSelectionLocked(spread) {\n  var sheet = spread.getActiveSheet();\n  var values = [];\n  var formulas = [];\n  var v = null;\n  var isProtected = sheet.options.isProtected;\n  var ranges = sheet.getSelections();\n  var tabStripVisible = spread.options.tabStripVisible;\n  var sn = sheet.name();\n  for (var i = 0; i < ranges.length; i++) {\n    var range = ranges[i];\n    var rowlen = range.row === -1 ? sheet.getRowCount() : range.rowCount + range.row;\n    var collen = range.col === -1 ? sheet.getColumnCount() : range.colCount + range.col;\n    for (var r = range.row; r < rowlen; r++) {\n      for (var c = range.col; c < collen; c++) {\n        var cellLock = sheet.getCell(r, c).locked();\n        // 跳过锁定单元格\n        if (!(isProtected && cellLock)) {\n          var cellFormula = sheet.getFormula(r, c);\n          var cellValue = sheet.getValue(r, c);\n          // 区分多页签\n          if (tabStripVisible) {\n            if (cellFormula !== null) {\n              formulas.push({\n                r: r,\n                c: c,\n                v: v,\n                sn: sn\n              });\n            } else if (cellValue !== null) {\n              values.push({\n                r: r,\n                c: c,\n                v: v,\n                sn: sn\n              });\n            }\n          } else {\n            if (cellFormula !== null) {\n              formulas.push({\n                r: r,\n                c: c,\n                v: v\n              });\n            } else if (cellValue !== null) {\n              values.push({\n                r: r,\n                c: c,\n                v: v\n              });\n            }\n          }\n        }\n      }\n    }\n  }\n  return {\n    values: values,\n    formulas: formulas\n  };\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/events/eventUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/events/index.js":
/*!***************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/events/index.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"bindEvent\", ({\n  enumerable: true,\n  get: function get() {\n    return _bindEvent.bindEvent;\n  }\n}));\nObject.defineProperty(exports, \"getSheetEventHandle\", ({\n  enumerable: true,\n  get: function get() {\n    return _eventHandle.getSheetEventHandle;\n  }\n}));\nObject.defineProperty(exports, \"getSpreadEventHandle\", ({\n  enumerable: true,\n  get: function get() {\n    return _eventHandle.getSpreadEventHandle;\n  }\n}));\nObject.defineProperty(exports, \"sheetEventList\", ({\n  enumerable: true,\n  get: function get() {\n    return _eventList.sheetEventList;\n  }\n}));\nObject.defineProperty(exports, \"spreadEventList\", ({\n  enumerable: true,\n  get: function get() {\n    return _eventList.spreadEventList;\n  }\n}));\nObject.defineProperty(exports, \"unbindEvent\", ({\n  enumerable: true,\n  get: function get() {\n    return _bindEvent.unbindEvent;\n  }\n}));\nvar _eventList = __webpack_require__(/*! ./eventList */ \"./src/component/web/DataGrid/ReportGrid/events/eventList.js\");\nvar _eventHandle = __webpack_require__(/*! ./eventHandle */ \"./src/component/web/DataGrid/ReportGrid/events/eventHandle.js\");\nvar _bindEvent = __webpack_require__(/*! ./bindEvent */ \"./src/component/web/DataGrid/ReportGrid/events/bindEvent.js\");\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/events/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/index.js":
/*!********************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/index.js ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.async-iterator.js */ \"../../node_modules/core-js/modules/es.symbol.async-iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-string-tag.js */ \"../../node_modules/core-js/modules/es.symbol.to-string-tag.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.reverse.js */ \"../../node_modules/core-js/modules/es.array.reverse.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.json.to-string-tag.js */ \"../../node_modules/core-js/modules/es.json.to-string-tag.js\");\n__webpack_require__(/*! core-js/modules/es.math.to-string-tag.js */ \"../../node_modules/core-js/modules/es.math.to-string-tag.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\nvar _spreadSheetsReact = __webpack_require__(/*! @grapecity/spread-sheets-react */ \"../../node_modules/@grapecity/spread-sheets-react/index.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\n__webpack_require__(/*! @grapecity/spread-sheets-resources-zh */ \"../../node_modules/@grapecity/spread-sheets-resources-zh/index.js\");\n__webpack_require__(/*! @grapecity/spread-sheets-print */ \"../../node_modules/@grapecity/spread-sheets-print/index.js\");\nvar spreadExcel = _interopRequireWildcard(__webpack_require__(/*! @grapecity/spread-excelio */ \"../../node_modules/@grapecity/spread-excelio/index.js\"));\nvar _global = _interopRequireWildcard(__webpack_require__(/*! @/global */ \"./src/global/index.js\"));\nvar _componentutil = __webpack_require__(/*! ../../../../util/componentutil */ \"./src/util/componentutil.js\");\nvar _commonUtils = _interopRequireDefault(__webpack_require__(/*! @/component/common/commonUtils */ \"./src/component/common/commonUtils.js\"));\nvar M = _interopRequireWildcard(__webpack_require__(/*! ./utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\"));\nvar gridActions = _interopRequireWildcard(__webpack_require__(/*! ../../../../action/gridaction */ \"./src/action/gridaction.js\"));\nvar btnActions = _interopRequireWildcard(__webpack_require__(/*! ../../../../action/buttonaction */ \"./src/action/buttonaction.js\"));\nvar _action = __webpack_require__(/*! ../../../../action/action */ \"./src/action/action.js\");\nvar _customCell = __webpack_require__(/*! ./customCell */ \"./src/component/web/DataGrid/ReportGrid/customCell/index.js\");\nvar _directives = __webpack_require__(/*! ./directives */ \"./src/component/web/DataGrid/ReportGrid/directives/index.js\");\nvar _toolbar = _interopRequireDefault(__webpack_require__(/*! ./ui/toolbar */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/index.js\"));\nvar _registerCommand = _interopRequireDefault(__webpack_require__(/*! ./commands/registerCommand */ \"./src/component/web/DataGrid/ReportGrid/commands/registerCommand.js\"));\nvar _resizeObserve = _interopRequireDefault(__webpack_require__(/*! ../../../../util/resizeObserve */ \"./src/util/resizeObserve.js\"));\nvar _utils = __webpack_require__(/*! ./utils */ \"./src/component/web/DataGrid/ReportGrid/utils/index.js\");\nvar _events = __webpack_require__(/*! ./events */ \"./src/component/web/DataGrid/ReportGrid/events/index.js\");\nvar _dataPipeModel = __webpack_require__(/*! ./dataPipeModel */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/index.js\");\nvar _BottomDisplay = _interopRequireDefault(__webpack_require__(/*! ./ui/statusBar/BottomDisplay */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/BottomDisplay.js\"));\nvar _MergeAction = _interopRequireDefault(__webpack_require__(/*! ./utils/MergeAction */ \"./src/component/web/DataGrid/ReportGrid/utils/MergeAction.js\"));\nvar _SpreadLoading = _interopRequireDefault(__webpack_require__(/*! ./ui/widget/SpreadLoading */ \"./src/component/web/DataGrid/ReportGrid/ui/widget/SpreadLoading.jsx\"));\nvar _ErrorBoundaries = _interopRequireDefault(__webpack_require__(/*! ./ui/widget/ErrorBoundaries */ \"./src/component/web/DataGrid/ReportGrid/ui/widget/ErrorBoundaries.jsx\"));\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _console = _interopRequireDefault(__webpack_require__(/*! ../../../../api/console */ \"./src/api/console.js\"));\nvar _eventUtils = __webpack_require__(/*! ./events/eventUtils */ \"./src/component/web/DataGrid/ReportGrid/events/eventUtils.js\");\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _eventHandleUtils = __webpack_require__(/*! ./events/eventHandleUtils */ \"./src/component/web/DataGrid/ReportGrid/events/eventHandleUtils.js\");\nvar _common = __webpack_require__(/*! ./utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _ControlInfoCollect = _interopRequireDefault(__webpack_require__(/*! @/component/common/ControlInfoCollect */ \"./src/component/common/ControlInfoCollect.js\"));\nvar _registerMenuItems = __webpack_require__(/*! ./contextMenu/registerMenuItems */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/registerMenuItems.js\");\nvar _menuClickFunction = __webpack_require__(/*! ./contextMenu/menuClickFunction */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/menuClickFunction.js\");\nvar _customMenuList = __webpack_require__(/*! ./contextMenu/customMenuList */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/customMenuList.js\");\nvar _toolbarInfo = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js */ \"./src/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js\");\nvar _directiveUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveUtils.js */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\");\n__webpack_require__(/*! @/style/spread.less */ \"./src/style/spread.less\");\n__webpack_require__(/*! ./icon/iconcool.less */ \"./src/component/web/DataGrid/ReportGrid/icon/iconcool.less\");\nvar _spreadStyle = _interopRequireDefault(__webpack_require__(/*! ./styles/spreadStyle.less */ \"./src/component/web/DataGrid/ReportGrid/styles/spreadStyle.less\"));\nvar _contextMenuService = _interopRequireDefault(__webpack_require__(/*! ./contextMenu/contextMenuService */ \"./src/component/web/DataGrid/ReportGrid/contextMenu/contextMenuService.js\"));\nvar _class; // 加载第三方样式\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar ReportGrid = (0, _ControlInfoCollect[\"default\"])(_class = /*#__PURE__*/function (_Component) {\n  _inherits(ReportGrid, _Component);\n  function ReportGrid(props) {\n    var _this;\n    _classCallCheck(this, ReportGrid);\n    _this = _callSuper(this, ReportGrid, [props]);\n    // 初始化spread事件\n    _this.initSpreadEvent = function () {\n      var params = {\n        props: _objectSpread(_objectSpread({}, _this.props), _this.actions),\n        dataPipeModel: _this.dataPipeModel,\n        mergeAction: _this.mergeAction,\n        spread: _this.spread\n      };\n      _this.spreadEventHandle = (0, _events.getSpreadEventHandle)(params);\n      _this.sheetEventHandle = (0, _events.getSheetEventHandle)(params);\n    };\n    _this.initControl = function () {\n      var _this$spreadContainer;\n      var model = _this.props.model;\n      var pageId = model.pageId,\n        key = model.key;\n      // 语言本地化，这个要放在右键菜单初始化之前，不然会覆盖本地的右键菜单名称\n      var userLocale = model.getUserLocale();\n      M.setSpreadCulture(userLocale);\n      _this.initSpread();\n      _this.initTempSpread();\n      _this.setBusyTips(model);\n      if ((_this$spreadContainer = _this.spreadContainer.current) !== null && _this$spreadContainer !== void 0 && _this$spreadContainer.hostRef.current.children[0]) {\n        _this.contextMenuObserver = (0, _contextMenuService[\"default\"])(_this.spreadContainer.current.hostRef.current.children[0]);\n      }\n      M.setNumberFormat();\n      // 调试代码,以后要删除\n      if (true) {\n        _global[\"default\"][_global.GET_SPREAD_INFO] = _this.getSpreadInfo;\n        _global[\"default\"][\"spread_\".concat(key)] = _this.getSpreadInfo;\n      }\n      window.addEventListener('keydown', _this.handleCtrlKeyDown, true);\n      window.addEventListener('keyup', _this.handleCtrlKeyUp);\n      // this.dataPipeModel.registerCallback('HideLoading', this.hideLoading)\n      var container = _this.spread.getHost();\n      container.addEventListener('paste', _this.handlePaste);\n      (0, _memoryCacher.setControlMount)(pageId, key, true);\n      _this.spread.options.iterativeCalculationMaximumIterations = 100;\n    };\n    _this.batchExecuteControlMethods = function () {\n      var timer = null;\n      var events = [];\n      return function (pageData) {\n        if (pageData === undefined) return;\n        events = events.concat(pageData);\n        clearTimeout(timer);\n        var isStopPaint = (0, _componentutil.stopPainting)(events, _this.dataPipeModel, _this.spread);\n        if (isStopPaint) {\n          _this.loadingRef.current.style.display = 'flex';\n        }\n        timer = setTimeout(function () {\n          _this.execEvents(events);\n          _this.loadingRef.current.style.display = 'none';\n          events = [];\n        }, 0);\n      };\n    };\n    _this.execEvents = function (events) {\n      _console[\"default\"].time('execEvents');\n      var isStopPaint = (0, _componentutil.stopPainting)(events, _this.dataPipeModel, _this.spread);\n      var calcOnDemand = events.find(function (_ref) {\n        var methodname = _ref.methodname;\n        return methodname === 'calcOnDemand';\n      });\n      if (calcOnDemand) {\n        var _calcOnDemand$args;\n        var _isCalcOnDemand = calcOnDemand === null || calcOnDemand === void 0 || (_calcOnDemand$args = calcOnDemand.args) === null || _calcOnDemand$args === void 0 || (_calcOnDemand$args = _calcOnDemand$args[0]) === null || _calcOnDemand$args === void 0 ? void 0 : _calcOnDemand$args.flag;\n        _this.spread.options.calcOnDemand = _isCalcOnDemand;\n        _this.dataPipeModel.setSpreadData('calcOnDemand', _isCalcOnDemand);\n      }\n      var isCalcOnDemand = _this.dataPipeModel.getSpreadData('calcOnDemand');\n      if (isStopPaint) {\n        _this.spread.suspendPaint();\n        isCalcOnDemand !== true && _this.spread.suspendCalcService(false);\n      }\n      events.forEach(function (event) {\n        var methodName = event.methodname;\n        var data = event.args[0];\n        _this.dynamicAddSupportBusyTipsMethods(data);\n        var eventFun = _directives.allDirective[methodName];\n        try {\n          _console[\"default\"].time(methodName);\n          var list = _this.dataPipeModel.getSpreadData('asyncCalculatyList') || _this.stopCalculateDefaultList;\n          if (list.includes(methodName)) {\n            _this.dataPipeModel.setSpreadData('stopAsyncCalculate', true);\n          }\n          eventFun && eventFun(data, _assertThisInitialized(_this));\n          _console[\"default\"].timeEnd(methodName);\n        } catch (err) {\n          _console[\"default\"].warn(err);\n        }\n      });\n      if (isStopPaint) {\n        isCalcOnDemand !== true && _this.spread.resumeCalcService(false);\n        _this.spread.resumePaint();\n      }\n      _this.spread.refresh();\n      _console[\"default\"].timeEnd('execEvents');\n    };\n    _this.handleCtrlKeyDown = function (e) {\n      var target = e.target;\n      var container = _this.spread.getHost();\n      while (target !== document) {\n        if (container === target || target === null) break;\n        target = target.parentNode;\n      }\n      if (target === document) return;\n      // 是否按下ctrl键或command键\n      if (e.ctrlKey || e.metaKey) {\n        // 粘贴大文本导致浏览器卡死时，加一个遮罩动画，该动画会延迟两秒出现\n        // this.setState({ showLoading: true })\n        if (e.keyCode === 86 && _this.isFirstCtrlV !== false) {\n          _this.isFirstCtrlV = false;\n          // 批量粘贴跳过锁定单元格\n          var sheet = _this.spread.getActiveSheet();\n          _this.isProtected = _this.spread.getActiveSheet().options.isProtected;\n          _this.pasteSkipLockCells(sheet);\n          _this.isCtrlV = true;\n        } else if (e.keyCode === 70) {\n          e.preventDefault();\n          _this.dataPipeModel.sendData({\n            type: 'QueryBuilder'\n          });\n        }\n        if (e.keyCode === 90) {\n          M.onUndoSendDataToServer(_assertThisInitialized(_this));\n        }\n      }\n      // else if (e.keyCode === 46) {\n      //   const { values, formulas } = getSelectionLocked(this.spread)\n      //   const args = { type: 'Delete', values, formulas }\n      //   this.dataPipeModel.sendData(args)\n      // }\n    };\n    _this.pasteSkipLockCells = function (sheet) {\n      if (_this.spread.cutSelectionSArgs) {\n        var _this$spread$cutSelec;\n        // 内部复制粘贴\n        var cutSelections = (_this$spread$cutSelec = _this.spread.cutSelectionSArgs) === null || _this$spread$cutSelec === void 0 ? void 0 : _this$spread$cutSelec.selections;\n        var selection = sheet.getSelections()[0];\n        var row = selection.row,\n          col = selection.col;\n        var rowCount;\n        var colCount;\n        if (selection.rowCount % cutSelections.rowCount === 0 && selection.colCount % cutSelections.colCount === 0) {\n          rowCount = selection.rowCount;\n          colCount = selection.colCount;\n        } else {\n          rowCount = cutSelections.rowCount;\n          colCount = cutSelections.colCount;\n        }\n        _this.spread.lockedCells = (0, _eventUtils.getLockedCells)(sheet, {\n          row: row,\n          col: col,\n          rowCount: rowCount,\n          colCount: colCount\n        });\n        if (_this.spread.lockedCells.length === 0 || cutSelections.rowCount === 1 && cutSelections.colCount === 1) return;\n        // 把粘贴区域的锁定单元格的锁定去掉\n        sheet.suspendPaint();\n        for (var r = row; r < row + rowCount; r++) {\n          for (var c = col; c < col + colCount; c++) {\n            if (sheet.getCell(r, c).locked()) {\n              sheet.getCell(r, c).locked(false);\n            }\n          }\n        }\n        sheet.resumePaint();\n      } else {\n        // 从外部excel复制粘贴\n        _this.spread.lockedCells = (0, _eventUtils.getLockedCells)(sheet);\n        sheet.options.isProtected = false;\n      }\n    };\n    _this.handlePaste = function (e) {\n      // 阻止冒泡，防止触发附件上传\n      e.stopPropagation();\n    };\n    _this.initSpreadFromJSon = function (spread, json, config) {\n      var _tagInfo$settingInfo;\n      json.calcOnDemand = _this.dataPipeModel.getSpreadData('calcOnDemand');\n      if (!json.version) {\n        // 有version属性的是spread的JSON\n        var targetSheet = spread.getSheetFromName(json.name) || spread.getActiveSheet();\n        targetSheet.fromJSON(json);\n      } else {\n        spread.fromJSON(json, config);\n      }\n      M.setZoomingScale(spread, _this.dataPipeModel);\n      _this.initSpreadOptions();\n      // 设置是否允许多页签\n      _this.supportMultipleTab();\n      // 重初始化要重新绑定事件方法\n      (0, _events.bindEvent)(spread, null, _this.sheetEventHandle);\n      // 绑定自定义的命令\n      (0, _registerCommand[\"default\"])(spread, _objectSpread(_objectSpread({}, _this.props), _this.actions), _this.dataPipeModel);\n      var sheetCount = spread.getSheetCount();\n      for (var i = 0; i < sheetCount; i++) {\n        (0, _common.setSheetDefaultStyle)(spread, i);\n      }\n      // 通过json渲染进入页面之后，主动触发一次selectionChanged事件，给后台传当前选中位置的信息\n      M.triggerSelectionChanged(spread.getActiveSheet(), _this.sheetEventHandle.selectionChanged);\n      _console[\"default\"].timeEnd('spreadRender');\n      for (var _i = 0; _i < spread.getSheetCount(); _i++) {\n        spread.getSheet(_i).options.protectionOptions = M.protectOptions;\n      }\n      var tagInfo = spread.getActiveSheet().tag();\n      if (tagInfo !== null && tagInfo !== void 0 && (_tagInfo$settingInfo = tagInfo.settingInfo) !== null && _tagInfo$settingInfo !== void 0 && _tagInfo$settingInfo.showLock) {\n        var _sheet = spread.getActiveSheet();\n        _sheet.options.showLockIcon = true;\n        _sheet.repaint();\n      }\n      var sheet = spread.getActiveSheet();\n      (0, _eventHandleUtils.sendViewportRange)({\n        sheet: sheet\n      })(_objectSpread(_objectSpread({}, _this.props), _this.actions));\n      var activeCellRow = sheet.getActiveRowIndex();\n      var activeCellCol = sheet.getActiveColumnIndex();\n      var cell = sheet.getCell(activeCellRow, activeCellCol);\n      var div = document.createElement('div');\n      div.style.font = cell.font();\n      var fontfamily = div.style.fontFamily;\n      if (fontfamily[0] === '\"') {\n        fontfamily = fontfamily.slice(1, -1);\n      }\n      var fontFamValue = _toolbarInfo.fontFamilyArray.indexOf(fontfamily);\n      if (fontFamValue !== -1) {\n        var args = {\n          type: 'FontChanged',\n          fontType: 5,\n          changeData: _toolbarInfo.fontFamilyArray[fontFamValue]\n        };\n        _this.dataPipeModel.sendData(args);\n      }\n      (0, _common.initchangedRowListFromJson)(spread, json);\n      _this.dataPipeModel.sendData({\n        type: 'initSpreadFromJSonFinish'\n      });\n    };\n    _this.setBusyTips = function (model) {\n      var pageId = model.pageId,\n        key = model.key;\n      var userLocale = model.getUserLocale();\n      var text = (0, _intlApi.getLangMsg)('spread.key0001');\n      var busyTipObject = _defineProperty(_defineProperty({}, userLocale, text), \"supportMethod\", _this.supportBusyTipsMethods);\n      (0, _memoryCacher.setControlBusyTip)(pageId, key, busyTipObject);\n    };\n    _this.state = {\n      // showLoading: false,\n      isAuthorized: false,\n      showBottom: true,\n      showLicenseError: false,\n      isSpreadInited: false\n    };\n    _this.spreadContainer = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.positionWrapRef = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.gridContainerRef = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.tempContainer = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.loadingRef = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.supportBusyTipsMethods = ['updateValue', 'askExecute', 'cellIsLocked'];\n    _this.stopCalculateDefaultList = ['deleteRow', 'insertRow', 'insertCol', 'deleteCol', 'getSpreadJson', 'setSpreadJson', 'deleteSheets', 'addSheets', 'hideRow', 'unhideRow', 'hideColumn', 'unhideColumn'];\n    _this.actions = (0, _componentutil.createActions)(_objectSpread(_objectSpread(_objectSpread({}, gridActions), btnActions), {}, {\n      updateContrlStatesByKey: _action.updateContrlStatesByKey\n    }), props.dispatch);\n    _this.mergeAction = new _MergeAction[\"default\"](_objectSpread(_objectSpread({}, props), _this.actions));\n    _this.dataPipeModel = new _dataPipeModel.DataPipeModel();\n    _this.repaintSpread = _this.repaintSpread.bind(_assertThisInitialized(_this));\n    _this.registerDataPipeCallback = _this.registerDataPipeCallback.bind(_assertThisInitialized(_this));\n    _this.initSpreadFromJSon = _this.initSpreadFromJSon.bind(_assertThisInitialized(_this));\n    _this.getSpreadInfo = _this.getSpreadInfo.bind(_assertThisInitialized(_this));\n    _this.handleCtrlKeyDown = _this.handleCtrlKeyDown.bind(_assertThisInitialized(_this));\n    _this.handleCtrlKeyUp = _this.handleCtrlKeyUp.bind(_assertThisInitialized(_this));\n    _this.dynamicAddSupportBusyTipsMethods = _this.dynamicAddSupportBusyTipsMethods.bind(_assertThisInitialized(_this));\n    // this.hideLoading = this.hideLoading.bind(this)\n    _this.handleMemoryCacheChange = _this.batchExecuteControlMethods();\n    _this.isValidLicense = _this.isValidLicense.bind(_assertThisInitialized(_this));\n    _this.invokeControlMethodOnly = function () {\n      return props.dispatch(gridActions.invokeControlMethodOnly.apply(gridActions, arguments));\n    };\n    return _this;\n  }\n  _createClass(ReportGrid, [{\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps, nextState) {\n      // this.state.showLoading !== nextState.showLoading ||\n      if (this.state.isAuthorized !== nextState.isAuthorized || this.state.showBottom !== nextState.showBottom || this.state.showLicenseError !== nextState.showLicenseError || this.state.isSpreadInited !== nextState.isSpreadInited) {\n        return true;\n      }\n      return false;\n    }\n  }, {\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var _this2 = this;\n      var _this$props$model = this.props.model,\n        pageId = _this$props$model.pageId,\n        key = _this$props$model.key;\n      // 监听memoryCache缓存的控件指令\n      this.removeLoadDataChangeListener = (0, _memoryCacher.subscribeControlMethod)(pageId, key, 'directives', this.handleMemoryCacheChange);\n      this.removeSlidBillDataChangeListener = (0, _GlobalDataCacher.addDataChangeListener)(_symbolConst.KEY_SHOW_SLIDEBILL, function (data) {\n        var _this2$spread;\n        (_this2$spread = _this2.spread) === null || _this2$spread === void 0 || _this2$spread.focus(false); // 侧边面板的层级是1050，spread输入框层级2000，侧边面板出来时会被spread输入框遮挡\n      });\n      this.isValidLicense();\n    }\n  }, {\n    key: \"isValidLicense\",\n    value: function () {\n      var _isValidLicense = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n        var _this3 = this;\n        var spread;\n        return _regeneratorRuntime().wrap(function _callee$(_context) {\n          while (1) switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return (0, _utils.setLicense)();\n            case 2:\n              spread = new _spreadSheets[\"default\"].Spread.Sheets.Workbook();\n              if (spread.getActiveSheet()) {\n                _context.next = 6;\n                break;\n              }\n              this.setState({\n                showLicenseError: true\n              });\n              return _context.abrupt(\"return\");\n            case 6:\n              this.setState({\n                isAuthorized: true\n              }, function () {\n                // 导入导出组件需要单独授权\n                spreadExcel.LicenseKey = _spreadSheets[\"default\"].Spread.Sheets.LicenseKey;\n                _this3.initControl();\n                var changeData = {};\n                changeData.type = 'SendCellInfo';\n                changeData.sheet = _this3.spread.getActiveSheet();\n                changeData.selections = changeData.sheet.getSelections();\n                _this3.dataPipeModel.sendData(changeData);\n              });\n            case 7:\n            case \"end\":\n              return _context.stop();\n          }\n        }, _callee, this);\n      }));\n      function isValidLicense() {\n        return _isValidLicense.apply(this, arguments);\n      }\n      return isValidLicense;\n    }()\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      if (this.spread) {\n        (0, _events.unbindEvent)(this.spread);\n      }\n      this.dataPipeModel = null;\n      this.resizeObserve && this.resizeObserve.removeResizeObserve(); // 注销尺寸监听器\n      this.mergeAction.distory();\n      this.mergeAction = null;\n      window.removeEventListener('keydown', this.handleCtrlKeyDown, true);\n      window.removeEventListener('keyup', this.handleCtrlKeyUp);\n      var container = this.spread.getHost();\n      container.removeEventListener('paste', this.handlePaste);\n      this.removeDataChangeListener && this.removeDataChangeListener();\n      this.removeLoadDataChangeListener && this.removeLoadDataChangeListener();\n      this.removeSlidBillDataChangeListener && this.removeSlidBillDataChangeListener();\n      this.contextMenuObserver && this.contextMenuObserver.disconnect();\n      this.spread = null;\n      var _this$props$model2 = this.props.model,\n        pageId = _this$props$model2.pageId,\n        key = _this$props$model2.key;\n      (0, _memoryCacher.setControlMount)(pageId, key, false);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var model = this.props.model;\n      var pageId = model.pageId,\n        key = model.key;\n      var commonClass = (0, _componentutil.getCommonClass)(model);\n      var commonClassName = (0, _commonUtils[\"default\"])(commonClass);\n      var positionWrapClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({\n        'kd-cq-spread': true,\n        'kd-cq-control': true\n      }, commonClassName, true), _spreadStyle[\"default\"].positionWrap, true));\n      var notChangeStyle = {\n        fontSize: '',\n        fontWeight: '',\n        backgroundColor: '',\n        backgroundImage: '',\n        backgroundRepeat: '',\n        color: ''\n      };\n      var style = Object.assign({}, (0, _componentutil.getCommonStyle)(model), (0, _componentutil.getVisibleStyle)({}, (0, _componentutil.getVisible)(model)), notChangeStyle);\n      var showToolbar = model.getMetaProperty('setb');\n      var batchExport = model.getMetaProperty('ee');\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        style: style,\n        className: positionWrapClass,\n        ref: this.positionWrapRef,\n        \"data-page-id\": \"\".concat(model.pageId, \"_\").concat(model.key)\n      }, this.state.isAuthorized && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadStyle[\"default\"].gridContainer,\n        ref: this.gridContainerRef,\n        id: model.pageId + model.key\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadStyle[\"default\"].reportContainer\n      }, this.state.isSpreadInited && /*#__PURE__*/_react[\"default\"].createElement(_toolbar[\"default\"], _extends({}, this.props, this.actions, {\n        dataPipeModel: this.dataPipeModel,\n        isClosed: !showToolbar,\n        spread: this.spread\n      })), /*#__PURE__*/_react[\"default\"].createElement(_spreadSheetsReact.SpreadSheets, {\n        hostClass: ' ' + _spreadStyle[\"default\"].spreadContainer + ' kd-cq-spread-main',\n        ref: this.spreadContainer\n      }), batchExport ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadStyle[\"default\"].tempContainer\n      }, /*#__PURE__*/_react[\"default\"].createElement(_spreadSheetsReact.SpreadSheets, {\n        ref: this.tempContainer\n      })) : null, this.state.isSpreadInited && this.state.showBottom && /*#__PURE__*/_react[\"default\"].createElement(_BottomDisplay[\"default\"], {\n        dataPipeModel: this.dataPipeModel,\n        model: {\n          pageId: pageId,\n          key: key\n        },\n        invokeControlMethodOnly: this.invokeControlMethodOnly\n      })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        \"data-spread-container-print\": true\n      }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        \"data-spread-container-condition\": true\n      })), /*#__PURE__*/_react[\"default\"].createElement(_SpreadLoading[\"default\"], {\n        text: (0, _intlApi.getLangMsg)('spread.key0001'),\n        ref: this.loadingRef\n      }), this.state.showLicenseError ? /*#__PURE__*/_react[\"default\"].createElement(_ErrorBoundaries[\"default\"], {\n        msg: (0, _intlApi.getLangMsg)('spread.key0131')\n      }) : null);\n    }\n  }, {\n    key: \"initSpread\",\n    value: function initSpread() {\n      this.spread = this.spreadContainer.current.spread;\n      if (this.spread) {\n        this.setState({\n          // 工具栏需要获取spread实例，需要等到spread初始化完成之后再进行渲染\n          isSpreadInited: true\n        });\n      }\n      this.initSpreadEvent();\n      this.initSpreadOptions();\n      // 测试粘贴遮罩\n      // const sheet = this.spread.getActiveSheet()\n      // sheet.setColumnCount(40)\n      // sheet.setRowCount(3000)\n      // this.spread.options.allowCopyPasteExcelStyle = false\n      this.excelIo = new spreadExcel.IO();\n      this.cellClass = (0, _customCell.createCustomCell)(this.dataPipeModel);\n      /* 监控尺寸，重绘表格 */\n      var ePositionWrap = this.positionWrapRef.current;\n      this.resizeObserve = (0, _resizeObserve[\"default\"])(ePositionWrap, this.repaintSpread);\n      // 设置表格默认字体\n      (0, _common.setSheetDefaultStyle)(this.spread);\n      // 设置允许多页签\n      this.supportMultipleTab();\n      this.registerDataPipeCallback();\n      this.initContextMenu();\n      // 用于判断复制还是剪切，粘贴时先走oldClipboardPasteFun再走clipboardPasted\n      var oldClipboardPasteFun = _spreadSheets[\"default\"].Spread.Sheets.Commands.clipboardPaste.execute;\n      _spreadSheets[\"default\"].Spread.Sheets.Commands.clipboardPaste.execute = function (context, options, isUndo) {\n        context.getActiveSheet().isCutting = options.isCutting;\n        return oldClipboardPasteFun.apply(this, arguments);\n      };\n      (0, _events.bindEvent)(this.spread, this.spreadEventHandle, this.sheetEventHandle);\n      // 绑定自定义的命令\n      (0, _registerCommand[\"default\"])(this.spread, _objectSpread(_objectSpread(_objectSpread({}, this.props), this.actions), {}, {\n        mergeAction: this.mergeAction\n      }), this.dataPipeModel);\n    }\n  }, {\n    key: \"initSpreadOptions\",\n    value: function initSpreadOptions() {\n      var _tag$settingInfo;\n      // 默认配置 后续会移出去\n      this.spread.options.allowUserDragDrop = false;\n      this.spread.options.copyPasteHeaderOptions = _spreadSheets[\"default\"].Spread.Sheets.CopyPasteHeaderOptions.noHeaders;\n      this.spread.options.allowExtendPasteRange = true;\n      this.spread.options.highlightInvalidData = true; // 圈出无效数据，默认开启\n      this.spread.options.allowDynamicArray = true; // 使用动态数组函数\n      // 设置spread计算精度\n      _spreadSheets[\"default\"].Spread.CalcEngine.Functions.CALC_PRECISION = 16;\n      this.spread._props_ = _objectSpread(_objectSpread({}, this.props), this.actions);\n      // 设置容器的overflow属性\n      var positionWrapElm = this.positionWrapRef.current;\n      var _positionWrapElm$getB = positionWrapElm.getBoundingClientRect(),\n        height = _positionWrapElm$getB.height,\n        width = _positionWrapElm$getB.width;\n      if (height < 100 || width < 400) {\n        positionWrapElm.style.overflow = 'hidden';\n      }\n      // 设置为0是否显示\n      var tag = this.spread.getActiveSheet().tag();\n      if (tag !== null && tag !== void 0 && (_tag$settingInfo = tag.settingInfo) !== null && _tag$settingInfo !== void 0 && _tag$settingInfo.hideZero) {\n        var oldPaint = _spreadSheets[\"default\"].Spread.Sheets.CellTypes.Text.prototype.paint;\n        (0, _directiveUtils.hideZero)(oldPaint, {\n          ishide: true\n        }, this.spread);\n      }\n    }\n  }, {\n    key: \"initContextMenu\",\n    value: function initContextMenu() {\n      var ContextMenu = (0, _menuClickFunction.openContextMenu)(this.spread, this.props.model);\n      this.spread.contextMenu = new ContextMenu();\n      var option = {\n        model: this.props.model,\n        spread: this.spread,\n        dataPipeModel: this.dataPipeModel,\n        invokeControlMethodOnly: this.invokeControlMethodOnly\n      };\n      (0, _registerMenuItems.changeContextCommand)(option, _customMenuList.newCommandArr);\n\n      // 设置一个上下文菜单menuData的常量，上下文菜单的显示隐藏会用到\n      var menuData = this.spread.contextMenu.menuData;\n      this.menuDataConstant = _lodash[\"default\"].cloneDeep(menuData);\n      // 默认隐藏\n      (0, _directiveUtils.hideContextMenuItem)({\n        name: 'insertCopiedRow',\n        isHide: true\n      }, menuData)(this.menuDataConstant);\n      (0, _directiveUtils.hideContextMenuItem)({\n        name: 'insertCopiedCol',\n        isHide: true\n      }, menuData)(this.menuDataConstant);\n    }\n  }, {\n    key: \"supportMultipleTab\",\n    value: function supportMultipleTab() {\n      var smt = this.props.model.getMetaProperty('smt');\n      this.spread.options.tabStripVisible = smt;\n    }\n  }, {\n    key: \"registerDataPipeCallback\",\n    value: function registerDataPipeCallback() {\n      var model = this.props.model;\n      var params = {\n        spread: this.spread,\n        model: model,\n        invokeControlMethodOnly: this.invokeControlMethodOnly\n      };\n      (0, _dataPipeModel.registerResponseToolbarFuns)(this.dataPipeModel, params);\n      (0, _dataPipeModel.spreadExpose)(this);\n    }\n  }, {\n    key: \"dynamicAddSupportBusyTipsMethods\",\n    value: function dynamicAddSupportBusyTipsMethods(data) {\n      // callback的方法需要支持繁忙提醒，需要动态添加，包含之前的设置了繁忙提醒的方法，防止覆盖\n      var method = data && data.callback;\n      if (method && !this.supportBusyTipsMethods.includes(method)) {\n        this.supportBusyTipsMethods.push(method);\n      }\n      this.setBusyTips(this.props.model);\n    }\n  }, {\n    key: \"handleCtrlKeyUp\",\n    value: function handleCtrlKeyUp(e) {\n      if (this.isCtrlV && this.isProtected) {\n        var sheet = this.spread.getActiveSheet();\n        M.protectSheet(sheet);\n        this.isCtrlV = false;\n      }\n      this.isFirstCtrlV = true;\n      // this.hideLoading()\n    }\n  }, {\n    key: \"initTempSpread\",\n    value:\n    // hideLoading () {\n    //   this.setState({ showLoading: false })\n    // }\n\n    function initTempSpread() {\n      this.tempSpread = this.tempContainer.current && this.tempContainer.current.spread;\n    }\n\n    /**\n     * 调试代码,避免每次都在调试的时候都在控制台手动输入\n     */\n  }, {\n    key: \"getSpreadInfo\",\n    value: function getSpreadInfo() {\n      var spread = this.spread;\n      _console[\"default\"].log('多个spread实例可用window.spread_[key]获取,仅供调试使用');\n      return {\n        t: this,\n        action: _directives.allDirective,\n        sd: spread,\n        ts: this.tempSpread,\n        GC: _spreadSheets[\"default\"],\n        cr: this.spread.getCircularReference\n      };\n    }\n  }, {\n    key: \"repaintSpread\",\n    value: function repaintSpread(rect) {\n      if (_global[\"default\"][_global.IS_IE]) {\n        // 解决ie下的性能问题，避免在表格中操作触发整个网页的重绘\n        var width = rect.width,\n          height = rect.height;\n        var eGridContainer = this.gridContainerRef.current;\n        eGridContainer.style.cssText += \";width: \".concat(width, \"px;height: \").concat(height, \"px;\");\n      }\n      var spreadHost = this.spread.getHost();\n      spreadHost.style.setProperty('--menu-max-height', \"\".concat(spreadHost.getBoundingClientRect().height, \"px\"));\n      this.spread.refresh();\n    }\n  }]);\n  return ReportGrid;\n}(_react.Component)) || _class;\nvar _default = exports[\"default\"] = ReportGrid;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.SimpleColorPicker = SimpleColorPicker;\nexports.colorPickerData = void 0;\nexports[\"default\"] = ColorPicker;\nexports.simpleColorPickerData = exports.getAllColorData = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _ColorPicker = _interopRequireDefault(__webpack_require__(/*! ./ColorPicker.less */ \"./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nvar _this = void 0;\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 颜色选择器\n * by kechuang\n */\nvar colorPickerData = exports.colorPickerData = {\n  mainColorsTop: ['#FFFFFF', '#000000', '#E7E6E6', '#40556B', '#3474C8', '#FE7623', '#A5A5A5', '#FFBD00', '#429DD8', '#5BAF3C'],\n  mainColors: ['#F2F2F2', '#7F7F7F', '#D1D0D0', '#D4DDE5', '#D8E3F4', '#FFE5D6', '#ECECEC', '#FFF3CB', '#DCEBF7', '#E0F0D9', '#D8D8D8', '#595959', '#AEADAC', '#ABB9CB', '#B0C8E9', '#FFCAAC', '#DADADA', '#FFE495', '#B8D9EF', '#C2DFB2', '#BFBFBF', '#3F3F3F', '#797171', '#8198B0', '#86AEDD', '#FFAE82', '#C8C8C8', '#FFD75B', '#92C5E7', '#A1D18B', '#A3A3A3', '#262626', '#3D3939', '#304053', '#1f589a', '#d85300', '#7c7c7c', '#c98d00', '#007aba', '#48842E', '#7f7f7f', '#0c0c0c', '#181716', '#1f2b37', '#143b67', '#903800', '#525252', '#865f00', '#00517d', '#30591e'],\n  standardColor: ['#d20000', '#ff0000', '#ffbd00', '#fffe00', '#7fd241', '#00b347', '#00b3f4', '#0073c4', '#002263', '#792ea4']\n};\nvar simpleColorPickerData = exports.simpleColorPickerData = ['#EAEAEA', '#D3E1FF', '#FFE6D4', '#FFF3D4', '#EBD3FF', '#FFD9D2', '#D3F5D6', '#A2A2A2', '#7FA3FF', '#FFAA7C', '#FFDF7D', '#BE7DFF', '#FF8F7C', '#7CDA82'];\nvar getAllColorData = exports.getAllColorData = function getAllColorData() {\n  var allColorData = [];\n  for (var colorArray in colorPickerData) {\n    allColorData = allColorData.concat(colorPickerData[colorArray]);\n  }\n  return allColorData;\n};\nvar MAX_COLOR_LIST_SIZE = 10;\nfunction ColorPicker(props) {\n  var localUsedColors = JSON.parse(_storage[\"default\"].get(_storage.KD_RECENT_USED_COLOR)) || []; // 最近使用，存储在浏览器中\n  var allColorData = getAllColorData();\n  var defaultColor = props.defaultColor,\n    baseColor = props.baseColor,\n    colorType = props.colorType,\n    _props$buttonText = props.buttonText,\n    buttonText = _props$buttonText === void 0 ? (0, _intlApi.getLangMsg)('spread.key0319') : _props$buttonText,\n    onColorChange = props.onColorChange,\n    isContextMenu = props.isContextMenu,\n    style = props.style,\n    hideBaseColor = props.hideBaseColor;\n  var _useState = (0, _react.useState)(defaultColor),\n    _useState2 = _slicedToArray(_useState, 2),\n    currentColor = _useState2[0],\n    setCurrentColor = _useState2[1]; // 当前选择颜色\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = _slicedToArray(_useState3, 2),\n    customInput = _useState4[0],\n    setCustomInput = _useState4[1]; // 自定义颜色\n  var _useState5 = (0, _react.useState)(localUsedColors),\n    _useState6 = _slicedToArray(_useState5, 2),\n    recentUsedColor = _useState6[0],\n    setRecentUsedColor = _useState6[1]; // 最近使用颜色\n  var inputRef = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    // 如果是处于spread右键上下文菜单之中的话\n    if (isContextMenu) {\n      inputRef.current.setAttribute('gcUIElement', 'gcContextMenu'); // 非常重要！不加上这个属性值input就不能输入值！避免踩坑\n      inputRef.current.onclick = function (e) {\n        e.stopPropagation(); // spread右键自定义菜单包含输入框时，点击输入框菜单会直接消失，需要阻止冒泡\n      };\n    }\n    // 自定义色值，如果颜色面板中不存在该值则显示自定义色值\n    if (!allColorData.includes(currentColor)) {\n      setCustomInput(currentColor);\n    }\n  }, []);\n  var handleRecentUsedColor = function handleRecentUsedColor(value) {\n    if (value === baseColor) return;\n    var usedColorCopy = recentUsedColor.slice();\n    var findColorIndex = usedColorCopy.indexOf(value); // 当前选中色值是否已存在最近使用中\n    if (findColorIndex !== -1) {\n      usedColorCopy.splice(findColorIndex, 1);\n    }\n    usedColorCopy.unshift(value);\n    while (usedColorCopy.length > MAX_COLOR_LIST_SIZE) {\n      // 最多10个最近使用。超出就需要删除最后一个\n      usedColorCopy.pop();\n    }\n    setRecentUsedColor(usedColorCopy);\n    _storage[\"default\"].set(_storage.KD_RECENT_USED_COLOR, JSON.stringify(usedColorCopy));\n  };\n  var handleColorChange = function handleColorChange(colorType, color, action) {\n    // 颜色发生改变时\n    setCurrentColor(color);\n    handleRecentUsedColor(color);\n    onColorChange(colorType, color, action);\n  };\n  var handleKeyDown = function handleKeyDown(e) {\n    if (e.keyCode === 13) {\n      handleColorChange(colorType, currentColor, 'click');\n    }\n  };\n  var handleChange = function handleChange(newValue) {\n    // 手动输入颜色值\n    setCustomInput(newValue);\n    var pattern = /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/;\n    if (newValue.match(pattern)) {\n      handleColorChange(colorType, newValue, 'write');\n    }\n  };\n  var selectColorClick = function selectColorClick(color) {\n    // 颜色面板选择颜色\n    handleColorChange(colorType, color, 'click');\n  };\n  var handleBaseColor = function handleBaseColor() {\n    // 无填充颜色\n    handleColorChange(colorType, baseColor, 'click');\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames2[\"default\"])(_ColorPicker[\"default\"].colorPickerPanel, 'kd-cq-spread-color-picker'),\n    style: style\n  }, !hideBaseColor && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    onClick: handleBaseColor,\n    className: _ColorPicker[\"default\"].buttonText\n  }, buttonText), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ColorPicker[\"default\"].colorListContainer\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ColorPicker[\"default\"].colorListGrid\n  }, colorPickerData.mainColorsTop.map(function (color) {\n    return /*#__PURE__*/_react[\"default\"].createElement(ColorItem, {\n      key: color,\n      color: color,\n      currentColor: currentColor,\n      onClick: selectColorClick\n    });\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ColorPicker[\"default\"].colorListGrid\n  }, colorPickerData.mainColors.map(function (color) {\n    return /*#__PURE__*/_react[\"default\"].createElement(ColorItem, {\n      key: color,\n      color: color,\n      currentColor: currentColor,\n      onClick: selectColorClick\n    });\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _ColorPicker[\"default\"].title\n  }, (0, _intlApi.getLangMsg)('spread.key0317')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ColorPicker[\"default\"].colorListGrid\n  }, colorPickerData.standardColor.map(function (color) {\n    return /*#__PURE__*/_react[\"default\"].createElement(ColorItem, {\n      key: color,\n      color: color,\n      currentColor: currentColor,\n      onClick: selectColorClick\n    });\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _ColorPicker[\"default\"].title\n  }, (0, _intlApi.getLangMsg)('spread.key0318')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames2[\"default\"])(_ColorPicker[\"default\"].colorListGrid, _ColorPicker[\"default\"].recentUsed)\n  }, recentUsedColor.map(function (color) {\n    return /*#__PURE__*/_react[\"default\"].createElement(ColorItem, {\n      key: color,\n      color: color,\n      currentColor: currentColor,\n      showSelect: false,\n      onClick: selectColorClick\n    });\n  }))), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: (0, _classnames2[\"default\"])(_ColorPicker[\"default\"].customColorInput, 'kd-cq-input'),\n    ref: inputRef,\n    placeholder: (0, _intlApi.getLangMsg)('spread.key0070'),\n    value: customInput,\n    onChange: function onChange(e) {\n      return handleChange(e.target.value);\n    },\n    onKeyDown: function onKeyDown(e) {\n      return handleKeyDown(e);\n    }\n  }));\n}\nfunction SimpleColorPicker(props) {\n  var defaultColor = props.defaultColor,\n    colorType = props.colorType,\n    onColorChange = props.onColorChange,\n    style = props.style;\n  var _useState7 = (0, _react.useState)(defaultColor),\n    _useState8 = _slicedToArray(_useState7, 2),\n    currentColor = _useState8[0],\n    setCurrentColor = _useState8[1]; // 当前选择颜色\n  var handleClick = function handleClick(color) {\n    onColorChange(colorType, color);\n    setCurrentColor(color);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames2[\"default\"])(_ColorPicker[\"default\"].colorPickerPanel, 'kd-cq-spread-color-picker'),\n    style: style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ColorPicker[\"default\"].colorListContainer\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames2[\"default\"])(_ColorPicker[\"default\"].colorListGrid, _ColorPicker[\"default\"].simpleColorListGrid)\n  }, simpleColorPickerData.map(function (color) {\n    return /*#__PURE__*/_react[\"default\"].createElement(ColorItem, {\n      key: color,\n      color: color,\n      currentColor: currentColor,\n      onClick: handleClick\n    });\n  }))));\n}\nvar ColorItem = function ColorItem(_ref) {\n  var color = _ref.color,\n    currentColor = _ref.currentColor,\n    _ref$showSelect = _ref.showSelect,\n    showSelect = _ref$showSelect === void 0 ? true : _ref$showSelect,\n    onClick = _ref.onClick;\n  var handleClick = function handleClick(color) {\n    onClick(color);\n  };\n  var currentColorStyle = (0, _classnames2[\"default\"])('kd-cq-color-picker-color-block', _defineProperty(_defineProperty({}, _ColorPicker[\"default\"].colorItem, true), _ColorPicker[\"default\"].currentColor, showSelect && currentColor === color));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    key: color,\n    title: color,\n    style: {\n      backgroundColor: color\n    },\n    className: currentColorStyle,\n    onClick: handleClick.bind(_this, color)\n  });\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/common/FloatingObjects.js":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/common/FloatingObjects.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.showOtherSelections = showOtherSelections;\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n// 模拟单元格选中时的绿色边框\nfunction showOtherSelections(sheet, range, isShow) {\n  if (!isShow) {\n    sheet.floatingObjects.remove('up');\n    sheet.floatingObjects.remove('rignt');\n    sheet.floatingObjects.remove('bottom');\n    sheet.floatingObjects.remove('left');\n    return;\n  }\n  var row = range.row,\n    col = range.col,\n    rowCount = range.rowCount,\n    colCount = range.colCount;\n  var borderElement = document.createElement('div');\n  borderElement.style.border = '1px dotted green';\n  var upperborder = new _spreadSheets[\"default\"].Spread.Sheets.FloatingObjects.FloatingObject('up');\n  // 起始行\n  upperborder.startRow(row);\n  // 起始列\n  upperborder.startColumn(col);\n  // 结束行\n  upperborder.endColumn(col + colCount);\n  // 结束列\n  upperborder.endRow(row);\n  // 是否允许移动\n  upperborder.allowMove(false);\n  // 是否允许更改尺寸\n  upperborder.allowResize(false);\n  // 是否选中\n  upperborder.isSelected(false);\n  // 是否锁定\n  upperborder.isLocked(true);\n  // 随单元格尺寸变化而变化\n  upperborder.dynamicSize(true);\n  // 设置样式\n  upperborder.content(borderElement);\n  sheet.floatingObjects.add(upperborder);\n  var rightborder = new _spreadSheets[\"default\"].Spread.Sheets.FloatingObjects.FloatingObject('rignt');\n  rightborder.startRow(row);\n  rightborder.startColumn(col + colCount);\n  rightborder.endColumn(col + colCount);\n  rightborder.endRow(row + rowCount);\n  rightborder.allowMove(false);\n  rightborder.allowResize(false);\n  rightborder.isSelected(false);\n  // 随单元格尺寸变化而变化\n  rightborder.dynamicSize(true);\n  rightborder.content(borderElement);\n  sheet.floatingObjects.add(rightborder);\n  var buttomborder = new _spreadSheets[\"default\"].Spread.Sheets.FloatingObjects.FloatingObject('bottom');\n  buttomborder.startRow(row + rowCount);\n  buttomborder.startColumn(col);\n  buttomborder.endColumn(col + colCount);\n  buttomborder.endRow(row + rowCount);\n  buttomborder.allowMove(false);\n  buttomborder.allowResize(false);\n  buttomborder.isSelected(false);\n  // 随单元格尺寸变化而变化\n  buttomborder.dynamicSize(true);\n  buttomborder.content(borderElement);\n  sheet.floatingObjects.add(buttomborder);\n  var leftborder = new _spreadSheets[\"default\"].Spread.Sheets.FloatingObjects.FloatingObject('left');\n  leftborder.startRow(row);\n  leftborder.startColumn(col);\n  leftborder.endColumn(col);\n  leftborder.endRow(row + rowCount);\n  leftborder.allowMove(false);\n  leftborder.allowResize(false);\n  leftborder.isSelected(false);\n  // 随单元格尺寸变化而变化\n  leftborder.dynamicSize(true);\n  leftborder.content(borderElement);\n  sheet.floatingObjects.add(leftborder);\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/common/FloatingObjects.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/common/Separator.jsx":
/*!***********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/common/Separator.jsx ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Separator;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _common = _interopRequireDefault(__webpack_require__(/*! ./common.less */ \"./src/component/web/DataGrid/ReportGrid/ui/common/common.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 工具栏按钮的分割线\n */\n\nfunction Separator(props) {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(props.classNames, _common[\"default\"].separator),\n    style: props.style\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/common/Separator.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.js":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.ContextMenuInput = ContextMenuInput;\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _InputNumber = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/InputNumber */ \"./src/component/web/base/InputNumber.jsx\"));\nvar _ContextMenuInput = _interopRequireDefault(__webpack_require__(/*! ./ContextMenuInput.less */ \"./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.less\"));\nvar _excluded = [\"icon\", \"beforeText\", \"afterText\", \"callback\", \"defaultValue\", \"disabled\"];\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction ContextMenuInput(_ref) {\n  var icon = _ref.icon,\n    beforeText = _ref.beforeText,\n    afterText = _ref.afterText,\n    callback = _ref.callback,\n    defaultValue = _ref.defaultValue,\n    disabled = _ref.disabled,\n    other = _objectWithoutProperties(_ref, _excluded);\n  var _useState = (0, _react.useState)(defaultValue),\n    _useState2 = _slicedToArray(_useState, 2),\n    count = _useState2[0],\n    setCount = _useState2[1];\n  var iconClass = (0, _classnames[\"default\"])('iconcool', icon || _ContextMenuInput[\"default\"].blank_icon, _ContextMenuInput[\"default\"].menuItem);\n  var inputRef = (0, _react.useRef)();\n  var inputBox = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    inputRef.current.inputDom.setAttribute('gcUIElement', 'gcContextMenu'); // 非常重要！不加上这个属性值input就不能输入值！避免踩坑\n    inputRef.current.inputDom.onclick = function (e) {\n      e.stopPropagation(); // spread右键自定义菜单包含输入框时，点击输入框菜单会直接消失，需要阻止冒泡\n    };\n  }, []);\n  var handleBlur = function handleBlur(e) {\n    var val = parseInt(e.target.value);\n    setCount(val);\n  };\n  var handleChange = function handleChange(e) {\n    var val = parseInt(e.target.value);\n    setCount(val);\n  };\n  var handleKeyDown = function handleKeyDown(e) {\n    if (disabled) return;\n    if (e.keyCode === 13) {\n      inputBox.current.click(); // 回车键后右键菜单要消失，spread官方没有提供关闭菜单的接口，需要模拟鼠标点击事件来关闭菜单\n    }\n  };\n  var handleItemClick = function handleItemClick() {\n    if (!count || disabled) return; // 为0或者空时不发送网络请求\n    callback(count);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ContextMenuInput[\"default\"].contextMenuBox,\n    onClick: handleItemClick,\n    ref: inputBox\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ContextMenuInput[\"default\"].left_text\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: iconClass\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n    className: _ContextMenuInput[\"default\"].menuItem\n  }, beforeText)), /*#__PURE__*/_react[\"default\"].createElement(_InputNumber[\"default\"], _extends({\n    className: (0, _classnames[\"default\"])(_ContextMenuInput[\"default\"].inputNumber, 'kd-cq-input'),\n    ref: inputRef,\n    value: count,\n    mustInScope: true,\n    onChange: handleChange,\n    onBlur: handleBlur,\n    onKeyDown: handleKeyDown,\n    disabled: disabled\n  }, other)));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/statusBar/BottomDisplay.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/statusBar/BottomDisplay.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = BottomDisplay;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _bottomDisplay = _interopRequireDefault(__webpack_require__(/*! ./bottomDisplay.less */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less\"));\nvar _DisplayLeft = _interopRequireDefault(__webpack_require__(/*! ./DisplayLeft */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayLeft.js\"));\nvar _DisplayRight = _interopRequireDefault(__webpack_require__(/*! ./DisplayRight */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayRight.js\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * spreadjs的下方信息展示区域\n * bu kechuang\n */\n\nfunction BottomDisplay(props) {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])('kd-cq-spread-bottom-display', _bottomDisplay[\"default\"].bottomDisplay)\n  }, /*#__PURE__*/_react[\"default\"].createElement(_DisplayLeft[\"default\"], props), /*#__PURE__*/_react[\"default\"].createElement(_DisplayRight[\"default\"], props));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/statusBar/BottomDisplay.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayLeft.js":
/*!***************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayLeft.js ***!
  \***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _bottomDisplay = _interopRequireDefault(__webpack_require__(/*! ./bottomDisplay.less */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less\"));\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar DisplayLeft = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(DisplayLeft, _React$Component);\n  function DisplayLeft(props) {\n    var _this;\n    _classCallCheck(this, DisplayLeft);\n    _this = _callSuper(this, DisplayLeft, [props]);\n    _this.state = {\n      content: []\n    };\n    _this.setDisplayContent = _this.setDisplayContent.bind(_assertThisInitialized(_this));\n    _this.clearDisplayContent = _this.clearDisplayContent.bind(_assertThisInitialized(_this));\n    _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(DisplayLeft, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.props.dataPipeModel.registerCallback('SetDisplayContent', this.setDisplayContent);\n      this.props.dataPipeModel.registerCallback('ClearDisplayContent', this.clearDisplayContent);\n    }\n  }, {\n    key: \"setDisplayContent\",\n    value: function setDisplayContent(data) {\n      var contentList = this.state.content;\n      var index = _lodash[\"default\"].findIndex(contentList, function (item) {\n        return item.key === data.key;\n      });\n      if (index > -1) {\n        contentList[index] = data;\n      } else {\n        contentList.push(data);\n      }\n      this.setState({\n        content: contentList\n      });\n    }\n  }, {\n    key: \"clearDisplayContent\",\n    value: function clearDisplayContent(data) {\n      var contentList = this.state.content;\n      var keys = data.keys;\n      _lodash[\"default\"].remove(contentList, function (item) {\n        return keys.indexOf(item.key) > -1;\n      });\n      this.setState({\n        content: contentList\n      });\n    }\n  }, {\n    key: \"handleClick\",\n    value: function handleClick(item) {\n      var key = item.key,\n        allowClick = item.allowClick,\n        callback = item.callback,\n        invokemethod = item.invokemethod;\n      if (allowClick) {\n        this.props.invokeControlMethodOnly(this.props.model, callback, [{\n          data: key,\n          invokemethod: invokemethod\n        }]);\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this2 = this;\n      var contentList = this.state.content;\n      contentList = contentList.map(function (item) {\n        return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n          key: item.key,\n          style: item.style,\n          onClick: function onClick() {\n            _this2.handleClick(item);\n          },\n          className: _bottomDisplay[\"default\"].context,\n          title: item.text\n        }, item.text);\n      });\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _bottomDisplay[\"default\"].displayLeft\n      }, contentList);\n    }\n  }]);\n  return DisplayLeft;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayLeft.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayRight.js":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayRight.js ***!
  \****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _bottomDisplay = _interopRequireDefault(__webpack_require__(/*! ./bottomDisplay.less */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less\"));\nvar _ZoomingBar = _interopRequireDefault(__webpack_require__(/*! ./ZoomingBar */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/ZoomingBar.js\"));\nvar _HighlightCell = _interopRequireDefault(__webpack_require__(/*! ./HighlightCell */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/HighlightCell.js\"));\nvar _Separator = _interopRequireDefault(__webpack_require__(/*! ../common/Separator */ \"./src/component/web/DataGrid/ReportGrid/ui/common/Separator.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _componentutil = __webpack_require__(/*! @/util/componentutil */ \"./src/util/componentutil.js\");\nvar _responseToolbarUtils = __webpack_require__(/*! ../../dataPipeModel/responseToolbarUtils */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\");\nvar _big = _interopRequireDefault(__webpack_require__(/*! big.js */ \"../../node_modules/big.js/big.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 用来显示选中区域的合计值\n * 现在只支持--平均值，计数，合计\n */\nvar DisplayRight = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(DisplayRight, _React$Component);\n  function DisplayRight(props) {\n    var _this;\n    _classCallCheck(this, DisplayRight);\n    _this = _callSuper(this, DisplayRight, [props]);\n    _this.removeTrailingZeros = function (num) {\n      // 去除尾0\n      return num.toFixed(9).replace(/0+$/, '').replace(/\\.$/, '');\n    };\n    _this.format = function (num) {\n      var userFmtInfo = (0, _componentutil.getUserFormatConfig)();\n      var _userFmtInfo$numberFo = userFmtInfo.numberFormat,\n        numSeparator = _userFmtInfo$numberFo.numSeparator,\n        decimalPoint = _userFmtInfo$numberFo.decimalPoint;\n      var reg = /\\d{1,3}(?=(\\d{3})+$)/g;\n      var str = num.toString();\n      var isNegative = str.startsWith('-');\n      var numberPart = isNegative ? str.slice(1) : str;\n      var newNum = numberPart.replace(/^(\\d+)((\\.\\d+)?)$/, function (s, s1, s2) {\n        return s1.replace(reg, '$&,') + s2;\n      });\n      if (numSeparator !== ',' || decimalPoint !== '.') {\n        var arr = newNum.split('.');\n        arr[0] = arr[0].replace(/,/, numSeparator);\n        newNum = arr.join(decimalPoint);\n      }\n      return isNegative ? '-' + newNum : newNum;\n    };\n    _this.isFormat = function (sheet, _ref) {\n      var r = _ref.r,\n        c = _ref.c;\n      var format = sheet.getCell(r, c).formatter();\n      if (format) {\n        return format.indexOf('#,##0') !== -1;\n      } else {\n        return false;\n      }\n    };\n    _this.state = {\n      show: false,\n      average: '',\n      count: '',\n      total: ''\n    };\n    _this.countType = [{\n      type: 'average',\n      text: (0, _intlApi.getLangMsg)('spread.key0065') + ':'\n    }, {\n      type: 'count',\n      text: (0, _intlApi.getLangMsg)('spread.key0066') + ':'\n    }, {\n      type: 'total',\n      text: (0, _intlApi.getLangMsg)('spread.key0067') + ':'\n    }];\n    _this.renderItem = _this.renderItem.bind(_assertThisInitialized(_this));\n    _this.getSelectedCellsInfo = _this.getSelectedCellsInfo.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(DisplayRight, [{\n    key: \"renderItem\",\n    value: function renderItem() {\n      var _this2 = this;\n      if (!this.state.show) return [];\n      var items = this.countType.map(function (item) {\n        var type = item.type,\n          text = item.text;\n        var value = _this2.state[type];\n        return /*#__PURE__*/_react[\"default\"].createElement(CountItem, {\n          key: type,\n          type: type,\n          title: text,\n          value: value\n        });\n      });\n      return items;\n    }\n  }, {\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.props.dataPipeModel.registerCallback('SendChangingCellInfo', this.getSelectedCellsInfo);\n    }\n  }, {\n    key: \"getSelectedCellsInfo\",\n    value: function getSelectedCellsInfo(data) {\n      var _this3 = this;\n      var sheet = data.sheet,\n        selections = data.selections;\n      var sum = (0, _big[\"default\"])(0);\n      var aver = (0, _big[\"default\"])(0);\n      var count = (0, _big[\"default\"])(0);\n      selections.forEach(function (selection) {\n        var _convertRange = (0, _responseToolbarUtils.convertRange)(sheet, selection),\n          row = _convertRange.row,\n          col = _convertRange.col,\n          rowCount = _convertRange.rowCount,\n          colCount = _convertRange.colCount;\n        var rc = row + rowCount;\n        var cc = col + colCount;\n        for (var r = row; r < rc; r++) {\n          for (var c = col; c < cc; c++) {\n            if (sheet.getRowVisible(r)) {\n              var value = sheet.getValue(r, c);\n              if (_this3.isNumber(value)) {\n                sum = sum.plus((0, _big[\"default\"])(value));\n                count++;\n              }\n            }\n          }\n        }\n      });\n      if (count > 0) {\n        aver = this.removeTrailingZeros(sum.div(count));\n        sum = this.removeTrailingZeros(sum);\n        var activeRow = sheet.getActiveRowIndex();\n        var activeCol = sheet.getActiveColumnIndex();\n        var isFormat = this.isFormat(sheet, {\n          r: activeRow,\n          c: activeCol\n        });\n        if (isFormat) {\n          sum = this.format(sum);\n          aver = this.format(aver);\n        } else {\n          var userFmtInfo = (0, _componentutil.getUserFormatConfig)();\n          var decimalPoint = userFmtInfo.numberFormat.decimalPoint;\n          sum = sum.replace('.', decimalPoint);\n          aver = aver.replace('.', decimalPoint);\n        }\n        this.setState({\n          show: true,\n          average: aver,\n          count: count,\n          total: sum\n        });\n      } else {\n        this.setState({\n          show: false\n        });\n      }\n    }\n  }, {\n    key: \"isNumber\",\n    value: function isNumber(value) {\n      var reg = /^-?\\d*\\.?\\d*$/;\n      return value != null && reg.test(value.toString());\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _bottomDisplay[\"default\"].displayRight\n      }, this.renderItem(), /*#__PURE__*/_react[\"default\"].createElement(_HighlightCell[\"default\"], this.props), /*#__PURE__*/_react[\"default\"].createElement(_Separator[\"default\"], null), /*#__PURE__*/_react[\"default\"].createElement(_ZoomingBar[\"default\"], this.props));\n    }\n  }]);\n  return DisplayRight;\n}(_react[\"default\"].Component);\nfunction CountItem(props) {\n  var title = props.title,\n    value = props.value;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _bottomDisplay[\"default\"].item\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _bottomDisplay[\"default\"].itemTitle\n  }, title), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _bottomDisplay[\"default\"].itemValue\n  }, value));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/statusBar/DisplayRight.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/statusBar/HighlightCell.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/statusBar/HighlightCell.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = HighlightCell;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _DropDownList = _interopRequireWildcard(__webpack_require__(/*! ../toolbar/toolbarElement/DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _ColorPicker = __webpack_require__(/*! ../common/ColorPicker */ \"./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _bottomDisplay = _interopRequireDefault(__webpack_require__(/*! ./bottomDisplay.less */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less\"));\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _global = __webpack_require__(/*! @/global */ \"./src/global/index.js\");\nvar _index = __webpack_require__(/*! @/action/actionname/global/page/client/index.js */ \"./src/action/actionname/global/page/client/index.js\");\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _common = __webpack_require__(/*! ../../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar DEFAULT_COLOR = '#FFF3D4';\nfunction HighlightCell(props) {\n  var dataPipeModel = props.dataPipeModel,\n    invokeControlMethodOnly = props.invokeControlMethodOnly;\n  var spreadRef = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    selected = _useState2[0],\n    setSelected = _useState2[1];\n  var currentColor = (0, _react.useRef)(DEFAULT_COLOR);\n  (0, _react.useEffect)(function () {\n    spreadRef.current = dataPipeModel.getData('PostSpread');\n    var highlightConfig = getHighlightConfig();\n    if (highlightConfig) {\n      initHighlight(highlightConfig);\n    }\n    var removeCallback = dataPipeModel.registerCallback('initSpreadFromJSonFinish', function () {\n      var highlightConfig = getHighlightConfig();\n      if (highlightConfig) {\n        // json会将tag覆盖，并且解绑所有事件\n        initHighlight(highlightConfig);\n        spreadRef.current.bind(_spreadSheets[\"default\"].Spread.Sheets.Events.ActiveSheetChanging, handleActiveSheetChanged);\n        spreadRef.current.getActiveSheet().bind(_spreadSheets[\"default\"].Spread.Sheets.Events.SelectionChanged, handleSelectionChanged);\n      }\n    });\n    return function () {\n      spreadRef.current.sheets.forEach(function (sheet) {\n        return (0, _common.setSheetTag)(sheet, {\n          highlightConfig: null\n        });\n      });\n      removeCallback();\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (selected) {\n      spreadRef.current.bind(_spreadSheets[\"default\"].Spread.Sheets.Events.ActiveSheetChanging, handleActiveSheetChanged);\n      spreadRef.current.getActiveSheet().bind(_spreadSheets[\"default\"].Spread.Sheets.Events.SelectionChanged, handleSelectionChanged);\n    } else {\n      spreadRef.current.unbind(_spreadSheets[\"default\"].Spread.Sheets.Events.ActiveSheetChanging, handleActiveSheetChanged);\n      spreadRef.current.sheets.forEach(function (sheet) {\n        return sheet.unbind(_spreadSheets[\"default\"].Spread.Sheets.Events.SelectionChanged, handleSelectionChanged);\n      });\n    }\n  }, [selected]);\n  var getHighlightConfig = function getHighlightConfig() {\n    var model = props.model;\n    var userUIState = (0, _memoryCacher.getUserUIState)(model);\n    var highlightConfig = userUIState.getIn(['spreads', 'highlightConfig']);\n    return highlightConfig;\n  };\n  var initHighlight = function initHighlight(highlightConfig) {\n    if (!highlightConfig) return;\n    var useHighlight = highlightConfig.get('useHighlight');\n    var highlightColor = highlightConfig.get('highlightColor');\n    currentColor.current = highlightColor;\n    if (useHighlight) {\n      addHighlight();\n      setSelected(true);\n    } else {\n      removeHighlight();\n      setSelected(false);\n    }\n  };\n  var updateUserUIState = function updateUserUIState(highlightConfig) {\n    var model = props.model;\n    (0, _memoryCacher.setUserUIState)(model.pageId, ['spreads', 'highlightConfig'], highlightConfig, true);\n    var rootPageId = (0, _appModelFunction.getRootPageId)()((0, _global.getGlobalState)());\n    var userUIState = (0, _memoryCacher.getDiffUserUIState)();\n    if (userUIState) {\n      invokeControlMethodOnly({\n        pageId: rootPageId\n      }, _index.SAVE_SETTING, [userUIState]);\n    }\n  };\n  var handleSelectionChanged = (0, _react.useCallback)(function (e, args) {\n    args.sheet.repaint();\n  }, []);\n  var handleActiveSheetChanged = (0, _react.useCallback)(function (e, args) {\n    var newSheet = args.newSheet,\n      oldSheet = args.oldSheet;\n    oldSheet.unbind(_spreadSheets[\"default\"].Spread.Sheets.Events.SelectionChanged, handleSelectionChanged);\n    (0, _common.setSheetTag)(oldSheet, {\n      highlightConfig: null\n    });\n    newSheet.bind(_spreadSheets[\"default\"].Spread.Sheets.Events.SelectionChanged, handleSelectionChanged);\n    (0, _common.setSheetTag)(newSheet, {\n      highlightConfig: {\n        highlightColor: currentColor.current,\n        useHighlight: true\n      }\n    });\n  }, []);\n  var addHighlight = function addHighlight() {\n    var highlightConfig = {\n      highlightColor: currentColor.current,\n      useHighlight: true\n    };\n    (0, _common.setSheetTag)(spreadRef.current.getActiveSheet(), {\n      highlightConfig: highlightConfig\n    });\n    updateUserUIState(highlightConfig);\n  };\n  var removeHighlight = function removeHighlight() {\n    var highlightConfig = {\n      highlightColor: currentColor.current,\n      useHighlight: false\n    };\n    (0, _common.setSheetTag)(spreadRef.current.getActiveSheet(), {\n      highlightConfig: highlightConfig\n    });\n    updateUserUIState(highlightConfig);\n  };\n  var handleClick = function handleClick() {\n    if (selected) {\n      // 当前已经设置了行列高亮，则取消高亮\n      removeHighlight();\n    } else {\n      addHighlight();\n    }\n    setSelected(!selected);\n    spreadRef.current.getActiveSheet().repaint();\n  };\n  var handleColorChange = function handleColorChange(colorType, color) {\n    if (!selected) {\n      setSelected(true);\n    }\n    currentColor.current = color;\n    addHighlight();\n    spreadRef.current.getActiveSheet().repaint();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], {\n    btnKey: \"HighlightCell\",\n    mainIconClass: \"iconcool gaoliangsuozaixinglie\",\n    title: (0, _intlApi.getLangMsg)('spread.key0442'),\n    className: _bottomDisplay[\"default\"].hightlight,\n    onClick: handleClick,\n    dropDownType: _DropDownList.DROPDOWN_TYPE.arrowDrowdown,\n    dataPipeModel: dataPipeModel,\n    invokeControlMethodOnly: invokeControlMethodOnly,\n    DropdownRender: ColorPickerRender,\n    defaultColor: selected && currentColor.current,\n    tipsPlacement: \"top\",\n    select: selected,\n    onColorChange: handleColorChange\n  });\n}\nvar ColorPickerRender = function ColorPickerRender(props) {\n  var defaultColor = props.defaultColor,\n    btnKey = props.btnKey,\n    onColorChange = props.onColorChange;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _bottomDisplay[\"default\"].colorPickerRender\n  }, /*#__PURE__*/_react[\"default\"].createElement(_ColorPicker.SimpleColorPicker, {\n    defaultColor: defaultColor,\n    colorType: btnKey,\n    onColorChange: onColorChange\n  }));\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/statusBar/HighlightCell.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/statusBar/ZoomingBar.js":
/*!**************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/statusBar/ZoomingBar.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-float.js */ \"../../node_modules/core-js/modules/es.parse-float.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _bottomDisplay = _interopRequireDefault(__webpack_require__(/*! ./bottomDisplay.less */ \"./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _customCommand = __webpack_require__(/*! ../../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar ZoomingBar = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(ZoomingBar, _React$Component);\n  function ZoomingBar(props) {\n    var _this;\n    _classCallCheck(this, ZoomingBar);\n    _this = _callSuper(this, ZoomingBar, [props]);\n    _this.state = {\n      scale: 1\n    };\n    _this.setZoomingScale = _this.setZoomingScale.bind(_assertThisInitialized(_this));\n    _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(ZoomingBar, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var _this2 = this;\n      var dataPipeModel = this.props.dataPipeModel;\n      this.removeCallback = dataPipeModel.registerCallback('SetZoomingScale', this.setZoomingScale);\n      this.spread = dataPipeModel.getData('PostSpread');\n      this.spread.commandManager().addListener('zoomListener', function (props) {\n        var command = props.command;\n        if (command.cmd === 'KDSetViewZoom') {\n          _this2.setState({\n            scale: command.data.newScale\n          });\n        }\n      });\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      this.removeCallback && this.removeCallback();\n      // 移除管理器监听\n      this.spread.commandManager().removeListener('zoomListener');\n    }\n  }, {\n    key: \"setZoomingScale\",\n    value: function setZoomingScale(data) {\n      var scale = parseFloat(data.scale) || 1;\n      this.setState({\n        scale: scale\n      });\n    }\n  }, {\n    key: \"toPercent\",\n    value: function toPercent(num) {\n      return (num * 100).toFixed() + '%';\n    }\n  }, {\n    key: \"handleClick\",\n    value: function handleClick(args) {\n      var scale = this.state.scale;\n      var dataPipeModel = this.props.dataPipeModel;\n      var newScale;\n      var step = 0.1;\n      var maxScale = 4;\n      var minScale = 0.25;\n      if (args === 'add') {\n        scale + step > maxScale ? newScale = maxScale : newScale = scale + step;\n      } else {\n        scale - step < minScale ? newScale = minScale : newScale = scale - step;\n      }\n      try {\n        newScale = Math.round(newScale * 100) / 100;\n        var _this$props$model = this.props.model,\n          pageId = _this$props$model.pageId,\n          key = _this$props$model.key;\n        var data = (0, _memoryCacher.getPageData)(pageId, [key, 'zoomChange']);\n        if (data && data.isOpen) {\n          var callback = data.callback,\n            invokemethod = data.invokemethod;\n          this.props.invokeControlMethodOnly({\n            pageId: pageId,\n            key: key\n          }, callback, [{\n            data: newScale,\n            invokemethod: invokemethod\n          }]);\n        }\n      } catch (error) {\n        console.log(error);\n      }\n      dataPipeModel.sendData({\n        type: _customCommand.KD_SET_VIEW_ZOOM,\n        data: {\n          oldScale: this.state.scale,\n          newScale: newScale\n        }\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this3 = this;\n      var scale = this.state.scale;\n      var addClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _bottomDisplay[\"default\"].add, true), 'kdfont kdfont-shubiaozhankai3', true));\n      var reduceClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _bottomDisplay[\"default\"].reduce, true), 'kdfont kdfont-shubiaoshouqi3', true));\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _bottomDisplay[\"default\"].zoomingBar\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: reduceClass,\n        onClick: function onClick(e) {\n          return _this3.handleClick('reduce', e);\n        }\n      }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _bottomDisplay[\"default\"].scale\n      }, this.toPercent(scale)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: addClass,\n        onClick: function onClick(e) {\n          return _this3.handleClick('add', e);\n        }\n      }));\n    }\n  }]);\n  return ZoomingBar;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/statusBar/ZoomingBar.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/CloseToolbarBtn.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/CloseToolbarBtn.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ./spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./toolbarElement/SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction CloseToolbarBtn(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setEtop = _useState2[1];\n  var _useState3 = (0, _react.useState)(true),\n    _useState4 = _slicedToArray(_useState3, 2),\n    visible = _useState4[0],\n    setVisible = _useState4[1];\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      var spread = props.dataPipeModel.getData('PostSpread');\n      var eTop = spread.getHost().parentNode;\n      setEtop(eTop);\n    }, 0);\n    function setExpandBtnVisible(data) {\n      setVisible(data.visible);\n    }\n    props.dataPipeModel.registerCallback('SetExpandBtnVisible', setExpandBtnVisible);\n  }, []);\n  var isClosed = props.isClosed;\n  // const text = isClosed ? getLangMsg('spread.key0063') : getLangMsg('spread.key0064')\n  var closeClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].close, !isClosed), _spreadToolbar[\"default\"].open, isClosed));\n  var iconClass = (0, _classnames2[\"default\"])({\n    kdfont: true,\n    'kdfont-shangla': !isClosed,\n    'kdfont-xiala': isClosed\n  });\n  var children = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: closeClass,\n    onClick: props.onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n    tip: isClosed ? (0, _intlApi.getLangMsg)('spread.key0285') : (0, _intlApi.getLangMsg)('spread.key0284')\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: iconClass,\n    style: isClosed ? {} : {\n      marginTop: 12\n    }\n  })));\n  return visible ? children : null;\n}\nvar _default = exports[\"default\"] = CloseToolbarBtn;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/CloseToolbarBtn.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarBottom.js":
/*!***************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarBottom.js ***!
  \***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.ToolbarBottom = void 0;\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ./spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames4 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _common = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/common.js */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _reportUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _CustomItem = _interopRequireDefault(__webpack_require__(/*! ./toolbarElement/CustomItem */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CustomItem.js\"));\nvar _customItemUtils = __webpack_require__(/*! ../../utils/customItemUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/customItemUtils.js\");\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./toolbarElement/SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * spread表格工具栏底部，显示选中区域和编辑栏\n */\nvar ToolbarBottom = exports.ToolbarBottom = /*#__PURE__*/function (_React$Component) {\n  _inherits(ToolbarBottom, _React$Component);\n  function ToolbarBottom(props) {\n    var _this;\n    _classCallCheck(this, ToolbarBottom);\n    _this = _callSuper(this, ToolbarBottom, [props]);\n    _this.state = {\n      activeSelection: _this.props.activeSelection,\n      activeCellValue: _this.props.activeCellValue,\n      activeCell: _this.props.activeCell,\n      customExpendConfig: null\n    };\n    _this.inputValue = _this.props.activeCellValue;\n    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(ToolbarBottom, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var _this2 = this;\n      this.props.dataPipeModel.registerCallback('SetToolbarCustomExpend', function (data) {\n        var customItem = (0, _customItemUtils.createCustomItem)(data.customItem);\n        var customExpendConfig = {\n          customItem: customItem,\n          customInput: data.customInput\n        };\n        _this2.setState({\n          customExpendConfig: customExpendConfig\n        });\n      });\n    }\n  }, {\n    key: \"componentWillReceiveProps\",\n    value: function componentWillReceiveProps(nextProps) {\n      this.inputValue = nextProps.activeCellValue;\n      this.setState({\n        activeSelection: nextProps.activeSelection,\n        activeCellValue: nextProps.activeCellValue,\n        activeCell: nextProps.activeCell\n      });\n    }\n  }, {\n    key: \"handleChange\",\n    value: function handleChange(newValue) {\n      this.setState({\n        activeCellValue: newValue\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$state = this.state,\n        activeSelection = _this$state.activeSelection,\n        activeCellValue = _this$state.activeCellValue,\n        activeCell = _this$state.activeCell;\n      activeCellValue = activeCellValue === null ? '' : activeCellValue;\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: (0, _classnames4[\"default\"])('kd-cq-spread-toolbar-bottom', _spreadToolbar[\"default\"].toolbarBottomContainer)\n      }, /*#__PURE__*/_react[\"default\"].createElement(ToolbarBottomLeft, _extends({}, this.props, {\n        activeSelection: activeSelection,\n        activeCellCoordinate: activeCell,\n        activeCellValue: activeCellValue,\n        dataPipeModel: this.props.dataPipeModel\n      })), /*#__PURE__*/_react[\"default\"].createElement(ToolbarBottomRight, {\n        onChange: this.handleChange,\n        dataPipeModel: this.props.dataPipeModel\n      }), this.state.customExpendConfig ? /*#__PURE__*/_react[\"default\"].createElement(ToolbarCustom, _extends({\n        customExpendConfig: this.state.customExpendConfig\n      }, this.props, {\n        dataPipeModel: this.props.dataPipeModel\n      })) : null);\n    }\n  }]);\n  return ToolbarBottom;\n}(_react[\"default\"].Component);\nvar ToolbarBottomLeft = /*#__PURE__*/function (_React$Component2) {\n  _inherits(ToolbarBottomLeft, _React$Component2);\n  // static actions={invokeControlMethodOnly};\n  function ToolbarBottomLeft(props) {\n    var _this3;\n    _classCallCheck(this, ToolbarBottomLeft);\n    _this3 = _callSuper(this, ToolbarBottomLeft, [props]);\n    _this3.getGlobalContext = function () {\n      var type = 'PostContext';\n      return _this3.props.dataPipeModel.getData(type);\n    };\n    _this3.handleClick = _this3.handleClick.bind(_assertThisInitialized(_this3));\n    _this3.handleChange = _this3.handleChange.bind(_assertThisInitialized(_this3));\n    _this3.getGlobalContext = _this3.getGlobalContext.bind(_assertThisInitialized(_this3));\n    _this3.handleKeyDown = _this3.handleKeyDown.bind(_assertThisInitialized(_this3));\n    _this3.handleBlur = _this3.handleBlur.bind(_assertThisInitialized(_this3));\n    _this3.handleFocus = _this3.handleFocus.bind(_assertThisInitialized(_this3));\n    _this3.disableFormula = _this3.disableFormula.bind(_assertThisInitialized(_this3));\n    _this3.inputOldValue = /*#__PURE__*/_react[\"default\"].createRef();\n    _this3.isEnter = false;\n    _this3.state = {\n      activeSelection: props.activeSelection || '',\n      disableFormula: false\n    };\n    return _this3;\n  }\n  _createClass(ToolbarBottomLeft, [{\n    key: \"handleClick\",\n    value: function handleClick() {\n      if (this.state.disableFormula) return;\n      var model = this.props.model;\n      var activeCellCoordinate = this.props.activeCellCoordinate;\n      // 业务反馈，空白页面也要能点击，代码还原处理\n      var activeCellValue = this.props.activeCellValue;\n      var formula = null;\n      if (typeof activeCellValue !== 'number') {\n        // activeCellValue是number类型时这里会报错 会导致公式面板打不开\n        formula = activeCellValue[0] === '=' ? activeCellValue.slice(1) : null;\n      }\n      this.props.invokeControlMethodOnly(model, 'showFormulaPanel', [{\n        formula: formula,\n        cell: activeCellCoordinate\n      }]);\n      var spread = this.getGlobalContext().spread;\n      spread.refresh();\n    }\n  }, {\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.props.dataPipeModel.registerCallback('formulaBarNotInput', this.disableFormula);\n    }\n  }, {\n    key: \"disableFormula\",\n    value: function disableFormula(_ref) {\n      var isDisabled = _ref.isDisabled;\n      this.setState({\n        disableFormula: isDisabled\n      });\n    }\n  }, {\n    key: \"componentWillReceiveProps\",\n    value: function componentWillReceiveProps(nextProps) {\n      if (this.props.activeSelection !== nextProps.activeSelection) {\n        this.setState({\n          activeSelection: nextProps.activeSelection\n        });\n      }\n    }\n  }, {\n    key: \"handleFocus\",\n    value: function handleFocus(e) {\n      this.isEnter = false;\n      this.inputOldValue.current = e.target.value;\n    }\n  }, {\n    key: \"handleChange\",\n    value: function handleChange(e) {\n      this.setState({\n        activeSelection: e.target.value\n      });\n    }\n  }, {\n    key: \"handleKeyDown\",\n    value: function handleKeyDown(e) {\n      if (e.keyCode === 13 || e.keyCode === 108 || e.keyCode === 9) {\n        this.isEnter = true;\n        this.setSelection(this.state.activeSelection);\n        e.target.blur();\n      }\n    }\n  }, {\n    key: \"handleBlur\",\n    value: function handleBlur(e) {\n      if (!this.isEnter) {\n        this.setState({\n          activeSelection: this.inputOldValue.current\n        });\n      }\n    }\n  }, {\n    key: \"setSelection\",\n    value: function setSelection(value) {\n      var spread = this.getGlobalContext().spread;\n      var sheetEventHandle = this.getGlobalContext().sheetEventHandle;\n      var sheet = spread.getActiveSheet();\n      var range = (0, _common.unExplainActiveCell)(sheet, value);\n      if (!range) {\n        this.setState({\n          activeSelection: this.inputOldValue.current\n        });\n        return;\n      }\n      var row = range.row,\n        rowCount = range.rowCount,\n        col = range.col,\n        colCount = range.colCount;\n      sheet.setSelection(row, col, rowCount, colCount);\n      var rc = sheet.getRowCount();\n      var cc = sheet.getColumnCount();\n      var r = row > rc - 1 ? rc - 1 : row;\n      var c = col > cc - 1 ? cc - 1 : col;\n      sheet.showRow(r, 3);\n      sheet.showColumn(c, 3);\n      var cellInfo = {\n        type: 'SendCellInfo',\n        selections: sheet.getSelections(),\n        sheet: sheet\n      };\n      this.props.dataPipeModel.sendData(cellInfo);\n      (0, _reportUtils.triggerSelectionChanged)(sheet, sheetEventHandle.selectionChanged);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var formulaIconClass = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty(_defineProperty({\n        'kd-hover-bdcolor': true,\n        'kdfont kdfont-fx': true\n      }, _spreadToolbar[\"default\"].icon, true), _spreadToolbar[\"default\"].formualIcon, true), _spreadToolbar[\"default\"].disabledClick, this.state.disableFormula));\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadToolbar[\"default\"].toolbarBLeft\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n        className: (0, _classnames4[\"default\"])('kd-cq-spread-spread-cell-info', _spreadToolbar[\"default\"].toolbarBLLeft),\n        value: this.state.activeSelection,\n        onFocus: this.handleFocus,\n        onChange: this.handleChange,\n        onBlur: this.handleBlur,\n        onKeyDown: this.handleKeyDown\n      }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadToolbar[\"default\"].toolbarBLRight\n      }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n        tip: (0, _intlApi.getLangMsg)('spread.key0283'),\n        disabled: this.state.disableFormula\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: formulaIconClass,\n        onClick: this.handleClick\n      }))));\n    }\n  }]);\n  return ToolbarBottomLeft;\n}(_react[\"default\"].Component);\nvar ToolbarBottomRight = /*#__PURE__*/function (_React$Component3) {\n  _inherits(ToolbarBottomRight, _React$Component3);\n  function ToolbarBottomRight(props) {\n    var _this4;\n    _classCallCheck(this, ToolbarBottomRight);\n    _this4 = _callSuper(this, ToolbarBottomRight, [props]);\n    _this4.handleFormulaMenuClick = function () {\n      var input = _this4.refs.input;\n      input.click(); // 点击下拉菜单后后input失焦，虽然能输入值，但是输入的值不改变value，是虚拟的，需要点击事件聚焦（focus事件无效）\n    };\n    _this4.getGlobalContext = function () {\n      var type = 'PostContext';\n      return _this4.props.dataPipeModel.getData(type);\n    };\n    _this4.postFormulaInput = _this4.postFormulaInput.bind(_assertThisInitialized(_this4));\n    _this4.setDisabled = _this4.setDisabled.bind(_assertThisInitialized(_this4));\n    _this4.handleClick = _this4.handleClick.bind(_assertThisInitialized(_this4));\n    _this4.getGlobalContext = _this4.getGlobalContext.bind(_assertThisInitialized(_this4));\n    _this4.state = {\n      isDisabled: false,\n      fold: true\n    };\n    return _this4;\n  }\n  _createClass(ToolbarBottomRight, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var type = 'PostInput';\n      this.props.dataPipeModel.registerCallback(type, this.postFormulaInput);\n      this.props.dataPipeModel.registerCallback('formulaBarNotInput', this.setDisabled);\n      this.initFormulaBar();\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      var _this$formulaTextBox;\n      (_this$formulaTextBox = this.formulaTextBox) === null || _this$formulaTextBox === void 0 || _this$formulaTextBox.Z0.removeEventListener('click', this.handleFormulaMenuClick); // 公式下拉菜单点击事件\n    }\n\n    // 初始化公式的区域选择器\n  }, {\n    key: \"initFormulaBar\",\n    value: function initFormulaBar() {\n      try {\n        var input = this.refs.input;\n        var spread = this.getGlobalContext().spread;\n        this.formulaTextBox = new _spreadSheets[\"default\"].Spread.Sheets.FormulaTextBox.FormulaTextBox(input);\n        this.formulaTextBox.Z0.addEventListener('click', this.handleFormulaMenuClick); // 公式下拉菜单点击事件\n        this.formulaTextBox.workbook(spread);\n      } catch (error) {\n        console.error(error);\n      }\n    }\n  }, {\n    key: \"setDisabled\",\n    value: function setDisabled(_ref2) {\n      var isDisabled = _ref2.isDisabled;\n      isDisabled ? this.refs.input.setAttribute('disabled', isDisabled) : this.refs.input.removeAttribute('disabled');\n      this.setState({\n        isDisabled: isDisabled\n      });\n    }\n  }, {\n    key: \"postFormulaInput\",\n    value: function postFormulaInput() {\n      return this.refs.input;\n    }\n  }, {\n    key: \"handleClick\",\n    value: function handleClick() {\n      this.setState({\n        fold: !this.state.fold\n      });\n      var spread = this.getGlobalContext().spread;\n      setTimeout(function () {\n        spread.refresh();\n      }, 0);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      // 这里已经使用spread接口与input进行绑定，不再需要手动设置值，手动设置值会导致公式不正确\n      // const activeCellValue = this.props.activeCellValue\n      // const value = activeCellValue !== undefined && activeCellValue !== '' && activeCellValue !== null ? activeCellValue : ''\n      var toolbarBRight = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].disableInput, this.state.isDisabled), _spreadToolbar[\"default\"].toolbarBRight, true));\n      var iconClass = (0, _classnames4[\"default\"])(_defineProperty({\n        kdfont: true,\n        'kdfont-xiala': this.state.fold,\n        'kdfont-shangla': !this.state.fold\n      }, _spreadToolbar[\"default\"].iconClass, true));\n      var wrap = this.state.fold ? 'off' : 'soft';\n      var toolbarBRightStyle = this.state.fold ? {\n        height: '28px'\n      } : {\n        height: '66px'\n      };\n      var textareaStyle = Object.assign({\n        marginTop: 2\n      }, this.state.fold ? {\n        height: '30px'\n      } : {\n        height: '66px'\n      });\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: toolbarBRight,\n        style: toolbarBRightStyle\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"textarea\", {\n        className: \"kd-cq-spread-spread-cell-input\",\n        style: textareaStyle,\n        wrap: wrap,\n        ref: \"input\"\n      }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: iconClass,\n        onClick: this.handleClick\n      }));\n    }\n  }]);\n  return ToolbarBottomRight;\n}(_react[\"default\"].Component);\nfunction ToolbarCustom(props) {\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    isChange = _useState2[0],\n    setIsChange = _useState2[1]; // 用于判断输入框的值是否已变更，避免多次发送请求到后端\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isLocked = _useState4[0],\n    setIsLocked = _useState4[1];\n  var _props$customExpendCo = props.customExpendConfig,\n    customItem = _props$customExpendCo.customItem,\n    customInput = _props$customExpendCo.customInput;\n  var _useState5 = (0, _react.useState)(''),\n    _useState6 = _slicedToArray(_useState5, 2),\n    userInput = _useState6[0],\n    setUserInput = _useState6[1];\n  var inputRef = (0, _react.useRef)();\n  var currentCell = (0, _react.useRef)({});\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return props.dataPipeModel.getData(type);\n  };\n  (0, _react.useEffect)(function () {\n    var removeListener = props.dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n    return function () {\n      removeListener();\n    };\n  }, []);\n  var handleSelectionChange = function handleSelectionChange() {\n    var spread = getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    currentCell.current = {\n      r: sheet.getActiveRowIndex(),\n      c: sheet.getActiveColumnIndex()\n    };\n  };\n  var disableFormula = function disableFormula(_ref3) {\n    var isDisabled = _ref3.isDisabled;\n    isDisabled ? inputRef.current.setAttribute('disabled', isDisabled) : inputRef.current.removeAttribute('disabled');\n    setIsLocked(isDisabled);\n  };\n  var handleBlur = function handleBlur() {\n    if (isChange) {\n      var callback = customInput.callback,\n        invokeAction = customInput.invokeAction;\n      callback && invokeAction && props.invokeControlMethodOnly(props.model, callback, [{\n        invokemethod: invokeAction,\n        value: userInput,\n        cell: currentCell.current\n      }]);\n      setIsChange(false);\n    }\n  };\n  var handleChange = function handleChange(e) {\n    setIsChange(true);\n    setUserInput(e.target.value);\n  };\n  (0, _react.useEffect)(function () {\n    props.dataPipeModel.registerCallback('SetToolbarCustomInputValue', function (data) {\n      setUserInput(data.customInput);\n    });\n    props.dataPipeModel.registerCallback('formulaBarNotInput', disableFormula);\n  }, []);\n  var otherProps = {\n    model: props.model,\n    invokeControlMethodOnly: props.invokeControlMethodOnly,\n    dataPipeModel: props.dataPipeModel,\n    isLockAll: isLocked\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].toolbarCustomContainer\n  }, /*#__PURE__*/_react[\"default\"].createElement(_CustomItem[\"default\"], _extends({}, customItem, otherProps)), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    ref: inputRef,\n    type: \"text\",\n    onBlur: handleBlur,\n    onChange: handleChange,\n    value: userInput\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarBottom.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.js":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _ToolbarTop = _interopRequireDefault(__webpack_require__(/*! ./ToolbarTop.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _toolbarInfo = __webpack_require__(/*! ../../constant/toolbarInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js\");\nvar _toolbarTopUtils = __webpack_require__(/*! ./toolbarTopUtils */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\");\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./toolbarElement/DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar commands = _interopRequireWildcard(__webpack_require__(/*! ./command */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/command.js\"));\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * Spread表格工具栏头部，包含多个操作按钮\n */\nfunction ToolbarGroups(props) {\n  var dataPipeModel = props.dataPipeModel,\n    activeCell = props.activeCell;\n  var _useState = (0, _react.useState)((0, _toolbarTopUtils.initToolbarGroup)(_toolbarInfo.defultToolbarItem, _toolbarInfo.keyMap)),\n    _useState2 = _slicedToArray(_useState, 2),\n    toolbarData = _useState2[0],\n    setToolbarData = _useState2[1];\n  var _useState3 = (0, _react.useState)('default'),\n    _useState4 = _slicedToArray(_useState3, 2),\n    selectedGroup = _useState4[0],\n    setSelectedGroup = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    refresh = _useState6[0],\n    setRefresh = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    allowUnlock = _useState8[0],\n    setAllowUnlock = _useState8[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = _slicedToArray(_useState9, 2),\n    lockAll = _useState10[0],\n    setLockAll = _useState10[1];\n  var invokeControlMethodOnly = function invokeControlMethodOnly() {\n    return props.dispatch(_gridaction.invokeControlMethodOnly.apply(void 0, arguments));\n  };\n  var setToolbarGroup = function setToolbarGroup(_ref) {\n    var data = _ref.customGroupItems;\n    var newToolbarData = (0, _toolbarTopUtils.setToolbar)(_toConsumableArray(data), _toolbarInfo.keyMap);\n    setToolbarData(newToolbarData);\n    setRefresh(!refresh);\n  };\n  var addToolbarItems = function addToolbarItems(args) {\n    setToolbarData(function (data) {\n      var newToolbarData = (0, _toolbarTopUtils.addToolbar)(_toConsumableArray(data), _toolbarInfo.keyMap, args.data);\n      setRefresh(!refresh);\n      return newToolbarData;\n    });\n  };\n  var hideToolbarItems = function hideToolbarItems(args) {\n    setToolbarData(function (data) {\n      var newToolbarData = (0, _toolbarTopUtils.hideToolbar)(_toConsumableArray(data), args.hideItems);\n      setRefresh(!refresh);\n      return newToolbarData;\n    });\n  };\n  var lockToolbarGroup = function lockToolbarGroup() {\n    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    setLockAll(data.isLockAll);\n    setAllowUnlock(data.allowSingleUnlock);\n  };\n  var lockToolbarItem = function lockToolbarItem(args) {\n    setToolbarData(function (data) {\n      var newToolbarData = data.map(function (item) {\n        item.toolbarItems = (0, _toolbarTopUtils.lockToolbar)(item.toolbarItems, args.lockItems);\n        return item;\n      });\n      setRefresh(!refresh);\n      return newToolbarData;\n    });\n  };\n  var initLockItems = function initLockItems(spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    var _selections$ = selections[0],\n      colCount = _selections$.colCount,\n      rowCount = _selections$.rowCount;\n    // spread当前选中区域能否合并\n    lockToolbarItem({\n      lockItems: [{\n        name: 'MergeCells',\n        isLock: colCount === 1 && rowCount === 1\n      }]\n    });\n    // spread是否开启了过滤\n    if (!sheet.rowFilter()) {\n      lockToolbarItem({\n        lockItems: [{\n          name: 'SortAndFilter_ClearFilter',\n          isLock: true\n        }, {\n          name: 'SortAndFilter_ReapplyFilter',\n          isLock: true\n        }]\n      });\n    }\n    // spread是否开启了冻结行\n    lockToolbarItem({\n      lockItems: [{\n        name: 'FrozenSheets_UnfrozenSheets',\n        isLock: sheet.frozenRowCount() === 0 && sheet.frozenColumnCount() === 0\n      }]\n    });\n  };\n  (0, _react.useEffect)(function () {\n    var spread = dataPipeModel.getData('PostSpread');\n    initLockItems(spread); // 初始化需要锁定的item项目\n    dataPipeModel.registerCallback('SetToolbarGroups', setToolbarGroup);\n    dataPipeModel.registerCallback('AddToolbarItem', addToolbarItems);\n    dataPipeModel.registerCallback('HideToolbar', hideToolbarItems);\n    dataPipeModel.registerCallback('LockToolbar', lockToolbarGroup);\n    dataPipeModel.registerCallback('LockToolbarItem', lockToolbarItem);\n\n    // 是否可合并\n    dataPipeModel.registerCallback('UpdateMergeCell', function (data) {\n      var _data$spread;\n      var selections = (_data$spread = data.spread) === null || _data$spread === void 0 || (_data$spread = _data$spread.getActiveSheet()) === null || _data$spread === void 0 ? void 0 : _data$spread.getSelections();\n      var _selections$2 = selections[0],\n        colCount = _selections$2.colCount,\n        rowCount = _selections$2.rowCount;\n      lockToolbarItem({\n        lockItems: [{\n          name: 'MergeCells',\n          isLock: colCount === 1 && rowCount === 1\n        }]\n      });\n    });\n\n    // 添加管理器监听\n    spread.commandManager().addListener('undoAndRedo', function () {\n      setTimeout(function () {\n        // 需要加上定时器，不然获取到的不是最新的\n        lockToolbarItem({\n          lockItems: [{\n            name: 'undo',\n            isLock: !spread.undoManager().canUndo()\n          }, {\n            name: 'redo',\n            isLock: !spread.undoManager().canRedo()\n          }]\n        });\n      }, 0);\n    });\n    return function () {\n      // 移除管理器监听\n      spread.commandManager().removeListener('undoAndRedo');\n    };\n  }, []);\n  var getSpread = function getSpread() {\n    return dataPipeModel.getData('PostSpread');\n  };\n  (0, _react.useEffect)(function () {\n    var spread = getSpread();\n    var sheet = spread.getActiveSheet();\n    var cell = sheet.getCell(activeCell.r, activeCell.c);\n    var div = document.createElement('div');\n    div.style.font = cell.font();\n    var fontfamily = div.style.fontFamily;\n    if (fontfamily[0] === '\"') {\n      fontfamily = fontfamily.slice(1, -1);\n    }\n    var fontFamValue = _toolbarInfo.fontFamilyArray.indexOf(fontfamily);\n    if (fontFamValue !== -1) {\n      var args = {\n        type: 'FontChanged',\n        fontType: 5,\n        changeData: _toolbarInfo.fontFamilyArray[fontFamValue]\n      };\n      props.dataPipeModel.sendData(args);\n    }\n  }, []);\n  var handleClick = function handleClick(key) {\n    key !== selectedGroup && setSelectedGroup(key);\n  };\n  var toolbarItemChange = function toolbarItemChange(groupKey, data) {\n    var newToolbarData = _toConsumableArray(toolbarData);\n    var index = newToolbarData.findIndex(function (_ref2) {\n      var key = _ref2.key;\n      return key === groupKey;\n    });\n    if (index === -1) return;\n    newToolbarData[index].toolbarItems = data;\n    setToolbarData(newToolbarData);\n    setRefresh(!refresh);\n  };\n  var otherProps = {\n    allowUnlock: allowUnlock,\n    lockAll: lockAll,\n    activeCell: activeCell,\n    toolbarItemChange: toolbarItemChange,\n    refresh: refresh\n  };\n  var renderToolBarGroup = [];\n  var renderToolbarItems = [];\n  toolbarData.forEach(function (_ref3) {\n    var name = _ref3.name,\n      key = _ref3.key,\n      toolbarItems = _ref3.toolbarItems;\n    var selected = selectedGroup === key;\n    var selectedClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _ToolbarTop[\"default\"].toolbarGroupItems, true), _ToolbarTop[\"default\"].selected, selected));\n    renderToolBarGroup.push( /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: selectedClass,\n      key: key,\n      onClick: function onClick() {\n        handleClick(key);\n      }\n    }, name));\n    renderToolbarItems.push( /*#__PURE__*/_react[\"default\"].createElement(ToolbarContainer, _extends({\n      key: key,\n      groupKey: key,\n      toolbarItems: toolbarItems,\n      selected: selected,\n      invokeControlMethodOnly: invokeControlMethodOnly\n    }, props, otherProps)));\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])('kd-cq-spread-toolbar-top', _ToolbarTop[\"default\"].toolbar_top)\n  }, toolbarData.length > 1 ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])('kd-cq-toolbarGroup', _ToolbarTop[\"default\"].toolbarGroupContainer)\n  }, renderToolBarGroup) : null, renderToolbarItems);\n}\nfunction ToolbarContainer(props) {\n  var selected = props.selected,\n    activeCell = props.activeCell,\n    dataPipeModel = props.dataPipeModel,\n    refresh = props.refresh,\n    toolbarItems = props.toolbarItems,\n    model = props.model,\n    invokeControlMethodOnly = props.invokeControlMethodOnly,\n    allowUnlock = props.allowUnlock,\n    lockAll = props.lockAll,\n    toolbarItemChange = props.toolbarItemChange,\n    groupKey = props.groupKey;\n  // const [showTips, setShowTips] = useState()\n\n  var spreadRef = (0, _react.useRef)();\n  // const selectRef = useRef()\n\n  // useEffect(() => {\n  //   document.addEventListener('mousemove', handleMouseMove)\n  //   return () => {\n  //     document.removeEventListener('mousemove', handleMouseMove)\n  //   }\n  // }, [])\n\n  var getSpread = function getSpread() {\n    if (!spreadRef.current) {\n      spreadRef.current = dataPipeModel.getData('PostSpread');\n    }\n    return spreadRef.current;\n  };\n  (0, _react.useEffect)(function () {\n    var spread = getSpread();\n    var newData = _toConsumableArray(toolbarItems);\n    toolbarItems.forEach(function (toolbarItem) {\n      var _commands$commandName;\n      var key = toolbarItem.key;\n      var commandName = (0, _toolbarTopUtils.getCommandName)(key);\n      var activeCellChange = (_commands$commandName = commands[commandName]) === null || _commands$commandName === void 0 ? void 0 : _commands$commandName.activeCellChange;\n      if (activeCellChange) {\n        newData = activeCellChange(newData, _objectSpread(_objectSpread({}, props), {}, {\n          invokeControlMethodOnly: invokeControlMethodOnly\n        }), spread, activeCell) || newData;\n      }\n    });\n    toolbarItemChange(groupKey, newData);\n  }, [activeCell]);\n  var selectedClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _ToolbarTop[\"default\"].selectedGroup, selected), _ToolbarTop[\"default\"].toolbarTopContainer, true), 'kd-cq-spread-toolbar-item', true));\n  var handleClick = function handleClick(key, val) {\n    var _commands$commandName2;\n    var item = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n    var callback = item.callback,\n      invokeAction = item.invokeAction,\n      type = item.type;\n    if (callback && invokeAction) {\n      return invokeControlMethodOnly(model, callback, [{\n        invokemethod: invokeAction\n      }]);\n    }\n    var newData = _toConsumableArray(toolbarItems);\n    var spread = getSpread();\n    var commandName = (0, _toolbarTopUtils.getCommandName)(key);\n    var execute = (_commands$commandName2 = commands[commandName]) === null || _commands$commandName2 === void 0 ? void 0 : _commands$commandName2.execute;\n    if (execute) {\n      newData = execute(newData, key, val, _objectSpread(_objectSpread({}, props), {}, {\n        spread: spread,\n        invokeControlMethodOnly: invokeControlMethodOnly\n      }), type) || newData;\n      toolbarItemChange(groupKey, newData);\n    }\n  };\n  var updateData = function updateData(key, option) {\n    var _commands$key;\n    var newData = _toConsumableArray(toolbarItems);\n    var spread = getSpread();\n    var execute = (_commands$key = commands[key]) === null || _commands$key === void 0 ? void 0 : _commands$key.execute;\n    if (execute) {\n      newData = execute(newData, key, option, _objectSpread(_objectSpread({}, props), {}, {\n        spread: spread,\n        invokeControlMethodOnly: invokeControlMethodOnly\n      })) || newData;\n      toolbarItemChange(groupKey, newData);\n    }\n  };\n  var getItemIcon = function getItemIcon(toolbarItem) {\n    var icon = toolbarItem.icon,\n      dropDownType = toolbarItem.dropDownType,\n      items = toolbarItem.items;\n    if (icon) {\n      // 如果有默认图标（icon属性）则取默认图标\n      return icon;\n    } else if (dropDownType === 1) {\n      var _items$find;\n      // 否则取下拉项中的选中项\n      return (_items$find = items.find(function (item) {\n        return item.select;\n      })) === null || _items$find === void 0 ? void 0 : _items$find.icon;\n    }\n  };\n\n  // const handleMouseMove = (e) => {\n  //   if (!selectRef.current?.contains(e.target)) {\n  //     setShowTips(false)\n  //   }\n  // }\n\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: selectedClass\n  }, toolbarItems.map(function (toolbarItem) {\n    var key = toolbarItem.key,\n      btnType = toolbarItem.btnType,\n      onlyComponent = toolbarItem.onlyComponent,\n      Component = toolbarItem.Component,\n      _toolbarItem$dropDown = toolbarItem.dropDownType,\n      dropDownType = _toolbarItem$dropDown === void 0 ? 0 : _toolbarItem$dropDown,\n      isSelect = toolbarItem.select,\n      isLock = toolbarItem.isLock,\n      isHide = toolbarItem.isHide;\n    var icon = getItemIcon(toolbarItem);\n    if (isHide) return false;\n    /**\n      * 按钮的锁定由isLock(单个锁定)与lockAll(整体锁定)共同控制，一个为真锁定就生效；\n      * 但lockAll为true时，如果allowUnlock为真且isLock值为零，那么锁定无效；\n      */\n    var locked = isLock || lockAll && !(allowUnlock && isLock === 0);\n    if (key === 'Separator') return /*#__PURE__*/_react[\"default\"].createElement(Component, {\n      style: {\n        marginBottom: 8\n      }\n    });\n    if (onlyComponent) return /*#__PURE__*/_react[\"default\"].createElement(Component, _extends({}, props, {\n      invokeControlMethodOnly: invokeControlMethodOnly,\n      isLock: locked\n    }));\n    return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n      key: key,\n      btnKey: key,\n      mainIconClass: icon,\n      onClick: handleClick,\n      dropDownType: dropDownType,\n      btnType: btnType,\n      select: isSelect,\n      updateData: updateData,\n      dataPipeModel: dataPipeModel,\n      model: model\n    }, toolbarItem, {\n      isLock: locked,\n      invokeControlMethodOnly: invokeControlMethodOnly\n    }));\n  }));\n}\nvar _default = exports[\"default\"] = ToolbarGroups;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/command.js":
/*!*********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/command.js ***!
  \*********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.undo = exports.textAlignRight = exports.textAlignLeft = exports.textAlignCenter = exports.redo = exports.fontSize = exports.fontFamily = exports.borderStyle = exports.borderColor = exports.WordWrap = exports.VerticalAlign = exports.UploadFile = exports.TextIndent = exports.SwitchView = exports.SortAndFilter = exports.Setting = exports.Print = exports.MergeCells = exports.LockCells = exports.InsertRowAndCol = exports.FrozenSheets = exports.FontDecoration = exports.Find = exports.ExportFile = exports.Datavalueidation = exports.DataValidation = exports.ConditionalFormats = exports.ClearCells = exports.CheckFormula = exports.CellsBorder = exports.CellFormatThousand = exports.CellFormatPercentage = exports.CellFormatDecimalSub = exports.CellFormatDecimalAdd = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _toolbarInfo = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js */ \"./src/component/web/DataGrid/ReportGrid/constant/toolbarInfo.js\");\nvar _toolbarTopUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\");\nvar _formatInfo = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/constant/formatInfo.js */ \"./src/component/web/DataGrid/ReportGrid/constant/formatInfo.js\");\nvar _directiveHandle = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveHandle.js */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js\");\nvar _responseToolbarUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\");\nvar _common = __webpack_require__(/*! ../../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nvar undo = exports.undo = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'KDUndoManger',\n      data: 'undo'\n    });\n  }\n};\nvar redo = exports.redo = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'KDUndoManger',\n      data: 'redo'\n    });\n  }\n};\nvar ClearCells = exports.ClearCells = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'ClearCell',\n      clearType: value\n    });\n  }\n};\nvar fontFamily = exports.fontFamily = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'FontChanged',\n      fontType: 5,\n      changeData: value\n    };\n    props.dataPipeModel.sendData(args);\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === key;\n    });\n    currentitem.items.forEach(function (item) {\n      item.select = item.value === value;\n    });\n    return data;\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref) {\n    var r = _ref.r,\n      c = _ref.c;\n    var sheet = spread.getActiveSheet();\n    var cellStyle = sheet.getActualStyle(r, c);\n    var div = document.createElement('div');\n    div.style.font = cellStyle ? cellStyle.font : sheet.getCell(r, c).font();\n    var fontfamily = div.style.fontFamily;\n    if (fontfamily[0] === '\"') {\n      fontfamily = fontfamily.slice(1, -1);\n    }\n    // fontFamily支持显示标准不支持的字体\n    var newData = _toConsumableArray(data);\n    var index = newData.findIndex(function (toolbarItem, i) {\n      return toolbarItem.key === 'fontFamily';\n    });\n    newData[index].items.forEach(function (item) {\n      item.select = item.value === fontfamily;\n    });\n    newData[index].value = fontfamily;\n    return newData;\n  }\n};\nvar fontSize = exports.fontSize = {\n  execute: function execute(data, key, value, props) {\n    var _props$spread$serverS;\n    var fontUnit = (_props$spread$serverS = props.spread.serverSpreadParams) !== null && _props$spread$serverS !== void 0 && _props$spread$serverS.usePtFontSize ? 'pt' : 'px';\n    var args = {\n      type: 'FontChanged',\n      fontType: 4,\n      changeData: value + fontUnit\n    };\n    props.dataPipeModel.sendData(args);\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === key;\n    });\n    currentitem.items.forEach(function (item) {\n      item.select = item.value === value;\n    });\n    return data;\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref2) {\n    var _spread$serverSpreadP;\n    var r = _ref2.r,\n      c = _ref2.c;\n    var sheet = spread.getActiveSheet();\n    var cellStyle = sheet.getActualStyle(r, c);\n    var div = document.createElement('div');\n    div.style.font = cellStyle ? cellStyle.font : sheet.getCell(r, c).font();\n    var fontsize;\n    if ((_spread$serverSpreadP = spread.serverSpreadParams) !== null && _spread$serverSpreadP !== void 0 && _spread$serverSpreadP.usePtFontSize) {\n      // 目前只设置了px和pt单位，因此只考虑这两种单位的转换\n      fontsize = div.style.fontSize.slice(-2) === 'pt' ? parseInt(div.style.fontSize) : (0, _common.pxToPt)(parseInt(div.style.fontSize));\n    } else {\n      fontsize = div.style.fontSize.slice(-2) === 'px' ? parseInt(div.style.fontSize) : (0, _common.ptToPx)(parseInt(div.style.fontSize));\n    }\n    var newData = _toConsumableArray(data);\n    if (fontsize) {\n      var index = newData.findIndex(function (toolbarItem, i) {\n        return toolbarItem.key === 'fontSize';\n      });\n      newData[index].items.forEach(function (item) {\n        item.select = item.value === fontsize;\n      });\n      newData[index].value = fontsize;\n    }\n    return newData;\n  }\n};\nvar FontDecoration = exports.FontDecoration = {\n  execute: function execute(data, key, value, props) {\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === key;\n    }).items.find(function (item) {\n      return item.value === value;\n    });\n    currentitem.select = !currentitem.select;\n    if (currentitem.value === 1) {\n      var fontWeight = currentitem.select ? 'bold' : 'normal';\n      var args = {\n        type: 'FontChanged',\n        fontType: 3,\n        changeData: fontWeight\n      };\n      props.dataPipeModel.sendData(args);\n    }\n    if (currentitem.value === 2) {\n      var fontStyle = currentitem.select ? 'italic' : 'normal';\n      var _args = {\n        type: 'FontChanged',\n        fontType: 1,\n        changeData: fontStyle\n      };\n      props.dataPipeModel.sendData(_args);\n    }\n    if (currentitem.value === 3) {\n      var _args2 = {\n        type: 'UnderlineChanged',\n        underline: currentitem.select\n      };\n      props.dataPipeModel.sendData(_args2);\n    }\n    return data;\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref3) {\n    var r = _ref3.r,\n      c = _ref3.c;\n    var sheet = spread.getActiveSheet();\n    var cell = sheet.getCell(r, c);\n    var div = document.createElement('div');\n    div.style.font = cell.font();\n    var textDecoration = sheet.getCell(r, c).textDecoration();\n    var isWeight = div.style.fontWeight === 'bold' || div.style.fontWeight === '700';\n    var isItalic = div.style.fontStyle === 'italic';\n    var isUnderline = textDecoration === 1;\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === 'FontDecoration';\n    }).items;\n    data.currentitem = currentitem.map(function (item) {\n      if (item.value === 1) {\n        item.select = isWeight;\n      }\n      if (item.value === 2) {\n        item.select = isItalic;\n      }\n      if (item.value === 3) {\n        item.select = isUnderline;\n      }\n      return item;\n    });\n    return data;\n  }\n};\n// export const ForeAndBackColor = {\n//   execute: (data, key, value, props) => {\n//   }\n// }\nvar CellsBorder = exports.CellsBorder = {\n  execute: function execute(data, key, value, props, type) {\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === key;\n    });\n    if (type !== 'default') {\n      currentitem.items.forEach(function (item) {\n        item.select = item.value === value;\n        if (item.select) {\n          currentitem.icon = item.icon;\n        }\n      });\n    } else {\n      currentitem.items.forEach(function (item) {\n        if (item.select) {\n          value = item.value;\n        }\n      });\n    }\n    var color = currentitem.defaultColor;\n    var style = currentitem.defaultStyle;\n    var args = {\n      type: 'SetBorder',\n      borderType: value,\n      color: color,\n      style: style\n    };\n    props.dataPipeModel.sendData(args);\n    return data;\n  }\n};\nvar borderColor = exports.borderColor = {\n  execute: function execute(data, key, option, props) {\n    var btnKey = option.btnKey,\n      color = option.color;\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === btnKey;\n    });\n    currentitem.defaultColor = color;\n    var borderType = currentitem.items.find(function (item) {\n      return item.select === true;\n    }).value;\n    var style = currentitem.defaultStyle;\n    var args = {\n      type: 'SetBorder',\n      borderType: borderType,\n      color: color,\n      style: style\n    };\n    props.dataPipeModel.sendData(args);\n    return data;\n\n    // const args = { value, type: 'DataValidationClick' }\n    // props.dataPipeModl.sendData(args)\n  }\n};\nvar borderStyle = exports.borderStyle = {\n  execute: function execute(data, key, option, props) {\n    var btnKey = option.btnKey,\n      style = option.style;\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === btnKey;\n    });\n    currentitem.defaultStyle = style;\n    var borderType = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === 'CellsBorder';\n    }).items.find(function (item) {\n      return item.select === true;\n    }).value;\n    var color = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === 'CellsBorder';\n    }).defaultColor;\n    var args = {\n      type: 'SetBorder',\n      borderType: borderType,\n      color: color,\n      style: style\n    };\n    props.dataPipeModel.sendData(args);\n    return data;\n\n    // const args = { value, type: 'DataValidationClick' }\n    // props.dataPipeModl.sendData(args)\n  }\n};\nvar VerticalAlign = exports.VerticalAlign = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'VAlignChange',\n      vAlignType: value\n    };\n    props.dataPipeModel.sendData(args);\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref4) {\n    var r = _ref4.r,\n      c = _ref4.c;\n    var sheet = spread.getActiveSheet();\n    var vAlign = sheet.getCell(r, c).vAlign();\n    data = (0, _toolbarTopUtils.updateDataToolbar)(data, 'VerticalAlign_top', {\n      select: vAlign === 0\n    });\n    data = (0, _toolbarTopUtils.updateDataToolbar)(data, 'VerticalAlign_bottom', {\n      select: vAlign === 1\n    });\n    data = (0, _toolbarTopUtils.updateDataToolbar)(data, 'VerticalAlign_center', {\n      select: vAlign === 2\n    });\n    var currentitem = data.find(function (toolbarItem) {\n      return toolbarItem.key === 'VerticalAlign';\n    });\n    var subItem = currentitem.items.find(function (item) {\n      return item.select === true;\n    });\n    currentitem.text = subItem === null || subItem === void 0 ? void 0 : subItem.text;\n    currentitem.icon = subItem === null || subItem === void 0 ? void 0 : subItem.icon;\n    currentitem.title = subItem === null || subItem === void 0 ? void 0 : subItem.text;\n    return data;\n  }\n};\nvar TextIndent = exports.TextIndent = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'IndentChanged',\n      indentType: value\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar WordWrap = exports.WordWrap = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'WordWrap'\n    };\n    props.dataPipeModel.sendData(args);\n    // return updateDataToolbar(data, 'WordWrap', { select: !value })\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref5) {\n    var r = _ref5.r,\n      c = _ref5.c;\n    var sheet = spread.getActiveSheet();\n    var isWordWrap = sheet.getCell(r, c).wordWrap();\n    data = (0, _toolbarTopUtils.updateDataToolbar)(data, 'WordWrap', {\n      select: isWordWrap\n    });\n    return data;\n  }\n};\nvar MergeCells = exports.MergeCells = {\n  execute: function execute(data, key, value, props) {\n    var args = {};\n    args.type = 'MergeCell';\n    args.mergeType = value === false ? 1 : 2;\n    props.dataPipeModel.sendData(args);\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'MergeCells', {\n      select: !value\n    });\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref6) {\n    var _sheet$getSpans, _sheet$getSpans2;\n    var r = _ref6.r,\n      c = _ref6.c;\n    var sheet = spread.getActiveSheet();\n    var cc = (_sheet$getSpans = sheet.getSpans({\n      row: r,\n      col: c,\n      rowCount: 1,\n      colCount: 1\n    })) === null || _sheet$getSpans === void 0 || (_sheet$getSpans = _sheet$getSpans[0]) === null || _sheet$getSpans === void 0 ? void 0 : _sheet$getSpans.colCount;\n    var rc = (_sheet$getSpans2 = sheet.getSpans({\n      row: r,\n      col: c,\n      rowCount: 1,\n      colCount: 1\n    })) === null || _sheet$getSpans2 === void 0 || (_sheet$getSpans2 = _sheet$getSpans2[0]) === null || _sheet$getSpans2 === void 0 ? void 0 : _sheet$getSpans2.rowCount;\n    if (rc > 1 || cc > 1) {\n      return (0, _toolbarTopUtils.updateDataToolbar)(data, 'MergeCells', {\n        select: true\n      });\n    } else {\n      return (0, _toolbarTopUtils.updateDataToolbar)(data, 'MergeCells', {\n        select: false\n      });\n    }\n  }\n};\nvar FrozenSheets = exports.FrozenSheets = {\n  execute: function execute(data, key, value, props) {\n    var args = {};\n    args.type = 'FrozenSheet';\n    args.frozenType = value;\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar LockCells = exports.LockCells = {\n  execute: function execute(data, key, value, props) {\n    var args = {};\n    args.type = 'LockCell';\n    args.lockType = value === false ? 1 : 2;\n    props.dataPipeModel.sendData(args);\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'LockCells', {\n      select: !value\n    });\n  },\n  activeCellChange: function activeCellChange(data, props, spread) {\n    var sheet = spread.getActiveSheet();\n    var selections = sheet.getSelections();\n    var isLock;\n    selections.forEach(function (selection) {\n      var _convertRange = (0, _responseToolbarUtils.convertRange)(sheet, selection),\n        row = _convertRange.row,\n        col = _convertRange.col,\n        rowCount = _convertRange.rowCount,\n        colCount = _convertRange.colCount;\n      var range = sheet.getRange(row, col, rowCount, colCount);\n      isLock = range.locked();\n    });\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'LockCells', {\n      select: isLock\n    });\n  }\n};\nvar SwitchView = exports.SwitchView = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'KDSwitchView',\n      data: !value\n    });\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'SwitchView', {\n      select: !value\n    });\n  }\n};\nvar SortAndFilter = exports.SortAndFilter = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'SortAndFilter',\n      eventType: value\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar ConditionalFormats = exports.ConditionalFormats = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'ConditionalFormats'\n    });\n  }\n};\nvar Find = exports.Find = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'QueryBuilder'\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar InsertRowAndCol = exports.InsertRowAndCol = {\n  execute: function execute(data, key, value, props) {}\n};\nvar UploadFile = exports.UploadFile = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'UploadFile'\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar ExportFile = exports.ExportFile = {\n  execute: function execute(data, key, value, props) {\n    var getGlobalContext = function getGlobalContext() {\n      var type = 'PostContext';\n      return props.dataPipeModel.getData(type);\n    };\n    (0, _directiveHandle.exportExcelFile)({\n      fileName: 'spread'\n    }, getGlobalContext());\n  }\n};\nvar Datavalueidation = exports.Datavalueidation = {\n  execute: function execute(data, key, value, props) {}\n};\nvar CheckFormula = exports.CheckFormula = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'CheckFormulaClick'\n    });\n  }\n};\nvar Print = exports.Print = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'print'\n    });\n  }\n};\nvar Setting = exports.Setting = {\n  execute: function execute(data, key, value, props) {\n    props.dataPipeModel.sendData({\n      type: 'showSettingDialog'\n    });\n  }\n};\nvar textAlignLeft = exports.textAlignLeft = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'HAlignChanged',\n      hAlignType: 0\n    };\n    props.dataPipeModel.sendData(args);\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref7) {\n    var r = _ref7.r,\n      c = _ref7.c;\n    var sheet = spread.getActiveSheet();\n    var cell = sheet.getCell(r, c);\n    var hAlign = cell.hAlign();\n    var value = cell.value();\n    if (hAlign === 3) {\n      if ((0, _toolbarTopUtils.isNumber)(value)) {\n        hAlign = 2;\n      } else {\n        hAlign = 0;\n      }\n    }\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'textAlignLeft', {\n      select: hAlign === 0\n    });\n  }\n};\nvar textAlignCenter = exports.textAlignCenter = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'HAlignChanged',\n      hAlignType: 1\n    };\n    props.dataPipeModel.sendData(args);\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref8) {\n    var r = _ref8.r,\n      c = _ref8.c;\n    var sheet = spread.getActiveSheet();\n    var cell = sheet.getCell(r, c);\n    var hAlign = cell.hAlign();\n    var value = cell.value();\n    if (hAlign === 3) {\n      if ((0, _toolbarTopUtils.isNumber)(value)) {\n        hAlign = 2;\n      } else {\n        hAlign = 0;\n      }\n    }\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'textAlignCenter', {\n      select: hAlign === 1\n    });\n  }\n};\nvar textAlignRight = exports.textAlignRight = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      type: 'HAlignChanged',\n      hAlignType: 2\n    };\n    props.dataPipeModel.sendData(args);\n  },\n  activeCellChange: function activeCellChange(data, props, spread, _ref9) {\n    var r = _ref9.r,\n      c = _ref9.c;\n    var sheet = spread.getActiveSheet();\n    var cell = sheet.getCell(r, c);\n    var hAlign = cell.hAlign();\n    var value = cell.value();\n    if (hAlign === 3) {\n      if ((0, _toolbarTopUtils.isNumber)(value)) {\n        hAlign = 2;\n      } else {\n        hAlign = 0;\n      }\n    }\n    return (0, _toolbarTopUtils.updateDataToolbar)(data, 'textAlignRight', {\n      select: hAlign === 2\n    });\n  }\n};\nvar CellFormatPercentage = exports.CellFormatPercentage = {\n  execute: function execute(data, key, value, props) {\n    var formatCellItems = (0, _formatInfo.getCellFormatItems)();\n    var args = {\n      type: 'CellFormat',\n      format: formatCellItems.percentage\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar CellFormatThousand = exports.CellFormatThousand = {\n  execute: function execute(data, key, value, props) {\n    var formatCellItems = (0, _formatInfo.getCellFormatItems)();\n    var args = {\n      type: 'CellFormat',\n      format: formatCellItems.thousand\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar CellFormatDecimalAdd = exports.CellFormatDecimalAdd = {\n  execute: function execute(data, key, value, props) {\n    var formatCellItems = (0, _formatInfo.getCellFormatItems)();\n    var args = {\n      type: 'CellFormat',\n      format: formatCellItems.decimalAdd\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar CellFormatDecimalSub = exports.CellFormatDecimalSub = {\n  execute: function execute(data, key, value, props) {\n    var formatCellItems = (0, _formatInfo.getCellFormatItems)();\n    var args = {\n      type: 'CellFormat',\n      format: formatCellItems.decimalSub\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\nvar DataValidation = exports.DataValidation = {\n  execute: function execute(data, key, value, props) {\n    var args = {\n      value: value,\n      type: 'DataValidationClick'\n    };\n    props.dataPipeModel.sendData(args);\n  }\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/command.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Checkbox.jsx":
/*!*************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Checkbox.jsx ***!
  \*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Checkbox;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction Checkbox(props) {\n  var name = props.name,\n    checked = props.checked;\n  var inputEle = (0, _react.useRef)(null);\n  var handleClick = function handleClick() {\n    var value = Number(inputEle.current.value);\n    props.onChange(value);\n  };\n  var checkboxContainerClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].checkboxContainerClass, true), 'kd-hover-color', true));\n  var checkboxSpanClass = (0, _classnames2[\"default\"])({\n    kdfont: true,\n    'kdfont-fuxuankuangxuanzhong_yuan': checked,\n    'kdfont-fuxuankuangweixuanzhong_yuan': !checked,\n    'theme-fc': checked\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: checkboxContainerClass,\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: checkboxSpanClass\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    type: \"checkbox\",\n    ref: inputEle,\n    name: name,\n    value: props.value,\n    disabled: props.disabled\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"label\", null, props.children));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Checkbox.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/CheckboxGroup.jsx":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/CheckboxGroup.jsx ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = CheckboxGroup;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Checkbox = _interopRequireDefault(__webpack_require__(/*! ./Checkbox */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Checkbox.jsx\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction CheckboxGroup(props) {\n  var options = props.options,\n    name = props.name,\n    defaultValue = props.defaultValue,\n    selectAll = props.selectAll;\n  var _useState = (0, _react.useState)(defaultValue),\n    _useState2 = _slicedToArray(_useState, 2),\n    selectItems = _useState2[0],\n    setSelectValue = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    checkAll = _useState4[0],\n    setCheckAll = _useState4[1];\n  var onChange = function onChange(value) {\n    if (value === -1) {\n      selectItems = selectItems.clear();\n      if (!checkAll) {\n        options.forEach(function (item, index) {\n          selectItems = selectItems.push(index);\n        });\n      }\n      setCheckAll(!checkAll);\n    } else {\n      var index = selectItems.indexOf(value);\n      if (index === -1) {\n        selectItems = selectItems.push(value);\n      } else {\n        selectItems = selectItems.splice(index, 1);\n      }\n      setCheckAll(selectItems.size === options.length);\n    }\n    setSelectValue(selectItems);\n    props.onChange(selectItems);\n  };\n  (0, _react.useEffect)(function () {\n    selectAll && onChange(-1);\n  }, [selectAll]);\n  var checkboxs = options && options.map(function (option, index) {\n    var value = option.value,\n      label = option.label;\n    var checked = selectItems.includes(index);\n    return /*#__PURE__*/_react[\"default\"].createElement(_Checkbox[\"default\"], {\n      key: value,\n      name: name,\n      value: option.value,\n      checked: checked,\n      onChange: onChange\n    }, label);\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_Checkbox[\"default\"], {\n    name: name,\n    value: -1,\n    onChange: onChange,\n    checked: checkAll\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: \"theme-fc\"\n  }, \"\\u5168\\u9009\")), checkboxs);\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/CheckboxGroup.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Dialog;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _classnames5 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _useDialogDrag = _interopRequireDefault(__webpack_require__(/*! @/component/common/useDialogDrag.js */ \"./src/component/common/useDialogDrag.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction Dialog(props) {\n  var okClass = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].btn, true), _dialogElement[\"default\"].ok, true));\n  var cancelClass = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].btn, true), _dialogElement[\"default\"].cancel, true));\n  var headerClass = (0, _classnames5[\"default\"])(_defineProperty({\n    'kd-cq-modal-header': true\n  }, _dialogElement[\"default\"].header, true));\n  var closeIcon = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({\n    'kdfont kdfont-guanbiyulan': true\n  }, _dialogElement[\"default\"].closeIcon, true), 'kd-hover-color', true));\n  var _useDrag = (0, _useDialogDrag[\"default\"])({\n      dialogWidth: 460\n    }),\n    _useDrag2 = _slicedToArray(_useDrag, 1),\n    setDragRef = _useDrag2[0];\n  return /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].dialogContainer,\n    style: props.style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames5[\"default\"])('kd-cq-modal', 'kd-cq-spread-modal', _dialogElement[\"default\"].dialogContent),\n    style: props.dialogContentStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: headerClass,\n    ref: setDragRef\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, props.title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: closeIcon,\n    onClick: props.closeClick\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames5[\"default\"])('kd-cq-modal-body', _dialogElement[\"default\"].center)\n  }, props.children), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames5[\"default\"])('kd-cq-modal-footer', _dialogElement[\"default\"].bottom)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: cancelClass,\n    onClick: props.closeClick\n  }, (0, _intlApi.getLangMsg)('spread.key0055')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: okClass,\n    onClick: props.confirmClick\n  }, (0, _intlApi.getLangMsg)('spread.key0056'))))), document.body);\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/DisplayBox.js":
/*!**************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/DisplayBox.js ***!
  \**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 展示所选单元格格式的效果\n * by kechuang\n */\nvar DisplayBox = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(DisplayBox, _React$Component);\n  function DisplayBox() {\n    _classCallCheck(this, DisplayBox);\n    return _callSuper(this, DisplayBox, arguments);\n  }\n  _createClass(DisplayBox, [{\n    key: \"render\",\n    value: function render() {\n      var _this$props = this.props,\n        activeCell = _this$props.activeCell,\n        spread = _this$props.spread,\n        formatter = _this$props.formatter;\n      var value = spread.getActiveSheet().getValue(activeCell.r, activeCell.c);\n      var text = formatter.format(value);\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].displayBox\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].title\n      }, (0, _intlApi.getLangMsg)('spread.key0087')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].content\n      }, text));\n    }\n  }]);\n  return DisplayBox;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/DisplayBox.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckbox.jsx":
/*!*****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckbox.jsx ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = FindCheckbox;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../../toolbar/spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _Switch = _interopRequireDefault(__webpack_require__(/*! ../../../../../base/Switch */ \"./src/component/web/base/Switch.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction FindCheckbox(props) {\n  var name = props.name,\n    onChange = props.onChange,\n    defaultData = props.defaultData;\n  var defaultChecked;\n  for (var key in defaultData) {\n    if (key === name) {\n      defaultChecked = defaultData[key];\n    }\n  }\n  var defaultStyle = {\n    justifyContent: 'flex-end',\n    backgroundColor: '#5582F3',\n    display: 'flex',\n    cursor: 'pointer'\n  };\n  var _useState = (0, _react.useState)(defaultChecked),\n    _useState2 = _slicedToArray(_useState, 2),\n    checked = _useState2[0],\n    setChecked = _useState2[1];\n  var _useState3 = (0, _react.useState)(null),\n    _useState4 = _slicedToArray(_useState3, 2),\n    style = _useState4[0],\n    setStyle = _useState4[1];\n  var handleClick = function handleClick() {\n    setChecked(!checked);\n    onChange(name);\n    if (style) {\n      setStyle(null);\n    } else {\n      setStyle(defaultStyle);\n    }\n  };\n  var switchOpen = (0, _classnames2[\"default\"])(_defineProperty({\n    'theme switch-open': checked,\n    'theme switch-hover': !checked,\n    'theme switch-disabled': checked\n  }, _spreadToolbar[\"default\"][\"switch\"], true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].checkboxContainerClass\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _spreadToolbar[\"default\"].checkboxTitle\n  }, props.children), /*#__PURE__*/_react[\"default\"].createElement(_Switch[\"default\"], {\n    size: 3,\n    className: switchOpen,\n    style: style,\n    onClick: handleClick\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckbox.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckboxGroup.jsx":
/*!**********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckboxGroup.jsx ***!
  \**********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = FindCheckboxGroup;\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _FindCheckbox = _interopRequireDefault(__webpack_require__(/*! ./FindCheckbox */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckbox.jsx\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction FindCheckboxGroup(props) {\n  var items = props.items,\n    handleCheckbox = props.handleCheckbox,\n    defaultData = props.defaultData;\n  return items.map(function (item) {\n    var name = item.name,\n      label = item.label;\n    return /*#__PURE__*/_react[\"default\"].createElement(_FindCheckbox[\"default\"], {\n      key: name,\n      name: name,\n      value: name,\n      onChange: handleCheckbox,\n      defaultData: defaultData\n    }, label);\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckboxGroup.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelect.jsx":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelect.jsx ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = FindSelect;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../../toolbar/spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _Select = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/Select */ \"./src/component/web/base/Select.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import Select, { Option } from 'rc-select'\nfunction FindSelect(props) {\n  var propValueList = props.propValueList,\n    title = props.title,\n    name = props.name,\n    SelectValue = props.SelectValue,\n    defaultData = props.defaultData;\n  var defaultSelected;\n  for (var key in defaultData) {\n    if (key === name) {\n      defaultSelected = defaultData[key];\n    }\n  }\n  var _useState = (0, _react.useState)(defaultSelected),\n    _useState2 = _slicedToArray(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var choose = function choose(value) {\n    console.log(value);\n    setValue(value);\n    SelectValue(name, value);\n  };\n  var findSelect = (0, _classnames3[\"default\"])(_defineProperty({}, _spreadToolbar[\"default\"].findSelect, true));\n  var findSelectTitle = (0, _classnames3[\"default\"])(_defineProperty({}, _spreadToolbar[\"default\"].findSelectTitle, true));\n  var style = {\n    width: '80%',\n    backgroundColor: '#ffffff',\n    color: '#333333',\n    borderBottom: '1px solid #c1c1c1',\n    marginTop: '1px',\n    marginBottom: '10px'\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: findSelect\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: findSelectTitle\n  }, title), /*#__PURE__*/_react[\"default\"].createElement(_Select[\"default\"], {\n    className: \"kd-cq-select\",\n    required: true,\n    showFilter: false,\n    style: style,\n    items: propValueList,\n    value: value,\n    onChange: function onChange(value) {\n      return choose(value);\n    }\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelect.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelectGroup.jsx":
/*!********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelectGroup.jsx ***!
  \********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = FindSelectGroup;\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _FindSelect = _interopRequireDefault(__webpack_require__(/*! ./FindSelect */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelect.jsx\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction FindSelectGroup(props) {\n  var items = props.items,\n    handleSelectValue = props.handleSelectValue,\n    defaultData = props.defaultData,\n    getSelectValue = props.getSelectValue;\n  return items.map(function (item) {\n    return /*#__PURE__*/_react[\"default\"].createElement(_FindSelect[\"default\"], {\n      key: item.name,\n      getSelectValue: getSelectValue,\n      propValueList: item.data,\n      SelectValue: handleSelectValue,\n      name: item.name,\n      title: item.title,\n      defaultData: defaultData\n    });\n  });\n  // return <FindSelect />\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelectGroup.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/ListBox.js":
/*!***********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/ListBox.js ***!
  \***********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * listBox组件\n * by kechuang\n */\nvar ListBox = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(ListBox, _React$Component);\n  function ListBox(props) {\n    var _this;\n    _classCallCheck(this, ListBox);\n    _this = _callSuper(this, ListBox, [props]);\n    _this.state = {\n      activeKey: props.activeItem\n    };\n    _this.renderItems = _this.renderItems.bind(_assertThisInitialized(_this));\n    _this.setActiveItem = _this.setActiveItem.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(ListBox, [{\n    key: \"renderItems\",\n    value: function renderItems() {\n      var _this2 = this;\n      var items = this.props.items;\n      var itemComs = items.map(function (item, index) {\n        return /*#__PURE__*/_react[\"default\"].createElement(ListItem, _extends({\n          key: index,\n          setActiveItem: _this2.setActiveItem,\n          text: item.text,\n          itemKey: item.key,\n          activeKey: _this2.state.activeKey\n        }, _this2.props));\n      });\n      return itemComs;\n    }\n  }, {\n    key: \"setActiveItem\",\n    value: function setActiveItem(index) {\n      var _this3 = this;\n      this.setState({\n        activeKey: index\n      }, function () {\n        _this3.props.selectType(index);\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].listBoxContainer\n      }, this.renderItems());\n    }\n  }]);\n  return ListBox;\n}(_react[\"default\"].Component);\nvar ListItem = /*#__PURE__*/function (_React$Component2) {\n  _inherits(ListItem, _React$Component2);\n  function ListItem(props) {\n    var _this4;\n    _classCallCheck(this, ListItem);\n    _this4 = _callSuper(this, ListItem, [props]);\n    _this4.handleClick = _this4.handleClick.bind(_assertThisInitialized(_this4));\n    return _this4;\n  }\n  _createClass(ListItem, [{\n    key: \"handleClick\",\n    value: function handleClick(_ref) {\n      var key = _ref.key;\n      this.props.setActiveItem(key || this.props.itemKey);\n    }\n  }, {\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var selectCellFormat = this.props.selectCellFormat;\n      selectCellFormat && selectCellFormat(this.handleClick);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$props = this.props,\n        text = _this$props.text,\n        activeKey = _this$props.activeKey,\n        itemKey = _this$props.itemKey;\n      var itemClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].boxItem, true), 'kd-button', activeKey === itemKey), 'kd-hover', true));\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: itemClass,\n        onClick: this.handleClick\n      }, text);\n    }\n  }]);\n  return ListItem;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/ListBox.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Radio.jsx":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Radio.jsx ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Radio;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction Radio(props) {\n  var checked = props.checked;\n  var inputEle = (0, _react.useRef)(null);\n  var handleClick = function handleClick() {\n    var value = Number(inputEle.current.value);\n    props.onChange(value);\n  };\n  var radioContainerClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].radioContainer, true), 'kd-hover-color', true));\n  var radioSpanClass = (0, _classnames2[\"default\"])({\n    kdfont: true,\n    'kdfont-fuxuankuangxuanzhong_yuan': checked,\n    'kdfont-fuxuankuangweixuanzhong_yuan': !checked,\n    'theme-fc': checked\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: radioContainerClass,\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: radioSpanClass\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    type: \"radio\",\n    ref: inputEle,\n    name: props.name,\n    value: props.value,\n    disabled: props.disabled\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"label\", null, props.children));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Radio.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/RadioGroup.jsx":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/RadioGroup.jsx ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = RadioGroup;\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Radio = _interopRequireDefault(__webpack_require__(/*! ./Radio */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Radio.jsx\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction RadioGroup(props) {\n  var options = props.options,\n    name = props.name,\n    defaultValue = props.defaultValue;\n  var _useState = (0, _react.useState)(defaultValue),\n    _useState2 = _slicedToArray(_useState, 2),\n    selectValue = _useState2[0],\n    setSelectValue = _useState2[1];\n  var onChange = function onChange(value) {\n    setSelectValue(value);\n    props.onChange(value);\n  };\n  var radios = options && options.map(function (option) {\n    var value = option.value,\n      label = option.label;\n    var checked = value === selectValue;\n    return /*#__PURE__*/_react[\"default\"].createElement(_Radio[\"default\"], {\n      key: value,\n      name: name,\n      value: option.value,\n      checked: checked,\n      onChange: onChange\n    }, label);\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, radios);\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/RadioGroup.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SidebarHeader.js":
/*!*****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SidebarHeader.js ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SidebarHeader;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction SidebarHeader(_ref) {\n  var title = _ref.title,\n    onClose = _ref.onClose,\n    style = _ref.style;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].header_title,\n    style: style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, title), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames[\"default\"])('kdfont kdfont-guanbiyulan kd-hover-color', _dialogElement[\"default\"].close_icon),\n    onClick: onClose\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SidebarHeader.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckbox.js":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckbox.js ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * spread自己封装的checkbox\n * by kechuang\n */\nvar SpreadCheckbox = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(SpreadCheckbox, _React$Component);\n  function SpreadCheckbox(props) {\n    var _this;\n    _classCallCheck(this, SpreadCheckbox);\n    _this = _callSuper(this, SpreadCheckbox, [props]);\n    _this.state = {\n      value: [undefined, '', null].includes(props.defaultValue) ? props.data.value : props.defaultValue\n    };\n    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(SpreadCheckbox, [{\n    key: \"handleChange\",\n    value: function handleChange() {\n      var _this2 = this;\n      if (this.props.disabled) return;\n      if (this.props.disableClick && this.props.disableClick()) return;\n      this.setState({\n        value: !this.state.value\n      }, function () {\n        _this2.props.updateFormat(_this2.props.formatKey, _this2.state.value);\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$props = this.props,\n        data = _this$props.data,\n        style = _this$props.style,\n        checkBoxStyle = _this$props.checkBoxStyle,\n        itemStyle = _this$props.itemStyle;\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: (0, _classnames[\"default\"])(_dialogElement[\"default\"].item, this.props.itemClass),\n        style: style || itemStyle\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].itemTitle\n      }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].itemCheck\n      }, /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Checkbox, {\n        className: (0, _classnames[\"default\"])('kd-cq-checkbox', _dialogElement[\"default\"].checkbox),\n        style: checkBoxStyle,\n        disabled: this.props.disabled,\n        checked: this.state.value,\n        onChange: this.handleChange\n      }, data.title)));\n    }\n  }]);\n  return SpreadCheckbox;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckbox.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckboxGroup.js":
/*!***********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckboxGroup.js ***!
  \***********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadCheckboxGroup;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _excluded = [\"defaultValue\", \"data\", \"updateFormat\", \"itemStyle\", \"borderType\", \"hideTitle\"];\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction SpreadCheckboxGroup(props) {\n  var handleChange = function handleChange(value) {\n    props.updateFormat(props.formatKey, value);\n  };\n  var defaultValue = props.defaultValue,\n    data = props.data,\n    updateFormat = props.updateFormat,\n    itemStyle = props.itemStyle,\n    borderType = props.borderType,\n    hideTitle = props.hideTitle,\n    others = _objectWithoutProperties(props, _excluded);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].item,\n    style: itemStyle\n  }, !hideTitle && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_dialogElement[\"default\"].itemTitle, _dialogElement[\"default\"].item_group),\n    style: {\n      flexGrow: 1\n    }\n  }, data.title), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Checkbox.Group, _extends({\n    className: (0, _classnames[\"default\"])('kd-cq-checkbox', _dialogElement[\"default\"].checkbox_group),\n    onChange: handleChange,\n    defaultValue: defaultValue,\n    checkboxType: \"default\",\n    options: data.value\n  }, others)));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckboxGroup.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputNumber.js":
/*!*********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputNumber.js ***!
  \*********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadInputNumber;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _InputNumber = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/InputNumber */ \"./src/component/web/base/InputNumber.jsx\"));\nvar _excluded = [\"defaultValue\", \"data\", \"updateFormat\", \"itemStyle\", \"borderType\", \"hideTitle\", \"showWarn\", \"required\"];\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction SpreadInputNumber(props) {\n  var _props$defaultValue;\n  var _useState = (0, _react.useState)((_props$defaultValue = props.defaultValue) !== null && _props$defaultValue !== void 0 ? _props$defaultValue : props.value),\n    _useState2 = _slicedToArray(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var inputRef = (0, _react.useRef)();\n  var handleBlur = function handleBlur(e) {\n    var val = e.target.value;\n    if (val === '') {\n      if (required) return;\n      props.updateFormat(props.formatKey, val);\n    } else {\n      props.updateFormat(props.formatKey, Number(val));\n    }\n    setValue(val);\n  };\n  var handleClick = function handleClick() {\n    var _inputRef$current;\n    (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || (_inputRef$current = _inputRef$current.inputDom) === null || _inputRef$current === void 0 || _inputRef$current.focus();\n  };\n  var style = {\n    width: props.width || '130px',\n    backgroundColor: '#ffffff',\n    color: '#333333'\n  };\n  var defaultValue = props.defaultValue,\n    data = props.data,\n    updateFormat = props.updateFormat,\n    itemStyle = props.itemStyle,\n    _props$borderType = props.borderType,\n    borderType = _props$borderType === void 0 ? 'underline' : _props$borderType,\n    hideTitle = props.hideTitle,\n    showWarn = props.showWarn,\n    required = props.required,\n    others = _objectWithoutProperties(props, _excluded);\n  var isWarn = showWarn && required && !value;\n  var itemInput = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].itemSelect, true), _dialogElement[\"default\"][borderType], true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].item, true), _dialogElement[\"default\"].warn_border, isWarn)),\n    style: itemStyle\n  }, !hideTitle && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].itemTitle,\n    style: {\n      flexGrow: 1\n    }\n  }, data.title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: itemInput,\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(_InputNumber[\"default\"], _extends({\n    isSelect: false,\n    ref: inputRef,\n    className: \"kd-cq-input\",\n    style: style,\n    value: value,\n    onBlur: handleBlur\n  }, others)), data.unit ? /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames3[\"default\"])('kd-cq-spread-suffix', _dialogElement[\"default\"].unit)\n  }, data.unit) : null), isWarn && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _dialogElement[\"default\"].warn_text\n  }, (0, _intlApi.getLangMsg)('spread.key0411')));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputNumber.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputText.js":
/*!*******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputText.js ***!
  \*******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadInputText;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction SpreadInputText(props) {\n  var _ref, _props$value;\n  var _useState = (0, _react.useState)((_ref = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.defaultValue) !== null && _ref !== void 0 ? _ref : ''),\n    _useState2 = _slicedToArray(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  (0, _react.useEffect)(function () {\n    setValue(props.value);\n  }, [props.value]);\n  var onChange = function onChange(e) {\n    setValue(e.target.value);\n    props.updateFormat(props.formatKey, e.target.value);\n  };\n  var data = props.data,\n    disabled = props.disabled,\n    borderType = props.borderType,\n    placeholder = props.placeholder,\n    showWarn = props.showWarn,\n    required = props.required;\n  var isWarn = showWarn && required && !value;\n  var style = Object.assign({\n    backgroundColor: '#ffffff',\n    color: '#333333',\n    height: 28\n  }, props.style || {});\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].item, true), _dialogElement[\"default\"].warn_border, isWarn))\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].itemTitle,\n    style: {\n      flexGrow: 1\n    }\n  }, data.title), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Input, {\n    borderType: borderType,\n    disabled: disabled,\n    style: style,\n    placeholder: placeholder,\n    className: \"kd-cq-input\",\n    value: value,\n    onChange: onChange\n  }), isWarn && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _dialogElement[\"default\"].warn_text\n  }, (0, _intlApi.getLangMsg)('spread.key0411')));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputText.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputTextArea.js":
/*!***********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputTextArea.js ***!
  \***********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadInputTextArea;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _BaseComponents = __webpack_require__(/*! @/component/web/base/BaseComponents */ \"./src/component/web/base/BaseComponents/index.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n// 先单独放到一个文件里，后续会把input相关的放到一起\nfunction SpreadInputTextArea(props) {\n  var _props$value;\n  var _useState = (0, _react.useState)((_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.defaultValue),\n    _useState2 = _slicedToArray(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var handleBlur = function handleBlur(e) {\n    setValue(e.target.value);\n    props.updateFormat(props.formatKey, e.target.value);\n  };\n  var onChange = function onChange(e) {\n    setValue(e.target.value);\n  };\n  var style = Object.assign({\n    backgroundColor: '#ffffff',\n    color: '#333333'\n  }, props.style || {});\n  var data = props.data;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].textItem\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].itemTitle,\n    style: {\n      flexGrow: 1\n    }\n  }, data.title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].itemTextArea\n  }, /*#__PURE__*/_react[\"default\"].createElement(_BaseComponents.TextArea, {\n    className: \"kd-cq-input\",\n    style: style,\n    value: value,\n    onBlur: handleBlur,\n    onChange: onChange\n  })));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputTextArea.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRadio.jsx":
/*!****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRadio.jsx ***!
  \****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadRadio;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction SpreadRadio(props) {\n  var _ref, _props$value;\n  var data = props.data,\n    required = props.required,\n    disabled = props.disabled,\n    optionType = props.optionType;\n  var _useState = (0, _react.useState)((_ref = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.defaultValue) !== null && _ref !== void 0 ? _ref : ''),\n    _useState2 = _slicedToArray(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var handleChange = function handleChange(event) {\n    var changeValue = parseInt(event.target.value);\n    if (value !== changeValue) {\n      setValue(changeValue);\n      props.updateFormat(props.formatKey, changeValue);\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_dialogElement[\"default\"].item, props.itemClass),\n    style: props.itemStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_dialogElement[\"default\"].itemTitle, _dialogElement[\"default\"].item_group)\n  }, data.title), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Radio.Group, {\n    disabled: disabled,\n    required: required,\n    className: (0, _classnames[\"default\"])('kd-cq-radio', _dialogElement[\"default\"].radio_group),\n    options: data.value,\n    onChange: handleChange,\n    value: value,\n    optionType: optionType\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRadio.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRangeSelect.js":
/*!*********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRangeSelect.js ***!
  \*********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadRangeSelect;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _common = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/common.js */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction SpreadRangeSelect(_ref) {\n  var data = _ref.data,\n    defaultValue = _ref.defaultValue,\n    required = _ref.required,\n    showWarn = _ref.showWarn,\n    updateFormat = _ref.updateFormat,\n    dataPipeModel = _ref.dataPipeModel,\n    modalTitle = _ref.modalTitle,\n    _ref$rangeArea = _ref.rangeArea,\n    rangeArea = _ref$rangeArea === void 0 ? 'range' : _ref$rangeArea,\n    multiple = _ref.multiple;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = _slicedToArray(_useState3, 2),\n    selectedRange = _useState4[0],\n    setSelecetdRange = _useState4[1]; // 弹窗选中的区域\n  var _useState5 = (0, _react.useState)(defaultValue),\n    _useState6 = _slicedToArray(_useState5, 2),\n    value = _useState6[0],\n    setValue = _useState6[1]; // 打印固定区域\n\n  var handleSelectionChange = function handleSelectionChange(data) {\n    var activeSelection;\n    if (visible) {\n      if (multiple) {\n        activeSelection = data.selections.map(function (selection) {\n          return (0, _common.explainActiveCell)(data.sheet, selection);\n        }).join(',');\n      } else {\n        activeSelection = (0, _common.explainActiveCell)(data.sheet, data.selections[0]);\n      }\n    }\n    setSelecetdRange(activeSelection);\n  };\n  (0, _react.useEffect)(function () {\n    var removeListener = dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n    return function () {\n      removeListener();\n    };\n  }, [visible]);\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var handleClick = function handleClick() {\n    var spread = getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    switch (rangeArea) {\n      case 'range':\n        break;\n      case 'row':\n        sheet.selectionUnit(_spreadSheets[\"default\"].Spread.Sheets.SelectionUnit.row);\n        sheet.selectionPolicy(_spreadSheets[\"default\"].Spread.Sheets.SelectionPolicy.range);\n        break;\n      case 'col':\n        sheet.selectionUnit(_spreadSheets[\"default\"].Spread.Sheets.SelectionUnit.column);\n        sheet.selectionPolicy(_spreadSheets[\"default\"].Spread.Sheets.SelectionPolicy.range);\n        break;\n      default:\n        break;\n    }\n    setVisible(true);\n  };\n  var handleCloseModel = function handleCloseModel(visible) {\n    var spread = getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    sheet.selectionUnit(_spreadSheets[\"default\"].Spread.Sheets.SelectionUnit.cell);\n    sheet.selectionPolicy(_spreadSheets[\"default\"].Spread.Sheets.SelectionPolicy.multiRange);\n    setVisible(visible);\n    setSelecetdRange('');\n  };\n  var handleConfirmClick = function handleConfirmClick() {\n    setValue(selectedRange);\n    updateFormat(data.key, selectedRange);\n    handleCloseModel();\n  };\n  var isWarn = showWarn && required && !value;\n  var placeholder = multiple && (0, _intlApi.getLangMsg)('spread.key0414');\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].item, true), _dialogElement[\"default\"].warn_border, isWarn)),\n    onClick: handleClick\n  }, data.title && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _dialogElement[\"default\"].itemTitle\n  }, data.title), inputRender(value), isWarn && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _dialogElement[\"default\"].warn_text\n  }, (0, _intlApi.getLangMsg)('spread.key0411'))), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Modal, {\n    className: \"kd-cq-modal kd-cq-spread-modal\",\n    bodyStyle: {\n      padding: '0 105px',\n      display: 'flex',\n      alignItems: 'center'\n    },\n    body: inputRender(selectedRange, placeholder),\n    title: modalTitle,\n    closable: true,\n    mask: false,\n    maskClosable: false,\n    height: 230,\n    width: 440,\n    onCancel: function onCancel() {\n      return handleCloseModel(false);\n    },\n    onOk: handleConfirmClick,\n    okText: (0, _intlApi.getLangMsg)('spread.key0056'),\n    cancelText: (0, _intlApi.getLangMsg)('spread.key0055'),\n    visible: visible,\n    cancelButtonProps: {\n      style: {\n        fontSize: 'inherit'\n      },\n      className: _dialogElement[\"default\"].button_color\n    },\n    okButtonProps: {\n      style: {\n        fontSize: 'inherit'\n      }\n    }\n  }));\n}\nvar inputRender = function inputRender(value, placeholder) {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_dialogElement[\"default\"].range_select_value, 'kd-cq-input')\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    title: value,\n    className: (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].no_value_color, !value), _dialogElement[\"default\"].range_input, true))\n  }, value || placeholder), /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-fanwei\"\n  }));\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRangeSelect.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadSelect.js":
/*!****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadSelect.js ***!
  \****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ./dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _Select = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/Select */ \"./src/component/web/base/Select.js\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _fieldConst = __webpack_require__(/*! @/constant/fieldConst */ \"./src/constant/fieldConst.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * spread表格封装的select\n * by kechuang\n */\nvar SpreadSelect = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(SpreadSelect, _React$Component);\n  function SpreadSelect(props) {\n    var _this;\n    _classCallCheck(this, SpreadSelect);\n    _this = _callSuper(this, SpreadSelect, [props]);\n    _this.state = {\n      value: props.defaultValue !== undefined ? props.defaultValue : props.formatKey === 'symbol' ? '￥' : ''\n    };\n    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(SpreadSelect, [{\n    key: \"handleChange\",\n    value: function handleChange(value) {\n      var _this2 = this;\n      if (this.state.value !== value) {\n        this.setState({\n          value: value\n        }, function () {\n          _this2.props.updateFormat(_this2.props.formatKey, value);\n        });\n      }\n    }\n  }, {\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var _this$props = this.props,\n        formatKey = _this$props.formatKey,\n        updateFormat = _this$props.updateFormat;\n      if (formatKey === 'symbol') {\n        updateFormat(formatKey, this.state.value);\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this3 = this;\n      var width = this.props.width || '200px';\n      var _this$props2 = this.props,\n        data = _this$props2.data,\n        required = _this$props2.required,\n        disabled = _this$props2.disabled,\n        _this$props2$borderTy = _this$props2.borderType,\n        borderType = _this$props2$borderTy === void 0 ? 'underline' : _this$props2$borderTy,\n        hideTitle = _this$props2.hideTitle,\n        dropdownClassName = _this$props2.dropdownClassName;\n      var style = {\n        width: width\n      };\n      if (disabled) {\n        Object.assign(style, {\n          color: ' #b2b2b2',\n          backgroundColor: ' #f5f5f5',\n          pointerEvents: 'none'\n        });\n      }\n      var itemSelect = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _dialogElement[\"default\"].itemSelect, true), _dialogElement[\"default\"].disabled, disabled));\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: (0, _classnames3[\"default\"])(_dialogElement[\"default\"].item, this.props.itemClass),\n        style: this.props.itemStyle\n      }, !hideTitle && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _dialogElement[\"default\"].itemTitle\n      }, data.title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: itemSelect,\n        style: {\n          padding: 0\n        }\n      }, /*#__PURE__*/_react[\"default\"].createElement(_Select[\"default\"], {\n        required: required,\n        dropdownClassName: (0, _classnames3[\"default\"])(_dialogElement[\"default\"].select_dropdown, dropdownClassName),\n        className: (0, _classnames3[\"default\"])(_dialogElement[\"default\"].select, 'kd-cq-select', _defineProperty({}, _dialogElement[\"default\"][borderType], true)),\n        showFilter: false,\n        style: style,\n        theme: \"default\",\n        items: data.value,\n        value: this.state.value,\n        tabIndex: 0,\n        onChange: function onChange(value) {\n          return _this3.handleChange(value);\n        },\n        panelAlign: \"bottom\"\n      })));\n    }\n  }]);\n  return SpreadSelect;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadSelect.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/index.js":
/*!*********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/index.js ***!
  \*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"DisplayBox\", ({\n  enumerable: true,\n  get: function get() {\n    return _DisplayBox[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ListBox\", ({\n  enumerable: true,\n  get: function get() {\n    return _ListBox[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SpreadCheckbox\", ({\n  enumerable: true,\n  get: function get() {\n    return _SpreadCheckbox[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SpreadInputNumber\", ({\n  enumerable: true,\n  get: function get() {\n    return _SpreadInputNumber[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SpreadInputText\", ({\n  enumerable: true,\n  get: function get() {\n    return _SpreadInputText[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SpreadInputTextArea\", ({\n  enumerable: true,\n  get: function get() {\n    return _SpreadInputTextArea[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SpreadSelect\", ({\n  enumerable: true,\n  get: function get() {\n    return _SpreadSelect[\"default\"];\n  }\n}));\nvar _ListBox = _interopRequireDefault(__webpack_require__(/*! ./ListBox.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/ListBox.js\"));\nvar _DisplayBox = _interopRequireDefault(__webpack_require__(/*! ./DisplayBox.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/DisplayBox.js\"));\nvar _SpreadSelect = _interopRequireDefault(__webpack_require__(/*! ./SpreadSelect.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadSelect.js\"));\nvar _SpreadCheckbox = _interopRequireDefault(__webpack_require__(/*! ./SpreadCheckbox.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckbox.js\"));\nvar _SpreadInputNumber = _interopRequireDefault(__webpack_require__(/*! ./SpreadInputNumber */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputNumber.js\"));\nvar _SpreadInputText = _interopRequireDefault(__webpack_require__(/*! ./SpreadInputText */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputText.js\"));\nvar _SpreadInputTextArea = _interopRequireDefault(__webpack_require__(/*! ./SpreadInputTextArea */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputTextArea.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/index.js":
/*!*******************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/index.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ./spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _ToolbarBottom = __webpack_require__(/*! ./ToolbarBottom */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarBottom.js\");\nvar _ToolbarTop = _interopRequireDefault(__webpack_require__(/*! ./ToolbarTop */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.js\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _CloseToolbarBtn = _interopRequireDefault(__webpack_require__(/*! ./CloseToolbarBtn */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/CloseToolbarBtn.js\"));\nvar _common = __webpack_require__(/*! ../../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * Spread表格工具栏入口\n */\nfunction Toolbar(props) {\n  var _useState = (0, _react.useState)({\n      r: 0,\n      c: 0\n    }),\n    _useState2 = _slicedToArray(_useState, 2),\n    activeCell = _useState2[0],\n    setActiveCell = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    activeCellValue = _useState4[0],\n    setActiveCellValue = _useState4[1];\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    activeSelection = _useState6[0],\n    setActiveSelection = _useState6[1];\n  var _useState7 = (0, _react.useState)(props.isClosed),\n    _useState8 = _slicedToArray(_useState7, 2),\n    isClosed = _useState8[0],\n    setClose = _useState8[1];\n  var spread = (0, _react.useRef)(null);\n  var handleColse = function handleColse(flag) {\n    spread.current = spread.current || props.dataPipeModel.getData('PostSpread');\n    setClose(flag);\n  };\n  (0, _react.useEffect)(function () {\n    var handleSelectionChange = function handleSelectionChange(data) {\n      var selections = data.selections;\n      var lastSelection = selections[selections.length - 1];\n      var row = lastSelection.row,\n        col = lastSelection.col,\n        rowCount = lastSelection.rowCount,\n        colCount = lastSelection.colCount;\n      // 这里的activecell可能获取的有点问题\n      var activeCell = {\n        r: lastSelection.row,\n        c: lastSelection.col\n      };\n      var sheet = props.dataPipeModel.getData('PostSheet');\n      var isDisabled = false; // 遍历选中的单元格，如果其中任一单元格被锁定，则都不可以设置公式\n      for (var r = row; r < row + rowCount; r++) {\n        if (isDisabled) break;\n        for (var c = col; c < col + colCount; c++) {\n          var _sheet$getCellType;\n          if (sheet.getCell(r, c).locked() || ((_sheet$getCellType = sheet.getCellType(r, c)) === null || _sheet$getCellType === void 0 || (_sheet$getCellType = _sheet$getCellType.cellType) === null || _sheet$getCellType === void 0 ? void 0 : _sheet$getCellType.typeName) === 'f7') {\n            isDisabled = true;\n            break;\n          }\n        }\n      }\n      props.dataPipeModel.sendData({\n        type: 'formulaBarNotInput',\n        isDisabled: isDisabled\n      });\n      var activeCellValue = sheet.getValue(activeCell.r, activeCell.c);\n      var activeCellFormula = sheet.getFormula(activeCell.r, activeCell.c);\n      if (activeCellFormula !== null) {\n        activeCellValue = '=' + activeCellFormula;\n      }\n      var activeSelection = (0, _common.explainActiveCell)(sheet, lastSelection);\n      setActiveCell(activeCell);\n      setActiveCellValue(activeCellValue);\n      setActiveSelection(activeSelection);\n    };\n    var getCellValueFromSpread = function getCellValueFromSpread(data) {\n      var value = data.value;\n      setActiveCellValue(value);\n    };\n    var closeToolbar = function closeToolbar(data) {\n      handleColse(true);\n    };\n    var dataPipeModel = props.dataPipeModel;\n    dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n    dataPipeModel.registerCallback('KeyboardDelete', getCellValueFromSpread);\n    dataPipeModel.registerCallback('CloseToolbar', closeToolbar);\n  }, []);\n  (0, _react.useLayoutEffect)(function () {\n    try {\n      spread.current && spread.current.refresh();\n    } catch (e) {\n      console.log(e);\n    }\n  }, [isClosed]);\n  var onSwitchCloseBtn = function onSwitchCloseBtn() {\n    handleColse(!isClosed);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])('kd-cq-spread-toolbar-container', _spreadToolbar[\"default\"].toolbarContainer)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: isClosed ? _spreadToolbar[\"default\"].hide : ''\n  }, /*#__PURE__*/_react[\"default\"].createElement(_ToolbarTop[\"default\"], _extends({}, props, {\n    activeCell: activeCell\n  })), /*#__PURE__*/_react[\"default\"].createElement(_ToolbarBottom.ToolbarBottom, _extends({}, props, {\n    activeSelection: activeSelection,\n    activeCellValue: activeCellValue,\n    activeCell: activeCell\n  }))), /*#__PURE__*/_react[\"default\"].createElement(_CloseToolbarBtn[\"default\"], _extends({}, props, {\n    isClosed: isClosed,\n    onClick: onSwitchCloseBtn\n  })));\n}\nvar _default = exports[\"default\"] = Toolbar;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.js":
/*!****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.js ***!
  \****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _CellsBorder = _interopRequireDefault(__webpack_require__(/*! ./CellsBorder.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.less\"));\nvar _classnames7 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _ColorPicker = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js */ \"./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js\"));\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nvar _SubMenu = _interopRequireDefault(__webpack_require__(/*! ./SubMenu */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.js\"));\nvar _borderInfo = __webpack_require__(/*! ../../../constant/borderInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/borderInfo.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar CellsBorderDropDownRende = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n  var updateData = props.updateData,\n    items = props.items,\n    userLocal = props.userLocal,\n    btnType = props.btnType,\n    btnKey = props.btnKey,\n    listClick = props.listClick,\n    mainIconClass = props.mainIconClass,\n    dataPipeModel = props.dataPipeModel,\n    _props$defaultColor = props.defaultColor,\n    defaultColor = _props$defaultColor === void 0 ? '#000000' : _props$defaultColor,\n    _props$baseColor = props.baseColor,\n    baseColor = _props$baseColor === void 0 ? '#000000' : _props$baseColor,\n    _props$defaultStyle = props.defaultStyle,\n    defaultStyle = _props$defaultStyle === void 0 ? 'thin' : _props$defaultStyle,\n    closeDropPanel = props.closeDropPanel,\n    className = props.className;\n  var isExistIcon = items.find(function (_ref) {\n    var icon = _ref.icon;\n    return icon;\n  });\n  var dropList = items.map(function (item, index) {\n    var icon = null;\n    if (isExistIcon) {\n      var iconStyle = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _CellsBorder[\"default\"].dropListLeft, true), item.icon, true), _CellsBorder[\"default\"].disable, item.disable));\n      icon = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: iconStyle\n      });\n    }\n    var dropListStyle = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _CellsBorder[\"default\"].dropList, true), 'kd-hover', !item.disable), _CellsBorder[\"default\"].disable, item.disable), 'theme select-selected', item.select));\n    if (item.hidden) return null;\n    return /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n      popperClassName: \"kd-cq-tooltip\",\n      placement: \"bottom\",\n      tip: item.tips || item.text,\n      key: index\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: dropListStyle,\n      onClick: function onClick(e) {\n        return listClick(item.value, item);\n      }\n    }, icon));\n  });\n  var _useState = (0, _react.useState)(defaultColor),\n    _useState2 = _slicedToArray(_useState, 2),\n    currentColor = _useState2[0],\n    setCurrentColor = _useState2[1];\n  var _useState3 = (0, _react.useState)(defaultStyle),\n    _useState4 = _slicedToArray(_useState3, 2),\n    currentStyle = _useState4[0],\n    setCurrentStyle = _useState4[1];\n  var selectColorClick = function selectColorClick(type, color, model) {\n    setCurrentColor(color);\n    updateData('borderColor', {\n      color: color,\n      btnKey: btnKey\n    });\n    if (model !== 'write') {\n      closeDropPanel();\n    }\n  };\n  var selectStyleClick = function selectStyleClick(e, style) {\n    setCurrentStyle(style);\n    updateData('borderStyle', {\n      style: style,\n      btnKey: btnKey\n    });\n    closeDropPanel();\n  };\n  var borderColor = (0, _react.useCallback)(function () {\n    var iconStyle = (0, _classnames7[\"default\"])(_defineProperty({\n      'iconcool biankuangyanse': true\n    }, _CellsBorder[\"default\"].icon, true));\n    var line = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty({}, _CellsBorder[\"default\"].line, true), 'kd-cq-color-edit-line', true));\n    var lineStyle = {\n      backgroundColor: currentColor\n    };\n    var menuName = /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: iconStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: line,\n      style: lineStyle\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _CellsBorder[\"default\"].text\n    }, (0, _intlApi.getLangMsg)('spread.key0321')));\n    var menuEle = /*#__PURE__*/_react[\"default\"].createElement(_ColorPicker[\"default\"], {\n      dataPipeModel: dataPipeModel,\n      defaultColor: defaultColor,\n      baseColor: baseColor,\n      colorType: \"cellBorder\",\n      onColorChange: selectColorClick\n    });\n    return /*#__PURE__*/_react[\"default\"].createElement(_SubMenu[\"default\"], {\n      menuName: menuName,\n      menuEle: menuEle\n    });\n  }, [currentColor, dataPipeModel, defaultColor]);\n  var borderStyle = (0, _react.useCallback)(function () {\n    var iconStyle = (0, _classnames7[\"default\"])(_defineProperty({\n      'iconcool biankuangyangshi': true\n    }, _CellsBorder[\"default\"].icon, true));\n    var menuName = /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: iconStyle\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _CellsBorder[\"default\"].text\n    }, (0, _intlApi.getLangMsg)('spread.key0322')));\n    var menuEle = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: (0, _classnames7[\"default\"])(_CellsBorder[\"default\"].styleList, 'kd-cq-spread-dropdown-container')\n    }, _borderInfo.borderStyleInfo.map(function (_ref2) {\n      var key = _ref2.key,\n        value = _ref2.value,\n        image = _ref2.image;\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: (0, _classnames7[\"default\"])(_defineProperty(_defineProperty({}, _CellsBorder[\"default\"].styleItem, true), 'theme select-selected', key === currentStyle), 'kd-cq-spread-dropdown'),\n        key: key,\n        onClick: function onClick(e) {\n          return selectStyleClick(e, key);\n        }\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"img\", {\n        className: \"kd-cq-spread-img\",\n        src: image\n      }));\n    }));\n    return /*#__PURE__*/_react[\"default\"].createElement(_SubMenu[\"default\"], {\n      menuName: menuName,\n      menuEle: menuEle\n    });\n  }, [_borderInfo.borderStyleInfo, currentStyle]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    ref: ref,\n    className: (0, _classnames7[\"default\"])(_CellsBorder[\"default\"].dropExpendPanel, className)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _CellsBorder[\"default\"].top\n  }, dropList), borderColor(), borderStyle());\n});\nvar _default = exports[\"default\"] = CellsBorderDropDownRende;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.js":
/*!****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.js ***!
  \****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.FormatDialog = FormatDialog;\nexports[\"default\"] = CellsFormats;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _Dialog = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/Dialog */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js\"));\nvar _dialogElement2 = __webpack_require__(/*! ../dialogElement */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/index.js\");\nvar _formatInfo = __webpack_require__(/*! ../../../constant/formatInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/formatInfo.js\");\nvar _convertFormat = __webpack_require__(/*! ../../../utils/convertFormat */ \"./src/component/web/DataGrid/ReportGrid/utils/convertFormat.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _BaseComponents = __webpack_require__(/*! @/component/web/base/BaseComponents */ \"./src/component/web/base/BaseComponents/index.js\");\nvar _CellsFormat = _interopRequireDefault(__webpack_require__(/*! ./CellsFormat.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _serverSpreadParams = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction CellsFormats(props) {\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    show = _useState2[0],\n    setShow = _useState2[1];\n  var spreadRef = (0, _react.useRef)(null);\n  var formatObject = (0, _react.useRef)(null);\n  var _useState3 = (0, _react.useState)((0, _formatInfo.getFormatDropdownList)()),\n    _useState4 = _slicedToArray(_useState3, 2),\n    items = _useState4[0],\n    setItems = _useState4[1];\n  (0, _react.useEffect)(function () {\n    spreadRef.current = props.dataPipeModel.getData('PostSpread');\n    props.dataPipeModel.registerCallback('spreadCellsFormat', open);\n    props.dataPipeModel.registerCallback('updateFormatItems', updateFormatItems); // 注册监听函数，否则初次设置之后必须切换单元格才能生效\n  }, []);\n  (0, _react.useEffect)(function () {\n    updateFormatItems();\n  }, [props.activeCell]);\n  function updateFormatItems() {\n    var spread = spreadRef.current;\n    if (spread) {\n      var _spread$serverSpreadP;\n      var sheet = spread.getActiveSheet();\n      var _props$activeCell = props.activeCell,\n        r = _props$activeCell.r,\n        c = _props$activeCell.c;\n      var formatter = sheet.getCell(r, c).formatter() || 'General';\n      var key = (0, _convertFormat.getFormatString)(formatter);\n      var newItems = _toConsumableArray(items);\n      var standard = 'spread';\n      if ((_spread$serverSpreadP = spread.serverSpreadParams) !== null && _spread$serverSpreadP !== void 0 && _spread$serverSpreadP[_serverSpreadParams.USE_EXCEL_CELLS_FORMAT]) {\n        newItems = (0, _formatInfo.getExcelFormatDropdownList)();\n        standard = 'excel';\n      }\n      formatObject.current = (0, _convertFormat.parse)(formatter, standard);\n      newItems.forEach(function (item) {\n        item.select = item.value === key;\n      });\n      setItems(newItems);\n    }\n  }\n  function setCellFormat(formatStr) {\n    var args = {};\n    args.type = 'CellFormat';\n    args.format = formatStr;\n    props.dataPipeModel.sendData(args);\n  }\n  function close() {\n    setShow(false);\n  }\n  function open() {\n    setShow(true);\n  }\n  var toolbarItem = {\n    key: 'CellFormat',\n    title: (0, _intlApi.getLangMsg)('spread.key0281'),\n    items: items,\n    groupId: 1,\n    btnType: 'select',\n    isHideTitle: true,\n    style: {\n      width: 50\n    },\n    dropDownType: 0,\n    isLock: props.isLock\n  };\n  var handleClick = function handleClick(key, value) {\n    if (value === 'custom') {\n      open();\n      return;\n    }\n    var format = 'General';\n    var newItems = _toConsumableArray(items);\n    newItems.forEach(function (item) {\n      item.select = item.value === value;\n      if (item.select) {\n        format = item.formatValue;\n      }\n    });\n    setItems(newItems);\n    setCellFormat(format);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n    btnKey: \"CellFormat\",\n    onClick: handleClick\n  }, toolbarItem)), show ? /*#__PURE__*/_react[\"default\"].createElement(FormatDialog, _extends({\n    close: close,\n    setCellFormat: setCellFormat,\n    currentFormatObject: formatObject.current,\n    spread: spreadRef.current\n  }, props)) : null);\n}\nfunction FormatDialog(props) {\n  var _useState5 = (0, _react.useState)(new _spreadSheets[\"default\"].Spread.Formatter.GeneralFormatter('General')),\n    _useState6 = _slicedToArray(_useState5, 2),\n    formatter = _useState6[0],\n    setFormatter = _useState6[1];\n  var _useState7 = (0, _react.useState)('general'),\n    _useState8 = _slicedToArray(_useState7, 2),\n    activeItem = _useState8[0],\n    setActiveItem = _useState8[1];\n  function confirmClick() {\n    var formatString = formatter.formatString();\n    props.setCellFormat(formatString);\n    props.close();\n  }\n  function selectType(value) {\n    if (activeItem !== value) {\n      setActiveItem(value);\n      var _formatter = (0, _convertFormat.stringify)(props.currentFormatObject, value);\n      setFormatter(_formatter);\n    }\n  }\n  function updateFormat(formatKey, value) {\n    props.currentFormatObject[formatKey] = value;\n    var formatter = (0, _convertFormat.stringify)(props.currentFormatObject, activeItem);\n    setFormatter(formatter);\n  }\n  function renderItems(activeItem) {\n    var _props$spread$serverS;\n    var currentFormat = props.currentFormatObject || {};\n    var standard = (_props$spread$serverS = props.spread.serverSpreadParams) !== null && _props$spread$serverS !== void 0 && _props$spread$serverS[_serverSpreadParams.USE_EXCEL_CELLS_FORMAT] ? 'excel' : 'spread';\n    var items = (0, _formatInfo.getFormatInfo)(activeItem, currentFormat, standard);\n    return items.map(function (item) {\n      switch (item.type) {\n        case 'select':\n          return /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.SpreadSelect, {\n            key: item.key,\n            itemClass: _dialogElement[\"default\"].itemInput,\n            formatKey: item.key,\n            data: item,\n            updateFormat: updateFormat,\n            defaultValue: currentFormat[item.key],\n            required: true\n          });\n        case 'checkbox':\n          return /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.SpreadCheckbox, {\n            key: item.key,\n            itemClass: _dialogElement[\"default\"].itemInput,\n            formatKey: item.key,\n            data: item,\n            updateFormat: updateFormat,\n            defaultValue: currentFormat[item.key]\n          });\n        case 'text':\n          return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n            key: item.key,\n            className: _dialogElement[\"default\"].itemText\n          }, item.value);\n        case 'custom':\n          return /*#__PURE__*/_react[\"default\"].createElement(CustomInput, {\n            key: item.key,\n            formatKey: item.key,\n            data: item,\n            updateFormat: updateFormat,\n            defaultValue: currentFormat[item.key]\n          });\n        default:\n          return null;\n      }\n    });\n  }\n  function selectCellFormat(callback) {\n    props.dataPipeModel.registerCallback('selectCellFormat', callback);\n  }\n  var categoryList = (0, _formatInfo.getCategoryList)();\n  (0, _react.useEffect)(function () {\n    try {\n      // 自定义格式会匹配到其他格式上，暂不处理\n      var sheet = props.spread.getActiveSheet();\n      var _props$activeCell2 = props.activeCell,\n        r = _props$activeCell2.r,\n        c = _props$activeCell2.c;\n      var _formatter2 = sheet.getCell(r, c).formatter();\n      if (!_formatter2) return;\n      var key = (0, _convertFormat.getGeneralFormatString)(_formatter2);\n      props.dataPipeModel.sendData({\n        type: 'selectCellFormat',\n        key: key\n      });\n    } catch (error) {\n      console.log(error);\n    }\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0069'),\n    closeClick: props.close,\n    confirmClick: confirmClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.ListBox, _extends({\n    activeItem: activeItem,\n    items: categoryList,\n    selectType: selectType,\n    selectCellFormat: selectCellFormat\n  }, props)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].formatContainer\n  }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.DisplayBox, {\n    spread: props.spread,\n    formatter: formatter,\n    activeCell: props.activeCell\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].formatItemsContainer\n  }, renderItems(activeItem))));\n}\nvar CustomInput = function CustomInput(props) {\n  var _props$value;\n  var _useState9 = (0, _react.useState)((_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.defaultValue),\n    _useState10 = _slicedToArray(_useState9, 2),\n    value = _useState10[0],\n    setValue = _useState10[1];\n  (0, _react.useEffect)(function () {\n    props.value !== undefined && props.updateFormat(props.formatKey, props.value);\n  }, [props.value]);\n  var handleBlur = function handleBlur(e) {\n    setValue(e.target.value);\n    props.updateFormat(props.formatKey, e.target.value);\n  };\n  var onChange = function onChange(e) {\n    setValue(e.target.value);\n    props.updateFormat(props.formatKey, e.target.value);\n  };\n  var style = Object.assign({\n    backgroundColor: '#ffffff',\n    color: '#333333'\n  }, props.style || {});\n  var data = props.data;\n  var handleClick = function handleClick(item) {\n    setValue(item);\n    props.updateFormat(props.formatKey, item);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _CellsFormat[\"default\"].textItem\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _CellsFormat[\"default\"].itemTitle\n  }, data.title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _CellsFormat[\"default\"].itemContent\n  }, /*#__PURE__*/_react[\"default\"].createElement(_BaseComponents.Text, {\n    style: style,\n    className: \"kd-cq-input\",\n    value: value,\n    onBlur: handleBlur,\n    onChange: onChange\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _CellsFormat[\"default\"].select\n  }, _formatInfo.customCellsFormat.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _CellsFormat[\"default\"].selectItem, true), _CellsFormat[\"default\"].active, value === item)),\n      key: index,\n      onClick: function onClick() {\n        handleClick(item);\n      }\n    }, item);\n  })));\n};\n/** 默认是常规类型\n * #,##0.00;(#,##0.00);\"-\"??;@                            自定义        判断 #,##0.00;(#,##0.00);\"-\"??;@\n * _(¥* #,##0.00_);_(¥* (#,##0.00);_(¥* \"-\"??_);_(@_)     会记专用      判断 _(\n * 0.00%                                                  百分数        判断 %\n * @                                                      文本          判断 @\n * yyyy/m/d;@                                             日期          判断 / 或 月\n * ¥#,##0.00                                              货币          判断 ¥ 或 $\n * General                                                常规          判断 General\n * #,##0.00                                               数值          判断 0\n */\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CheckFormula.js":
/*!*****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CheckFormula.js ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _Dialog = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/Dialog */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 检查公式\n */\nvar __name__ = 'CheckFormula';\nfunction CheckFormula(props) {\n  var _props$customSubItem;\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setEtop = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showCheckFormula = _useState4[0],\n    setShowCheckFormula = _useState4[1];\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      var spread = props.dataPipeModel.getData('PostSpread');\n      setEtop(spread.getHost().parentNode);\n    }, 0);\n    props.dataPipeModel.registerCallback('CheckFormulaClick', handleClick);\n  }, []);\n  var mainIconClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, props.icon, true), _spreadToolbar[\"default\"].checkFormulaIcon, true), 'iconcool youxiaoxing', true));\n  var lockCellItems = (0, _react.useRef)([{\n    text: (0, _intlApi.getLangMsg)('spread.key0148'),\n    hasIcon: true,\n    iconClass: mainIconClass,\n    eventType: 1,\n    key: \"\".concat(__name__, \"_Check\")\n  }]);\n  var itemClick = function itemClick(type) {\n    if (type === 1) {\n      setShowCheckFormula(!showCheckFormula);\n    }\n  };\n  var handleClick = function handleClick() {\n    if (showCheckFormula) return;\n    setShowCheckFormula(!showCheckFormula);\n  };\n  var close = function close() {\n    setShowCheckFormula(false);\n  };\n  var items = (0, _react.useMemo)(function () {\n    var customSubItem = props.customSubItem || [];\n    return [].concat(_toConsumableArray(lockCellItems.current), _toConsumableArray(customSubItem));\n  }, [props.refresh, (_props$customSubItem = props.customSubItem) === null || _props$customSubItem === void 0 ? void 0 : _props$customSubItem.length, lockCellItems.current.length]) || [];\n  var otherProps = {\n    model: props.model,\n    invokeControlMethodOnly: props.invokeControlMethodOnly,\n    dataPipeModel: props.dataPipeModel\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, showCheckFormula ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(CheckFormulaDialog, {\n    close: close,\n    click: handleClick,\n    dataPipeModel: props.dataPipeModel\n  }), eTop) : null);\n}\nvar _default = exports[\"default\"] = CheckFormula;\nfunction CheckFormulaDialog(props) {\n  var spread = props.dataPipeModel.getData('PostSpread');\n  var circularReference = spread.getCircularReference();\n  var errorFormula = circularReference.length > 0 ? circularReference : (0, _intlApi.getLangMsg)('spread.key0155');\n  if (Array.isArray(errorFormula)) {\n    errorFormula = errorFormula.map(function (item) {\n      var row = item.row,\n        col = item.col;\n      return _defineProperty(_defineProperty({}, row + 1, (0, _intlApi.getLangMsg)('spread.key0156')), col + 1, (0, _intlApi.getLangMsg)('spread.key0154'));\n    });\n  }\n  return /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0148'),\n    closeClick: props.close,\n    confirmClick: props.close\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].checkformulaContainer\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].title\n  }, (0, _intlApi.getLangMsg)('spread.key0152')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].content\n  }, JSON.stringify(errorFormula))));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CheckFormula.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ClearCells.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ClearCells.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 工具栏上的清除单元格下拉框按钮\n */\nvar __name__ = 'ClearCells';\nfunction ClearCells(props) {\n  var _props$customSubItem;\n  var clearCellitems = (0, _react.useRef)([{\n    text: (0, _intlApi.getLangMsg)('spread.key0017'),\n    hasIcon: false,\n    eventType: 1,\n    key: \"\".concat(__name__, \"_All\")\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0018'),\n    hasIcon: false,\n    eventType: 2,\n    key: \"\".concat(__name__, \"_Format\")\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0019'),\n    hasIcon: false,\n    eventType: 3,\n    key: \"\".concat(__name__, \"_Content\")\n  }]);\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  var mainIconClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].eraserIcon, true), 'kdfont kdfont-qingchu', true));\n  var itemClick = function itemClick(type) {\n    var args = {\n      type: 'ClearCell',\n      clearType: type\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  var items = (0, _react.useMemo)(function () {\n    var customSubItem = props.customSubItem || [];\n    return [].concat(_toConsumableArray(clearCellitems.current), _toConsumableArray(customSubItem));\n  }, [props.refresh, (_props$customSubItem = props.customSubItem) === null || _props$customSubItem === void 0 ? void 0 : _props$customSubItem.length, clearCellitems.current.length]);\n  var otherProps = {\n    model: props.model,\n    invokeControlMethodOnly: props.invokeControlMethodOnly,\n    dataPipeModel: props.dataPipeModel\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n    isLock: isLocked,\n    hasExpendIcon: true,\n    title: (0, _intlApi.getLangMsg)('spread.key0016'),\n    items: items,\n    mainIconClass: mainIconClass,\n    onItemClick: itemClick\n  }, otherProps));\n}\nvar _default = exports[\"default\"] = ClearCells;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ClearCells.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.js":
/*!***********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.js ***!
  \***********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = ConditionalFormats;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _ConditionalFormats = _interopRequireDefault(__webpack_require__(/*! ./ConditionalFormats.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.less\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _SidebarHeader = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SidebarHeader */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SidebarHeader.js\"));\nvar _SpreadRangeSelect = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadRangeSelect */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRangeSelect.js\"));\nvar _SpreadSelect = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadSelect */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadSelect.js\"));\nvar _SpreadInputText = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadInputText */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputText.js\"));\nvar _SpreadInputNumber = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadInputNumber */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputNumber.js\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _Empty = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/Empty */ \"./src/component/web/base/Empty.js\"));\nvar _Tab = _interopRequireDefault(__webpack_require__(/*! ./Tab */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.js\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _ForeAndBackColor = __webpack_require__(/*! ./ForeAndBackColor */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ForeAndBackColor.js\");\nvar _conditionalFormatsInfo = __webpack_require__(/*! ../../../constant/conditionalFormatsInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/conditionalFormatsInfo.js\");\nvar _common = __webpack_require__(/*! ../../../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _customCommand = __webpack_require__(/*! ../../../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar _getDefaultConditiona = (0, _conditionalFormatsInfo.getDefaultConditionalFormats)(),\n  rangeScope = _getDefaultConditiona.rangeScope,\n  conditionalType = _getDefaultConditiona.conditionalType,\n  comparisonOperators = _getDefaultConditiona.comparisonOperators,\n  textComparisonOperators = _getDefaultConditiona.textComparisonOperators,\n  dateOccurringType = _getDefaultConditiona.dateOccurringType,\n  comparisonValue1 = _getDefaultConditiona.comparisonValue1,\n  comparisonValue2 = _getDefaultConditiona.comparisonValue2,\n  textComparisonValue = _getDefaultConditiona.textComparisonValue,\n  customFormula = _getDefaultConditiona.customFormula; // 默认条件格式选项\n\nfunction ConditionalFormats(_ref) {\n  var dataPipeModel = _ref.dataPipeModel;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setETop = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    dialog = _useState4[0],\n    showDialog = _useState4[1];\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  (0, _react.useEffect)(function () {\n    // 侧边栏出来的时候会挤压spread，需要重新刷新spread的大小\n    var spread = getGlobalContext().spread;\n    spread.refresh();\n  }, [dialog]);\n  (0, _react.useEffect)(function () {\n    dataPipeModel.registerCallback('ConditionalFormats', showConditionDialog);\n  }, []);\n  var showConditionDialog = function showConditionDialog(_ref2) {\n    var isHide = _ref2.isHide;\n    if (dialog) return;\n    if (isHide) {\n      close();\n      return;\n    }\n    var spread = getGlobalContext().spread;\n    setETop(spread.getHost().parentNode.parentNode.querySelector('div[data-spread-container-condition]'));\n    showDialog(true);\n  };\n  var close = function close() {\n    showDialog(false);\n  };\n  return dialog ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(ConditionalFormatsDialog, {\n    dataPipeModel: dataPipeModel,\n    onClose: close,\n    getGlobalContext: getGlobalContext\n  }), eTop) : null;\n}\nvar ConditionalFormatsDialog = function ConditionalFormatsDialog(_ref3) {\n  var onClose = _ref3.onClose,\n    dataPipeModel = _ref3.dataPipeModel,\n    getGlobalContext = _ref3.getGlobalContext;\n  var getDefaultRange = function getDefaultRange() {\n    // 获取默认选中区域\n    var _getGlobalContext = getGlobalContext(),\n      spread = _getGlobalContext.spread;\n    var sheet = spread.getActiveSheet();\n    return (0, _common.explainActiveCell)(sheet, sheet.getSelections()[0]);\n  };\n  var defaultConditionInfo = {\n    conditionalType: conditionalType.defaultValue,\n    comparisonOperators: comparisonOperators.defaultValue,\n    textComparisonOperators: textComparisonOperators.defaultValue,\n    dateOccurringType: dateOccurringType.defaultValue,\n    rangeScope: getDefaultRange(),\n    style: {\n      backgroundColor: '#FFDBE0',\n      color: '#FB2323'\n    }\n  };\n  var conditionInfo = (0, _react.useRef)(defaultConditionInfo); // 条件格式\n  var _useState5 = (0, _react.useState)(_conditionalFormatsInfo.PAGE.ADD),\n    _useState6 = _slicedToArray(_useState5, 2),\n    page = _useState6[0],\n    setPage = _useState6[1]; // 当前页面\n  var manageFlag = (0, _react.useRef)(false); // 当前是否是从管理条件格式界面来的，如果是，则取消是回到管理条件格式面板\n  var editCondition = (0, _react.useRef)(null); // 当前正在编辑的条件规则\n\n  (0, _react.useEffect)(function () {\n    dataPipeModel.sendData({\n      type: 'print',\n      isHide: true\n    });\n  }, []);\n  var updateconditionInfo = function updateconditionInfo(key, value) {\n    // 更新条件格式信息\n    conditionInfo.current[key] = value;\n  };\n  var handleAddClick = function handleAddClick() {\n    // 点击新增条件格式\n    conditionInfo.current = defaultConditionInfo;\n    setPage(_conditionalFormatsInfo.PAGE.ADD);\n  };\n  var handleEditClick = function handleEditClick(condition) {\n    // 点击条件格式项，进入编辑态\n    editCondition.current = condition;\n    setPage(_conditionalFormatsInfo.PAGE.ADD);\n  };\n  var handleSaveClick = function handleSaveClick(_ref4) {\n    var methodName = _ref4.methodName,\n      parameters = _ref4.parameters,\n      ranges = _ref4.ranges;\n    // 点击保存，editCondition用于判断当前是否是编辑条件格式\n    if (editCondition.current) {\n      dataPipeModel.sendData({\n        type: _customCommand.KD_EDIT_CONDITIONAL_FORMATTING,\n        data: {\n          methodName: methodName,\n          parameters: parameters,\n          ranges: ranges,\n          condition: editCondition.current\n        }\n      });\n      editCondition.current = null;\n    } else {\n      dataPipeModel.sendData({\n        type: _customCommand.KD_SET_CONDITIONAL_FORMATTING,\n        data: {\n          methodName: methodName,\n          parameters: parameters,\n          ranges: ranges\n        }\n      });\n    }\n    setPage(_conditionalFormatsInfo.PAGE.MANAGER);\n  };\n  var handleCancelClick = function handleCancelClick() {\n    // 点击取消，如果是从管理条件格式打开的新增条件格式，则取消按钮是返回到管理条件格式\n    editCondition.current = null;\n    if (manageFlag.current) {\n      setPage(_conditionalFormatsInfo.PAGE.MANAGER);\n    } else {\n      onClose();\n    }\n  };\n  var handleManageClick = function handleManageClick() {\n    // 打开管理条件格式\n    setPage(_conditionalFormatsInfo.PAGE.MANAGER);\n  };\n  var updateManageFlag = function updateManageFlag(flag) {\n    manageFlag.current = flag;\n  };\n  var title = page === _conditionalFormatsInfo.PAGE.ADD ? (0, _intlApi.getLangMsg)('spread.key0376') : (0, _intlApi.getLangMsg)('spread.key0412');\n  var style = {\n    borderBottom: page === _conditionalFormatsInfo.PAGE.ADD ? '1px solid #d9d9d9' : 'none'\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].panel_container\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SidebarHeader[\"default\"], {\n    title: title,\n    style: style,\n    onClose: onClose\n  }), page === _conditionalFormatsInfo.PAGE.ADD ? /*#__PURE__*/_react[\"default\"].createElement(AddCondition, {\n    dataPipeModel: dataPipeModel,\n    getGlobalContext: getGlobalContext,\n    onSaveClick: handleSaveClick,\n    onCancelClick: handleCancelClick,\n    onManageClick: handleManageClick,\n    conditionInfo: conditionInfo.current,\n    updateconditionInfo: updateconditionInfo\n  }) : /*#__PURE__*/_react[\"default\"].createElement(ManageCondition, {\n    dataPipeModel: dataPipeModel,\n    getGlobalContext: getGlobalContext,\n    onAddClick: handleAddClick,\n    onEditClick: handleEditClick,\n    updateconditionInfo: updateconditionInfo,\n    updateManageFlag: updateManageFlag\n  }));\n};\nvar AddCondition = function AddCondition(_ref5) {\n  var dataPipeModel = _ref5.dataPipeModel,\n    getGlobalContext = _ref5.getGlobalContext,\n    onSaveClick = _ref5.onSaveClick,\n    onCancelClick = _ref5.onCancelClick,\n    onManageClick = _ref5.onManageClick,\n    conditionInfo = _ref5.conditionInfo,\n    updateconditionInfo = _ref5.updateconditionInfo;\n  var _useState7 = (0, _react.useState)(conditionInfo.conditionalType),\n    _useState8 = _slicedToArray(_useState7, 2),\n    selectConditionalType = _useState8[0],\n    setSelectConditionalType = _useState8[1]; // 涉及到界面ui的变化，需要用到state\n  var _useState9 = (0, _react.useState)(conditionInfo.comparisonOperators),\n    _useState10 = _slicedToArray(_useState9, 2),\n    selectComparisonOperators = _useState10[0],\n    setSelectComparisonOperators = _useState10[1]; // 限定值范围，介于与大于时ui不同\n  var _useState11 = (0, _react.useState)(conditionInfo.style),\n    _useState12 = _slicedToArray(_useState11, 2),\n    preview = _useState12[0],\n    setPreview = _useState12[1];\n  var _useState13 = (0, _react.useState)(false),\n    _useState14 = _slicedToArray(_useState13, 2),\n    showWarn = _useState14[0],\n    setShowWarn = _useState14[1]; // 显示为空警告\n\n  var handleConditionalTypeChange = function handleConditionalTypeChange(key, value) {\n    // 处理条件类型选择：限定值、文本内容、日期\n    setSelectConditionalType(value);\n    updateconditionInfo(key, value);\n  };\n  var handleComparisonOperatorsBlur = function handleComparisonOperatorsBlur(key, value) {\n    // 处理限定值运算符\n    setSelectComparisonOperators(value);\n    updateconditionInfo(key, value);\n  };\n  var handleSaveClick = function handleSaveClick() {\n    // 保存条件格式\n    var _getGlobalContext2 = getGlobalContext(),\n      spread = _getGlobalContext2.spread;\n    var sheet = spread.getActiveSheet();\n    var comparisonOperators = conditionInfo.comparisonOperators,\n      rangeScope = conditionInfo.rangeScope,\n      comparisonValue1 = conditionInfo.comparisonValue1,\n      comparisonValue2 = conditionInfo.comparisonValue2,\n      textComparisonOperators = conditionInfo.textComparisonOperators,\n      textComparisonValue = conditionInfo.textComparisonValue,\n      dateOccurringType = conditionInfo.dateOccurringType,\n      customFormula = conditionInfo.customFormula;\n    if (!rangeScope) {\n      setShowWarn(true);\n      return;\n    }\n    var ranges = rangeScope.split(',').map(function (range) {\n      return (0, _common.unExplainActiveCell)(sheet, range);\n    });\n    var style = {\n      f: \"\".concat(preview[_conditionalFormatsInfo.PREVIEW_KEY.FONT_STYLE] || 'normal', \" normal \").concat(preview[_conditionalFormatsInfo.PREVIEW_KEY.FONT_WEIGHT] || 'normal', \" 12px Calibri\"),\n      td: preview[_conditionalFormatsInfo.PREVIEW_KEY.TEXT_DECORATION] === _conditionalFormatsInfo.PREVIEW_VALUE.UNDERLINE ? _conditionalFormatsInfo.PREVIEW_VALUE.SPREAD_UNDERLINE : _conditionalFormatsInfo.PREVIEW_VALUE.SPREAD_NONE,\n      frc: preview[_conditionalFormatsInfo.PREVIEW_KEY.COLOR],\n      bkc: preview[_conditionalFormatsInfo.PREVIEW_KEY.BACKGROUND_COLOR]\n    };\n    var parameters;\n    switch (selectConditionalType) {\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_CELL_VALUE_RULE:\n        {\n          if (comparisonValue1 === undefined || (comparisonOperators === 6 || comparisonOperators === 7) && comparisonValue2 === undefined) {\n            setShowWarn(true);\n            return;\n          }\n          parameters = {\n            type: comparisonOperators,\n            value1: comparisonValue1,\n            value2: comparisonValue2,\n            style: style\n          };\n          break;\n        }\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_SPECIFIC_TEXT_RULE:\n        {\n          if (textComparisonValue === undefined) {\n            setShowWarn(true);\n            return;\n          }\n          parameters = {\n            comparisonOperator: textComparisonOperators,\n            text: textComparisonValue,\n            style: style\n          };\n          break;\n        }\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_DATE_OCCURRING_RULE:\n        {\n          parameters = {\n            type: dateOccurringType,\n            style: style\n          };\n          break;\n        }\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_FORMULA_RULE:\n        {\n          if (!customFormula) {\n            setShowWarn(true);\n            return;\n          }\n          parameters = {\n            formula: customFormula,\n            style: style\n          };\n          break;\n        }\n      default:\n        break;\n    }\n    var data = {\n      methodName: selectConditionalType,\n      parameters: parameters,\n      ranges: ranges\n    };\n    onSaveClick(data);\n  };\n  var handlePreviewClick = function handlePreviewClick(btnKey, value) {\n    // 预览条件格式（点击预览区域的按钮）\n    var previewCopy = Object.assign({}, preview);\n    switch (btnKey) {\n      case _conditionalFormatsInfo.PREVIEW_KEY.FONT_WEIGHT:\n        previewCopy[_conditionalFormatsInfo.PREVIEW_KEY.FONT_WEIGHT] = !value ? _conditionalFormatsInfo.PREVIEW_VALUE.BOLD : _conditionalFormatsInfo.PREVIEW_VALUE.NORMAL; // value为当前是否选中，所以点击的时候应该选相反值\n        break;\n      case _conditionalFormatsInfo.PREVIEW_KEY.FONT_STYLE:\n        previewCopy[_conditionalFormatsInfo.PREVIEW_KEY.FONT_STYLE] = !value ? _conditionalFormatsInfo.PREVIEW_VALUE.ITALIC : _conditionalFormatsInfo.PREVIEW_VALUE.NORMAL;\n        break;\n      case _conditionalFormatsInfo.PREVIEW_KEY.TEXT_DECORATION:\n        previewCopy[_conditionalFormatsInfo.PREVIEW_KEY.TEXT_DECORATION] = !value ? _conditionalFormatsInfo.PREVIEW_VALUE.UNDERLINE : _conditionalFormatsInfo.PREVIEW_VALUE.NONE;\n        break;\n      case _conditionalFormatsInfo.PREVIEW_KEY.BACKGROUND_COLOR:\n        previewCopy[_conditionalFormatsInfo.PREVIEW_KEY.BACKGROUND_COLOR] = value;\n        break;\n      case _conditionalFormatsInfo.PREVIEW_KEY.COLOR:\n        previewCopy[_conditionalFormatsInfo.PREVIEW_KEY.COLOR] = value;\n        break;\n    }\n    setPreview(previewCopy);\n  };\n  var inputProps = {\n    borderType: 'bordered',\n    required: true,\n    hideTitle: true,\n    showWarn: showWarn\n  };\n  var inputNumberProps = _objectSpread({\n    digitLength: 100,\n    decimalLength: 14,\n    mustInScope: true,\n    zeroShow: true,\n    noDisplayDecimalTailZero: true,\n    width: '100%'\n  }, inputProps);\n  var selectProps = {\n    borderType: 'bordered',\n    required: true,\n    width: '100%'\n  };\n  var comparisonOperator = (0, _react.useMemo)(function () {\n    switch (selectConditionalType) {\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_CELL_VALUE_RULE:\n        return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n          itemClass: _ConditionalFormats[\"default\"].inner_field,\n          data: comparisonOperators,\n          defaultValue: selectComparisonOperators,\n          key: comparisonOperators.key,\n          formatKey: comparisonOperators.key,\n          updateFormat: handleComparisonOperatorsBlur\n        }, selectProps)), selectComparisonOperators === 6 || selectComparisonOperators === 7 ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n          className: _ConditionalFormats[\"default\"].input_container\n        }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n          placeholder: (0, _intlApi.getLangMsg)('spread.key0072'),\n          data: comparisonValue1,\n          defaultValue: conditionInfo.comparisonValue1,\n          key: comparisonValue1.key,\n          formatKey: comparisonValue1.key,\n          updateFormat: updateconditionInfo\n        }, inputNumberProps)), /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, (0, _intlApi.getLangMsg)('spread.key0403')), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n          placeholder: (0, _intlApi.getLangMsg)('spread.key0072'),\n          data: comparisonValue2,\n          defaultValue: conditionInfo.comparisonValue2,\n          key: comparisonValue2.key,\n          formatKey: comparisonValue2.key,\n          updateFormat: updateconditionInfo\n        }, inputNumberProps))) : /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n          placeholder: (0, _intlApi.getLangMsg)('spread.key0072'),\n          style: {\n            width: '100%'\n          },\n          data: comparisonValue1,\n          defaultValue: conditionInfo.comparisonValue1,\n          key: comparisonValue1.key,\n          formatKey: comparisonValue1.key,\n          updateFormat: updateconditionInfo\n        }, inputNumberProps)));\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_SPECIFIC_TEXT_RULE:\n        return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n          itemClass: _ConditionalFormats[\"default\"].inner_field,\n          data: textComparisonOperators,\n          defaultValue: conditionInfo.textComparisonOperators,\n          key: textComparisonOperators.key,\n          formatKey: textComparisonOperators.key,\n          updateFormat: updateconditionInfo\n        }, selectProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n          placeholder: (0, _intlApi.getLangMsg)('spread.key0077'),\n          style: {\n            width: '100%'\n          },\n          data: textComparisonValue,\n          defaultValue: conditionInfo.textComparisonValue,\n          key: textComparisonValue.key,\n          formatKey: textComparisonValue.key,\n          updateFormat: updateconditionInfo\n        }, inputProps)));\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_DATE_OCCURRING_RULE:\n        return /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n          data: dateOccurringType,\n          defaultValue: conditionInfo.dateOccurringType,\n          key: dateOccurringType.key,\n          formatKey: dateOccurringType.key,\n          updateFormat: updateconditionInfo,\n          dropdownClassName: _ConditionalFormats[\"default\"].date_dropdown\n        }, selectProps));\n      case _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_FORMULA_RULE:\n        return /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n          placeholder: (0, _intlApi.getLangMsg)('spread.key0118'),\n          style: {\n            width: '100%'\n          },\n          data: customFormula,\n          defaultValue: conditionInfo.customFormula,\n          key: customFormula.key,\n          formatKey: customFormula.key,\n          updateFormat: updateconditionInfo\n        }, inputProps));\n    }\n  }, [selectConditionalType, selectComparisonOperators, showWarn]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].panel_body_add\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].field_container\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadRangeSelect[\"default\"], {\n    data: rangeScope,\n    defaultValue: conditionInfo.rangeScope,\n    modalTitle: (0, _intlApi.getLangMsg)('spread.key0402'),\n    rangeArea: \"fixedRange\",\n    updateFormat: updateconditionInfo,\n    dataPipeModel: dataPipeModel,\n    required: true,\n    showWarn: showWarn,\n    multiple: true\n  }), /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n    itemClass: _ConditionalFormats[\"default\"].inner_field,\n    data: conditionalType,\n    defaultValue: selectConditionalType,\n    formatKey: conditionalType.key,\n    updateFormat: handleConditionalTypeChange\n  }, selectProps)), comparisonOperator, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].preview_container\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _ConditionalFormats[\"default\"].preview_title\n  }, (0, _intlApi.getLangMsg)('spread.key0404')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].preview_tool\n  }, /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], {\n    key: _conditionalFormatsInfo.PREVIEW_KEY.FONT_WEIGHT,\n    btnKey: _conditionalFormatsInfo.PREVIEW_KEY.FONT_WEIGHT,\n    select: preview[_conditionalFormatsInfo.PREVIEW_KEY.FONT_WEIGHT] === _conditionalFormatsInfo.PREVIEW_VALUE.BOLD,\n    mainIconClass: \"iconcool jiacu\",\n    tips: (0, _intlApi.getLangMsg)('spread.key0002'),\n    onClick: handlePreviewClick\n  }), /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], {\n    key: _conditionalFormatsInfo.PREVIEW_KEY.FONT_STYLE,\n    btnKey: _conditionalFormatsInfo.PREVIEW_KEY.FONT_STYLE,\n    select: preview[_conditionalFormatsInfo.PREVIEW_KEY.FONT_STYLE] === _conditionalFormatsInfo.PREVIEW_VALUE.ITALIC,\n    mainIconClass: \"iconcool xieti\",\n    tips: (0, _intlApi.getLangMsg)('spread.key0003'),\n    onClick: handlePreviewClick\n  }), /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], {\n    key: _conditionalFormatsInfo.PREVIEW_KEY.TEXT_DECORATION,\n    btnKey: _conditionalFormatsInfo.PREVIEW_KEY.TEXT_DECORATION,\n    select: preview[_conditionalFormatsInfo.PREVIEW_KEY.TEXT_DECORATION] === _conditionalFormatsInfo.PREVIEW_VALUE.UNDERLINE,\n    mainIconClass: \"iconcool xiahuaxian\",\n    tips: (0, _intlApi.getLangMsg)('spread.key0004'),\n    onClick: handlePreviewClick\n  }), /*#__PURE__*/_react[\"default\"].createElement(_ForeAndBackColor.ColorPickerBase, {\n    hideBaseColor: true,\n    colorType: _conditionalFormatsInfo.PREVIEW_KEY.COLOR,\n    dataPipeModel: dataPipeModel,\n    title: (0, _intlApi.getLangMsg)('spread.key0277'),\n    iconClass: \"iconcool wenbenwusecai\",\n    defaultColor: preview.color,\n    place: \"right\",\n    colorChange: handlePreviewClick,\n    style: {\n      left: '50%',\n      transform: 'translateX(-50%)'\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(_ForeAndBackColor.ColorPickerBase, {\n    hideBaseColor: true,\n    colorType: _conditionalFormatsInfo.PREVIEW_KEY.BACKGROUND_COLOR,\n    dataPipeModel: dataPipeModel,\n    title: (0, _intlApi.getLangMsg)('spread.key0278'),\n    iconClass: \"iconcool youqitongwusecai\",\n    defaultColor: preview.backgroundColor,\n    place: \"right\",\n    colorChange: handlePreviewClick,\n    style: {\n      left: '50%',\n      transform: 'translateX(-70%)'\n    }\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].preview_view\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: preview,\n    className: \"kd-cq-spread-condition-preview\"\n  }, (0, _intlApi.getLangMsg)('spread.key0416')))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].btn_container\n  }, /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Button, {\n    className: _ConditionalFormats[\"default\"].button,\n    onClick: onCancelClick\n  }, (0, _intlApi.getLangMsg)('spread.key0055')), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Button, {\n    onClick: handleSaveClick,\n    className: _ConditionalFormats[\"default\"].button,\n    type: \"primary\"\n  }, (0, _intlApi.getLangMsg)('spread.key0406'))), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Button, {\n    type: \"text\",\n    icon: /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      \"class\": \"iconcool shezhi2\"\n    }),\n    className: _ConditionalFormats[\"default\"].manager_button,\n    onClick: onManageClick\n  }, (0, _intlApi.getLangMsg)('spread.key0405'))));\n};\nvar ManageCondition = function ManageCondition(_ref6) {\n  var dataPipeModel = _ref6.dataPipeModel,\n    getGlobalContext = _ref6.getGlobalContext,\n    onAddClick = _ref6.onAddClick,\n    onEditClick = _ref6.onEditClick,\n    updateconditionInfo = _ref6.updateconditionInfo,\n    updateManageFlag = _ref6.updateManageFlag;\n  var defaultSelection = getGlobalContext().spread.getActiveSheet().getSelections();\n  var defaultConditionArray = getGlobalContext().spread.getActiveSheet().conditionalFormats.getRules();\n  var _useState15 = (0, _react.useState)(defaultConditionArray),\n    _useState16 = _slicedToArray(_useState15, 2),\n    conditionArray = _useState16[0],\n    setConditionArray = _useState16[1]; // 单元格或页面的条件格式\n  var _useState17 = (0, _react.useState)(defaultSelection[0]),\n    _useState18 = _slicedToArray(_useState17, 2),\n    selection = _useState18[0],\n    setSelection = _useState18[1];\n  (0, _react.useEffect)(function () {\n    var _getGlobalContext3 = getGlobalContext(),\n      spread = _getGlobalContext3.spread;\n    var removeCellListener = dataPipeModel.registerCallback('SendCellInfo', function (data) {\n      return setSelection(data.selections[0]);\n    });\n    // 添加管理器监听\n    spread.commandManager().addListener('KDrefreshCondition', function (props) {\n      setTimeout(function () {\n        // 需要加上定时器，不然获取到的不是最新的\n        console.log(props);\n        updateConditionArray(spread);\n      }, 0);\n    });\n    updateManageFlag(true);\n    return function () {\n      removeCellListener();\n      // 移除管理器监听\n      spread.commandManager().removeListener('KDrefreshCondition');\n    };\n  }, []);\n  var updateConditionArray = function updateConditionArray(spread) {\n    var sheet = spread.getActiveSheet();\n    var newConditionArray = sheet.conditionalFormats.getRules().slice();\n    setConditionArray(newConditionArray);\n  };\n  var options = (0, _react.useCallback)(function (condition) {\n    var _getGlobalContext4 = getGlobalContext(),\n      spread = _getGlobalContext4.spread;\n    var conditionJSON = condition.toJSON();\n    var ruleType = conditionJSON.ruleType,\n      operator = conditionJSON.operator,\n      value1 = conditionJSON.value1,\n      value2 = conditionJSON.value2,\n      text = conditionJSON.text,\n      type = conditionJSON.type,\n      ranges = conditionJSON.ranges,\n      style = conditionJSON.style;\n    var transRanges = ranges.map(function (range) {\n      return (0, _common.explainActiveCell)(spread.getActiveSheet(), range);\n    }).toString();\n    var handleDeleteCondition = function handleDeleteCondition(e) {\n      dataPipeModel.sendData({\n        type: _customCommand.KD_DELETE_CONDITIONAL_FORMATTING,\n        data: {\n          condition: condition\n        }\n      });\n      updateConditionArray(spread);\n      e.preventDefault();\n      e.stopPropagation();\n    };\n    var handleEditCondition = function handleEditCondition() {\n      updateconditionInfo(rangeScope.key, transRanges);\n      updateconditionInfo('style', (0, _common.transformStyle)(style));\n      switch (ruleType) {\n        // 限定值范围\n        case _conditionalFormatsInfo.RULE_TYPE.CELL_VALUE_RULE:\n          {\n            updateconditionInfo(conditionalType.key, _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_CELL_VALUE_RULE);\n            updateconditionInfo(comparisonOperators.key, operator);\n            updateconditionInfo(comparisonValue1.key, value1);\n            updateconditionInfo(comparisonValue2.key, value2);\n            break;\n          }\n        case _conditionalFormatsInfo.RULE_TYPE.SPECIFIC_TEXT_RULE:\n          {\n            // 文本\n            updateconditionInfo(conditionalType.key, _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_SPECIFIC_TEXT_RULE);\n            updateconditionInfo(textComparisonOperators.key, operator);\n            updateconditionInfo(textComparisonValue.key, text);\n            break;\n          }\n        case _conditionalFormatsInfo.RULE_TYPE.DATE_OCCURRING_RULE:\n          {\n            // 日期\n            updateconditionInfo(conditionalType.key, _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_DATE_OCCURRING_RULE);\n            updateconditionInfo(dateOccurringType.key, type);\n            break;\n          }\n        case _conditionalFormatsInfo.RULE_TYPE.FORMULA_RULE:\n          {\n            // 自定义公式\n            updateconditionInfo(conditionalType.key, _conditionalFormatsInfo.CONDITIONAL_TYPE.ADD_FORMULA_RULE);\n            updateconditionInfo(customFormula, value1);\n            break;\n          }\n      }\n      onEditClick(condition);\n    };\n    var transOperator;\n    switch (ruleType) {\n      case _conditionalFormatsInfo.RULE_TYPE.CELL_VALUE_RULE:\n        {\n          // 限定值范围\n          transOperator = value2 ? \"\".concat((0, _intlApi.getLangMsg)('spread.key0117'), \" \").concat(comparisonOperators.value.find(function (_ref7) {\n            var value = _ref7.value;\n            return value === operator;\n          }).alias, \" \").concat(value1, \" \").concat((0, _intlApi.getLangMsg)('spread.key0403'), \" \").concat(value2) : \"\".concat((0, _intlApi.getLangMsg)('spread.key0117'), \" \").concat(comparisonOperators.value.find(function (_ref8) {\n            var value = _ref8.value;\n            return value === operator;\n          }).alias, \" \").concat(value1);\n          break;\n        }\n      case _conditionalFormatsInfo.RULE_TYPE.SPECIFIC_TEXT_RULE:\n        {\n          // 文本\n          transOperator = \"\".concat((0, _intlApi.getLangMsg)('spread.key0077'), \" \").concat(textComparisonOperators.value.find(function (_ref9) {\n            var value = _ref9.value;\n            return value === operator;\n          }).alias, \" \").concat(text);\n          break;\n        }\n      case _conditionalFormatsInfo.RULE_TYPE.DATE_OCCURRING_RULE:\n        {\n          // 日期\n          transOperator = \"\".concat((0, _intlApi.getLangMsg)('spread.key0190'), \" \").concat((0, _intlApi.getLangMsg)('spread.key0410'), \" \").concat(dateOccurringType.value.find(function (_ref10) {\n            var value = _ref10.value;\n            return value === type;\n          }).alias);\n          break;\n        }\n      case _conditionalFormatsInfo.RULE_TYPE.FORMULA_RULE:\n        {\n          // 自定义公式\n          transOperator = \"\".concat((0, _intlApi.getLangMsg)('spread.key0118'), \" \").concat((0, _intlApi.getLangMsg)('spread.key0410'), \" \").concat(value1);\n          break;\n        }\n    }\n    return /*#__PURE__*/_react[\"default\"].createElement(Option, {\n      operator: transOperator,\n      ranges: transRanges,\n      rangeStyle: style,\n      onClick: handleEditCondition,\n      onDelete: handleDeleteCondition\n    });\n  }, []);\n  var conditionFilterArray = (0, _react.useMemo)(function () {\n    return conditionArray.filter(function (condition) {\n      return condition.ranges().some(function (range) {\n        return range.intersect(selection.row, selection.col, selection.rowCount, selection.colCount);\n      });\n    });\n  }, [conditionArray, selection]);\n  var renderSelect = function renderSelect(conditionArray) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ConditionalFormats[\"default\"].manager_container\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ConditionalFormats[\"default\"].button_container\n    }, /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Button, {\n      icon: /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Icon, {\n        type: \"add\"\n      }),\n      className: _ConditionalFormats[\"default\"].add_button,\n      onClick: onAddClick\n    }, (0, _intlApi.getLangMsg)('spread.key0409'))), /*#__PURE__*/_react[\"default\"].createElement(\"ul\", {\n      className: _ConditionalFormats[\"default\"].option_list\n    }, conditionArray.length > 0 ? conditionArray.sort(function (condition1, condition2) {\n      return condition1.priority() - condition2.priority();\n    }).map(function (condition) {\n      return options(condition);\n    }) : /*#__PURE__*/_react[\"default\"].createElement(_Empty[\"default\"], {\n      className: _ConditionalFormats[\"default\"].empty\n    })));\n  };\n  var conditionData = [{\n    id: _conditionalFormatsInfo.TAB.RANGE,\n    name: (0, _intlApi.getLangMsg)('spread.key0407'),\n    content: renderSelect(conditionFilterArray)\n  }, {\n    id: _conditionalFormatsInfo.TAB.SHEET,\n    name: (0, _intlApi.getLangMsg)('spread.key0408'),\n    content: renderSelect(conditionArray)\n  }];\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].panel_body_manager\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Tab[\"default\"], {\n    tabData: conditionData,\n    defaultTabKey: conditionFilterArray.length > 0 ? _conditionalFormatsInfo.TAB.RANGE : _conditionalFormatsInfo.TAB.SHEET,\n    className: _ConditionalFormats[\"default\"].tab\n  }));\n};\nvar Option = function Option(_ref11) {\n  var operator = _ref11.operator,\n    ranges = _ref11.ranges,\n    rangeStyle = _ref11.rangeStyle,\n    onClick = _ref11.onClick,\n    onDelete = _ref11.onDelete;\n  var handleDelete = function handleDelete(e) {\n    onDelete(e);\n  };\n  var transStyle = {\n    backgroundColor: rangeStyle.backColor,\n    font: rangeStyle.font,\n    color: rangeStyle.foreColor,\n    textDecoration: rangeStyle.textDecoration === _conditionalFormatsInfo.PREVIEW_VALUE.SPREAD_UNDERLINE ? _conditionalFormatsInfo.PREVIEW_VALUE.UNDERLINE : _conditionalFormatsInfo.PREVIEW_VALUE.NONE\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"li\", {\n    className: _ConditionalFormats[\"default\"].option,\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].inner\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConditionalFormats[\"default\"].info\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    title: operator\n  }, operator), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    title: ranges\n  }, ranges)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_ConditionalFormats[\"default\"].rangeStyle, 'kd-cq-spread-condition-preview'),\n    style: transStyle\n  }, \"123\"), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames[\"default\"])('kdfont kdfont-shanchu', _ConditionalFormats[\"default\"][\"delete\"]),\n    onClick: handleDelete\n  })));\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CustomItem.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CustomItem.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 自定义工具栏\n */\nfunction CustomItem(props) {\n  var id = props.id,\n    icon = props.icon,\n    title = props.title,\n    customSubItem = props.customSubItem;\n  var singleLock = (0, _useLock[\"default\"])({\n    name: id,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  var mainIconClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].eraserIcon, true), icon, !!icon));\n  var handleDefaultClick = function handleDefaultClick() {\n    if (isLocked) return;\n    var _customSubItem$ = customSubItem[0],\n      callback = _customSubItem$.callback,\n      invokeAction = _customSubItem$.invokeAction;\n    callback && invokeAction && props.invokeControlMethodOnly(props.model, callback, [{\n      invokemethod: invokeAction\n    }]);\n  };\n  var otherProps = {\n    model: props.model,\n    invokeControlMethodOnly: props.invokeControlMethodOnly,\n    dataPipeModel: props.dataPipeModel,\n    showTitle: props.showTitle,\n    dropDownType: props.dropDownType,\n    onClick: handleDefaultClick\n  };\n  var invokeProps = {\n    callback: props.callback,\n    invokeAction: props.invokeAction\n  };\n  return customSubItem ? /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n    isLock: isLocked,\n    title: title,\n    items: customSubItem,\n    mainIconClass: mainIconClass\n  }, otherProps, {\n    isCustom: true\n  })) : /*#__PURE__*/_react[\"default\"].createElement(CustomSingleItem, _extends({\n    isLock: isLocked,\n    title: title,\n    mainIconClass: mainIconClass\n  }, otherProps, invokeProps));\n}\nfunction CustomSingleItem(props) {\n  var model = props.model,\n    invokeControlMethodOnly = props.invokeControlMethodOnly,\n    callback = props.callback,\n    invokeAction = props.invokeAction,\n    mainIconClass = props.mainIconClass,\n    title = props.title,\n    showTitle = props.showTitle,\n    isLock = props.isLock,\n    icon = props.icon;\n  var userLocal = model === null || model === void 0 ? void 0 : model.getUserLocale();\n  var itemTitle = (title === null || title === void 0 ? void 0 : title[userLocal]) || title;\n  var style = isLock ? icon === 'image' ? {\n    opacity: '0.4'\n  } : {\n    color: '#bbb'\n  } : null;\n  var handleClick = function handleClick(e) {\n    e.stopPropagation();\n    if (isLock) return;\n    callback && invokeAction && invokeControlMethodOnly(model, callback, [{\n      invokemethod: invokeAction\n    }]);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Tooltip, {\n    placement: \"bottom\",\n    tip: itemTitle,\n    disabled: isLock\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].customItem, true), _spreadToolbar[\"default\"].customItemHover, !isLock)),\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: mainIconClass,\n    title: showTitle ? null : title,\n    style: style\n  }), showTitle ? /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _spreadToolbar[\"default\"].itemText,\n    style: style\n  }, itemTitle) : null));\n}\nvar _default = exports[\"default\"] = CustomItem;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CustomItem.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DataValidation.js":
/*!*******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DataValidation.js ***!
  \*******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.SettingDialog = SettingDialog;\nexports[\"default\"] = DataValidation;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames5 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _Dialog = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/Dialog */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js\"));\nvar _validationInfo = __webpack_require__(/*! ../../../constant/validationInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/validationInfo.js\");\nvar _dialogElement = __webpack_require__(/*! ../dialogElement */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/index.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _serverproperties = __webpack_require__(/*! @/constant/serverproperties.js */ \"./src/constant/serverproperties.js\");\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _ColorPicker = _interopRequireDefault(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js */ \"./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js\"));\nvar _directiveUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\");\nvar _FloatingObjects = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/common/FloatingObjects.js */ \"./src/component/web/DataGrid/ReportGrid/ui/common/FloatingObjects.js\");\nvar _BaseComponents = __webpack_require__(/*! @/component/web/base/BaseComponents */ \"./src/component/web/base/BaseComponents/index.js\");\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _reactDomFactories = __webpack_require__(/*! react-dom-factories */ \"../../node_modules/react-dom-factories/index.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar __name__ = 'DataValidation';\nfunction DataValidation(props) {\n  var _props$customSubItem;\n  var allowSingleUnlock = props.allowSingleUnlock,\n    dataPipeModel = props.dataPipeModel,\n    isLockAll = props.isLockAll,\n    model = props.model,\n    dispatch = props.dispatch,\n    invokeControlMethodOnly = props.invokeControlMethodOnly;\n  // const [isLock, setIsLock] = useState(false)\n  var _useState = (0, _react.useState)(null),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setETop = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    dialog = _useState4[0],\n    showDialog = _useState4[1];\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: dataPipeModel\n  });\n  var lock = singleLock || isLockAll && !(allowSingleUnlock && singleLock === 0);\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var mergeCellItems = (0, _react.useRef)([{\n    text: (0, _intlApi.getLangMsg)('spread.key0183'),\n    hasIcon: false,\n    eventType: 1,\n    key: \"\".concat(__name__, \"_DataValidation\")\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0230'),\n    hasIcon: false,\n    eventType: 2,\n    key: \"\".concat(__name__, \"_CircleInvalidData\")\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0231'),\n    hasIcon: false,\n    eventType: 3,\n    key: \"\".concat(__name__, \"_ClearInvalidCircle\")\n  }]);\n  (0, _react.useEffect)(function () {\n    dataPipeModel.registerCallback('DataValidationClick', handleClick);\n  }, []);\n  var handleClick = function handleClick(_ref) {\n    var value = _ref.value;\n    if (lock || dialog) return;\n    var spread = getGlobalContext().spread;\n    if (value === 1) {\n      setETop(spread.getHost().parentNode);\n      showDialog(true);\n    } else if (value === 2) {\n      spread.options.highlightInvalidData = true;\n    } else if (value === 3) {\n      spread.options.highlightInvalidData = false;\n    }\n  };\n  var close = function close() {\n    showDialog(false);\n  };\n  var mainIconClass = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].mergeCellIcon, true), props.icon, true));\n  var items = (0, _react.useMemo)(function () {\n    var customSubItem = props.customSubItem || [];\n    return [].concat(_toConsumableArray(mergeCellItems.current), _toConsumableArray(customSubItem));\n  }, [props.refresh, (_props$customSubItem = props.customSubItem) === null || _props$customSubItem === void 0 ? void 0 : _props$customSubItem.length, mergeCellItems.current.length]);\n  var otherProps = {\n    model: model,\n    invokeControlMethodOnly: invokeControlMethodOnly,\n    dataPipeModel: dataPipeModel\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, dialog ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(SettingDialog, {\n    close: close,\n    dataPipeModel: dataPipeModel,\n    model: model,\n    dispatch: dispatch,\n    spread: getGlobalContext().spread\n  }), eTop) : null);\n}\nfunction SettingDialog(props) {\n  var close = props.close,\n    dataPipeModel = props.dataPipeModel,\n    spread = props.spread;\n  var _useState5 = (0, _react.useState)('settings'),\n    _useState6 = _slicedToArray(_useState5, 2),\n    activeItem = _useState6[0],\n    setActiveItem = _useState6[1];\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = _slicedToArray(_useState7, 2),\n    value = _useState8[0],\n    setValue = _useState8[1];\n  var _useState9 = (0, _react.useState)(null),\n    _useState10 = _slicedToArray(_useState9, 2),\n    info = _useState10[0],\n    setInfo = _useState10[1];\n  var oldCell = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    getDefaultInfo();\n    oldCell.current = spread.getActiveSheet().getSelections()[0];\n  }, []);\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var setValidator = function setValidator() {\n    var args;\n    var spread = getGlobalContext().spread;\n    var range = spread.getActiveSheet().getSelections();\n    if (info[_serverproperties.VALIDATOR_TYPE] === 0) {\n      args = {\n        type: 'SetValidator',\n        data: {\n          type: 1,\n          range: range\n        }\n      };\n    } else {\n      args = {\n        type: 'SetValidator',\n        data: {\n          type: 0,\n          option: info,\n          range: range\n        }\n      };\n    }\n    dataPipeModel.sendData(args);\n  };\n  var getDefaultInfo = function getDefaultInfo() {\n    var spread = getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    var _sheet$getSelections$ = sheet.getSelections()[0],\n      row = _sheet$getSelections$.row,\n      col = _sheet$getSelections$.col;\n    var cellInfo = (0, _validationInfo.getValidatorInfo)(row, col, sheet);\n    var initialState = {};\n    for (var key in _validationInfo.defaultInfo) {\n      var _value = _validationInfo.defaultInfo[key].value;\n      if (cellInfo) {\n        initialState[key] = cellInfo[key];\n      } else {\n        if (Array.isArray(_value)) {\n          initialState[key] = _value.find(function (item) {\n            return item[\"default\"];\n          }).value;\n        } else {\n          initialState[key] = _validationInfo.defaultInfo[key].value;\n        }\n      }\n    }\n    setInfo(initialState);\n    setValue1(initialState[_serverproperties.VALUE_1]);\n    setValue2(initialState[_serverproperties.VALUE_2]);\n  };\n  var updateInfo = function updateInfo(key, value) {\n    setInfo(function (newInfo) {\n      return _objectSpread(_objectSpread({}, newInfo), _defineProperty({}, key, value));\n    });\n  };\n  var selectType = function selectType(value) {\n    if (activeItem !== value) {\n      setActiveItem(value);\n    }\n  };\n  var confirmClick = function confirmClick() {\n    setValidator();\n    close();\n  };\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = _slicedToArray(_useState11, 2),\n    isRefeCell = _useState12[0],\n    setIsRefeCell = _useState12[1];\n  var _useState13 = (0, _react.useState)(_serverproperties.VALUE_1),\n    _useState14 = _slicedToArray(_useState13, 2),\n    type = _useState14[0],\n    setType = _useState14[1];\n  var _useState15 = (0, _react.useState)(null),\n    _useState16 = _slicedToArray(_useState15, 2),\n    v1 = _useState16[0],\n    setValue1 = _useState16[1];\n  var _useState17 = (0, _react.useState)(null),\n    _useState18 = _slicedToArray(_useState17, 2),\n    v2 = _useState18[0],\n    setValue2 = _useState18[1];\n  var setRefeCell = function setRefeCell(type) {\n    var newValue = type === _serverproperties.VALUE_1 ? v1 : v2;\n    if (newValue && typeof newValue !== 'number' && _typeof(newValue) !== 'object') {\n      var _GC$Spread$Sheets$Cal;\n      var sheet = spread.getActiveSheet();\n      var range = (_GC$Spread$Sheets$Cal = _spreadSheets[\"default\"].Spread.Sheets.CalcEngine.formulaToRanges(sheet, newValue)[0]) === null || _GC$Spread$Sheets$Cal === void 0 ? void 0 : _GC$Spread$Sheets$Cal.ranges[0];\n      if (range !== null && range !== void 0 && range.rowCount || range !== null && range !== void 0 && range.colCount) {\n        (0, _FloatingObjects.showOtherSelections)(sheet, range, !isRefeCell);\n      }\n    }\n    setValue(newValue);\n    setType(type);\n    setIsRefeCell(!isRefeCell);\n  };\n  (0, _react.useEffect)(function () {\n    if (!isRefeCell) {\n      var sheet = spread.getActiveSheet();\n      var _oldCell$current = oldCell.current,\n        row = _oldCell$current.row,\n        col = _oldCell$current.col,\n        rowCount = _oldCell$current.rowCount,\n        colCount = _oldCell$current.colCount;\n      (0, _directiveUtils.setSelections)({\n        r: row,\n        c: col,\n        rc: rowCount,\n        cc: colCount\n      })({\n        spread: spread,\n        dataPipeModel: dataPipeModel\n      }, sheet);\n      (0, _FloatingObjects.showOtherSelections)(sheet, [], false);\n    }\n  }, [isRefeCell]);\n  var updateRange = function updateRange(e) {\n    setValue(e.target.value);\n  };\n  var selectBtn = (0, _classnames5[\"default\"])(_defineProperty({\n    kdfont: true,\n    'kdfont-tuichuxuanqudanyuange': true\n  }, _spreadToolbar[\"default\"].selectBtn, true));\n  var dialogStyle = isRefeCell ? {\n    display: 'none'\n  } : {};\n  var onChange = function onChange(e) {\n    setValue(e.target.value);\n  };\n  var handleSelectionChange = function handleSelectionChange(data) {\n    var sheet = spread.getActiveSheet();\n    // const selection = explainActiveCell(sheet, data.selections[0])\n    var formula = _spreadSheets[\"default\"].Spread.Sheets.CalcEngine.rangeToFormula(data.selections[0]);\n    var sheetName = sheet.name();\n    setValue('=' + sheetName + '!' + formula);\n  };\n  (0, _react.useEffect)(function () {\n    var removeListener = dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n    return function () {\n      removeListener();\n    };\n  }, []);\n  var setSelectCell = function setSelectCell() {\n    if (type === _serverproperties.VALUE_1) {\n      setValue1(value);\n      updateInfo(_serverproperties.VALUE_1, value);\n    } else {\n      setValue2(value);\n      updateInfo(_serverproperties.VALUE_2, value);\n    }\n    setIsRefeCell(false);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, isRefeCell && /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0183'),\n    style: {\n      pointerEvents: 'none',\n      backgroundColor: 'transparent'\n    },\n    dialogContentStyle: {\n      pointerEvents: 'all'\n    },\n    closeClick: function closeClick() {\n      setIsRefeCell(false);\n    },\n    confirmClick: setSelectCell\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].range\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].rangeSelect\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].textItem\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].itemSelect\n  }, /*#__PURE__*/_react[\"default\"].createElement(_BaseComponents.Text, {\n    value: value,\n    onBlur: updateRange,\n    key: \"updateRange\",\n    style: {\n      width: 400\n    },\n    onChange: onChange\n  })))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: selectBtn,\n    onClick: setRefeCell\n  }))), /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0183'),\n    style: dialogStyle,\n    closeClick: close,\n    confirmClick: confirmClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.ListBox, {\n    activeItem: activeItem,\n    items: _validationInfo.getCategoryList,\n    selectType: selectType\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].dataValidation\n  }, info && /*#__PURE__*/_react[\"default\"].createElement(Setting, _extends({\n    activeItem: activeItem,\n    info: info,\n    updateInfo: updateInfo,\n    setRefeCell: setRefeCell\n  }, props, {\n    v1: v1,\n    v2: v2\n  })))));\n}\nvar Setting = function Setting(_ref2) {\n  var dataPipeModel = _ref2.dataPipeModel,\n    _ref2$activeItem = _ref2.activeItem,\n    activeItem = _ref2$activeItem === void 0 ? 'settings' : _ref2$activeItem,\n    info = _ref2.info,\n    updateInfo = _ref2.updateInfo,\n    setRefeCell = _ref2.setRefeCell,\n    v1 = _ref2.v1,\n    v2 = _ref2.v2;\n  var _useState19 = (0, _react.useState)(info),\n    _useState20 = _slicedToArray(_useState19, 2),\n    newInfo = _useState20[0],\n    setNewInfo = _useState20[1];\n  var _useState21 = (0, _react.useState)(info.hsc),\n    _useState22 = _slicedToArray(_useState21, 2),\n    preColor = _useState22[0],\n    setColor = _useState22[1];\n  var _useState23 = (0, _react.useState)(false),\n    _useState24 = _slicedToArray(_useState23, 2),\n    showColorPanel = _useState24[0],\n    setShowColorPanel = _useState24[1];\n  var colorPickerRef = (0, _react.useRef)();\n  var ColorChanged = function ColorChanged(type, color) {\n    setColor(color);\n    updateInfo(_serverproperties.HIGHLIGHT_STYLE_COLOR, color);\n    setNewInfo(function (newInfo) {\n      return _objectSpread(_objectSpread({}, newInfo), _defineProperty({}, _serverproperties.HIGHLIGHT_STYLE_COLOR, color));\n    });\n  };\n  (0, _react.useEffect)(function () {\n    dataPipeModel.sendData({\n      type: 'dataValidation',\n      color: info === null || info === void 0 ? void 0 : info.hsc\n    });\n    window.addEventListener('click', hideColorPicker);\n    return function () {\n      window.removeEventListener('click', hideColorPicker);\n    };\n  }, []);\n  var updateFormat = function updateFormat(key, value) {\n    updateInfo(key, value);\n    setNewInfo(function (newInfo) {\n      return _objectSpread(_objectSpread({}, newInfo), _defineProperty({}, key, value));\n    });\n  };\n  var toggleColorPicker = function toggleColorPicker() {\n    setShowColorPanel(!showColorPanel);\n  };\n  var hideColorPicker = function hideColorPicker(e) {\n    var colorPickPanel = colorPickerRef.current;\n    var target = e.target;\n    while (target) {\n      if (target === colorPickPanel) {\n        return;\n      }\n      target = target.parentNode;\n    }\n    setShowColorPanel(false);\n  };\n  var selectBtnClick = function selectBtnClick(value) {\n    if ([0].includes(newInfo[_serverproperties.VALIDATOR_TYPE])) return;\n    setRefeCell(value);\n  };\n  var iconRight = (0, _classnames5[\"default\"])(_defineProperty({\n    kdfont: true,\n    'kdfont-baobiaokongjianxiala': true\n  }, _spreadToolbar[\"default\"].rightIcon, true));\n  var checkBoxStyle = {\n    alignItems: 'center',\n    width: '200px'\n  };\n  var selectBtn = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({\n    kdfont: true,\n    'kdfont-xuanqudanyuange2': true\n  }, _spreadToolbar[\"default\"].selectBtn, true), _spreadToolbar[\"default\"].disabled, [0].includes(newInfo[_serverproperties.VALIDATOR_TYPE])));\n  var inputMSGStyle = {\n    width: 200\n  };\n  var hideStyle = {\n    display: 'none'\n  };\n  var showStyle = {\n    display: 'block'\n  };\n  var otherInputPrpos = {\n    disabled: [0].includes(newInfo[_serverproperties.VALIDATOR_TYPE]),\n    style: {\n      width: 180\n    },\n    updateFormat: updateFormat\n  };\n  var settings = function settings() {\n    return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].gcColumnSet,\n      style: activeItem !== 'settings' ? hideStyle : showStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].left\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].validatorTypes\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadSelect, {\n      required: true,\n      formatKey: _serverproperties.VALIDATOR_TYPE,\n      data: _validationInfo.defaultInfo[_serverproperties.VALIDATOR_TYPE],\n      defaultValue: newInfo[_serverproperties.VALIDATOR_TYPE],\n      updateFormat: updateFormat\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].comparisonOperator\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadSelect, {\n      disabled: [3, 7, 0].includes(newInfo[_serverproperties.VALIDATOR_TYPE]),\n      required: true,\n      formatKey: _serverproperties.VALIDATOR_COMPARISON_OPERATOR,\n      data: _validationInfo.defaultInfo[_serverproperties.VALIDATOR_COMPARISON_OPERATOR],\n      defaultValue: newInfo[_serverproperties.VALIDATOR_COMPARISON_OPERATOR],\n      updateFormat: updateFormat\n    }))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].right\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].ignoreBlank\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadCheckbox, {\n      formatKey: _serverproperties.IGNORE_BLANK,\n      checkBoxStyle: checkBoxStyle,\n      data: _validationInfo.defaultInfo[_serverproperties.IGNORE_BLANK],\n      defaultValue: newInfo[_serverproperties.IGNORE_BLANK],\n      updateFormat: updateFormat\n    })))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].gcContainer,\n      style: activeItem !== 'settings' ? hideStyle : showStyle\n    }, ![6, 7].includes(newInfo[_serverproperties.VALIDATOR_COMPARISON_OPERATOR]) || [3].includes(newInfo[_serverproperties.VALIDATOR_TYPE]) ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].value\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputText, _extends({\n      formatKey: _serverproperties.VALUE_1,\n      key: _serverproperties.VALUE_1,\n      data: _validationInfo.defaultInfo[_serverproperties.VALUE],\n      value: v1,\n      defaultValue: newInfo[_serverproperties.VALUE_1]\n    }, otherInputPrpos)), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: selectBtn,\n      onClick: function onClick() {\n        selectBtnClick(_serverproperties.VALUE_1);\n      }\n    })) : /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].value\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputText, _extends({\n      formatKey: _serverproperties.VALUE_1,\n      key: _serverproperties.VALUE_1,\n      data: _validationInfo.defaultInfo[_serverproperties.VALUE_1],\n      value: v1,\n      defaultValue: newInfo[_serverproperties.VALUE_1]\n    }, otherInputPrpos)), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: selectBtn,\n      onClick: function onClick() {\n        selectBtnClick(_serverproperties.VALUE_1);\n      }\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].value\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputText, _extends({\n      formatKey: _serverproperties.VALUE_2,\n      key: _serverproperties.VALUE_2,\n      data: _validationInfo.defaultInfo[_serverproperties.VALUE_2],\n      value: v2,\n      defaultValue: newInfo[_serverproperties.VALUE_2]\n    }, otherInputPrpos)), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: selectBtn,\n      onClick: function onClick() {\n        selectBtnClick(_serverproperties.VALUE_2);\n      }\n    })))));\n  };\n  var information = function information() {\n    return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].showInputMsg,\n      style: activeItem !== 'information' ? hideStyle : showStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadCheckbox, {\n      formatKey: _serverproperties.SHOW_INPUT_MSG,\n      checkBoxStyle: checkBoxStyle,\n      data: _validationInfo.defaultInfo[_serverproperties.SHOW_INPUT_MSG],\n      defaultValue: newInfo[_serverproperties.SHOW_INPUT_MSG],\n      updateFormat: updateFormat\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].inputContainer,\n      style: activeItem !== 'information' ? hideStyle : showStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputText, {\n      formatKey: _serverproperties.INPUT_TITLE,\n      data: _validationInfo.defaultInfo[_serverproperties.INPUT_TITLE],\n      style: inputMSGStyle,\n      defaultValue: newInfo[_serverproperties.INPUT_TITLE],\n      updateFormat: updateFormat\n    }), /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputTextArea, {\n      formatKey: _serverproperties.INPUT_MESSAGE,\n      data: _validationInfo.defaultInfo[_serverproperties.INPUT_MESSAGE],\n      style: {\n        width: 200,\n        height: 100\n      },\n      defaultValue: newInfo[_serverproperties.INPUT_MESSAGE],\n      updateFormat: updateFormat\n    })));\n  };\n  var error = function error() {\n    return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].showInputMsg,\n      style: activeItem !== 'error' ? hideStyle : showStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadCheckbox, {\n      formatKey: _serverproperties.SHOW_ERROR_MESSAGE,\n      checkBoxStyle: checkBoxStyle,\n      data: _validationInfo.defaultInfo[_serverproperties.SHOW_ERROR_MESSAGE],\n      defaultValue: newInfo[_serverproperties.SHOW_ERROR_MESSAGE],\n      updateFormat: updateFormat\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].errorMessage,\n      style: activeItem !== 'error' ? hideStyle : showStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadSelect, {\n      required: true,\n      formatKey: _serverproperties.ERROR_STYLE,\n      data: _validationInfo.defaultInfo[_serverproperties.ERROR_STYLE],\n      defaultValue: newInfo[_serverproperties.ERROR_STYLE],\n      updateFormat: updateFormat\n    }), /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputText, {\n      formatKey: _serverproperties.ERROR_TITLE,\n      data: _validationInfo.defaultInfo[_serverproperties.ERROR_TITLE],\n      defaultValue: newInfo[_serverproperties.ERROR_TITLE],\n      style: inputMSGStyle,\n      updateFormat: updateFormat\n    }), /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadInputTextArea, {\n      formatKey: _serverproperties.ERROR_MSG,\n      data: _validationInfo.defaultInfo[_serverproperties.ERROR_MSG],\n      defaultValue: newInfo[_serverproperties.ERROR_MSG],\n      style: {\n        width: 200,\n        height: 100\n      },\n      updateFormat: updateFormat\n    })));\n  };\n  var highlight = function highlight() {\n    return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].higtLight,\n      style: activeItem !== 'highlight' ? hideStyle : showStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadSelect, {\n      required: true,\n      formatKey: _serverproperties.HIGHLIGHT_TYPE,\n      data: _validationInfo.defaultInfo[_serverproperties.HIGHLIGHT_TYPE],\n      defaultValue: newInfo[_serverproperties.HIGHLIGHT_TYPE],\n      updateFormat: updateFormat\n    }), newInfo[_serverproperties.HIGHLIGHT_TYPE] !== 0 && /*#__PURE__*/_react[\"default\"].createElement(_dialogElement.SpreadSelect, {\n      required: true,\n      formatKey: _serverproperties.DOGEAR_POSITION,\n      data: _validationInfo.defaultInfo[_serverproperties.DOGEAR_POSITION],\n      defaultValue: newInfo[_serverproperties.DOGEAR_POSITION] || 0,\n      updateFormat: updateFormat\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].higtLightColor,\n      ref: colorPickerRef\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, (0, _intlApi.getLangMsg)('spread.key0229')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].colorPicker\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].colorContainer,\n      onClick: toggleColorPicker\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _spreadToolbar[\"default\"].color,\n      style: {\n        backgroundColor: preColor\n      }\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: iconRight,\n      onClick: toggleColorPicker\n    }), showColorPanel && /*#__PURE__*/_react[\"default\"].createElement(_ColorPicker[\"default\"], {\n      dataPipeModel: dataPipeModel,\n      style: {\n        position: 'absolute',\n        marginTop: 22,\n        marginLeft: -10,\n        backgroundColor: '#FFFFFF'\n      },\n      defaultColor: \"#ff0000\",\n      colorType: \"dataValidation\",\n      onColorChange: ColorChanged\n    })))));\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].setting\n  }, settings(), information(), error(), highlight());\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DataValidation.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js":
/*!*****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = exports.DROPDOWN_TYPE = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames9 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 工具栏中的下拉列表\n * by kechuang\n */\nvar DROPDOWN_TYPE = exports.DROPDOWN_TYPE = {\n  allDrowdown: 0,\n  arrowDrowdown: 1\n};\nvar DropDownList = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(DropDownList, _React$Component);\n  function DropDownList(props) {\n    var _props$model;\n    var _this;\n    _classCallCheck(this, DropDownList);\n    _this = _callSuper(this, DropDownList, [props]);\n    _this.state = {\n      showPanel: false,\n      items: props.items,\n      visible: false\n    };\n    _this.userLocal = (_props$model = props.model) === null || _props$model === void 0 ? void 0 : _props$model.getUserLocale();\n    _this.mainIcon = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.dropContainer = /*#__PURE__*/_react[\"default\"].createRef();\n    _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));\n    _this.handleDefaultClick = _this.handleDefaultClick.bind(_assertThisInitialized(_this));\n    _this.handleExpendClick = _this.handleExpendClick.bind(_assertThisInitialized(_this));\n    _this.documentClickHandle = _this.documentClickHandle.bind(_assertThisInitialized(_this));\n    _this.listClick = _this.listClick.bind(_assertThisInitialized(_this));\n    _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_this));\n    // this.handleMouseMove = this.handleMouseMove.bind(this)\n    _this.closeDropPanel = _this.closeDropPanel.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(DropDownList, [{\n    key: \"defaultItem\",\n    get: function get() {\n      var _this$state$items;\n      return (_this$state$items = this.state.items) === null || _this$state$items === void 0 ? void 0 : _this$state$items[0];\n    }\n\n    // componentDidMount () {\n    //   document.addEventListener('mousemove', this.handleMouseMove)\n    // }\n\n    // componentWillUnmount () {\n    //   document.removeEventListener('mousemove', this.handleMouseMove)\n    // }\n  }, {\n    key: \"renderItem\",\n    value: function renderItem() {\n      var _this2 = this;\n      var items = this.state.items || [];\n      var isExistIcon = items.find(function (_ref) {\n        var icon = _ref.icon;\n        return icon;\n      });\n      var dropList = items.map(function (item, index) {\n        var _item$text, _item$title;\n        var icon = null;\n        if (isExistIcon) {\n          var iconStyle = (0, _classnames9[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].dropListLeft, true), item.icon, true), \"kd-cq-spread-toolbar-item-disable \".concat(_spreadToolbar[\"default\"].toolbar_item_disable), item.disable));\n          icon = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n            className: iconStyle\n          });\n        }\n        var dropListStyle = (0, _classnames9[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].dropList, true), 'kd-cq-spread-dropdown', true), 'kd-hover', !item.disable), \"kd-cq-spread-toolbar-item-disable \".concat(_spreadToolbar[\"default\"].toolbar_item_disable), item.isLock), 'theme select-selected', item.select));\n        var listRightStyle = (0, _classnames9[\"default\"])(_defineProperty({}, _spreadToolbar[\"default\"].dropListRight, true));\n        var itemTitle = ((_item$text = item.text) === null || _item$text === void 0 ? void 0 : _item$text[_this2.userLocal]) || item.text || ((_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title[_this2.userLocal]) || item.title;\n        var selectIcon = (0, _classnames9[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].selectIcon, true), 'kdfont kdfont-danliexuanze', true));\n        if (item.hidden) return null;\n        return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n          key: index,\n          className: dropListStyle,\n          onClick: function onClick(e) {\n            return _this2.listClick(item.value, item);\n          }\n        }, icon, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n          className: listRightStyle\n        }, itemTitle), item.select && _this2.props.btnType !== 'select' && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n          className: selectIcon\n        }));\n      });\n      return dropList;\n    }\n  }, {\n    key: \"showDropList\",\n    value: function showDropList() {\n      var showPanel = this.state.showPanel;\n      if (showPanel) {\n        document.addEventListener('click', this.documentClickHandle, false);\n        var DropdownRender = this.props.DropdownRender;\n        if (DropdownRender) {\n          return /*#__PURE__*/_react[\"default\"].createElement(DropdownRender, _extends({\n            ref: \"expendPanel\",\n            mainIconClass: this.props.mainIconClass,\n            dataPipeModel: this.props.dataPipeModel,\n            items: this.state.items,\n            userLocal: this.userLocal,\n            updateData: this.props.updateData,\n            btnkey: this.props.btnkey,\n            btnType: this.props.btnType,\n            listClick: this.listClick,\n            closeDropPanel: this.closeDropPanel,\n            className: \"kd-cq-spread-dropdown-container\"\n          }, this.props));\n        } else {\n          var dropLists = this.renderItem();\n          return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n            ref: \"expendPanel\",\n            className: (0, _classnames9[\"default\"])(_spreadToolbar[\"default\"].dropExpendPanel, 'kd-cq-spread-dropdown-container'),\n            style: this.props.listStyle\n          }, dropLists);\n        }\n      } else {\n        document.removeEventListener('click', this.documentClickHandle, false);\n        return null;\n      }\n    }\n  }, {\n    key: \"documentClickHandle\",\n    value: function documentClickHandle(e) {\n      var expendPanel = this.refs.expendPanel;\n      var target = e.target;\n      while (target) {\n        if (target === expendPanel) {\n          return;\n        }\n        target = target.parentNode;\n      }\n      this.closeDropPanel();\n    }\n  }, {\n    key: \"closeDropPanel\",\n    value: function closeDropPanel() {\n      this.setState({\n        showPanel: false,\n        visible: false\n      });\n    }\n\n    // dropDownType 0：不分左右 1：分左右  默认0\n  }, {\n    key: \"handleClick\",\n    value: function handleClick() {\n      var _this$state$items2;\n      var _this$props = this.props,\n        isLock = _this$props.isLock,\n        btnKey = _this$props.btnKey,\n        dropDownType = _this$props.dropDownType,\n        select = _this$props.select;\n      if (dropDownType !== DROPDOWN_TYPE.allDrowdown || isLock) return;\n      if (!((_this$state$items2 = this.state.items) !== null && _this$state$items2 !== void 0 && _this$state$items2.length)) {\n        this.props.onClick(btnKey, select, this.props);\n        return;\n      }\n      this.setState({\n        showPanel: !this.state.showPanel\n      });\n    }\n  }, {\n    key: \"handleDefaultClick\",\n    value: function handleDefaultClick() {\n      var _this$state$items3, _this$defaultItem;\n      var _this$props2 = this.props,\n        isLock = _this$props2.isLock,\n        btnKey = _this$props2.btnKey,\n        select = _this$props2.select,\n        dropDownType = _this$props2.dropDownType;\n      if (isLock || dropDownType === DROPDOWN_TYPE.allDrowdown) return;\n      if (!((_this$state$items3 = this.state.items) !== null && _this$state$items3 !== void 0 && _this$state$items3.length)) {\n        this.props.onClick(btnKey, select, this.props);\n        return;\n      }\n      this.listClick((_this$defaultItem = this.defaultItem) === null || _this$defaultItem === void 0 ? void 0 : _this$defaultItem.value, this.defaultItem, 'default');\n    }\n\n    // handleMouseMove = (e) => {\n    //   if (!this.dropContainer.current?.contains(e.target)) {\n    //     this.setState({\n    //       visible: false\n    //     })\n    //   }\n    // }\n  }, {\n    key: \"handleExpendClick\",\n    value: function handleExpendClick(e) {\n      if (this.props.isLock) return;\n      this.setState({\n        showPanel: !this.state.showPanel\n      });\n    }\n  }, {\n    key: \"handleMouseOver\",\n    value: function handleMouseOver(e) {\n      this.setState({\n        visible: true\n      });\n    }\n  }, {\n    key: \"listClick\",\n    value: function listClick(value, item, type) {\n      if (item.disable) return;\n      this.props.onClick(this.props.btnKey, value, _objectSpread(_objectSpread({}, item), {}, {\n        type: type\n      }));\n      this.setState({\n        showPanel: false,\n        visible: false\n      });\n    }\n  }, {\n    key: \"getSelectText\",\n    value: function getSelectText() {\n      var currentItem = this.props.items.find(function (_ref2) {\n        var select = _ref2.select;\n        return select;\n      });\n      return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.text) || this.props.value; // 如果下拉项中没有选中值的时候，就显示value值，这个value不存在于下拉项中，只起到一个展示的作用\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$state$items4, _this$defaultItem2;\n      var _this$props3 = this.props,\n        _this$props3$title = _this$props3.title,\n        title = _this$props3$title === void 0 ? {} : _this$props3$title,\n        _this$props3$dropDown = _this$props3.dropDownType,\n        dropDownType = _this$props3$dropDown === void 0 ? DROPDOWN_TYPE.allDrowdown : _this$props3$dropDown,\n        _this$props3$showTitl = _this$props3.showTitle,\n        showTitle = _this$props3$showTitl === void 0 ? '' : _this$props3$showTitl,\n        mainIconClass = _this$props3.mainIconClass,\n        Component = _this$props3.Component,\n        btnType = _this$props3.btnType,\n        style = _this$props3.style,\n        className = _this$props3.className;\n      var itemTitle = title[this.userLocal] || title;\n      var isShowExpend = ((_this$state$items4 = this.state.items) === null || _this$state$items4 === void 0 ? void 0 : _this$state$items4.length) > 0 || this.props.DropdownRender;\n      var dropLists = this.showDropList();\n      var dropTopStyle = (0, _classnames9[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].dropTop, true), \"kd-cq-spread-toolbar-item-disable \".concat(_spreadToolbar[\"default\"].toolbar_item_disable), this.props.isLock), _spreadToolbar[\"default\"].onenessColor, dropDownType === DROPDOWN_TYPE.allDrowdown), _spreadToolbar[\"default\"].hover, this.state.showPanel), _spreadToolbar[\"default\"].active, this.state.showPanel && dropDownType === DROPDOWN_TYPE.allDrowdown || this.props.select));\n      var leftIconClass = (0, _classnames9[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].leftIcon, true), _spreadToolbar[\"default\"].splitColor, dropDownType !== DROPDOWN_TYPE.allDrowdown), \"kd-cq-spread-toolbar-item-disable \".concat(_spreadToolbar[\"default\"].toolbar_item_disable), this.props.dropDownType === DROPDOWN_TYPE.arrowDrowdown && ((_this$defaultItem2 = this.defaultItem) === null || _this$defaultItem2 === void 0 ? void 0 : _this$defaultItem2.isLock)));\n      var expendIconClass = (0, _classnames9[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({\n        kdfont: true,\n        'iconcool xialasanjiao': true\n      }, _spreadToolbar[\"default\"].rightIcon, true), _spreadToolbar[\"default\"].splitColor, dropDownType !== DROPDOWN_TYPE.allDrowdown), _spreadToolbar[\"default\"].active, this.state.showPanel), _spreadToolbar[\"default\"].arrowFocus, this.state.showPanel));\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: (0, _classnames9[\"default\"])(className, _spreadToolbar[\"default\"].dropContainer),\n        ref: this.dropContainer\n      }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n        tip: this.props.tips || itemTitle,\n        showPanel: this.state.showPanel,\n        placement: this.props.tipsPlacement\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: dropTopStyle,\n        onClick: this.handleClick,\n        onMouseOver: this.handleMouseOver\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: leftIconClass,\n        onClick: this.handleDefaultClick\n      }, btnType !== 'select' && /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: (0, _classnames9[\"default\"])(_defineProperty(_defineProperty({}, mainIconClass, true), _spreadToolbar[\"default\"].icon, true))\n      }), showTitle && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: _spreadToolbar[\"default\"].itemText\n      }, itemTitle)), btnType === 'select' && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: _spreadToolbar[\"default\"].itemText,\n        style: style\n      }, this.getSelectText())), isShowExpend && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: expendIconClass,\n        onClick: this.handleExpendClick\n      }))), dropLists, Component && /*#__PURE__*/_react[\"default\"].createElement(Component, this.props));\n    }\n  }], [{\n    key: \"getDerivedStateFromProps\",\n    value: function getDerivedStateFromProps(nextProps, prevState) {\n      if (nextProps.items !== prevState.items) {\n        return {\n          items: nextProps.items\n        };\n      }\n      return null;\n    }\n  }]);\n  return DropDownList;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ExportFile.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ExportFile.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _directiveHandle = __webpack_require__(/*! ../../../directives/directiveHandle */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveHandle.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 工具栏导出excel文件\n */\nvar __name__ = 'ExportFile';\nfunction ExportFile(props) {\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  var handleClick = function handleClick() {\n    if (isLocked) return;\n    (0, _directiveHandle.exportExcelFile)({\n      fileName: 'spread'\n    }, getGlobalContext());\n  };\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return props.dataPipeModel.getData(type);\n  };\n  var iconClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, props.icon, true), _spreadToolbar[\"default\"].exportIcon, true));\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].exportFile\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n    tip: props.title\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: iconClass,\n    onClick: handleClick,\n    style: style\n  })));\n}\nvar _default = exports[\"default\"] = ExportFile;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ExportFile.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Find.js":
/*!*********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Find.js ***!
  \*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _useDialogDrag = _interopRequireDefault(__webpack_require__(/*! ./../../../../../../common/useDialogDrag */ \"./src/component/common/useDialogDrag.js\"));\nvar _QueryBuilder = _interopRequireDefault(__webpack_require__(/*! ./QueryBuilder */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/QueryBuilder.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 工具栏查询\n */\nfunction Find(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setEtop = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showQueryBuilder = _useState4[0],\n    setShowQueryBuilder = _useState4[1];\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return props.dataPipeModel.getData(type);\n  };\n  var showDialog = function showDialog() {\n    if (props.isLock) return;\n    setShowQueryBuilder(true);\n  };\n  var closeDialog = function closeDialog() {\n    setShowQueryBuilder(false);\n  };\n  var _useDrag = (0, _useDialogDrag[\"default\"])({\n      dialogWidth: 460\n    }),\n    _useDrag2 = _slicedToArray(_useDrag, 1),\n    setDragRef = _useDrag2[0];\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      var spread = props.dataPipeModel.getData('PostSpread');\n      setEtop(spread.getHost().parentNode);\n    }, 0);\n  }, []);\n  (0, _react.useEffect)(function () {\n    var removeCallback = props.dataPipeModel.registerCallback('QueryBuilder', showDialog);\n    return function () {\n      removeCallback();\n    };\n  }, [props.isLock]);\n  var queryBuilder = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react[\"default\"].createElement(_QueryBuilder[\"default\"], _extends({\n      setDragRef: setDragRef,\n      handleClose: closeDialog,\n      getGlobalContext: getGlobalContext\n    }, props));\n  }, [showQueryBuilder]);\n  return showQueryBuilder ? /*#__PURE__*/_reactDom[\"default\"].createPortal(queryBuilder, eTop) : null;\n}\nvar _default = exports[\"default\"] = Find;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Find.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontDecoration.js":
/*!*******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontDecoration.js ***!
  \*******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.FontDecorationBase = FontDecorationBase;\nexports[\"default\"] = FontDecoration;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 工具栏中的字体装饰按钮组\n */\nvar __name__ = 'FontDecoration';\nfunction FontDecoration(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    isWeight = _useState2[0],\n    setWeight = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isItalic = _useState4[0],\n    setItalic = _useState4[1];\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    isUnderline = _useState6[0],\n    setUnderline = _useState6[1];\n  var canUndoRef = (0, _react.useRef)(true);\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    var handleSelectionChange = function handleSelectionChange(data) {\n      var sheet = props.dataPipeModel.getData('PostSheet');\n      var activeRowIndex = sheet.getActiveRowIndex();\n      var activeColumnIndex = sheet.getActiveColumnIndex();\n      var cell = sheet.getCell(activeRowIndex, activeColumnIndex);\n      var div = document.createElement('div');\n      div.style.font = cell.font();\n      var textDecoration = sheet.getCell(activeRowIndex, activeColumnIndex).textDecoration();\n      var isWeight = div.style.fontWeight === 'bold' || div.style.fontWeight === '700';\n      var isItalic = div.style.fontStyle === 'italic';\n      var isUnderline = textDecoration === 1;\n      canUndoRef.current = false;\n      setWeight(isWeight);\n      setItalic(isItalic);\n      setUnderline(isUnderline);\n    };\n    props.dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (isWeight === undefined || canUndoRef.current === false) return;\n    var fontWeight = isWeight ? 'bold' : 'normal';\n    var args = {\n      type: 'FontChanged',\n      fontType: 3,\n      changeData: fontWeight\n    };\n    props.dataPipeModel.sendData(args);\n  }, [isWeight]);\n  (0, _react.useEffect)(function () {\n    if (isItalic === undefined || canUndoRef.current === false) return;\n    var fontStyle = isItalic ? 'italic' : 'normal';\n    var args = {\n      type: 'FontChanged',\n      fontType: 1,\n      changeData: fontStyle\n    };\n    props.dataPipeModel.sendData(args);\n  }, [isItalic]);\n  (0, _react.useEffect)(function () {\n    if (isUnderline === undefined || canUndoRef.current === false) return;\n    var args = {\n      type: 'UnderlineChanged',\n      underline: isUnderline\n    };\n    props.dataPipeModel.sendData(args);\n  }, [isUnderline]);\n  var handleWeightClick = function handleWeightClick(e) {\n    if (isLocked) return false;\n    canUndoRef.current = true;\n    setWeight(!isWeight);\n  };\n  var handleItalicClick = function handleItalicClick(e) {\n    if (isLocked) return false;\n    canUndoRef.current = true;\n    setItalic(!isItalic);\n  };\n  var handleUnderlineClick = function handleUnderlineClick(e) {\n    if (isLocked) return false;\n    canUndoRef.current = true;\n    setUnderline(!isUnderline);\n  };\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(FontDecorationBase, {\n    isWeight: isWeight,\n    isItalic: isItalic,\n    isUnderline: isUnderline,\n    style: style,\n    handleWeightClick: handleWeightClick,\n    handleItalicClick: handleItalicClick,\n    handleUnderlineClick: handleUnderlineClick\n  });\n}\nfunction FontDecorationBase(props) {\n  var isWeight = props.isWeight,\n    isItalic = props.isItalic,\n    isUnderline = props.isUnderline,\n    style = props.style;\n  var weightClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-jiacu kd-hover-bdcolor': true,\n    'kd-hover-bdcolor': true,\n    'theme-1px-border': isWeight\n  });\n  var styleClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-xieti': true,\n    'kd-hover-bdcolor': true,\n    'theme-1px-border': isItalic\n  });\n  var underlineClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-xiahuaxian': true,\n    'kd-hover-bdcolor': true,\n    'theme-1px-border': isUnderline\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].colorStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: weightClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0002'),\n    onClick: props.handleWeightClick\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: styleClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0003'),\n    onClick: props.handleItalicClick\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: underlineClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0004'),\n    onClick: props.handleUnderlineClick\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontDecoration.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontStyle.js":
/*!**************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontStyle.js ***!
  \**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.FontStyleBase = FontStyleBase;\nexports[\"default\"] = FontStyle;\nexports.fontFamilyArray = void 0;\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _Select = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/Select.js */ \"./src/component/web/base/Select.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 工具栏中的字体样式和大小设置\n */\nvar fontFamilyArray = exports.fontFamilyArray = [(0, _intlApi.getLangMsg)('spread.key0422'), (0, _intlApi.getLangMsg)('spread.key0423'), (0, _intlApi.getLangMsg)('spread.key0424'), (0, _intlApi.getLangMsg)('spread.key0425'), (0, _intlApi.getLangMsg)('spread.key0426'), (0, _intlApi.getLangMsg)('spread.key0427'), 'Arial Unicode MS', 'Calibri', 'Times New Roman'];\nvar fontFamilyData = [{\n  alias: fontFamilyArray[0],\n  value: 0\n}, {\n  alias: fontFamilyArray[1],\n  value: 1\n}, {\n  alias: fontFamilyArray[2],\n  value: 2\n}, {\n  alias: fontFamilyArray[3],\n  value: 3\n}, {\n  alias: fontFamilyArray[4],\n  value: 4\n}, {\n  alias: fontFamilyArray[5],\n  value: 5\n}, {\n  alias: fontFamilyArray[6],\n  value: 6\n}, {\n  alias: fontFamilyArray[7],\n  value: 7\n}, {\n  alias: fontFamilyArray[8],\n  value: 8\n}];\nvar fontSizeData = [{\n  alias: '8',\n  value: 8\n}, {\n  alias: '9',\n  value: 9\n}, {\n  alias: '10',\n  value: 10\n}, {\n  alias: '11',\n  value: 11\n}, {\n  alias: '12',\n  value: 12\n}, {\n  alias: '14',\n  value: 14\n}, {\n  alias: '16',\n  value: 16\n}, {\n  alias: '18',\n  value: 18\n}, {\n  alias: '20',\n  value: 20\n}, {\n  alias: '24',\n  value: 24\n}, {\n  alias: '26',\n  value: 26\n}, {\n  alias: '28',\n  value: 28\n}, {\n  alias: '36',\n  value: 36\n}, {\n  alias: '48',\n  value: 48\n}, {\n  alias: '72',\n  value: 72\n}];\nvar __name__ = 'FontStyle';\nfunction FontStyle(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    fontFamily = _useState2[0],\n    setFontFamily = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    fontSize = _useState4[0],\n    setFontSize = _useState4[1];\n  /**\n   * canUndoRef：是否可撤销的标识\n   * 1.通过用户操作工具栏改变样式的支持ctrl+z撤销\n   * 2.通过选中单元格改变显示的字体样式的不支持ctrl+z撤销\n   */\n  var canUndoRef = (0, _react.useRef)(true);\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLock = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    var handleSelectionChange = function handleSelectionChange(data) {\n      var sheet = props.dataPipeModel.getData('PostSheet');\n      var activeRowIndex = sheet.getActiveRowIndex();\n      var activeColumnIndex = sheet.getActiveColumnIndex();\n      var cell = sheet.getCell(activeRowIndex, activeColumnIndex);\n      var div = document.createElement('div');\n      div.style.font = cell.font();\n      var fontFamily = div.style.fontFamily;\n      if (fontFamily[0] === '\"') {\n        // \"\"Arial Unicode MS\"\"需要去掉前后引号\n        fontFamily = fontFamily.slice(1, -1);\n      }\n      var fontSize = parseInt(div.style.fontSize);\n      var fontFamValue = fontFamilyArray.indexOf(fontFamily);\n      if (fontFamValue !== -1) {\n        setFontFamily(fontFamValue);\n      }\n      if (fontSize) {\n        setFontSize(fontSize);\n      }\n      canUndoRef.current = false;\n    };\n    props.dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (fontFamily === undefined || canUndoRef.current === false) {\n      return;\n    }\n    var args = {\n      type: 'FontChanged',\n      fontType: 5,\n      changeData: fontFamilyArray[fontFamily]\n    };\n    props.dataPipeModel.sendData(args);\n  }, [fontFamily]);\n  (0, _react.useEffect)(function () {\n    if (fontSize === undefined || canUndoRef.current === false) {\n      return;\n    }\n    var args = {\n      type: 'FontChanged',\n      fontType: 4,\n      changeData: fontSize + 'px'\n    };\n    props.dataPipeModel.sendData(args);\n  }, [fontSize]);\n  var handleFontFamilyChange = function handleFontFamilyChange(value) {\n    setFontFamily(value);\n    canUndoRef.current = true;\n  };\n  var handleFontSizeChange = function handleFontSizeChange(value) {\n    setFontSize(value);\n    canUndoRef.current = true;\n  };\n  var others = {\n    showFilter: false,\n    disabled: isLock,\n    required: true\n  };\n  var style = isLock ? {\n    color: '#bbb'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(FontStyleBase, {\n    style: style,\n    fontFamily: fontFamily,\n    fontSize: fontSize,\n    others: others,\n    handleFontFamilyChange: handleFontFamilyChange,\n    handleFontSizeChange: handleFontSizeChange\n  });\n}\nfunction FontStyleBase(props) {\n  var style = props.style,\n    fontFamily = props.fontFamily,\n    fontSize = props.fontSize,\n    others = props.others;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].fontStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Select[\"default\"], _extends({\n    key: \"fontFamily\",\n    items: fontFamilyData,\n    dropdownClassName: _spreadToolbar[\"default\"].dropDown,\n    style: style,\n    className: _spreadToolbar[\"default\"].fontfamily,\n    value: fontFamily,\n    onChange: props.handleFontFamilyChange\n  }, others)), /*#__PURE__*/_react[\"default\"].createElement(_Select[\"default\"], _extends({\n    key: \"fontSize\",\n    items: props.fontSizeData || fontSizeData,\n    dropdownClassName: _spreadToolbar[\"default\"].dropDown,\n    style: style,\n    className: _spreadToolbar[\"default\"].fontSize,\n    value: fontSize,\n    onChange: props.handleFontSizeChange\n  }, others)));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontStyle.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ForeAndBackColor.js":
/*!*********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ForeAndBackColor.js ***!
  \*********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.ColorPickerBase = ColorPickerBase;\nexports[\"default\"] = ForeAndBackColor;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nvar _classnames5 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _ColorPicker = _interopRequireDefault(__webpack_require__(/*! ../../common/ColorPicker */ \"./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.js\"));\nvar _excluded = [\"isLock\", \"dataPipeModel\", \"iconClass\", \"title\", \"defaultColor\", \"colorType\", \"colorChange\", \"buttonText\", \"style\"];\n/**\n * 工具栏中的前景色和背景色设置按钮\n */\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nvar defaultForeColor = '#fc8555';\nvar defaultBackColor = '#ffbb6d';\nvar foreType = 'fore';\nvar backType = 'back';\nfunction ForeAndBackColor(props) {\n  var foreColorIcon = 'iconcool wenbenwusecai';\n  var backColorIcon = 'iconcool youqitongwusecai';\n  var handleColorChange = function handleColorChange(colorType, color) {\n    if (props.isLock) return;\n    var args = {\n      type: 'ColorChanged',\n      colorType: colorType,\n      color: color\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].colorStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(ColorPickerBase, {\n    isLock: props.isLock,\n    dataPipeModel: props.dataPipeModel,\n    iconClass: foreColorIcon,\n    title: (0, _intlApi.getLangMsg)('spread.key0277'),\n    defaultColor: defaultForeColor,\n    colorType: foreType,\n    colorChange: handleColorChange,\n    style: {\n      left: 0\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(ColorPickerBase, {\n    isLock: props.isLock,\n    dataPipeModel: props.dataPipeModel,\n    iconClass: backColorIcon,\n    title: (0, _intlApi.getLangMsg)('spread.key0278'),\n    buttonText: (0, _intlApi.getLangMsg)('spread.key0320'),\n    defaultColor: defaultBackColor,\n    colorType: backType,\n    colorChange: handleColorChange,\n    style: {\n      left: 0\n    }\n  }));\n}\nfunction ColorPickerBase(props) {\n  var isLock = props.isLock,\n    dataPipeModel = props.dataPipeModel,\n    iconClass = props.iconClass,\n    title = props.title,\n    defaultColor = props.defaultColor,\n    colorType = props.colorType,\n    colorChange = props.colorChange,\n    buttonText = props.buttonText,\n    colorPickerStyle = props.style,\n    others = _objectWithoutProperties(props, _excluded);\n  var _useState = (0, _react.useState)(defaultColor),\n    _useState2 = _slicedToArray(_useState, 2),\n    currentColor = _useState2[0],\n    setCurrentColor = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showPanel = _useState4[0],\n    setShowPanel = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    visible = _useState6[0],\n    setVisible = _useState6[1];\n  var panelRef = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    document.addEventListener('click', documentClickHandle);\n    return function () {\n      document.removeEventListener('click', documentClickHandle);\n    };\n  }, []);\n  var documentClickHandle = function documentClickHandle(e) {\n    var colorPickPanel = panelRef.current;\n    var target = e.target;\n    while (target) {\n      if (target === colorPickPanel) {\n        return;\n      }\n      target = target.parentNode;\n    }\n    setShowPanel(false);\n  };\n  var handleMouseEnter = function handleMouseEnter() {\n    setVisible(true);\n  };\n  var handleMouseLeave = function handleMouseLeave() {\n    setVisible(false);\n  };\n  var handleRightClick = function handleRightClick() {\n    if (isLock) return;\n    setShowPanel(!showPanel);\n  };\n  var handleColorChange = function handleColorChange(colorType, color, action) {\n    if (isLock) return;\n    setCurrentColor(color);\n    colorChange(colorType, color);\n    action !== 'write' && setShowPanel(false);\n  };\n  var iconLeft = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({\n    kdfont: true\n  }, iconClass, true), _spreadToolbar[\"default\"].leftIcon, true));\n  var iconRight = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty(_defineProperty({\n    kdfont: true,\n    'iconcool xialasanjiao': true\n  }, _spreadToolbar[\"default\"].rightIcon, true), _spreadToolbar[\"default\"].active, showPanel), _spreadToolbar[\"default\"].arrowFocus, showPanel));\n  var iconLeftStyle = {\n    borderColor: currentColor\n  };\n  var iconContainerClass = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].iconContainer, true), 'kd-hover-bdcolor', true));\n  var style = isLock ? {\n    color: '#bbb'\n  } : null;\n  var colorpickerContainer = (0, _classnames5[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].colorpickerContainer, true), _spreadToolbar[\"default\"].hover, showPanel), \"kd-cq-spread-toolbar-item-disable \".concat(_spreadToolbar[\"default\"].toolbar_item_disable), isLock));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: colorpickerContainer,\n    ref: panelRef\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n    tip: title,\n    showPanel: showPanel\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: iconContainerClass,\n    onMouseEnter: handleMouseEnter,\n    onMouseLeave: handleMouseLeave\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: iconLeft,\n    onClick: function onClick() {\n      return handleColorChange(colorType, currentColor);\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames5[\"default\"])('kd-cq-color-edit-line', _spreadToolbar[\"default\"].line),\n    style: iconLeftStyle\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: iconRight,\n    onClick: handleRightClick\n  }))), showPanel && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].colorSelectPanel,\n    style: colorPickerStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(_ColorPicker[\"default\"], _extends({\n    dataPipeModel: dataPipeModel,\n    defaultColor: currentColor,\n    buttonText: buttonText,\n    colorType: colorType,\n    onColorChange: handleColorChange\n  }, others))));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ForeAndBackColor.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FormatPainter.js":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FormatPainter.js ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames4 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _SpreadTooltip = _interopRequireDefault(__webpack_require__(/*! ./SpreadTooltip */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 工具栏格式刷功能\n */\nfunction FormatPainter(props) {\n  var btnFormat = (0, _react.useRef)(null);\n  var followIcon = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    iconDisplay = _useState2[0],\n    setIconDisplay = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isActive = _useState4[0],\n    setActive = _useState4[1];\n  var spreadNS = _spreadSheets[\"default\"].Spread.Sheets;\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostSpread';\n    return props.dataPipeModel.getData(type);\n  };\n  if (!spreadNS.paintingMode) {\n    spreadNS.paintingMode = 'stop';\n  }\n  var sourceSheet;\n  var sourceRange;\n  var borderColor;\n  var count = 0;\n  var _useState5 = (0, _react.useState)({}),\n    _useState6 = _slicedToArray(_useState5, 2),\n    formatting = _useState6[0],\n    setFormatting = _useState6[1];\n  var handleClick = function handleClick() {\n    if (props.isLock) return;\n    borderColor = borderColor || window.getComputedStyle(btnFormat.current, null).borderColor;\n    count += 1;\n    setTimeout(function () {\n      if (count === 1) {\n        click(getGlobalContext());\n      } else if (count > 1) {\n        dblclick(getGlobalContext());\n      }\n      count = 0;\n    }, 200);\n  };\n  var click = function click(spread) {\n    if (spreadNS.paintingMode === 'stop') {\n      startPainting('once', spread);\n    } else {\n      stopPainting(spread);\n    }\n  };\n  var dblclick = function dblclick(spread) {\n    if (spreadNS.paintingMode === 'stop') {\n      startPainting('many', spread);\n    } else {\n      stopPainting(spread);\n    }\n  };\n  var checkPaintingMode = function checkPaintingMode() {\n    if (spreadNS.paintingMode !== 'many') {\n      setIconDisplay(false);\n      setActive(false);\n      stopPainting(getGlobalContext());\n    }\n  };\n  var startPainting = function startPainting(paintingMode, spread) {\n    setActive(true);\n    setFormatting({\n      borderColor: borderColor\n    });\n    spreadNS.paintingMode = paintingMode;\n    document.addEventListener('mousemove', mousemoveHandler, true);\n    getSourceSheet(spread);\n    spread.bind(spreadNS.Events.SelectionChanged, paintStyle);\n    spread.bind(spreadNS.Events.SelectionChanged, checkPaintingMode);\n  };\n  var stopPainting = function stopPainting(spread) {\n    setFormatting(null);\n    setIconDisplay(false);\n    setActive(false);\n    document.removeEventListener('mousemove', mousemoveHandler, true);\n    spread.unbind(spreadNS.Events.SelectionChanged, paintStyle);\n    spread.unbind(spreadNS.Events.SelectionChanged, checkPaintingMode);\n    spreadNS.paintingMode = 'stop';\n  };\n  var getSourceSheet = function getSourceSheet(spread) {\n    sourceSheet = spread.getActiveSheet();\n    sourceRange = sourceSheet.getSelections().shift();\n  };\n  var paintStyle = function paintStyle() {\n    var spread = getGlobalContext();\n    var targetSheet = spread.getActiveSheet();\n    if (spreadNS.paintingMode === 'stop') return;\n    var source = getActualRange(sourceSheet, sourceRange);\n    var target = getActualRange(targetSheet, targetSheet.getSelections().pop());\n    var args = {\n      type: 'FormatPainter',\n      source: source,\n      target: target,\n      sourceSheet: sourceSheet,\n      targetSheet: targetSheet\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  var getActualRange = function getActualRange(sheet, range) {\n    var isFullRow = range.col === -1;\n    var isFullCol = range.row === -1;\n    return new spreadNS.Range(isFullCol ? 0 : range.row, isFullRow ? 0 : range.col, isFullCol ? sheet.getRowCount() : range.rowCount, isFullRow ? sheet.getColumnCount() : range.colCount);\n  };\n  var mousemoveHandler = function mousemoveHandler(event) {\n    var canvas = getGlobalContext().getHost();\n    var _canvas$getBoundingCl = canvas.getBoundingClientRect(),\n      canvasX = _canvas$getBoundingCl.x,\n      canvasY = _canvas$getBoundingCl.y,\n      canvasWidth = _canvas$getBoundingCl.width,\n      canvasHeight = _canvas$getBoundingCl.height;\n    var x = event.pageX;\n    var y = event.pageY;\n    // spread有一个或两个canvas，第一个是实际使用的，第二个是被隐藏的，用来批量导出\n    if (event.target !== canvas.getElementsByTagName('canvas')[0]) {\n      setIconDisplay(false);\n      return;\n    }\n    if (x > canvasX && y > canvasY && x < canvasX + canvasWidth && y < canvasY + canvasHeight) {\n      spreadNS.paintingMode !== 'stop' && setIconDisplay(true);\n      if (followIcon.current) {\n        followIcon.current.style.cssText += \";left: \".concat(x + 8, \"px;top: \").concat(y, \"px;\");\n      }\n    } else {\n      setIconDisplay(false);\n    }\n  };\n  var painterIcon = (0, _classnames4[\"default\"])(_defineProperty({\n    'iconcool geshishua': true\n  }, _spreadToolbar[\"default\"].painterIcon, true));\n  var brushIcon = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].brushIcon, true), 'iconcool geshishua', true));\n  var formatPainter = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].formatPainter, true), _spreadToolbar[\"default\"].active, isActive), \"kd-cq-spread-toolbar-item-disable \".concat(_spreadToolbar[\"default\"].toolbar_item_disable), props.isLock));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: formatPainter\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadTooltip[\"default\"], {\n    tip: (0, _intlApi.getLangMsg)('spread.key0105')\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].leftIcon\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: painterIcon,\n    onClick: handleClick,\n    style: formatting,\n    ref: btnFormat\n  }))), iconDisplay ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: brushIcon,\n    ref: followIcon\n  }), document.body) : null);\n}\nvar _default = exports[\"default\"] = FormatPainter;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FormatPainter.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FrozenSheets.js":
/*!*****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FrozenSheets.js ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 锁定表格\n * by kechuang\n */\nvar __name__ = 'FrozenSheets';\nvar FrozenSheets = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(FrozenSheets, _React$Component);\n  function FrozenSheets(props) {\n    var _this;\n    _classCallCheck(this, FrozenSheets);\n    _this = _callSuper(this, FrozenSheets, [props]);\n    _this.state = {\n      isLock: false\n    };\n    _this.name = __name__;\n    _this.handleItemClick = _this.handleItemClick.bind(_assertThisInitialized(_this));\n    _this.setLock = _this.setLock.bind(_assertThisInitialized(_this));\n    _this.frozenSheetItems = [{\n      text: (0, _intlApi.getLangMsg)('spread.key0044'),\n      hasIcon: false,\n      eventType: 1,\n      key: \"\".concat(__name__, \"_FrozenSheets\")\n    }, {\n      text: (0, _intlApi.getLangMsg)('spread.key0045'),\n      hasIcon: false,\n      eventType: 2,\n      key: \"\".concat(__name__, \"_UnfrozenSheets\")\n    }];\n    return _this;\n  }\n  _createClass(FrozenSheets, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var setLock = this.setLock;\n      this.props.dataPipeModel.registerCallback('LockToolbarItem', setLock);\n    }\n  }, {\n    key: \"setLock\",\n    value: function setLock(data) {\n      if (this.name === data.name) {\n        this.setState({\n          isLock: data.isLock\n        });\n      }\n    }\n  }, {\n    key: \"handleItemClick\",\n    value: function handleItemClick(type) {\n      var args = {};\n      args.type = 'FrozenSheet';\n      args.frozenType = type;\n      this.props.dataPipeModel.sendData(args);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this2 = this;\n      var isLock = this.state.isLock || this.props.isLockAll && !(this.props.allowSingleUnlock && this.state.isLock === 0);\n      var mainClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].lockSheet, true), 'kdfont kdfont-dongjiechuangti', true));\n      var items = function items() {\n        var customSubItem = _this2.props.customSubItem || [];\n        return [].concat(_toConsumableArray(_this2.frozenSheetItems), _toConsumableArray(customSubItem));\n      };\n      var otherProps = {\n        dataPipeModel: this.props.dataPipeModel\n      };\n      return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n        isLock: isLock,\n        hasExpendIcon: false,\n        title: (0, _intlApi.getLangMsg)('spread.key0044'),\n        items: items(),\n        mainIconClass: mainClass,\n        onItemClick: this.handleItemClick,\n        icon: \"image\"\n      }, this.props, otherProps));\n    }\n  }]);\n  return FrozenSheets;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FrozenSheets.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.js":
/*!********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.js ***!
  \********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.SpreadInputNumber = SpreadInputNumber;\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _InsertRowAndCol = _interopRequireDefault(__webpack_require__(/*! ./InsertRowAndCol.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _InputNumber = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/InputNumber */ \"./src/component/web/base/InputNumber.jsx\"));\nvar _serverSpreadParams = __webpack_require__(/*! ../../../constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nvar _excluded = [\"formatKey\", \"updateFormat\", \"onKeyDown\", \"value\", \"disabled\"];\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar DEFAULT_VALUE = 1;\nvar InsertRowAndCol = /*#__PURE__*/_react[\"default\"].forwardRef(function (props, ref) {\n  var _spread$current, _spread$current2;\n  var items = props.items,\n    dataPipeModel = props.dataPipeModel,\n    closeDropPanel = props.closeDropPanel,\n    className = props.className;\n  var spread = (0, _react.useRef)(null);\n  (0, _react.useEffect)(function () {\n    spread.current = dataPipeModel.getData('PostSpread');\n  }, []);\n  var isExistIcon = items.find(function (_ref) {\n    var icon = _ref.icon;\n    return icon;\n  });\n\n  // <InputNumber style={style} value={value} onBlur={handleBlur} {...others} />\n\n  var _useState = (0, _react.useState)({}),\n    _useState2 = _slicedToArray(_useState, 2),\n    info = _useState2[0],\n    setinfo = _useState2[1];\n  var updateFormat = function updateFormat(key, val) {\n    setinfo(_objectSpread(_objectSpread({}, info), {}, _defineProperty({}, key, val)));\n  };\n  var itemClick = function itemClick(e, isLock) {\n    if (isLock || e.target.tagName === 'INPUT') return;\n    var type = e.currentTarget.getAttribute('data-value');\n    insertRowAndCol(type);\n  };\n  var insertRowAndCol = function insertRowAndCol(key) {\n    var args;\n    var val = Number(info[key]) || DEFAULT_VALUE;\n    switch (Number(key)) {\n      case 1:\n        args = {\n          type: 'AddRow',\n          addType: 5,\n          count: val\n        };\n        break;\n      case 2:\n        args = {\n          type: 'AddRow',\n          addType: 5,\n          count: val,\n          dir: 'bottom'\n        };\n        break;\n      case 3:\n        args = {\n          type: 'AddRow',\n          addType: 6,\n          count: val\n        };\n        break;\n      case 4:\n        args = {\n          type: 'AddRow',\n          addType: 6,\n          count: val,\n          dir: 'after'\n        };\n        break;\n      case 5:\n        args = {\n          type: 'DeleteRow',\n          deleteType: 3\n        };\n        break;\n      case 6:\n        args = {\n          type: 'DeleteRow',\n          deleteType: 4\n        };\n        break;\n      default:\n        break;\n    }\n    dataPipeModel.sendData(args);\n    closeDropPanel();\n  };\n  var handleKeyDown = function handleKeyDown(e, key) {\n    if (e.keyCode === 13) {\n      insertRowAndCol(key);\n    }\n  };\n  var inputProps = {\n    defaultValue: 1,\n    max: (_spread$current = spread.current) !== null && _spread$current !== void 0 && (_spread$current = _spread$current.serverSpreadParams) !== null && _spread$current !== void 0 && _spread$current[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 9999 : 999,\n    min: 1,\n    digitLength: (_spread$current2 = spread.current) !== null && _spread$current2 !== void 0 && (_spread$current2 = _spread$current2.serverSpreadParams) !== null && _spread$current2 !== void 0 && _spread$current2[_serverSpreadParams.ALLOW_MAX_INSERT_9999] ? 4 : 3,\n    decimalLength: 0\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    ref: ref,\n    className: (0, _classnames3[\"default\"])(_InsertRowAndCol[\"default\"].dropExpendPanel, className)\n  }, items.map(function (item, index) {\n    var icon = null;\n    if (isExistIcon) {\n      var iconStyle = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, item.icon, true), _InsertRowAndCol[\"default\"].icon, true));\n      icon = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: iconStyle\n      });\n    }\n    var dropListStyle = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _InsertRowAndCol[\"default\"].dropList, true), 'kd-cq-spread-dropdown', true), 'kd-hover', !item.isLock), \"\".concat(_InsertRowAndCol[\"default\"].disable, \" kd-cq-spread-dropdown-disabled\"), item.isLock), 'theme select-selected', item.select));\n    var hidden = item.hidden,\n      text = item.text,\n      value = item.value,\n      key = item.key;\n    if (hidden) return null;\n    return key === 'separator' ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _InsertRowAndCol[\"default\"].separator,\n      key: \"\".concat(key, \"_\").concat(index)\n    }) : /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: dropListStyle,\n      \"data-value\": value,\n      onClick: function onClick(e) {\n        return itemClick(e, item.isLock);\n      },\n      key: key\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _InsertRowAndCol[\"default\"].text\n    }, icon, text), item.input && /*#__PURE__*/_react[\"default\"].createElement(SpreadInputNumber, _extends({\n      value: info[value] || DEFAULT_VALUE,\n      formatKey: value,\n      updateFormat: updateFormat,\n      onKeyDown: handleKeyDown,\n      disabled: item.isLock\n    }, inputProps)));\n  }));\n});\nvar _default = exports[\"default\"] = InsertRowAndCol;\nfunction SpreadInputNumber(props) {\n  var formatKey = props.formatKey,\n    updateFormat = props.updateFormat,\n    onKeyDown = props.onKeyDown,\n    value = props.value,\n    disabled = props.disabled,\n    inputProps = _objectWithoutProperties(props, _excluded);\n  var handleChange = function handleChange(e) {\n    var val = e.target.value;\n    updateFormat(formatKey, val);\n  };\n  var handleKeyDown = function handleKeyDown(e) {\n    onKeyDown(e, formatKey);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_InputNumber[\"default\"], _extends({\n    value: value || DEFAULT_VALUE,\n    onChange: handleChange,\n    onKeyDown: handleKeyDown,\n    mask: \"####\",\n    mustInScope: true,\n    disabled: disabled,\n    className: (0, _classnames3[\"default\"])('kd-cq-input', _InsertRowAndCol[\"default\"].input)\n  }, inputProps));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/LockCells.js":
/*!**************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/LockCells.js ***!
  \**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames4 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 工具栏的锁定单元格按钮\n */\nvar lockCellIconClass = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].lockCellIcon, true), 'kdfont kdfont-suoding', true));\nvar unlockCellIconClass = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].unlockCellIcon, true), 'kdfont kdfont-jiechusuoding', true));\nvar __name__ = 'LockCells';\nfunction LockCells(props) {\n  var _props$customSubItem;\n  var lockCellItems = (0, _react.useRef)([{\n    text: (0, _intlApi.getLangMsg)('spread.key0029'),\n    hasIcon: true,\n    iconClass: lockCellIconClass,\n    eventType: 1,\n    key: \"\".concat(__name__, \"_LockCells\")\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0030'),\n    hasIcon: true,\n    iconClass: unlockCellIconClass,\n    eventType: 2,\n    key: \"\".concat(__name__, \"_UnlockCells\")\n  }]);\n  var isLocked = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  }) || props.isLockAll;\n  var itemClick = function itemClick(type) {\n    var args = {};\n    args.type = 'LockCell';\n    args.lockType = type;\n    props.dataPipeModel.sendData(args);\n  };\n  var mainIconClass = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].lockCellIcon, true), 'kdfont kdfont-suoding', true));\n  var items = (0, _react.useMemo)(function () {\n    var customSubItem = props.customSubItem || [];\n    return [].concat(_toConsumableArray(lockCellItems.current), _toConsumableArray(customSubItem));\n  }, [props.refresh, (_props$customSubItem = props.customSubItem) === null || _props$customSubItem === void 0 ? void 0 : _props$customSubItem.length, lockCellItems.current.length]);\n  var otherProps = {\n    model: props.model,\n    invokeControlMethodOnly: props.invokeControlMethodOnly,\n    dataPipeModel: props.dataPipeModel\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n    isLock: isLocked,\n    hasExpendIcon: true,\n    title: (0, _intlApi.getLangMsg)('spread.key0031'),\n    items: items,\n    mainIconClass: mainIconClass,\n    onItemClick: itemClick\n  }, otherProps));\n}\nvar _default = exports[\"default\"] = LockCells;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/LockCells.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MergeCells.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MergeCells.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 工具栏的合并单元格按钮\n */\nvar __name__ = 'MergeCells';\nfunction MergeCells(props) {\n  var _props$customSubItem;\n  var mergeCellItems = (0, _react.useRef)([{\n    text: (0, _intlApi.getLangMsg)('spread.key0032'),\n    hasIcon: false,\n    eventType: 1,\n    key: \"\".concat(__name__, \"_MergeCells\")\n  }, {\n    text: (0, _intlApi.getLangMsg)('spread.key0033'),\n    hasIcon: false,\n    eventType: 2,\n    key: \"\".concat(__name__, \"_UnmergeCells\")\n  }]);\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  var itemClick = function itemClick(type) {\n    var args = {};\n    args.type = 'MergeCell';\n    args.mergeType = type;\n    props.dataPipeModel.sendData(args);\n  };\n  var mainIconClass = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].mergeCellIcon, true), 'kdfont kdfont-hebingdanyuange', true));\n  var items = (0, _react.useMemo)(function () {\n    var customSubItem = props.customSubItem || [];\n    return [].concat(_toConsumableArray(mergeCellItems.current), _toConsumableArray(customSubItem));\n  }, [props.refresh, (_props$customSubItem = props.customSubItem) === null || _props$customSubItem === void 0 ? void 0 : _props$customSubItem.length, mergeCellItems.current.length]);\n  var otherProps = {\n    dataPipeModel: props.dataPipeModel\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n    isLock: isLocked,\n    hasExpendIcon: true,\n    title: (0, _intlApi.getLangMsg)('spread.key0034'),\n    items: items,\n    mainIconClass: mainIconClass,\n    onItemClick: itemClick\n  }, props, otherProps));\n}\nvar _default = exports[\"default\"] = MergeCells;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MergeCells.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.js":
/*!********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.js ***!
  \********************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = MoveOrCopySheet;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _Dialog = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/Dialog */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _MoveOrCopySheet = _interopRequireDefault(__webpack_require__(/*! ./MoveOrCopySheet.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.less\"));\nvar _CheckBox = _interopRequireDefault(__webpack_require__(/*! @/component/web/base/BaseComponents/CheckBox */ \"./src/component/web/base/BaseComponents/CheckBox.jsx\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _componentutil = __webpack_require__(/*! @/util/componentutil */ \"./src/util/componentutil.js\");\nvar _reportUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _bindEvent = __webpack_require__(/*! ../../../events/bindEvent */ \"./src/component/web/DataGrid/ReportGrid/events/bindEvent.js\");\nvar _common = __webpack_require__(/*! ../../../utils/common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar MOVE_TO_LAST = {\n  // 移至最后\n  key: \"moveToLast_\".concat((0, _componentutil.createNewId)()),\n  name: (0, _intlApi.getLangMsg)('spread.key0316')\n};\nfunction MoveOrCopySheet(props) {\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    showMoveOrCopySheet = _useState2[0],\n    setShowMoveOrCopySheet = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    eTop = _useState4[0],\n    setEtop = _useState4[1];\n  (0, _react.useEffect)(function () {\n    props.dataPipeModel.registerCallback('MoveOrCopySheet', handleClick);\n    setTimeout(function () {\n      var spread = props.dataPipeModel.getData('PostSpread');\n      setEtop(spread.getHost().parentNode);\n    }, 0);\n  }, []);\n  var handleClick = function handleClick() {\n    setShowMoveOrCopySheet(true);\n  };\n  var handleCloseClick = function handleCloseClick() {\n    setShowMoveOrCopySheet(false);\n  };\n  return showMoveOrCopySheet ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(MoveOrCopySheetDialog, _extends({\n    closeClick: handleCloseClick\n  }, props)), eTop) : null;\n}\nfunction MoveOrCopySheetDialog(props) {\n  var _useState5 = (0, _react.useState)(null),\n    _useState6 = _slicedToArray(_useState5, 2),\n    sheetList = _useState6[0],\n    setSheetList = _useState6[1]; // 工作表列表\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    isCopy = _useState8[0],\n    setIsCopy = _useState8[1]; // 是否创建副本\n  var _useState9 = (0, _react.useState)(),\n    _useState10 = _slicedToArray(_useState9, 2),\n    selectSheet = _useState10[0],\n    setSelectSheet = _useState10[1]; // 当前选中工作表\n\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return props.dataPipeModel.getData(type);\n  };\n  (0, _react.useEffect)(function () {\n    var sheets = getSheetList();\n    sheets.push(MOVE_TO_LAST);\n    setSheetList(sheets);\n    setSelectSheet(sheets[0]);\n  }, []);\n  var getSheetList = function getSheetList() {\n    var spread = getGlobalContext().spread;\n    var sheets = spread.sheets.map(function (sheet) {\n      return {\n        key: \"\".concat(sheet.name(), \"_\").concat((0, _componentutil.createNewId)()),\n        name: sheet.name()\n      };\n    });\n    return sheets;\n  };\n  var handleItemClick = function handleItemClick(e, sheet) {\n    setSelectSheet(sheet);\n  };\n  var handleMouseDown = function handleMouseDown() {\n    setIsCopy(!isCopy);\n  };\n  var handleConfirm = function handleConfirm() {\n    var spread = getGlobalContext().spread;\n    var targetIndex = selectSheet.key === MOVE_TO_LAST.key ? spread.getSheetCount() : spread.getSheetIndex(selectSheet.name); // 移到哪个工作表索引（index）之前\n    var activeSheet = spread.getActiveSheet();\n    var selecteSheetList = (0, _reportUtils.getSelectedSheet)(spread);\n    var sourceLastSheetIndex = spread.getSheetIndex(selecteSheetList[0]); // 选中工作表的第一个工作表，用于判断是否需要移动\n    if (!isCopy && selecteSheetList.length === 1 && (targetIndex === sourceLastSheetIndex + 1 || targetIndex === sourceLastSheetIndex)) {\n      // 如果不为创建副本且顺序没有改变时，仅考虑单个移动的情况，多选情况太复杂暂不考虑\n      props.closeClick();\n      return;\n    }\n    var flagIndex = 0;\n    selecteSheetList.forEach(function (sheetName) {\n      var sourceIndex = spread.getSheetIndex(sheetName);\n      if (isCopy) {\n        targetIndex = targetIndex + flagIndex;\n        var sheetEvent = props.dataPipeModel.getData('PostSheetEvent');\n        var sourceSheetName = spread.getSheet(sourceIndex).name();\n        var moveSheetJSON = JSON.stringify(spread.sheets[sourceIndex].toJSON());\n        spread.addSheet(targetIndex); // 先创建一个空的sheet添加到spread中\n        spread.suspendPaint();\n        spread.getSheet(targetIndex).fromJSON(JSON.parse(moveSheetJSON)); // 将源数据复制过来\n        spread.getSheet(targetIndex).name(getRepeatSheetName(getSheetList(), sourceSheetName));\n        (0, _bindEvent.bindSheetEvent)(spread.getSheet(targetIndex), sheetEvent); // 为新表格绑定事件\n        (0, _common.setSheetDefaultStyle)(spread); // 设置默认样式，例如字体大小等\n        spread.resumePaint();\n        flagIndex++;\n      } else {\n        targetIndex = sourceIndex > targetIndex ? targetIndex : targetIndex - 1;\n        spread.changeSheetIndex(sheetName, targetIndex);\n        var args = {\n          method: 'exchangeSheet',\n          afterIndex: targetIndex,\n          beforIndex: sourceIndex\n        };\n        props.invokeControlMethodOnly(props.model, 'askExecute', [args]);\n      }\n    });\n    (0, _reportUtils.setSelectedSheet)(activeSheet.name(), spread);\n    spread.setActiveSheet(activeSheet.name());\n    spread.refresh();\n    props.closeClick();\n  };\n\n  // 副本重命名的逻辑是，副本是空格+括号+序号+反括号的形式，比如sheet的副本名称是sheet (1)\n  // 创建的副本，序号永远是比最后一个副本序号大一个\n  var getRepeatSheetName = function getRepeatSheetName(sheetList, activeSheet) {\n    var repeatSheet = activeSheet.replace(/\\s\\(\\d+\\)$/g, ''); // 将当前需要创建副本的sheet格式化为原始文件名的形式（将最后一个空格与序号替换为空，如果不存在则不会替换）\n    var repeatSheetList = sheetList.filter(function (_ref) {\n      var name = _ref.name;\n      return name.replace(/\\s\\(\\d+\\)$/g, '') === repeatSheet;\n    }); // 每个sheet都格式化为原始文件名的形式，与要创建副本sheet的进行比对\n    var repeatSheetNumber = repeatSheetList.map(function (_ref2) {\n      var _name$match;\n      var name = _ref2.name;\n      var number = (_name$match = name.match(/\\((\\d+)\\)$/)) === null || _name$match === void 0 ? void 0 : _name$match.pop(); // 获取副本sheetList中的序号\n      return number || 0;\n    });\n    var maxNumber = Math.max.apply(Math, _toConsumableArray(repeatSheetNumber)) + 1;\n    return \"\".concat(repeatSheet, \" (\").concat(maxNumber, \")\");\n  };\n  var contentStyle = {\n    width: 460\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0312'),\n    dialogContentStyle: contentStyle,\n    closeClick: props.closeClick,\n    confirmClick: handleConfirm\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _MoveOrCopySheet[\"default\"].mainContainer\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n    className: _MoveOrCopySheet[\"default\"].mianTitle\n  }, (0, _intlApi.getLangMsg)('spread.key0313')), /*#__PURE__*/_react[\"default\"].createElement(\"p\", {\n    className: _MoveOrCopySheet[\"default\"].mianSubTitle\n  }, (0, _intlApi.getLangMsg)('spread.key0314')), /*#__PURE__*/_react[\"default\"].createElement(\"ul\", {\n    className: _MoveOrCopySheet[\"default\"].sheetList\n  }, sheetList === null || sheetList === void 0 ? void 0 : sheetList.map(function (sheet) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"li\", {\n      key: sheet.key,\n      onClick: function onClick(e) {\n        return handleItemClick(e, sheet);\n      },\n      className: (0, _classnames[\"default\"])(_defineProperty({}, _MoveOrCopySheet[\"default\"].selected, sheet.key === selectSheet.key))\n    }, sheet.name);\n  })), /*#__PURE__*/_react[\"default\"].createElement(_CheckBox[\"default\"], {\n    styleType: 2,\n    text: (0, _intlApi.getLangMsg)('spread.key0315'),\n    value: isCopy,\n    onMouseDown: handleMouseDown\n  })));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.js":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Print;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _printInfo = __webpack_require__(/*! ../../../constant/printInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/printInfo.js\");\nvar _SidebarHeader = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SidebarHeader */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SidebarHeader.js\"));\nvar _SpreadSelect = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadSelect */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadSelect.js\"));\nvar _SpreadInputNumber = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadInputNumber */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputNumber.js\"));\nvar _SpreadInputText = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadInputText */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadInputText.js\"));\nvar _SpreadCheckbox = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadCheckbox */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckbox.js\"));\nvar _SpreadRadio = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadRadio */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRadio.jsx\"));\nvar _SpreadCheckboxGroup = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadCheckboxGroup */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadCheckboxGroup.js\"));\nvar _SpreadRangeSelect = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/SpreadRangeSelect */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/SpreadRangeSelect.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _common = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/common.js */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _console = _interopRequireDefault(__webpack_require__(/*! @/api/console.js */ \"./src/api/console.js\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _Tab = _interopRequireWildcard(__webpack_require__(/*! ./Tab */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.js\"));\nvar _Print = _interopRequireDefault(__webpack_require__(/*! ./Print.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.less\"));\nvar _serverSpreadParams = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/constant/serverSpreadParams */ \"./src/component/web/DataGrid/ReportGrid/constant/serverSpreadParams.js\");\nvar _reportUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 打印spread\n * by kechuag\n */\nvar __name__ = 'Print';\nfunction Print(_ref) {\n  var dataPipeModel = _ref.dataPipeModel,\n    model = _ref.model,\n    invokeControlMethodOnly = _ref.invokeControlMethodOnly,\n    isLock = _ref.isLock;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setETop = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isCtl = _useState4[0],\n    setIsCtl = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    dialog = _useState6[0],\n    showDialog = _useState6[1];\n  var spreadRef = (0, _react.useRef)();\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  (0, _react.useEffect)(function () {\n    spreadRef.current = getGlobalContext().spread;\n  }, []);\n  (0, _react.useEffect)(function () {\n    // 侧边栏出来的时候会挤压spread，需要重新刷新spread的大小\n    spreadRef.current.refresh();\n  }, [dialog]);\n  var handleClick = function handleClick(param) {\n    if (isLock) return;\n    if (isCtl) {\n      invokeControlMethodOnly(model, 'printClick', []);\n    } else {\n      showPrintDialog(param);\n    }\n  };\n  var showPrintDialog = function showPrintDialog(_ref2) {\n    var isHide = _ref2.isHide;\n    if (dialog) return;\n    if (isHide) {\n      close();\n      return;\n    }\n    var spread = spreadRef.current;\n    setETop(spread.getHost().parentNode.parentNode.querySelector('div[data-spread-container-print]'));\n    showDialog(true);\n  };\n  var close = function close() {\n    showDialog(false);\n  };\n  var setCtl = function setCtl(data) {\n    if (data.name === __name__) {\n      setIsCtl(data.isCtl);\n    }\n  };\n  (0, _react.useEffect)(function () {\n    dataPipeModel.registerCallback('ControlToolbarItem', setCtl);\n    dataPipeModel.registerCallback('print', handleClick);\n  }, []);\n  return dialog ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(PrintInfoDialog, {\n    spread: spreadRef.current,\n    dataPipeModel: dataPipeModel,\n    handleClose: close,\n    pageId: model.pageId\n  }), eTop) : null;\n}\nvar PrintInfoDialog = /*#__PURE__*/_react[\"default\"].memo(function (_ref3) {\n  var spread = _ref3.spread,\n    dataPipeModel = _ref3.dataPipeModel,\n    handleClose = _ref3.handleClose,\n    pageId = _ref3.pageId;\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    loading = _useState8[0],\n    setLoading = _useState8[1];\n  var highlightConfig = (0, _react.useRef)(null);\n  var getPrintSheet = function getPrintSheet() {\n    var _spread$serverSpreadP;\n    return (_spread$serverSpreadP = spread.serverSpreadParams) !== null && _spread$serverSpreadP !== void 0 && _spread$serverSpreadP[_serverSpreadParams.USE_SHEET_PRINT_CONFIG] ? spread.getActiveSheet() : spread.getSheet(0);\n  };\n  var getDefaultPrintInfo = function getDefaultPrintInfo(sheet) {\n    var previousPrintInfo = sheet.tag() || {}; // 用户配置\n    var defaultPrintInfo = (0, _printInfo.getNewPrintInfo)(); // 默认配置\n    // 用户配置>上次使用的配置>默认配置\n    // PRJ-00451668 产品确认每次更改将配置保存在spread的Tag当中，因此不再存在上次使用的配置\n    var getCheckInfo = function getCheckInfo() {\n      var checkInfos = {};\n      for (var key in defaultPrintInfo) {\n        var checkInfo = null;\n        if (defaultPrintInfo[key].value === false) {\n          if (previousPrintInfo[key] !== undefined) {\n            checkInfo = previousPrintInfo[key];\n          } else {\n            checkInfo = defaultPrintInfo[key].value;\n          }\n        } else if (Array.isArray(defaultPrintInfo[key].value)) {\n          var _previousPrintInfo$ke;\n          checkInfo = (_previousPrintInfo$ke = previousPrintInfo[key]) !== null && _previousPrintInfo$ke !== void 0 ? _previousPrintInfo$ke : defaultPrintInfo[key].defaultValue;\n        } else {\n          var _previousPrintInfo$ke2;\n          checkInfo = (_previousPrintInfo$ke2 = previousPrintInfo[key]) !== null && _previousPrintInfo$ke2 !== void 0 ? _previousPrintInfo$ke2 : defaultPrintInfo[key].value;\n        }\n        Object.assign(checkInfos, _defineProperty({}, key, checkInfo));\n      }\n      return _objectSpread({}, checkInfos);\n    };\n    return _objectSpread({}, getCheckInfo());\n  };\n  var beforePrint = function beforePrint(type, args) {\n    var iframe = args.iframe;\n    var printFn = iframe.contentWindow.print;\n    iframe.contentWindow.print = function () {\n      setTimeout(function () {\n        printFn.apply(null, arguments);\n        if (highlightConfig.current) (0, _common.setSheetTag)(spread.getActiveSheet(), {\n          highlightConfig: highlightConfig.current\n        });\n        setLoading(false);\n        handleClose();\n      }, 10);\n    };\n  };\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      spread.bind(_spreadSheets[\"default\"].Spread.Sheets.Events.BeforePrint, beforePrint);\n    }, 0);\n    dataPipeModel.sendData({\n      type: 'ConditionalFormats',\n      isHide: true\n    });\n    return function () {\n      spread.unbind(_spreadSheets[\"default\"].Spread.Sheets.Events.BeforePrint, beforePrint);\n    };\n  }, []);\n  var updateInfo = function updateInfo(key, value) {\n    var _spread$serverSpreadP2;\n    var selectedSheet = (0, _reportUtils.getSelectedSheet)(spread);\n    if ((_spread$serverSpreadP2 = spread.serverSpreadParams) !== null && _spread$serverSpreadP2 !== void 0 && _spread$serverSpreadP2[_serverSpreadParams.USE_SHEET_PRINT_CONFIG] && selectedSheet.length > 1) {\n      // 多选时，更新是更新所有工作表的打印配置\n      var activeSheetTag = spread.getActiveSheet().tag() || {};\n      activeSheetTag[key] = value;\n      selectedSheet.forEach(function (sheetName) {\n        var sheet = spread.getSheetFromName(sheetName);\n        var copyActiveSheetTag = (0, _lodash.cloneDeep)(activeSheetTag);\n        // 这里不能改数据结构 后端已经在用了\n        sheet.tag(copyActiveSheetTag);\n      });\n    } else {\n      var tagInfo = getPrintSheet().tag() || {};\n      tagInfo[key] = value;\n      // 这里不能改数据结构 后端已经在用了\n      getPrintSheet().tag(tagInfo);\n    }\n  };\n  var getSpreadPrintInfo = function getSpreadPrintInfo(sheet, customPrintInfo) {\n    var orientation = customPrintInfo.orientation,\n      paperSize = customPrintInfo.paperSize,\n      showColumnHeader = customPrintInfo.showColumnHeader,\n      showRowHeader = customPrintInfo.showRowHeader,\n      repeatRowStart = customPrintInfo.repeatRowStart,\n      repeatRowEnd = customPrintInfo.repeatRowEnd,\n      repeatColumnStart = customPrintInfo.repeatColumnStart,\n      repeatColumnEnd = customPrintInfo.repeatColumnEnd,\n      zoomFactor = customPrintInfo.zoomFactor,\n      showPageNumber = customPrintInfo.showPageNumber,\n      printArea = customPrintInfo.printArea,\n      blackAndWhite = customPrintInfo.blackAndWhite,\n      bestFit = customPrintInfo.bestFit,\n      _customPrintInfo$fitP = customPrintInfo.fitPagesTall,\n      fitPagesTall = _customPrintInfo$fitP === void 0 ? 1 : _customPrintInfo$fitP,\n      _customPrintInfo$fitP2 = customPrintInfo.fitPagesWide,\n      fitPagesWide = _customPrintInfo$fitP2 === void 0 ? 1 : _customPrintInfo$fitP2,\n      printCenteringnumber = customPrintInfo.printCenteringnumber,\n      removeHorizontalBlank = customPrintInfo.removeHorizontalBlank,\n      qualityFactor = customPrintInfo.qualityFactor,\n      marginTop = customPrintInfo.marginTop,\n      marginRight = customPrintInfo.marginRight,\n      marginBottom = customPrintInfo.marginBottom,\n      marginLeft = customPrintInfo.marginLeft,\n      headerLeft = customPrintInfo.headerLeft,\n      headerCenter = customPrintInfo.headerCenter,\n      headerRight = customPrintInfo.headerRight,\n      footerLeft = customPrintInfo.footerLeft,\n      footerCenter = customPrintInfo.footerCenter,\n      footerRight = customPrintInfo.footerRight,\n      showGridLine = customPrintInfo.showGridLine,\n      range = customPrintInfo.range;\n    var printInfo = new _spreadSheets[\"default\"].Spread.Sheets.Print.PrintInfo();\n    printInfo.margin({\n      top: Number(marginTop),\n      bottom: Number(marginBottom),\n      left: Number(marginLeft),\n      right: Number(marginRight),\n      header: 0,\n      footer: 0\n    });\n    printInfo.showBorder(false);\n    printInfo.orientation(orientation);\n    // 这个功能会影响原有的横向打印,所以与陈浩烁沟通决定将横向打印去除空白页这个功能做成可配置的\n    if (orientation === 2 && removeHorizontalBlank) {\n      var _GC$Spread$Sheets$Pri = new _spreadSheets[\"default\"].Spread.Sheets.Print.PaperSize(paperSize),\n        Vo = _GC$Spread$Sheets$Pri.Vo,\n        _v = _GC$Spread$Sheets$Pri._v;\n      printInfo.paperSize(new _spreadSheets[\"default\"].Spread.Sheets.Print.PaperSize(Vo * 0.9, _v * 0.9));\n    } else {\n      printInfo.paperSize(new _spreadSheets[\"default\"].Spread.Sheets.Print.PaperSize(paperSize));\n    }\n    printInfo.showColumnHeader(showColumnHeader);\n    printInfo.showRowHeader(showRowHeader);\n    printInfo.repeatRowStart(repeatRowStart - 1);\n    printInfo.repeatRowEnd(repeatRowEnd - 1);\n    printInfo.repeatColumnStart(repeatColumnStart - 1);\n    printInfo.repeatColumnEnd(repeatColumnEnd - 1);\n    printInfo.zoomFactor(zoomFactor);\n    printInfo.blackAndWhite(blackAndWhite);\n    printInfo.centering(printCenteringnumber);\n    printInfo.qualityFactor(qualityFactor);\n    printInfo.headerLeft(headerLeft);\n    printInfo.headerCenter(headerCenter);\n    printInfo.headerRight(headerRight);\n    printInfo.footerLeft(footerLeft);\n    showPageNumber ? printInfo.footerCenter('&P/&N') : printInfo.footerCenter(footerCenter);\n    printInfo.footerRight(footerRight);\n    if (bestFit) {\n      printInfo.fitPagesWide(fitPagesWide);\n      printInfo.fitPagesTall(fitPagesTall);\n    } else {\n      printInfo.fitPagesWide(-1);\n      printInfo.fitPagesTall(-1);\n    }\n    printInfo.showGridLine(showGridLine);\n    if (printArea === 'designatedArea') {\n      var rowStart = sheet.getSelections()[0].row;\n      var rowEnd = sheet.getSelections()[0].row + sheet.getSelections()[0].rowCount - 1;\n      var columnStart = sheet.getSelections()[0].col;\n      var columnEnd = sheet.getSelections()[0].col + sheet.getSelections()[0].colCount - 1;\n      printInfo.rowStart(rowStart);\n      printInfo.rowEnd(rowEnd);\n      printInfo.columnStart(columnStart);\n      printInfo.columnEnd(columnEnd);\n    } else if (printArea === 'activeSheet' || printArea === 'allArea') {\n      printInfo.rowStart(-1);\n      printInfo.rowEnd(-1);\n      printInfo.columnStart(-1);\n      printInfo.columnEnd(-1);\n    } else if (printArea === 'fixedRange') {\n      if (range) {\n        var selection = (0, _common.unExplainActiveCell)(sheet, range);\n        var _rowStart = selection.row;\n        var _rowEnd = selection.row + selection.rowCount - 1;\n        var _columnStart = selection.col;\n        var _columnEnd = selection.col + selection.colCount - 1;\n        printInfo.rowStart(_rowStart);\n        printInfo.rowEnd(_rowEnd);\n        printInfo.columnStart(_columnStart);\n        printInfo.columnEnd(_columnEnd);\n      }\n    }\n    return printInfo;\n  };\n  var print = function print() {\n    try {\n      setLoading(true);\n      setShowWarn(true);\n      setTimeout(function () {\n        var _spread$serverSpreadP3, _spread$getActiveShee, _highlightConfig$curr;\n        var activeSheet = spread.getActiveSheet();\n        if ((_spread$serverSpreadP3 = spread.serverSpreadParams) !== null && _spread$serverSpreadP3 !== void 0 && _spread$serverSpreadP3[_serverSpreadParams.USE_SHEET_PRINT_CONFIG]) {\n          var fixedNullRangeArray = [];\n          spread.sheets.forEach(function (sheet) {\n            var customPrintInfo = (0, _printInfo.transformPrintInfo)(sheet, getDefaultPrintInfo(sheet)); // 按工作表打印的时候，所有的信息是存在每个工作表当中的\n            var printInfo = getSpreadPrintInfo(sheet, customPrintInfo); // getSpreadPrintInfo需要传sheet获取选择的区域，这里按工作表打印，所以传每一个单独的sheet是没问题的\n            sheet.printInfo(printInfo);\n            if (customPrintInfo.printArea === 'fixedRange' && !customPrintInfo.range) {\n              fixedNullRangeArray.push(sheet.name());\n            }\n          });\n          var _transformPrintInfo = (0, _printInfo.transformPrintInfo)(activeSheet, getDefaultPrintInfo(activeSheet)),\n            _printArea = _transformPrintInfo.printArea; // 这里是要获取当前选中的工作表，来判断用户选择的打印区域\n          if (_printArea === 'fixedRange' || _printArea === 'allArea') {\n            // 打印整个工作簿时，如果其他工作表存在选择固定区域却没有选择值时，需要弹出提示提醒用户\n            if (fixedNullRangeArray.length > 0) {\n              var message = {\n                content: (0, _intlApi.getLangMsg)({\n                  key: 'spread.key0440',\n                  variables: {\n                    sheets: fixedNullRangeArray.join('、')\n                  }\n                }),\n                duration: 3000,\n                type: 2\n              };\n              (0, _appModelFunction.setDataMessages)(pageId, message);\n              setLoading(false);\n              return;\n            }\n          }\n        } else {\n          var sheet = spread.getSheet(0);\n          var customPrintInfo = (0, _printInfo.transformPrintInfo)(sheet, getDefaultPrintInfo(sheet)); // 不按工作表打印的时候，所有的打印信息都是存在sheet(0)当中的\n          var printInfo = getSpreadPrintInfo(activeSheet, customPrintInfo); // getSpreadPrintInfo需要传sheet获取选择的区域，这里不按工作表打印，区域是根据当前工作表来定义的，所以这里传活动工作表\n          spread.getActiveSheet().printInfo(printInfo);\n          if (customPrintInfo.printArea === 'fixedRange' && !customPrintInfo.range) {\n            setLoading(false);\n            return;\n          }\n        }\n        var _transformPrintInfo2 = (0, _printInfo.transformPrintInfo)(getPrintSheet(), getDefaultPrintInfo(getPrintSheet())),\n          printArea = _transformPrintInfo2.printArea;\n        var activeSheetIndex = printArea === 'allArea' ? null : spread.getActiveSheetIndex();\n        highlightConfig.current = (_spread$getActiveShee = spread.getActiveSheet().tag()) === null || _spread$getActiveShee === void 0 ? void 0 : _spread$getActiveShee.highlightConfig;\n        if ((_highlightConfig$curr = highlightConfig.current) !== null && _highlightConfig$curr !== void 0 && _highlightConfig$curr.useHighlight) (0, _common.setSheetTag)(spread.getActiveSheet(), {\n          highlightConfig: _objectSpread(_objectSpread({}, highlightConfig.current), {}, {\n            useHighlight: false\n          })\n        });\n        spread.suspendCalcService(false);\n        spread.print(activeSheetIndex);\n        spread.resumeCalcService(false);\n      }, 0);\n    } catch (error) {\n      _console[\"default\"].log(error);\n      setLoading(false);\n      handleClose();\n    }\n  };\n  var info = getDefaultPrintInfo(getPrintSheet());\n  var _getNewPrintInfo = (0, _printInfo.getNewPrintInfo)(),\n    printArea = _getNewPrintInfo.printArea,\n    orientation = _getNewPrintInfo.orientation,\n    paperSize = _getNewPrintInfo.paperSize,\n    range = _getNewPrintInfo.range,\n    blackAndWhite = _getNewPrintInfo.blackAndWhite,\n    zoomOptions = _getNewPrintInfo.zoomOptions,\n    zoomFactor = _getNewPrintInfo.zoomFactor,\n    fitPagesTall = _getNewPrintInfo.fitPagesTall,\n    fitPagesWide = _getNewPrintInfo.fitPagesWide,\n    marginTop = _getNewPrintInfo.marginTop,\n    marginRight = _getNewPrintInfo.marginRight,\n    marginBottom = _getNewPrintInfo.marginBottom,\n    marginLeft = _getNewPrintInfo.marginLeft,\n    centerOptions = _getNewPrintInfo.centerOptions,\n    qualityFactor = _getNewPrintInfo.qualityFactor,\n    showPageNumber = _getNewPrintInfo.showPageNumber,\n    showRowAndColHeader = _getNewPrintInfo.showRowAndColHeader,\n    removeHorizontalBlank = _getNewPrintInfo.removeHorizontalBlank,\n    topRow = _getNewPrintInfo.topRow,\n    leftCol = _getNewPrintInfo.leftCol,\n    pageHeader = _getNewPrintInfo.pageHeader,\n    headerLeft = _getNewPrintInfo.headerLeft,\n    headerCenter = _getNewPrintInfo.headerCenter,\n    headerRight = _getNewPrintInfo.headerRight,\n    pageFooter = _getNewPrintInfo.pageFooter,\n    footerLeft = _getNewPrintInfo.footerLeft,\n    footerCenter = _getNewPrintInfo.footerCenter,\n    footerRight = _getNewPrintInfo.footerRight,\n    showGridLine = _getNewPrintInfo.showGridLine;\n  var _useState9 = (0, _react.useState)(info.pageHeader),\n    _useState10 = _slicedToArray(_useState9, 2),\n    showPageHeader = _useState10[0],\n    setShowPageHeader = _useState10[1]; // 显示打印页眉选项\n  var _useState11 = (0, _react.useState)(info.pageFooter),\n    _useState12 = _slicedToArray(_useState11, 2),\n    showPageFooter = _useState12[0],\n    setShowPageFooter = _useState12[1]; // 显示打印页脚选项\n  var _useState13 = (0, _react.useState)(info.zoomOptions),\n    _useState14 = _slicedToArray(_useState13, 2),\n    zoomType = _useState14[0],\n    setZoomType = _useState14[1]; // 缩放选项\n  var _useState15 = (0, _react.useState)(info.printArea === 'fixedRange'),\n    _useState16 = _slicedToArray(_useState15, 2),\n    areaType = _useState16[0],\n    setAreaType = _useState16[1]; // 打印区域\n  var _useState17 = (0, _react.useState)(false),\n    _useState18 = _slicedToArray(_useState17, 2),\n    showWarn = _useState18[0],\n    setShowWarn = _useState18[1]; // 是否显示错误信息\n\n  var handlePageHeaderClick = function handlePageHeaderClick(e) {\n    updateInfo('pageHeader', e.target.checked);\n    setShowPageHeader(e.target.checked);\n  };\n  var handlePageFooterClick = function handlePageFooterClick(e) {\n    updateInfo('pageFooter', e.target.checked);\n    setShowPageFooter(e.target.checked);\n  };\n  var handleZoomChange = function handleZoomChange(key, value) {\n    updateInfo('zoomOptions', value);\n    setZoomType(value);\n  };\n  var updateAreaFormat = function updateAreaFormat(key, value) {\n    setAreaType(value === 'fixedRange');\n    updateInfo(key, value);\n  };\n  var inputProps = {\n    borderType: 'bordered',\n    updateFormat: updateInfo\n  };\n  var inputNumberProps = _objectSpread({\n    min: 0,\n    max: 9999999999,\n    mustInScope: true,\n    digitLength: 10\n  }, inputProps);\n  var selectProps = {\n    borderType: 'bordered',\n    required: true\n  };\n  var rangeSelectProps = {\n    updateFormat: updateInfo,\n    dataPipeModel: dataPipeModel,\n    showWarn: showWarn\n  };\n  var inputWidth = '100%';\n  var renderCommon = function renderCommon() {\n    var zoomStyle = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _Print[\"default\"].zoom_horizontal, zoomType === _printInfo.ZOOM_OPTION.PERCENTAGE), _Print[\"default\"].zoom_vertical, zoomType === _printInfo.ZOOM_OPTION.OTHER));\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].print_panel_tab\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n      width: inputWidth,\n      data: printArea,\n      defaultValue: info.printArea,\n      formatKey: printArea.key,\n      updateFormat: updateAreaFormat\n    }, selectProps)), areaType && /*#__PURE__*/_react[\"default\"].createElement(_SpreadRangeSelect[\"default\"], _extends({\n      data: range,\n      defaultValue: info.range,\n      modalTitle: (0, _intlApi.getLangMsg)('spread.key0346'),\n      rangeArea: \"range\",\n      required: true\n    }, rangeSelectProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadRadio[\"default\"], {\n      data: orientation,\n      defaultValue: info.orientation,\n      formatKey: orientation.key,\n      updateFormat: updateInfo\n    }), /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n      width: inputWidth,\n      data: paperSize,\n      defaultValue: info.paperSize,\n      formatKey: paperSize.key,\n      updateFormat: updateInfo\n    }, selectProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadRadio[\"default\"], {\n      required: true,\n      data: blackAndWhite,\n      defaultValue: info.blackAndWhite,\n      formatKey: blackAndWhite.key,\n      updateFormat: updateInfo\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_container\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _Print[\"default\"].zoom_title\n    }, zoomOptions.title), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: zoomStyle\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n      width: inputWidth,\n      hideTitle: true,\n      data: zoomOptions,\n      defaultValue: info.zoomOptions,\n      formatKey: paperSize.key,\n      updateFormat: handleZoomChange\n    }, selectProps)), zoomType === _printInfo.ZOOM_OPTION.PERCENTAGE && /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: inputWidth,\n      required: true,\n      hideTitle: true,\n      data: zoomFactor,\n      defaultValue: info.zoomFactor,\n      formatKey: zoomFactor.key,\n      decimalLength: 0,\n      min: 10,\n      max: 400,\n      digitLength: 3\n    }, inputProps)), zoomType === _printInfo.ZOOM_OPTION.OTHER && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].zoom_page\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: 44,\n      required: true,\n      hideTitle: true,\n      data: fitPagesWide,\n      defaultValue: info.fitPagesWide,\n      formatKey: fitPagesWide.key,\n      decimalLength: 0\n    }, inputNumberProps)), /*#__PURE__*/_react[\"default\"].createElement(\"label\", {\n      className: \"kd-cq-spread-suffix\"\n    }, (0, _intlApi.getLangMsg)('spread.key0340')), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: 44,\n      required: true,\n      hideTitle: true,\n      data: fitPagesTall,\n      defaultValue: info.fitPagesTall,\n      formatKey: fitPagesTall.key,\n      decimalLength: 0\n    }, inputNumberProps)), /*#__PURE__*/_react[\"default\"].createElement(\"label\", {\n      className: \"kd-cq-spread-suffix\"\n    }, (0, _intlApi.getLangMsg)('spread.key0341'))))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_container\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _Print[\"default\"].title\n    }, (0, _intlApi.getLangMsg)('spread.key0327')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_grid\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: inputWidth,\n      data: marginTop,\n      defaultValue: info.marginTop,\n      decimalLength: 0,\n      formatKey: marginTop.key\n    }, inputNumberProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: inputWidth,\n      data: marginBottom,\n      defaultValue: info.marginBottom,\n      decimalLength: 0,\n      formatKey: marginBottom.key\n    }, inputNumberProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: inputWidth,\n      data: marginLeft,\n      defaultValue: info.marginLeft,\n      decimalLength: 0,\n      formatKey: marginLeft.key\n    }, inputNumberProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputNumber[\"default\"], _extends({\n      width: inputWidth,\n      data: marginRight,\n      defaultValue: info.marginRight,\n      decimalLength: 0,\n      formatKey: marginRight.key\n    }, inputNumberProps)))), /*#__PURE__*/_react[\"default\"].createElement(_SpreadCheckboxGroup[\"default\"], {\n      data: centerOptions,\n      defaultValue: info.centerOptions,\n      formatKey: centerOptions.key,\n      updateFormat: updateInfo\n    }), /*#__PURE__*/_react[\"default\"].createElement(_SpreadSelect[\"default\"], _extends({\n      width: inputWidth,\n      data: qualityFactor,\n      defaultValue: info.qualityFactor,\n      formatKey: qualityFactor.key,\n      updateFormat: updateInfo\n    }, selectProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadCheckbox[\"default\"], {\n      data: showGridLine,\n      defaultValue: info.showGridLine,\n      formatKey: showGridLine.key,\n      updateFormat: updateInfo\n    }));\n  };\n  var renderAdvance = function renderAdvance() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].print_panel_tab\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadCheckbox[\"default\"], {\n      data: showPageNumber,\n      defaultValue: info.showPageNumber,\n      formatKey: showPageNumber.key,\n      updateFormat: updateInfo\n    }), /*#__PURE__*/_react[\"default\"].createElement(_SpreadCheckbox[\"default\"], {\n      data: showRowAndColHeader,\n      defaultValue: info.showRowAndColHeader,\n      formatKey: showRowAndColHeader.key,\n      updateFormat: updateInfo\n    }), /*#__PURE__*/_react[\"default\"].createElement(_SpreadCheckbox[\"default\"], {\n      data: removeHorizontalBlank,\n      defaultValue: info.removeHorizontalBlank,\n      formatKey: removeHorizontalBlank.key,\n      updateFormat: updateInfo\n    }), /*#__PURE__*/_react[\"default\"].createElement(_Tab.Separator, null), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_container\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _Print[\"default\"].title\n    }, (0, _intlApi.getLangMsg)('spread.key0347')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_flex\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadRangeSelect[\"default\"], _extends({\n      data: topRow,\n      defaultValue: info.topRow,\n      modalTitle: (0, _intlApi.getLangMsg)('spread.key0352'),\n      rangeArea: \"row\"\n    }, rangeSelectProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadRangeSelect[\"default\"], _extends({\n      data: leftCol,\n      defaultValue: info.leftCol,\n      modalTitle: (0, _intlApi.getLangMsg)('spread.key0353'),\n      rangeArea: \"col\"\n    }, rangeSelectProps)))), /*#__PURE__*/_react[\"default\"].createElement(_Tab.Separator, null), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_container\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _Print[\"default\"].title\n    }, (0, _intlApi.getLangMsg)('spread.key0329')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_flex\n    }, /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Checkbox, {\n      className: \"kd-cq-checkbox\",\n      styleType: 2,\n      checked: showPageHeader,\n      onChange: handlePageHeaderClick\n    }, pageHeader.title), showPageHeader && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_flex\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n      style: {\n        width: inputWidth\n      },\n      data: headerLeft,\n      defaultValue: info.headerLeft,\n      formatKey: headerLeft.key\n    }, inputProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n      style: {\n        width: inputWidth\n      },\n      data: headerCenter,\n      defaultValue: info.headerCenter,\n      formatKey: headerCenter.key\n    }, inputProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n      style: {\n        width: inputWidth\n      },\n      data: headerRight,\n      defaultValue: info.headerRight,\n      formatKey: headerRight.key\n    }, inputProps))), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Checkbox, {\n      className: \"kd-cq-checkbox\",\n      styleType: 2,\n      checked: showPageFooter,\n      onChange: handlePageFooterClick\n    }, pageFooter.title), showPageFooter && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _Print[\"default\"].group_flex\n    }, /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n      style: {\n        width: inputWidth\n      },\n      data: footerLeft,\n      defaultValue: info.footerLeft,\n      formatKey: footerLeft.key\n    }, inputProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n      style: {\n        width: inputWidth\n      },\n      data: footerCenter,\n      defaultValue: info.footerCenter,\n      formatKey: footerCenter.key\n    }, inputProps)), /*#__PURE__*/_react[\"default\"].createElement(_SpreadInputText[\"default\"], _extends({\n      readonly: true,\n      style: {\n        width: inputWidth\n      },\n      data: footerRight,\n      defaultValue: info.footerRight,\n      formatKey: footerRight.key\n    }, inputProps))))));\n  };\n  var printData = [{\n    id: 'common',\n    name: (0, _intlApi.getLangMsg)('spread.key0350'),\n    content: renderCommon()\n  }, {\n    id: 'advance',\n    name: (0, _intlApi.getLangMsg)('spread.key0351'),\n    content: renderAdvance()\n  }];\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Print[\"default\"].print_panel\n  }, /*#__PURE__*/_react[\"default\"].createElement(_SidebarHeader[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0415'),\n    onClose: handleClose\n  }), /*#__PURE__*/_react[\"default\"].createElement(_Tab[\"default\"], {\n    tabData: printData,\n    defaultTabKey: \"common\",\n    style: {\n      height: 'calc(100% - 90px)'\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Print[\"default\"].btn_container\n  }, /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Button, {\n    onClick: handleClose,\n    className: _Print[\"default\"].button\n  }, (0, _intlApi.getLangMsg)('spread.key0055')), /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Button, {\n    loading: loading,\n    onClick: print,\n    className: _Print[\"default\"].button,\n    type: \"primary\"\n  }, (0, _intlApi.getLangMsg)('spread.key0052'))));\n});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/QueryBuilder.js":
/*!*****************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/QueryBuilder.js ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = QueryBuilder;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _FindCheckboxGroup = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/FindCheckboxGroup */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindCheckboxGroup.jsx\"));\nvar _FindSelectGroup = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/FindSelectGroup */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/FindSelectGroup.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _reportUtils = __webpack_require__(/*! ../../../utils/reportUtils */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\");\nvar _classnames8 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadToolbar2 = _interopRequireDefault(__webpack_require__(/*! ../../toolbar/spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar toolbarTopUtils = _interopRequireWildcard(__webpack_require__(/*! ../toolbarTopUtils */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\"));\nvar _responseToolbarUtils = __webpack_require__(/*! ../../../dataPipeModel/responseToolbarUtils */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction QueryBuilder(props) {\n  var spreadNS = _spreadSheets[\"default\"].Spread.Sheets;\n  var original = {\n    within: 'sheet',\n    search: 'byRows',\n    lookIn: 'value',\n    matchCase: false,\n    matchEntireL: false,\n    useWildCards: false\n  };\n  var _useState = (0, _react.useState)(original),\n    _useState2 = _slicedToArray(_useState, 2),\n    data = _useState2[0],\n    setData = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showMsg = _useState4[0],\n    setShowMsg = _useState4[1];\n  var inputEle = (0, _react.useRef)(null);\n  var replaceInputEle = (0, _react.useRef)(null);\n  var formulaError = (0, _react.useRef)(false);\n  (0, _react.useEffect)(function () {\n    var spread = props.getGlobalContext().spread;\n    spread.focus(false);\n    inputEle.current.focus();\n    var removeListener = props.dataPipeModel.registerCallback('formulaError', function (data) {\n      setTitle(data.title);\n      formulaError.current = true;\n    }); // 这个提示语是不规范的，先暂时这么处理，等后期出需求优化\n    return function () {\n      removeListener();\n    };\n  }, []);\n  var spread;\n  var repalceAllEndFlag = {};\n  var isReplaceOne = true;\n  var replaceAllValues = [];\n  var oldvalue = [];\n  var sheets = [];\n  var selectItems = [{\n    data: [{\n      alias: (0, _intlApi.getLangMsg)('spread.key0111'),\n      value: 'sheet'\n    }, {\n      alias: (0, _intlApi.getLangMsg)('spread.key0112'),\n      value: 'workbook'\n    }],\n    name: 'within',\n    title: (0, _intlApi.getLangMsg)('spread.key0113')\n  }, {\n    data: [{\n      alias: (0, _intlApi.getLangMsg)('spread.key0114'),\n      value: 'byRows'\n    }, {\n      alias: (0, _intlApi.getLangMsg)('spread.key0115'),\n      value: 'byColumns'\n    }],\n    name: 'search',\n    title: (0, _intlApi.getLangMsg)('spread.key0116')\n  }, {\n    data: [{\n      alias: (0, _intlApi.getLangMsg)('spread.key0117'),\n      value: 'value'\n    }, {\n      alias: (0, _intlApi.getLangMsg)('spread.key0118'),\n      value: 'formula'\n    }],\n    name: 'lookIn',\n    title: (0, _intlApi.getLangMsg)('spread.key0119')\n  }];\n  var chechboxItems = [{\n    label: (0, _intlApi.getLangMsg)('spread.key0120'),\n    name: 'matchCase'\n  }, {\n    label: (0, _intlApi.getLangMsg)('spread.key0121'),\n    name: 'matchEntireL'\n  }, {\n    label: (0, _intlApi.getLangMsg)('spread.key0122'),\n    name: 'useWildCards'\n  }];\n  var getGlobalEventHandle = function getGlobalEventHandle() {\n    var type = 'PostSheetEvent';\n    return props.dataPipeModel.getData(type);\n  };\n  var btnReplace = function btnReplace(flag, oldSels) {\n    spread = spread || props.getGlobalContext().spread;\n    var replaceValue = replaceInputEle.current.value;\n    var findWhat = inputEle.current.value;\n    if (data.lookIn === 'formula' && findWhat.indexOf('=') === 0) {\n      findWhat = findWhat.substr(1);\n    }\n    var sheet = spread.getActiveSheet();\n    // 包含页面信息的数据\n    var searchCondition = toolbarTopUtils.getSearchCondition(spread, findWhat, data);\n    var within = data.within;\n    var searchResult = null;\n    // 选择当前活动表\n    if (within === 'sheet') {\n      // 获取鼠标选中区域\n      var sels = sheet.getSelections();\n      if (sels.length > 1) {\n        // 如果选中区域大于一个区域 那么就在选中区域搜索（ctrl + 鼠标左键）\n        searchCondition.searchFlags |= spreadNS.Search.SearchFlags.blockRange;\n        // 如果只有选中一个区域 那么就在选中区域后面搜索\n      } else if (sels.length === 1) {\n        // 获取的鼠标选中单元格大小\n        var spanInfo = toolbarTopUtils.getSpanInfo(sheet, sels[0].row, sels[0].col);\n        // 如果鼠标选中区域大小与单元格大小不同 那么就在选中区域搜索\n        if (sels[0].rowCount !== spanInfo.rowSpan && sels[0].colCount !== spanInfo.colSpan) {\n          searchCondition.searchFlags |= spreadNS.Search.SearchFlags.blockRange;\n        }\n      }\n      // 从活动单元格查找查找\n      searchResult = toolbarTopUtils.getResultSearchinSheetEnd(searchCondition, spread);\n      // 查找没查的地方\n      if (searchResult === null || searchResult.searchFoundFlag === spreadNS.Search.SearchFoundFlags.none) {\n        searchResult = toolbarTopUtils.getResultSearchinSheetBefore(searchCondition, spread);\n      }\n    } else if (within === 'workbook') {\n      searchResult = toolbarTopUtils.getResultSearchinSheetEnd(searchCondition, spread);\n      if (searchResult === null || searchResult.searchFoundFlag === spreadNS.Search.SearchFoundFlags.none) {\n        searchResult = toolbarTopUtils.getResultSearchinWorkbook(searchCondition, spread, 'end');\n      }\n      if (searchResult === null || searchResult.searchFoundFlag === spreadNS.Search.SearchFoundFlags.none) {\n        searchResult = toolbarTopUtils.getResultSearchinWorkbook(searchCondition, spread, 'start');\n      }\n      if (searchResult === null || searchResult.searchFoundFlag === spreadNS.Search.SearchFoundFlags.none) {\n        searchResult = toolbarTopUtils.getResultSearchinSheetBefore(searchCondition, spread);\n      }\n    }\n    if (searchResult !== null && searchResult.searchFoundFlag !== spreadNS.Search.SearchFoundFlags.none) {\n      var _searchResult = searchResult,\n        foundSheetIndex = _searchResult.foundSheetIndex,\n        foundRowIndex = _searchResult.foundRowIndex,\n        foundColumnIndex = _searchResult.foundColumnIndex;\n      spread.setActiveSheetIndex(foundSheetIndex);\n      var _sheet = spread.getActiveSheet();\n      var isMatchActiveCell = toolbarTopUtils.matchActiveCell({\n        spread: spread,\n        sheet: _sheet,\n        findWhat: findWhat\n      }, data);\n      // 替换 如果当前活动单元格匹配上了要查找的内容就替换\n      var isEnd = false;\n      if (isMatchActiveCell) {\n        isEnd = replace(flag, replaceValue, _sheet, findWhat, foundSheetIndex, foundRowIndex, foundColumnIndex);\n      }\n      if (isEnd) {\n        (0, _reportUtils.triggerSelectionChanged)(_sheet, getGlobalEventHandle().selectionChanged);\n        return false;\n      }\n      _sheet.setActiveCell(foundRowIndex, foundColumnIndex);\n      if ((searchCondition.searchFlags & spreadNS.Search.SearchFlags.blockRange) === 0) {\n        _sheet.setActiveCell(foundRowIndex, foundColumnIndex, 1, 1);\n      }\n      isReplaceOne && (0, _reportUtils.triggerSelectionChanged)(_sheet, getGlobalEventHandle().selectionChanged);\n      // scrolling\n      if (foundRowIndex < _sheet.getViewportTopRow(1) || foundRowIndex > _sheet.getViewportBottomRow(1) || foundColumnIndex < _sheet.getViewportLeftColumn(1) || foundColumnIndex > _sheet.getViewportRightColumn(1)) {\n        _sheet.showCell(foundRowIndex, foundColumnIndex, spreadNS.VerticalPosition.center, spreadNS.HorizontalPosition.center);\n      } else {\n        _sheet.repaint();\n      }\n      isReplaceOne && setShowMsg(false);\n      return true;\n    } else {\n      if (isReplaceOne) {\n        setShowMsg(true);\n        setTitle((0, _intlApi.getLangMsg)('spread.key0104'));\n        setIsFind(false);\n      }\n      return false;\n    }\n  };\n  /**\n  * 指定区域替换的逻辑是 循环查找selection内的值 找到后将值替换为null\n  * 查找结束后将替换为null值的单元格恢复原来的状态\n  * 之后在setValue成要替换的 这么做的目的是便于用户撤回\n  */\n  var isMatchActive = true;\n  var replaceSelection = function replaceSelection(flag, oldSels) {\n    spread = spread || props.getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    var replaceValue = replaceInputEle.current.value;\n    var findWhat = inputEle.current.value;\n    if (data.lookIn === 'formula' && findWhat.indexOf('=') === 0) {\n      findWhat = findWhat.substr(1);\n    }\n    var searchCondition = toolbarTopUtils.getSearchCondition(spread, findWhat, data);\n    // spread并不会查找指定区域内的首个单元格 这个处理了一下\n    var isMatchActiveCell = toolbarTopUtils.matchActiveCell({\n      spread: spread,\n      sheet: sheet,\n      findWhat: findWhat\n    }, data);\n    if (isMatchActiveCell && isMatchActive) {\n      isMatchActive = false;\n      var row = sheet.getActiveRowIndex();\n      var col = sheet.getActiveColumnIndex();\n      var sheetIndex = spread.getActiveSheetIndex();\n      var formula = sheet.getCell(row, col).formula();\n      var text = sheet.getText(row, col);\n      var replaceV = toolbarTopUtils.handleReplaceValue({\n        findWhat: findWhat,\n        replaceValue: replaceValue,\n        formula: formula,\n        text: text\n      }, data);\n      if (!replaceAllValues[sheetIndex]) {\n        replaceAllValues[sheetIndex] = [];\n      }\n      if (!sheets[sheetIndex]) {\n        sheets[sheetIndex] = sheet;\n      }\n      replaceAllValues[sheetIndex].push({\n        r: row,\n        c: col,\n        v: replaceV\n      });\n    }\n    searchCondition.searchFlags |= spreadNS.Search.SearchFlags.blockRange;\n    searchCondition.startSheetIndex = spread.getActiveSheetIndex();\n    searchCondition.endSheetIndex = spread.getActiveSheetIndex();\n    var convertOldSel = (0, _responseToolbarUtils.convertRange)(sheet, oldSels[0]);\n    searchCondition.rowStart = convertOldSel.row;\n    searchCondition.columnStart = convertOldSel.col;\n    searchCondition.rowEnd = convertOldSel.row + convertOldSel.rowCount - 1;\n    searchCondition.columnEnd = convertOldSel.col + convertOldSel.colCount - 1;\n    var searchResult = spread.search(searchCondition);\n    if (searchResult !== null && searchResult.searchFoundFlag !== spreadNS.Search.SearchFoundFlags.none) {\n      var foundSheetIndex = searchResult.foundSheetIndex,\n        foundRowIndex = searchResult.foundRowIndex,\n        foundColumnIndex = searchResult.foundColumnIndex;\n      spread.setActiveSheetIndex(foundSheetIndex);\n      replace(flag, replaceValue, sheet, findWhat, foundSheetIndex, foundRowIndex, foundColumnIndex, true);\n      isReplaceOne && (0, _reportUtils.triggerSelectionChanged)(sheet, getGlobalEventHandle().selectionChanged);\n      if (foundRowIndex < sheet.getViewportTopRow(1) || foundRowIndex > sheet.getViewportBottomRow(1) || foundColumnIndex < sheet.getViewportLeftColumn(1) || foundColumnIndex > sheet.getViewportRightColumn(1)) {\n        sheet.showCell(foundRowIndex, foundColumnIndex, spreadNS.VerticalPosition.center, spreadNS.HorizontalPosition.center);\n      } else {\n        sheet.repaint();\n      }\n      isReplaceOne && setShowMsg(false);\n      return true;\n    } else {\n      isReplaceOne && setShowMsg(true);\n      return false;\n    }\n  };\n  var replace = function replace(flag, replaceValue, sheet, findWhat, foundSheetIndex, foundRowIndex, foundColumnIndex, isReplaceSelection) {\n    if (!flag) {\n      var _repalceAllEndFlag = repalceAllEndFlag,\n        r = _repalceAllEndFlag.r,\n        c = _repalceAllEndFlag.c,\n        sheetsIndex = _repalceAllEndFlag.sheetsIndex;\n      if (repalceAllEndFlag && c === foundColumnIndex && r === foundRowIndex && sheetsIndex === foundSheetIndex) {\n        return true;\n      }\n      if (!repalceAllEndFlag || Object.keys(repalceAllEndFlag).length === 0) {\n        repalceAllEndFlag = {\n          c: foundColumnIndex,\n          r: foundRowIndex,\n          sheetsIndex: foundSheetIndex\n        };\n      }\n      var row = isReplaceOne ? sheet.getActiveRowIndex() : foundRowIndex;\n      var col = isReplaceOne ? sheet.getActiveColumnIndex() : foundColumnIndex;\n      var formula = sheet.getCell(row, col).formula();\n      var text = sheet.getText(row, col);\n      var isProtected = sheet.options.isProtected;\n      var cellLock = sheet.getCell(row, col).locked();\n      replaceValue = toolbarTopUtils.handleReplaceValue({\n        findWhat: findWhat,\n        replaceValue: replaceValue,\n        formula: formula,\n        text: text\n      }, data);\n      if (!isReplaceOne && isReplaceSelection) {\n        spread.isReplaceSelection = true;\n        oldvalue.push({\n          r: foundRowIndex,\n          c: foundColumnIndex,\n          v: sheet.getValue(foundRowIndex, foundColumnIndex),\n          f: sheet.getFormula(foundRowIndex, foundColumnIndex)\n        });\n        sheet.setValue(foundRowIndex, foundColumnIndex, null);\n        sheet.setFormula(foundRowIndex, foundColumnIndex, null);\n      }\n      var sheetIndex = foundSheetIndex;\n      if (!(isProtected && cellLock) && (formula || text)) {\n        if (isReplaceOne) {\n          var args = {\n            type: 'ReplaceAll',\n            data: [{\n              v: replaceValue,\n              r: row,\n              c: col\n            }],\n            sheet: sheet\n          };\n          props.dataPipeModel.sendData(args);\n        } else {\n          if (!replaceAllValues[sheetIndex]) {\n            replaceAllValues[sheetIndex] = [];\n          }\n          // spread撤销机制与页签的name有关 所以replaceAllValues里的每一个数组都代表着一个页签 一次撤回操作仅针对一个页签\n          replaceAllValues[sheetIndex].push({\n            r: row,\n            c: col,\n            v: replaceValue\n          });\n          if (!sheets[sheetIndex]) {\n            sheets[sheetIndex] = sheet;\n          }\n        }\n      }\n    }\n  };\n  var selectValue = function selectValue(name, value) {\n    for (var key in data) {\n      if (key === name) {\n        data[key] = value;\n        setData(data);\n      }\n    }\n  };\n  var handleCheckbox = function handleCheckbox(name) {\n    for (var key in data) {\n      if (key === name) {\n        data[key] = !data[key];\n        setData(data);\n      }\n    }\n  };\n  var handleClose = function handleClose() {\n    setShowMsg(false);\n  };\n  var _useState5 = (0, _react.useState)((0, _intlApi.getLangMsg)('spread.key0104')),\n    _useState6 = _slicedToArray(_useState5, 2),\n    title = _useState6[0],\n    setTitle = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    isFind = _useState8[0],\n    setIsFind = _useState8[1];\n  var handleReplaceAll = function handleReplaceAll() {\n    setTitle((0, _intlApi.getLangMsg)('spread.key0104'));\n    setIsFind(false);\n    spread = spread || props.getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    var oldSels = sheet.getSelections() || [];\n    var activeRow = sheet.getActiveRowIndex();\n    var activeCol = sheet.getActiveColumnIndex();\n    var sel = oldSels[0] || {};\n    var row = sel.row,\n      col = sel.col;\n    if (row !== -1 && col !== -1 && (row < activeRow || col < activeCol)) {\n      setTitle((0, _intlApi.getLangMsg)('spread.key0375'));\n      setShowMsg(true);\n      replaceAllValues = [];\n      oldvalue = [];\n      isReplaceOne = true;\n      repalceAllEndFlag = {};\n      sheets = [];\n      return;\n    }\n    isReplaceOne = false;\n    spread.suspendPaint();\n    var endFlag = true;\n    toolbarTopUtils.getSpanInfo(sheet, oldSels[0].row, oldSels[0].col);\n    if (oldSels[0].rowCount !== 1 || oldSels[0].colCount !== 1) {\n      isMatchActive = true;\n      while (endFlag) {\n        endFlag = replaceSelection(false, oldSels);\n      }\n      delete spread.isReplaceSelection;\n    } else {\n      while (endFlag) {\n        endFlag = btnReplace(false, oldSels);\n      }\n    }\n    if (oldvalue) {\n      oldvalue.forEach(function (_ref) {\n        var r = _ref.r,\n          c = _ref.c,\n          f = _ref.f,\n          v = _ref.v;\n        f ? sheet.setFormula(r, c, f) : sheet.setValue(r, c, v);\n      });\n    }\n    spread.resumePaint();\n    var count = 0;\n    replaceAllValues.forEach(function (item, index) {\n      if (item) {\n        var _sheet2 = sheets[index];\n        var args = {\n          type: 'ReplaceAll',\n          data: item,\n          sheet: _sheet2\n        };\n        props.dataPipeModel.sendData(args);\n      }\n      // 查找范围为值时，只替换值为目标值的单元格\n      // 查找范围为公式时，替换值以及公式中包含目标值的单元格（可以这样理解，单元格中的值也是公式的一部分，少了等于号而已）\n      count = data.lookIn === 'value' ? replaceAllValues[index].filter(function (_ref2) {\n        var r = _ref2.r,\n          c = _ref2.c;\n        return !(0, _reportUtils.isCellFormula)(sheet, {\n          row: r,\n          col: c\n        });\n      }).length : replaceAllValues[index].length;\n      if (formulaError.current) count = 0;\n    });\n    if (count > 0) {\n      setIsFind(true);\n      setTitle((0, _intlApi.getLangMsg)({\n        key: 'spread.key0133',\n        variables: {\n          count: count\n        }\n      }));\n    }\n    setShowMsg(true);\n    replaceAllValues = [];\n    oldvalue = [];\n    isReplaceOne = true;\n    repalceAllEndFlag = {};\n    sheets = [];\n  };\n  var replaceOne = function replaceOne() {\n    btnReplace(false);\n    repalceAllEndFlag = {};\n  };\n  var findNext = function findNext() {\n    btnReplace(true);\n  };\n  var findClose = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].findClose, true), 'kdfont kdfont-toubudaohang_guanbi', true));\n  var btnNext = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].btn, true), _spreadToolbar[\"default\"].btnNext, true), 'theme btn-follow-theme', true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].findContainerRoot\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames8[\"default\"])('kd-cq-spread-dialog', _spreadToolbar[\"default\"].findContainer)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames8[\"default\"])('kd-cq-spread-dialog-header', _spreadToolbar[\"default\"].findHedaer),\n    ref: props.setDragRef\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _spreadToolbar[\"default\"].findTitle\n  }, (0, _intlApi.getLangMsg)('spread.key0106')), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n    className: findClose,\n    onClick: props.handleClose\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: \"kd-cq-spread-dialog-body\"\n  }, showMsg ? /*#__PURE__*/_react[\"default\"].createElement(ShowMsg, {\n    onClose: handleClose,\n    isFind: isFind,\n    title: title\n  }) : null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].txtTitle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _spreadToolbar[\"default\"].findText\n  }, (0, _intlApi.getLangMsg)('spread.key0107')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _spreadToolbar[\"default\"].repalceText\n  }, (0, _intlApi.getLangMsg)('spread.key0108'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].Search\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: (0, _classnames8[\"default\"])('kd-cq-input', _spreadToolbar[\"default\"].txtSearchWhat),\n    type: \"text\",\n    ref: inputEle\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: (0, _classnames8[\"default\"])('kd-cq-input', _spreadToolbar[\"default\"].findReplace),\n    type: \"text\",\n    ref: replaceInputEle\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].selectAndChecked\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].containerSelect\n  }, /*#__PURE__*/_react[\"default\"].createElement(_FindSelectGroup[\"default\"], {\n    items: selectItems,\n    handleSelectValue: selectValue,\n    defaultData: data\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].containerChecked\n  }, /*#__PURE__*/_react[\"default\"].createElement(_FindCheckboxGroup[\"default\"], {\n    items: chechboxItems,\n    handleCheckbox: handleCheckbox,\n    defaultData: data\n  })))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames8[\"default\"])('kd-cq-spread-dialog-footer', _spreadToolbar[\"default\"].btnFind)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: (0, _classnames8[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].btnReplace, true), 'theme btn-ghost', true)),\n    id: \"btnReplace\",\n    type: \"button\",\n    value: (0, _intlApi.getLangMsg)('spread.key0109'),\n    onClick: replaceOne\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: (0, _classnames8[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].btnReplace, true), 'theme btn-ghost', true)),\n    id: \"btnReplace\",\n    type: \"button\",\n    value: (0, _intlApi.getLangMsg)('spread.key0130'),\n    onClick: handleReplaceAll\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: btnNext,\n    type: \"button\",\n    value: (0, _intlApi.getLangMsg)('spread.key0110'),\n    onClick: findNext\n  }))));\n}\nfunction ShowMsg(props) {\n  var onClose = props.onClose,\n    title = props.title,\n    isFind = props.isFind;\n  var messageIcon = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar2[\"default\"].messageIconNo, !isFind), 'kdfont kdfont-jinggao', !isFind), 'kdfont kdfont-jianchatongguo', isFind), _spreadToolbar2[\"default\"].messageIconYes, isFind));\n  var messageClose = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar2[\"default\"].messageClose, true), 'kdfont kdfont-toubudaohang_guanbi', true));\n  var message = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _spreadToolbar2[\"default\"].message, true), _spreadToolbar2[\"default\"].messageYes, isFind), _spreadToolbar2[\"default\"].messageNo, !isFind));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: message\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: messageIcon\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar2[\"default\"].messageText\n  }, title), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: messageClose,\n    onClick: onClose\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/QueryBuilder.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.js":
/*!*************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.js ***!
  \*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = RichText;\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _RichText = _interopRequireDefault(__webpack_require__(/*! ./RichText.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.less\"));\nvar _FontStyle = __webpack_require__(/*! ./FontStyle */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontStyle.js\");\nvar _FontDecoration = __webpack_require__(/*! ./FontDecoration */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontDecoration.js\");\nvar _ForeAndBackColor = __webpack_require__(/*! ./ForeAndBackColor */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ForeAndBackColor.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _useDialogDrag = _interopRequireDefault(__webpack_require__(/*! ./../../../../../../common/useDialogDrag */ \"./src/component/common/useDialogDrag.js\"));\nvar _toolbarTopUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\");\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _gridaction = __webpack_require__(/*! @/action/gridaction */ \"./src/action/gridaction.js\");\nvar _xssFilters = _interopRequireDefault(__webpack_require__(/*! @/util/xssFilters */ \"./src/util/xssFilters.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar fontSizeData = [{\n  alias: '12',\n  value: 0\n}, {\n  alias: '14',\n  value: 1\n}, {\n  alias: '16',\n  value: 2\n}, {\n  alias: '18',\n  value: 3\n}, {\n  alias: '24',\n  value: 4\n}, {\n  alias: '32',\n  value: 5\n}, {\n  alias: '48',\n  value: 6\n}];\nfunction RichText(props) {\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    showRichText = _useState2[0],\n    setShowRichText = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    eTop = _useState4[0],\n    setEtop = _useState4[1];\n  var handleClick = function handleClick(flag) {\n    if (flag) {\n      setShowRichText(true);\n    } else {\n      setShowRichText(false);\n    }\n  };\n  (0, _react.useEffect)(function () {\n    props.dataPipeModel.registerCallback('spreadRichText', handleClick);\n  }, []);\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      var spread = props.dataPipeModel.getData('PostSpread');\n      setEtop(spread.getHost().parentNode);\n    }, 0);\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, showRichText ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(RichTextDialog, _extends({\n    handleClick: handleClick\n  }, props)), eTop) : null);\n}\nfunction RichTextDialog(props) {\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    fontFamily = _useState6[0],\n    setFontFamily = _useState6[1];\n  var _useState7 = (0, _react.useState)(),\n    _useState8 = _slicedToArray(_useState7, 2),\n    fontSize = _useState8[0],\n    setFontSize = _useState8[1];\n  var _useState9 = (0, _react.useState)(),\n    _useState10 = _slicedToArray(_useState9, 2),\n    isWeight = _useState10[0],\n    setWeight = _useState10[1];\n  var _useState11 = (0, _react.useState)(),\n    _useState12 = _slicedToArray(_useState11, 2),\n    isItalic = _useState12[0],\n    setItalic = _useState12[1];\n  var _useState13 = (0, _react.useState)(),\n    _useState14 = _slicedToArray(_useState13, 2),\n    isUnderline = _useState14[0],\n    setUnderline = _useState14[1];\n  var content = (0, _react.useRef)(null);\n  var container = (0, _react.useRef)(null);\n  var handleClose = function handleClose() {\n    props.handleClick(false);\n  };\n  var handleFontFamilyChange = function handleFontFamilyChange(value) {\n    setFontFamily(value);\n    document.execCommand('fontName', false, _FontStyle.fontFamilyArray[value]);\n  };\n  var handleFontSizeChange = function handleFontSizeChange(value) {\n    var fontSize = fontSizeData[value];\n    setFontSize(fontSize.value);\n    document.execCommand('fontSize', false, value + 1);\n  };\n  var handleWeightClick = function handleWeightClick(e) {\n    setWeight(!isWeight);\n    document.execCommand('bold', false);\n  };\n  var handleItalicClick = function handleItalicClick(e) {\n    setItalic(!isItalic);\n    document.execCommand('italic', false);\n  };\n  var handleUnderlineClick = function handleUnderlineClick(e) {\n    setUnderline(!isUnderline);\n    document.execCommand('underline', false);\n  };\n  var handleColorChange = function handleColorChange(colorType, color) {\n    document.execCommand('foreColor', false, color);\n  };\n  // 防止丢失选中\n  var mousedownHandle = function mousedownHandle(e) {\n    if (e.target.id !== 'spreadRichText' && e.target.tagName !== 'B' && e.target.tagName !== 'U' && e.target.tagName !== 'I' && e.target.tagName !== 'FONT') {\n      e.preventDefault();\n    }\n  };\n  var handleClick = function handleClick() {\n    var richText = fromRichTextSpread(content.current);\n    var spread = getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    var si = spread.getActiveSheetIndex();\n    if (richText.length > 0) {\n      var r = sheet.getActiveRowIndex();\n      var c = sheet.getActiveColumnIndex();\n      sheet.setValue(r, c, {\n        richText: richText\n      });\n      var value = sheet.getValue(r, c);\n      props.dispatch((0, _gridaction.invokeControlMethodOnly)(props.model, 'updateValue', [{\n        si: si,\n        values: [{\n          r: r,\n          c: c,\n          v: value\n        }]\n      }]));\n    }\n    handleClose();\n  };\n  // 实时更新工具栏\n  var textPositionChange = function textPositionChange() {\n    // 获取新罗马字体类型时会多一个双引号 \"\"Times New Roman\"\"\n    var fontName = _FontStyle.fontFamilyArray.indexOf(document.queryCommandValue('fontName').replace(/\"/g, ''));\n    var fontSize = document.queryCommandValue('fontSize') - 1;\n    var bold = document.queryCommandState('bold');\n    var italic = document.queryCommandState('italic');\n    var underline = document.queryCommandState('underline');\n    var foreColor = (0, _toolbarTopUtils.colorRGBtoHex)(document.queryCommandValue('foreColor'));\n    setFontFamily(fontName);\n    setFontSize(fontSize);\n    setWeight(bold);\n    setItalic(italic);\n    setUnderline(underline);\n    var args = {\n      type: 'colorPickerChange',\n      color: foreColor\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  var fromSpreadToRichText = function fromSpreadToRichText(spread, contentWrapper) {\n    var sheet = spread.getActiveSheet();\n    var row = sheet.getActiveRowIndex();\n    var col = sheet.getActiveColumnIndex();\n    contentWrapper.innerHTML = '';\n    var contentText = sheet.getValue(row, col, 3 /* sheetArea */, 1 /* richText */);\n    if (!contentText) {\n      contentText = {\n        richText: [{\n          style: {\n            font: '12px Calibri'\n          },\n          text: ''\n        }]\n      };\n    } else if (!contentText.richText) {\n      var style = sheet.getStyle(row, col);\n      var fontsize = '12px';\n      var fontName = 'Calibri';\n      var text = contentText;\n      if (style && style.font) {\n        fontsize = style.font.split(' ')[3] ? style.font.split(' ')[3] : style.font.split(' ')[0];\n        fontName = style.font.split(' ')[4] ? style.font.split(' ')[4] : style.font.split(' ')[1];\n      }\n      contentText = {\n        richText: [{\n          style: {\n            font: fontsize + ' ' + fontName\n          },\n          text: text\n        }]\n      };\n    }\n    for (var i = 0; i < contentText.richText.length; i++) {\n      var elemAttr = [];\n      if (contentText.richText[i].style && contentText.richText[i].text) {\n        for (var styleProperty in contentText.richText[i].style) {\n          (0, _toolbarTopUtils.createElemAttr)(contentText, i, styleProperty, props.dataPipeModel, elemAttr);\n        }\n      }\n      var parentElem = contentWrapper;\n      for (var j = 0; j < elemAttr.length; j++) {\n        var richTextElem = void 0;\n        if (typeof elemAttr[j] === 'string') {\n          richTextElem = (0, _toolbarTopUtils.createRichTextElement)(elemAttr[j]);\n        } else if (_typeof(elemAttr[j]) === 'object' && elemAttr[j]) {\n          richTextElem = (0, _toolbarTopUtils.createRichTextElement)(elemAttr[j].name, elemAttr[j].value);\n        }\n        appendChild(parentElem, richTextElem);\n        parentElem = richTextElem;\n        if (j === elemAttr.length - 1 && richTextElem) {\n          richTextElem.innerHTML = (0, _xssFilters[\"default\"])(contentText.richText[i].text);\n        }\n      }\n    }\n    content.current.focus();\n    textPositionChange();\n  };\n  var fromRichTextSpread = function fromRichTextSpread(content) {\n    var iterator = document.createNodeIterator(content, 5, null, false);\n    var root = iterator.nextNode(); // root\n    var richText = [];\n    var style = {};\n    var text = '';\n    var node = iterator.nextNode();\n    var underlineNode = null;\n    var lineThroughNode = null;\n    var pNode = null;\n    while (node !== null) {\n      if (node.nodeType === 3 /* TextNode */) {\n        text = node.nodeValue; // spread对xss有做处理，这里不需要做进一步的处理\n        style = document.defaultView.getComputedStyle(node.parentElement, null);\n        if (underlineNode && underlineNode.contains(node) === false) {\n          underlineNode = null;\n        }\n        if (lineThroughNode && lineThroughNode.contains(node) === false) {\n          lineThroughNode = null;\n        }\n        if (pNode && (0, _toolbarTopUtils.getLastTextNode)(pNode) === node && (0, _toolbarTopUtils.getLastTextNode)(root) !== node) {\n          text = text + '\\r\\n';\n          pNode = null;\n        }\n        var richTextStyle = getRichStyle(style, underlineNode, lineThroughNode);\n        richText.push({\n          style: richTextStyle,\n          text: text\n        });\n      } else if (node.nodeName.toLowerCase() === 'p') {\n        pNode = node;\n      } else if (node.nodeName.toLowerCase() === 'u') {\n        underlineNode = node;\n      } else if (node.nodeName.toLowerCase() === 'strike') {\n        lineThroughNode = node;\n      }\n      node = iterator.nextNode();\n    }\n    return richText;\n  };\n  var getRichStyle = function getRichStyle(style, isUnderlineNode, isLineThroughNode) {\n    return {\n      font: (style.fontWeight === '700' ? 'bold ' : '') + (style.fontStyle === 'italic' ? 'italic ' : '') + style.fontSize + ' ' + style.fontFamily,\n      foreColor: style.color,\n      textDecoration: (isUnderlineNode ? 1 : 0) | (isLineThroughNode ? 2 : 0)\n    };\n  };\n  var appendChild = function appendChild(parent, child) {\n    return parent.appendChild(child);\n  };\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return props.dataPipeModel.getData(type);\n  };\n  (0, _react.useEffect)(function () {\n    var spread = getGlobalContext().spread;\n    spread.focus(false);\n    fromSpreadToRichText(spread, content.current);\n    document.addEventListener('mousedown', mousedownHandle);\n    return function () {\n      document.removeEventListener('mousedown', mousedownHandle);\n    };\n  }, []);\n  var others = {\n    showFilter: false,\n    required: true\n  };\n  var foreColorIcon = 'kdfont-zitiyanse';\n  var foreType = 'fore';\n  var foreColor = '#fc8555';\n  var _useDrag = (0, _useDialogDrag[\"default\"])({\n      dialogWidth: 460\n    }),\n    _useDrag2 = _slicedToArray(_useDrag, 1),\n    setDragRef = _useDrag2[0];\n  var close = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _RichText[\"default\"].close, true), 'kdfont kdfont-toubudaohang_guanbi', true));\n  var okClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _RichText[\"default\"].btn, true), 'kd-button', true), 'theme-1px-border', true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RichText[\"default\"].richTextRoot\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RichText[\"default\"].container,\n    ref: container\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RichText[\"default\"].hedaer,\n    ref: setDragRef\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _RichText[\"default\"].title\n  }, (0, _intlApi.getLangMsg)('spread.key0141')), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n    className: close,\n    onClick: handleClose\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RichText[\"default\"].tools\n  }, /*#__PURE__*/_react[\"default\"].createElement(_FontStyle.FontStyleBase, {\n    fontSize: fontSize,\n    others: others,\n    fontFamily: fontFamily,\n    fontSizeData: fontSizeData,\n    handleFontFamilyChange: handleFontFamilyChange,\n    handleFontSizeChange: handleFontSizeChange\n  }), /*#__PURE__*/_react[\"default\"].createElement(_FontDecoration.FontDecorationBase, {\n    isWeight: isWeight,\n    isItalic: isItalic,\n    isUnderline: isUnderline,\n    handleWeightClick: handleWeightClick,\n    handleItalicClick: handleItalicClick,\n    handleUnderlineClick: handleUnderlineClick\n  }), /*#__PURE__*/_react[\"default\"].createElement(_ForeAndBackColor.ColorPickerBase, {\n    iconClass: foreColorIcon,\n    title: (0, _intlApi.getLangMsg)('spread.key0005'),\n    defaultColor: foreColor,\n    colorType: foreType,\n    colorChange: handleColorChange,\n    dataPipeModel: props.dataPipeModel\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RichText[\"default\"].content,\n    id: \"spreadRichText\",\n    contenteditable: \"true\",\n    onClick: textPositionChange,\n    ref: content\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RichText[\"default\"].bottom\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _RichText[\"default\"].btn,\n    onClick: handleClose\n  }, (0, _intlApi.getLangMsg)('spread.key0055')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: okClass,\n    onClick: handleClick\n  }, (0, _intlApi.getLangMsg)('spread.key0056')))));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Setting.js":
/*!************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Setting.js ***!
  \************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.SettingDialog = SettingDialog;\nexports[\"default\"] = Setting;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _Dialog = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/Dialog */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js\"));\nvar _settingInfo = __webpack_require__(/*! ../../../constant/settingInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/settingInfo.js\");\nvar _dialogElement2 = __webpack_require__(/*! ../dialogElement */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/index.js\");\nvar _toolbarTopUtils = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar __name__ = 'Setting';\nfunction Setting(_ref) {\n  var title = _ref.title,\n    icon = _ref.icon,\n    dataPipeModel = _ref.dataPipeModel,\n    isLockAll = _ref.isLockAll,\n    allowSingleUnlock = _ref.allowSingleUnlock,\n    model = _ref.model,\n    dispatch = _ref.dispatch,\n    invokeControlMethodOnly = _ref.invokeControlMethodOnly;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = _slicedToArray(_useState, 2),\n    eTop = _useState2[0],\n    setETop = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    dialog = _useState4[0],\n    showDialog = _useState4[1];\n  var _useState5 = (0, _react.useState)({}),\n    _useState6 = _slicedToArray(_useState5, 2),\n    defaultInfo = _useState6[0],\n    setDefaultInfo = _useState6[1];\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: dataPipeModel\n  });\n  var isLock = singleLock || isLockAll && !(allowSingleUnlock && singleLock === 0);\n  var handleClick = function handleClick() {\n    if (isLock || dialog) return;\n    var spread = getGlobalContext().spread;\n    var tagInfo = spread.getActiveSheet().tag();\n    var practicalInfo = (0, _toolbarTopUtils.getSettingInfo)(spread);\n    if (tagInfo && tagInfo.settingInfo) {\n      Object.assign(tagInfo.settingInfo, practicalInfo);\n      setDefaultInfo(tagInfo.settingInfo);\n    } else {\n      var info = {};\n      for (var key in _settingInfo.settingInfo) {\n        var items = _settingInfo.settingInfo[key];\n        items.forEach(function (item) {\n          var key = item.key,\n            value = item.value;\n          info[key] = value;\n        });\n      }\n      Object.assign(info, practicalInfo);\n      setDefaultInfo(info);\n    }\n    setETop(spread.getHost().parentNode);\n    showDialog(true);\n  };\n  (0, _react.useEffect)(function () {\n    dataPipeModel.registerCallback('showSettingDialog', handleClick);\n  }, []);\n  var close = function close() {\n    showDialog(false);\n  };\n  return dialog ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(SettingDialog, {\n    close: close,\n    dataPipeModel: dataPipeModel,\n    defaultInfo: defaultInfo,\n    model: model,\n    dispatch: dispatch\n  }), eTop) : null;\n}\nfunction SettingDialog(_ref2) {\n  var dataPipeModel = _ref2.dataPipeModel,\n    defaultInfo = _ref2.defaultInfo,\n    close = _ref2.close,\n    model = _ref2.model,\n    dispatch = _ref2.dispatch;\n  var _useState7 = (0, _react.useState)('general'),\n    _useState8 = _slicedToArray(_useState7, 2),\n    activeItem = _useState8[0],\n    setActiveItem = _useState8[1];\n  var newInfo = (0, _react.useRef)(defaultInfo);\n  var _useState9 = (0, _react.useState)({}),\n    _useState10 = _slicedToArray(_useState9, 2),\n    Info = _useState10[0],\n    setInfo = _useState10[1];\n\n  // spread实例\n  var spreadRef = (0, _react.useRef)(null);\n  var getGlobalContext = function getGlobalContext() {\n    var type = 'PostContext';\n    return dataPipeModel.getData(type);\n  };\n  var updateFormat = function updateFormat(key, value) {\n    Info[key] = value;\n    newInfo.current[key] = value;\n    setInfo(Info);\n  };\n  var selectType = function selectType(value) {\n    if (activeItem === 'customPaint' && value !== activeItem) {\n      setShowValue();\n    }\n    if (activeItem !== value) {\n      setActiveItem(value);\n    }\n  };\n  var getLockCell = function getLockCell() {\n    var spread = getGlobalContext().spread;\n    var sheet = spread.getActiveSheet();\n    var rc = sheet.getRowCount();\n    var cc = sheet.getColumnCount();\n    for (var i = 0; i < rc; i++) {\n      for (var j = 0; j < cc; j++) {\n        if (sheet.getCell(i, j).locked()) {\n          var message = {\n            content: (0, _intlApi.getLangMsg)('spread.key0173'),\n            duration: 3000,\n            type: 'warning'\n          };\n          (0, _appModelFunction.setDataMessages)(model.pageId, message);\n          return true;\n        }\n      }\n    }\n  };\n  var initSpread = function initSpread(spread) {\n    var _tagInfo$settingInfo;\n    var sheet = spread.getActiveSheet();\n    sheet.getCell(0, 0, 1).value((0, _intlApi.getLangMsg)('spread.key0437'));\n    sheet.getCell(0, 1, 1).value((0, _intlApi.getLangMsg)('spread.key0438'));\n    sheet.setColumnCount(2);\n    sheet.setRowCount(3);\n    sheet.setRowHeight(0, 30, 1);\n    sheet.defaults = {\n      colHeaderRowHeight: 245,\n      colWidth: 245,\n      rowHeaderColWidth: 30,\n      rowHeight: 30\n    };\n    // 底部滚动条\n    spread.options.showHorizontalScrollbar = false;\n    // 右侧滚动条\n    spread.options.showVerticalScrollbar = false;\n    // 禁止多页签\n    spread.options.tabStripVisible = false;\n    // 指定滚动条与活动工作表的最后一行和最后一列对齐\n    spread.options.scrollbarMaxAlign = true;\n    // 指定显示的滚动条基于工作表中的总列数和行数\n    spread.options.scrollbarShowMax = true;\n    // 禁用右键\n    spread.options.allowContextMenu = false;\n    // 保护工作表\n    sheet.options.isProtected = true;\n    // 行头计数\n    sheet.options.rowHeaderAutoText = 0;\n    var style = spread.getActiveSheet().getDefaultStyle();\n    style.locked = false;\n    spread.getActiveSheet().setDefaultStyle(style);\n    var defaultStyle = sheet.getDefaultStyle();\n    defaultStyle.font = (0, _intlApi.getLangMsg)('spread.key0439');\n    defaultStyle.vAlign = 1;\n    defaultStyle.hAlign = 0;\n    sheet.setDefaultStyle(defaultStyle);\n    var tagInfo = getGlobalContext().spread.getActiveSheet().tag();\n    var showValueMap = (tagInfo === null || tagInfo === void 0 || (_tagInfo$settingInfo = tagInfo.settingInfo) === null || _tagInfo$settingInfo === void 0 ? void 0 : _tagInfo$settingInfo.showValueMap) || {};\n    var i = 0;\n    for (var key in showValueMap) {\n      sheet.setValue(i, 0, key);\n      sheet.setValue(i, 1, showValueMap[key]);\n      i++;\n    }\n  };\n  var setShowValue = function setShowValue() {\n    var sheet = spreadRef.current.spread.getActiveSheet();\n    var cc = sheet.getColumnCount();\n    var showValue = {};\n    for (var i = 0; i < cc; i++) {\n      var key = sheet.getValue(i, 0);\n      var value = sheet.getValue(i, 1);\n      key && Object.assign(showValue, _defineProperty({}, key, value));\n    }\n    Info.customPaint = showValue;\n    setInfo(Info);\n  };\n  var btn = (0, _classnames2[\"default\"])(_defineProperty({}, _spreadToolbar[\"default\"].btn, true));\n  var addRow = function addRow() {\n    var spread = spreadRef.current.spread;\n    var sheet = spread.getActiveSheet();\n    sheet.addRows(sheet.getRowCount(), 1);\n  };\n  var delRow = function delRow() {\n    var spread = spreadRef.current.spread;\n    var sheet = spread.getActiveSheet();\n    var row = sheet.getActiveRowIndex();\n    sheet.deleteRows(row, 1);\n  };\n  var renderItems = function renderItems(activeItem) {\n    if (activeItem === 'customPaint') {\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadToolbar[\"default\"].root\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: _spreadToolbar[\"default\"].toolbar\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: btn,\n        onClick: addRow\n      }, \" \\u65B0\\u589E\"), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n        className: btn,\n        onClick: delRow\n      }, \" \\u5220\\u9664\")), /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.SpreadTable, {\n        ref: spreadRef,\n        initSpread: initSpread\n      }));\n    }\n    var items = _settingInfo.settingInfo[activeItem];\n    var inputProps = {\n      min: 0,\n      decimalLength: 5,\n      digitLength: 10,\n      noDisplayDecimalTailZero: true,\n      mask: '#,###'\n    };\n    return items.map(function (item, index) {\n      var key = item.key,\n        type = item.type;\n      var disableClick = key === 'protect' ? getLockCell : null;\n      inputProps.decimalLength = key === 'maxIterationChange' ? 4 : 2;\n      var otherProps = {\n        updateFormat: updateFormat,\n        // style: { marginLeft: '100px' },\n        formatKey: key,\n        data: item,\n        defaultValue: newInfo.current[key]\n      };\n      switch (type) {\n        case 'select':\n          return /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.SpreadSelect, _extends({\n            key: key\n          }, otherProps));\n        case 'checkbox':\n          return /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.SpreadCheckbox, _extends({\n            key: key,\n            disableClick: disableClick\n          }, otherProps));\n        case 'input':\n          return /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.SpreadInputNumber, _extends({\n            key: key\n          }, inputProps, otherProps));\n        default:\n          return null;\n      }\n    });\n  };\n  var confirmClick = function confirmClick() {\n    var spread = getGlobalContext().spread;\n    var args = {\n      dataPipeModel: dataPipeModel,\n      spread: spread,\n      props: {\n        model: model,\n        dispatch: dispatch\n      }\n    };\n    if (spreadRef.current) {\n      setShowValue();\n    }\n    for (var key in Info) {\n      try {\n        (0, _toolbarTopUtils.settingUtils)(key, Info[key], args);\n      } catch (error) {\n        console.log(error);\n      }\n    }\n    close();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0062'),\n    closeClick: close,\n    confirmClick: confirmClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(_dialogElement2.ListBox, {\n    activeItem: activeItem,\n    items: _settingInfo.getCategoryList,\n    selectType: selectType\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].setting\n  }, renderItems(activeItem)));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Setting.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SortAndFilter.js":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SortAndFilter.js ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar __name__ = 'SortAndFilter';\nfunction SortAndFilter(props) {\n  var _props$customSubItem;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    isFiltered = _useState2[0],\n    setIsFiltered = _useState2[1];\n  var sortAndFilterItems = (0, _react.useRef)([\n  // { eventType: 'sortAZ', text: '升序' },\n  // { eventType: 'sortZA', text: '降序' },\n  // { eventType: 'customSort', text: '自定义排序' },\n  {\n    eventType: 'setFilter',\n    text: (0, _intlApi.getLangMsg)('spread.key0057'),\n    key: \"\".concat(__name__, \"_Filter\")\n  }, {\n    eventType: 'clearFilter',\n    text: (0, _intlApi.getLangMsg)('spread.key0058'),\n    key: \"\".concat(__name__, \"_ClearFilter\")\n  }, {\n    eventType: 'reapplyFilter',\n    text: (0, _intlApi.getLangMsg)('spread.key0059'),\n    key: \"\".concat(__name__, \"_ReapplyFilter\")\n  }]);\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    props.dataPipeModel.registerCallback('SetIsFiltered', function (data) {\n      return setIsFiltered(data.isFiltered);\n    });\n  }, []);\n  var mainIconClass = (0, _classnames2[\"default\"])(_defineProperty({\n    'kdfont kdfont-guolvpaixu': true\n  }, _spreadToolbar[\"default\"].icon, true));\n  sortAndFilterItems.current.forEach(function (item) {\n    if (item.eventType === 'clearFilter' || item.eventType === 'reapplyFilter') {\n      item.disable = !isFiltered;\n    }\n  });\n  var item = (0, _react.useMemo)(function () {\n    var customSubItem = props.customSubItem || [];\n    return [].concat(_toConsumableArray(sortAndFilterItems.current), _toConsumableArray(customSubItem));\n  }, [props.refresh, (_props$customSubItem = props.customSubItem) === null || _props$customSubItem === void 0 ? void 0 : _props$customSubItem.length, sortAndFilterItems.current.length]);\n  var otherProps = {\n    dataPipeModel: props.dataPipeModel\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n    isLock: isLocked,\n    hasExpendIcon: true,\n    title: (0, _intlApi.getLangMsg)('spread.key0057'),\n    items: item,\n    mainIconClass: mainIconClass,\n    onItemClick: handleItemClick(props)\n  }, props, otherProps));\n}\nvar handleItemClick = function handleItemClick(props) {\n  return function (eventType, item) {\n    var args = {\n      type: 'SortAndFilter',\n      eventType: eventType\n    };\n    props.dataPipeModel.sendData(args);\n  };\n};\nvar _default = exports[\"default\"] = SortAndFilter;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SortAndFilter.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SpreadTooltip;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction SpreadTooltip(props) {\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var timer = (0, _react.useRef)();\n  var handleMouseEnter = function handleMouseEnter() {\n    timer.current = setTimeout(function () {\n      setVisible(true);\n    }, 100);\n  };\n  var handleMouseLeave = function handleMouseLeave() {\n    clearTimeout(timer.current);\n    setVisible(false);\n  };\n  var handleClick = function handleClick() {\n    setVisible(false);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Tooltip, {\n    popperClassName: \"kd-cq-tooltip\",\n    placement: props.placement || 'bottom',\n    tip: props.tip,\n    disabled: props.disabled,\n    visible: visible && !props.showPanel\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    onClick: handleClick,\n    onMouseEnter: handleMouseEnter,\n    onMouseLeave: handleMouseLeave\n  }, props.children));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SpreadTooltip.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.js":
/*!************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.js ***!
  \************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SubMenu;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _SubMenu = _interopRequireDefault(__webpack_require__(/*! ./SubMenu.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction SubMenu(_ref) {\n  var menuName = _ref.menuName,\n    menuEle = _ref.menuEle;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    showPanel = _useState2[0],\n    setShowPanel = _useState2[1];\n  var hideTimer = (0, _react.useRef)(); // 隐藏面板计时器\n\n  var delay = 100;\n  var arrow = (0, _classnames3[\"default\"])(_defineProperty({\n    'iconcool gengduo': true\n  }, _SubMenu[\"default\"].arrow, true));\n  var handleMouseEnter = function handleMouseEnter() {\n    clearTimeout(hideTimer.current);\n    setTimeout(function () {\n      setShowPanel(true);\n    }, delay);\n  };\n  var handleMouseLeave = function handleMouseLeave() {\n    hideTimer.current = setTimeout(function () {\n      setShowPanel(false);\n    }, delay);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _SubMenu[\"default\"].subName, true), 'kd-hover', true), 'kd-cq-spread-dropdown', true)),\n    onMouseEnter: handleMouseEnter,\n    onMouseLeave: handleMouseLeave\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, menuName), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: arrow\n  }), showPanel ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SubMenu[\"default\"].subPanel\n  }, menuEle) : null);\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SwitchView.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SwitchView.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _DropDownList = _interopRequireDefault(__webpack_require__(/*! ./DropDownList */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DropDownList.js\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 改变工作簿视图\n */\nvar __name__ = 'SwitchView';\nvar SwitchView = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(SwitchView, _React$Component);\n  function SwitchView(props) {\n    var _this;\n    _classCallCheck(this, SwitchView);\n    _this = _callSuper(this, SwitchView, [props]);\n    _this.state = {\n      views: [{\n        text: (0, _intlApi.getLangMsg)('spread.key0049'),\n        hasIcon: false,\n        eventType: 'value',\n        key: \"\".concat(__name__, \"_ValueView\")\n      }, {\n        text: (0, _intlApi.getLangMsg)('spread.key0050'),\n        hasIcon: false,\n        eventType: 'formula',\n        key: \"\".concat(__name__, \"_FormulaView\")\n      }],\n      isLock: false\n    };\n    _this.name = __name__;\n    _this.handleItemClick = _this.handleItemClick.bind(_assertThisInitialized(_this));\n    _this.setLock = _this.setLock.bind(_assertThisInitialized(_this));\n    _this.setAction = _this.setAction.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(SwitchView, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.props.dataPipeModel.registerCallback('LockToolbarItem', this.setLock);\n      this.props.dataPipeModel.registerCallback('ExcuteToolbarAction', this.setAction);\n    }\n  }, {\n    key: \"setLock\",\n    value: function setLock(data) {\n      if (this.name === data.name) {\n        this.setState({\n          isLock: data.isLock\n        });\n      }\n    }\n  }, {\n    key: \"setAction\",\n    value: function setAction(data) {\n      if (this.name === data.name) {\n        var event = this.state.views.find(function (item) {\n          return item.key === data.itemName;\n        });\n        this.handleItemClick(event.eventType);\n      }\n    }\n  }, {\n    key: \"handleItemClick\",\n    value: function handleItemClick(type, item) {\n      if (type === 'value') {\n        this.props.dataPipeModel.sendData({\n          type: 'KDSwitchView',\n          data: false\n        });\n      } else if (type === 'formula') {\n        this.props.dataPipeModel.sendData({\n          type: 'KDSwitchView',\n          data: true\n        });\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var mainIconClass = (0, _classnames2[\"default\"])(_defineProperty({\n        'kdfont kdfont-qiehuanfangan': true\n      }, _spreadToolbar[\"default\"].switchViewIcon, true));\n      var singleLock = this.state.isLock;\n      var isLock = singleLock || this.props.isLockAll && !(this.props.allowSingleUnlock && singleLock === 0);\n      var customSubItem = this.props.customSubItem || [];\n      var items = [].concat(_toConsumableArray(this.state.views), _toConsumableArray(customSubItem));\n      var otherProps = {\n        dataPipeModel: this.props.dataPipeModel\n      };\n      return /*#__PURE__*/_react[\"default\"].createElement(_DropDownList[\"default\"], _extends({\n        isLock: isLock,\n        hasExpendIcon: true,\n        title: (0, _intlApi.getLangMsg)('spread.key0051'),\n        items: items,\n        mainIconClass: mainIconClass,\n        onItemClick: this.handleItemClick\n      }, this.props, otherProps));\n    }\n  }]);\n  return SwitchView;\n}(_react[\"default\"].Component);\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SwitchView.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.js":
/*!********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.Separator = Separator;\nexports[\"default\"] = Tab;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Tab = _interopRequireDefault(__webpack_require__(/*! ./Tab.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction Tab(_ref) {\n  var tabData = _ref.tabData,\n    defaultTabKey = _ref.defaultTabKey,\n    className = _ref.className,\n    style = _ref.style,\n    onTabClick = _ref.onTabClick;\n  var _useState = (0, _react.useState)(defaultTabKey),\n    _useState2 = _slicedToArray(_useState, 2),\n    curTabKey = _useState2[0],\n    setcurTabKey = _useState2[1];\n  var handleTabClick = function handleTabClick(key) {\n    setcurTabKey(key);\n    onTabClick === null || onTabClick === void 0 || onTabClick(key);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_Tab[\"default\"].tab_container, className),\n    style: style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Tab[\"default\"].tab_header\n  }, tabData.map(function (item) {\n    var tabItemCls = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _Tab[\"default\"].tab_head_item, true), _Tab[\"default\"].selected, item.id === curTabKey));\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: item.id,\n      className: tabItemCls,\n      onClick: function onClick() {\n        return handleTabClick(item.id);\n      }\n    }, item.name);\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Tab[\"default\"].tab_body\n  }, tabData.map(function (item) {\n    var tabBodyItemCls = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _Tab[\"default\"].tab_body_item, true), _Tab[\"default\"].selected, item.id === curTabKey));\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: item.id,\n      className: tabBodyItemCls\n    }, item.content);\n  })));\n}\nfunction Separator() {\n  var style = {\n    width: '100%',\n    height: 1,\n    backgroundColor: '#D9D9D9',\n    marginBottom: 16\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: style\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextAlign.js":
/*!**************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextAlign.js ***!
  \**************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _actionUtils = __webpack_require__(/*! ../../../directives/actionUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/actionUtils.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 设置水平方向对齐的按钮组\n */\nvar __name__ = 'TextAlign';\nfunction TextAlign(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    hAlignType = _useState2[0],\n    setHAlignType = _useState2[1];\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    function handleSelectionChange(data) {\n      var sheet = props.dataPipeModel.getData('PostSheet');\n      var activeRowIndex = sheet.getActiveRowIndex();\n      var activeColumnIndex = sheet.getActiveColumnIndex();\n      var cell = sheet.getCell(activeRowIndex, activeColumnIndex);\n      var hAlign = cell.hAlign();\n      var value = cell.value();\n      if (hAlign === 3) {\n        // hAlign默认值为3，并不属于固定的某一种对齐方式\n        if ((0, _actionUtils.isNumber)(value)) {\n          hAlign = 2; // 右对齐\n        } else {\n          hAlign = 0; // 左对齐\n        }\n      }\n      setHAlignType(hAlign);\n    }\n    props.dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n  }, []);\n  var hAlignClick = function hAlignClick(type) {\n    if (isLocked) return;\n    setHAlignType(type);\n    var args = {\n      type: 'HAlignChanged',\n      hAlignType: type\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  var leftClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-wenbenzuoduiqi kd-hover-bdcolor': true,\n    'theme-1px-border': hAlignType === 0\n  });\n  var centerClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-wenbenjuzhong kd-hover-bdcolor': true,\n    'theme-1px-border': hAlignType === 1\n  });\n  var rightClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-wenbenyouduiqi kd-hover-bdcolor': true,\n    'theme-1px-border': hAlignType === 2\n  });\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].textAlign\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: leftClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0024'),\n    onClick: function onClick(e) {\n      return hAlignClick(0);\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: centerClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0025'),\n    onClick: function onClick(e) {\n      return hAlignClick(1);\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: rightClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0026'),\n    onClick: function onClick(e) {\n      return hAlignClick(2);\n    }\n  }));\n}\nvar _default = exports[\"default\"] = TextAlign;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextAlign.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextIndent.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextIndent.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 设置文本缩进的按钮组\n */\n\nvar textIndentType = [0, 1];\nvar __name__ = 'TextIndent';\nfunction TextIndent(props) {\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  var setTextIndent = function setTextIndent(type) {\n    if (isLocked) return;\n    var args = {\n      type: 'IndentChanged',\n      indentType: type\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].textIndent\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: \"kdfont kdfont-zengjiasuojinliang kd-hover-bdcolor\",\n    title: (0, _intlApi.getLangMsg)('spread.key0027'),\n    onClick: function onClick(e) {\n      setTextIndent(textIndentType[0]);\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: \"kdfont kdfont-jianshaosuojinliang kd-hover-bdcolor\",\n    title: (0, _intlApi.getLangMsg)('spread.key0028'),\n    onClick: function onClick(e) {\n      setTextIndent(textIndentType[1]);\n    }\n  }));\n}\nvar _default = exports[\"default\"] = TextIndent;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextIndent.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Undo.js":
/*!*********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Undo.js ***!
  \*********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar M = _interopRequireWildcard(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/utils/reportUtils.js */ \"./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js\"));\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 工具栏撤销操作\n */\nvar __name__ = 'Undo';\nfunction Undo(props) {\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  var undoHandleClick = function undoHandleClick() {\n    if (isLocked) return;\n    props.dataPipeModel.sendData({\n      type: 'KDUndoManger',\n      data: 'undo'\n    });\n  };\n  var redoHandleClick = function redoHandleClick() {\n    if (isLocked) return;\n    props.dataPipeModel.sendData({\n      type: 'KDUndoManger',\n      data: 'redo'\n    });\n  };\n  var undoIconClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({\n    'kdfont kdfont-chexiao2': true\n  }, _spreadToolbar[\"default\"].undo, true), 'kd-hover-bdcolor', true));\n  var redoIconClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({\n    'kdfont kdfont-fanchexiao': true\n  }, _spreadToolbar[\"default\"].redo, true), 'kd-hover-bdcolor', true));\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].buttonGroup\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: undoIconClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0128'),\n    onClick: undoHandleClick,\n    style: style\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: redoIconClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0129'),\n    onClick: redoHandleClick,\n    style: style\n  }));\n}\nvar _default = exports[\"default\"] = Undo;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Undo.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/UploadFile.js":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/UploadFile.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _dialogElement = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/dialogElement.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less\"));\nvar _Dialog = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/Dialog */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/Dialog.js\"));\nvar _RadioGroup = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/RadioGroup */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/RadioGroup.jsx\"));\nvar _CheckboxGroup = _interopRequireDefault(__webpack_require__(/*! ../dialogElement/CheckboxGroup */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/CheckboxGroup.jsx\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar M = _interopRequireWildcard(__webpack_require__(/*! ../../../directives/directiveUtils */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _utils = __webpack_require__(/*! ../../../utils */ \"./src/component/web/DataGrid/ReportGrid/utils/index.js\");\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /**\n * 工具栏上传excel文件\n * by kechuang\n */\nvar UploadFile = exports[\"default\"] = /*#__PURE__*/function (_React$Component) {\n  _inherits(UploadFile, _React$Component);\n  function UploadFile(props) {\n    var _this;\n    _classCallCheck(this, UploadFile);\n    _this = _callSuper(this, UploadFile, [props]);\n    _this.handleFileChange = _this.handleFileChange.bind(_assertThisInitialized(_this));\n    _this.showAbnormalInfo = _this.showAbnormalInfo.bind(_assertThisInitialized(_this));\n    _this.getGlobalContext = _this.getGlobalContext.bind(_assertThisInitialized(_this));\n    _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));\n    _this.setLock = _this.setLock.bind(_assertThisInitialized(_this));\n    _this.handleClose = _this.handleClose.bind(_assertThisInitialized(_this));\n    _this.handleConfirmClick = _this.handleConfirmClick.bind(_assertThisInitialized(_this));\n    _this.getTabStripVisible = _this.getTabStripVisible.bind(_assertThisInitialized(_this));\n    _this.name = 'UploadFile';\n    _this.state = {\n      isLock: false,\n      showDialog: false\n    };\n    return _this;\n  }\n  _createClass(UploadFile, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var setLock = this.setLock;\n      this.supportMultipleTab = this.getTabStripVisible();\n      this.props.dataPipeModel.registerCallback('LockToolbarItem', setLock);\n      this.props.dataPipeModel.registerCallback('UploadFile', this.handleClick);\n    }\n  }, {\n    key: \"setLock\",\n    value: function setLock(data) {\n      if (data.name === this.name) {\n        this.setState({\n          isLock: data.isLock\n        });\n      }\n    }\n  }, {\n    key: \"handleFileChange\",\n    value: function handleFileChange() {\n      var _this2 = this;\n      var excelFile = this.fileCarrier.files[0];\n      var globalThis = this.getGlobalContext();\n      var excelIo = globalThis.excelIo,\n        spread = globalThis.spread,\n        initSpreadFromJSon = globalThis.initSpreadFromJSon;\n      if (excelFile.name.substr(-5, 5) !== '.xlsx') {\n        var text = (0, _intlApi.getLangMsg)('spread.key0046');\n        this.showAbnormalInfo(text + '（.xlsx）');\n      } else {\n        excelIo.open(excelFile, function (json) {\n          if (json.sheetCount > 1) {\n            _this2.spreadJson = json;\n            _this2.setState({\n              showDialog: true,\n              sheets: Object.keys(json.sheets)\n            });\n          } else {\n            spread.suspendPaint();\n            initSpreadFromJSon(spread, json);\n            var sheet = spread.getActiveSheet();\n            _this2.unlockSheet(sheet);\n            spread.resumePaint();\n            var jsonStr = JSON.stringify(spread.toJSON());\n            var baseStr = (0, _utils.tranform2Base64)(jsonStr);\n            _this2.props.invokeControlMethodOnly(_this2.props.model, 'askExecute', [{\n              method: 'uploadFile',\n              data: baseStr\n            }]);\n          }\n        }, function (e) {\n          _this2.showAbnormalInfo(e.errorMessage);\n        });\n      }\n    }\n  }, {\n    key: \"showAbnormalInfo\",\n    value: function showAbnormalInfo(msg) {\n      var pageId = this.props.model.pageId;\n      var confirmData = {\n        id: 'abnormalInfo',\n        pageId: pageId,\n        msg: msg,\n        confirmType: 0,\n        button_type: 0\n      };\n      (0, _GlobalDataCacher.setData)(_symbolConst.KEY_SHOW_CONFIRM_EVENT, confirmData);\n    }\n  }, {\n    key: \"getGlobalContext\",\n    value: function getGlobalContext() {\n      var type = 'PostContext';\n      return this.props.dataPipeModel.getData(type);\n    }\n  }, {\n    key: \"handleClick\",\n    value: function handleClick() {\n      var singleLock = this.state.isLock;\n      var isLock = singleLock || this.props.isLockAll && !(this.props.allowSingleUnlock && singleLock === 0);\n      if (isLock || this.state.showDialog) return;\n      this.fileCarrier.value = null;\n      this.fileCarrier.click();\n    }\n  }, {\n    key: \"handleClose\",\n    value: function handleClose() {\n      this.setState({\n        showDialog: false\n      });\n    }\n  }, {\n    key: \"handleConfirmClick\",\n    value: function handleConfirmClick(selectItems) {\n      if (selectItems === undefined || selectItems === null || selectItems.size === 0) {\n        var pageId = this.props.model.pageId;\n        var message = {\n          content: (0, _intlApi.getLangMsg)({\n            key: 'spread.key0441'\n          }),\n          duration: 3000,\n          type: 2\n        };\n        (0, _appModelFunction.setDataMessages)(pageId, message);\n        return;\n      }\n      var globalThis = this.getGlobalContext();\n      var spread = globalThis.spread,\n        initSpreadFromJSon = globalThis.initSpreadFromJSon;\n      var sheets = this.state.sheets;\n      spread.suspendPaint();\n      if (this.supportMultipleTab) {\n        initSpreadFromJSon(spread, this.spreadJson);\n        for (var i = sheets.length - 1; i >= 0; i--) {\n          if (selectItems.indexOf(i) === -1) {\n            spread.removeSheet(i);\n          } else {\n            var sheet = spread.getSheet(i);\n            this.unlockSheet(sheet);\n          }\n        }\n      } else {\n        if (selectItems === null) selectItems = 0;\n        initSpreadFromJSon(spread, this.spreadJson);\n        for (var _i = sheets.length - 1; _i >= 0; _i--) {\n          if (selectItems !== _i) {\n            spread.removeSheet(_i);\n          } else {\n            var _sheet = spread.getSheet(_i);\n            this.unlockSheet(_sheet);\n          }\n        }\n      }\n      spread.resumePaint();\n      var jsonStr = JSON.stringify(spread.toJSON());\n      var baseStr = (0, _utils.tranform2Base64)(jsonStr);\n      this.props.invokeControlMethodOnly(this.props.model, 'askExecute', [{\n        method: 'uploadFile',\n        data: baseStr\n      }]);\n      this.handleClose();\n    }\n  }, {\n    key: \"unlockSheet\",\n    value: function unlockSheet(sheet) {\n      if (!sheet.options.isProtected) {\n        // 判断保护状态为false时，清空单元格的锁定\n        M.unlockSheet()(sheet);\n      }\n    }\n  }, {\n    key: \"getTabStripVisible\",\n    value: function getTabStripVisible() {\n      var globalThis = this.getGlobalContext();\n      var spread = globalThis.spread;\n      return spread.options.tabStripVisible;\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this3 = this;\n      return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n        type: \"file\",\n        ref: function ref(dom) {\n          _this3.fileCarrier = dom;\n        },\n        style: {\n          display: 'none'\n        },\n        onChange: this.handleFileChange\n      }), this.state.showDialog ? /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(ChooseSheetsDialog, {\n        onClose: this.handleClose,\n        onConfirmClick: this.handleConfirmClick,\n        sheets: this.state.sheets,\n        supportMultipleTab: this.supportMultipleTab\n      }), document.body) : null);\n    }\n  }]);\n  return UploadFile;\n}(_react[\"default\"].Component);\nfunction ChooseSheetsDialog(props) {\n  var sheets = props.sheets,\n    supportMultipleTab = props.supportMultipleTab,\n    onClose = props.onClose,\n    onConfirmClick = props.onConfirmClick;\n  var defaultSelectItems = supportMultipleTab ? (0, _immutable.List)() : 0;\n  var _useState = (0, _react.useState)(defaultSelectItems),\n    _useState2 = _slicedToArray(_useState, 2),\n    selectItems = _useState2[0],\n    setSelectItems = _useState2[1];\n  var handleChange = function handleChange(value) {\n    console.log('你选中的表是:', value);\n    setSelectItems(value);\n  };\n  var options = sheets && sheets.map(function (item, index) {\n    return {\n      value: index,\n      label: item\n    };\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(_Dialog[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('spread.key0048'),\n    closeClick: onClose,\n    confirmClick: function confirmClick(e) {\n      return onConfirmClick(selectItems, e);\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _dialogElement[\"default\"].uploadFileContainer\n  }, supportMultipleTab ? /*#__PURE__*/_react[\"default\"].createElement(_CheckboxGroup[\"default\"], {\n    name: \"sheets\",\n    defaultValue: selectItems,\n    options: options,\n    onChange: handleChange\n  }) : /*#__PURE__*/_react[\"default\"].createElement(_RadioGroup[\"default\"], {\n    name: \"sheets\",\n    defaultValue: selectItems,\n    options: options,\n    onChange: handleChange\n  })));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/UploadFile.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/VerticalAlign.js":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/VerticalAlign.js ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = VerticalAlign;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 设置垂直方向对齐的按钮组\n */\nvar __name__ = 'VerticalAlign';\nfunction VerticalAlign(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    vAlignType = _useState2[0],\n    setVAlignType = _useState2[1];\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    function handleSelectionChange(data) {\n      var sheet = props.dataPipeModel.getData('PostSheet');\n      var activeRowIndex = sheet.getActiveRowIndex();\n      var activeColumnIndex = sheet.getActiveColumnIndex();\n      var vAlign = sheet.getCell(activeRowIndex, activeColumnIndex).vAlign();\n      setVAlignType(vAlign);\n    }\n    props.dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n  }, []);\n  var vAlignClick = function vAlignClick(type) {\n    if (isLocked) return;\n    setVAlignType(type);\n    var args = {\n      type: 'VAlignChange',\n      vAlignType: type\n    };\n    props.dataPipeModel.sendData(args);\n  };\n  var topClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-zhiding kd-hover-bdcolor': true,\n    'theme-1px-border': vAlignType === 0\n  });\n  var middleClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-shangxiajuzhong kd-hover-bdcolor': true,\n    'theme-1px-border': vAlignType === 1\n  });\n  var bottomClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-zhidi kd-hover-bdcolor': true,\n    'theme-1px-border': vAlignType === 2\n  });\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].verticalAlign\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: style,\n    title: (0, _intlApi.getLangMsg)('spread.key0021'),\n    className: topClass,\n    onClick: function onClick(e) {\n      return vAlignClick(0);\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: style,\n    title: (0, _intlApi.getLangMsg)('spread.key0022'),\n    className: middleClass,\n    onClick: function onClick(e) {\n      return vAlignClick(1);\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: style,\n    title: (0, _intlApi.getLangMsg)('spread.key0023'),\n    className: bottomClass,\n    onClick: function onClick(e) {\n      return vAlignClick(2);\n    }\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/VerticalAlign.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/WordWrap.js":
/*!*************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/WordWrap.js ***!
  \*************************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = WordWrap;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useLock = _interopRequireDefault(__webpack_require__(/*! ../../../use/useLock */ \"./src/component/web/DataGrid/ReportGrid/use/useLock.jsx\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**\n * 自动换行按钮\n */\nvar __name__ = 'WordWrap';\nfunction WordWrap(props) {\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    isWordWrap = _useState2[0],\n    setWordWrap = _useState2[1];\n  var singleLock = (0, _useLock[\"default\"])({\n    name: __name__,\n    dataPipeModel: props.dataPipeModel\n  });\n  var isLocked = singleLock || props.isLockAll && !(props.allowSingleUnlock && singleLock === 0);\n  (0, _react.useEffect)(function () {\n    function handleSelectionChange(data) {\n      var sheet = props.dataPipeModel.getData('PostSheet');\n      var activeRowIndex = sheet.getActiveRowIndex();\n      var activeColumnIndex = sheet.getActiveColumnIndex();\n      var isWordWrap = sheet.getCell(activeRowIndex, activeColumnIndex).wordWrap();\n      setWordWrap(isWordWrap);\n    }\n    props.dataPipeModel.registerCallback('SendCellInfo', handleSelectionChange);\n  }, []);\n  function handleClick() {\n    if (isLocked) return;\n    setWordWrap(!isWordWrap);\n    var args = {\n      type: 'WordWrap'\n    };\n    props.dataPipeModel.sendData(args);\n  }\n  var iconClass = (0, _classnames[\"default\"])({\n    'kdfont kdfont-zidonghuanhang kd-hover-bdcolor': true,\n    'theme-1px-border': isWordWrap\n  });\n  var style = isLocked ? {\n    color: '#bbb',\n    border: 'none'\n  } : null;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadToolbar[\"default\"].wordWrapStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: style,\n    className: iconClass,\n    title: (0, _intlApi.getLangMsg)('spread.key0020'),\n    onClick: handleClick\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/WordWrap.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/index.js":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/index.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"CellsBorder\", ({\n  enumerable: true,\n  get: function get() {\n    return _CellsBorder[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"CellsFormat\", ({\n  enumerable: true,\n  get: function get() {\n    return _CellsFormat[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"CheckFormula\", ({\n  enumerable: true,\n  get: function get() {\n    return _CheckFormula[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ClearCells\", ({\n  enumerable: true,\n  get: function get() {\n    return _ClearCells[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ConditionalFormats\", ({\n  enumerable: true,\n  get: function get() {\n    return _ConditionalFormats[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"DataValidation\", ({\n  enumerable: true,\n  get: function get() {\n    return _DataValidation[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ExportFile\", ({\n  enumerable: true,\n  get: function get() {\n    return _ExportFile[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"Find\", ({\n  enumerable: true,\n  get: function get() {\n    return _Find[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"FontDecoration\", ({\n  enumerable: true,\n  get: function get() {\n    return _FontDecoration[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"FontStyle\", ({\n  enumerable: true,\n  get: function get() {\n    return _FontStyle[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ForeAndBackColor\", ({\n  enumerable: true,\n  get: function get() {\n    return _ForeAndBackColor[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"FormatPainter\", ({\n  enumerable: true,\n  get: function get() {\n    return _FormatPainter[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"FrozenSheets\", ({\n  enumerable: true,\n  get: function get() {\n    return _FrozenSheets[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"InsertRowAndCol\", ({\n  enumerable: true,\n  get: function get() {\n    return _InsertRowAndCol[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"LockCells\", ({\n  enumerable: true,\n  get: function get() {\n    return _LockCells[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"MergeCells\", ({\n  enumerable: true,\n  get: function get() {\n    return _MergeCells[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"MoveOrCopySheet\", ({\n  enumerable: true,\n  get: function get() {\n    return _MoveOrCopySheet[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"Print\", ({\n  enumerable: true,\n  get: function get() {\n    return _Print[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"RichText\", ({\n  enumerable: true,\n  get: function get() {\n    return _RichText[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"Setting\", ({\n  enumerable: true,\n  get: function get() {\n    return _Setting[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SortAndFilter\", ({\n  enumerable: true,\n  get: function get() {\n    return _SortAndFilter[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"SwitchView\", ({\n  enumerable: true,\n  get: function get() {\n    return _SwitchView[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"TextAlign\", ({\n  enumerable: true,\n  get: function get() {\n    return _TextAlign[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"TextIndent\", ({\n  enumerable: true,\n  get: function get() {\n    return _TextIndent[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"Undo\", ({\n  enumerable: true,\n  get: function get() {\n    return _Undo[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"UploadFile\", ({\n  enumerable: true,\n  get: function get() {\n    return _UploadFile[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"VerticalAlign\", ({\n  enumerable: true,\n  get: function get() {\n    return _VerticalAlign[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"WordWrap\", ({\n  enumerable: true,\n  get: function get() {\n    return _WordWrap[\"default\"];\n  }\n}));\nvar _FontStyle = _interopRequireDefault(__webpack_require__(/*! ./FontStyle.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontStyle.js\"));\nvar _FontDecoration = _interopRequireDefault(__webpack_require__(/*! ./FontDecoration.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FontDecoration.js\"));\nvar _ForeAndBackColor = _interopRequireDefault(__webpack_require__(/*! ./ForeAndBackColor.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ForeAndBackColor.js\"));\nvar _ClearCells = _interopRequireDefault(__webpack_require__(/*! ./ClearCells.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ClearCells.js\"));\nvar _TextAlign = _interopRequireDefault(__webpack_require__(/*! ./TextAlign.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextAlign.js\"));\nvar _LockCells = _interopRequireDefault(__webpack_require__(/*! ./LockCells.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/LockCells.js\"));\nvar _MergeCells = _interopRequireDefault(__webpack_require__(/*! ./MergeCells.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MergeCells.js\"));\nvar _InsertRowAndCol = _interopRequireDefault(__webpack_require__(/*! ./InsertRowAndCol.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.js\"));\nvar _FrozenSheets = _interopRequireDefault(__webpack_require__(/*! ./FrozenSheets.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FrozenSheets.js\"));\nvar _CellsBorder = _interopRequireDefault(__webpack_require__(/*! ./CellsBorder.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.js\"));\nvar _TextIndent = _interopRequireDefault(__webpack_require__(/*! ./TextIndent.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/TextIndent.js\"));\nvar _UploadFile = _interopRequireDefault(__webpack_require__(/*! ./UploadFile.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/UploadFile.js\"));\nvar _ExportFile = _interopRequireDefault(__webpack_require__(/*! ./ExportFile.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ExportFile.js\"));\nvar _CellsFormat = _interopRequireDefault(__webpack_require__(/*! ./CellsFormat.js */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.js\"));\nvar _SwitchView = _interopRequireDefault(__webpack_require__(/*! ./SwitchView */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SwitchView.js\"));\nvar _Print = _interopRequireDefault(__webpack_require__(/*! ./Print */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.js\"));\nvar _WordWrap = _interopRequireDefault(__webpack_require__(/*! ./WordWrap */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/WordWrap.js\"));\nvar _SortAndFilter = _interopRequireDefault(__webpack_require__(/*! ./SortAndFilter */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SortAndFilter.js\"));\nvar _VerticalAlign = _interopRequireDefault(__webpack_require__(/*! ./VerticalAlign */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/VerticalAlign.js\"));\nvar _Setting = _interopRequireDefault(__webpack_require__(/*! ./Setting */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Setting.js\"));\nvar _Find = _interopRequireDefault(__webpack_require__(/*! ./Find */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Find.js\"));\nvar _FormatPainter = _interopRequireDefault(__webpack_require__(/*! ./FormatPainter */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/FormatPainter.js\"));\nvar _Undo = _interopRequireDefault(__webpack_require__(/*! ./Undo */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Undo.js\"));\nvar _RichText = _interopRequireDefault(__webpack_require__(/*! ./RichText */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.js\"));\nvar _CheckFormula = _interopRequireDefault(__webpack_require__(/*! ./CheckFormula */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CheckFormula.js\"));\nvar _DataValidation = _interopRequireDefault(__webpack_require__(/*! ./DataValidation */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/DataValidation.js\"));\nvar _MoveOrCopySheet = _interopRequireDefault(__webpack_require__(/*! ./MoveOrCopySheet */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.js\"));\nvar _ConditionalFormats = _interopRequireDefault(__webpack_require__(/*! ./ConditionalFormats */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/index.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.updateDataToolbar = exports.settingUtils = exports.setToolbar = exports.matchActiveCell = exports.lockToolbar = exports.isNumber = exports.isCustom = exports.initToolbarGroup = exports.hideToolbar = exports.handleSpecialChar = exports.handleReplaceValue = exports.getSubItemKeyMap = exports.getSpanInfo = exports.getSettingInfo = exports.getSearchCondition = exports.getResultSearchinWorkbook = exports.getResultSearchinSheetEnd = exports.getResultSearchinSheetBefore = exports.getLastTextNode = exports.getCurrentItemPath = exports.getCommandName = exports.getAllMapping = exports.createToolbar = exports.createSpreadTag = exports.createRichTextElement = exports.createElemAttr = exports.colorRGBtoHex = exports.addToolbar = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _index = __webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/index.js */ \"./src/component/web/DataGrid/ReportGrid/directives/index.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar spreadNS = _spreadSheets[\"default\"].Spread.Sheets;\nvar matchActiveCell = exports.matchActiveCell = function matchActiveCell(_ref, data) {\n  var spread = _ref.spread,\n    sheet = _ref.sheet,\n    findWhat = _ref.findWhat;\n  var Condition = getSearchCondition(spread, findWhat, data);\n  Condition.startSheetIndex = spread.getActiveSheetIndex();\n  Condition.endSheetIndex = spread.getActiveSheetIndex();\n  Condition.rowStart = sheet.getActiveRowIndex();\n  Condition.columnStart = sheet.getActiveColumnIndex();\n  Condition.findBeginRow = sheet.getActiveRowIndex();\n  Condition.findBeginColumn = sheet.getActiveColumnIndex();\n  Condition.rowEnd = sheet.getActiveRowIndex();\n  Condition.columnEnd = sheet.getActiveColumnIndex();\n  Condition.searchFlags |= spreadNS.Search.SearchFlags.blockRange;\n  var searchActiveCellResult = spread.search(Condition);\n  if (searchActiveCellResult && searchActiveCellResult.searchFoundFlag) return true;\n};\nvar getSearchCondition = exports.getSearchCondition = function getSearchCondition(spread, findWhat, data) {\n  var searchCondition = new _spreadSheets[\"default\"].Spread.Sheets.Search.SearchCondition();\n  var useWildCards = data.useWildCards,\n    matchEntireL = data.matchEntireL,\n    lookIn = data.lookIn,\n    search = data.search,\n    within = data.within,\n    matchCase = data.matchCase;\n  var sheet = spread.getActiveSheet();\n  searchCondition.searchString = findWhat;\n  if (within === 'sheet') {\n    searchCondition.startSheetIndex = spread.getActiveSheetIndex();\n    searchCondition.endSheetIndex = spread.getActiveSheetIndex();\n  }\n  if (search === 'byRows') {\n    searchCondition.searchOrder = spreadNS.Search.SearchOrder.zOrder;\n    searchCondition.findBeginRow = sheet.getActiveRowIndex();\n    searchCondition.findBeginColumn = sheet.getActiveColumnIndex() + 1;\n  } else {\n    searchCondition.searchOrder = spreadNS.Search.SearchOrder.nOrder;\n    searchCondition.findBeginRow = sheet.getActiveRowIndex() + 1;\n    searchCondition.findBeginColumn = sheet.getActiveColumnIndex();\n  }\n  if (lookIn === 'formula') {\n    searchCondition.searchTarget = spreadNS.Search.SearchFoundFlags.cellFormula;\n  } else {\n    searchCondition.searchTarget = spreadNS.Search.SearchFoundFlags.cellText;\n  }\n  if (!matchCase) {\n    searchCondition.searchFlags |= spreadNS.Search.SearchFlags.ignoreCase;\n  }\n  if (matchEntireL) {\n    searchCondition.searchFlags |= spreadNS.Search.SearchFlags.exactMatch;\n  }\n  if (useWildCards) {\n    searchCondition.searchFlags |= spreadNS.Search.SearchFlags.useWildCards;\n  }\n  return searchCondition;\n};\nvar getResultSearchinWorkbook = exports.getResultSearchinWorkbook = function getResultSearchinWorkbook(searchCondition, spread, searchPosition) {\n  searchCondition.rowStart = -1;\n  searchCondition.columnStart = -1;\n  searchCondition.findBeginRow = -1;\n  searchCondition.findBeginColumn = -1;\n  searchCondition.rowEnd = -1;\n  searchCondition.columnEnd = -1;\n  if (searchPosition === 'end') {\n    searchCondition.startSheetIndex = spread.getActiveSheetIndex() + 1;\n    searchCondition.endSheetIndex = -1;\n  } else if (searchPosition === 'start') {\n    searchCondition.startSheetIndex = -1;\n    searchCondition.endSheetIndex = spread.getActiveSheetIndex() - 1;\n  }\n  var searchResult = spread.search(searchCondition);\n  return searchResult;\n};\nvar getResultSearchinSheetBefore = exports.getResultSearchinSheetBefore = function getResultSearchinSheetBefore(searchCondition, spread) {\n  var sheet = spread.getActiveSheet();\n  searchCondition.startSheetIndex = spread.getActiveSheetIndex();\n  searchCondition.endSheetIndex = spread.getActiveSheetIndex();\n  if ((searchCondition.searchFlags & spreadNS.Search.SearchFlags.blockRange) > 0) {\n    var sel = sheet.getSelections()[0];\n    searchCondition.rowStart = sel.row;\n    searchCondition.columnStart = sel.col;\n    searchCondition.findBeginRow = sel.row;\n    searchCondition.findBeginColumn = sel.col;\n    searchCondition.rowEnd = sel.row + sel.rowCount - 1;\n    searchCondition.columnEnd = sel.col + sel.colCount - 1;\n  } else {\n    searchCondition.rowStart = -1;\n    searchCondition.columnStart = -1;\n    searchCondition.findBeginRow = -1;\n    searchCondition.findBeginColumn = -1;\n    searchCondition.rowEnd = sheet.getActiveRowIndex();\n    searchCondition.columnEnd = sheet.getActiveColumnIndex();\n  }\n  var searchResult = spread.search(searchCondition);\n  return searchResult;\n};\nvar getResultSearchinSheetEnd = exports.getResultSearchinSheetEnd = function getResultSearchinSheetEnd(searchCondition, spread) {\n  var sheet = spread.getActiveSheet();\n  searchCondition.startSheetIndex = spread.getActiveSheetIndex();\n  searchCondition.endSheetIndex = spread.getActiveSheetIndex();\n  if ((searchCondition.searchFlags & spreadNS.Search.SearchFlags.blockRange) > 0) {\n    var sel = sheet.getSelections()[0];\n    searchCondition.rowStart = sel.row;\n    searchCondition.columnStart = sel.col;\n    searchCondition.rowEnd = sel.row + sel.rowCount - 1;\n    searchCondition.columnEnd = sel.col + sel.colCount - 1;\n  }\n  var searchResult = spread.search(searchCondition);\n  return searchResult;\n};\nvar handleSpecialChar = exports.handleSpecialChar = function handleSpecialChar(text) {\n  var testArr = text.split('');\n  var newTestArr = [];\n  var SpecialChar = '\\\\$()*+.[]?/^{}/|';\n  for (var i = 0; i < testArr.length; i++) {\n    if (SpecialChar.indexOf(testArr[i]) !== -1) {\n      newTestArr.push('\\\\' + testArr[i]);\n    } else {\n      newTestArr.push(testArr[i]);\n    }\n  }\n  return newTestArr.join('');\n};\nvar getSpanInfo = exports.getSpanInfo = function getSpanInfo(sheet, row, col) {\n  var span = sheet.getSpans(new spreadNS.Range(row, col, 1, 1));\n  if (span.length > 0) {\n    return {\n      rowSpan: span[0].rowCount,\n      colSpan: span[0].colCount\n    };\n  } else {\n    return {\n      rowSpan: 1,\n      colSpan: 1\n    };\n  }\n};\nvar handleReplaceValue = exports.handleReplaceValue = function handleReplaceValue(_ref2, data) {\n  var findWhat = _ref2.findWhat,\n    replaceValue = _ref2.replaceValue,\n    formula = _ref2.formula,\n    text = _ref2.text;\n  if (data.lookIn === 'value' && formula || data.matchEntireL || data.useWildCards) return replaceValue;\n  var findWhatRegExp;\n  var cellContent = formula || text;\n  var findText = handleSpecialChar(findWhat);\n  if (data.matchCase) {\n    findWhatRegExp = new RegExp(findText, 'g');\n  } else {\n    findWhatRegExp = new RegExp(findText, 'gi');\n  }\n  replaceValue = cellContent.replace(findWhatRegExp, replaceValue);\n  if (data.lookIn === 'formula') replaceValue = '=' + replaceValue;\n  return replaceValue;\n};\nvar colorRGBtoHex = exports.colorRGBtoHex = function colorRGBtoHex(color) {\n  var rgb = color.split(',');\n  var r = parseInt(rgb[0].split('(')[1]);\n  var g = parseInt(rgb[1]);\n  var b = parseInt(rgb[2].split(')')[0]);\n  var hex = '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).substring(1);\n  return hex;\n};\nvar createElemAttr = exports.createElemAttr = function createElemAttr(contentText, i, styleProperty, dataPipeModel, elemAttr) {\n  if (contentText.richText[i].style.hasOwnProperty(styleProperty)) {\n    var spanElem = document.createElement('div');\n    switch (styleProperty) {\n      case 'vertAlign':\n        if (contentText.richText[i].style[styleProperty] === 2) {\n          elemAttr.push('subscript');\n        } else if (contentText.richText[i].style[styleProperty] === 1) {\n          elemAttr.push('superscript');\n        }\n        break;\n      case 'textDecoration':\n        if ((contentText.richText[i].style[styleProperty] & 1) === 1) {\n          elemAttr.push('underline');\n        }\n        if ((contentText.richText[i].style[styleProperty] & 2) === 2) {\n          elemAttr.push('strikeThrough');\n        }\n        break;\n      case 'foreColor':\n        if (colorRGBtoHex(contentText.richText[i].style[styleProperty])) {\n          var args = {\n            type: 'colorPickerChange',\n            color: colorRGBtoHex(contentText.richText[i].style[styleProperty])\n          };\n          dataPipeModel.sendData(args);\n          elemAttr.push({\n            name: 'foreColor',\n            value: contentText.richText[i].style[styleProperty]\n          });\n        }\n        break;\n      case 'font':\n        spanElem.style.font = contentText.richText[i].style[styleProperty];\n        if (spanElem.style.fontFamily) {\n          elemAttr.push({\n            name: 'fontName',\n            value: spanElem.style.fontFamily\n          });\n        }\n        if (spanElem.style.fontSize) {\n          elemAttr.push({\n            name: 'fontSize',\n            value: parseInt(spanElem.style.fontSize)\n          });\n        }\n        if (spanElem.style.fontWeight === 'bold') {\n          elemAttr.push('bold');\n        }\n        if (spanElem.style.fontStyle === 'italic') {\n          elemAttr.push('italic');\n        }\n        break;\n    }\n  }\n};\nvar createRichTextElement = exports.createRichTextElement = function createRichTextElement(tag, value) {\n  var elem;\n  var createElement = function createElement(tag) {\n    return document.createElement(tag);\n  };\n  // fontSize只支持七种大小[ 12, 14, 16, 18, 24, 32, 48]\n  var convertFontSize = function convertFontSize(value) {\n    if (value <= 12) {\n      return 1;\n    } else if (value <= 14) {\n      return 2;\n    } else if (value <= 16) {\n      return 3;\n    } else if (value <= 18) {\n      return 4;\n    } else if (value <= 24) {\n      return 5;\n    } else if (value <= 32) {\n      return 6;\n    } else {\n      return 7;\n    }\n  };\n  switch (tag) {\n    case 'subscript':\n      elem = createElement('sub');\n      break;\n    case 'superscript':\n      elem = createElement('sup');\n      break;\n    case 'underline':\n      elem = createElement('u');\n      break;\n    case 'strikeThrough':\n      elem = createElement('strike');\n      break;\n    case 'foreColor':\n      elem = createElement('font');\n      elem.color = colorRGBtoHex(value);\n      break;\n    case 'fontName':\n      elem = createElement('font');\n      elem.face = value;\n      break;\n    case 'fontSize':\n      elem = createElement('font');\n      elem.size = convertFontSize(value);\n      break;\n    case 'bold':\n      elem = createElement('b');\n      break;\n    case 'italic':\n      elem = createElement('i');\n      break;\n    default:\n      elem = createElement('span');\n      break;\n  }\n  return elem;\n};\nvar getLastTextNode = exports.getLastTextNode = function getLastTextNode(root) {\n  if (root && root.nodeType === 1) {\n    var child = root.lastChild;\n    return getLastTextNode(child);\n  } else {\n    return root;\n  }\n};\nvar getSettingInfo = exports.getSettingInfo = function getSettingInfo(spread) {\n  var sheet = spread.getActiveSheet();\n  var info = {\n    protect: sheet.options.isProtected,\n    colWidth: sheet.defaults.colWidth,\n    rowHeight: sheet.defaults.rowHeight,\n    shrinkToFit: sheet.getDefaultStyle().shrinkToFit,\n    startIteration: spread.options.iterativeCalculation,\n    maxIterationCount: spread.options.iterativeCalculationMaximumIterations,\n    maxIterationChange: spread.options.iterativeCalculationMaximumChange,\n    allowCopyPasteExcelStyle: spread.options.allowCopyPasteExcelStyle\n  };\n  return info;\n};\nvar createSpreadTag = exports.createSpreadTag = function createSpreadTag(sheet, newInfo) {\n  // sheet.tag()的返回值不是标准的object 而是a{yn: 2, options: {…}, Zs: a, Jl: 0, Kl: 0,…} 首次使用需要清空\n  var tagInfo = sheet.tag() && Object.keys(sheet.tag()).length === 0 ? {} : sheet.tag();\n  var settingInfo = (tagInfo === null || tagInfo === void 0 ? void 0 : tagInfo.settingInfo) || {};\n  Object.assign(settingInfo, newInfo);\n  sheet.tag(_objectSpread(_objectSpread({}, tagInfo), {\n    settingInfo: settingInfo\n  }));\n};\nvar settingUtils = exports.settingUtils = function settingUtils(key, value, args) {\n  var si = args.spread.getActiveSheetIndex();\n  var sheet = args.spread.getActiveSheet();\n  var protectOptions = {\n    allowResizeRows: true,\n    allowResizeColumns: true,\n    allowInsertRows: true,\n    allowInsertColumns: true,\n    allowDeleteRows: true,\n    allowDeleteColumns: true,\n    allowFilter: true,\n    allowEditObjects: true\n  };\n  switch (key) {\n    case 'protect':\n      createSpreadTag(sheet, {\n        protect: value\n      });\n      _index.allDirective.setWorksheetOptions([{\n        si: si,\n        options: {\n          isProtected: value\n        }\n      }], args);\n      _index.allDirective.setWorksheetOptions([{\n        si: si,\n        options: {\n          protectionOptions: protectOptions\n        }\n      }], args);\n      break;\n    case 'colWidth':\n      createSpreadTag(sheet, {\n        colWidth: value\n      });\n      _index.allDirective.setSheetDefaults({\n        si: si,\n        setting: {\n          colWidth: value\n        }\n      }, args);\n      break;\n    case 'rowHeight':\n      createSpreadTag(sheet, {\n        rowHeight: value\n      });\n      _index.allDirective.setSheetDefaults({\n        si: si,\n        setting: {\n          rowHeight: value\n        }\n      }, args);\n      break;\n    case 'shrinkToFit':\n      createSpreadTag(sheet, {\n        shrinkToFit: value\n      });\n      _index.allDirective.setSheetDefaultStyle({\n        si: si,\n        style: {\n          shrinkToFit: value\n        },\n        area: 3\n      }, args);\n      break;\n    case 'showLock':\n      createSpreadTag(sheet, {\n        showLock: value\n      });\n      _index.allDirective.showLockCell({\n        showLock: value,\n        si: si\n      }, args);\n      break;\n    case 'startIteration':\n      createSpreadTag(sheet, {\n        startIteration: value\n      });\n      _index.allDirective.setWorkbookOptions({\n        iterativeCalculation: value\n      }, args);\n      break;\n    case 'maxIterationCount':\n      createSpreadTag(sheet, {\n        maxIterationCount: value\n      });\n      _index.allDirective.setWorkbookOptions({\n        iterativeCalculationMaximumIterations: value\n      }, args);\n      break;\n    case 'maxIterationChange':\n      createSpreadTag(sheet, {\n        maxIterationChange: value\n      });\n      _index.allDirective.setWorkbookOptions({\n        iterativeCalculationMaximumChange: value\n      }, args);\n      break;\n    case 'allowCopyPasteExcelStyle':\n      createSpreadTag(sheet, {\n        allowCopyPasteExcelStyle: value\n      });\n      _index.allDirective.setWorkbookOptions({\n        allowCopyPasteExcelStyle: value\n      }, args);\n      break;\n    case 'hideZero':\n      createSpreadTag(sheet, {\n        hideZero: value\n      });\n      _index.allDirective.hideZero({\n        ishide: value,\n        si: si\n      }, args);\n      break;\n    case 'customPaint':\n      createSpreadTag(sheet, {\n        showValueMap: value\n      });\n      break;\n    default:\n      createSpreadTag(sheet, _defineProperty({}, key, value));\n      _index.allDirective[key](value, args);\n      break;\n  }\n  args.spread.resumePaint();\n};\nvar getAllMapping = exports.getAllMapping = function getAllMapping(keyMap) {\n  var newKeyMap = {};\n  for (var key in keyMap) {\n    var item = keyMap[key];\n    if (Array.isArray(item)) {\n      item.forEach(function (subItem) {\n        newKeyMap[subItem.key] = subItem;\n        Object.assign(newKeyMap, getSubItemKeyMap(subItem.key, subItem.item));\n      });\n    } else {\n      Object.assign(newKeyMap, getSubItemKeyMap(item.key || key, item.item));\n    }\n  }\n  return Object.assign({}, keyMap, newKeyMap);\n};\nvar getSubItemKeyMap = exports.getSubItemKeyMap = function getSubItemKeyMap(key) {\n  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n  var subItemKeyMap = {};\n  data.forEach(function (item) {\n    if (item.key) {\n      subItemKeyMap[item.key] = item;\n    } else {\n      subItemKeyMap[\"\".concat(key, \"_\").concat(item.value)] = item;\n    }\n  });\n  return subItemKeyMap;\n};\nvar initToolbarGroup = exports.initToolbarGroup = function initToolbarGroup(defultToolbarItem, keyMap) {\n  var data = [{\n    name: '默认',\n    key: 'default',\n    toolbarItems: defultToolbarItem\n  }];\n  return createToolbar(keyMap, data);\n};\n\n// 只增不改，同一分组按钮的key是唯一的，如果key相同，且没有子项增加时指令无效\nvar addToolbar = exports.addToolbar = function addToolbar(data, keyMap, newToolbarItems) {\n  newToolbarItems.forEach(function (toolbarItem) {\n    var _toolbarItem$group = toolbarItem.group,\n      group = _toolbarItem$group === void 0 ? 'default' : _toolbarItem$group,\n      key = toolbarItem.key,\n      _toolbarItem$item = toolbarItem.item,\n      item = _toolbarItem$item === void 0 ? [] : _toolbarItem$item,\n      index = toolbarItem.index;\n    var groupIndex = data.findIndex(function (item) {\n      return item.key === group;\n    });\n    if (groupIndex === -1 || !key) return;\n    var targetIndex = index || data[groupIndex].toolbarItems.length; // 按钮插入的位置\n    var currentIndex = data[groupIndex].toolbarItems.findIndex(function (toolbarItem) {\n      return toolbarItem.key === key;\n    }); // 新加入的按钮key是否已在数组中存在\n    if (currentIndex !== -1 && item.length < 1) return console.error(\"addToolbarItems\\u6307\\u4EE4\\u65E0\\u6548\\uFF0C&\".concat(key, \"\\u5DF2\\u5B58\\u5728\\uFF0C\\u4E14\\u6CA1\\u6709\\u5B50\\u9879\\u65B0\\u589E\"));\n    if (currentIndex === -1) {\n      var _data$groupIndex$tool;\n      // 新添加的按钮在原数组中不存在，则直接创建一个自定义按钮加入数组中\n      (_data$groupIndex$tool = data[groupIndex].toolbarItems).splice.apply(_data$groupIndex$tool, [targetIndex, 0].concat(_toConsumableArray(createToolbar(keyMap, [toolbarItem]))));\n    } else {\n      // 新添加的按钮在原数组中已存在，则将新加入的功能添加到原按钮的下拉菜单中\n      var newSubItem = [];\n      var oldsubItems = data[groupIndex].toolbarItems[currentIndex].items || [];\n      item.forEach(function (subItem) {\n        if (!oldsubItems.find(function (oldItem) {\n          return oldItem.key === subItem.key;\n        })) {\n          subItem.key && newSubItem.push.apply(newSubItem, _toConsumableArray(createToolbar(keyMap, [subItem])));\n        }\n      });\n      data[groupIndex].toolbarItems[currentIndex].items = [].concat(_toConsumableArray(oldsubItems), newSubItem);\n    }\n  });\n  return data;\n};\nvar createToolbar = exports.createToolbar = function createToolbar(keyMap, data) {\n  var oldGroupId;\n  return data.reduce(function (newData, item) {\n    item = typeof item === 'string' ? {\n      key: item\n    } : item;\n    var _item = item,\n      items = _item.items,\n      toolbarItems = _item.toolbarItems,\n      key = _item.key,\n      groupId = _item.groupId;\n    if (groupId && groupId !== oldGroupId) {\n      newData.push(_objectSpread({\n        key: 'Separator'\n      }, keyMap.Separator));\n      oldGroupId = groupId;\n    }\n    if (toolbarItems) {\n      newData.push(_objectSpread(_objectSpread({}, item), {}, {\n        toolbarItems: createToolbar(keyMap, toolbarItems)\n      }));\n    }\n    if (items) {\n      newData.push(_objectSpread(_objectSpread({}, item), {}, {\n        items: createToolbar(keyMap, items)\n      }));\n    }\n    if (items || toolbarItems) return newData;\n    if (!keyMap[key]) {\n      isCustom(item) && newData.push(_objectSpread({}, item)); // 分组的工具栏按钮如果不是标准的，需要判断是否是用户自定义的，防止新增不存在的按钮\n    } else if (Array.isArray(keyMap[key])) {\n      keyMap[key].forEach(function (item) {\n        newData.push(item);\n      });\n    } else {\n      newData.push(_objectSpread({\n        key: key\n      }, keyMap[key]));\n    }\n    return newData;\n  }, []);\n};\nvar isCustom = exports.isCustom = function isCustom(_ref3) {\n  var isCustom = _ref3.isCustom,\n    callback = _ref3.callback,\n    invokeAction = _ref3.invokeAction;\n  return isCustom || callback && invokeAction;\n}; // 判断是不是二开自定义的工具栏按钮\n\nvar getCommandName = exports.getCommandName = function getCommandName() {\n  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n  var _key$split = key.split('_'),\n    _key$split2 = _slicedToArray(_key$split, 1),\n    commandName = _key$split2[0];\n  return commandName;\n};\nvar updateDataToolbar = exports.updateDataToolbar = function updateDataToolbar() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var key = arguments.length > 1 ? arguments[1] : undefined;\n  var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  try {\n    var commandName = getCommandName(key);\n    var currentitem = data.find(function (toolbarItem, i) {\n      return toolbarItem.key === commandName;\n    });\n    if (!currentitem) return data;\n    if (commandName === key) {\n      for (var _key in option) {\n        currentitem[_key] = option[_key];\n      }\n    } else {\n      var item = currentitem.items.find(function (item) {\n        return item.key === key;\n      });\n      if (item) {\n        for (var _key2 in option) {\n          item[_key2] = option[_key2];\n        }\n      }\n    }\n    return data;\n  } catch (error) {\n    console.error(error);\n    return data;\n  }\n};\nvar isNumber = exports.isNumber = function isNumber(value) {\n  var reg = /^-?\\d*\\.?\\d*$/;\n  return value != null && reg.test(value.toString());\n};\nvar getCurrentItemPath = exports.getCurrentItemPath = function getCurrentItemPath(data, groupKey, itemKey) {\n  var groupIndex = data.findIndex(function (item) {\n    return item.key === groupKey;\n  });\n  var itemIndex = data[groupIndex].toolbarItems.findIndex(function (item) {\n    return item.key === itemKey;\n  });\n  return [groupIndex, itemIndex];\n};\nvar hideToolbar = exports.hideToolbar = function hideToolbar(data, hideItems) {\n  if (hideItems.length < 1) return;\n  hideItems === null || hideItems === void 0 || hideItems.forEach(function (_ref4) {\n    var key = _ref4.name,\n      isHide = _ref4.isHide,\n      _ref4$group = _ref4.group,\n      group = _ref4$group === void 0 ? 'default' : _ref4$group;\n    var _getCurrentItemPath = getCurrentItemPath(data, group, key),\n      _getCurrentItemPath2 = _slicedToArray(_getCurrentItemPath, 2),\n      groupIndex = _getCurrentItemPath2[0],\n      itemIndex = _getCurrentItemPath2[1];\n    if (groupIndex === -1 || itemIndex === -1) return;\n    data[groupIndex].toolbarItems[itemIndex].isHide = isHide;\n  });\n  return data;\n};\nvar setToolbar = exports.setToolbar = function setToolbar(data, keyMap) {\n  var hasDefault = data.findIndex(function (item) {\n    return item.key === 'default';\n  });\n  data = hasDefault === -1 ? [{\n    name: '默认',\n    key: 'default',\n    toolbarItems: data\n  }] : data;\n  return createToolbar(keyMap, data);\n};\nvar lockToolbar = exports.lockToolbar = function lockToolbar(toolbarItems, option) {\n  option === null || option === void 0 || option.forEach(function (_ref5) {\n    var isLock = _ref5.isLock,\n      name = _ref5.name;\n    isLock = isLock ? true : 0;\n    toolbarItems = updateDataToolbar(toolbarItems, name, {\n      isLock: isLock\n    });\n  });\n  return toolbarItems;\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarTopUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/widget/ErrorBoundaries.jsx":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/widget/ErrorBoundaries.jsx ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = ErrorBoundaries;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _spreadStyle = _interopRequireDefault(__webpack_require__(/*! ../../styles/spreadStyle.less */ \"./src/component/web/DataGrid/ReportGrid/styles/spreadStyle.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ErrorBoundaries(props) {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadStyle[\"default\"].errorRoot\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadStyle[\"default\"].errorImg\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadStyle[\"default\"].errorMsg\n  }, props.msg));\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/widget/ErrorBoundaries.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/widget/SpreadLoading.jsx":
/*!***************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/widget/SpreadLoading.jsx ***!
  \***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _LoadingGIF = _interopRequireDefault(__webpack_require__(/*! @/component/common/LoadingGIF */ \"./src/component/common/LoadingGIF.js\"));\nvar _spreadStyle = _interopRequireDefault(__webpack_require__(/*! ../../styles/spreadStyle.less */ \"./src/component/web/DataGrid/ReportGrid/styles/spreadStyle.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar SpreadLoading = /*#__PURE__*/_react[\"default\"].forwardRef(function (_ref, ref) {\n  var text = _ref.text;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadStyle[\"default\"].mask,\n    ref: ref\n  }, /*#__PURE__*/_react[\"default\"].createElement(_LoadingGIF[\"default\"], {\n    className: _spreadStyle[\"default\"].loading\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _spreadStyle[\"default\"].text\n  }, text));\n});\nvar _default = exports[\"default\"] = SpreadLoading;\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/widget/SpreadLoading.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/use/useLock.jsx":
/*!***************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/use/useLock.jsx ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = useLock;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = __webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar LockToolbarItem = 'LockToolbarItem';\nfunction useLock(_ref) {\n  var name = _ref.name,\n    dataPipeModel = _ref.dataPipeModel;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    locked = _useState2[0],\n    setLocked = _useState2[1];\n  (0, _react.useEffect)(function () {\n    var handleLock = function handleLock(data) {\n      if (data.name === name) {\n        setLocked(data.isLock);\n      }\n    };\n    dataPipeModel.registerCallback(LockToolbarItem, handleLock);\n  }, []);\n  return locked;\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/use/useLock.jsx?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/utils/MergeAction.js":
/*!********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/utils/MergeAction.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _ajaxState = __webpack_require__(/*! ../../../../../api/ajaxState */ \"./src/api/ajaxState.js\");\nvar proxy = _interopRequireWildcard(__webpack_require__(/*! ../../../../../proxy/formproxy */ \"./src/proxy/formproxy.js\"));\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 && Object.prototype.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; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /**\n * 合并相同指令的参数\n * updateFormula  updateValues\n * 在触发cellchanged rangeChanged rowChanged colChanged 这些事件的时候，有时会需要合并参数，再发指令到后台\n */\nvar MergeAction = exports[\"default\"] = /*#__PURE__*/function () {\n  function MergeAction(props) {\n    _classCallCheck(this, MergeAction);\n    this.props = props;\n    this.actionArgs = {};\n    this.methodTimer = {};\n    this.registerAction = this.registerAction.bind(this);\n  }\n  _createClass(MergeAction, [{\n    key: \"registerAction\",\n    value: function registerAction(params) {\n      var _this = this;\n      var method = params.method,\n        arg = params.arg,\n        _params$needMergedKey = params.needMergedKeys,\n        needMergedKeys = _params$needMergedKey === void 0 ? [] : _params$needMergedKey; // {values:[{r,c,v}],formula:[{r,c,f}]}\n      var mergeArgs = {};\n      needMergedKeys.forEach(function (key) {\n        if (_this.actionArgs[method] && _this.actionArgs[method][key]) {\n          mergeArgs[key] = [].concat(_toConsumableArray(_this.actionArgs[method][key]), _toConsumableArray(arg[key]));\n        } else {\n          mergeArgs[key] = _toConsumableArray(arg[key]);\n        }\n      });\n      this.actionArgs[method] = Object.assign({}, this.actionArgs[method], arg, mergeArgs);\n      // 注册定时器\n      this.methodTimer[method] && clearTimeout(this.methodTimer[method]);\n      this.methodTimer[method] = setTimeout(function () {\n        _this.executeAction(method, _this.actionArgs[method]);\n      }, 0);\n    }\n  }, {\n    key: \"executeAction\",\n    value: function executeAction(method, params) {\n      var _this$props = this.props,\n        model = _this$props.model,\n        invokeControlMethodOnly = _this$props.invokeControlMethodOnly;\n      var requestKey = (0, _ajaxState.makeAjaxKey)(model.pageId, model.key, method);\n      proxy.disableDisposeAction(requestKey);\n      invokeControlMethodOnly(model, method, [params]);\n      proxy.allowDisposeAction(requestKey);\n      this.clearAction(method);\n    }\n  }, {\n    key: \"clearAction\",\n    value: function clearAction(method) {\n      this.methodTimer[method] && clearTimeout(this.methodTimer[method]);\n      this.actionArgs[method] = null;\n    }\n  }, {\n    key: \"distory\",\n    value: function distory() {\n      this.actionArgs = null;\n      this.methodTimer = null;\n    }\n  }]);\n  return MergeAction;\n}();\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/utils/MergeAction.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/utils/common.js":
/*!***************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/utils/common.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.autoFitRow = autoFitRow;\nexports.unExplainActiveCell = exports.transformStyle = exports.transformRange = exports.setSheetTag = exports.setSheetDefaultStyle = exports.setCustomSheetDefaultStyle = exports.pxToPt = exports.ptToPx = exports.mergeSquare = exports.isRowFilteredOut = exports.isIntersect = exports.isInside = exports.initchangedRowListFromJson = exports.getSeletedSheets = exports.extractFontStyle = exports.explainActiveCell = exports.convertRange = exports.clearCellValue = exports.clearCellStyle = void 0;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _spreadStyle = __webpack_require__(/*! ../constant/spreadStyle */ \"./src/component/web/DataGrid/ReportGrid/constant/spreadStyle.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n// 转换通过SpreadJS的getRange()方法获取的范围\nvar convertRange = exports.convertRange = function convertRange(sheet, _ref) {\n  var row = _ref.row,\n    col = _ref.col,\n    rowCount = _ref.rowCount,\n    colCount = _ref.colCount;\n  return {\n    row: row === -1 ? 0 : row,\n    col: col === -1 ? 0 : col,\n    rowCount: rowCount === -1 ? sheet.getRowCount() : rowCount,\n    colCount: colCount === -1 ? sheet.getColumnCount() : colCount\n  };\n};\n\n// 将range转换为简写的形式\nvar transformRange = exports.transformRange = function transformRange(_ref2) {\n  var row = _ref2.row,\n    col = _ref2.col,\n    rowCount = _ref2.rowCount,\n    colCount = _ref2.colCount;\n  return {\n    r: row,\n    c: col,\n    rc: rowCount,\n    cc: colCount\n  };\n};\n\n/**\n * 提取font样式中单个的样式\n * @param {String} font - 'italic normal bold 12px Calibri'\n * @return {Array} ['italic', 'normal', 'bold', '12px', 'Calibri']\n */\nvar extractFontStyle = exports.extractFontStyle = function extractFontStyle(font) {\n  return font.split(' ');\n};\n\n/**\n * 将spread的样式转换为css样式（持续更新）\n * @param {Object} style - spread样式\n * @return {Object} css样式\n */\nvar transformStyle = exports.transformStyle = function transformStyle(style) {\n  var fontArray = extractFontStyle(style.font);\n  return {\n    backgroundColor: style.backColor,\n    color: style.foreColor,\n    fontStyle: fontArray[0],\n    fontWeight: fontArray[2],\n    textDecoration: _spreadStyle.TEXT_DECORATION[style.textDecoration]\n  };\n};\n\n// 解析选择单元格的坐标，变成‘A1’\nvar explainActiveCell = exports.explainActiveCell = function explainActiveCell(sheet, selection) {\n  var newSelection = convertRange(sheet, selection);\n  var row = newSelection.row,\n    col = newSelection.col,\n    rowCount = newSelection.rowCount,\n    colCount = newSelection.colCount;\n  var colHeader = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.colHeader;\n  var rowHeader = _spreadSheets[\"default\"].Spread.Sheets.SheetArea.rowHeader;\n  var fromColCell = sheet.getValue(0, col, colHeader);\n  var fromRowCell = sheet.getValue(row, 0, rowHeader);\n  var toColCell = sheet.getValue(0, col + colCount - 1, colHeader);\n  var toRowCell = sheet.getValue(row + rowCount - 1, 0, rowHeader);\n  if (selection.col === -1) {\n    // 整行时只显示行数\n    return fromRowCell + ':' + toRowCell;\n  } else if (selection.row === -1) {\n    // 整列时只显示列数\n    return fromColCell + ':' + toColCell;\n  } else {\n    if (rowCount === 1 && colCount === 1) {\n      // 选中单个单元格时不需要冒号\n      return fromColCell + fromRowCell;\n    } else {\n      return fromColCell + fromRowCell + ':' + (toColCell + toRowCell); // 选中普通区域\n    }\n  }\n};\n\n// 反解析选择单元格的坐标，由‘A1’变成row:0 col:0 rowCount:1 colCount:1\nvar unExplainActiveCell = exports.unExplainActiveCell = function unExplainActiveCell(sheet, str) {\n  var range = _spreadSheets[\"default\"].Spread.Sheets.CalcEngine.formulaToRange(sheet, str);\n  return range;\n};\nvar setCustomSheetDefaultStyle = exports.setCustomSheetDefaultStyle = function setCustomSheetDefaultStyle(_ref3) {\n  var spread = _ref3.spread,\n    index = _ref3.index,\n    style = _ref3.style;\n  var sheet = getSheet(spread, index);\n  var defaultStyle = sheet.getDefaultStyle();\n  Object.assign(defaultStyle, style);\n  if (defaultStyle.locked === undefined) {\n    defaultStyle.locked = false;\n  }\n  sheet.setDefaultStyle(defaultStyle, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n};\nvar setSheetDefaultStyle = exports.setSheetDefaultStyle = function setSheetDefaultStyle(spread, index) {\n  var sheet = getSheet(spread, index);\n  var defaultStyle = sheet.getDefaultStyle();\n  if (defaultStyle.font === undefined) {\n    defaultStyle.font = '12px Calibri'; // spread中表格默认字体大小最小为12px，现在默认显示的就是Calibri，不是宋体，这里的设置会导致实际的效果与计算的效果不一致，需要改成Calibri\n  }\n  if (defaultStyle.locked === undefined) {\n    defaultStyle.locked = false;\n  }\n  sheet.setDefaultStyle(defaultStyle, _spreadSheets[\"default\"].Spread.Sheets.SheetArea.viewport);\n};\nvar getSheet = function getSheet(spread, index) {\n  return spread.getSheet(index) || spread.getActiveSheet();\n};\n\n/*\n  获取选中的页签\n  reutrn 数组，包含所有选中页签索引值(隐藏的不算)\n*/\nvar getSeletedSheets = exports.getSeletedSheets = function getSeletedSheets(spread) {\n  var _spread$options;\n  if (spread !== null && spread !== void 0 && (_spread$options = spread.options) !== null && _spread$options !== void 0 && _spread$options.tabStripVisible) {\n    var selSheets = [];\n    if (spread.sheets) {\n      spread.sheets.forEach(function (sheet, index) {\n        if (sheet && sheet.isSelected() && sheet.visible()) {\n          selSheets.push(index);\n        }\n      });\n    }\n    return selSheets;\n  }\n  return undefined;\n};\n\n/**\n * 判断A区域是否在B区域中\n * @param {Object} squareA - {\"topRow\": 0, \"bottomRow\": 4, \"leftCol\": 0, \"rightCol\": 1 }\n * @param {Object} squareB - {\"topRow\": 0, \"bottomRow\": 4, \"leftCol\": 0, \"rightCol\": 1 }\n * @return {Boolean} A区域是否在B区域中\n */\nvar isInside = exports.isInside = function isInside(squareA, squareB) {\n  return squareA.topRow >= squareB.topRow && squareA.bottomRow <= squareB.bottomRow && squareA.leftCol >= squareB.leftCol && squareA.rightCol <= squareB.rightCol;\n};\n\n/**\n * 判断A区域是否与B区域相交或相邻\n * @param {Object} squareA - {\"topRow\": 0, \"bottomRow\": 4, \"leftCol\": 0, \"rightCol\": 1 }\n * @param {Object} squareB - {\"topRow\": 0, \"bottomRow\": 4, \"leftCol\": 0, \"rightCol\": 1 }\n * @return {Boolean} A区域是否与B区域相交或相邻\n */\nvar isIntersect = exports.isIntersect = function isIntersect(squareA, squareB) {\n  return !(squareA.leftCol > squareB.rightCol || squareA.rightCol < squareB.leftCol || squareA.topRow > squareB.bottomRow || squareA.bottomRow < squareB.topRow);\n};\n\n/**\n * 合并相邻或者相交的单元格数组(只合并能组成一个完整方形的区域，比如起始行和结尾行相同)\n * @param {Object} squareArray - 单元格数组 [{\"topRow\": 0, \"bottomRow\": 4, \"leftCol\": 0, \"rightCol\": 1 }]\n * @param {Object} newSquare - 新加入的单元格 {\"topRow\": 0, \"bottomRow\": 4, \"leftCol\": 0, \"rightCol\": 1 }\n * @return {Array} 合并后的数组\n */\nvar mergeSquare = exports.mergeSquare = function mergeSquare(squareArray) {\n  var mergeArray = []; // 最终的结果数组\n  var _loop = function _loop() {\n    var checkSquare = squareArray[i];\n    if (mergeArray.length === 0) {\n      mergeArray.push(checkSquare);\n    } else {\n      var isRepeatSquare = mergeArray.some(function (mergeArea, index) {\n        if (isInside(mergeArea, checkSquare)) {\n          // 合并情况：如果当前处理的方形在检查方形之中，则合并，返回检查方形\n          mergeArray[index] = checkSquare;\n          return true;\n        } else if (isInside(checkSquare, mergeArea)) {\n          // 合并情况：反之，返回当前处理方形\n          return true;\n        } else if (isIntersect(mergeArea, checkSquare)) {\n          // 相交或相邻\n          if (mergeArea.leftCol === checkSquare.leftCol && mergeArea.rightCol === checkSquare.rightCol) {\n            // 左右两侧对其\n            var topRow = Math.min(mergeArea.topRow, checkSquare.topRow);\n            var bottomRow = Math.max(mergeArea.bottomRow, checkSquare.bottomRow);\n            mergeArray[index] = {\n              leftCol: mergeArea.leftCol,\n              rightCol: mergeArea.rightCol,\n              topRow: topRow,\n              bottomRow: bottomRow\n            };\n            return true;\n          } else if (mergeArea.topRow === checkSquare.topRow && mergeArea.bottomRow === checkSquare.bottomRow) {\n            // 上下两侧对其\n            var leftCol = Math.min(mergeArea.leftCol, checkSquare.leftCol);\n            var rightCol = Math.max(mergeArea.rightCol, checkSquare.rightCol);\n            mergeArray[index] = {\n              leftCol: leftCol,\n              rightCol: rightCol,\n              topRow: mergeArea.topRow,\n              bottomRow: mergeArea.bottomRow\n            };\n            return true;\n          }\n        } else {\n          return false;\n        }\n      });\n      if (!isRepeatSquare) mergeArray.push(checkSquare);\n    }\n  };\n  for (var i = 0; i < squareArray.length; i++) {\n    _loop();\n  }\n  return mergeArray;\n};\n\n/**\n * 将px单位转换为pt单位\n * @param {Number} px - 输入的px值\n * @return {Number} 转换为pt的值\n */\nvar pxToPt = exports.pxToPt = function pxToPt(px) {\n  return Math.round(px * (72 / 96));\n}; // 96px等于72pt\n\n/**\n * 将pt单位转换为px单位\n * @param {Number} pt - 输入的pt值\n * @return {Number} 转换为px的值\n */\nvar ptToPx = exports.ptToPx = function ptToPx(pt) {\n  return Math.round(pt * (96 / 72));\n}; // 96px等于72pt\n\n/**\n * 获取当前行是否被过滤\n * @param {Object} sheet - 目标工作表\n * @param {Object} row - 目标行\n * @return {Boolean} 当前行是否被过滤（如果不存在过滤则直接返回false）\n */\nvar isRowFilteredOut = exports.isRowFilteredOut = function isRowFilteredOut(sheet, row) {\n  if (!sheet.rowFilter()) return false;\n  var _sheet$rowFilter$toJS = sheet.rowFilter().toJSON(),\n    filteredOutRows = _sheet$rowFilter$toJS.filteredOutRows;\n  return filteredOutRows && filteredOutRows.includes(row);\n};\n\n/**\n * 清除索引对应单元格的样式\n * @param {Object} sheet - 工作表\n * @param {Number} row- 行索引\n * @param {Number} col- 列索引\n */\nvar clearCellStyle = exports.clearCellStyle = function clearCellStyle(sheet, row, col) {\n  var cell = sheet.getCell(row, col);\n  var isLocked = cell.locked();\n  cell.clear(_spreadSheets[\"default\"].Spread.Sheets.StorageType.style | _spreadSheets[\"default\"].Spread.Sheets.StorageType.hyperlink);\n  if (isLocked) cell.locked(true); // spread清除style会将锁定清除，但是锁定不应该清除\n  sheet.conditionalFormats.removeRuleByRange(row, col, 1, 1);\n};\nvar clearCellValue = exports.clearCellValue = function clearCellValue(sheet, row, col) {\n  var cell = sheet.getCell(row, col);\n  cell.clear(_spreadSheets[\"default\"].Spread.Sheets.StorageType.data);\n};\n\n/**\n * 设置sheet的tag信息\n * @param {Object} sheet - 工作表\n * @param {Object} mergeTagInfo - 需要set的tagInfo\n */\nvar setSheetTag = exports.setSheetTag = function setSheetTag(sheet, mergeTagInfo) {\n  var originTagInfo = sheet.tag() || {};\n  Object.assign(originTagInfo, mergeTagInfo);\n  sheet.tag(originTagInfo);\n};\n\n/**\n * 行高自适应\n * @param {Object} sheet - sheet对象\n * @param {Number} rowIndex - 行下标\n */\nfunction autoFitRow(sheet, rowIndex) {\n  var _sheet$tag;\n  var changedRowListConfig = ((_sheet$tag = sheet.tag()) === null || _sheet$tag === void 0 ? void 0 : _sheet$tag.changedRowListConfig) || {};\n  var _changedRowListConfig = changedRowListConfig.changedRowList,\n    changedRowList = _changedRowListConfig === void 0 ? [] : _changedRowListConfig;\n  if (changedRowList.includes(rowIndex)) return; // 如果是被手动修改过高度的行，也不进行自适应\n  changedRowListConfig.isAutoFit = true;\n  setSheetTag(sheet, {\n    changedRowListConfig: changedRowListConfig\n  }); // 自适应也会触发行高变化的事件，这里需要做一个判断，在自适应的时候不去触发行高变化记录变化的行\n  sheet.autoFitRow(rowIndex);\n  var defaultRowHeight = sheet.defaults.rowHeight;\n  var currentRowHeight = sheet.getRowHeight(rowIndex);\n  if (defaultRowHeight > currentRowHeight) {\n    // 如果自适应后小于默认的高度，则恢复为最小行高\n    sheet.setRowHeight(rowIndex, defaultRowHeight);\n  }\n}\n\n/**\n * 初始化json的行高自适应标记\n *\n */\nvar initchangedRowListFromJson = exports.initchangedRowListFromJson = function initchangedRowListFromJson(spread, json) {\n  try {\n    var sheets = json.sheets;\n    for (var key in sheets) {\n      var _sheetJson$rows;\n      var sheetJson = sheets[key];\n      var changedRowList = (_sheetJson$rows = sheetJson.rows) === null || _sheetJson$rows === void 0 ? void 0 : _sheetJson$rows.map(function (width, index) {\n        return width && index;\n      }).filter(function (rowIndex) {\n        return rowIndex;\n      });\n      var sheet = spread.getSheetFromName(key);\n      setSheetTag(sheet, {\n        changedRowListConfig: {\n          changedRowList: changedRowList,\n          isAutoFit: false\n        }\n      });\n    }\n  } catch (error) {\n    console.log('initchangedRowListFromJson error：', error);\n  }\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/utils/common.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/utils/convertFormat.js":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/utils/convertFormat.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.getFormatString = getFormatString;\nexports.getGeneralFormatString = getGeneralFormatString;\nexports.getNegativeFormat = getNegativeFormat;\nexports.isTime = exports.isText = exports.isShortDate = exports.isScientific = exports.isPercentage = exports.isNumbers = exports.isLongDate = exports.isGeneral = exports.isFraction = exports.isCurrency = exports.isAccounting = void 0;\nexports.parse = parse;\nexports.stringify = stringify;\nexports.transFormatter = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _formatInfo = __webpack_require__(/*! ../constant/formatInfo */ \"./src/component/web/DataGrid/ReportGrid/constant/formatInfo.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction parse(formatString) {\n  var standard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'spread';\n  if (formatString === undefined) formatString = '';\n  var decimalPlace = 0; // 小数位-通用\n  var thousandSeparator = false; // 千分位-通用\n  var negativeNumber = 0; // 负数-数值\n  var currencyType = 0; // 负数-货币\n  var currencySymbol = '¥'; // 符号-货币\n  var accountingSymbol = 0; // 符号-会计专用\n  var dateType = 0; // 日期\n  var custom = formatString;\n  if (formatString.indexOf('.') !== -1) {\n    var n = formatString.indexOf('.');\n    for (var i = n + 1; i < formatString.length; i++) {\n      if (formatString.substring(i, i + 1) === '0') {\n        decimalPlace++;\n      } else {\n        break;\n      }\n    }\n  }\n  if (formatString.indexOf('#,') !== -1) {\n    thousandSeparator = true;\n  }\n  var replaceStr = formatString.substring(formatString.indexOf('.'), formatString.indexOf('.') + decimalPlace + 1);\n  var tempFormat = formatString.replace(new RegExp(replaceStr, 'g'), '');\n\n  // 数值负数进行下拉项匹配\n  var negativeNumberFormats = standard === 'spread' ? _formatInfo.numberFormats : _formatInfo.excelNumberFormats;\n  negativeNumber = getNegativeFormat(negativeNumberFormats, tempFormat);\n  if (formatString.indexOf('$') !== -1) {\n    currencySymbol = '$';\n    tempFormat = tempFormat.replace(/\\$/g, '');\n    accountingSymbol = 1;\n  } else if (formatString.indexOf('¥') !== -1) {\n    currencySymbol = '¥';\n    tempFormat = tempFormat.replace(/¥/g, '');\n    accountingSymbol = 0;\n  }\n\n  // 货币负数进行下拉项匹配\n  var negativeCurrencyFormats = standard === 'spread' ? _formatInfo.currencyFormats : _formatInfo.excelCurrencyFormats;\n  currencyType = getNegativeFormat(negativeCurrencyFormats, tempFormat);\n  dateType = _formatInfo.dateFormats.findIndex(function (item) {\n    return item === formatString;\n  });\n  if (dateType === -1) {\n    dateType = 0;\n  }\n  return {\n    decimalPlace: decimalPlace,\n    thousandSeparator: thousandSeparator,\n    negativeNumber: negativeNumber,\n    currencySymbol: currencySymbol,\n    currencyType: currencyType,\n    accountingSymbol: accountingSymbol,\n    dateType: dateType,\n    custom: custom,\n    standard: standard\n  };\n}\nfunction getNegativeFormat(negativeFormats, tempFormat) {\n  var numberIndex = negativeFormats.findIndex(function (negativeFormat) {\n    return tempFormat === negativeFormat;\n  });\n  return numberIndex === -1 ? 0 : numberIndex % negativeFormats.length;\n}\nfunction stringify(formatObj, activeType) {\n  var formatStr = 'General';\n  switch (activeType) {\n    case 'general':\n      formatStr = 'General';\n      break;\n    case 'numbers':\n      formatStr = analysNumber(formatObj);\n      break;\n    case 'currency':\n      formatStr = analysCurrency(formatObj);\n      break;\n    case 'accounting':\n      formatStr = analysAccounting(formatObj);\n      break;\n    case 'date':\n      formatStr = analysDate(formatObj);\n      break;\n    case 'percentage':\n      formatStr = analysPercent(formatObj);\n      break;\n    case 'text':\n      formatStr = '@';\n      break;\n    case 'custom':\n      formatStr = analysCustom(formatObj);\n      break;\n    default:\n      break;\n  }\n  var formatter = new _spreadSheets[\"default\"].Spread.Formatter.GeneralFormatter(formatStr);\n  return formatter;\n}\nvar analysNumber = function analysNumber(formatObj) {\n  var formatStr = '';\n  if (formatObj.thousandSeparator) {\n    formatStr += '#,##0';\n  } else {\n    formatStr += '0';\n  }\n  var decimelNum = formatObj.decimalPlace || 0;\n  var decimelStr = getDecimelStr(decimelNum);\n  formatStr += decimelStr;\n  if (formatObj.standard === 'excel') {\n    switch (formatObj.negativeNumber) {\n      case 0:\n        formatStr = \"\".concat(formatStr, \"_);[Red](\").concat(formatStr, \")\");\n        break;\n      case 1:\n        formatStr = \"\".concat(formatStr, \"_);(\").concat(formatStr, \")\");\n        break;\n      case 2:\n        formatStr = \"\".concat(formatStr, \";[Red]\").concat(formatStr);\n        break;\n      case 3:\n        break;\n      case 4:\n        formatStr = \"\".concat(formatStr, \"_ ;[Red]-\").concat(formatStr);\n        break;\n      default:\n        break;\n    }\n  } else {\n    switch (formatObj.negativeNumber) {\n      case 0:\n        break;\n      case 1:\n        formatStr = \"\".concat(formatStr, \";[Red]\").concat(formatStr);\n        break;\n      case 2:\n        formatStr = \"\".concat(formatStr, \"_);(\").concat(formatStr, \")\");\n        break;\n      case 3:\n        formatStr = \"\".concat(formatStr, \"_);[Red](\").concat(formatStr, \")\");\n        break;\n      default:\n        break;\n    }\n  }\n  return formatStr;\n};\nvar analysCurrency = function analysCurrency(formatObj) {\n  var formatStr = '#,##0';\n  var symbol = formatObj.currencySymbol;\n  var num = formatObj.decimalPlace || 0;\n  var decimelStr = getDecimelStr(num);\n  formatStr += decimelStr;\n  if (formatObj.standard === 'excel') {\n    switch (formatObj.currencyType) {\n      case 0:\n        formatStr = \"\".concat(symbol).concat(formatStr, \"_);[Red](\").concat(symbol).concat(formatStr, \")\");\n        break;\n      case 1:\n        formatStr = \"\".concat(symbol).concat(formatStr, \"_);(\").concat(symbol).concat(formatStr, \")\");\n        break;\n      case 2:\n        formatStr = \"\".concat(symbol).concat(formatStr, \";[Red]\").concat(symbol).concat(formatStr);\n        break;\n      case 3:\n        formatStr = symbol === '$' ? \"\".concat(symbol).concat(formatStr, \";-\").concat(symbol).concat(formatStr) : \"\".concat(symbol).concat(formatStr, \";\").concat(symbol, \"-\").concat(formatStr);\n        break;\n      case 4:\n        formatStr = symbol === '$' ? \"\".concat(symbol).concat(formatStr, \";[Red]-\").concat(symbol).concat(formatStr) : \"\".concat(symbol).concat(formatStr, \";[Red]\").concat(symbol, \"-\").concat(formatStr);\n        break;\n      default:\n        break;\n    }\n  } else {\n    switch (formatObj.currencyType) {\n      case 0:\n        formatStr = \"\".concat(symbol).concat(formatStr);\n        break;\n      case 1:\n        formatStr = \"\".concat(symbol).concat(formatStr, \";[Red]\").concat(symbol).concat(formatStr);\n        break;\n      case 2:\n        formatStr = \"\".concat(symbol).concat(formatStr, \";\").concat(symbol, \"-\").concat(formatStr);\n        break;\n      case 3:\n        formatStr = \"\".concat(symbol).concat(formatStr, \";[Red]\").concat(symbol, \"-\").concat(formatStr);\n        break;\n      default:\n        break;\n    }\n  }\n  return formatStr;\n};\nvar analysAccounting = function analysAccounting(formatObj) {\n  var decimalPlace = formatObj.decimalPlace || 0;\n  var selectIndex = formatObj.accountingSymbol || 0;\n  var excelFormatStr = '_ \"¥\"* #,##0_ ;_ \"¥\"* -#,##0_ ;_ \"¥\"* \"-\"??_ ;_ @_ ';\n  var spreadFormatStr = '_(¥* #,##0_);_(¥* (#,##0);_(¥* \"-\"??_);_(@_)';\n  var formatStr = formatObj.standard === 'excel' ? excelFormatStr : spreadFormatStr;\n  if (decimalPlace > 0) {\n    var decimalDigits = '';\n    for (var i = 0; i < decimalPlace; i++) {\n      decimalDigits += '0';\n    }\n    formatStr = formatStr.replace(/#0/g, '#0.' + decimalDigits);\n  }\n  if (selectIndex === 1) {\n    formatStr = formatStr.replace(/¥/g, '$');\n  }\n  if (selectIndex === 2) {\n    formatStr = formatStr.replace(/¥/g, '');\n  }\n  return formatStr;\n};\nvar analysDate = function analysDate(formatObj) {\n  var formatStr = '';\n  var date = _formatInfo.dateFormats[formatObj.dateType] || '';\n  return formatStr + date;\n};\nvar analysPercent = function analysPercent(formatObj) {\n  var formatStr = '0';\n  var num = formatObj.decimalPlace || 0;\n  var decimelStr = getDecimelStr(num);\n  formatStr += decimelStr;\n  return formatStr + '%';\n};\nvar analysCustom = function analysCustom(formatObj) {\n  var _formatObj$custom;\n  return (_formatObj$custom = formatObj.custom) !== null && _formatObj$custom !== void 0 ? _formatObj$custom : '';\n};\n\n// 获取小数部分字符串\nvar getDecimelStr = function getDecimelStr(num) {\n  var str = '.';\n  if (num === 0) {\n    return '';\n  } else {\n    for (var i = 0; i < num; i++) {\n      str += '0';\n    }\n  }\n  return str;\n};\n\n// 用于工具栏下拉菜单选中格式化选项匹配\nfunction getFormatString(formatter) {\n  try {\n    // 自定义格式会匹配到其他格式上，暂不处理\n    formatter = transFormatter(formatter);\n    if (formatter === '#,##0.00;(#,##0.00);\"-\"??;@') return 'custom';else if (isText(formatter)) return 'text';else if (isGeneral(formatter)) return 'general';else if (isShortDate(formatter)) return 'shortDate';else if (isLongDate(formatter)) return 'longDate';else if (isTime(formatter)) return 'time';else if (isFraction(formatter)) return 'fraction';else if (isScientific(formatter)) return 'scientific';else if (isPercentage(formatter)) return 'percentage';else if (isAccounting(formatter)) return 'accounting';else if (isCurrency(formatter)) return 'currency';else if (isNumbers(formatter)) return 'numbers';else return 'general';\n  } catch (error) {\n    console.log(error);\n    return 'general';\n  }\n}\n\n// 用于弹窗的选中格式化选项匹配\nfunction getGeneralFormatString(formatter) {\n  try {\n    // 自定义格式会匹配到其他格式上，暂不处理\n    var key = 'general';\n    formatter = transFormatter(formatter);\n    if (formatter === '#,##0.00;(#,##0.00);\"-\"??;@') {\n      key = 'custom';\n    } else if (isText(formatter)) {\n      key = 'text';\n    } else if (isGeneral(formatter)) {\n      key = 'general';\n    } else if (isPercentage(formatter)) {\n      key = 'percentage';\n    } else if (isLongDate(formatter) || isShortDate(formatter)) {\n      key = 'date';\n    } else if (isAccounting(formatter)) {\n      key = 'accounting';\n    } else if (isCurrency(formatter)) {\n      key = 'currency';\n    } else if (isNumbers(formatter)) {\n      key = 'numbers';\n    }\n    return key;\n  } catch (error) {\n    console.log(error);\n    return 'general';\n  }\n}\n\n// 转换格式化字符串，将中括号及其里面的内容去掉（中括号里面一般是不同国家的信息）\nvar transFormatter = exports.transFormatter = function transFormatter(formatter) {\n  return formatter.replace(/\\[[^\\]]*\\]/g, '');\n};\n\n// 文本\nvar isText = exports.isText = function isText(formatter) {\n  return formatter === '@';\n};\n\n// 常规\nvar isGeneral = exports.isGeneral = function isGeneral(formatter) {\n  return formatter === 'General';\n};\n\n// 短日期\nvar isShortDate = exports.isShortDate = function isShortDate(formatter) {\n  return isLongDate(formatter) && formatter.includes('/');\n};\n\n// 长日期\nvar isLongDate = exports.isLongDate = function isLongDate(formatter) {\n  return formatter.includes('m') && formatter.includes('d') || formatter.includes('y') && formatter.includes('m');\n};\n\n// 时间\nvar isTime = exports.isTime = function isTime(formatter) {\n  return formatter.includes('h:mm:ss');\n};\n\n// 分数\nvar isFraction = exports.isFraction = function isFraction(formatter) {\n  return formatter.includes('?/?');\n};\n\n// 科学计数\nvar isScientific = exports.isScientific = function isScientific(formatter) {\n  return formatter.includes('E');\n};\n\n// 百分比\nvar isPercentage = exports.isPercentage = function isPercentage(formatter) {\n  return formatter.includes('%');\n};\n\n// 会计专用\nvar isAccounting = exports.isAccounting = function isAccounting(formatter) {\n  return isCurrency(formatter) && formatter.includes('*');\n};\n\n// 货币\nvar isCurrency = exports.isCurrency = function isCurrency(formatter) {\n  return isNumbers(formatter) && formatter.includes('#') && (formatter.includes('$') || formatter.includes('¥'));\n};\n\n// 数值\nvar isNumbers = exports.isNumbers = function isNumbers(formatter) {\n  return formatter.includes('0') && !isScientific(formatter);\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/utils/convertFormat.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/utils/customItemUtils.js":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/utils/customItemUtils.js ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createCustomSubItem = exports.createCustomItem = void 0;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _spreadToolbar = _interopRequireDefault(__webpack_require__(/*! ../ui/toolbar/spreadToolbar.less */ \"./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * 创建自定义功能组件\n * @param {Object} item - 服务端返回的自定义组件参数\n * @return {Object} 格式化后的自定义组件参数\n */\nvar createCustomItem = exports.createCustomItem = function createCustomItem(_ref) {\n  var key = _ref.key,\n    _ref$items = _ref.items,\n    items = _ref$items === void 0 ? [] : _ref$items,\n    icon = _ref.icon,\n    title = _ref.title,\n    showTitle = _ref.showTitle,\n    _ref$dropDownType = _ref.dropDownType,\n    dropDownType = _ref$dropDownType === void 0 ? 0 : _ref$dropDownType,\n    callback = _ref.callback,\n    invokeAction = _ref.invokeAction;\n  if (items.length > 0) {\n    var newSubItem = [];\n    items.forEach(function (addItem) {\n      addItem.key && newSubItem.push(createCustomSubItem(addItem));\n    });\n    return {\n      key: key,\n      icon: icon,\n      title: title,\n      showTitle: showTitle,\n      dropDownType: dropDownType,\n      customSubItem: newSubItem\n    };\n  } else {\n    return {\n      key: key,\n      icon: icon,\n      title: title,\n      showTitle: showTitle,\n      callback: callback,\n      invokeAction: invokeAction\n    };\n  }\n};\n\n/**\n * 创建自定义功能组件的下拉菜单\n * @param {Object} item - 服务端返回的自定义组件下拉菜单参数\n * @return {Object} 格式化后的自定义组件下拉菜单参数\n */\nvar createCustomSubItem = exports.createCustomSubItem = function createCustomSubItem(_ref2) {\n  var key = _ref2.key,\n    icon = _ref2.icon,\n    callback = _ref2.callback,\n    invokeAction = _ref2.invokeAction,\n    title = _ref2.title;\n  return {\n    text: title,\n    hasIcon: !!icon,\n    iconClass: icon && (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _spreadToolbar[\"default\"].lockCellIcon, true), icon, true)),\n    eventType: 'custom',\n    callback: callback,\n    invokeAction: invokeAction,\n    key: key\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/utils/customItemUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js":
/*!********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.clearAllCellLock = clearAllCellLock;\nexports.debounce = debounce;\nexports.deleteColsCommand = deleteColsCommand;\nexports.deleteRowsCommand = deleteRowsCommand;\nexports.deleteSheetCommand = deleteSheetCommand;\nexports.formatCells = formatCells;\nexports.getSelectedSheet = getSelectedSheet;\nexports.hideSheetCommand = hideSheetCommand;\nexports.insertColMany = insertColMany;\nexports.insertCols = insertCols;\nexports.insertColsCommand = insertColsCommand;\nexports.insertCopiedCell = insertCopiedCell;\nexports.insertRowMany = insertRowMany;\nexports.insertRows = insertRows;\nexports.insertRowsCommand = insertRowsCommand;\nexports.insertSheetCommand = insertSheetCommand;\nexports.isCellFormula = isCellFormula;\nexports.isCellLocked = isCellLocked;\nexports.isCellMerged = isCellMerged;\nexports.moveBottomCellToTop = moveBottomCellToTop;\nexports.moveOrCopySheet = moveOrCopySheet;\nexports.moveRightCellToLeft = moveRightCellToLeft;\nexports.onUndoSendDataToServer = onUndoSendDataToServer;\nexports.protectOptions = void 0;\nexports.protectSheet = protectSheet;\nexports.richText = richText;\nexports.selectionsHasFormula = selectionsHasFormula;\nexports.selectionsIsLock = selectionsIsLock;\nexports.selectionsIsMerge = selectionsIsMerge;\nexports.setNumberFormat = exports.setFilter = void 0;\nexports.setSelectedSheet = setSelectedSheet;\nexports.setTabSheetBGC = exports.setSpreadCulture = void 0;\nexports.setZoomingScale = setZoomingScale;\nexports.triggerSelectionChanged = triggerSelectionChanged;\nexports.unhideSheetCommand = unhideSheetCommand;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-json.js */ \"../../node_modules/core-js/modules/es.date.to-json.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\n__webpack_require__(/*! core-js/modules/web.url.to-json.js */ \"../../node_modules/core-js/modules/web.url.to-json.js\");\nvar _spreadSheets = _interopRequireDefault(__webpack_require__(/*! @grapecity/spread-sheets */ \"../../node_modules/@grapecity/spread-sheets/index.js\"));\nvar _componentutil = __webpack_require__(/*! @/util/componentutil */ \"./src/util/componentutil.js\");\nvar M = _interopRequireWildcard(__webpack_require__(/*! @/component/web/DataGrid/ReportGrid/directives/directiveUtils.js */ \"./src/component/web/DataGrid/ReportGrid/directives/directiveUtils.js\"));\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nvar _common = __webpack_require__(/*! ./common */ \"./src/component/web/DataGrid/ReportGrid/utils/common.js\");\nvar _responseToolbarUtils = __webpack_require__(/*! ../dataPipeModel/responseToolbarUtils */ \"./src/component/web/DataGrid/ReportGrid/dataPipeModel/responseToolbarUtils.js\");\nvar _customCommand = __webpack_require__(/*! ../constant/customCommand */ \"./src/component/web/DataGrid/ReportGrid/constant/customCommand.js\");\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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/**\n * 手动触发一次SelectionChanged事件\n * 告诉后端当前选中的位置\n * @param {*} sheet\n * @param {*} selectionChanged\n */\nfunction triggerSelectionChanged(sheet, selectionChanged) {\n  var e = {\n    type: 'SelectionChanged'\n  };\n  var args = {};\n  args.newSelections = sheet.getSelections();\n  args.sheet = sheet;\n  selectionChanged(e, args);\n}\nfunction deleteColsCommand(spread, model, invokeControlMethodOnly) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var status = whetherOperate(selections);\n  if (status === 1 || status === 2) {\n    checkCommand(selections, status, model.pageId);\n  } else {\n    var data = [];\n    selections.forEach(function (s) {\n      data.push({\n        index: s.col,\n        count: s.colCount\n      });\n    });\n    askWhetherOperate(data, 'deleteCol', model, invokeControlMethodOnly);\n  }\n}\nfunction insertColsCommand(spread, model, invokeControlMethodOnly) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var status = whetherOperate(selections);\n  if (status === 1 || status === 2) {\n    checkCommand(selections, status, model.pageId);\n  } else {\n    var data = [];\n    selections.forEach(function (s) {\n      data.push({\n        index: s.col,\n        count: s.colCount\n      });\n    });\n    askWhetherOperate(data, 'insertCol', model, invokeControlMethodOnly);\n  }\n}\nfunction insertColMany(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var args = {\n    type: 'InsertRowAndCol',\n    addRowOrCol: 'AddCol'\n  };\n  dataPipeModel.sendData(args);\n}\nfunction insertRowMany(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var args = {\n    type: 'InsertRowAndCol',\n    addRowOrCol: 'AddRow'\n  };\n  dataPipeModel.sendData(args);\n}\nfunction deleteRowsCommand(spread, model, invokeControlMethodOnly) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var status = whetherOperate(selections);\n  if (status === 1 || status === 2) {\n    checkCommand(selections, status, model.pageId);\n  } else {\n    var data = [];\n    selections.forEach(function (s) {\n      var filteredOutRows;\n      if (sheet.rowFilter()) filteredOutRows = sheet.rowFilter().toJSON().filteredOutRows;\n      data.push({\n        index: s.row,\n        count: s.rowCount,\n        filteredOutRows: filteredOutRows\n      });\n    });\n    askWhetherOperate(data, 'deleteRow', model, invokeControlMethodOnly);\n  }\n}\nfunction insertRowsCommand(spread, model, invokeControlMethodOnly) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var status = whetherOperate(selections);\n  if (status === 1 || status === 2) {\n    checkCommand(selections, status, model.pageId);\n  } else {\n    var data = [];\n    selections.forEach(function (s) {\n      data.push({\n        index: s.row,\n        count: s.rowCount\n      });\n    });\n    askWhetherOperate(data, 'insertRow', model, invokeControlMethodOnly);\n  }\n}\nfunction deleteSheetCommand(spread, model, invokeControlMethodOnly) {\n  var index = spread.getActiveSheetIndex();\n  var args = {\n    method: 'deleteSheet',\n    index: index\n  };\n  var selSheets = (0, _common.getSeletedSheets)(spread);\n  if (selSheets) {\n    args.selSheets = selSheets;\n  }\n  invokeControlMethodOnly(model, 'askExecute', [args]);\n}\nfunction insertCopiedCell(spread, model, invokeControlMethodOnly) {\n  var pageId = model.pageId;\n  var sheet = spread.getActiveSheet();\n  var pasteRange = sheet.getSelections();\n  if (pasteRange.length > 1) {\n    var message = {\n      content: (0, _intlApi.getLangMsg)('spread.key0176'),\n      type: 1\n    };\n    (0, _appModelFunction.setDataMessages)(pageId, message);\n    return;\n  }\n  // const copyRange = getPageData(pageId, [key, 'copiedCellSelection'])\n  // const { range, area } = copyRange\n  var _spread$cutSelectionS = spread === null || spread === void 0 ? void 0 : spread.cutSelectionSArgs,\n    range = _spread$cutSelectionS.selections,\n    area = _spread$cutSelectionS.insertCopiedCellArea;\n  if (!area) return;\n  var _pasteRange$ = pasteRange[0],\n    pasteCol = _pasteRange$.col,\n    pasteRow = _pasteRange$.row;\n  var copyCol = range.col,\n    copyRow = range.row,\n    cc = range.colCount,\n    rc = range.rowCount;\n  var fromRow = copyRow > 0 ? copyRow : 0;\n  var fromCol = copyCol > 0 ? copyCol : 0;\n  var toRow = pasteRow > 0 ? pasteRow : 0;\n  var toCol = pasteCol > 0 ? pasteCol : 0;\n  var data = {\n    fromRow: fromRow,\n    fromCol: fromCol,\n    toRow: toRow,\n    toCol: toCol,\n    rc: rc,\n    cc: cc,\n    area: area\n  };\n\n  // setPageData(pageId, [key, 'copiedCellSelection'], null)\n  spread.cutSelectionSArgs.insertCopiedCellArea = null;\n  invokeControlMethodOnly(model, 'askExecute', [{\n    method: 'insertCopiedCell',\n    data: data\n  }]);\n}\nfunction hideSheetCommand(spread, model, invokeControlMethodOnly) {\n  var index = spread.getActiveSheetIndex();\n  var args = {\n    method: 'hideSheet',\n    index: index\n  };\n  var selSheets = (0, _common.getSeletedSheets)(spread);\n  if (selSheets) {\n    args.selSheets = selSheets;\n  }\n  invokeControlMethodOnly(model, 'askExecute', [args]);\n}\nfunction unhideSheetCommand(spread, model, invokeControlMethodOnly) {\n  var args = {\n    method: 'showSheet'\n  };\n  invokeControlMethodOnly(model, 'askExecute', [args]);\n}\nfunction insertSheetCommand(spread, model, invokeControlMethodOnly) {\n  var index = spread.getActiveSheetIndex();\n  var sheetName = spread.getActiveSheet().name();\n  var args = {\n    method: 'insertSheet',\n    index: index,\n    sheetName: sheetName\n  };\n  invokeControlMethodOnly(model, 'askExecute', [args]);\n}\nfunction richText(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var args = {\n    type: 'spreadRichText',\n    showRichText: true\n  };\n  dataPipeModel.sendData(args);\n}\nfunction formatCells(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var args = {\n    type: 'spreadCellsFormat'\n  };\n  dataPipeModel.sendData(args);\n}\nvar setFilter = exports.setFilter = function setFilter(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  dataPipeModel.sendData({\n    type: _customCommand.KD_SET_FILTER\n  });\n};\nvar setTabSheetBGC = exports.setTabSheetBGC = function setTabSheetBGC(sheet, color) {\n  sheet.options.sheetTabColor = color;\n};\nvar askWhetherOperate = function askWhetherOperate(data, method, model, invokeControlMethodOnly) {\n  var arr = [];\n  data.forEach(function (item) {\n    arr = arr.concat(transformArr(item));\n  });\n  arr.sort(function (a, b) {\n    return a - b;\n  });\n  var args = {\n    method: method,\n    data: arr\n  };\n  invokeControlMethodOnly(model, 'askExecute', [args]);\n};\nvar transformArr = function transformArr(data) {\n  var arr = [];\n  for (var i = data.index; i < data.index + data.count; i++) {\n    var _data$filteredOutRows;\n    if (!((_data$filteredOutRows = data.filteredOutRows) !== null && _data$filteredOutRows !== void 0 && _data$filteredOutRows.includes(i))) {\n      arr.push(i);\n    }\n  }\n  return arr;\n};\nfunction clearAllCellLock(spread) {\n  var sheet = spread.getActiveSheet();\n  var rowCount = sheet.getRowCount();\n  var colCount = sheet.getColumnCount();\n  sheet.getRange(0, 0, rowCount, colCount).locked(false);\n}\nvar protectOptions = exports.protectOptions = {\n  allowResizeRows: true,\n  allowResizeColumns: true,\n  allowInsertRows: true,\n  allowInsertColumns: true,\n  allowDeleteRows: true,\n  allowDeleteColumns: true,\n  allowFilter: true,\n  allowEditObjects: true,\n  allowOutlineRows: true,\n  allowOutlineColumns: true\n};\nfunction protectSheet(sheet) {\n  // 保护表单的时候要设置参数\n  sheet.options.protectionOptions = protectOptions;\n  sheet.options.isProtected = true;\n}\n\n// 插入多行\nfunction insertRows(_ref) {\n  var spread = _ref.spread,\n    model = _ref.model,\n    invokeControlMethodOnly = _ref.invokeControlMethodOnly,\n    data = _ref.data;\n  var sheet = spread.getActiveSheet();\n  var rowIndex = sheet.getActiveRowIndex();\n  var dir = data.dir,\n    count = data.count;\n  var args = {\n    selectIndex: rowIndex,\n    count: count,\n    dir: dir\n  };\n  invokeControlMethodOnly(model, 'askExecute', [{\n    method: 'insertRow',\n    data: args\n  }]);\n}\n// 插入多列\nfunction insertCols(_ref2) {\n  var spread = _ref2.spread,\n    model = _ref2.model,\n    invokeControlMethodOnly = _ref2.invokeControlMethodOnly,\n    data = _ref2.data;\n  var sheet = spread.getActiveSheet();\n  var colIndex = sheet.getActiveColumnIndex();\n  var dir = data.dir,\n    count = data.count;\n  var args = {\n    selectIndex: colIndex,\n    count: count,\n    dir: dir\n  };\n  invokeControlMethodOnly(model, 'askExecute', [{\n    method: 'insertCol',\n    data: args\n  }]);\n}\n\n/**\n * 右侧单元格左移\n */\nfunction moveRightCellToLeft(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var deleteCellType = whetherCouldDelete(spread, 'row');\n  var _whetherOperate = whetherOperate(selections),\n    status = _whetherOperate.status;\n  if (status === 1 || status === 2) {\n    checkCommand(selections, status, model.pageId);\n  } else if (deleteCellType) {\n    deleteCellType === 'isLock' ? commandMessage(1, model.pageId) : commandMessage(2, model.pageId);\n  } else {\n    var args = {\n      type: 'KDMoveRightCellToLeft'\n    };\n    dataPipeModel.sendData(args);\n  }\n}\n\n/**\n * 下方单元格上移\n */\nfunction moveBottomCellToTop(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var deleteCellType = whetherCouldDelete(spread, 'column');\n  var _whetherOperate2 = whetherOperate(selections),\n    status = _whetherOperate2.status;\n  if (status === 1 || status === 2) {\n    checkCommand(selections, status, model.pageId);\n  } else if (deleteCellType) {\n    deleteCellType === 'isLock' ? commandMessage(3, model.pageId) : commandMessage(4, model.pageId);\n  } else {\n    var args = {\n      type: 'KDMoveBottomCellToTop'\n    };\n    dataPipeModel.sendData(args);\n  }\n}\n\n/** ****工具方法 ******/\nvar checkCommand = function checkCommand(selections, status, pageId) {\n  var confirmData = {};\n  switch (status) {\n    case 1:\n      confirmData = {\n        id: 'spreadComfirm',\n        pageId: pageId,\n        msg: (0, _intlApi.getLangMsg)('spread.key0420'),\n        confirmType: 0,\n        button_type: 0\n      };\n      (0, _GlobalDataCacher.setData)(_symbolConst.KEY_SHOW_CONFIRM_EVENT, confirmData);\n      break;\n    case 2:\n      confirmData = {\n        id: 'spreadComfirm',\n        pageId: pageId,\n        msg: (0, _intlApi.getLangMsg)('spread.key0421'),\n        confirmType: 0,\n        button_type: 0\n      };\n      (0, _GlobalDataCacher.setData)(_symbolConst.KEY_SHOW_CONFIRM_EVENT, confirmData);\n      break;\n  }\n};\n\n/**\n * 错误消息弹窗\n * @param {String|Number} messageType - 消息类型\n */\nvar commandMessage = function commandMessage(messageType, pageId) {\n  switch (messageType) {\n    case 1:\n      // 选中行包含锁定\n      (0, _appModelFunction.setDataMessages)(pageId, {\n        content: (0, _intlApi.getLangMsg)('spread.key0271'),\n        type: 1\n      });\n      break;\n    case 2:\n      // 选中行包含合并\n      (0, _appModelFunction.setDataMessages)(pageId, {\n        content: (0, _intlApi.getLangMsg)('spread.key0272'),\n        type: 1\n      });\n      break;\n    case 3:\n      // 选中列包含锁定\n      (0, _appModelFunction.setDataMessages)(pageId, {\n        content: (0, _intlApi.getLangMsg)('spread.key0273'),\n        type: 1\n      });\n      break;\n    case 4:\n      // 选中列包含合并\n      (0, _appModelFunction.setDataMessages)(pageId, {\n        content: (0, _intlApi.getLangMsg)('spread.key0274'),\n        type: 1\n      });\n      break;\n  }\n};\n\n// 判断是否能够增删行列的操作，仿excel\nvar whetherOperate = function whetherOperate(selections) {\n  var selectRow = false;\n  var selectCol = false;\n  var selectCell = false;\n  var status = 0;\n  selections.forEach(function (selection) {\n    if (selection.row === -1) {\n      selectRow = true;\n    } else if (selection.col === -1) {\n      selectCol = true;\n    } else {\n      selectCell = true;\n    }\n  });\n  if ((selectCol || selectRow) && selectCell) {\n    // 选中区域包括整行（列）及单元格区域时，此命令无效\n    status = 1;\n  } else if (selectCol && selectRow) {\n    // 重叠\n    status = 2;\n  } else if (selectCell && !selectCol && !selectRow || !selectCell && selectCol && !selectRow || !selectCell && !selectCol && selectRow) {\n    var hasOver = false;\n    for (var i = 0; i < selections.length; i++) {\n      for (var j = i + 1; j < selections.length; j++) {\n        if (hasOverlap(selections[i], selections[j])) {\n          hasOver = true;\n        }\n      }\n    }\n    status = hasOver ? 2 : 0;\n  }\n  return status;\n};\n\n/**\n * 判断选中单元格的右侧或下方的行列是否可以删除\n * @param {Object} spread - spread实例\n * @param {String} selectionType - 选中的是整行还是整列\n */\nvar whetherCouldDelete = function whetherCouldDelete(spread, selectionType) {\n  var totalSelections;\n  var sheet = spread.getActiveSheet();\n  var selections = sheet.getSelections();\n  var totalRow = sheet.getRowCount();\n  var totalColumn = sheet.getColumnCount();\n  if (selectionType === 'row') {\n    // 选中区域行是否可以删除\n    totalSelections = selections.map(function (selection) {\n      var _convertRange = (0, _responseToolbarUtils.convertRange)(sheet, selection),\n        row = _convertRange.row,\n        rowCount = _convertRange.rowCount,\n        col = _convertRange.col,\n        colCount = _convertRange.colCount;\n      return {\n        row: row,\n        rowCount: rowCount,\n        col: col + colCount,\n        colCount: totalColumn\n      };\n    });\n  } else if (selectionType === 'column') {\n    // 选中区域列是否可以删除\n    totalSelections = selections.map(function (selection) {\n      var _convertRange2 = (0, _responseToolbarUtils.convertRange)(sheet, selection),\n        row = _convertRange2.row,\n        rowCount = _convertRange2.rowCount,\n        col = _convertRange2.col,\n        colCount = _convertRange2.colCount;\n      return {\n        row: row + rowCount,\n        rowCount: totalRow,\n        col: col,\n        colCount: colCount\n      };\n    });\n  }\n  if (selectionsIsLock(sheet, totalSelections)) {\n    return 'isLock';\n  } else if (selectionsIsMerge(sheet, totalSelections)) {\n    return 'isMerge';\n  }\n};\nvar hasOverlap = function hasOverlap(selectionA, selectionB) {\n  // 判断两个选中区域之间是否有重叠\n  if (selectionA.row + selectionA.rowCount > selectionB.row && selectionB.row + selectionB.rowCount > selectionA.row && selectionA.col + selectionA.colCount > selectionB.col && selectionB.col + selectionB.colCount > selectionA.col) {\n    return true;\n  } else {\n    return false;\n  }\n};\n\n/**\n * 检查选中区域是否包含锁定单元格\n * @param {Object} sheet - 工作表\n * @return {Boolean} 返回单元格是否被锁定，若被锁定则为true\n */\nfunction selectionsIsLock(sheet, selections) {\n  return selections.some(function (selection) {\n    // 遍历选中的单元格，如果其中任一单元格被锁定，则都不可以设置公式\n    var row = selection.row,\n      col = selection.col,\n      rowCount = selection.rowCount,\n      colCount = selection.colCount;\n    for (var r = row; r < row + rowCount; r++) {\n      for (var c = col; c < col + colCount; c++) {\n        if (isCellLocked(sheet, {\n          row: r,\n          col: c\n        })) {\n          // 判断是否是锁定状态\n          return true;\n        }\n      }\n    }\n  });\n}\n\n/**\n * 检查选中区域是否包含合并单元格\n * @param {Object} sheet - 工作表\n * @return {Boolean} 返回单元格是否被合并，若被合并则为true\n */\nfunction selectionsIsMerge(sheet, selections) {\n  return selections.some(function (selection) {\n    // 遍历选中的单元格，如果其中任一单元格被合并，返回true\n    var row = selection.row,\n      col = selection.col,\n      rowCount = selection.rowCount,\n      colCount = selection.colCount;\n    for (var r = row; r < row + rowCount; r++) {\n      for (var c = col; c < col + colCount; c++) {\n        if (isCellMerged(sheet, {\n          row: r,\n          col: c\n        })) {\n          // 判断是否是合并状态\n          return true;\n        }\n      }\n    }\n  });\n}\n\n/**\n * 给定区域是否包含公式\n * @param {Object} sheet - 工作表\n * @param {Object} selections - 选中单元格区域\n * @return {Boolean} 是否包含公式\n */\nfunction selectionsHasFormula(sheet, selections) {\n  return selections.some(function (sel) {\n    var newSel = (0, _responseToolbarUtils.convertRange)(sheet, sel);\n    var row = newSel.row,\n      col = newSel.col,\n      rowCount = newSel.rowCount,\n      colCount = newSel.colCount;\n    for (var i = row; i < row + rowCount; i++) {\n      for (var j = col; j < col + colCount; j++) {\n        if (sheet.getFormula(i, j)) {\n          return true;\n        }\n      }\n    }\n  });\n}\n\n/** ****工具方法 ******/\n\n// 设置表格的缩放比例\nfunction setZoomingScale(spread, dataPipeModel) {\n  var sheet = spread.getActiveSheet();\n  var scale = sheet.zoom();\n  var data = {\n    type: 'SetZoomingScale',\n    scale: scale\n  };\n  dataPipeModel.sendData(data);\n}\nvar setSpreadCulture = exports.setSpreadCulture = function setSpreadCulture(currentLang) {\n  if (currentLang === 'zh_CN' || currentLang === 'zh_TW') {\n    _spreadSheets[\"default\"].Spread.Common.CultureManager.culture('zh-cn');\n  } else {\n    _spreadSheets[\"default\"].Spread.Common.CultureManager.culture('en-us');\n  }\n};\nvar setNumberFormat = exports.setNumberFormat = function setNumberFormat() {\n  try {\n    var userFmtInfo = (0, _componentutil.getUserFormatConfig)();\n    var _userFmtInfo$numberFo = userFmtInfo.numberFormat,\n      numSeparator = _userFmtInfo$numberFo.numSeparator,\n      decimalPoint = _userFmtInfo$numberFo.decimalPoint;\n    var cultureInfo = _spreadSheets[\"default\"].Spread.Common.CultureManager.getCultureInfo();\n    cultureInfo.NumberFormat.numberDecimalSeparator = decimalPoint;\n    cultureInfo.NumberFormat.numberGroupSeparator = numSeparator;\n  } catch (err) {\n    console.log(err);\n  }\n};\n\n// 执行撤销操作时向后端发送数据\nfunction onUndoSendDataToServer(args) {\n  if (args.spread && args.spread.CancelCtrlZArgs) {\n    var _args$spread$CancelCt = args.spread.CancelCtrlZArgs,\n      ranges = _args$spread$CancelCt.ranges,\n      sheetName = _args$spread$CancelCt.sheetName;\n    var si = args.spread.getSheetIndex(sheetName);\n    ranges.forEach(function (range) {\n      var col = range.col,\n        colCount = range.colCount,\n        row = range.row,\n        rowCount = range.rowCount;\n      M.getRangeValues({\n        range: [{\n          r: row,\n          c: col,\n          rc: rowCount,\n          cc: colCount\n        }],\n        getF: true,\n        si: si\n      }, args);\n    });\n    delete args.spread.CancelCtrlZArgs;\n  }\n}\n\n// 防抖\nfunction debounce(fn, delay) {\n  var timer;\n  return function () {\n    var context = this;\n    var args = arguments;\n    clearTimeout(timer);\n    timer = setTimeout(function () {\n      fn.apply(context, args);\n    }, delay);\n  };\n}\n\n/**\n * 判断所选单元格是否被锁定\n * @param {Object} sheet - 工作表\n * @param {String} row - 单元格行坐标\n * @param {String} col - 单元格列坐标\n * @return {Boolean} 是否被锁定\n */\nfunction isCellLocked(sheet, _ref3) {\n  var _sheet$getCell;\n  var row = _ref3.row,\n    col = _ref3.col;\n  if ((_sheet$getCell = sheet.getCell(row, col)) !== null && _sheet$getCell !== void 0 && _sheet$getCell.locked()) {\n    return true;\n  } else {\n    return false;\n  }\n}\n\n/**\n * 判断所选单元格是否是合并单元格\n * @param {Object} sheet - 工作表\n * @param {String} row - 单元格行坐标\n * @param {String} col - 单元格列坐标\n * @return {Boolean} 是否被锁定\n */\nfunction isCellMerged(sheet, _ref4) {\n  var row = _ref4.row,\n    col = _ref4.col;\n  var mergeRanges = sheet.getSpans(sheet.getCell(row, col));\n  if (mergeRanges.length > 0) {\n    return true;\n  } else {\n    return false;\n  }\n}\n\n/**\n * 判断所选单元格是否包含公式\n * @param {Object} sheet - 工作表\n * @param {String} row - 单元格行坐标\n * @param {String} col - 单元格列坐标\n * @return {Boolean} 是否包含公式\n */\nfunction isCellFormula(sheet, _ref5) {\n  var _sheet$getCell2;\n  var row = _ref5.row,\n    col = _ref5.col;\n  if ((_sheet$getCell2 = sheet.getCell(row, col)) !== null && _sheet$getCell2 !== void 0 && _sheet$getCell2.formula()) {\n    return true;\n  } else {\n    return false;\n  }\n}\n\n/**\n * description\n */\nfunction moveOrCopySheet(spread, model, invokeControlMethodOnly, dataPipeModel) {\n  var args = {\n    type: 'MoveOrCopySheet'\n  };\n  dataPipeModel.sendData(args);\n}\n\n/**\n * 获取当前spread选中的工作表索引\n * @param {Object} spread - spread\n */\nfunction getSelectedSheet(spread) {\n  var selectedSheet = [];\n  spread.sheets.forEach(function (sheet) {\n    if (sheet && sheet.isSelected()) {\n      selectedSheet.push(sheet.name());\n    }\n  });\n  return selectedSheet;\n}\n\n/**\n * 设置选中的工作表\n * @param {Number} sheetName - 选中的工作表索引\n * @param {Object} spread - spread\n */\nfunction setSelectedSheet(sheetName, spread) {\n  spread.sheets.forEach(function (sheet) {\n    if (sheet && sheet.name() !== sheetName) {\n      sheet.isSelected(false);\n    }\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/utils/reportUtils.js?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/icon/iconcool.less":
/*!******************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/icon/iconcool.less ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/icon/iconcool.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.less":
/*!**************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.less ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"colorPickerPanel\":\"ColorPicker_colorPickerPanel_3Zy7\",\"buttonText\":\"ColorPicker_buttonText_2PSw\",\"colorListContainer\":\"ColorPicker_colorListContainer_me5R\",\"title\":\"ColorPicker_title_GOLl\",\"recentUsed\":\"ColorPicker_recentUsed_38rm\",\"colorListGrid\":\"ColorPicker_colorListGrid_ZgBq\",\"colorItem\":\"ColorPicker_colorItem_FN29\",\"currentColor\":\"ColorPicker_currentColor_1wPC\",\"simpleColorListGrid\":\"ColorPicker_simpleColorListGrid_2wqZ\",\"customColorInput\":\"ColorPicker_customColorInput_JKZy\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/common/ColorPicker.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/common/common.less":
/*!*********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/common/common.less ***!
  \*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"separator\":\"common_separator_vqlI\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/common/common.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.less":
/*!************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.less ***!
  \************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"contextMenuBox\":\"ContextMenuInput_contextMenuBox_39at\",\"blank_icon\":\"ContextMenuInput_blank_icon_3ltI\",\"left_text\":\"ContextMenuInput_left_text_cD0L\",\"inputNumber\":\"ContextMenuInput_inputNumber_1Kh_\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/contextMenu/ContextMenuInput.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less":
/*!*******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less ***!
  \*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"bottomDisplay\":\"bottomDisplay_bottomDisplay_3Bq8\",\"displayLeft\":\"bottomDisplay_displayLeft_F2xV\",\"context\":\"bottomDisplay_context_1FIB\",\"displayRight\":\"bottomDisplay_displayRight_37Bu\",\"item\":\"bottomDisplay_item_1xcJ\",\"itemTitle\":\"bottomDisplay_itemTitle_P_2S\",\"itemValue\":\"bottomDisplay_itemValue_2jft\",\"zoomingBar\":\"bottomDisplay_zoomingBar_3UCR\",\"add\":\"bottomDisplay_add_BREb\",\"reduce\":\"bottomDisplay_reduce_51yI\",\"scale\":\"bottomDisplay_scale_2ksF\",\"colorPickerRender\":\"bottomDisplay_colorPickerRender_i0zX\",\"hightlight\":\"bottomDisplay_hightlight_eILP\",\"borderLeft\":\"bottomDisplay_borderLeft_1lib\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/statusBar/bottomDisplay.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.less":
/*!**************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.less ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"toolbarTopContainer\":\"ToolbarTop_toolbarTopContainer_1GwW\",\"select\":\"ToolbarTop_select_2kS4\",\"formatItems\":\"ToolbarTop_formatItems_28iG\",\"arrowIcon\":\"ToolbarTop_arrowIcon_2nyY\",\"active\":\"ToolbarTop_active_u2WN\",\"dropdownClassName\":\"ToolbarTop_dropdownClassName_1T_L\",\"selectedGroup\":\"ToolbarTop_selectedGroup_1dgn\",\"toolbar_top\":\"ToolbarTop_toolbar_top_16kN\",\"toolbarGroupContainer\":\"ToolbarTop_toolbarGroupContainer_1yXm\",\"toolbarGroupItems\":\"ToolbarTop_toolbarGroupItems_3-mf\",\"selected\":\"ToolbarTop_selected_3tWn\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/ToolbarTop.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less":
/*!*******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less ***!
  \*******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"dialogContainer\":\"dialogElement_dialogContainer_1TI0\",\"dialogContent\":\"dialogElement_dialogContent_33UC\",\"header\":\"dialogElement_header_JSin\",\"center\":\"dialogElement_center_2Gd5\",\"centerContent\":\"dialogElement_centerContent_r_jw\",\"bottom\":\"dialogElement_bottom_3mGb\",\"btn\":\"dialogElement_btn_1z7W\",\"cancel\":\"dialogElement_cancel_tTlb\",\"ok\":\"dialogElement_ok_3Mqg\",\"closeIcon\":\"dialogElement_closeIcon_8Ldg\",\"listBoxContainer\":\"dialogElement_listBoxContainer_3Gxp\",\"boxItem\":\"dialogElement_boxItem_2GHM\",\"item\":\"dialogElement_item_u8U3\",\"itemTitle\":\"dialogElement_itemTitle_JaqX\",\"itemSelect\":\"dialogElement_itemSelect_1PmI\",\"item_group\":\"dialogElement_item_group_3BWi\",\"kd_border\":\"dialogElement_kd_border_1vI2\",\"select\":\"dialogElement_select_3kvh\",\"bordered\":\"dialogElement_bordered_26ss\",\"underline\":\"dialogElement_underline_bViK\",\"disabled\":\"dialogElement_disabled_3fAS\",\"itemCheck\":\"dialogElement_itemCheck_1OPz\",\"unit\":\"dialogElement_unit_2CNr\",\"formatContainer\":\"dialogElement_formatContainer_1IkV\",\"formatItemsContainer\":\"dialogElement_formatItemsContainer_XJHc\",\"displayBox\":\"dialogElement_displayBox_2Owh\",\"title\":\"dialogElement_title_VeKK\",\"content\":\"dialogElement_content_25PF\",\"itemInput\":\"dialogElement_itemInput_I_eD\",\"itemText\":\"dialogElement_itemText_18BL\",\"setting\":\"dialogElement_setting_2qMP\",\"uploadFileContainer\":\"dialogElement_uploadFileContainer_6W1y\",\"insertRowsContainer\":\"dialogElement_insertRowsContainer_1hhy\",\"textItem\":\"dialogElement_textItem_23RS\",\"itemTextArea\":\"dialogElement_itemTextArea_3zix\",\"radioContainer\":\"dialogElement_radioContainer_3yIg\",\"checkboxContainerClass\":\"dialogElement_checkboxContainerClass_1A1a\",\"findWithoutMessage\":\"dialogElement_findWithoutMessage_2Znm\",\"checkformulaContainer\":\"dialogElement_checkformulaContainer_1-xh\",\"checkbox_group\":\"dialogElement_checkbox_group_1bf4\",\"radio_group\":\"dialogElement_radio_group_3RjB\",\"select_dropdown\":\"dialogElement_select_dropdown_2mny\",\"range_select_value\":\"dialogElement_range_select_value_1MQc\",\"range_input\":\"dialogElement_range_input_1KA6\",\"no_value_color\":\"dialogElement_no_value_color_Gq5j\",\"button_color\":\"dialogElement_button_color_2Lcb\",\"warn_border\":\"dialogElement_warn_border_2sMh\",\"warn_text\":\"dialogElement_warn_text_3f3f\",\"header_title\":\"dialogElement_header_title_1f0R\",\"close_icon\":\"dialogElement_close_icon_1ZSn\",\"checkbox\":\"dialogElement_checkbox_eBuB\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/dialogElement/dialogElement.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less":
/*!*****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"toolbarBottomContainer\":\"spreadToolbar_toolbarBottomContainer_3SS1\",\"toolbarBLeft\":\"spreadToolbar_toolbarBLeft_23CB\",\"toolbarBLLeft\":\"spreadToolbar_toolbarBLLeft_1Z8U\",\"toolbarBLRight\":\"spreadToolbar_toolbarBLRight_2aOK\",\"icon\":\"spreadToolbar_icon_2--N\",\"formualIcon\":\"spreadToolbar_formualIcon_2yun\",\"disabledClick\":\"spreadToolbar_disabledClick_33ad\",\"toolbarBRight\":\"spreadToolbar_toolbarBRight_2Yyl\",\"iconClass\":\"spreadToolbar_iconClass_2hAS\",\"disableInput\":\"spreadToolbar_disableInput_27B4\",\"toolbarContainer\":\"spreadToolbar_toolbarContainer_Au1B\",\"toolbarTopContainer\":\"spreadToolbar_toolbarTopContainer_zD2r\",\"dropDown\":\"spreadToolbar_dropDown_3KX1\",\"toolbarGroupContainer\":\"spreadToolbar_toolbarGroupContainer_2oHq\",\"toolbarGroupItems\":\"spreadToolbar_toolbarGroupItems_B8YW\",\"selected\":\"spreadToolbar_selected_1Spi\",\"selectedGroup\":\"spreadToolbar_selectedGroup_1bLb\",\"arrowIcon\":\"spreadToolbar_arrowIcon_1SBZ\",\"fontStyle\":\"spreadToolbar_fontStyle_3-3d\",\"fontfamily\":\"spreadToolbar_fontfamily_2EFC\",\"fontSize\":\"spreadToolbar_fontSize_2N7j\",\"colorStyle\":\"spreadToolbar_colorStyle_1te7\",\"wordWrapStyle\":\"spreadToolbar_wordWrapStyle_1eAa\",\"verticalAlign\":\"spreadToolbar_verticalAlign_3VwQ\",\"textAlign\":\"spreadToolbar_textAlign_1HNR\",\"textIndent\":\"spreadToolbar_textIndent_sTny\",\"insertRow\":\"spreadToolbar_insertRow_3FqQ\",\"lockSheet\":\"spreadToolbar_lockSheet_7-0U\",\"uploadFile\":\"spreadToolbar_uploadFile_1CC2\",\"exportFile\":\"spreadToolbar_exportFile_158H\",\"find\":\"spreadToolbar_find_Iwsg\",\"checkFormula\":\"spreadToolbar_checkFormula_18PI\",\"uploadIcon\":\"spreadToolbar_uploadIcon_2BK5\",\"exportIcon\":\"spreadToolbar_exportIcon_2jv1\",\"findIcon\":\"spreadToolbar_findIcon_6yoj\",\"checkFormulaIcon\":\"spreadToolbar_checkFormulaIcon_1Vxt\",\"formatPainter\":\"spreadToolbar_formatPainter_22lm\",\"leftIcon\":\"spreadToolbar_leftIcon_2Vo3\",\"painterIcon\":\"spreadToolbar_painterIcon_s2Cp\",\"formatting\":\"spreadToolbar_formatting_1cvc\",\"buttonGroup\":\"spreadToolbar_buttonGroup_2Kd2\",\"undo\":\"spreadToolbar_undo_clcG\",\"redo\":\"spreadToolbar_redo_2YME\",\"brushIcon\":\"spreadToolbar_brushIcon_308k\",\"dropContainer\":\"spreadToolbar_dropContainer_2kSm\",\"dropTop\":\"spreadToolbar_dropTop_2L7K\",\"text\":\"spreadToolbar_text_1pgI\",\"rightIcon\":\"spreadToolbar_rightIcon_6pV4\",\"arrowFocus\":\"spreadToolbar_arrowFocus_IXe3\",\"hover\":\"spreadToolbar_hover_3A_f\",\"active\":\"spreadToolbar_active_3ho0\",\"splitColor\":\"spreadToolbar_splitColor_337t\",\"onenessColor\":\"spreadToolbar_onenessColor_uBrG\",\"dropExpendPanel\":\"spreadToolbar_dropExpendPanel_2aNO\",\"dropList\":\"spreadToolbar_dropList_1Dyq\",\"dropListLeft\":\"spreadToolbar_dropListLeft_20X5\",\"dropListRight\":\"spreadToolbar_dropListRight_30Pu\",\"selectIcon\":\"spreadToolbar_selectIcon_1AN2\",\"disable\":\"spreadToolbar_disable_20lY\",\"toolbar_item_disable\":\"spreadToolbar_toolbar_item_disable_41kx\",\"lockCellIcon\":\"spreadToolbar_lockCellIcon_30by\",\"eraserIcon\":\"spreadToolbar_eraserIcon_1nsn\",\"mergeCellIcon\":\"spreadToolbar_mergeCellIcon_3h21\",\"unlockCellIcon\":\"spreadToolbar_unlockCellIcon_1oLI\",\"addRowIcon\":\"spreadToolbar_addRowIcon_K3DC\",\"deleteRowIcon\":\"spreadToolbar_deleteRowIcon_402I\",\"switchViewIcon\":\"spreadToolbar_switchViewIcon_2uKl\",\"colorpickerContainer\":\"spreadToolbar_colorpickerContainer_AuUv\",\"iconContainer\":\"spreadToolbar_iconContainer_1ZqZ\",\"line\":\"spreadToolbar_line_5wFF\",\"colorSelectPanel\":\"spreadToolbar_colorSelectPanel_ooA-\",\"cellFormat\":\"spreadToolbar_cellFormat_1nbX\",\"formatItems\":\"spreadToolbar_formatItems_qFmP\",\"formatIcon\":\"spreadToolbar_formatIcon_2X5x\",\"cellFormatItem\":\"spreadToolbar_cellFormatItem_1cIk\",\"cellFormatRight\":\"spreadToolbar_cellFormatRight_1Lmt\",\"print\":\"spreadToolbar_print_3P6y\",\"printIcon\":\"spreadToolbar_printIcon_3AKu\",\"dialogContainer\":\"spreadToolbar_dialogContainer_1Aj9\",\"dialogContent\":\"spreadToolbar_dialogContent_2GEn\",\"header\":\"spreadToolbar_header_1jav\",\"center\":\"spreadToolbar_center_1H2w\",\"centerContent\":\"spreadToolbar_centerContent_mIJs\",\"bottom\":\"spreadToolbar_bottom_3RoV\",\"btn\":\"spreadToolbar_btn_2pTj\",\"closeIcon\":\"spreadToolbar_closeIcon_2TuR\",\"findContainer\":\"spreadToolbar_findContainer_3V3V\",\"message\":\"spreadToolbar_message_4ecw\",\"messageYes\":\"spreadToolbar_messageYes_23OL\",\"messageNo\":\"spreadToolbar_messageNo_1gz_\",\"messageIconYes\":\"spreadToolbar_messageIconYes_29c7\",\"messageIconNo\":\"spreadToolbar_messageIconNo_2M3I\",\"messageText\":\"spreadToolbar_messageText_d8IL\",\"messageClose\":\"spreadToolbar_messageClose_lXEM\",\"findHedaer\":\"spreadToolbar_findHedaer_24YK\",\"findTitle\":\"spreadToolbar_findTitle_1j90\",\"findClose\":\"spreadToolbar_findClose_2eNP\",\"Search\":\"spreadToolbar_Search_3j5r\",\"txtTitle\":\"spreadToolbar_txtTitle_1ccM\",\"txtSearchWhat\":\"spreadToolbar_txtSearchWhat_KdFs\",\"findReplace\":\"spreadToolbar_findReplace_2C3e\",\"findText\":\"spreadToolbar_findText_2hRD\",\"repalceText\":\"spreadToolbar_repalceText_3wK-\",\"selectAndChecked\":\"spreadToolbar_selectAndChecked_DrIK\",\"containerSelect\":\"spreadToolbar_containerSelect_3x0C\",\"containerChecked\":\"spreadToolbar_containerChecked_89CU\",\"switch\":\"spreadToolbar_switch_3Uip\",\"findSelect\":\"spreadToolbar_findSelect_JwY-\",\"findSelectTitle\":\"spreadToolbar_findSelectTitle_3P-y\",\"checkboxTitle\":\"spreadToolbar_checkboxTitle_38JW\",\"checkboxContainerClass\":\"spreadToolbar_checkboxContainerClass_23sS\",\"repalce\":\"spreadToolbar_repalce_1sqx\",\"useWildCards\":\"spreadToolbar_useWildCards__lt6\",\"btnFind\":\"spreadToolbar_btnFind_r1oB\",\"btnReplace\":\"spreadToolbar_btnReplace_dmbG\",\"btnNext\":\"spreadToolbar_btnNext_ZMGk\",\"findContainerRoot\":\"spreadToolbar_findContainerRoot_1YX2\",\"hide\":\"spreadToolbar_hide_aYhv\",\"close\":\"spreadToolbar_close_3nKI\",\"open\":\"spreadToolbar_open_2Q0N\",\"printInfoDialog\":\"spreadToolbar_printInfoDialog_3455\",\"title\":\"spreadToolbar_title_3WfW\",\"titleIcon\":\"spreadToolbar_titleIcon_dKpj\",\"centerLeft\":\"spreadToolbar_centerLeft_26es\",\"centerRight\":\"spreadToolbar_centerRight_GyYJ\",\"fixedRange\":\"spreadToolbar_fixedRange_sZ9A\",\"fixedRangeValue\":\"spreadToolbar_fixedRangeValue_3njD\",\"attention\":\"spreadToolbar_attention_3ZZC\",\"dataValidation\":\"spreadToolbar_dataValidation_3seC\",\"setting\":\"spreadToolbar_setting_1yr5\",\"value\":\"spreadToolbar_value_gKZw\",\"selectBtn\":\"spreadToolbar_selectBtn_2AMh\",\"disabled\":\"spreadToolbar_disabled_2Y_X\",\"higtLightColor\":\"spreadToolbar_higtLightColor_3kBW\",\"colorPicker\":\"spreadToolbar_colorPicker_3KBe\",\"colorContainer\":\"spreadToolbar_colorContainer_3eDA\",\"color\":\"spreadToolbar_color_3xBU\",\"range\":\"spreadToolbar_range_9IJk\",\"textItem\":\"spreadToolbar_textItem_2r71\",\"itemTitle\":\"spreadToolbar_itemTitle_1A2v\",\"itemSelect\":\"spreadToolbar_itemSelect_1Bdv\",\"itemCheck\":\"spreadToolbar_itemCheck_2hra\",\"root\":\"spreadToolbar_root_2E2b\",\"toolbar\":\"spreadToolbar_toolbar_3aWS\",\"colHeader\":\"spreadToolbar_colHeader_2YnG\",\"tooltips\":\"spreadToolbar_tooltips_2m4v\",\"customItem\":\"spreadToolbar_customItem_NsP3\",\"customItemHover\":\"spreadToolbar_customItemHover_1Rm_\",\"itemText\":\"spreadToolbar_itemText_3SzA\",\"toolbarCustomContainer\":\"spreadToolbar_toolbarCustomContainer_2gtg\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/spreadToolbar.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.less":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.less ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"dropExpendPanel\":\"CellsBorder_dropExpendPanel_1MKG\",\"top\":\"CellsBorder_top_1NWw\",\"dropList\":\"CellsBorder_dropList_1Llv\",\"dropListLeft\":\"CellsBorder_dropListLeft_3nKk\",\"dropListRight\":\"CellsBorder_dropListRight_19td\",\"selectIcon\":\"CellsBorder_selectIcon_2l9U\",\"line\":\"CellsBorder_line_15y2\",\"icon\":\"CellsBorder_icon_3niW\",\"text\":\"CellsBorder_text_3qqU\",\"styleList\":\"CellsBorder_styleList_3aI1\",\"styleItem\":\"CellsBorder_styleItem_17FT\",\"disable\":\"CellsBorder_disable_14xz\",\"select\":\"CellsBorder_select_1g2j\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsBorder.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.less":
/*!******************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.less ***!
  \******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"textItem\":\"CellsFormat_textItem_32x5\",\"itemTitle\":\"CellsFormat_itemTitle_1UOH\",\"itemContent\":\"CellsFormat_itemContent_3FnI\",\"select\":\"CellsFormat_select_2m9p\",\"selectItem\":\"CellsFormat_selectItem_1G8E\",\"active\":\"CellsFormat_active_2odN\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/CellsFormat.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.less":
/*!*************************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.less ***!
  \*************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"panel_container\":\"ConditionalFormats_panel_container_11gp\",\"panel_body_add\":\"ConditionalFormats_panel_body_add_3T--\",\"field_container\":\"ConditionalFormats_field_container_10th\",\"inner_field\":\"ConditionalFormats_inner_field_1XWr\",\"input_container\":\"ConditionalFormats_input_container_EYTL\",\"preview_container\":\"ConditionalFormats_preview_container_MpNZ\",\"preview_title\":\"ConditionalFormats_preview_title_1ChX\",\"preview_tool\":\"ConditionalFormats_preview_tool_IdFU\",\"preview_view\":\"ConditionalFormats_preview_view_qu2B\",\"btn_container\":\"ConditionalFormats_btn_container_2MuK\",\"button\":\"ConditionalFormats_button_Sewr\",\"manager_button\":\"ConditionalFormats_manager_button_2CAF\",\"panel_body_manager\":\"ConditionalFormats_panel_body_manager_1XG1\",\"manager_container\":\"ConditionalFormats_manager_container_17Mb\",\"button_container\":\"ConditionalFormats_button_container_2dAb\",\"add_button\":\"ConditionalFormats_add_button_29OW\",\"option_list\":\"ConditionalFormats_option_list_3dAF\",\"empty\":\"ConditionalFormats_empty_2JTq\",\"option\":\"ConditionalFormats_option_1y52\",\"delete\":\"ConditionalFormats_delete_2WjU\",\"inner\":\"ConditionalFormats_inner_1x8y\",\"info\":\"ConditionalFormats_info_2sOE\",\"rangeStyle\":\"ConditionalFormats_rangeStyle_312P\",\"date_dropdown\":\"ConditionalFormats_date_dropdown_11JF\",\"button_color\":\"ConditionalFormats_button_color_3AUp\",\"ghost_botton_color\":\"ConditionalFormats_ghost_botton_color_3Jty\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/ConditionalFormats.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.less":
/*!**********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.less ***!
  \**********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"dropExpendPanel\":\"InsertRowAndCol_dropExpendPanel_1P2c\",\"separator\":\"InsertRowAndCol_separator_1Jr_\",\"dropList\":\"InsertRowAndCol_dropList_3VHO\",\"input\":\"InsertRowAndCol_input_3Lkt\",\"icon\":\"InsertRowAndCol_icon_3_vV\",\"text\":\"InsertRowAndCol_text_2C3H\",\"text1\":\"InsertRowAndCol_text1_o3vl\",\"disable\":\"InsertRowAndCol_disable_30f5\",\"select\":\"InsertRowAndCol_select_1etb\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/InsertRowAndCol.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.less":
/*!**********************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.less ***!
  \**********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"mainContainer\":\"MoveOrCopySheet_mainContainer_1Bc_\",\"mianTitle\":\"MoveOrCopySheet_mianTitle_1MAa\",\"sheetList\":\"MoveOrCopySheet_sheetList_3r41\",\"selected\":\"MoveOrCopySheet_selected_1e9i\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/MoveOrCopySheet.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.less":
/*!************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.less ***!
  \************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"print_panel\":\"Print_print_panel_3HEi\",\"print_panel_tab\":\"Print_print_panel_tab_3Qi_\",\"group_container\":\"Print_group_container_dDWm\",\"zoom_title\":\"Print_zoom_title_30eZ\",\"title\":\"Print_title_FUcm\",\"check_title\":\"Print_check_title_15r1\",\"group_grid\":\"Print_group_grid_3hEE\",\"group_flex\":\"Print_group_flex_1oXZ\",\"zoom_horizontal\":\"Print_zoom_horizontal_1j0_\",\"zoom_vertical\":\"Print_zoom_vertical_3YPg\",\"zoom_page\":\"Print_zoom_page_1Yca\",\"btn_container\":\"Print_btn_container_1r2A\",\"button\":\"Print_button_12lB\",\"button_color\":\"Print_button_color_Zc9k\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Print.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.less":
/*!***************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.less ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"richTextRoot\":\"RichText_richTextRoot_1X-0\",\"container\":\"RichText_container_rYhp\",\"hedaer\":\"RichText_hedaer_ZvVF\",\"title\":\"RichText_title_Jdk8\",\"close\":\"RichText_close_3eCT\",\"tools\":\"RichText_tools_1WcP\",\"content\":\"RichText_content_3e_5\",\"bottom\":\"RichText_bottom_2nlY\",\"btn\":\"RichText_btn_zxA5\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/RichText.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.less":
/*!**************************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.less ***!
  \**************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"subName\":\"SubMenu_subName_30Aw\",\"arrow\":\"SubMenu_arrow_1Gnd\",\"subPanel\":\"SubMenu_subPanel_2Ccz\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/SubMenu.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.less":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.less ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"tab_container\":\"Tab_tab_container_1a1e\",\"tab_header\":\"Tab_tab_header_2DE3\",\"tab_head_item\":\"Tab_tab_head_item_2Iwx\",\"selected\":\"Tab_selected_3jpG\",\"tab_body\":\"Tab_tab_body_2dxv\",\"tab_body_item\":\"Tab_tab_body_item_gOSQ\"});\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/toolbarElement/Tab.less?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_dashDot.png":
/*!*************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_dashDot.png ***!
  \*************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAABCAYAAAAsLtuAAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAQAAAACqVba7AAAAPUlEQVQYGXWLQQoAIAzD3M/69P5MLxZGIV7qQjKS7vnP9uS/eVgv+cS7z00+8XS95BPvPjf5xNP1kk989w/RjC3BFSSLAAAAAABJRU5ErkJggg==\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_dashDot.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_dashDotDot.png":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_dashDotDot.png ***!
  \****************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAABCAYAAAAsLtuAAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAQAAAACqVba7AAAANklEQVQYGWN0cHD4z0AAHDhwgBGmBFk9qeIwM9BpUs3BpR7dXBgfl3pSxWHmodOkmoNLPbK5AMa2McEWOzYjAAAAAElFTkSuQmCC\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_dashDotDot.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_dashed.png":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_dashed.png ***!
  \************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAABCAYAAAAsLtuAAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAQAAAACqVba7AAAAGUlEQVQYGWN0cHD4zwAFBw4cYBzlD47wAAA4AGXBRlRUXgAAAABJRU5ErkJggg==\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_dashed.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_dotted.png":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_dotted.png ***!
  \************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAAABCAYAAADHGWCDAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZaADAAQAAAABAAAAAQAAAAD5z+0/AAAAGUlEQVQYGWN0cHD4zwAEBw4cYBxlD45wAABKk4XB5jK7bgAAAABJRU5ErkJggg==\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_dotted.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_double.png":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_double.png ***!
  \************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAADCAYAAABh5nqLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAwAAAADQleXbAAAAIElEQVQ4EWN0cHD4zzAKRkNgNASICwHG0RxDXEDRWxUAKXgDgaxX33MAAAAASUVORK5CYII=\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_double.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_hair.png":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_hair.png ***!
  \**********************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAAABCAYAAADHGWCDAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZaADAAQAAAABAAAAAQAAAAD5z+0/AAAAFElEQVQYGWNwcHD4zwAEo/TgCQcAPWRZDjCLD/QAAAAASUVORK5CYII=\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_hair.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_medium.png":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_medium.png ***!
  \************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAACCAIAAAAl2D55AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAgAAAADt9cxrAAAAGUlEQVQoFWN0cHBgGAWkhAATKYpH1YJCAADSQQDEHDmRkQAAAABJRU5ErkJggg==\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_medium.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDot.png":
/*!*******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDot.png ***!
  \*******************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAACCAYAAACquqkuAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAgAAAADt9cxrAAAAKUlEQVQoFWN0cHD4zwAFBw4cYAQxCYnB1KPTo/qpF35M6IE7yh8cIQAAQG41w7IAn5kAAAAASUVORK5CYII=\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDot.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDotDot.png":
/*!**********************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDotDot.png ***!
  \**********************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAACCAYAAACquqkuAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAgAAAADt9cxrAAAARUlEQVQoFWN0cHD4zwAFBw4cYAQxCYnB1KPTxOrHpg7dLBgfm1pixWBmoNPE6semDt0sGB+bWmLFYGYg00zInFH24AkBAPEMOcO3An0rAAAAAElFTkSuQmCC\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_mediumDashDotDot.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_mediumDashed.png":
/*!******************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_mediumDashed.png ***!
  \******************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAACCAYAAACquqkuAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAgAAAADt9cxrAAAAJElEQVQoFWN0cHD4z0AAHDhwgBGkZFQt/cKBiUCcjEoPUAgAAP3nJcNvC8EOAAAAAElFTkSuQmCC\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_mediumDashed.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_thick.png":
/*!***********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_thick.png ***!
  \***********************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAADCAIAAADuhO3cAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAwAAAADQleXbAAAAHklEQVQoFWN0cHBgGAWkhAATKYpH1YJCYDTISE4HAL/CAMbTbYLZAAAAAElFTkSuQmCC\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_thick.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/border_thin.png":
/*!**********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/border_thin.png ***!
  \**********************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAABCAIAAACjTEzXAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAAQAAAACqVba7AAAAEUlEQVQYGWN0cHBgGAWkhAAA5yYAwvvxA3cAAAAASUVORK5CYII=\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/border_thin.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/decreaseIndicator.png":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/decreaseIndicator.png ***!
  \****************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64, \"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/decreaseIndicator.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/increaseIndicator.png":
/*!****************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/increaseIndicator.png ***!
  \****************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABGdBTUEAALGPC/xhBQAACitJREFUeAHtnT+IVEcYwN13lyOFnSh7CxZpUqXSHAHBMmXgQImYykouIAFJkXYJJJVBkCsOi5BKoygYApZBSBBCTtuUKYS988QqFuEgu/k+uXfsbW5n9t7N7cx+32/h8XbfzJuZ7/fNj9l/MK1jEzy63W7V6/XOSdXlVqt1djAYdOTckfPxCW6nCgSyEpC5+kbmak/OPTk/k8E86nQ6T2Ve92MDa4UqSAPvbm5ufiGNfinHqVBdyiAwSwREli05vmu327dknv8zbuxjBVlZWbkgUtyU4/S4m7kOgVknIJK8kOP62traw/1iqUYvihAtkeObfr//ADlG6fDaGgGd4zrXdc7r3B+Nb8+FHTnuyvnSaEVeQ8A6AVlJ7slKclnOgzrWufqJnl++fKkWfT58jecQcETgg8ePH7+zvr7+Sx3z7gqinzl0qakLOEPAK4Gqqi7Wn0nefgbRb6tk5bjpFQhxQ2CYgLqgTui1t4LsfJXLt1XDlHjuloAIclqdUAAtMaXakIdc5HcOt1OCwEcJyAf1rUV5zO/8Qo4co4R47ZqALhjqhr7FWnZNguAhMJ7AciVLydnx5ZRAwC8BdaOSpaTjFwGRQ2A8AXVDVxAEGc+IEscE1I15saTxX9algR/k+NUxQ0IvnIDM7/NyXGkyTHVjvsmN9T0qh/zi+H39mjMESiMg/xA51lQQjeV//+YtLUDGA4GcBBAkJ336Lp4AghSfIgaYkwCC5KRP38UTQJDiU8QAcxJAkJz06bt4AghSfIoYYE4CCJKTPn0XTwBBik8RA8xJAEFy0qfv4gkgSPEpYoA5CSBITvr0XTwBBCk+RQwwJwEEyUmfvosngCDFp4gB5iSAIDnp03fxBBCk+BQxwJwEECQnffoungCCFJ8iBpiTAILkpE/fxRNAkOJTxABzEkCQnPTpu3gCCFJ8ihhgTgIIkpM+fRdPAEGKTxEDzEkAQXLSp+/iCSBI8SligDkJIEhO+vRdPAEEKT5FDDAnAQTJSZ++iyeAIMWniAHmJIAgOenTd/EEEKT4FDHAnAQQJCd9+i6eAIIUnyIGmJMAguSkT9/FE0CQ4lPEAHMSONQutzkHbqXvbrdbbW5ufio7sX4mx4cS1wk5XssOwuty3Gm32/elTt9KvLMWBytIxoxdu3btvV6v90e/378rcnwiQ1mUY0HP+lqva7nWyzhM110jSKb066Tf3t7+Xbo/ExnCGa2HJBFKR1SMIEcENtSsvq2SSf9A6pwM1RsqO6n19b6hazydAgGATwHyaBf6mUOuxVaO0dvO7Nw3ep3XR0gAQY4Q7rim9QP5uLLQ9ab3hdqkLEwAQcJ8jqRUJrp+W3XgR9P7DtwRN+wSQJBdFFN9cqphb03va9gdtyFInjkw17Dbpvc17I7bEIQ5AIEAAQQJwKEIAgjCHIBAgACCBOBQBAEEYQ5AIEAAQQJwKIIAgjAHIBAggCABOBRBAEGYAxAIEECQAByKIIAgzAEIBAggSAAORRBAEOYABAIEECQAhyIIIAhzAAIBAggSgEMRBBCEOQCBAAEECcChCAIIwhyAQIAAggTgUAQBBGEOQCBAAEECcCiCAIIwByAQIIAgATgUQQBBmAMQCBBAkAAciiCAIMwBCAQIIEgADkUQQBDmAAQCBBAkAIciCLjYBnqfrZZ1n42Z3Erg6tWrg0zT9l/pd8vb9tTmV5AxWy3PpByZxKi7VWbutqc2LcgBtlquJwHnyQm42J7arCANtlqefGpQsyZgfntqs4I03Gq5TjznyQmY3p7arCBsmTz5DD9sTcusLQvSaKvlw04Wj/db3p7arCAyUU94nKyZYjbL2rIgrzNNFo/dmmVtVhD9QcvjTM0Rs2XWlgW5k2OyeOxTBDHL2qwg7Xb7vkzW5x4n7JRjfr7DesrdTqc7s4LID4X9hYWFi4Lx1XRQuuzllTJW1lajNyuIJmx1dfUvSeBH8pSVJP0Mfq5slXH6pstp0bQgilkT2Ol0lqqquizvlX+WSxty6D9TeRyMgDLbUIbKUplal0PxePm7u74F+HHn0LizPg7zl/Xbt2+3sg7eWefmVxBn+STcxAQQJDFQmrNFAEFs5ZNoEhNAkMRAac4WAQSxlU+iSUwAQRIDpTlbBBDEVj6JJjEBBEkMlOZsEUAQW/kkmsQEECQxUJqzRQBBbOWTaBITQJDEQGnOFgEEsZVPoklMAEESA6U5WwQQxFY+iSYxAQRJDJTmbBFAEFv5JJrEBBAkMVCas0UAQWzlk2gSE0CQxEBpzhYBBLGVT6JJTABBEgOlOVsEEMRWPokmMQEESQyU5mwRQBBb+SSaxAQQJDFQmrNFAEFs5ZNoEhNAkMRAac4WAQSxlU+iSUwAQRIDnbC5ptsvNL1vwmFRbZQAgowSmc7rrYbdNL2vYXfchiAZ5kDTXWGb3pchRDNdIkiGVMpEb7QrbNP7MoRopksEyZDKhjvwmt5NNkMaJuoSQSbClLZSgx14ze8mm5ZwutYQJB3LA7V0gB14XewmeyB4U6yMIFOEPdrVmB14t6Weu91kR9mU8trFLrelwN5vHPp2S64XswPvfmP0fI0VxHP2iT1KAEGiiKjgmQCCeM4+sUcJIEgUERU8E0AQz9kn9igBBIkiooJnAgjiOfvEHiWAIFFEVPBMAEE8Z5/YowQQJIqICp4JIIjn7BN7lACCRBFRwTMBBPGcfWKPEkCQKCIqeCaAIJ6zT+xRAggSRUQFzwQQxHP2iT1KAEGiiKjgmQCCeM4+sUcJIEgUERU8E0AQz9kn9igBBIkiooJnAgjiOfvEHiWAIFFEVPBMAEE8Z5/YowQQJIqICp4JIIjn7BN7lACCRBFRwTMBBPGcfWKPEkCQKCIqeCaAIJ6zT+xRAggSRUQFzwQQxHP2iT1KAEGiiKjgmQCCeM4+sUcJIEgUERU8E0AQz9kn9iiBQ+1yOxgMzq+srEQ7oQIEchHQOXqYvudbrdYbaeR4k0bkvit6NLmXeyAwAwT+rmSC92ZgoAwRAjkIbFSygiBIDvT0WTwBdUNXkGfFj5QBQiAPgXX9FutRnr7pFQJlE5DF46eq0+k8laVkq+yhMjoITJeAOqFuzD158mSwtLSkb7U+nu4Q6A0C5RKoqurrGzdu/Pb2h8J2u31LjHlR7nAZGQSmR0BdUCe0x1bdrfzgd6Hf7z+oX3OGgFcCsnpcXFtbe6jxz9UQ1tfX/5S3WgvyVutQvzzW7XGGwCwSEDm+FTlW67HvriB6QeRoyUpyV86X6gqcIeCFgLy1uidyXJbzoI55z58VtUArqEV1Bc4Q8EBgZ+XYI4fGvWcFGQahn0lkJbkpx+nh6zyHgCUC+oFcjuv1Z47R2PasIMOFesPi4uL7YtZX0gC/kwzD4fnME9A5rXNb5/g4OTTIsSvIMIFut1v1er1zcm1ZGj4rq0pHzh05N/oX8HDbPIfAUROQuar/WO/JuSdn/WvVI/0RUOZ1P9b3f9gqNYfhzTipAAAAAElFTkSuQmCC\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/increaseIndicator.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/images/rotate.png":
/*!*****************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/images/rotate.png ***!
  \*****************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64, \"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/images/rotate.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/f7.png":
/*!*********************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/f7.png ***!
  \*********************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64, \"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/f7.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/lockCell.png":
/*!***************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/lockCell.png ***!
  \***************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAOtJREFUOBFjYBjsgBGfA/v6+qR///7dA1TjAFV3gJWVtaSoqOgpLn04Dezs7JT6////JaBGYTTNbxkZGfXKy8ufoYmDuUzYBEFiQMM6gZQwUPNONjY2GRAGsUFiUDmQMgyA00CgZgeQamZm5nSQF0EYxAaJweRAbHSA00CgK2RAiktKSh7CNMHYMDmYODKN00BkRaSwiTYQ6Cqm/fv3sxAyHCOWOzo6tgA1ecM0AsMLaNZ/DHVQ+a0VFRU+MLUgGpsL4YaBFOAxDCSNohYkgM1AkDjZYNRAsoMOrhFbGG6FyxJmkKKWsGlDUwUAVUM+6Lxy61oAAAAASUVORK5CYII=\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/lockCell.png?");

/***/ }),

/***/ "./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/xiala.png":
/*!************************************************************************!*\
  !*** ./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/xiala.png ***!
  \************************************************************************/
/***/ (function(module) {

eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKEUlEQVR4Xu2dR6/1VhmFV2bAAIQEM4ZIDJCQECDBAIQoShAhoojeu8QAJgiJUUCKMuEX0HsVkEBCEnrvvST03nvovWjDvkLhu+V4+fU59l7PmX773fb7rP1cf/axfc4THwhA4EQC58EGAhA4mQCCsDogcAoBBGF5QABBWAMQ8AhwBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIjCbI7STdTdLtJd1S0qclfVXSNZKuD8l0jW3eXNIzJN1Z0l0kfUvSRyVdJenKNe7w0T6NJMhDJb1U0o2PAf45Sc+VdPmawxh0354m6emSbnNCf6+S9Oi19j6KIFdLumAHyM/pouwwlCEFBBrvi3eY51mSnrfDuL0PGUGQZ06EiyT7WWa7ynG0Nw+X9Lr97NruW9m6IDeVdK2kW+3e8n9GIslEYBOHT5WjTf8aSY+cuJ3Fh29dkPP7CbgDCkkcamfXOHK0Wb92ynnK2VtdaMTWBblU0rNnsEGSGfCOKXXlaFP9VtLNandn/mxbF+QKSRfOxIAkMwH28jlytCnevuOFlpq93XGWrQsyN5QjTEiy44I5YVhFDqvMYOuCtCsf7eSu4rPKgCoaW3iOCjkuk/TAhffTmn7rgtykn6Tf1er+3CIkmQayQo7rJF0k6ZvTNr2f0VsXpFG6Q5fkFkXIkGQ3kBVyfFnSQyR9abdN7n/UCII0ag+W9IZCfEhyOswqOdrtQV8szK18qlEEaWDaX6LXFxJCkuNhVsjxlZ7XquVo7Y8kSOun/UWqvF0BSW4oSYUc7e7q9sfsC4V/zBabajRBGqiHSXptITEk+S/MCjnat+VNjs8X5rPoVCMK0oBVXv49WhztdvnUT4UcX+9ytEcPNvMZVRAkqVuCFXJ8o8vx2brd2s9MIwvSCD5C0qsLUab9d6tKjnZu+JnCHPY21eiCNJDtFur21FrVJ0WSCjnal3/tnGOTcrQFkyBI6/NRkl5ZZUjA8yQVcrTnzpsc7b0Am/2kCNICas89v6IwqVGPJBVyfLvL8alC3geZKkmQBvgxkl5eSHo0SSrk+E6X45OFnA82VZogDfRjJb2skPgoklTI8d0uxycK+R50qkRBkOTcJVchx/e6HB8/6Iou3niqIA3j4/p7tKqQbvVIUiVHu5T7sSqYa5knWZCWweMlvaQwjK1JUiHH9/uRYzg5ki7znubAEyS9OFCSCjl+0OVorxEd8pN+BDkK9YmSXlSY8NqPJBVy/LDL8ZFCbqubCkH+F8mTJL2wMKG1SlIhx4+6HB8u5LXKqRDkhrE8WdILCpNamyQVcvy4y/GhQk6rnQpBzo1mVEkq5PhJl+ODq13RxTuGIMcDfYqk5xeyPvSRBDnMMBHkZHCjHEkq5PhpP3J8wFxnmy1DkNOj2/qJe4UcP+tyvH+zq3zGjiPI2fC2egm4Qo6fdznedzamMUcgyG65bu0b9wo5ftHleO9uiMYchSC757qVe7cq5Phll+M9u+MZcySCTMt17bfKV8jxq/6myng52tJAkGmCtNFrfeiqSo72mOy7p2MZswJBvFzX9ox7hRy/7v+tepeHZMwqBPFzXcvbUirkuL7L8U4fx5iVCDIv10O/d6tCjt90Od4xD8WY1QgyP9dDvQu4Qo72w5ntnKP9PiCfYwggSM2y2Pdb5Svk+F2/WoUcp6wBBKkRpM2yr98nqZDj912Oa+raH3MmBKnNdelfuqqSo8l8dW3rY86GIPW5PkjSGwunPbpVvkKOP/Qj3VWF+zf0VAiyTLztJ43fVDh1+22Si2fO98cux9tmzhNVjiDLxf0ASW9ebvpJM/+py3HlpCoGc6vJwmvg/pIuW3gbZ03/5y7HFWcN5N/PJcARZPlVcZGktyy/mWO38Jd+tQo5zAAQxAQ3sex+kt46sWbu8L92Ofa93bn7vap6BNlfHBdK2tdf8iZHu5R7qCPX/qguvCUEWRjw/01/X0lLnyj/rctx+X5bG3NrCLL/XO8jaanvIf7e5Tj0hYH9U11oiwiyENgzpr1ggW+y/9HlWMul5cOQLd4qghQDnTDd+ZKq7oX6Z5ej8svJCa2MOxRBDpvtvSXNfQ7jX/1qFXIskCWCLAB14pT3kjTnSb52g2TlvV8Td3/s4QiyjnzvKcl5FvypxW+jXweNFe0FgqwnjHtMfJtI+w3yO61n98fcEwRZV653l7TLmwyv7Sfl161r98fbGwRZX6a37b/jfscTdq39xnt7NqT9JjmfhQkgyMKAZ0zfHrxqR5RbS7pRn+eSif8Nm7F5ShsBBGEdQOAUAgjC8oAAgrAGIOAR4AjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yOAIB43qkIIIEhI0LTpEUAQjxtVIQQQJCRo2vQIIIjHjaoQAggSEjRtegQQxONGVQgBBAkJmjY9AgjicaMqhACChARNmx4BBPG4URVCAEFCgqZNjwCCeNyoCiGAICFB06ZHAEE8blSFEECQkKBp0yPwbwv6G9gX5EuWAAAAAElFTkSuQmCC\"\n\n//# sourceURL=webpack://bos-platform/./src/component/web/DataGrid/ReportGrid/ui/toolbar/img/xiala.png?");

/***/ }),

/***/ "../../node_modules/xss-filters/src/xss-filters.js":
/*!******************************************************************************************!*\
  !*** delegated ../../node_modules/xss-filters/src/xss-filters.js from dll-reference lib ***!
  \******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = (__webpack_require__(/*! dll-reference lib */ \"dll-reference lib\"))(8375);\n\n//# sourceURL=webpack://bos-platform/delegated_../../node_modules/xss-filters/src/xss-filters.js_from_dll-reference_lib?");

/***/ })

}]);