@fileverse-dev/fortune-react 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/paint-roller.png +0 -0
- package/es/components/ChangeColor/index.css +76 -0
- package/{dist/packages/react/src → es}/components/ChangeColor/index.d.ts +7 -7
- package/es/components/ChangeColor/index.js +41 -0
- package/{dist/packages/react/src → es}/components/ConditionFormat/ConditionRules.d.ts +6 -6
- package/es/components/ConditionFormat/ConditionRules.js +323 -0
- package/es/components/ConditionFormat/index.css +210 -0
- package/{dist/packages/react/src → es}/components/ConditionFormat/index.d.ts +7 -7
- package/es/components/ConditionFormat/index.js +252 -0
- package/{dist/packages/react/src → es}/components/ContextMenu/Divider.d.ts +3 -3
- package/es/components/ContextMenu/Divider.js +7 -0
- package/{dist/packages/react/src → es}/components/ContextMenu/FilterMenu.d.ts +3 -3
- package/es/components/ContextMenu/FilterMenu.js +612 -0
- package/{dist/packages/react/src → es}/components/ContextMenu/Menu.d.ts +8 -8
- package/es/components/ContextMenu/Menu.js +25 -0
- package/{dist/packages/react/src → es}/components/ContextMenu/SheetTab.d.ts +4 -4
- package/es/components/ContextMenu/SheetTab.js +223 -0
- package/es/components/ContextMenu/index.css +322 -0
- package/{dist/packages/react/src → es}/components/ContextMenu/index.d.ts +5 -5
- package/es/components/ContextMenu/index.js +1054 -0
- package/es/components/CryptoDenominationSelector/index.css +67 -0
- package/es/components/CryptoDenominationSelector/index.d.ts +8 -0
- package/es/components/CryptoDenominationSelector/index.js +271 -0
- package/es/components/CustomSort/index.css +23 -0
- package/{dist/packages/react/src → es}/components/CustomSort/index.d.ts +4 -4
- package/es/components/CustomSort/index.js +113 -0
- package/{dist/packages/react/src → es}/components/DataVerification/DropdownList.d.ts +4 -4
- package/es/components/DataVerification/DropdownList.js +126 -0
- package/{dist/packages/react/src → es}/components/DataVerification/RangeDialog.d.ts +4 -4
- package/es/components/DataVerification/RangeDialog.js +105 -0
- package/{dist/packages/react/src → es}/components/DataVerification/getDisplayedRangeTxt.d.ts +2 -2
- package/es/components/DataVerification/getDisplayedRangeTxt.js +9 -0
- package/es/components/DataVerification/index.css +202 -0
- package/{dist/packages/react/src → es}/components/DataVerification/index.d.ts +4 -4
- package/es/components/DataVerification/index.js +398 -0
- package/es/components/Dialog/index.css +64 -0
- package/{dist/packages/react/src → es}/components/Dialog/index.d.ts +15 -15
- package/es/components/Dialog/index.js +72 -0
- package/{dist/packages/react/src → es}/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +11 -11
- package/es/components/DuneChartsInputModal/DuneChartsInputModal.js +95 -0
- package/es/components/DuneChartsInputModal/duneChartsInputModal.css +98 -0
- package/{dist/packages/react/src → es}/components/DunePreview/DunePreview.d.ts +13 -13
- package/es/components/DunePreview/DunePreview.js +46 -0
- package/es/components/DunePreview/index.css +57 -0
- package/{dist/packages/react/src → es}/components/FilterOption/index.d.ts +5 -5
- package/es/components/FilterOption/index.js +121 -0
- package/es/components/FormatSearch/index.css +19 -0
- package/{dist/packages/react/src → es}/components/FormatSearch/index.d.ts +6 -6
- package/es/components/FormatSearch/index.js +133 -0
- package/es/components/FormulaSearch/index.css +65 -0
- package/{dist/packages/react/src → es}/components/FormulaSearch/index.d.ts +5 -5
- package/es/components/FormulaSearch/index.js +198 -0
- package/{dist/packages/react/src → es}/components/FxEditor/NameBox.d.ts +3 -3
- package/es/components/FxEditor/NameBox.js +29 -0
- package/es/components/FxEditor/index.css +72 -0
- package/{dist/packages/react/src → es}/components/FxEditor/index.d.ts +4 -4
- package/es/components/FxEditor/index.js +167 -0
- package/es/components/IFrameBoxs/iFrameBoxs.css +16 -0
- package/{dist/packages/react/src → es}/components/IFrameBoxs/iFrameBoxs.d.ts +4 -4
- package/es/components/IFrameBoxs/iFrameBoxs.js +142 -0
- package/{dist/packages/react/src → es}/components/ImgBoxs/index.d.ts +3 -3
- package/es/components/ImgBoxs/index.js +219 -0
- package/es/components/LinkEidtCard/index.css +255 -0
- package/{dist/packages/react/src → es}/components/LinkEidtCard/index.d.ts +5 -5
- package/es/components/LinkEidtCard/index.js +238 -0
- package/es/components/LocationCondition/index.css +74 -0
- package/{dist/packages/react/src → es}/components/LocationCondition/index.d.ts +3 -3
- package/es/components/LocationCondition/index.js +195 -0
- package/{dist/packages/react/src → es}/components/MessageBox/index.d.ts +9 -9
- package/es/components/MessageBox/index.js +16 -0
- package/{dist/packages/react/src → es}/components/NotationBoxes/index.d.ts +3 -3
- package/es/components/NotationBoxes/index.js +105 -0
- package/{dist/packages/react/src → es}/components/ResetColumnWidth/index.d.ts +2 -2
- package/es/components/ResetColumnWidth/index.js +130 -0
- package/{dist/packages/react/src → es}/components/SVGDefines.d.ts +5 -5
- package/es/components/SVGDefines.js +1961 -0
- package/{dist/packages/react/src → es}/components/SVGIcon.d.ts +9 -9
- package/es/components/SVGIcon.js +18 -0
- package/es/components/SearchReplace/index.css +191 -0
- package/{dist/packages/react/src → es}/components/SearchReplace/index.d.ts +6 -6
- package/es/components/SearchReplace/index.js +285 -0
- package/es/components/Sheet/index.css +27 -0
- package/{dist/packages/react/src → es}/components/Sheet/index.d.ts +8 -8
- package/es/components/Sheet/index.js +176 -0
- package/{dist/packages/react/src → es}/components/SheetList/SheetHiddenButton.d.ts +8 -8
- package/es/components/SheetList/SheetHiddenButton.js +35 -0
- package/{dist/packages/react/src → es}/components/SheetList/SheetListItem.d.ts +9 -9
- package/es/components/SheetList/SheetListItem.js +72 -0
- package/es/components/SheetList/index.css +48 -0
- package/{dist/packages/react/src → es}/components/SheetList/index.d.ts +4 -4
- package/es/components/SheetList/index.js +30 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/ColumnHeader.d.ts +3 -3
- package/es/components/SheetOverlay/ColumnHeader.js +217 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/ContentEditable.d.ts +11 -11
- package/es/components/SheetOverlay/ContentEditable.js +74 -0
- package/es/components/SheetOverlay/FormulaHint/index.css +180 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/FormulaHint/index.d.ts +4 -4
- package/es/components/SheetOverlay/FormulaHint/index.js +348 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/FormulaSearch/constant.d.ts +63 -63
- package/es/components/SheetOverlay/FormulaSearch/constant.js +328 -0
- package/es/components/SheetOverlay/FormulaSearch/index.css +44 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/FormulaSearch/index.d.ts +4 -4
- package/es/components/SheetOverlay/FormulaSearch/index.js +261 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/InputBox.d.ts +3 -3
- package/es/components/SheetOverlay/InputBox.js +395 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/RowHeader.d.ts +3 -3
- package/es/components/SheetOverlay/RowHeader.js +187 -0
- package/es/components/SheetOverlay/ScrollBar/index.css +40 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/ScrollBar/index.d.ts +7 -7
- package/es/components/SheetOverlay/ScrollBar/index.js +47 -0
- package/es/components/SheetOverlay/index.css +952 -0
- package/{dist/packages/react/src → es}/components/SheetOverlay/index.d.ts +4 -4
- package/es/components/SheetOverlay/index.js +580 -0
- package/{dist/packages/react/src → es}/components/SheetTab/SheetItem.d.ts +8 -8
- package/es/components/SheetTab/SheetItem.js +230 -0
- package/es/components/SheetTab/index.css +278 -0
- package/{dist/packages/react/src → es}/components/SheetTab/index.d.ts +4 -4
- package/es/components/SheetTab/index.js +191 -0
- package/es/components/SplitColumn/index.css +121 -0
- package/{dist/packages/react/src → es}/components/SplitColumn/index.d.ts +3 -3
- package/es/components/SplitColumn/index.js +167 -0
- package/{dist/packages/react/src → es}/components/Toolbar/Button.d.ts +12 -12
- package/es/components/Toolbar/Button.js +32 -0
- package/{dist/packages/react/src → es}/components/Toolbar/ColorPicker.d.ts +6 -6
- package/es/components/Toolbar/ColorPicker.js +27 -0
- package/{dist/packages/react/src → es}/components/Toolbar/Combo.d.ts +13 -12
- package/es/components/Toolbar/Combo.js +123 -0
- package/{dist/packages/react/src → es}/components/Toolbar/CustomBorder.d.ts +7 -7
- package/es/components/Toolbar/CustomBorder.js +211 -0
- package/{dist/packages/react/src → es}/components/Toolbar/CustomButton.d.ts +11 -11
- package/es/components/Toolbar/CustomButton.js +29 -0
- package/{dist/packages/react/src → es}/components/Toolbar/CustomColor.d.ts +8 -8
- package/es/components/Toolbar/CustomColor.js +25 -0
- package/{dist/packages/react/src → es}/components/Toolbar/CustomIcon.d.ts +9 -9
- package/es/components/Toolbar/CustomIcon.js +38 -0
- package/{dist/packages/react/src → es}/components/Toolbar/Divider.d.ts +4 -4
- package/es/components/Toolbar/Divider.js +12 -0
- package/{dist/packages/react/src → es}/components/Toolbar/MoreItemsContainer.d.ts +6 -6
- package/es/components/Toolbar/MoreItemsContainer.js +17 -0
- package/{dist/packages/react/src → es}/components/Toolbar/Select.d.ts +14 -14
- package/es/components/Toolbar/Select.js +34 -0
- package/es/components/Toolbar/index.css +411 -0
- package/es/components/Toolbar/index.d.ts +16 -0
- package/es/components/Toolbar/index.js +1722 -0
- package/{dist/packages/react/src → es}/components/Workbook/api.d.ts +1186 -1177
- package/es/components/Workbook/api.js +405 -0
- package/es/components/Workbook/index.css +48 -0
- package/{dist/packages/react/src → es}/components/Workbook/index.d.ts +1194 -1185
- package/es/components/Workbook/index.js +749 -0
- package/es/components/ZoomControl/index.css +54 -0
- package/{dist/packages/react/src → es}/components/ZoomControl/index.d.ts +4 -4
- package/es/components/ZoomControl/index.js +111 -0
- package/es/components/index.d.ts +5 -0
- package/es/components/index.js +3 -0
- package/es/constants.d.ts +27 -0
- package/es/constants.js +45 -0
- package/{dist/packages/react/src → es}/context/index.d.ts +25 -25
- package/es/context/index.js +34 -0
- package/{dist/packages/react/src → es}/context/modal.d.ts +10 -10
- package/es/context/modal.js +43 -0
- package/{dist/packages/react/src → es}/hooks/useAlert.d.ts +4 -4
- package/es/hooks/useAlert.js +28 -0
- package/{dist/packages/react/src → es}/hooks/useDialog.d.ts +5 -5
- package/es/hooks/useDialog.js +28 -0
- package/{dist/packages/react/src → es}/hooks/useOutsideClick.d.ts +2 -2
- package/es/hooks/useOutsideClick.js +15 -0
- package/{dist/packages/react/src → es}/hooks/usePrevious.d.ts +2 -2
- package/es/hooks/usePrevious.js +9 -0
- package/es/index.css +27 -0
- package/{dist/packages/react/src → es}/index.d.ts +1 -1
- package/es/index.js +1 -0
- package/es/utils/convertCellsToCrypto.d.ts +8 -0
- package/es/utils/convertCellsToCrypto.js +307 -0
- package/es/utils/cryptoApi.d.ts +3 -0
- package/es/utils/cryptoApi.js +190 -0
- package/{dist/packages/react/src → es}/utils/datepickerStyles.d.ts +2 -2
- package/es/utils/datepickerStyles.js +8 -0
- package/es/utils/updateCellsDecimalFormat.d.ts +6 -0
- package/es/utils/updateCellsDecimalFormat.js +80 -0
- package/lib/assets/paint-roller.png +0 -0
- package/lib/components/ChangeColor/index.css +76 -0
- package/lib/components/ChangeColor/index.d.ts +7 -0
- package/lib/components/ChangeColor/index.js +50 -0
- package/lib/components/ConditionFormat/ConditionRules.d.ts +6 -0
- package/lib/components/ConditionFormat/ConditionRules.js +332 -0
- package/lib/components/ConditionFormat/index.css +210 -0
- package/lib/components/ConditionFormat/index.d.ts +7 -0
- package/lib/components/ConditionFormat/index.js +261 -0
- package/lib/components/ContextMenu/Divider.d.ts +3 -0
- package/lib/components/ContextMenu/Divider.js +14 -0
- package/lib/components/ContextMenu/FilterMenu.d.ts +3 -0
- package/lib/components/ContextMenu/FilterMenu.js +621 -0
- package/lib/components/ContextMenu/Menu.d.ts +8 -0
- package/lib/components/ContextMenu/Menu.js +33 -0
- package/lib/components/ContextMenu/SheetTab.d.ts +4 -0
- package/lib/components/ContextMenu/SheetTab.js +232 -0
- package/lib/components/ContextMenu/index.css +322 -0
- package/lib/components/ContextMenu/index.d.ts +5 -0
- package/lib/components/ContextMenu/index.js +1063 -0
- package/lib/components/CryptoDenominationSelector/index.css +67 -0
- package/lib/components/CryptoDenominationSelector/index.d.ts +8 -0
- package/lib/components/CryptoDenominationSelector/index.js +280 -0
- package/lib/components/CustomSort/index.css +23 -0
- package/lib/components/CustomSort/index.d.ts +4 -0
- package/lib/components/CustomSort/index.js +122 -0
- package/lib/components/DataVerification/DropdownList.d.ts +4 -0
- package/lib/components/DataVerification/DropdownList.js +135 -0
- package/lib/components/DataVerification/RangeDialog.d.ts +4 -0
- package/lib/components/DataVerification/RangeDialog.js +114 -0
- package/lib/components/DataVerification/getDisplayedRangeTxt.d.ts +2 -0
- package/lib/components/DataVerification/getDisplayedRangeTxt.js +15 -0
- package/lib/components/DataVerification/index.css +202 -0
- package/lib/components/DataVerification/index.d.ts +4 -0
- package/lib/components/DataVerification/index.js +407 -0
- package/lib/components/Dialog/index.css +64 -0
- package/lib/components/Dialog/index.d.ts +15 -0
- package/lib/components/Dialog/index.js +81 -0
- package/lib/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +11 -0
- package/lib/components/DuneChartsInputModal/DuneChartsInputModal.js +104 -0
- package/lib/components/DuneChartsInputModal/duneChartsInputModal.css +98 -0
- package/lib/components/DunePreview/DunePreview.d.ts +13 -0
- package/lib/components/DunePreview/DunePreview.js +53 -0
- package/lib/components/DunePreview/index.css +57 -0
- package/lib/components/FilterOption/index.d.ts +5 -0
- package/lib/components/FilterOption/index.js +130 -0
- package/lib/components/FormatSearch/index.css +19 -0
- package/lib/components/FormatSearch/index.d.ts +6 -0
- package/lib/components/FormatSearch/index.js +142 -0
- package/lib/components/FormulaSearch/index.css +65 -0
- package/lib/components/FormulaSearch/index.d.ts +5 -0
- package/lib/components/FormulaSearch/index.js +207 -0
- package/lib/components/FxEditor/NameBox.d.ts +3 -0
- package/lib/components/FxEditor/NameBox.js +38 -0
- package/lib/components/FxEditor/index.css +72 -0
- package/lib/components/FxEditor/index.d.ts +4 -0
- package/lib/components/FxEditor/index.js +176 -0
- package/lib/components/IFrameBoxs/iFrameBoxs.css +16 -0
- package/lib/components/IFrameBoxs/iFrameBoxs.d.ts +4 -0
- package/lib/components/IFrameBoxs/iFrameBoxs.js +151 -0
- package/lib/components/ImgBoxs/index.d.ts +3 -0
- package/lib/components/ImgBoxs/index.js +228 -0
- package/lib/components/LinkEidtCard/index.css +255 -0
- package/lib/components/LinkEidtCard/index.d.ts +5 -0
- package/lib/components/LinkEidtCard/index.js +247 -0
- package/lib/components/LocationCondition/index.css +74 -0
- package/lib/components/LocationCondition/index.d.ts +3 -0
- package/lib/components/LocationCondition/index.js +204 -0
- package/lib/components/MessageBox/index.d.ts +9 -0
- package/lib/components/MessageBox/index.js +23 -0
- package/lib/components/NotationBoxes/index.d.ts +3 -0
- package/lib/components/NotationBoxes/index.js +114 -0
- package/lib/components/ResetColumnWidth/index.d.ts +2 -0
- package/lib/components/ResetColumnWidth/index.js +138 -0
- package/lib/components/SVGDefines.d.ts +5 -0
- package/lib/components/SVGDefines.js +1968 -0
- package/lib/components/SVGIcon.d.ts +9 -0
- package/lib/components/SVGIcon.js +25 -0
- package/lib/components/SearchReplace/index.css +191 -0
- package/lib/components/SearchReplace/index.d.ts +6 -0
- package/lib/components/SearchReplace/index.js +294 -0
- package/lib/components/Sheet/index.css +27 -0
- package/lib/components/Sheet/index.d.ts +8 -0
- package/lib/components/Sheet/index.js +185 -0
- package/lib/components/SheetList/SheetHiddenButton.d.ts +8 -0
- package/lib/components/SheetList/SheetHiddenButton.js +44 -0
- package/lib/components/SheetList/SheetListItem.d.ts +9 -0
- package/lib/components/SheetList/SheetListItem.js +81 -0
- package/lib/components/SheetList/index.css +48 -0
- package/lib/components/SheetList/index.d.ts +4 -0
- package/lib/components/SheetList/index.js +39 -0
- package/lib/components/SheetOverlay/ColumnHeader.d.ts +3 -0
- package/lib/components/SheetOverlay/ColumnHeader.js +226 -0
- package/lib/components/SheetOverlay/ContentEditable.d.ts +11 -0
- package/lib/components/SheetOverlay/ContentEditable.js +83 -0
- package/lib/components/SheetOverlay/FormulaHint/index.css +180 -0
- package/lib/components/SheetOverlay/FormulaHint/index.d.ts +4 -0
- package/lib/components/SheetOverlay/FormulaHint/index.js +357 -0
- package/lib/components/SheetOverlay/FormulaSearch/constant.d.ts +63 -0
- package/lib/components/SheetOverlay/FormulaSearch/constant.js +334 -0
- package/lib/components/SheetOverlay/FormulaSearch/index.css +44 -0
- package/lib/components/SheetOverlay/FormulaSearch/index.d.ts +4 -0
- package/lib/components/SheetOverlay/FormulaSearch/index.js +270 -0
- package/lib/components/SheetOverlay/InputBox.d.ts +3 -0
- package/lib/components/SheetOverlay/InputBox.js +404 -0
- package/lib/components/SheetOverlay/RowHeader.d.ts +3 -0
- package/lib/components/SheetOverlay/RowHeader.js +196 -0
- package/lib/components/SheetOverlay/ScrollBar/index.css +40 -0
- package/lib/components/SheetOverlay/ScrollBar/index.d.ts +7 -0
- package/lib/components/SheetOverlay/ScrollBar/index.js +56 -0
- package/lib/components/SheetOverlay/index.css +952 -0
- package/lib/components/SheetOverlay/index.d.ts +4 -0
- package/lib/components/SheetOverlay/index.js +589 -0
- package/lib/components/SheetTab/SheetItem.d.ts +8 -0
- package/lib/components/SheetTab/SheetItem.js +239 -0
- package/lib/components/SheetTab/index.css +278 -0
- package/lib/components/SheetTab/index.d.ts +4 -0
- package/lib/components/SheetTab/index.js +200 -0
- package/lib/components/SplitColumn/index.css +121 -0
- package/lib/components/SplitColumn/index.d.ts +3 -0
- package/lib/components/SplitColumn/index.js +176 -0
- package/lib/components/Toolbar/Button.d.ts +12 -0
- package/lib/components/Toolbar/Button.js +39 -0
- package/lib/components/Toolbar/ColorPicker.d.ts +6 -0
- package/lib/components/Toolbar/ColorPicker.js +34 -0
- package/lib/components/Toolbar/Combo.d.ts +13 -0
- package/lib/components/Toolbar/Combo.js +132 -0
- package/lib/components/Toolbar/CustomBorder.d.ts +7 -0
- package/lib/components/Toolbar/CustomBorder.js +220 -0
- package/lib/components/Toolbar/CustomButton.d.ts +11 -0
- package/lib/components/Toolbar/CustomButton.js +36 -0
- package/lib/components/Toolbar/CustomColor.d.ts +8 -0
- package/lib/components/Toolbar/CustomColor.js +32 -0
- package/lib/components/Toolbar/CustomIcon.d.ts +9 -0
- package/lib/components/Toolbar/CustomIcon.js +46 -0
- package/lib/components/Toolbar/Divider.d.ts +4 -0
- package/lib/components/Toolbar/Divider.js +19 -0
- package/lib/components/Toolbar/MoreItemsContainer.d.ts +6 -0
- package/lib/components/Toolbar/MoreItemsContainer.js +25 -0
- package/lib/components/Toolbar/Select.d.ts +14 -0
- package/lib/components/Toolbar/Select.js +40 -0
- package/lib/components/Toolbar/index.css +411 -0
- package/lib/components/Toolbar/index.d.ts +16 -0
- package/lib/components/Toolbar/index.js +1731 -0
- package/lib/components/Workbook/api.d.ts +1186 -0
- package/lib/components/Workbook/api.js +412 -0
- package/lib/components/Workbook/index.css +48 -0
- package/{dist/stories/API.stories.d.ts → lib/components/Workbook/index.d.ts} +1194 -1210
- package/lib/components/Workbook/index.js +758 -0
- package/lib/components/ZoomControl/index.css +54 -0
- package/lib/components/ZoomControl/index.d.ts +4 -0
- package/lib/components/ZoomControl/index.js +120 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +26 -0
- package/lib/constants.d.ts +27 -0
- package/lib/constants.js +52 -0
- package/lib/context/index.d.ts +25 -0
- package/lib/context/index.js +41 -0
- package/lib/context/modal.d.ts +10 -0
- package/lib/context/modal.js +50 -0
- package/lib/hooks/useAlert.d.ts +4 -0
- package/lib/hooks/useAlert.js +37 -0
- package/lib/hooks/useDialog.d.ts +5 -0
- package/lib/hooks/useDialog.js +37 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +21 -0
- package/lib/hooks/usePrevious.d.ts +2 -0
- package/lib/hooks/usePrevious.js +15 -0
- package/lib/index.css +27 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +16 -0
- package/lib/utils/convertCellsToCrypto.d.ts +8 -0
- package/lib/utils/convertCellsToCrypto.js +314 -0
- package/lib/utils/cryptoApi.d.ts +3 -0
- package/lib/utils/cryptoApi.js +198 -0
- package/lib/utils/datepickerStyles.d.ts +2 -0
- package/lib/utils/datepickerStyles.js +14 -0
- package/lib/utils/updateCellsDecimalFormat.d.ts +6 -0
- package/lib/utils/updateCellsDecimalFormat.js +86 -0
- package/package.json +8 -7
- package/dist/index.css +0 -3915
- package/dist/index.esm.css +0 -3915
- package/dist/index.esm.js +0 -12975
- package/dist/index.js +0 -12995
- package/dist/index.umd.css +0 -3915
- package/dist/index.umd.js +0 -122445
- package/dist/index.umd.min.css +0 -1
- package/dist/index.umd.min.js +0 -50
- package/dist/packages/core/src/api/cell.d.ts +0 -10
- package/dist/packages/core/src/api/common.d.ts +0 -66
- package/dist/packages/core/src/api/errors.d.ts +0 -2
- package/dist/packages/core/src/api/index.d.ts +0 -9
- package/dist/packages/core/src/api/merge.d.ts +0 -5
- package/dist/packages/core/src/api/range.d.ts +0 -22
- package/dist/packages/core/src/api/rowcol.d.ts +0 -14
- package/dist/packages/core/src/api/sheet.d.ts +0 -10
- package/dist/packages/core/src/api/workbook.d.ts +0 -15
- package/dist/packages/core/src/canvas.d.ts +0 -46
- package/dist/packages/core/src/context.d.ts +0 -197
- package/dist/packages/core/src/events/copy.d.ts +0 -2
- package/dist/packages/core/src/events/index.d.ts +0 -4
- package/dist/packages/core/src/events/keyboard.d.ts +0 -6
- package/dist/packages/core/src/events/mouse.d.ts +0 -22
- package/dist/packages/core/src/events/paste.d.ts +0 -3
- package/dist/packages/core/src/index.d.ts +0 -10
- package/dist/packages/core/src/locale/en.d.ts +0 -992
- package/dist/packages/core/src/locale/es.d.ts +0 -1134
- package/dist/packages/core/src/locale/hi.d.ts +0 -1030
- package/dist/packages/core/src/locale/index.d.ts +0 -1049
- package/dist/packages/core/src/locale/zh.d.ts +0 -1048
- package/dist/packages/core/src/locale/zh_tw.d.ts +0 -1187
- package/dist/packages/core/src/modules/ConditionFormat.d.ts +0 -17
- package/dist/packages/core/src/modules/border.d.ts +0 -3
- package/dist/packages/core/src/modules/cell.d.ts +0 -32
- package/dist/packages/core/src/modules/clipboard.d.ts +0 -3
- package/dist/packages/core/src/modules/color.d.ts +0 -1
- package/dist/packages/core/src/modules/comment.d.ts +0 -97
- package/dist/packages/core/src/modules/conditionalFormat.d.ts +0 -2
- package/dist/packages/core/src/modules/cursor.d.ts +0 -3
- package/dist/packages/core/src/modules/dataVerification.d.ts +0 -11
- package/dist/packages/core/src/modules/dropCell.d.ts +0 -10
- package/dist/packages/core/src/modules/filter.d.ts +0 -45
- package/dist/packages/core/src/modules/format.d.ts +0 -6
- package/dist/packages/core/src/modules/formula.d.ts +0 -54
- package/dist/packages/core/src/modules/freeze.d.ts +0 -5
- package/dist/packages/core/src/modules/hyperlink.d.ts +0 -21
- package/dist/packages/core/src/modules/iframe.d.ts +0 -12
- package/dist/packages/core/src/modules/image.d.ts +0 -31
- package/dist/packages/core/src/modules/index.d.ts +0 -36
- package/dist/packages/core/src/modules/inline-string.d.ts +0 -36
- package/dist/packages/core/src/modules/location.d.ts +0 -6
- package/dist/packages/core/src/modules/locationCondition.d.ts +0 -21
- package/dist/packages/core/src/modules/merge.d.ts +0 -3
- package/dist/packages/core/src/modules/mobile.d.ts +0 -5
- package/dist/packages/core/src/modules/moveCells.d.ts +0 -5
- package/dist/packages/core/src/modules/protection.d.ts +0 -5
- package/dist/packages/core/src/modules/refresh.d.ts +0 -3
- package/dist/packages/core/src/modules/rowcol.d.ts +0 -19
- package/dist/packages/core/src/modules/screenshot.d.ts +0 -2
- package/dist/packages/core/src/modules/searchReplace.d.ts +0 -36
- package/dist/packages/core/src/modules/selection.d.ts +0 -46
- package/dist/packages/core/src/modules/sheet.d.ts +0 -10
- package/dist/packages/core/src/modules/sort.d.ts +0 -7
- package/dist/packages/core/src/modules/splitColumn.d.ts +0 -5
- package/dist/packages/core/src/modules/text.d.ts +0 -10
- package/dist/packages/core/src/modules/toolbar.d.ts +0 -32
- package/dist/packages/core/src/modules/validation.d.ts +0 -19
- package/dist/packages/core/src/modules/zoom.d.ts +0 -3
- package/dist/packages/core/src/settings.d.ts +0 -100
- package/dist/packages/core/src/types.d.ts +0 -371
- package/dist/packages/core/src/utils/freeze.d.ts +0 -7
- package/dist/packages/core/src/utils/index.d.ts +0 -18
- package/dist/packages/core/src/utils/patch.d.ts +0 -37
- package/dist/packages/react/src/components/Toolbar/index.d.ts +0 -10
- package/dist/packages/react/src/components/index.d.ts +0 -4
- package/dist/packages/react/src/constants.d.ts +0 -1
- package/dist/stories/Collabration.stories.d.ts +0 -2359
- package/dist/stories/Features.stories.d.ts +0 -9430
- package/dist/stories/data/cell.d.ts +0 -983
- package/dist/stories/data/dataVerification.d.ts +0 -131
- package/dist/stories/data/empty.d.ts +0 -10
- package/dist/stories/data/formula.d.ts +0 -362
- package/dist/stories/data/freeze.d.ts +0 -34
- package/dist/stories/data/protected.d.ts +0 -40
- package/dist/stories/utils.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
declare const SheetOverlay: React.FC;
|
|
4
|
-
export default SheetOverlay;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
declare const SheetOverlay: React.FC;
|
|
4
|
+
export default SheetOverlay;
|
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
return __assign.apply(this, arguments);
|
|
10
|
+
};
|
|
11
|
+
import React, { useContext, useCallback, useRef, useEffect, useLayoutEffect, useMemo } from "react";
|
|
12
|
+
import "./index.css";
|
|
13
|
+
import { locale, drawArrow, handleCellAreaDoubleClick, handleCellAreaMouseDown, handleContextMenu, handleOverlayMouseMove, handleOverlayMouseUp, selectAll, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, createDropCellRange, getCellRowColumn, getCellHyperlink, showLinkCard, onCellsMoveStart, insertRowCol, getSheetIndex, fixRowStyleOverflowInFreeze, fixColumnStyleOverflowInFreeze, handleKeydownForZoom } from "@fileverse-dev/fortune-core";
|
|
14
|
+
import _ from "lodash";
|
|
15
|
+
import WorkbookContext from "../../context";
|
|
16
|
+
import ColumnHeader from "./ColumnHeader";
|
|
17
|
+
import RowHeader from "./RowHeader";
|
|
18
|
+
import InputBox from "./InputBox";
|
|
19
|
+
import ScrollBar from "./ScrollBar";
|
|
20
|
+
import SearchReplace from "../SearchReplace";
|
|
21
|
+
import LinkEditCard from "../LinkEidtCard";
|
|
22
|
+
import FilterOptions from "../FilterOption";
|
|
23
|
+
import { useAlert } from "../../hooks/useAlert";
|
|
24
|
+
import ImgBoxs from "../ImgBoxs";
|
|
25
|
+
import NotationBoxes from "../NotationBoxes";
|
|
26
|
+
import RangeDialog from "../DataVerification/RangeDialog";
|
|
27
|
+
import { useDialog } from "../../hooks/useDialog";
|
|
28
|
+
import SVGIcon from "../SVGIcon";
|
|
29
|
+
import DropDownList from "../DataVerification/DropdownList";
|
|
30
|
+
import IframeBoxs from "../IFrameBoxs/iFrameBoxs";
|
|
31
|
+
var SheetOverlay = function SheetOverlay() {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
33
|
+
var _o = useContext(WorkbookContext),
|
|
34
|
+
context = _o.context,
|
|
35
|
+
setContext = _o.setContext,
|
|
36
|
+
settings = _o.settings,
|
|
37
|
+
refs = _o.refs;
|
|
38
|
+
var _p = locale(context),
|
|
39
|
+
info = _p.info,
|
|
40
|
+
rightclick = _p.rightclick;
|
|
41
|
+
var showDialog = useDialog().showDialog;
|
|
42
|
+
var containerRef = useRef(null);
|
|
43
|
+
var bottomAddRowInputRef = useRef(null);
|
|
44
|
+
var dataVerificationHintBoxRef = useRef(null);
|
|
45
|
+
var showAlert = useAlert().showAlert;
|
|
46
|
+
var cellAreaMouseDown = useCallback(function (e) {
|
|
47
|
+
var nativeEvent = e.nativeEvent;
|
|
48
|
+
if (e.button !== 2) {
|
|
49
|
+
setContext(function (draftCtx) {
|
|
50
|
+
var _a;
|
|
51
|
+
handleCellAreaMouseDown(draftCtx, refs.globalCache, nativeEvent, refs.cellInput.current, refs.cellArea.current, refs.fxInput.current, refs.canvas.current.getContext("2d"));
|
|
52
|
+
if (!_.isEmpty((_a = draftCtx.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0]) && refs.cellInput.current) {
|
|
53
|
+
setTimeout(function () {
|
|
54
|
+
var _a;
|
|
55
|
+
(_a = refs.cellInput.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}, [setContext, refs.globalCache, refs.cellInput, refs.cellArea, refs.fxInput, refs.canvas]);
|
|
61
|
+
var cellAreaContextMenu = useCallback(function (e) {
|
|
62
|
+
var nativeEvent = e.nativeEvent;
|
|
63
|
+
setContext(function (draftCtx) {
|
|
64
|
+
handleContextMenu(draftCtx, settings, nativeEvent, refs.workbookContainer.current, refs.cellArea.current, "cell");
|
|
65
|
+
});
|
|
66
|
+
}, [refs.workbookContainer, setContext, settings, refs.cellArea]);
|
|
67
|
+
var cellAreaDoubleClick = useCallback(function (e) {
|
|
68
|
+
var nativeEvent = e.nativeEvent;
|
|
69
|
+
setContext(function (draftCtx) {
|
|
70
|
+
handleCellAreaDoubleClick(draftCtx, refs.globalCache, settings, nativeEvent, refs.cellArea.current);
|
|
71
|
+
});
|
|
72
|
+
}, [refs.cellArea, refs.globalCache, setContext, settings]);
|
|
73
|
+
var onLeftTopClick = useCallback(function () {
|
|
74
|
+
setContext(function (draftCtx) {
|
|
75
|
+
selectAll(draftCtx);
|
|
76
|
+
});
|
|
77
|
+
}, [setContext]);
|
|
78
|
+
var debouncedShowLinkCard = useMemo(function () {
|
|
79
|
+
return _.debounce(function (globalCache, r, c, isEditing, skip) {
|
|
80
|
+
var _a;
|
|
81
|
+
if (skip === void 0) {
|
|
82
|
+
skip = false;
|
|
83
|
+
}
|
|
84
|
+
if (skip || ((_a = globalCache.linkCard) === null || _a === void 0 ? void 0 : _a.mouseEnter)) return;
|
|
85
|
+
setContext(function (draftCtx) {
|
|
86
|
+
showLinkCard(draftCtx, r, c, isEditing);
|
|
87
|
+
});
|
|
88
|
+
}, 800);
|
|
89
|
+
}, [setContext]);
|
|
90
|
+
var overShowLinkCard = useCallback(function (ctx, globalCache, e, container, scrollX, scrollY) {
|
|
91
|
+
var _a;
|
|
92
|
+
var rc = getCellRowColumn(ctx, e, container, scrollX, scrollY);
|
|
93
|
+
if (rc == null) return;
|
|
94
|
+
var link = getCellHyperlink(ctx, rc.r, rc.c);
|
|
95
|
+
if (link == null) {
|
|
96
|
+
debouncedShowLinkCard(globalCache, rc.r, rc.c, false);
|
|
97
|
+
} else {
|
|
98
|
+
if ((_a = globalCache.linkCard) === null || _a === void 0 ? void 0 : _a.mouseEnter) return;
|
|
99
|
+
showLinkCard(ctx, rc.r, rc.c, false);
|
|
100
|
+
debouncedShowLinkCard(globalCache, rc.r, rc.c, false, true);
|
|
101
|
+
}
|
|
102
|
+
}, [debouncedShowLinkCard]);
|
|
103
|
+
var onMouseMove = useCallback(function (nativeEvent) {
|
|
104
|
+
setContext(function (draftCtx) {
|
|
105
|
+
overShowLinkCard(draftCtx, refs.globalCache, nativeEvent, containerRef.current, refs.scrollbarX.current, refs.scrollbarY.current);
|
|
106
|
+
handleOverlayMouseMove(draftCtx, refs.globalCache, nativeEvent, refs.cellInput.current, refs.scrollbarX.current, refs.scrollbarY.current, containerRef.current, refs.fxInput.current);
|
|
107
|
+
});
|
|
108
|
+
}, [overShowLinkCard, refs.cellInput, refs.fxInput, refs.globalCache, refs.scrollbarX, refs.scrollbarY, setContext]);
|
|
109
|
+
var onMouseUp = useCallback(function (nativeEvent) {
|
|
110
|
+
setContext(function (draftCtx) {
|
|
111
|
+
try {
|
|
112
|
+
handleOverlayMouseUp(draftCtx, refs.globalCache, settings, nativeEvent, refs.scrollbarX.current, refs.scrollbarY.current, containerRef.current, refs.cellInput.current, refs.fxInput.current);
|
|
113
|
+
} catch (e) {
|
|
114
|
+
showAlert(e.message);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}, [refs.cellInput, refs.fxInput, refs.globalCache, refs.scrollbarX, refs.scrollbarY, setContext, settings, showAlert]);
|
|
118
|
+
var onKeyDownForZoom = useCallback(function (ev) {
|
|
119
|
+
var newZoom = handleKeydownForZoom(ev, context.zoomRatio);
|
|
120
|
+
if (newZoom !== context.zoomRatio) {
|
|
121
|
+
setContext(function (ctx) {
|
|
122
|
+
ctx.zoomRatio = newZoom;
|
|
123
|
+
ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)].zoomRatio = newZoom;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}, [context.zoomRatio, setContext]);
|
|
127
|
+
var onTouchStart = useCallback(function (e) {
|
|
128
|
+
var nativeEvent = e.nativeEvent;
|
|
129
|
+
setContext(function (draftContext) {
|
|
130
|
+
handleOverlayTouchStart(draftContext, nativeEvent, refs.globalCache);
|
|
131
|
+
});
|
|
132
|
+
e.stopPropagation();
|
|
133
|
+
}, [refs.globalCache, setContext]);
|
|
134
|
+
var onTouchMove = useCallback(function (e) {
|
|
135
|
+
var nativeEvent = e.nativeEvent;
|
|
136
|
+
setContext(function (draftCtx) {
|
|
137
|
+
handleOverlayTouchMove(draftCtx, nativeEvent, refs.globalCache, refs.scrollbarX.current, refs.scrollbarY.current);
|
|
138
|
+
});
|
|
139
|
+
}, [refs.globalCache, refs.scrollbarX, refs.scrollbarY, setContext]);
|
|
140
|
+
var onTouchEnd = useCallback(function () {
|
|
141
|
+
handleOverlayTouchEnd(refs.globalCache);
|
|
142
|
+
}, [refs.globalCache]);
|
|
143
|
+
var handleBottomAddRow = useCallback(function () {
|
|
144
|
+
var _a;
|
|
145
|
+
var valueStr = ((_a = bottomAddRowInputRef.current) === null || _a === void 0 ? void 0 : _a.value) || context.addDefaultRows.toString();
|
|
146
|
+
var value = parseInt(valueStr, 10);
|
|
147
|
+
if (Number.isNaN(value)) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
if (value < 1) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
var insertRowColOp = {
|
|
154
|
+
type: "row",
|
|
155
|
+
index: context.luckysheetfile[getSheetIndex(context, context.currentSheetId)].data.length - 1,
|
|
156
|
+
count: value,
|
|
157
|
+
direction: "rightbottom",
|
|
158
|
+
id: context.currentSheetId
|
|
159
|
+
};
|
|
160
|
+
setContext(function (draftCtx) {
|
|
161
|
+
try {
|
|
162
|
+
insertRowCol(draftCtx, insertRowColOp, false);
|
|
163
|
+
} catch (err) {
|
|
164
|
+
if (err.message === "maxExceeded") showAlert(rightclick.rowOverLimit);
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
insertRowColOp: insertRowColOp
|
|
168
|
+
});
|
|
169
|
+
}, [context, rightclick.rowOverLimit, setContext, showAlert]);
|
|
170
|
+
useEffect(function () {
|
|
171
|
+
if (context.warnDialog) {
|
|
172
|
+
setTimeout(function () {
|
|
173
|
+
showDialog(context.warnDialog, "yesno", "Invalid data", "Retry");
|
|
174
|
+
setContext(function (ctx) {
|
|
175
|
+
ctx.warnDialog = undefined;
|
|
176
|
+
});
|
|
177
|
+
}, 240);
|
|
178
|
+
}
|
|
179
|
+
}, [context.warnDialog, setContext, showDialog]);
|
|
180
|
+
useEffect(function () {
|
|
181
|
+
refs.cellArea.current.scrollLeft = context.scrollLeft;
|
|
182
|
+
refs.cellArea.current.scrollTop = context.scrollTop;
|
|
183
|
+
}, [context.scrollLeft, context.scrollTop, refs.cellArea, (_a = refs.cellArea.current) === null || _a === void 0 ? void 0 : _a.scrollLeft, (_b = refs.cellArea.current) === null || _b === void 0 ? void 0 : _b.scrollTop]);
|
|
184
|
+
useLayoutEffect(function () {
|
|
185
|
+
var _a;
|
|
186
|
+
if (context.commentBoxes || context.hoveredCommentBox || context.editingCommentBox) {
|
|
187
|
+
_.concat((_a = context.commentBoxes) === null || _a === void 0 ? void 0 : _a.filter(function (v) {
|
|
188
|
+
var _a;
|
|
189
|
+
return v.rc !== ((_a = context.editingCommentBox) === null || _a === void 0 ? void 0 : _a.rc);
|
|
190
|
+
}), [context.hoveredCommentBox, context.editingCommentBox]).forEach(function (box) {
|
|
191
|
+
if (box) {
|
|
192
|
+
drawArrow(box.rc, box.size);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}, [context.commentBoxes, context.hoveredCommentBox, context.editingCommentBox]);
|
|
197
|
+
useEffect(function () {
|
|
198
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
199
|
+
return function () {
|
|
200
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
201
|
+
};
|
|
202
|
+
}, [onMouseMove]);
|
|
203
|
+
useEffect(function () {
|
|
204
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
205
|
+
return function () {
|
|
206
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
207
|
+
};
|
|
208
|
+
}, [onMouseUp]);
|
|
209
|
+
useEffect(function () {
|
|
210
|
+
document.addEventListener("keydown", onKeyDownForZoom);
|
|
211
|
+
return function () {
|
|
212
|
+
document.removeEventListener("keydown", onKeyDownForZoom);
|
|
213
|
+
};
|
|
214
|
+
}, [onKeyDownForZoom]);
|
|
215
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
216
|
+
className: "fortune-sheet-overlay",
|
|
217
|
+
ref: containerRef,
|
|
218
|
+
onTouchStart: onTouchStart,
|
|
219
|
+
onTouchMove: onTouchMove,
|
|
220
|
+
onTouchEnd: onTouchEnd,
|
|
221
|
+
tabIndex: -1,
|
|
222
|
+
style: {
|
|
223
|
+
width: context.luckysheetTableContentHW[0],
|
|
224
|
+
height: context.luckysheetTableContentHW[1]
|
|
225
|
+
}
|
|
226
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
227
|
+
className: "fortune-col-header-wrap"
|
|
228
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
229
|
+
className: "fortune-left-top",
|
|
230
|
+
onClick: onLeftTopClick,
|
|
231
|
+
tabIndex: 0,
|
|
232
|
+
style: {
|
|
233
|
+
width: context.rowHeaderWidth - 1.5,
|
|
234
|
+
height: context.columnHeaderHeight - 1.5
|
|
235
|
+
}
|
|
236
|
+
}), /*#__PURE__*/React.createElement(ColumnHeader, null)), (context.showSearch || context.showReplace) && (/*#__PURE__*/React.createElement(SearchReplace, {
|
|
237
|
+
getContainer: function getContainer() {
|
|
238
|
+
return containerRef.current;
|
|
239
|
+
}
|
|
240
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
241
|
+
className: "fortune-row-body"
|
|
242
|
+
}, /*#__PURE__*/React.createElement(RowHeader, null), /*#__PURE__*/React.createElement(ScrollBar, {
|
|
243
|
+
axis: "x"
|
|
244
|
+
}), /*#__PURE__*/React.createElement(ScrollBar, {
|
|
245
|
+
axis: "y"
|
|
246
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
247
|
+
ref: refs.cellArea,
|
|
248
|
+
className: "fortune-cell-area ".concat(context.luckysheetPaintModelOn ? "cursor-paint" : ""),
|
|
249
|
+
onMouseDown: cellAreaMouseDown,
|
|
250
|
+
onDoubleClick: cellAreaDoubleClick,
|
|
251
|
+
onContextMenu: cellAreaContextMenu,
|
|
252
|
+
style: {
|
|
253
|
+
width: context.cellmainWidth,
|
|
254
|
+
height: context.cellmainHeight,
|
|
255
|
+
cursor: context.luckysheet_cell_selected_extend ? "crosshair" : ""
|
|
256
|
+
}
|
|
257
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
258
|
+
id: "fortune-formula-functionrange"
|
|
259
|
+
}), context.formulaRangeSelect && (/*#__PURE__*/React.createElement("div", {
|
|
260
|
+
className: "fortune-selection-copy fortune-formula-functionrange-select",
|
|
261
|
+
style: context.formulaRangeSelect
|
|
262
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
263
|
+
className: "fortune-selection-copy-top fortune-copy"
|
|
264
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
265
|
+
className: "fortune-selection-copy-right fortune-copy"
|
|
266
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
267
|
+
className: "fortune-selection-copy-bottom fortune-copy"
|
|
268
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
269
|
+
className: "fortune-selection-copy-left fortune-copy"
|
|
270
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
271
|
+
className: "fortune-selection-copy-hc"
|
|
272
|
+
}))), context.formulaRangeHighlight.map(function (v) {
|
|
273
|
+
var rangeIndex = v.rangeIndex,
|
|
274
|
+
backgroundColor = v.backgroundColor;
|
|
275
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
276
|
+
key: rangeIndex,
|
|
277
|
+
id: "fortune-formula-functionrange-highlight",
|
|
278
|
+
className: "fortune-selection-highlight fortune-formula-functionrange-highlight",
|
|
279
|
+
style: _.omit(v, "backgroundColor")
|
|
280
|
+
}, ["top", "right", "bottom", "left"].map(function (d) {
|
|
281
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
282
|
+
key: d,
|
|
283
|
+
"data-type": d,
|
|
284
|
+
className: "fortune-selection-copy-".concat(d, " fortune-copy"),
|
|
285
|
+
style: {
|
|
286
|
+
backgroundColor: backgroundColor
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
290
|
+
className: "fortune-selection-copy-hc",
|
|
291
|
+
style: {
|
|
292
|
+
backgroundColor: backgroundColor
|
|
293
|
+
}
|
|
294
|
+
}), ["lt", "rt", "lb", "rb"].map(function (d) {
|
|
295
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
296
|
+
key: d,
|
|
297
|
+
"data-type": d,
|
|
298
|
+
className: "fortune-selection-highlight-".concat(d, " luckysheet-highlight"),
|
|
299
|
+
style: {
|
|
300
|
+
backgroundColor: backgroundColor
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}));
|
|
304
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
305
|
+
className: "luckysheet-row-count-show luckysheet-count-show",
|
|
306
|
+
id: "luckysheet-row-count-show"
|
|
307
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
308
|
+
className: "luckysheet-column-count-show luckysheet-count-show",
|
|
309
|
+
id: "luckysheet-column-count-show"
|
|
310
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
311
|
+
className: "fortune-change-size-line",
|
|
312
|
+
hidden: !context.luckysheet_cols_change_size && !context.luckysheet_rows_change_size && !context.luckysheet_cols_freeze_drag && !context.luckysheet_rows_freeze_drag
|
|
313
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
314
|
+
className: "fortune-freeze-drag-line",
|
|
315
|
+
hidden: !context.luckysheet_cols_freeze_drag && !context.luckysheet_rows_freeze_drag
|
|
316
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
317
|
+
className: "luckysheet-cell-selected-focus",
|
|
318
|
+
style: ((_d = (_c = context.luckysheet_select_save) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0 ? function () {
|
|
319
|
+
var _a, _b;
|
|
320
|
+
var selection = _.last(context.luckysheet_select_save);
|
|
321
|
+
return _.assign({
|
|
322
|
+
left: selection.left,
|
|
323
|
+
top: selection.top,
|
|
324
|
+
width: selection.width ? selection.width - 1.8 : selection.width,
|
|
325
|
+
height: selection.height ? selection.height - 1.8 : selection.height,
|
|
326
|
+
display: "block"
|
|
327
|
+
}, fixRowStyleOverflowInFreeze(context, selection.row_focus || 0, selection.row_focus || 0, (_a = refs.globalCache.freezen) === null || _a === void 0 ? void 0 : _a[context.currentSheetId]), fixColumnStyleOverflowInFreeze(context, selection.column_focus || 0, selection.column_focus || 0, (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId]));
|
|
328
|
+
}() : {},
|
|
329
|
+
onMouseDown: function onMouseDown(e) {
|
|
330
|
+
return e.preventDefault();
|
|
331
|
+
}
|
|
332
|
+
}), ((_f = (_e = context.luckysheet_selection_range) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0) > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
333
|
+
id: "fortune-selection-copy"
|
|
334
|
+
}, context.luckysheet_selection_range.map(function (range) {
|
|
335
|
+
var r1 = range.row[0];
|
|
336
|
+
var r2 = range.row[1];
|
|
337
|
+
var c1 = range.column[0];
|
|
338
|
+
var c2 = range.column[1];
|
|
339
|
+
var row = context.visibledatarow[r2];
|
|
340
|
+
var row_pre = r1 - 1 === -1 ? 0 : context.visibledatarow[r1 - 1];
|
|
341
|
+
var col = context.visibledatacolumn[c2];
|
|
342
|
+
var col_pre = c1 - 1 === -1 ? 0 : context.visibledatacolumn[c1 - 1];
|
|
343
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
344
|
+
className: "fortune-selection-copy",
|
|
345
|
+
key: "".concat(r1, "-").concat(r2, "-").concat(c1, "-").concat(c2),
|
|
346
|
+
style: {
|
|
347
|
+
left: col_pre,
|
|
348
|
+
width: col - col_pre - 1,
|
|
349
|
+
top: row_pre,
|
|
350
|
+
height: row - row_pre - 1
|
|
351
|
+
}
|
|
352
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
353
|
+
className: "fortune-selection-copy-top fortune-copy"
|
|
354
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
355
|
+
className: "fortune-selection-copy-right fortune-copy"
|
|
356
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
357
|
+
className: "fortune-selection-copy-bottom fortune-copy"
|
|
358
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
359
|
+
className: "fortune-selection-copy-left fortune-copy"
|
|
360
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
361
|
+
className: "fortune-selection-copy-hc"
|
|
362
|
+
}));
|
|
363
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
364
|
+
id: "luckysheet-chart-rangeShow"
|
|
365
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
366
|
+
className: "fortune-cell-selected-extend"
|
|
367
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
368
|
+
className: "fortune-cell-selected-move",
|
|
369
|
+
id: "fortune-cell-selected-move",
|
|
370
|
+
onMouseDown: function onMouseDown(e) {
|
|
371
|
+
return e.preventDefault();
|
|
372
|
+
}
|
|
373
|
+
}), ((_h = (_g = context.luckysheet_select_save) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) > 0 && (/*#__PURE__*/React.createElement("div", {
|
|
374
|
+
id: "luckysheet-cell-selected-boxs"
|
|
375
|
+
}, context.luckysheet_select_save.map(function (selection, index) {
|
|
376
|
+
var _a, _b;
|
|
377
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
378
|
+
key: index,
|
|
379
|
+
id: "luckysheet-cell-selected",
|
|
380
|
+
className: "luckysheet-cell-selected",
|
|
381
|
+
style: _.assign({
|
|
382
|
+
left: selection.left_move,
|
|
383
|
+
top: selection.top_move,
|
|
384
|
+
width: selection.width_move ? selection.width_move - 1.8 : selection.width_move,
|
|
385
|
+
height: selection.height_move ? selection.height_move - 1.8 : selection.height_move,
|
|
386
|
+
display: "block"
|
|
387
|
+
}, fixRowStyleOverflowInFreeze(context, selection.row[0], selection.row[1], (_a = refs.globalCache.freezen) === null || _a === void 0 ? void 0 : _a[context.currentSheetId]), fixColumnStyleOverflowInFreeze(context, selection.column[0], selection.column[1], (_b = refs.globalCache.freezen) === null || _b === void 0 ? void 0 : _b[context.currentSheetId])),
|
|
388
|
+
onMouseDown: function onMouseDown(e) {
|
|
389
|
+
e.stopPropagation();
|
|
390
|
+
var nativeEvent = e.nativeEvent;
|
|
391
|
+
setContext(function (draftCtx) {
|
|
392
|
+
onCellsMoveStart(draftCtx, refs.globalCache, nativeEvent, refs.scrollbarX.current, refs.scrollbarY.current, containerRef.current);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
396
|
+
className: "luckysheet-cs-inner-border"
|
|
397
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
398
|
+
className: "luckysheet-cs-fillhandle",
|
|
399
|
+
onMouseDown: function onMouseDown(e) {
|
|
400
|
+
var nativeEvent = e.nativeEvent;
|
|
401
|
+
setContext(function (draftContext) {
|
|
402
|
+
createDropCellRange(draftContext, nativeEvent, containerRef.current);
|
|
403
|
+
});
|
|
404
|
+
e.stopPropagation();
|
|
405
|
+
}
|
|
406
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
407
|
+
className: "luckysheet-cs-inner-border"
|
|
408
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
409
|
+
className: "luckysheet-cs-draghandle-top luckysheet-cs-draghandle",
|
|
410
|
+
onMouseDown: function onMouseDown(e) {
|
|
411
|
+
return e.preventDefault();
|
|
412
|
+
}
|
|
413
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
414
|
+
className: "luckysheet-cs-draghandle-bottom luckysheet-cs-draghandle",
|
|
415
|
+
onMouseDown: function onMouseDown(e) {
|
|
416
|
+
return e.preventDefault();
|
|
417
|
+
}
|
|
418
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
419
|
+
className: "luckysheet-cs-draghandle-left luckysheet-cs-draghandle",
|
|
420
|
+
onMouseDown: function onMouseDown(e) {
|
|
421
|
+
return e.preventDefault();
|
|
422
|
+
}
|
|
423
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
424
|
+
className: "luckysheet-cs-draghandle-right luckysheet-cs-draghandle",
|
|
425
|
+
onMouseDown: function onMouseDown(e) {
|
|
426
|
+
return e.preventDefault();
|
|
427
|
+
}
|
|
428
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
429
|
+
className: "luckysheet-cs-touchhandle luckysheet-cs-touchhandle-lt"
|
|
430
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
431
|
+
className: "luckysheet-cs-touchhandle-btn"
|
|
432
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
433
|
+
className: "luckysheet-cs-touchhandle luckysheet-cs-touchhandle-rb"
|
|
434
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
435
|
+
className: "luckysheet-cs-touchhandle-btn"
|
|
436
|
+
})));
|
|
437
|
+
}))), ((_k = (_j = context.presences) === null || _j === void 0 ? void 0 : _j.length) !== null && _k !== void 0 ? _k : 0) > 0 && context.presences.map(function (presence, index) {
|
|
438
|
+
if (presence.sheetId !== context.currentSheetId) {
|
|
439
|
+
return null;
|
|
440
|
+
}
|
|
441
|
+
var _a = presence.selection,
|
|
442
|
+
r = _a.r,
|
|
443
|
+
c = _a.c,
|
|
444
|
+
color = presence.color;
|
|
445
|
+
var row_pre = r - 1 === -1 ? 0 : context.visibledatarow[r - 1];
|
|
446
|
+
var col_pre = c - 1 === -1 ? 0 : context.visibledatacolumn[c - 1];
|
|
447
|
+
var row = context.visibledatarow[r];
|
|
448
|
+
var col = context.visibledatacolumn[c];
|
|
449
|
+
var width = col - col_pre - 1;
|
|
450
|
+
var height = row - row_pre - 1;
|
|
451
|
+
var usernameStyle = {
|
|
452
|
+
maxWidth: width + 1,
|
|
453
|
+
backgroundColor: color
|
|
454
|
+
};
|
|
455
|
+
_.set(usernameStyle, r === 0 ? "top" : "bottom", height);
|
|
456
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
457
|
+
key: (presence === null || presence === void 0 ? void 0 : presence.userId) || index,
|
|
458
|
+
className: "fortune-presence-selection",
|
|
459
|
+
style: {
|
|
460
|
+
left: col_pre,
|
|
461
|
+
top: row_pre - 2,
|
|
462
|
+
width: width,
|
|
463
|
+
height: height,
|
|
464
|
+
borderColor: color,
|
|
465
|
+
borderWidth: 1
|
|
466
|
+
}
|
|
467
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
468
|
+
className: "fortune-presence-username",
|
|
469
|
+
style: usernameStyle
|
|
470
|
+
}, presence.username));
|
|
471
|
+
}), ((_l = context.linkCard) === null || _l === void 0 ? void 0 : _l.sheetId) === context.currentSheetId && (/*#__PURE__*/React.createElement(LinkEditCard, __assign({}, context.linkCard))), ((_m = context.rangeDialog) === null || _m === void 0 ? void 0 : _m.show) && /*#__PURE__*/React.createElement(RangeDialog, null), /*#__PURE__*/React.createElement(FilterOptions, {
|
|
472
|
+
getContainer: function getContainer() {
|
|
473
|
+
return containerRef.current;
|
|
474
|
+
}
|
|
475
|
+
}), /*#__PURE__*/React.createElement(InputBox, null), /*#__PURE__*/React.createElement(NotationBoxes, null), /*#__PURE__*/React.createElement("div", {
|
|
476
|
+
id: "luckysheet-multipleRange-show"
|
|
477
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
478
|
+
id: "luckysheet-dynamicArray-hightShow"
|
|
479
|
+
}), /*#__PURE__*/React.createElement(ImgBoxs, null), /*#__PURE__*/React.createElement(IframeBoxs, null), /*#__PURE__*/React.createElement("div", {
|
|
480
|
+
id: "luckysheet-dataVerification-dropdown-btn",
|
|
481
|
+
onClick: function onClick() {
|
|
482
|
+
setContext(function (ctx) {
|
|
483
|
+
ctx.dataVerificationDropDownList = true;
|
|
484
|
+
dataVerificationHintBoxRef.current.style.display = "none";
|
|
485
|
+
});
|
|
486
|
+
},
|
|
487
|
+
tabIndex: 0,
|
|
488
|
+
style: {
|
|
489
|
+
display: "none"
|
|
490
|
+
}
|
|
491
|
+
}, /*#__PURE__*/React.createElement(SVGIcon, {
|
|
492
|
+
name: "caret-down-fill",
|
|
493
|
+
width: 16,
|
|
494
|
+
height: 16
|
|
495
|
+
})), context.dataVerificationDropDownList && (context.dataVerification.dataRegulation.value1 !== "" || context.dataVerification.dataRegulation.value2 !== "") && (/*#__PURE__*/React.createElement(DropDownList, null)), /*#__PURE__*/React.createElement("div", {
|
|
496
|
+
id: "luckysheet-dataVerification-showHintBox",
|
|
497
|
+
ref: dataVerificationHintBoxRef
|
|
498
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
499
|
+
className: "luckysheet-cell-copy"
|
|
500
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
501
|
+
className: "luckysheet-grdblkflowpush"
|
|
502
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
503
|
+
id: "luckysheet-cell-flow_0",
|
|
504
|
+
className: "luckysheet-cell-flow luckysheetsheetchange"
|
|
505
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
506
|
+
className: "luckysheet-cell-flow-clip"
|
|
507
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
508
|
+
className: "luckysheet-grdblkpush"
|
|
509
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
510
|
+
id: "luckysheetcoltable_0",
|
|
511
|
+
className: "luckysheet-cell-flow-col"
|
|
512
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
513
|
+
id: "luckysheet-sheettable_0",
|
|
514
|
+
className: "luckysheet-cell-sheettable",
|
|
515
|
+
style: {
|
|
516
|
+
height: context.rh_height,
|
|
517
|
+
width: context.ch_width
|
|
518
|
+
}
|
|
519
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
520
|
+
id: "luckysheet-bottom-controll-row",
|
|
521
|
+
className: "luckysheet-bottom-controll-row",
|
|
522
|
+
onMouseDown: function onMouseDown(e) {
|
|
523
|
+
return e.stopPropagation();
|
|
524
|
+
},
|
|
525
|
+
onMouseUp: function onMouseUp(e) {
|
|
526
|
+
return e.stopPropagation();
|
|
527
|
+
},
|
|
528
|
+
onKeyDown: function onKeyDown(e) {
|
|
529
|
+
return e.stopPropagation();
|
|
530
|
+
},
|
|
531
|
+
onKeyUp: function onKeyUp(e) {
|
|
532
|
+
return e.stopPropagation();
|
|
533
|
+
},
|
|
534
|
+
onKeyPress: function onKeyPress(e) {
|
|
535
|
+
return e.stopPropagation();
|
|
536
|
+
},
|
|
537
|
+
onClick: function onClick(e) {
|
|
538
|
+
return e.stopPropagation();
|
|
539
|
+
},
|
|
540
|
+
onDoubleClick: function onDoubleClick(e) {
|
|
541
|
+
return e.stopPropagation();
|
|
542
|
+
},
|
|
543
|
+
tabIndex: 0,
|
|
544
|
+
style: {
|
|
545
|
+
left: context.scrollLeft,
|
|
546
|
+
display: context.allowEdit ? "block" : "none"
|
|
547
|
+
}
|
|
548
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
549
|
+
className: "fortune-add-row-button",
|
|
550
|
+
onClick: function onClick() {
|
|
551
|
+
handleBottomAddRow();
|
|
552
|
+
},
|
|
553
|
+
tabIndex: 0
|
|
554
|
+
}, info.add), /*#__PURE__*/React.createElement("input", {
|
|
555
|
+
ref: bottomAddRowInputRef,
|
|
556
|
+
type: "text",
|
|
557
|
+
style: {
|
|
558
|
+
width: 50
|
|
559
|
+
},
|
|
560
|
+
placeholder: context.addDefaultRows.toString()
|
|
561
|
+
}), " ", /*#__PURE__*/React.createElement("span", {
|
|
562
|
+
style: {
|
|
563
|
+
fontSize: 14
|
|
564
|
+
}
|
|
565
|
+
}, info.row), " ", /*#__PURE__*/React.createElement("span", {
|
|
566
|
+
style: {
|
|
567
|
+
fontSize: 14,
|
|
568
|
+
color: "#9c9c9c"
|
|
569
|
+
}
|
|
570
|
+
}, "(", info.addLast, ")"), /*#__PURE__*/React.createElement("span", {
|
|
571
|
+
className: "fortune-add-row-button",
|
|
572
|
+
onClick: function onClick() {
|
|
573
|
+
setContext(function (ctx) {
|
|
574
|
+
ctx.scrollTop = 0;
|
|
575
|
+
});
|
|
576
|
+
},
|
|
577
|
+
tabIndex: 0
|
|
578
|
+
}, info.backTop))))))));
|
|
579
|
+
};
|
|
580
|
+
export default SheetOverlay;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Sheet } from "@fileverse-dev/fortune-core";
|
|
2
|
-
import React from "react";
|
|
3
|
-
type Props = {
|
|
4
|
-
sheet: Sheet;
|
|
5
|
-
isDropPlaceholder?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const SheetItem: React.FC<Props>;
|
|
8
|
-
export default SheetItem;
|
|
1
|
+
import { Sheet } from "@fileverse-dev/fortune-core";
|
|
2
|
+
import React from "react";
|
|
3
|
+
type Props = {
|
|
4
|
+
sheet: Sheet;
|
|
5
|
+
isDropPlaceholder?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const SheetItem: React.FC<Props>;
|
|
8
|
+
export default SheetItem;
|