@fileverse-dev/fortune-react 1.0.26 → 1.1.0
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.css +3915 -0
- package/dist/index.esm.css +3915 -0
- package/dist/index.esm.js +12975 -0
- package/dist/index.js +12995 -0
- package/dist/index.umd.css +3915 -0
- package/dist/index.umd.js +122445 -0
- package/dist/index.umd.min.css +1 -0
- package/dist/index.umd.min.js +50 -0
- package/dist/packages/core/src/api/cell.d.ts +10 -0
- package/dist/packages/core/src/api/common.d.ts +66 -0
- package/dist/packages/core/src/api/errors.d.ts +2 -0
- package/dist/packages/core/src/api/index.d.ts +9 -0
- package/dist/packages/core/src/api/merge.d.ts +5 -0
- package/dist/packages/core/src/api/range.d.ts +22 -0
- package/dist/packages/core/src/api/rowcol.d.ts +14 -0
- package/dist/packages/core/src/api/sheet.d.ts +10 -0
- package/dist/packages/core/src/api/workbook.d.ts +15 -0
- package/dist/packages/core/src/canvas.d.ts +46 -0
- package/dist/packages/core/src/context.d.ts +197 -0
- package/dist/packages/core/src/events/copy.d.ts +2 -0
- package/dist/packages/core/src/events/index.d.ts +4 -0
- package/dist/packages/core/src/events/keyboard.d.ts +6 -0
- package/dist/packages/core/src/events/mouse.d.ts +22 -0
- package/dist/packages/core/src/events/paste.d.ts +3 -0
- package/dist/packages/core/src/index.d.ts +10 -0
- package/dist/packages/core/src/locale/en.d.ts +992 -0
- package/dist/packages/core/src/locale/es.d.ts +1134 -0
- package/dist/packages/core/src/locale/hi.d.ts +1030 -0
- package/dist/packages/core/src/locale/index.d.ts +1049 -0
- package/dist/packages/core/src/locale/zh.d.ts +1048 -0
- package/dist/packages/core/src/locale/zh_tw.d.ts +1187 -0
- package/dist/packages/core/src/modules/ConditionFormat.d.ts +17 -0
- package/dist/packages/core/src/modules/border.d.ts +3 -0
- package/dist/packages/core/src/modules/cell.d.ts +32 -0
- package/dist/packages/core/src/modules/clipboard.d.ts +3 -0
- package/dist/packages/core/src/modules/color.d.ts +1 -0
- package/dist/packages/core/src/modules/comment.d.ts +97 -0
- package/dist/packages/core/src/modules/conditionalFormat.d.ts +2 -0
- package/dist/packages/core/src/modules/cursor.d.ts +3 -0
- package/dist/packages/core/src/modules/dataVerification.d.ts +11 -0
- package/dist/packages/core/src/modules/dropCell.d.ts +10 -0
- package/dist/packages/core/src/modules/filter.d.ts +45 -0
- package/dist/packages/core/src/modules/format.d.ts +6 -0
- package/dist/packages/core/src/modules/formula.d.ts +54 -0
- package/dist/packages/core/src/modules/freeze.d.ts +5 -0
- package/dist/packages/core/src/modules/hyperlink.d.ts +21 -0
- package/dist/packages/core/src/modules/iframe.d.ts +12 -0
- package/dist/packages/core/src/modules/image.d.ts +31 -0
- package/dist/packages/core/src/modules/index.d.ts +36 -0
- package/dist/packages/core/src/modules/inline-string.d.ts +36 -0
- package/dist/packages/core/src/modules/location.d.ts +6 -0
- package/dist/packages/core/src/modules/locationCondition.d.ts +21 -0
- package/dist/packages/core/src/modules/merge.d.ts +3 -0
- package/dist/packages/core/src/modules/mobile.d.ts +5 -0
- package/dist/packages/core/src/modules/moveCells.d.ts +5 -0
- package/dist/packages/core/src/modules/protection.d.ts +5 -0
- package/dist/packages/core/src/modules/refresh.d.ts +3 -0
- package/dist/packages/core/src/modules/rowcol.d.ts +19 -0
- package/dist/packages/core/src/modules/screenshot.d.ts +2 -0
- package/dist/packages/core/src/modules/searchReplace.d.ts +36 -0
- package/dist/packages/core/src/modules/selection.d.ts +46 -0
- package/dist/packages/core/src/modules/sheet.d.ts +10 -0
- package/dist/packages/core/src/modules/sort.d.ts +7 -0
- package/dist/packages/core/src/modules/splitColumn.d.ts +5 -0
- package/dist/packages/core/src/modules/text.d.ts +10 -0
- package/dist/packages/core/src/modules/toolbar.d.ts +32 -0
- package/dist/packages/core/src/modules/validation.d.ts +19 -0
- package/dist/packages/core/src/modules/zoom.d.ts +3 -0
- package/dist/packages/core/src/settings.d.ts +100 -0
- package/dist/packages/core/src/types.d.ts +371 -0
- package/dist/packages/core/src/utils/freeze.d.ts +7 -0
- package/dist/packages/core/src/utils/index.d.ts +18 -0
- package/dist/packages/core/src/utils/patch.d.ts +37 -0
- package/{es → dist/packages/react/src}/components/ChangeColor/index.d.ts +7 -7
- package/{lib → dist/packages/react/src}/components/ConditionFormat/ConditionRules.d.ts +6 -6
- package/{es → dist/packages/react/src}/components/ConditionFormat/index.d.ts +7 -7
- package/{es → dist/packages/react/src}/components/ContextMenu/Divider.d.ts +3 -3
- package/{lib → dist/packages/react/src}/components/ContextMenu/FilterMenu.d.ts +3 -3
- package/{es → dist/packages/react/src}/components/ContextMenu/Menu.d.ts +8 -8
- package/{lib → dist/packages/react/src}/components/ContextMenu/SheetTab.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/ContextMenu/index.d.ts +5 -5
- package/{lib → dist/packages/react/src}/components/CustomSort/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/DataVerification/DropdownList.d.ts +4 -4
- package/{lib → dist/packages/react/src}/components/DataVerification/RangeDialog.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/DataVerification/getDisplayedRangeTxt.d.ts +2 -2
- package/{lib → dist/packages/react/src}/components/DataVerification/index.d.ts +4 -4
- package/{lib → dist/packages/react/src}/components/Dialog/index.d.ts +15 -15
- package/{lib → dist/packages/react/src}/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +11 -11
- package/{lib → dist/packages/react/src}/components/DunePreview/DunePreview.d.ts +13 -13
- package/{es → dist/packages/react/src}/components/FilterOption/index.d.ts +5 -5
- package/{es → dist/packages/react/src}/components/FormatSearch/index.d.ts +6 -6
- package/{lib → dist/packages/react/src}/components/FormulaSearch/index.d.ts +5 -5
- package/{lib → dist/packages/react/src}/components/FxEditor/NameBox.d.ts +3 -3
- package/{es → dist/packages/react/src}/components/FxEditor/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/IFrameBoxs/iFrameBoxs.d.ts +4 -4
- package/{lib → dist/packages/react/src}/components/ImgBoxs/index.d.ts +3 -3
- package/{es → dist/packages/react/src}/components/LinkEidtCard/index.d.ts +5 -5
- package/{lib → dist/packages/react/src}/components/LocationCondition/index.d.ts +3 -3
- package/{lib → dist/packages/react/src}/components/MessageBox/index.d.ts +9 -9
- package/{es → dist/packages/react/src}/components/NotationBoxes/index.d.ts +3 -3
- package/{lib → dist/packages/react/src}/components/ResetColumnWidth/index.d.ts +2 -2
- package/{es → dist/packages/react/src}/components/SVGDefines.d.ts +5 -5
- package/{es → dist/packages/react/src}/components/SVGIcon.d.ts +9 -9
- package/{lib → dist/packages/react/src}/components/SearchReplace/index.d.ts +6 -6
- package/{es → dist/packages/react/src}/components/Sheet/index.d.ts +8 -8
- package/{es → dist/packages/react/src}/components/SheetList/SheetHiddenButton.d.ts +8 -8
- package/{lib → dist/packages/react/src}/components/SheetList/SheetListItem.d.ts +9 -9
- package/{lib → dist/packages/react/src}/components/SheetList/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/SheetOverlay/ColumnHeader.d.ts +3 -3
- package/{es → dist/packages/react/src}/components/SheetOverlay/ContentEditable.d.ts +11 -11
- package/{es → dist/packages/react/src}/components/SheetOverlay/FormulaHint/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/SheetOverlay/FormulaSearch/constant.d.ts +63 -63
- package/{es → dist/packages/react/src}/components/SheetOverlay/FormulaSearch/index.d.ts +4 -4
- package/{lib → dist/packages/react/src}/components/SheetOverlay/InputBox.d.ts +3 -3
- package/{es → dist/packages/react/src}/components/SheetOverlay/RowHeader.d.ts +3 -3
- package/{es → dist/packages/react/src}/components/SheetOverlay/ScrollBar/index.d.ts +7 -7
- package/{es → dist/packages/react/src}/components/SheetOverlay/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/SheetTab/SheetItem.d.ts +8 -8
- package/{lib → dist/packages/react/src}/components/SheetTab/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/SplitColumn/index.d.ts +3 -3
- package/{lib → dist/packages/react/src}/components/Toolbar/Button.d.ts +12 -12
- package/{es → dist/packages/react/src}/components/Toolbar/ColorPicker.d.ts +6 -6
- package/{es → dist/packages/react/src}/components/Toolbar/Combo.d.ts +12 -12
- package/{es → dist/packages/react/src}/components/Toolbar/CustomBorder.d.ts +7 -7
- package/{lib → dist/packages/react/src}/components/Toolbar/CustomButton.d.ts +11 -11
- package/{es → dist/packages/react/src}/components/Toolbar/CustomColor.d.ts +8 -8
- package/{lib → dist/packages/react/src}/components/Toolbar/CustomIcon.d.ts +9 -9
- package/{es → dist/packages/react/src}/components/Toolbar/Divider.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/Toolbar/MoreItemsContainer.d.ts +6 -6
- package/{lib → dist/packages/react/src}/components/Toolbar/Select.d.ts +14 -14
- package/dist/packages/react/src/components/Toolbar/index.d.ts +10 -0
- package/{es → dist/packages/react/src}/components/Workbook/api.d.ts +1177 -1183
- package/{lib → dist/packages/react/src}/components/Workbook/index.d.ts +1185 -1191
- package/{es → dist/packages/react/src}/components/ZoomControl/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/components/index.d.ts +4 -4
- package/{es → dist/packages/react/src}/constants.d.ts +1 -1
- package/{es → dist/packages/react/src}/context/index.d.ts +25 -25
- package/{es → dist/packages/react/src}/context/modal.d.ts +10 -10
- package/{es → dist/packages/react/src}/hooks/useAlert.d.ts +4 -4
- package/{es → dist/packages/react/src}/hooks/useDialog.d.ts +5 -5
- package/{es → dist/packages/react/src}/hooks/useOutsideClick.d.ts +2 -2
- package/{es → dist/packages/react/src}/hooks/usePrevious.d.ts +2 -2
- package/{es → dist/packages/react/src}/index.d.ts +1 -1
- package/{es → dist/packages/react/src}/utils/datepickerStyles.d.ts +2 -2
- package/{es/components/Workbook/index.d.ts → dist/stories/API.stories.d.ts} +1210 -1191
- package/dist/stories/Collabration.stories.d.ts +2359 -0
- package/dist/stories/Features.stories.d.ts +9430 -0
- package/dist/stories/data/cell.d.ts +983 -0
- package/dist/stories/data/dataVerification.d.ts +131 -0
- package/dist/stories/data/empty.d.ts +10 -0
- package/dist/stories/data/formula.d.ts +362 -0
- package/dist/stories/data/freeze.d.ts +34 -0
- package/dist/stories/data/protected.d.ts +40 -0
- package/dist/stories/utils.d.ts +1 -0
- package/package.json +6 -7
- package/es/components/ChangeColor/index.css +0 -76
- package/es/components/ChangeColor/index.js +0 -41
- package/es/components/ConditionFormat/ConditionRules.d.ts +0 -6
- package/es/components/ConditionFormat/ConditionRules.js +0 -323
- package/es/components/ConditionFormat/index.css +0 -210
- package/es/components/ConditionFormat/index.js +0 -252
- package/es/components/ContextMenu/Divider.js +0 -7
- package/es/components/ContextMenu/FilterMenu.d.ts +0 -3
- package/es/components/ContextMenu/FilterMenu.js +0 -612
- package/es/components/ContextMenu/Menu.js +0 -25
- package/es/components/ContextMenu/SheetTab.d.ts +0 -4
- package/es/components/ContextMenu/SheetTab.js +0 -223
- package/es/components/ContextMenu/index.css +0 -322
- package/es/components/ContextMenu/index.js +0 -1054
- package/es/components/CustomSort/index.css +0 -23
- package/es/components/CustomSort/index.d.ts +0 -4
- package/es/components/CustomSort/index.js +0 -113
- package/es/components/DataVerification/DropdownList.js +0 -126
- package/es/components/DataVerification/RangeDialog.d.ts +0 -4
- package/es/components/DataVerification/RangeDialog.js +0 -105
- package/es/components/DataVerification/getDisplayedRangeTxt.js +0 -9
- package/es/components/DataVerification/index.css +0 -202
- package/es/components/DataVerification/index.d.ts +0 -4
- package/es/components/DataVerification/index.js +0 -398
- package/es/components/Dialog/index.css +0 -64
- package/es/components/Dialog/index.d.ts +0 -15
- package/es/components/Dialog/index.js +0 -72
- package/es/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +0 -11
- package/es/components/DuneChartsInputModal/DuneChartsInputModal.js +0 -95
- package/es/components/DuneChartsInputModal/duneChartsInputModal.css +0 -98
- package/es/components/DunePreview/DunePreview.d.ts +0 -13
- package/es/components/DunePreview/DunePreview.js +0 -46
- package/es/components/DunePreview/index.css +0 -57
- package/es/components/FilterOption/index.js +0 -121
- package/es/components/FormatSearch/index.css +0 -19
- package/es/components/FormatSearch/index.js +0 -129
- package/es/components/FormulaSearch/index.css +0 -65
- package/es/components/FormulaSearch/index.d.ts +0 -5
- package/es/components/FormulaSearch/index.js +0 -198
- package/es/components/FxEditor/NameBox.d.ts +0 -3
- package/es/components/FxEditor/NameBox.js +0 -29
- package/es/components/FxEditor/index.css +0 -72
- package/es/components/FxEditor/index.js +0 -167
- package/es/components/IFrameBoxs/iFrameBoxs.css +0 -16
- package/es/components/IFrameBoxs/iFrameBoxs.js +0 -142
- package/es/components/ImgBoxs/index.d.ts +0 -3
- package/es/components/ImgBoxs/index.js +0 -219
- package/es/components/LinkEidtCard/index.css +0 -255
- package/es/components/LinkEidtCard/index.js +0 -238
- package/es/components/LocationCondition/index.css +0 -74
- package/es/components/LocationCondition/index.d.ts +0 -3
- package/es/components/LocationCondition/index.js +0 -195
- package/es/components/MessageBox/index.d.ts +0 -9
- package/es/components/MessageBox/index.js +0 -16
- package/es/components/NotationBoxes/index.js +0 -105
- package/es/components/ResetColumnWidth/index.d.ts +0 -2
- package/es/components/ResetColumnWidth/index.js +0 -130
- package/es/components/SVGDefines.js +0 -1902
- package/es/components/SVGIcon.js +0 -18
- package/es/components/SearchReplace/index.css +0 -191
- package/es/components/SearchReplace/index.d.ts +0 -6
- package/es/components/SearchReplace/index.js +0 -294
- package/es/components/Sheet/index.css +0 -27
- package/es/components/Sheet/index.js +0 -175
- package/es/components/SheetList/SheetHiddenButton.js +0 -35
- package/es/components/SheetList/SheetListItem.d.ts +0 -9
- package/es/components/SheetList/SheetListItem.js +0 -72
- package/es/components/SheetList/index.css +0 -48
- package/es/components/SheetList/index.d.ts +0 -4
- package/es/components/SheetList/index.js +0 -30
- package/es/components/SheetOverlay/ColumnHeader.js +0 -217
- package/es/components/SheetOverlay/ContentEditable.js +0 -74
- package/es/components/SheetOverlay/FormulaHint/index.css +0 -180
- package/es/components/SheetOverlay/FormulaHint/index.js +0 -348
- package/es/components/SheetOverlay/FormulaSearch/constant.js +0 -328
- package/es/components/SheetOverlay/FormulaSearch/index.css +0 -44
- package/es/components/SheetOverlay/FormulaSearch/index.js +0 -261
- package/es/components/SheetOverlay/InputBox.d.ts +0 -3
- package/es/components/SheetOverlay/InputBox.js +0 -394
- package/es/components/SheetOverlay/RowHeader.js +0 -187
- package/es/components/SheetOverlay/ScrollBar/index.css +0 -40
- package/es/components/SheetOverlay/ScrollBar/index.js +0 -47
- package/es/components/SheetOverlay/index.css +0 -954
- package/es/components/SheetOverlay/index.js +0 -578
- package/es/components/SheetTab/SheetItem.js +0 -230
- package/es/components/SheetTab/index.css +0 -280
- package/es/components/SheetTab/index.d.ts +0 -4
- package/es/components/SheetTab/index.js +0 -143
- package/es/components/SplitColumn/index.css +0 -121
- package/es/components/SplitColumn/index.js +0 -167
- package/es/components/Toolbar/Button.d.ts +0 -12
- package/es/components/Toolbar/Button.js +0 -32
- package/es/components/Toolbar/ColorPicker.js +0 -27
- package/es/components/Toolbar/Combo.js +0 -102
- package/es/components/Toolbar/CustomBorder.js +0 -211
- package/es/components/Toolbar/CustomButton.d.ts +0 -11
- package/es/components/Toolbar/CustomButton.js +0 -29
- package/es/components/Toolbar/CustomColor.js +0 -25
- package/es/components/Toolbar/CustomIcon.d.ts +0 -9
- package/es/components/Toolbar/CustomIcon.js +0 -38
- package/es/components/Toolbar/Divider.js +0 -12
- package/es/components/Toolbar/MoreItemsContainer.js +0 -17
- package/es/components/Toolbar/Select.d.ts +0 -14
- package/es/components/Toolbar/Select.js +0 -34
- package/es/components/Toolbar/index.css +0 -405
- package/es/components/Toolbar/index.d.ts +0 -10
- package/es/components/Toolbar/index.js +0 -1338
- package/es/components/Workbook/api.js +0 -398
- package/es/components/Workbook/index.css +0 -44
- package/es/components/Workbook/index.js +0 -588
- package/es/components/ZoomControl/index.css +0 -54
- package/es/components/ZoomControl/index.js +0 -111
- package/es/components/index.js +0 -3
- package/es/constants.js +0 -4
- package/es/context/index.js +0 -34
- package/es/context/modal.js +0 -43
- package/es/hooks/useAlert.js +0 -28
- package/es/hooks/useDialog.js +0 -28
- package/es/hooks/useOutsideClick.js +0 -15
- package/es/hooks/usePrevious.js +0 -9
- package/es/index.css +0 -27
- package/es/index.js +0 -1
- package/es/utils/datepickerStyles.js +0 -8
- package/lib/components/ChangeColor/index.css +0 -76
- package/lib/components/ChangeColor/index.d.ts +0 -7
- package/lib/components/ChangeColor/index.js +0 -50
- package/lib/components/ConditionFormat/ConditionRules.js +0 -332
- package/lib/components/ConditionFormat/index.css +0 -210
- package/lib/components/ConditionFormat/index.d.ts +0 -7
- package/lib/components/ConditionFormat/index.js +0 -261
- package/lib/components/ContextMenu/Divider.d.ts +0 -3
- package/lib/components/ContextMenu/Divider.js +0 -14
- package/lib/components/ContextMenu/FilterMenu.js +0 -621
- package/lib/components/ContextMenu/Menu.d.ts +0 -8
- package/lib/components/ContextMenu/Menu.js +0 -33
- package/lib/components/ContextMenu/SheetTab.js +0 -232
- package/lib/components/ContextMenu/index.css +0 -322
- package/lib/components/ContextMenu/index.d.ts +0 -5
- package/lib/components/ContextMenu/index.js +0 -1063
- package/lib/components/CustomSort/index.css +0 -23
- package/lib/components/CustomSort/index.js +0 -122
- package/lib/components/DataVerification/DropdownList.d.ts +0 -4
- package/lib/components/DataVerification/DropdownList.js +0 -135
- package/lib/components/DataVerification/RangeDialog.js +0 -114
- package/lib/components/DataVerification/getDisplayedRangeTxt.d.ts +0 -2
- package/lib/components/DataVerification/getDisplayedRangeTxt.js +0 -15
- package/lib/components/DataVerification/index.css +0 -202
- package/lib/components/DataVerification/index.js +0 -407
- package/lib/components/Dialog/index.css +0 -64
- package/lib/components/Dialog/index.js +0 -81
- package/lib/components/DuneChartsInputModal/DuneChartsInputModal.js +0 -104
- package/lib/components/DuneChartsInputModal/duneChartsInputModal.css +0 -98
- package/lib/components/DunePreview/DunePreview.js +0 -53
- package/lib/components/DunePreview/index.css +0 -57
- package/lib/components/FilterOption/index.d.ts +0 -5
- package/lib/components/FilterOption/index.js +0 -130
- package/lib/components/FormatSearch/index.css +0 -19
- package/lib/components/FormatSearch/index.d.ts +0 -6
- package/lib/components/FormatSearch/index.js +0 -138
- package/lib/components/FormulaSearch/index.css +0 -65
- package/lib/components/FormulaSearch/index.js +0 -207
- package/lib/components/FxEditor/NameBox.js +0 -38
- package/lib/components/FxEditor/index.css +0 -72
- package/lib/components/FxEditor/index.d.ts +0 -4
- package/lib/components/FxEditor/index.js +0 -176
- package/lib/components/IFrameBoxs/iFrameBoxs.css +0 -16
- package/lib/components/IFrameBoxs/iFrameBoxs.d.ts +0 -4
- package/lib/components/IFrameBoxs/iFrameBoxs.js +0 -151
- package/lib/components/ImgBoxs/index.js +0 -228
- package/lib/components/LinkEidtCard/index.css +0 -255
- package/lib/components/LinkEidtCard/index.d.ts +0 -5
- package/lib/components/LinkEidtCard/index.js +0 -247
- package/lib/components/LocationCondition/index.css +0 -74
- package/lib/components/LocationCondition/index.js +0 -204
- package/lib/components/MessageBox/index.js +0 -23
- package/lib/components/NotationBoxes/index.d.ts +0 -3
- package/lib/components/NotationBoxes/index.js +0 -114
- package/lib/components/ResetColumnWidth/index.js +0 -138
- package/lib/components/SVGDefines.d.ts +0 -5
- package/lib/components/SVGDefines.js +0 -1909
- package/lib/components/SVGIcon.d.ts +0 -9
- package/lib/components/SVGIcon.js +0 -25
- package/lib/components/SearchReplace/index.css +0 -191
- package/lib/components/SearchReplace/index.js +0 -303
- package/lib/components/Sheet/index.css +0 -27
- package/lib/components/Sheet/index.d.ts +0 -8
- package/lib/components/Sheet/index.js +0 -184
- package/lib/components/SheetList/SheetHiddenButton.d.ts +0 -8
- package/lib/components/SheetList/SheetHiddenButton.js +0 -44
- package/lib/components/SheetList/SheetListItem.js +0 -81
- package/lib/components/SheetList/index.css +0 -48
- package/lib/components/SheetList/index.js +0 -39
- package/lib/components/SheetOverlay/ColumnHeader.d.ts +0 -3
- package/lib/components/SheetOverlay/ColumnHeader.js +0 -226
- package/lib/components/SheetOverlay/ContentEditable.d.ts +0 -11
- package/lib/components/SheetOverlay/ContentEditable.js +0 -83
- package/lib/components/SheetOverlay/FormulaHint/index.css +0 -180
- package/lib/components/SheetOverlay/FormulaHint/index.d.ts +0 -4
- package/lib/components/SheetOverlay/FormulaHint/index.js +0 -357
- package/lib/components/SheetOverlay/FormulaSearch/constant.d.ts +0 -63
- package/lib/components/SheetOverlay/FormulaSearch/constant.js +0 -334
- package/lib/components/SheetOverlay/FormulaSearch/index.css +0 -44
- package/lib/components/SheetOverlay/FormulaSearch/index.d.ts +0 -4
- package/lib/components/SheetOverlay/FormulaSearch/index.js +0 -270
- package/lib/components/SheetOverlay/InputBox.js +0 -403
- package/lib/components/SheetOverlay/RowHeader.d.ts +0 -3
- package/lib/components/SheetOverlay/RowHeader.js +0 -196
- package/lib/components/SheetOverlay/ScrollBar/index.css +0 -40
- package/lib/components/SheetOverlay/ScrollBar/index.d.ts +0 -7
- package/lib/components/SheetOverlay/ScrollBar/index.js +0 -56
- package/lib/components/SheetOverlay/index.css +0 -954
- package/lib/components/SheetOverlay/index.d.ts +0 -4
- package/lib/components/SheetOverlay/index.js +0 -587
- package/lib/components/SheetTab/SheetItem.d.ts +0 -8
- package/lib/components/SheetTab/SheetItem.js +0 -239
- package/lib/components/SheetTab/index.css +0 -280
- package/lib/components/SheetTab/index.js +0 -152
- package/lib/components/SplitColumn/index.css +0 -121
- package/lib/components/SplitColumn/index.d.ts +0 -3
- package/lib/components/SplitColumn/index.js +0 -176
- package/lib/components/Toolbar/Button.js +0 -39
- package/lib/components/Toolbar/ColorPicker.d.ts +0 -6
- package/lib/components/Toolbar/ColorPicker.js +0 -34
- package/lib/components/Toolbar/Combo.d.ts +0 -12
- package/lib/components/Toolbar/Combo.js +0 -111
- package/lib/components/Toolbar/CustomBorder.d.ts +0 -7
- package/lib/components/Toolbar/CustomBorder.js +0 -220
- package/lib/components/Toolbar/CustomButton.js +0 -36
- package/lib/components/Toolbar/CustomColor.d.ts +0 -8
- package/lib/components/Toolbar/CustomColor.js +0 -32
- package/lib/components/Toolbar/CustomIcon.js +0 -46
- package/lib/components/Toolbar/Divider.d.ts +0 -4
- package/lib/components/Toolbar/Divider.js +0 -19
- package/lib/components/Toolbar/MoreItemsContainer.d.ts +0 -6
- package/lib/components/Toolbar/MoreItemsContainer.js +0 -25
- package/lib/components/Toolbar/Select.js +0 -40
- package/lib/components/Toolbar/index.css +0 -405
- package/lib/components/Toolbar/index.d.ts +0 -10
- package/lib/components/Toolbar/index.js +0 -1347
- package/lib/components/Workbook/api.d.ts +0 -1183
- package/lib/components/Workbook/api.js +0 -405
- package/lib/components/Workbook/index.css +0 -44
- package/lib/components/Workbook/index.js +0 -597
- package/lib/components/ZoomControl/index.css +0 -54
- package/lib/components/ZoomControl/index.d.ts +0 -4
- package/lib/components/ZoomControl/index.js +0 -120
- package/lib/components/index.d.ts +0 -4
- package/lib/components/index.js +0 -28
- package/lib/constants.d.ts +0 -1
- package/lib/constants.js +0 -10
- package/lib/context/index.d.ts +0 -25
- package/lib/context/index.js +0 -41
- package/lib/context/modal.d.ts +0 -10
- package/lib/context/modal.js +0 -50
- package/lib/hooks/useAlert.d.ts +0 -4
- package/lib/hooks/useAlert.js +0 -37
- package/lib/hooks/useDialog.d.ts +0 -5
- package/lib/hooks/useDialog.js +0 -37
- package/lib/hooks/useOutsideClick.d.ts +0 -2
- package/lib/hooks/useOutsideClick.js +0 -21
- package/lib/hooks/usePrevious.d.ts +0 -2
- package/lib/hooks/usePrevious.js +0 -15
- package/lib/index.css +0 -27
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -16
- package/lib/utils/datepickerStyles.d.ts +0 -2
- package/lib/utils/datepickerStyles.js +0 -14
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _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); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _fortuneCore = require("@fileverse-dev/fortune-core");
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
11
|
-
var _context = _interopRequireDefault(require("../../context"));
|
|
12
|
-
var _ContentEditable = _interopRequireDefault(require("./ContentEditable"));
|
|
13
|
-
var _FormulaSearch = _interopRequireDefault(require("./FormulaSearch"));
|
|
14
|
-
var _FormulaHint = _interopRequireDefault(require("./FormulaHint"));
|
|
15
|
-
var _usePrevious = _interopRequireDefault(require("../../hooks/usePrevious"));
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
19
|
-
__assign = Object.assign || function (t) {
|
|
20
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21
|
-
s = arguments[i];
|
|
22
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var InputBox = function InputBox() {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f;
|
|
30
|
-
var _g = (0, _react.useContext)(_context.default),
|
|
31
|
-
context = _g.context,
|
|
32
|
-
setContext = _g.setContext,
|
|
33
|
-
refs = _g.refs;
|
|
34
|
-
var inputRef = (0, _react.useRef)(null);
|
|
35
|
-
var lastKeyDownEventRef = (0, _react.useRef)(null);
|
|
36
|
-
var prevCellUpdate = (0, _usePrevious.default)(context.luckysheetCellUpdate);
|
|
37
|
-
var prevSheetId = (0, _usePrevious.default)(context.currentSheetId);
|
|
38
|
-
var _h = (0, _react.useState)(false),
|
|
39
|
-
isHidenRC = _h[0],
|
|
40
|
-
setIsHidenRC = _h[1];
|
|
41
|
-
var _j = (0, _react.useState)(false),
|
|
42
|
-
isInputBoxActive = _j[0],
|
|
43
|
-
setIsInputBoxActive = _j[1];
|
|
44
|
-
var _k = (0, _react.useState)({
|
|
45
|
-
left: 0,
|
|
46
|
-
top: 0
|
|
47
|
-
}),
|
|
48
|
-
frozenPosition = _k[0],
|
|
49
|
-
setFrozenPosition = _k[1];
|
|
50
|
-
var firstSelection = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0];
|
|
51
|
-
var row_index = firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.row_focus;
|
|
52
|
-
var col_index = firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.column_focus;
|
|
53
|
-
var preText = (0, _react.useRef)("");
|
|
54
|
-
var inputBoxStyle = (0, _react.useMemo)(function () {
|
|
55
|
-
if (firstSelection && context.luckysheetCellUpdate.length > 0) {
|
|
56
|
-
var flowdata = (0, _fortuneCore.getFlowdata)(context);
|
|
57
|
-
if (!flowdata) return {};
|
|
58
|
-
return (0, _fortuneCore.getStyleByCell)(context, flowdata, firstSelection.row_focus, firstSelection.column_focus);
|
|
59
|
-
}
|
|
60
|
-
return {};
|
|
61
|
-
}, [context.luckysheetfile, context.currentSheetId, context.luckysheetCellUpdate, firstSelection]);
|
|
62
|
-
(0, _react.useLayoutEffect)(function () {
|
|
63
|
-
var _a;
|
|
64
|
-
if (!context.allowEdit) {
|
|
65
|
-
setContext(function (ctx) {
|
|
66
|
-
var flowdata = (0, _fortuneCore.getFlowdata)(ctx);
|
|
67
|
-
if (!_lodash.default.isNil(flowdata) && ctx.forceFormulaRef) {
|
|
68
|
-
var value = (0, _fortuneCore.getCellValue)(row_index, col_index, flowdata, "f");
|
|
69
|
-
(0, _fortuneCore.createRangeHightlight)(ctx, value);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
if (firstSelection && context.luckysheetCellUpdate.length > 0) {
|
|
74
|
-
if (refs.globalCache.doNotUpdateCell) {
|
|
75
|
-
delete refs.globalCache.doNotUpdateCell;
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (_lodash.default.isEqual(prevCellUpdate, context.luckysheetCellUpdate) && prevSheetId === context.currentSheetId) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
var flowdata = (0, _fortuneCore.getFlowdata)(context);
|
|
82
|
-
var cell = (_a = flowdata === null || flowdata === void 0 ? void 0 : flowdata[row_index]) === null || _a === void 0 ? void 0 : _a[col_index];
|
|
83
|
-
var value_1 = "";
|
|
84
|
-
if (cell && !refs.globalCache.overwriteCell) {
|
|
85
|
-
if ((0, _fortuneCore.isInlineStringCell)(cell)) {
|
|
86
|
-
value_1 = (0, _fortuneCore.getInlineStringHTML)(row_index, col_index, flowdata);
|
|
87
|
-
} else if (cell.f) {
|
|
88
|
-
value_1 = (0, _fortuneCore.getCellValue)(row_index, col_index, flowdata, "f");
|
|
89
|
-
setContext(function (ctx) {
|
|
90
|
-
(0, _fortuneCore.createRangeHightlight)(ctx, value_1);
|
|
91
|
-
});
|
|
92
|
-
} else {
|
|
93
|
-
value_1 = (0, _fortuneCore.valueShowEs)(row_index, col_index, flowdata);
|
|
94
|
-
if (Number(cell.qp) === 1) {
|
|
95
|
-
value_1 = value_1 ? "".concat(value_1) : value_1;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
refs.globalCache.overwriteCell = false;
|
|
100
|
-
if (!refs.globalCache.ignoreWriteCell) inputRef.current.innerHTML = (0, _fortuneCore.escapeHTMLTag)((0, _fortuneCore.escapeScriptTag)(value_1));
|
|
101
|
-
refs.globalCache.ignoreWriteCell = false;
|
|
102
|
-
if (!refs.globalCache.doNotFocus) {
|
|
103
|
-
setTimeout(function () {
|
|
104
|
-
(0, _fortuneCore.moveToEnd)(inputRef.current);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
delete refs.globalCache.doNotFocus;
|
|
108
|
-
}
|
|
109
|
-
}, [context.luckysheetCellUpdate, context.luckysheetfile, context.currentSheetId, firstSelection]);
|
|
110
|
-
(0, _react.useEffect)(function () {
|
|
111
|
-
if (_lodash.default.isEmpty(context.luckysheetCellUpdate)) {
|
|
112
|
-
if (inputRef.current) {
|
|
113
|
-
inputRef.current.innerHTML = "";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}, [context.luckysheetCellUpdate]);
|
|
117
|
-
(0, _react.useEffect)(function () {
|
|
118
|
-
setIsHidenRC((0, _fortuneCore.isShowHidenCR)(context));
|
|
119
|
-
}, [context.luckysheet_select_save]);
|
|
120
|
-
(0, _react.useEffect)(function () {
|
|
121
|
-
var _a;
|
|
122
|
-
if (!firstSelection || ((_a = context.rangeDialog) === null || _a === void 0 ? void 0 : _a.show) || _lodash.default.isEmpty(context.luckysheetCellUpdate)) {
|
|
123
|
-
setIsInputBoxActive(false);
|
|
124
|
-
}
|
|
125
|
-
}, [firstSelection, (_b = context.rangeDialog) === null || _b === void 0 ? void 0 : _b.show, context.luckysheetCellUpdate]);
|
|
126
|
-
var getActiveFormula = (0, _react.useCallback)(function () {
|
|
127
|
-
return document.querySelector(".luckysheet-formula-search-item-active");
|
|
128
|
-
}, []);
|
|
129
|
-
var insertSelectedFormula = (0, _react.useCallback)(function (formulaName) {
|
|
130
|
-
var _a;
|
|
131
|
-
var textEditor = document.getElementById("luckysheet-rich-text-editor");
|
|
132
|
-
if (!textEditor) return;
|
|
133
|
-
textEditor.focus();
|
|
134
|
-
var selection = window.getSelection();
|
|
135
|
-
var range = (selection === null || selection === void 0 ? void 0 : selection.rangeCount) ? selection.getRangeAt(0) : null;
|
|
136
|
-
if (!selection || !range || !textEditor.contains(range.startContainer)) {
|
|
137
|
-
range = document.createRange();
|
|
138
|
-
range.selectNodeContents(textEditor);
|
|
139
|
-
range.collapse(false);
|
|
140
|
-
selection = window.getSelection();
|
|
141
|
-
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
|
142
|
-
selection === null || selection === void 0 ? void 0 : selection.addRange(range);
|
|
143
|
-
}
|
|
144
|
-
var searchTxt = ((_a = (0, _fortuneCore.getrangeseleciton)()) === null || _a === void 0 ? void 0 : _a.textContent) || "";
|
|
145
|
-
var deleteCount = searchTxt === "=" ? 0 : searchTxt.length;
|
|
146
|
-
if (deleteCount > 0 && range.startContainer.nodeType === Node.TEXT_NODE && textEditor.contains(range.startContainer)) {
|
|
147
|
-
var startOffset = Math.max(range.startOffset - deleteCount, 0);
|
|
148
|
-
var endOffset = range.startOffset;
|
|
149
|
-
range.setStart(range.startContainer, startOffset);
|
|
150
|
-
range.setEnd(range.startContainer, endOffset);
|
|
151
|
-
range.deleteContents();
|
|
152
|
-
}
|
|
153
|
-
textEditor.querySelectorAll(".luckysheet-formula-text-func, .luckysheet-formula-text-lpar").forEach(function (el) {
|
|
154
|
-
return el.remove();
|
|
155
|
-
});
|
|
156
|
-
var funcNode = new DOMParser().parseFromString("<span dir=\"auto\" class=\"luckysheet-formula-text-func\">".concat(formulaName, "</span>"), "text/html").body.firstChild;
|
|
157
|
-
var parNode = new DOMParser().parseFromString("<span dir=\"auto\" class=\"luckysheet-formula-text-lpar\">(</span>", "text/html").body.firstChild;
|
|
158
|
-
if (range && parNode && funcNode) {
|
|
159
|
-
range.insertNode(funcNode);
|
|
160
|
-
range.collapse(false);
|
|
161
|
-
range.insertNode(parNode);
|
|
162
|
-
range.collapse(false);
|
|
163
|
-
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
|
164
|
-
selection === null || selection === void 0 ? void 0 : selection.addRange(range);
|
|
165
|
-
}
|
|
166
|
-
setContext(function (draftCtx) {
|
|
167
|
-
draftCtx.functionCandidates = [];
|
|
168
|
-
draftCtx.defaultCandidates = [];
|
|
169
|
-
draftCtx.functionHint = formulaName;
|
|
170
|
-
});
|
|
171
|
-
}, [setContext]);
|
|
172
|
-
var clearSearchItemActiveClass = (0, _react.useCallback)(function () {
|
|
173
|
-
var activeFormula = getActiveFormula();
|
|
174
|
-
if (activeFormula) {
|
|
175
|
-
activeFormula.classList.remove("luckysheet-formula-search-item-active");
|
|
176
|
-
}
|
|
177
|
-
}, [getActiveFormula]);
|
|
178
|
-
var selectActiveFormula = (0, _react.useCallback)(function (e) {
|
|
179
|
-
var _a, _b;
|
|
180
|
-
var formulaName = (_b = (_a = getActiveFormula()) === null || _a === void 0 ? void 0 : _a.querySelector(".luckysheet-formula-search-func")) === null || _b === void 0 ? void 0 : _b.textContent;
|
|
181
|
-
if (formulaName) {
|
|
182
|
-
insertSelectedFormula(formulaName);
|
|
183
|
-
e.preventDefault();
|
|
184
|
-
e.stopPropagation();
|
|
185
|
-
}
|
|
186
|
-
}, [getActiveFormula, insertSelectedFormula]);
|
|
187
|
-
var selectActiveFormulaOnClick = (0, _react.useCallback)(function (e) {
|
|
188
|
-
var _a, _b;
|
|
189
|
-
if (e.target.className.includes("sign-fortune")) return;
|
|
190
|
-
preText.current = inputRef.current.innerText;
|
|
191
|
-
var formulaName = (_b = (_a = getActiveFormula()) === null || _a === void 0 ? void 0 : _a.querySelector(".luckysheet-formula-search-func")) === null || _b === void 0 ? void 0 : _b.textContent;
|
|
192
|
-
if (formulaName) {
|
|
193
|
-
insertSelectedFormula(formulaName);
|
|
194
|
-
e.preventDefault();
|
|
195
|
-
e.stopPropagation();
|
|
196
|
-
}
|
|
197
|
-
}, [getActiveFormula, insertSelectedFormula]);
|
|
198
|
-
var onKeyDown = (0, _react.useCallback)(function (e) {
|
|
199
|
-
lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
|
|
200
|
-
preText.current = inputRef.current.innerText;
|
|
201
|
-
if (e.key === "Escape" && context.luckysheetCellUpdate.length > 0) {
|
|
202
|
-
setContext(function (draftCtx) {
|
|
203
|
-
(0, _fortuneCore.cancelNormalSelected)(draftCtx);
|
|
204
|
-
(0, _fortuneCore.moveHighlightCell)(draftCtx, "down", 0, "rangeOfSelect");
|
|
205
|
-
});
|
|
206
|
-
e.preventDefault();
|
|
207
|
-
} else if (e.key === "Enter" && context.luckysheetCellUpdate.length > 0) {
|
|
208
|
-
if (e.altKey || e.metaKey) {
|
|
209
|
-
document.execCommand("insertHTML", false, "\n ");
|
|
210
|
-
document.execCommand("delete", false);
|
|
211
|
-
e.stopPropagation();
|
|
212
|
-
} else selectActiveFormula(e);
|
|
213
|
-
} else if (e.key === "Tab" && context.luckysheetCellUpdate.length > 0) {
|
|
214
|
-
selectActiveFormula(e);
|
|
215
|
-
e.preventDefault();
|
|
216
|
-
} else if (e.key === "F4" && context.luckysheetCellUpdate.length > 0) {
|
|
217
|
-
e.preventDefault();
|
|
218
|
-
} else if (e.key === "ArrowUp" && context.luckysheetCellUpdate.length > 0) {
|
|
219
|
-
if (document.getElementById("luckysheet-formula-search-c")) {
|
|
220
|
-
var formulaSearchContainer = document.getElementById("luckysheet-formula-search-c");
|
|
221
|
-
var activeItem = formulaSearchContainer === null || formulaSearchContainer === void 0 ? void 0 : formulaSearchContainer.querySelector(".luckysheet-formula-search-item-active");
|
|
222
|
-
var previousItem = activeItem ? activeItem.previousElementSibling : null;
|
|
223
|
-
while (previousItem && !previousItem.classList.contains("luckysheet-formula-search-item")) {
|
|
224
|
-
previousItem = previousItem.previousElementSibling;
|
|
225
|
-
}
|
|
226
|
-
if (!previousItem) {
|
|
227
|
-
var items = formulaSearchContainer === null || formulaSearchContainer === void 0 ? void 0 : formulaSearchContainer.querySelectorAll(".luckysheet-formula-search-item");
|
|
228
|
-
var lastItem = items === null || items === void 0 ? void 0 : items[items.length - 1];
|
|
229
|
-
previousItem = lastItem || null;
|
|
230
|
-
}
|
|
231
|
-
clearSearchItemActiveClass();
|
|
232
|
-
if (previousItem) {
|
|
233
|
-
previousItem.classList.add("luckysheet-formula-search-item-active");
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
e.preventDefault();
|
|
237
|
-
} else if (e.key === "ArrowDown" && context.luckysheetCellUpdate.length > 0) {
|
|
238
|
-
if (document.getElementById("luckysheet-formula-search-c")) {
|
|
239
|
-
var formulaSearchContainer = document.getElementById("luckysheet-formula-search-c");
|
|
240
|
-
var activeItem = formulaSearchContainer === null || formulaSearchContainer === void 0 ? void 0 : formulaSearchContainer.querySelector(".luckysheet-formula-search-item-active");
|
|
241
|
-
var nextItem = activeItem ? activeItem.nextElementSibling : null;
|
|
242
|
-
while (nextItem && !nextItem.classList.contains("luckysheet-formula-search-item")) {
|
|
243
|
-
nextItem = nextItem.nextElementSibling;
|
|
244
|
-
}
|
|
245
|
-
if (!nextItem) {
|
|
246
|
-
nextItem = (formulaSearchContainer === null || formulaSearchContainer === void 0 ? void 0 : formulaSearchContainer.querySelector(".luckysheet-formula-search-item")) || null;
|
|
247
|
-
}
|
|
248
|
-
clearSearchItemActiveClass();
|
|
249
|
-
if (nextItem) {
|
|
250
|
-
nextItem.classList.add("luckysheet-formula-search-item-active");
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
e.preventDefault();
|
|
254
|
-
}
|
|
255
|
-
}, [clearSearchItemActiveClass, context.luckysheetCellUpdate.length, selectActiveFormula, setContext, firstSelection]);
|
|
256
|
-
var onChange = (0, _react.useCallback)(function (__, isBlur) {
|
|
257
|
-
var e = lastKeyDownEventRef.current;
|
|
258
|
-
if (!e) return;
|
|
259
|
-
var kcode = e.keyCode;
|
|
260
|
-
if (!kcode) return;
|
|
261
|
-
if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
|
|
262
|
-
setContext(function (draftCtx) {
|
|
263
|
-
if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || (0, _fortuneCore.israngeseleciton)(draftCtx)) && isBlur) return;
|
|
264
|
-
if (!(0, _fortuneCore.isAllowEdit)(draftCtx, draftCtx.luckysheet_select_save)) {
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
(0, _fortuneCore.handleFormulaInput)(draftCtx, refs.fxInput.current, refs.cellInput.current, kcode, preText.current);
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
}, [refs.cellInput, refs.fxInput, setContext]);
|
|
271
|
-
var onPaste = (0, _react.useCallback)(function (e) {
|
|
272
|
-
if (_lodash.default.isEmpty(context.luckysheetCellUpdate)) {
|
|
273
|
-
e.preventDefault();
|
|
274
|
-
}
|
|
275
|
-
}, [context.luckysheetCellUpdate]);
|
|
276
|
-
var cfg = context.config || {};
|
|
277
|
-
var rowReadOnly = cfg.rowReadOnly || {};
|
|
278
|
-
var colReadOnly = cfg.colReadOnly || {};
|
|
279
|
-
var edit = !((colReadOnly[col_index] || rowReadOnly[row_index]) && context.allowEdit === true);
|
|
280
|
-
var getInputBoxPosition = (0, _react.useCallback)(function () {
|
|
281
|
-
var _a;
|
|
282
|
-
if (!firstSelection || ((_a = context.rangeDialog) === null || _a === void 0 ? void 0 : _a.show)) {
|
|
283
|
-
return {
|
|
284
|
-
left: -10000,
|
|
285
|
-
top: -10000,
|
|
286
|
-
display: "block"
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
var canvasContainer = refs.cellArea.current;
|
|
290
|
-
if (!canvasContainer) {
|
|
291
|
-
return {
|
|
292
|
-
left: firstSelection.left || 0,
|
|
293
|
-
top: firstSelection.top || 0,
|
|
294
|
-
display: "block"
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
if (isInputBoxActive) {
|
|
298
|
-
return {
|
|
299
|
-
left: frozenPosition.left,
|
|
300
|
-
top: frozenPosition.top,
|
|
301
|
-
zIndex: _lodash.default.isEmpty(context.luckysheetCellUpdate) ? -1 : 19,
|
|
302
|
-
display: "block"
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
var containerRect = canvasContainer.getBoundingClientRect();
|
|
306
|
-
var initialLeft = containerRect.left + (firstSelection.left || 0) - context.scrollLeft;
|
|
307
|
-
var initialTop = containerRect.top + (firstSelection.top || 0) - context.scrollTop;
|
|
308
|
-
return {
|
|
309
|
-
left: initialLeft,
|
|
310
|
-
top: initialTop,
|
|
311
|
-
zIndex: _lodash.default.isEmpty(context.luckysheetCellUpdate) ? -1 : 19,
|
|
312
|
-
display: "block"
|
|
313
|
-
};
|
|
314
|
-
}, [firstSelection, (_c = context.rangeDialog) === null || _c === void 0 ? void 0 : _c.show, context.luckysheetCellUpdate, refs.cellArea, isInputBoxActive, frozenPosition, context.scrollLeft, context.scrollTop]);
|
|
315
|
-
(0, _react.useEffect)(function () {
|
|
316
|
-
var _a;
|
|
317
|
-
if (firstSelection && !((_a = context.rangeDialog) === null || _a === void 0 ? void 0 : _a.show) && !isInputBoxActive && !_lodash.default.isEmpty(context.luckysheetCellUpdate)) {
|
|
318
|
-
var canvasContainer = refs.cellArea.current;
|
|
319
|
-
if (canvasContainer) {
|
|
320
|
-
var containerRect = canvasContainer.getBoundingClientRect();
|
|
321
|
-
var initialLeft = containerRect.left + (firstSelection.left || 0) - context.scrollLeft;
|
|
322
|
-
var initialTop = containerRect.top + (firstSelection.top || 0) - context.scrollTop;
|
|
323
|
-
setFrozenPosition({
|
|
324
|
-
left: initialLeft,
|
|
325
|
-
top: initialTop
|
|
326
|
-
});
|
|
327
|
-
setIsInputBoxActive(true);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}, [firstSelection, (_d = context.rangeDialog) === null || _d === void 0 ? void 0 : _d.show, context.luckysheetCellUpdate, isInputBoxActive, context.scrollLeft, context.scrollTop, refs.cellArea]);
|
|
331
|
-
var getAddressIndicatorPosition = (0, _react.useCallback)(function () {
|
|
332
|
-
var _a;
|
|
333
|
-
if (!firstSelection || ((_a = context.rangeDialog) === null || _a === void 0 ? void 0 : _a.show)) {
|
|
334
|
-
return {
|
|
335
|
-
display: "none"
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
return {
|
|
339
|
-
top: "-18px",
|
|
340
|
-
left: "0",
|
|
341
|
-
display: "block"
|
|
342
|
-
};
|
|
343
|
-
}, [firstSelection, (_e = context.rangeDialog) === null || _e === void 0 ? void 0 : _e.show]);
|
|
344
|
-
var getCellAddress = (0, _react.useCallback)(function () {
|
|
345
|
-
if (!firstSelection) return "";
|
|
346
|
-
var rowIndex = firstSelection.row_focus || 0;
|
|
347
|
-
var colIndex = firstSelection.column_focus || 0;
|
|
348
|
-
var columnChar = (0, _fortuneCore.indexToColumnChar)(colIndex);
|
|
349
|
-
var rowNumber = rowIndex + 1;
|
|
350
|
-
return "".concat(columnChar).concat(rowNumber);
|
|
351
|
-
}, [firstSelection]);
|
|
352
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
353
|
-
className: "luckysheet-input-box",
|
|
354
|
-
style: getInputBoxPosition(),
|
|
355
|
-
onMouseDown: function onMouseDown(e) {
|
|
356
|
-
return e.stopPropagation();
|
|
357
|
-
},
|
|
358
|
-
onMouseUp: function onMouseUp(e) {
|
|
359
|
-
return e.stopPropagation();
|
|
360
|
-
}
|
|
361
|
-
}, firstSelection && !((_f = context.rangeDialog) === null || _f === void 0 ? void 0 : _f.show) && (/*#__PURE__*/_react.default.createElement("div", {
|
|
362
|
-
className: "luckysheet-cell-address-indicator",
|
|
363
|
-
style: getAddressIndicatorPosition()
|
|
364
|
-
}, getCellAddress())), /*#__PURE__*/_react.default.createElement("div", {
|
|
365
|
-
className: "luckysheet-input-box-inner",
|
|
366
|
-
style: firstSelection ? __assign({
|
|
367
|
-
minWidth: firstSelection.width,
|
|
368
|
-
minHeight: firstSelection.height
|
|
369
|
-
}, inputBoxStyle) : {}
|
|
370
|
-
}, /*#__PURE__*/_react.default.createElement(_ContentEditable.default, {
|
|
371
|
-
innerRef: function innerRef(e) {
|
|
372
|
-
inputRef.current = e;
|
|
373
|
-
refs.cellInput.current = e;
|
|
374
|
-
},
|
|
375
|
-
className: "luckysheet-cell-input",
|
|
376
|
-
id: "luckysheet-rich-text-editor",
|
|
377
|
-
style: {
|
|
378
|
-
transform: "scale(".concat(context.zoomRatio, ")"),
|
|
379
|
-
transformOrigin: "left top",
|
|
380
|
-
width: "".concat(100 / context.zoomRatio, "%"),
|
|
381
|
-
height: "".concat(100 / context.zoomRatio, "%")
|
|
382
|
-
},
|
|
383
|
-
"aria-autocomplete": "list",
|
|
384
|
-
onChange: onChange,
|
|
385
|
-
onKeyDown: onKeyDown,
|
|
386
|
-
onPaste: onPaste,
|
|
387
|
-
allowEdit: edit ? !isHidenRC : edit
|
|
388
|
-
})), (context.functionCandidates.length > 0 || context.functionHint || context.defaultCandidates.length > 0) && (/*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_FormulaSearch.default, {
|
|
389
|
-
onMouseMove: function onMouseMove(e) {
|
|
390
|
-
if (document.getElementById("luckysheet-formula-search-c")) {
|
|
391
|
-
var hoveredItem = e.target.closest(".luckysheet-formula-search-item");
|
|
392
|
-
if (!hoveredItem) return;
|
|
393
|
-
clearSearchItemActiveClass();
|
|
394
|
-
hoveredItem.classList.add("luckysheet-formula-search-item-active");
|
|
395
|
-
}
|
|
396
|
-
e.preventDefault();
|
|
397
|
-
},
|
|
398
|
-
onMouseDown: function onMouseDown(e) {
|
|
399
|
-
selectActiveFormulaOnClick(e);
|
|
400
|
-
}
|
|
401
|
-
}), /*#__PURE__*/_react.default.createElement(_FormulaHint.default, null))));
|
|
402
|
-
};
|
|
403
|
-
var _default = exports.default = InputBox;
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _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); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _fortuneCore = require("@fileverse-dev/fortune-core");
|
|
9
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _context = _interopRequireDefault(require("../../context"));
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
var RowHeader = function RowHeader() {
|
|
15
|
-
var _a;
|
|
16
|
-
var _b = (0, _react.useContext)(_context.default),
|
|
17
|
-
context = _b.context,
|
|
18
|
-
setContext = _b.setContext,
|
|
19
|
-
settings = _b.settings,
|
|
20
|
-
refs = _b.refs;
|
|
21
|
-
var rowChangeSizeRef = (0, _react.useRef)(null);
|
|
22
|
-
var containerRef = (0, _react.useRef)(null);
|
|
23
|
-
var _c = (0, _react.useState)({
|
|
24
|
-
row: -1,
|
|
25
|
-
row_pre: -1,
|
|
26
|
-
row_index: -1
|
|
27
|
-
}),
|
|
28
|
-
hoverLocation = _c[0],
|
|
29
|
-
setHoverLocation = _c[1];
|
|
30
|
-
var _d = (0, _react.useState)(false),
|
|
31
|
-
hoverInFreeze = _d[0],
|
|
32
|
-
setHoverInFreeze = _d[1];
|
|
33
|
-
var _e = (0, _react.useState)([]),
|
|
34
|
-
selectedLocation = _e[0],
|
|
35
|
-
setSelectedLocation = _e[1];
|
|
36
|
-
var sheetIndex = (0, _fortuneCore.getSheetIndex)(context, context.currentSheetId);
|
|
37
|
-
var sheet = sheetIndex == null ? null : context.luckysheetfile[sheetIndex];
|
|
38
|
-
var freezeHandleTop = (0, _react.useMemo)(function () {
|
|
39
|
-
var _a, _b, _c, _d, _e, _f;
|
|
40
|
-
if (((_a = sheet === null || sheet === void 0 ? void 0 : sheet.frozen) === null || _a === void 0 ? void 0 : _a.type) === "row" || ((_b = sheet === null || sheet === void 0 ? void 0 : sheet.frozen) === null || _b === void 0 ? void 0 : _b.type) === "rangeRow" || ((_c = sheet === null || sheet === void 0 ? void 0 : sheet.frozen) === null || _c === void 0 ? void 0 : _c.type) === "rangeBoth" || ((_d = sheet === null || sheet === void 0 ? void 0 : sheet.frozen) === null || _d === void 0 ? void 0 : _d.type) === "both") {
|
|
41
|
-
return (0, _fortuneCore.rowLocationByIndex)(((_f = (_e = sheet === null || sheet === void 0 ? void 0 : sheet.frozen) === null || _e === void 0 ? void 0 : _e.range) === null || _f === void 0 ? void 0 : _f.row_focus) || 0, context.visibledatarow)[1] + context.scrollTop;
|
|
42
|
-
}
|
|
43
|
-
return context.scrollTop;
|
|
44
|
-
}, [context.visibledatarow, sheet === null || sheet === void 0 ? void 0 : sheet.frozen, context.scrollTop]);
|
|
45
|
-
var onMouseMove = (0, _react.useCallback)(function (e) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (context.luckysheet_rows_change_size) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
var mouseY = e.pageY - containerRef.current.getBoundingClientRect().top - window.scrollY;
|
|
51
|
-
var _y = mouseY + containerRef.current.scrollTop;
|
|
52
|
-
var freeze = (_a = refs.globalCache.freezen) === null || _a === void 0 ? void 0 : _a[context.currentSheetId];
|
|
53
|
-
var _b = (0, _fortuneCore.fixPositionOnFrozenCells)(freeze, 0, _y, 0, mouseY),
|
|
54
|
-
y = _b.y,
|
|
55
|
-
inHorizontalFreeze = _b.inHorizontalFreeze;
|
|
56
|
-
var row_location = (0, _fortuneCore.rowLocation)(y, context.visibledatarow);
|
|
57
|
-
var row_pre = row_location[0],
|
|
58
|
-
row = row_location[1],
|
|
59
|
-
row_index = row_location[2];
|
|
60
|
-
if (row_pre !== hoverLocation.row_pre || row !== hoverLocation.row) {
|
|
61
|
-
setHoverLocation({
|
|
62
|
-
row_pre: row_pre,
|
|
63
|
-
row: row,
|
|
64
|
-
row_index: row_index
|
|
65
|
-
});
|
|
66
|
-
setHoverInFreeze(inHorizontalFreeze);
|
|
67
|
-
}
|
|
68
|
-
}, [context.luckysheet_rows_change_size, context.visibledatarow, hoverLocation.row, hoverLocation.row_pre, refs.globalCache.freezen, context.currentSheetId]);
|
|
69
|
-
var onMouseDown = (0, _react.useCallback)(function (e) {
|
|
70
|
-
var nativeEvent = e.nativeEvent;
|
|
71
|
-
setContext(function (draftCtx) {
|
|
72
|
-
(0, _fortuneCore.handleRowHeaderMouseDown)(draftCtx, refs.globalCache, nativeEvent, containerRef.current, refs.cellInput.current, refs.fxInput.current);
|
|
73
|
-
});
|
|
74
|
-
}, [refs.globalCache, refs.cellInput, refs.fxInput, setContext]);
|
|
75
|
-
var onMouseLeave = (0, _react.useCallback)(function () {
|
|
76
|
-
if (context.luckysheet_rows_change_size) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
setHoverLocation({
|
|
80
|
-
row: -1,
|
|
81
|
-
row_pre: -1,
|
|
82
|
-
row_index: -1
|
|
83
|
-
});
|
|
84
|
-
}, [context.luckysheet_rows_change_size]);
|
|
85
|
-
var onRowSizeHandleMouseDown = (0, _react.useCallback)(function (e) {
|
|
86
|
-
var nativeEvent = e.nativeEvent;
|
|
87
|
-
setContext(function (draftCtx) {
|
|
88
|
-
(0, _fortuneCore.handleRowSizeHandleMouseDown)(draftCtx, refs.globalCache, nativeEvent, containerRef.current, refs.workbookContainer.current, refs.cellArea.current);
|
|
89
|
-
});
|
|
90
|
-
e.stopPropagation();
|
|
91
|
-
}, [refs.cellArea, refs.globalCache, refs.workbookContainer, setContext]);
|
|
92
|
-
var onRowFreezeHandleMouseDown = (0, _react.useCallback)(function (e) {
|
|
93
|
-
var nativeEvent = e.nativeEvent;
|
|
94
|
-
setContext(function (draftCtx) {
|
|
95
|
-
(0, _fortuneCore.handleRowFreezeHandleMouseDown)(draftCtx, refs.globalCache, nativeEvent, containerRef.current, refs.workbookContainer.current, refs.cellArea.current);
|
|
96
|
-
});
|
|
97
|
-
e.stopPropagation();
|
|
98
|
-
}, [refs.cellArea, refs.globalCache, refs.workbookContainer, setContext]);
|
|
99
|
-
var onContextMenu = (0, _react.useCallback)(function (e) {
|
|
100
|
-
var nativeEvent = e.nativeEvent;
|
|
101
|
-
setContext(function (draftCtx) {
|
|
102
|
-
(0, _fortuneCore.handleContextMenu)(draftCtx, settings, nativeEvent, refs.workbookContainer.current, refs.cellArea.current, "rowHeader");
|
|
103
|
-
});
|
|
104
|
-
}, [refs.workbookContainer, setContext, settings, refs.cellArea]);
|
|
105
|
-
(0, _react.useEffect)(function () {
|
|
106
|
-
var _a;
|
|
107
|
-
var s = context.luckysheet_select_save || [];
|
|
108
|
-
if (_lodash.default.isNil(s)) return;
|
|
109
|
-
setSelectedLocation([]);
|
|
110
|
-
if ((_a = s[0]) === null || _a === void 0 ? void 0 : _a.column_select) return;
|
|
111
|
-
var rowTitleMap = {};
|
|
112
|
-
for (var i = 0; i < s.length; i += 1) {
|
|
113
|
-
var r1 = s[i].row[0];
|
|
114
|
-
var r2 = s[i].row[1];
|
|
115
|
-
rowTitleMap = (0, _fortuneCore.selectTitlesMap)(rowTitleMap, r1, r2);
|
|
116
|
-
}
|
|
117
|
-
var rowTitleRange = (0, _fortuneCore.selectTitlesRange)(rowTitleMap);
|
|
118
|
-
var selects = [];
|
|
119
|
-
for (var i = 0; i < rowTitleRange.length; i += 1) {
|
|
120
|
-
var r1 = rowTitleRange[i][0];
|
|
121
|
-
var r2 = rowTitleRange[i][rowTitleRange[i].length - 1];
|
|
122
|
-
var row = (0, _fortuneCore.rowLocationByIndex)(r2, context.visibledatarow)[1];
|
|
123
|
-
var row_pre = (0, _fortuneCore.rowLocationByIndex)(r1, context.visibledatarow)[0];
|
|
124
|
-
if (_lodash.default.isNumber(row_pre) && _lodash.default.isNumber(row)) {
|
|
125
|
-
selects.push({
|
|
126
|
-
row: row,
|
|
127
|
-
row_pre: row_pre,
|
|
128
|
-
r1: r1,
|
|
129
|
-
r2: r2
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
setSelectedLocation(selects);
|
|
134
|
-
}, [context.luckysheet_select_save, context.visibledatarow]);
|
|
135
|
-
(0, _react.useEffect)(function () {
|
|
136
|
-
containerRef.current.scrollTop = context.scrollTop;
|
|
137
|
-
}, [context.scrollTop]);
|
|
138
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
139
|
-
ref: containerRef,
|
|
140
|
-
className: "fortune-row-header",
|
|
141
|
-
style: {
|
|
142
|
-
width: context.rowHeaderWidth - 1.5,
|
|
143
|
-
height: context.cellmainHeight
|
|
144
|
-
},
|
|
145
|
-
onMouseMove: onMouseMove,
|
|
146
|
-
onMouseDown: onMouseDown,
|
|
147
|
-
onMouseLeave: onMouseLeave,
|
|
148
|
-
onContextMenu: onContextMenu
|
|
149
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
-
className: "fortune-rows-freeze-handle",
|
|
151
|
-
onMouseDown: onRowFreezeHandleMouseDown,
|
|
152
|
-
style: {
|
|
153
|
-
top: freezeHandleTop
|
|
154
|
-
}
|
|
155
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
156
|
-
className: "fortune-rows-change-size",
|
|
157
|
-
ref: rowChangeSizeRef,
|
|
158
|
-
onMouseDown: onRowSizeHandleMouseDown,
|
|
159
|
-
style: {
|
|
160
|
-
top: hoverLocation.row - 3 + (hoverInFreeze ? context.scrollTop : 0),
|
|
161
|
-
opacity: context.luckysheet_rows_change_size ? 1 : 0
|
|
162
|
-
}
|
|
163
|
-
}), !context.luckysheet_rows_change_size && hoverLocation.row_index >= 0 ? (/*#__PURE__*/_react.default.createElement("div", {
|
|
164
|
-
className: "fortune-row-header-hover",
|
|
165
|
-
style: _lodash.default.assign({
|
|
166
|
-
top: hoverLocation.row_pre,
|
|
167
|
-
height: hoverLocation.row - hoverLocation.row_pre - 1,
|
|
168
|
-
display: "block"
|
|
169
|
-
}, (0, _fortuneCore.fixRowStyleOverflowInFreeze)(context, hoverLocation.row_index, hoverLocation.row_index, (_a = refs.globalCache.freezen) === null || _a === void 0 ? void 0 : _a[context.currentSheetId]))
|
|
170
|
-
})) : null, selectedLocation.map(function (_a, i) {
|
|
171
|
-
var _b;
|
|
172
|
-
var row = _a.row,
|
|
173
|
-
row_pre = _a.row_pre,
|
|
174
|
-
r1 = _a.r1,
|
|
175
|
-
r2 = _a.r2;
|
|
176
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
177
|
-
className: "fortune-row-header-selected",
|
|
178
|
-
key: i,
|
|
179
|
-
style: _lodash.default.assign({
|
|
180
|
-
top: row_pre,
|
|
181
|
-
height: row - row_pre - 1,
|
|
182
|
-
display: "block",
|
|
183
|
-
backgroundColor: "#EFC703",
|
|
184
|
-
mixBlendMode: "multiply"
|
|
185
|
-
}, (0, _fortuneCore.fixRowStyleOverflowInFreeze)(context, r1, r2, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]))
|
|
186
|
-
});
|
|
187
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
188
|
-
style: {
|
|
189
|
-
height: context.rh_height,
|
|
190
|
-
width: 1
|
|
191
|
-
},
|
|
192
|
-
id: "luckysheetrowHeader_0",
|
|
193
|
-
className: "luckysheetsheetchange"
|
|
194
|
-
}));
|
|
195
|
-
};
|
|
196
|
-
var _default = exports.default = RowHeader;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.luckysheet-scrollbar-ltr {
|
|
2
|
-
position: absolute;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
z-index: 1003;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.luckysheet-scrollbar-ltr div {
|
|
8
|
-
height: 1px;
|
|
9
|
-
width: 1px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.luckysheet-scrollbar-x {
|
|
13
|
-
bottom: 0px;
|
|
14
|
-
overflow-x: scroll;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.luckysheet-scrollbar-y {
|
|
18
|
-
right: 0px;
|
|
19
|
-
top: 0px;
|
|
20
|
-
overflow-y: scroll;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.luckysheet-scrollbar-ltr::-webkit-scrollbar {
|
|
24
|
-
background-color: transparent;
|
|
25
|
-
width: 8px;
|
|
26
|
-
height: 8px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.luckysheet-scrollbar-ltr::-webkit-scrollbar-track {
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.luckysheet-scrollbar-ltr::-webkit-scrollbar-thumb {
|
|
34
|
-
background-color: #babac0;
|
|
35
|
-
border-radius: 16px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.luckysheet-scrollbar-ltr::-webkit-scrollbar-button {
|
|
39
|
-
display: none;
|
|
40
|
-
}
|