@fileverse-dev/fortune-react 1.1.0 → 1.1.1
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
|
@@ -0,0 +1,151 @@
|
|
|
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 _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _ui = require("@fileverse/ui");
|
|
10
|
+
var _fortuneCore = require("@fileverse-dev/fortune-core");
|
|
11
|
+
var _context = _interopRequireDefault(require("../../context"));
|
|
12
|
+
require("./iFrameBoxs.css");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
|
+
var IframeBoxs = function IframeBoxs() {
|
|
16
|
+
var _a = (0, _react.useContext)(_context.default),
|
|
17
|
+
context = _a.context,
|
|
18
|
+
setContext = _a.setContext,
|
|
19
|
+
refs = _a.refs;
|
|
20
|
+
var containerRef = (0, _react.useRef)(null);
|
|
21
|
+
var currentSheetIframes = (0, _react.useMemo)(function () {
|
|
22
|
+
var currentSheet = context.luckysheetfile.find(function (sheet) {
|
|
23
|
+
return sheet.id === context.currentSheetId;
|
|
24
|
+
});
|
|
25
|
+
return (currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes) || [];
|
|
26
|
+
}, [context.luckysheetfile, context.currentSheetId]);
|
|
27
|
+
(0, _react.useEffect)(function () {
|
|
28
|
+
var handleClickOutside = function handleClickOutside(e) {
|
|
29
|
+
if (!containerRef.current) return;
|
|
30
|
+
var iframeBoxes = containerRef.current.querySelectorAll(".luckysheet-modal-dialog-iframe");
|
|
31
|
+
var clickedInsideSomeIframe = Array.from(iframeBoxes).some(function (el) {
|
|
32
|
+
return el.contains(e.target);
|
|
33
|
+
});
|
|
34
|
+
if (!clickedInsideSomeIframe && context.activeIframe !== undefined) {
|
|
35
|
+
setContext(function (ctx) {
|
|
36
|
+
ctx.activeIframe = undefined;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
41
|
+
return function () {
|
|
42
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
43
|
+
};
|
|
44
|
+
}, [context.activeIframe, setContext]);
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
+
id: "fortune-iframe-boxes",
|
|
47
|
+
ref: containerRef
|
|
48
|
+
}, currentSheetIframes === null || currentSheetIframes === void 0 ? void 0 : currentSheetIframes.map(function (frame) {
|
|
49
|
+
var isActive = frame.id === context.activeIframe;
|
|
50
|
+
var style = {
|
|
51
|
+
width: frame.width * context.zoomRatio,
|
|
52
|
+
height: frame.height * context.zoomRatio,
|
|
53
|
+
left: frame.left * context.zoomRatio,
|
|
54
|
+
top: frame.top * context.zoomRatio,
|
|
55
|
+
position: "absolute",
|
|
56
|
+
padding: 0,
|
|
57
|
+
zIndex: isActive ? 300 : 200
|
|
58
|
+
};
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
+
key: frame.id,
|
|
61
|
+
id: isActive ? "fortune-modal-dialog-activeIframe" : frame.id,
|
|
62
|
+
className: "luckysheet-modal-dialog luckysheet-modal-dialog-iframe",
|
|
63
|
+
style: style,
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
if (!isActive) {
|
|
66
|
+
setContext(function (ctx) {
|
|
67
|
+
ctx.activeIframe = frame.id;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
e.stopPropagation();
|
|
71
|
+
},
|
|
72
|
+
onMouseDown: function onMouseDown(e) {
|
|
73
|
+
if (isActive) {
|
|
74
|
+
(0, _fortuneCore.onIframeMoveStart)(context, refs.globalCache, e.nativeEvent);
|
|
75
|
+
var handleMouseMove_1 = function handleMouseMove_1(moveEvent) {
|
|
76
|
+
(0, _fortuneCore.onIframeMove)(context, refs.globalCache, moveEvent);
|
|
77
|
+
};
|
|
78
|
+
var _handleMouseUp_ = function handleMouseUp_1() {
|
|
79
|
+
(0, _fortuneCore.onIframeMoveEnd)(context, refs.globalCache);
|
|
80
|
+
document.removeEventListener("mousemove", handleMouseMove_1);
|
|
81
|
+
document.removeEventListener("mouseup", _handleMouseUp_);
|
|
82
|
+
};
|
|
83
|
+
document.addEventListener("mousemove", handleMouseMove_1);
|
|
84
|
+
document.addEventListener("mouseup", _handleMouseUp_);
|
|
85
|
+
}
|
|
86
|
+
e.stopPropagation();
|
|
87
|
+
}
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
+
className: "luckysheet-modal-dialog-content",
|
|
90
|
+
style: {
|
|
91
|
+
width: "100%",
|
|
92
|
+
height: "100%",
|
|
93
|
+
overflow: "hidden"
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement("iframe", {
|
|
96
|
+
title: "iframe-".concat(frame.id),
|
|
97
|
+
src: frame.src,
|
|
98
|
+
style: {
|
|
99
|
+
width: "100%",
|
|
100
|
+
height: "100%",
|
|
101
|
+
border: "none",
|
|
102
|
+
pointerEvents: "none"
|
|
103
|
+
}
|
|
104
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
105
|
+
className: "luckysheet-modal-dialog-border"
|
|
106
|
+
}), isActive && (/*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
+
className: "luckysheet-modal-dialog-resize"
|
|
108
|
+
}, ["lt", "mt", "lm", "rm", "rt", "lb", "mb", "rb"].map(function (v) {
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
110
|
+
key: v,
|
|
111
|
+
className: "luckysheet-modal-dialog-resize-item luckysheet-modal-dialog-resize-item-".concat(v),
|
|
112
|
+
"data-type": v,
|
|
113
|
+
onMouseDown: function onMouseDown(e) {
|
|
114
|
+
(0, _fortuneCore.onIframeResizeStart)(context, refs.globalCache, e.nativeEvent, v);
|
|
115
|
+
var handleMouseMove = function handleMouseMove(moveEvent) {
|
|
116
|
+
(0, _fortuneCore.onIframeResize)(context, refs.globalCache, moveEvent);
|
|
117
|
+
};
|
|
118
|
+
var _handleMouseUp = function handleMouseUp() {
|
|
119
|
+
(0, _fortuneCore.onIframeResizeEnd)(context, refs.globalCache);
|
|
120
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
121
|
+
document.removeEventListener("mouseup", _handleMouseUp);
|
|
122
|
+
};
|
|
123
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
124
|
+
document.addEventListener("mouseup", _handleMouseUp);
|
|
125
|
+
e.stopPropagation();
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
129
|
+
className: "luckysheet-modal-dialog-controll"
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
|
|
131
|
+
icon: "Trash2",
|
|
132
|
+
onClick: function onClick() {
|
|
133
|
+
setContext(function (ctx) {
|
|
134
|
+
var _a;
|
|
135
|
+
var currentSheet = ctx.luckysheetfile.find(function (sheet) {
|
|
136
|
+
return sheet.id === ctx.currentSheetId;
|
|
137
|
+
});
|
|
138
|
+
if (currentSheet) {
|
|
139
|
+
currentSheet.iframes = (_a = currentSheet.iframes) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
|
|
140
|
+
return f.id !== frame.id;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
ctx.activeIframe = undefined;
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
variant: "ghost",
|
|
147
|
+
className: "fortune-iframe-boxes-delete-button"
|
|
148
|
+
})))));
|
|
149
|
+
}));
|
|
150
|
+
};
|
|
151
|
+
var _default = exports.default = IframeBoxs;
|
|
@@ -0,0 +1,228 @@
|
|
|
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 _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
+
var _fortuneCore = require("@fileverse-dev/fortune-core");
|
|
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 ImgBoxs = function ImgBoxs() {
|
|
15
|
+
var _a;
|
|
16
|
+
var _b = (0, _react.useContext)(_context.default),
|
|
17
|
+
context = _b.context,
|
|
18
|
+
setContext = _b.setContext,
|
|
19
|
+
refs = _b.refs;
|
|
20
|
+
var activeImg = (0, _react.useMemo)(function () {
|
|
21
|
+
return _lodash.default.find(context.insertedImgs, {
|
|
22
|
+
id: context.activeImg
|
|
23
|
+
});
|
|
24
|
+
}, [context.activeImg, context.insertedImgs]);
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
id: "luckysheet-image-showBoxs"
|
|
27
|
+
}, activeImg && (/*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
+
id: "luckysheet-modal-dialog-activeImage",
|
|
29
|
+
className: "luckysheet-modal-dialog",
|
|
30
|
+
style: {
|
|
31
|
+
padding: 0,
|
|
32
|
+
position: "absolute",
|
|
33
|
+
zIndex: 300,
|
|
34
|
+
width: activeImg.width * context.zoomRatio,
|
|
35
|
+
height: activeImg.height * context.zoomRatio,
|
|
36
|
+
left: activeImg.left * context.zoomRatio,
|
|
37
|
+
top: activeImg.top * context.zoomRatio
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
+
className: "luckysheet-modal-dialog-border",
|
|
41
|
+
style: {
|
|
42
|
+
position: "absolute"
|
|
43
|
+
}
|
|
44
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
+
className: "luckysheet-modal-dialog-content",
|
|
46
|
+
style: {
|
|
47
|
+
width: activeImg.width * context.zoomRatio,
|
|
48
|
+
height: activeImg.height * context.zoomRatio,
|
|
49
|
+
backgroundImage: "url(".concat(activeImg.src, ")"),
|
|
50
|
+
backgroundSize: "".concat(activeImg.width * context.zoomRatio, "px ").concat(activeImg.height * context.zoomRatio, "px"),
|
|
51
|
+
backgroundRepeat: "no-repeat"
|
|
52
|
+
},
|
|
53
|
+
onMouseDown: function onMouseDown(e) {
|
|
54
|
+
var nativeEvent = e.nativeEvent;
|
|
55
|
+
(0, _fortuneCore.onImageMoveStart)(context, refs.globalCache, nativeEvent);
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
}
|
|
58
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
+
className: "luckysheet-modal-dialog-resize"
|
|
60
|
+
}, ["lt", "mt", "lm", "rm", "rt", "lb", "mb", "rb"].map(function (v) {
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
key: v,
|
|
63
|
+
className: "luckysheet-modal-dialog-resize-item luckysheet-modal-dialog-resize-item-".concat(v),
|
|
64
|
+
"data-type": v,
|
|
65
|
+
onMouseDown: function onMouseDown(e) {
|
|
66
|
+
var nativeEvent = e.nativeEvent;
|
|
67
|
+
(0, _fortuneCore.onImageResizeStart)(refs.globalCache, nativeEvent, v);
|
|
68
|
+
e.stopPropagation();
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
+
className: "luckysheet-modal-dialog-controll"
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
74
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-crop",
|
|
75
|
+
role: "button",
|
|
76
|
+
tabIndex: 0,
|
|
77
|
+
"aria-label": "\u88C1\u526A",
|
|
78
|
+
title: "\u88C1\u526A"
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
80
|
+
className: "fa fa-pencil",
|
|
81
|
+
"aria-hidden": "true"
|
|
82
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
83
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-restore",
|
|
84
|
+
role: "button",
|
|
85
|
+
tabIndex: 0,
|
|
86
|
+
"aria-label": "\u6062\u590D\u539F\u56FE",
|
|
87
|
+
title: "\u6062\u590D\u539F\u56FE"
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
89
|
+
className: "fa fa-window-maximize",
|
|
90
|
+
"aria-hidden": "true"
|
|
91
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
92
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-del",
|
|
93
|
+
role: "button",
|
|
94
|
+
tabIndex: 0,
|
|
95
|
+
"aria-label": "\u5220\u9664",
|
|
96
|
+
title: "\u5220\u9664"
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
98
|
+
className: "fa fa-trash",
|
|
99
|
+
"aria-hidden": "true"
|
|
100
|
+
}))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
101
|
+
className: "img-list"
|
|
102
|
+
}, (_a = context.insertedImgs) === null || _a === void 0 ? void 0 : _a.map(function (v) {
|
|
103
|
+
var id = v.id,
|
|
104
|
+
left = v.left,
|
|
105
|
+
top = v.top,
|
|
106
|
+
width = v.width,
|
|
107
|
+
height = v.height,
|
|
108
|
+
src = v.src;
|
|
109
|
+
if (v.id === context.activeImg) return null;
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
111
|
+
id: id,
|
|
112
|
+
key: id,
|
|
113
|
+
className: "luckysheet-modal-dialog luckysheet-modal-dialog-image",
|
|
114
|
+
style: {
|
|
115
|
+
width: width * context.zoomRatio,
|
|
116
|
+
height: height * context.zoomRatio,
|
|
117
|
+
padding: 0,
|
|
118
|
+
position: "absolute",
|
|
119
|
+
left: left * context.zoomRatio,
|
|
120
|
+
top: top * context.zoomRatio,
|
|
121
|
+
zIndex: 200
|
|
122
|
+
},
|
|
123
|
+
onMouseDown: function onMouseDown(e) {
|
|
124
|
+
return e.stopPropagation();
|
|
125
|
+
},
|
|
126
|
+
onClick: function onClick(e) {
|
|
127
|
+
setContext(function (ctx) {
|
|
128
|
+
ctx.activeImg = id;
|
|
129
|
+
});
|
|
130
|
+
e.stopPropagation();
|
|
131
|
+
},
|
|
132
|
+
tabIndex: 0
|
|
133
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
134
|
+
className: "luckysheet-modal-dialog-content",
|
|
135
|
+
style: {
|
|
136
|
+
width: "100%",
|
|
137
|
+
height: "100%",
|
|
138
|
+
overflow: "hidden",
|
|
139
|
+
position: "relative"
|
|
140
|
+
}
|
|
141
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
142
|
+
src: src,
|
|
143
|
+
alt: "",
|
|
144
|
+
style: {
|
|
145
|
+
width: width * context.zoomRatio,
|
|
146
|
+
height: height * context.zoomRatio
|
|
147
|
+
}
|
|
148
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
+
className: "luckysheet-modal-dialog-border"
|
|
150
|
+
}));
|
|
151
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
+
id: "luckysheet-modal-dialog-cropping",
|
|
153
|
+
className: "luckysheet-modal-dialog",
|
|
154
|
+
style: {
|
|
155
|
+
display: "none",
|
|
156
|
+
padding: 0,
|
|
157
|
+
position: "absolute",
|
|
158
|
+
zIndex: 300
|
|
159
|
+
}
|
|
160
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
161
|
+
className: "cropping-mask"
|
|
162
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
163
|
+
className: "cropping-content"
|
|
164
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
165
|
+
className: "luckysheet-modal-dialog-border",
|
|
166
|
+
style: {
|
|
167
|
+
position: "absolute"
|
|
168
|
+
}
|
|
169
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
170
|
+
className: "luckysheet-modal-dialog-resize"
|
|
171
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
+
className: "resize-item lt",
|
|
173
|
+
"data-type": "lt"
|
|
174
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
+
className: "resize-item mt",
|
|
176
|
+
"data-type": "mt"
|
|
177
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
178
|
+
className: "resize-item lm",
|
|
179
|
+
"data-type": "lm"
|
|
180
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
181
|
+
className: "resize-item rm",
|
|
182
|
+
"data-type": "rm"
|
|
183
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
184
|
+
className: "resize-item rt",
|
|
185
|
+
"data-type": "rt"
|
|
186
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
187
|
+
className: "resize-item lb",
|
|
188
|
+
"data-type": "lb"
|
|
189
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
190
|
+
className: "resize-item mb",
|
|
191
|
+
"data-type": "mb"
|
|
192
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
193
|
+
className: "resize-item rb",
|
|
194
|
+
"data-type": "rb"
|
|
195
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
196
|
+
className: "luckysheet-modal-dialog-controll"
|
|
197
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
198
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-crop",
|
|
199
|
+
role: "button",
|
|
200
|
+
tabIndex: 0,
|
|
201
|
+
"aria-label": "\u88C1\u526A",
|
|
202
|
+
title: "\u88C1\u526A"
|
|
203
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
204
|
+
className: "fa fa-pencil",
|
|
205
|
+
"aria-hidden": "true"
|
|
206
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
207
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-restore",
|
|
208
|
+
role: "button",
|
|
209
|
+
tabIndex: 0,
|
|
210
|
+
"aria-label": "\u6062\u590D\u539F\u56FE",
|
|
211
|
+
title: "\u6062\u590D\u539F\u56FE"
|
|
212
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
213
|
+
className: "fa fa-window-maximize",
|
|
214
|
+
"aria-hidden": "true"
|
|
215
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
216
|
+
className: "luckysheet-modal-controll-btn luckysheet-modal-controll-del",
|
|
217
|
+
role: "button",
|
|
218
|
+
tabIndex: 0,
|
|
219
|
+
"aria-label": "\u5220\u9664",
|
|
220
|
+
title: "\u5220\u9664"
|
|
221
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
222
|
+
className: "fa fa-trash",
|
|
223
|
+
"aria-hidden": "true"
|
|
224
|
+
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
225
|
+
className: "cell-date-picker"
|
|
226
|
+
}));
|
|
227
|
+
};
|
|
228
|
+
var _default = exports.default = ImgBoxs;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
.fortune-link-modify-modal {
|
|
2
|
+
position: absolute;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
z-index: 300;
|
|
6
|
+
padding: 16px 20px 20px 20px;
|
|
7
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
8
|
+
border: 1px solid #e5e5e5;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
min-width: 320px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.fortune-link-cards-container {
|
|
14
|
+
position: absolute;
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 16px;
|
|
17
|
+
z-index: 300;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fortune-link-card {
|
|
21
|
+
position: absolute;
|
|
22
|
+
background-color: #fff;
|
|
23
|
+
border: 1px solid #e5e5e5;
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
padding: 16px;
|
|
26
|
+
width: 300px;
|
|
27
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 12px;
|
|
31
|
+
z-index: 300;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fortune-link-type-select {
|
|
35
|
+
width: 100% !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.fortune-link-type-dropdown {
|
|
39
|
+
z-index: 999999 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fortune-sheet-dropdown {
|
|
43
|
+
z-index: 999999 !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.fortune-input-with-icon {
|
|
47
|
+
position: relative;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.fortune-input-with-icon .input-icon {
|
|
53
|
+
position: absolute;
|
|
54
|
+
left: 12px;
|
|
55
|
+
top: 50%;
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
width: 16px;
|
|
58
|
+
height: 16px;
|
|
59
|
+
color: #666;
|
|
60
|
+
z-index: 1;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fortune-input-with-icon .input-icon svg {
|
|
67
|
+
width: 16px;
|
|
68
|
+
height: 16px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.fortune-link-input {
|
|
72
|
+
width: 100% !important;
|
|
73
|
+
padding-left: 36px !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.fortune-sheet-select {
|
|
77
|
+
width: 100% !important;
|
|
78
|
+
padding-left: 36px !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Ensure Select dropdowns appear above everything */
|
|
82
|
+
[data-radix-portal] {
|
|
83
|
+
z-index: 999999 !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.fortune-insert-button {
|
|
87
|
+
width: 100% !important;
|
|
88
|
+
border: none !important;
|
|
89
|
+
border-radius: 6px !important;
|
|
90
|
+
padding: 12px !important;
|
|
91
|
+
font-weight: 500 !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.fortune-link-modify-modal.link-toolbar {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: row;
|
|
97
|
+
padding: 2px 8px 2px 16px;
|
|
98
|
+
align-items: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.fortune-link-modify-modal .link-content {
|
|
102
|
+
margin-right: 6px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.fortune-link-modify-modal .link-content:hover {
|
|
106
|
+
color: #2674fb;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.fortune-link-modify-modal .divider {
|
|
111
|
+
width: 1px;
|
|
112
|
+
height: 16px;
|
|
113
|
+
margin: 0px 6px;
|
|
114
|
+
background-color: #e0e0e0;
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.fortune-link-modify-modal .fortune-toolbar-button {
|
|
119
|
+
padding: 6px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fortune-link-modify-modal .fortune-toolbar-button:hover {
|
|
123
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.fortune-link-modify-modal.range-selection-modal {
|
|
128
|
+
width: 380px;
|
|
129
|
+
padding: 22px;
|
|
130
|
+
user-select: auto;
|
|
131
|
+
background-color: #fff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.fortune-link-modify-line {
|
|
135
|
+
padding-top: 16px;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
gap: 8px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.fortune-link-modify-line:first-child {
|
|
142
|
+
padding-top: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.fortune-link-modify-title {
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
color: #333333;
|
|
149
|
+
margin-bottom: 4px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fortune-link-modify-input {
|
|
153
|
+
width: 100% !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.fortune-link-modify-select {
|
|
157
|
+
width: 100% !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.input-with-selector {
|
|
161
|
+
position: relative;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.input-with-selector .fortune-link-modify-input {
|
|
167
|
+
padding-right: 32px !important;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.fortune-link-modify-cell-selector {
|
|
171
|
+
position: absolute;
|
|
172
|
+
right: 8px;
|
|
173
|
+
top: 50%;
|
|
174
|
+
transform: translateY(-50%);
|
|
175
|
+
width: 20px;
|
|
176
|
+
height: 20px;
|
|
177
|
+
padding: 2px;
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
border: none;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
background: transparent;
|
|
184
|
+
border-radius: 4px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.fortune-link-modify-cell-selector:hover {
|
|
188
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fortune-link-modify-modal .modal-title {
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
font-size: 18px;
|
|
194
|
+
color: rgba(0, 0, 0, 0.88);
|
|
195
|
+
margin-bottom: 16px;
|
|
196
|
+
line-height: 24px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.fortune-link-modify-modal .range-selection-input {
|
|
200
|
+
width: 100% !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.fortune-link-modify-modal .modal-icon-close {
|
|
204
|
+
position: absolute;
|
|
205
|
+
right: 22px;
|
|
206
|
+
top: 22px;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
width: 20px;
|
|
209
|
+
height: 20px;
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
border-radius: 4px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.fortune-link-modify-modal .modal-icon-close:hover {
|
|
217
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.fortune-link-modify-modal .validation-input-tip {
|
|
221
|
+
font-size: 12px;
|
|
222
|
+
color: #ef4e2f;
|
|
223
|
+
margin-top: 4px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.fortune-link-modify-modal .button-group {
|
|
227
|
+
display: flex;
|
|
228
|
+
gap: 12px;
|
|
229
|
+
justify-content: flex-end;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.fortune-link-modify-modal .modal-footer {
|
|
233
|
+
display: flex;
|
|
234
|
+
justify-content: flex-end;
|
|
235
|
+
padding-top: 20px;
|
|
236
|
+
margin-top: 8px;
|
|
237
|
+
border-top: 1px solid #f0f0f0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.fortune-link-modify-modal.range-selection-modal .modal-footer {
|
|
241
|
+
padding-top: 16px;
|
|
242
|
+
border-top: 1px solid #f0f0f0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Error state styling for fileverse/ui components */
|
|
246
|
+
.fortune-link-modify-modal .error-input input,
|
|
247
|
+
.fortune-link-card .error-input input {
|
|
248
|
+
border-color: #ef4e2f !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.fortune-link-modify-modal .error-input input:focus,
|
|
252
|
+
.fortune-link-card .error-input input:focus {
|
|
253
|
+
border-color: #ef4e2f !important;
|
|
254
|
+
box-shadow: 0 0 0 2px rgba(239, 78, 47, 0.2) !important;
|
|
255
|
+
}
|