@leankylin-sheet/react 3.1.38 → 3.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +15 -4
- package/dist/index.js +15 -4
- package/dist/index.umd.js +15 -4
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1730,6 +1730,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1730
1730
|
};
|
|
1731
1731
|
|
|
1732
1732
|
var FilterOptions = function FilterOptions(_ref) {
|
|
1733
|
+
var _refs$globalCache$fre, _refs$globalCache$fre2;
|
|
1733
1734
|
var getContainer = _ref.getContainer;
|
|
1734
1735
|
var _useContext = useContext(WorkbookContext),
|
|
1735
1736
|
context = _useContext.context,
|
|
@@ -1785,11 +1786,21 @@ var FilterOptions = function FilterOptions(_ref) {
|
|
|
1785
1786
|
frozenColumns = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.column_focus) || -1;
|
|
1786
1787
|
frozenRows = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.row_focus) || -1;
|
|
1787
1788
|
}
|
|
1788
|
-
return filterOptions == null ? ( /*#__PURE__*/React.createElement("div", null)) : ( /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
1789
|
-
|
|
1789
|
+
return filterOptions == null ? ( /*#__PURE__*/React.createElement("div", null)) : ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1790
|
+
id: "luckysheet-filter-selected-sheet",
|
|
1791
|
+
className: "luckysheet-cell-selected luckysheet-filter-selected",
|
|
1792
|
+
style: _.assign({
|
|
1793
|
+
left: filterOptions.left,
|
|
1794
|
+
width: filterOptions.width,
|
|
1795
|
+
top: filterOptions.top,
|
|
1796
|
+
height: filterOptions.height,
|
|
1797
|
+
display: "block"
|
|
1798
|
+
}, fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.endRow, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]), fixColumnStyleOverflowInFreeze(context, filterOptions.startCol, filterOptions.endCol, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]))
|
|
1799
|
+
}), filterOptions.items.map(function (v, i) {
|
|
1800
|
+
var _refs$globalCache$fre3, _refs$globalCache$fre4;
|
|
1790
1801
|
var filterParam = filter[i];
|
|
1791
|
-
var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$
|
|
1792
|
-
var rowOverflowFreezeStyle = fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.startRow, (_refs$globalCache$
|
|
1802
|
+
var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$fre3 = refs.globalCache.freezen) === null || _refs$globalCache$fre3 === void 0 ? void 0 : _refs$globalCache$fre3[context.currentSheetId]);
|
|
1803
|
+
var rowOverflowFreezeStyle = fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.startRow, (_refs$globalCache$fre4 = refs.globalCache.freezen) === null || _refs$globalCache$fre4 === void 0 ? void 0 : _refs$globalCache$fre4[context.currentSheetId]);
|
|
1793
1804
|
var col = visibledatacolumn[v.col];
|
|
1794
1805
|
var col_pre = v.col > 0 ? visibledatacolumn[v.col - 1] : 0;
|
|
1795
1806
|
var left = v.col <= frozenColumns && columnOverflowFreezeStyle.left ? columnOverflowFreezeStyle.left + col - col_pre - 20 : v.left;
|
package/dist/index.js
CHANGED
|
@@ -1740,6 +1740,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
|
|
1742
1742
|
var FilterOptions = function FilterOptions(_ref) {
|
|
1743
|
+
var _refs$globalCache$fre, _refs$globalCache$fre2;
|
|
1743
1744
|
var getContainer = _ref.getContainer;
|
|
1744
1745
|
var _useContext = React.useContext(WorkbookContext),
|
|
1745
1746
|
context = _useContext.context,
|
|
@@ -1795,11 +1796,21 @@ var FilterOptions = function FilterOptions(_ref) {
|
|
|
1795
1796
|
frozenColumns = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.column_focus) || -1;
|
|
1796
1797
|
frozenRows = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.row_focus) || -1;
|
|
1797
1798
|
}
|
|
1798
|
-
return filterOptions == null ? ( /*#__PURE__*/React__default['default'].createElement("div", null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
1799
|
-
|
|
1799
|
+
return filterOptions == null ? ( /*#__PURE__*/React__default['default'].createElement("div", null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1800
|
+
id: "luckysheet-filter-selected-sheet",
|
|
1801
|
+
className: "luckysheet-cell-selected luckysheet-filter-selected",
|
|
1802
|
+
style: ___default['default'].assign({
|
|
1803
|
+
left: filterOptions.left,
|
|
1804
|
+
width: filterOptions.width,
|
|
1805
|
+
top: filterOptions.top,
|
|
1806
|
+
height: filterOptions.height,
|
|
1807
|
+
display: "block"
|
|
1808
|
+
}, core.fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.endRow, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]), core.fixColumnStyleOverflowInFreeze(context, filterOptions.startCol, filterOptions.endCol, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]))
|
|
1809
|
+
}), filterOptions.items.map(function (v, i) {
|
|
1810
|
+
var _refs$globalCache$fre3, _refs$globalCache$fre4;
|
|
1800
1811
|
var filterParam = filter[i];
|
|
1801
|
-
var columnOverflowFreezeStyle = core.fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$
|
|
1802
|
-
var rowOverflowFreezeStyle = core.fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.startRow, (_refs$globalCache$
|
|
1812
|
+
var columnOverflowFreezeStyle = core.fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$fre3 = refs.globalCache.freezen) === null || _refs$globalCache$fre3 === void 0 ? void 0 : _refs$globalCache$fre3[context.currentSheetId]);
|
|
1813
|
+
var rowOverflowFreezeStyle = core.fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.startRow, (_refs$globalCache$fre4 = refs.globalCache.freezen) === null || _refs$globalCache$fre4 === void 0 ? void 0 : _refs$globalCache$fre4[context.currentSheetId]);
|
|
1803
1814
|
var col = visibledatacolumn[v.col];
|
|
1804
1815
|
var col_pre = v.col > 0 ? visibledatacolumn[v.col - 1] : 0;
|
|
1805
1816
|
var left = v.col <= frozenColumns && columnOverflowFreezeStyle.left ? columnOverflowFreezeStyle.left + col - col_pre - 20 : v.left;
|
package/dist/index.umd.js
CHANGED
|
@@ -95052,6 +95052,7 @@
|
|
|
95052
95052
|
};
|
|
95053
95053
|
|
|
95054
95054
|
var FilterOptions = function FilterOptions(_ref) {
|
|
95055
|
+
var _refs$globalCache$fre, _refs$globalCache$fre2;
|
|
95055
95056
|
var getContainer = _ref.getContainer;
|
|
95056
95057
|
var _useContext = React.useContext(WorkbookContext),
|
|
95057
95058
|
context = _useContext.context,
|
|
@@ -95107,11 +95108,21 @@
|
|
|
95107
95108
|
frozenColumns = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.column_focus) || -1;
|
|
95108
95109
|
frozenRows = (frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.row_focus) || -1;
|
|
95109
95110
|
}
|
|
95110
|
-
return filterOptions == null ? ( /*#__PURE__*/React__default['default'].createElement("div", null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
95111
|
-
|
|
95111
|
+
return filterOptions == null ? ( /*#__PURE__*/React__default['default'].createElement("div", null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
95112
|
+
id: "luckysheet-filter-selected-sheet",
|
|
95113
|
+
className: "luckysheet-cell-selected luckysheet-filter-selected",
|
|
95114
|
+
style: lodash.assign({
|
|
95115
|
+
left: filterOptions.left,
|
|
95116
|
+
width: filterOptions.width,
|
|
95117
|
+
top: filterOptions.top,
|
|
95118
|
+
height: filterOptions.height,
|
|
95119
|
+
display: "block"
|
|
95120
|
+
}, fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.endRow, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]), fixColumnStyleOverflowInFreeze(context, filterOptions.startCol, filterOptions.endCol, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]))
|
|
95121
|
+
}), filterOptions.items.map(function (v, i) {
|
|
95122
|
+
var _refs$globalCache$fre3, _refs$globalCache$fre4;
|
|
95112
95123
|
var filterParam = filter[i];
|
|
95113
|
-
var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$
|
|
95114
|
-
var rowOverflowFreezeStyle = fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.startRow, (_refs$globalCache$
|
|
95124
|
+
var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, i + filterOptions.startCol, i + filterOptions.startCol, (_refs$globalCache$fre3 = refs.globalCache.freezen) === null || _refs$globalCache$fre3 === void 0 ? void 0 : _refs$globalCache$fre3[context.currentSheetId]);
|
|
95125
|
+
var rowOverflowFreezeStyle = fixRowStyleOverflowInFreeze(context, filterOptions.startRow, filterOptions.startRow, (_refs$globalCache$fre4 = refs.globalCache.freezen) === null || _refs$globalCache$fre4 === void 0 ? void 0 : _refs$globalCache$fre4[context.currentSheetId]);
|
|
95115
95126
|
var col = visibledatacolumn[v.col];
|
|
95116
95127
|
var col_pre = v.col > 0 ? visibledatacolumn[v.col - 1] : 0;
|
|
95117
95128
|
var left = v.col <= frozenColumns && columnOverflowFreezeStyle.left ? columnOverflowFreezeStyle.left + col - col_pre - 20 : v.left;
|