@fileverse-dev/fortune-core 1.0.2-mod-115 → 1.0.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/dist/packages/react/src/components/ChangeColor/index.d.ts +7 -0
- package/dist/packages/react/src/components/ConditionFormat/ConditionRules.d.ts +6 -0
- package/dist/packages/react/src/components/ConditionFormat/index.d.ts +7 -0
- package/dist/packages/react/src/components/ContextMenu/Divider.d.ts +3 -0
- package/dist/packages/react/src/components/ContextMenu/FilterMenu.d.ts +3 -0
- package/dist/packages/react/src/components/ContextMenu/Menu.d.ts +8 -0
- package/dist/packages/react/src/components/ContextMenu/SheetTab.d.ts +4 -0
- package/dist/packages/react/src/components/ContextMenu/index.d.ts +5 -0
- package/dist/packages/react/src/components/CustomSort/index.d.ts +4 -0
- package/dist/packages/react/src/components/DataVerification/DropdownList.d.ts +4 -0
- package/dist/packages/react/src/components/DataVerification/RangeDialog.d.ts +4 -0
- package/dist/packages/react/src/components/DataVerification/getDisplayedRangeTxt.d.ts +2 -0
- package/dist/packages/react/src/components/DataVerification/index.d.ts +4 -0
- package/dist/packages/react/src/components/Dialog/index.d.ts +15 -0
- package/dist/packages/react/src/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +11 -0
- package/dist/packages/react/src/components/DunePreview/DunePreview.d.ts +13 -0
- package/dist/packages/react/src/components/FilterOption/index.d.ts +5 -0
- package/dist/packages/react/src/components/FormatSearch/index.d.ts +6 -0
- package/dist/packages/react/src/components/FormulaSearch/index.d.ts +5 -0
- package/dist/packages/react/src/components/FxEditor/NameBox.d.ts +3 -0
- package/dist/packages/react/src/components/FxEditor/index.d.ts +4 -0
- package/dist/packages/react/src/components/IFrameBoxs/iFrameBoxs.d.ts +4 -0
- package/dist/packages/react/src/components/ImgBoxs/index.d.ts +3 -0
- package/dist/packages/react/src/components/LinkEidtCard/index.d.ts +5 -0
- package/dist/packages/react/src/components/LocationCondition/index.d.ts +3 -0
- package/dist/packages/react/src/components/MessageBox/index.d.ts +9 -0
- package/dist/packages/react/src/components/NotationBoxes/index.d.ts +3 -0
- package/dist/packages/react/src/components/ResetColumnWidth/index.d.ts +2 -0
- package/dist/packages/react/src/components/SVGDefines.d.ts +5 -0
- package/dist/packages/react/src/components/SVGIcon.d.ts +9 -0
- package/dist/packages/react/src/components/SearchReplace/index.d.ts +6 -0
- package/dist/packages/react/src/components/Sheet/index.d.ts +8 -0
- package/dist/packages/react/src/components/SheetList/SheetHiddenButton.d.ts +8 -0
- package/dist/packages/react/src/components/SheetList/SheetListItem.d.ts +9 -0
- package/dist/packages/react/src/components/SheetList/index.d.ts +4 -0
- package/dist/packages/react/src/components/SheetOverlay/ColumnHeader.d.ts +3 -0
- package/dist/packages/react/src/components/SheetOverlay/ContentEditable.d.ts +11 -0
- package/dist/packages/react/src/components/SheetOverlay/FormulaHint/index.d.ts +4 -0
- package/dist/packages/react/src/components/SheetOverlay/FormulaSearch/constant.d.ts +63 -0
- package/dist/packages/react/src/components/SheetOverlay/FormulaSearch/index.d.ts +4 -0
- package/dist/packages/react/src/components/SheetOverlay/InputBox.d.ts +3 -0
- package/dist/packages/react/src/components/SheetOverlay/RowHeader.d.ts +3 -0
- package/dist/packages/react/src/components/SheetOverlay/ScrollBar/index.d.ts +7 -0
- package/dist/packages/react/src/components/SheetOverlay/index.d.ts +4 -0
- package/dist/packages/react/src/components/SheetTab/SheetItem.d.ts +8 -0
- package/dist/packages/react/src/components/SheetTab/index.d.ts +4 -0
- package/dist/packages/react/src/components/SplitColumn/index.d.ts +3 -0
- package/dist/packages/react/src/components/Toolbar/Button.d.ts +12 -0
- package/dist/packages/react/src/components/Toolbar/ColorPicker.d.ts +6 -0
- package/dist/packages/react/src/components/Toolbar/Combo.d.ts +12 -0
- package/dist/packages/react/src/components/Toolbar/CustomBorder.d.ts +7 -0
- package/dist/packages/react/src/components/Toolbar/CustomButton.d.ts +11 -0
- package/dist/packages/react/src/components/Toolbar/CustomColor.d.ts +8 -0
- package/dist/packages/react/src/components/Toolbar/CustomIcon.d.ts +9 -0
- package/dist/packages/react/src/components/Toolbar/Divider.d.ts +4 -0
- package/dist/packages/react/src/components/Toolbar/MoreItemsContainer.d.ts +6 -0
- package/dist/packages/react/src/components/Toolbar/Select.d.ts +14 -0
- package/dist/packages/react/src/components/Toolbar/index.d.ts +10 -0
- package/dist/packages/react/src/components/Workbook/api.d.ts +1177 -0
- package/dist/packages/react/src/components/Workbook/index.d.ts +1185 -0
- package/dist/packages/react/src/components/ZoomControl/index.d.ts +4 -0
- package/dist/packages/react/src/components/index.d.ts +4 -0
- package/dist/packages/react/src/constants.d.ts +1 -0
- package/dist/packages/react/src/context/index.d.ts +25 -0
- package/dist/packages/react/src/context/modal.d.ts +10 -0
- package/dist/packages/react/src/hooks/useAlert.d.ts +4 -0
- package/dist/packages/react/src/hooks/useDialog.d.ts +5 -0
- package/dist/packages/react/src/hooks/useOutsideClick.d.ts +2 -0
- package/dist/packages/react/src/hooks/usePrevious.d.ts +2 -0
- package/dist/packages/react/src/index.d.ts +1 -0
- package/dist/packages/react/src/utils/datepickerStyles.d.ts +2 -0
- package/dist/stories/API.stories.d.ts +1210 -0
- package/dist/stories/Collabration.stories.d.ts +2359 -0
- package/dist/stories/Features.stories.d.ts +9430 -0
- package/dist/stories/data/cell.d.ts +983 -0
- package/dist/stories/data/dataVerification.d.ts +131 -0
- package/dist/stories/data/empty.d.ts +10 -0
- package/dist/stories/data/formula.d.ts +362 -0
- package/dist/stories/data/freeze.d.ts +34 -0
- package/dist/stories/data/protected.d.ts +40 -0
- package/dist/stories/utils.d.ts +1 -0
- package/package.json +5 -1
- /package/dist/{api → packages/core/src/api}/cell.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/common.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/errors.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/index.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/merge.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/range.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/rowcol.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/sheet.d.ts +0 -0
- /package/dist/{api → packages/core/src/api}/workbook.d.ts +0 -0
- /package/dist/{canvas.d.ts → packages/core/src/canvas.d.ts} +0 -0
- /package/dist/{context.d.ts → packages/core/src/context.d.ts} +0 -0
- /package/dist/{events → packages/core/src/events}/copy.d.ts +0 -0
- /package/dist/{events → packages/core/src/events}/index.d.ts +0 -0
- /package/dist/{events → packages/core/src/events}/keyboard.d.ts +0 -0
- /package/dist/{events → packages/core/src/events}/mouse.d.ts +0 -0
- /package/dist/{events → packages/core/src/events}/paste.d.ts +0 -0
- /package/dist/{index.d.ts → packages/core/src/index.d.ts} +0 -0
- /package/dist/{locale → packages/core/src/locale}/en.d.ts +0 -0
- /package/dist/{locale → packages/core/src/locale}/es.d.ts +0 -0
- /package/dist/{locale → packages/core/src/locale}/hi.d.ts +0 -0
- /package/dist/{locale → packages/core/src/locale}/index.d.ts +0 -0
- /package/dist/{locale → packages/core/src/locale}/zh.d.ts +0 -0
- /package/dist/{locale → packages/core/src/locale}/zh_tw.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/ConditionFormat.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/border.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/cell.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/clipboard.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/color.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/comment.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/conditionalFormat.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/cursor.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/dataVerification.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/dropCell.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/filter.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/format.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/formula.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/freeze.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/hyperlink.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/iframe.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/image.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/index.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/inline-string.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/location.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/locationCondition.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/merge.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/mobile.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/moveCells.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/protection.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/refresh.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/rowcol.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/screenshot.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/searchReplace.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/selection.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/sheet.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/sort.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/splitColumn.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/text.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/toolbar.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/validation.d.ts +0 -0
- /package/dist/{modules → packages/core/src/modules}/zoom.d.ts +0 -0
- /package/dist/{settings.d.ts → packages/core/src/settings.d.ts} +0 -0
- /package/dist/{types.d.ts → packages/core/src/types.d.ts} +0 -0
- /package/dist/{utils → packages/core/src/utils}/freeze.d.ts +0 -0
- /package/dist/{utils → packages/core/src/utils}/index.d.ts +0 -0
- /package/dist/{utils → packages/core/src/utils}/patch.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const API_KEY_PLACEHOLDER: Record<string, string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Context, Settings, GlobalCache, PatchOptions } from "@fileverse-dev/fortune-core";
|
|
3
|
+
export type RefValues = {
|
|
4
|
+
globalCache: GlobalCache;
|
|
5
|
+
cellInput: React.MutableRefObject<HTMLDivElement | null>;
|
|
6
|
+
fxInput: React.MutableRefObject<HTMLDivElement | null>;
|
|
7
|
+
canvas: React.MutableRefObject<HTMLCanvasElement | null>;
|
|
8
|
+
scrollbarX: React.MutableRefObject<HTMLDivElement | null>;
|
|
9
|
+
scrollbarY: React.MutableRefObject<HTMLDivElement | null>;
|
|
10
|
+
cellArea: React.MutableRefObject<HTMLDivElement | null>;
|
|
11
|
+
workbookContainer: React.MutableRefObject<HTMLDivElement | null>;
|
|
12
|
+
};
|
|
13
|
+
export type SetContextOptions = {
|
|
14
|
+
noHistory?: boolean;
|
|
15
|
+
logPatch?: boolean;
|
|
16
|
+
} & PatchOptions;
|
|
17
|
+
declare const WorkbookContext: React.Context<{
|
|
18
|
+
context: Context;
|
|
19
|
+
setContext: (recipe: (ctx: Context) => void, options?: SetContextOptions) => void;
|
|
20
|
+
settings: Required<Settings>;
|
|
21
|
+
refs: RefValues;
|
|
22
|
+
handleUndo: () => void;
|
|
23
|
+
handleRedo: () => void;
|
|
24
|
+
}>;
|
|
25
|
+
export default WorkbookContext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ModalContext: React.Context<{
|
|
3
|
+
component: React.ReactNode;
|
|
4
|
+
showModal: (c: React.ReactNode) => void;
|
|
5
|
+
hideModal: () => void;
|
|
6
|
+
}>;
|
|
7
|
+
declare const ModalProvider: React.FC<{
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export { ModalContext, ModalProvider };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function useDialog(): {
|
|
3
|
+
showDialog: (content: string | React.ReactNode, type?: "ok" | "yesno", title?: string | React.ReactNode, okLabel?: string, cancelLabel?: string, onOk?: () => void, onCancel?: () => void) => void;
|
|
4
|
+
hideDialog: () => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const datepickerStyles = "\n .datepicker-toggle {\n display: inline-block;\n position: relative;\n width: 100%;\n }\n \n .datepicker-toggle-button {\n opacity: 0.3;\n position: absolute;\n right: 12px;\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n height: 16px;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGxpbmUgeDE9IjE2IiB5MT0iMiIgeDI9IjE2IiB5Mj0iNiI+PC9saW5lPjxsaW5lIHgxPSI4IiB5MT0iMiIgeDI9IjgiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjMiIHkxPSIxMCIgeDI9IjIxIiB5Mj0iMTAiPjwvbGluZT48L3N2Zz4=');\n background-repeat: no-repeat;\n background-position: center;\n pointer-events: none;\n }\n \n .datepicker-input {\n width: 100%;\n padding: 8px 12px;\n border: 1px solid #e2e8f0;\n border-radius: 6px;\n font-size: 14px;\n line-height: 1.5;\n color: #1a202c;\n background-color: #fff;\n cursor: pointer;\n }\n \n .datepicker-input::-webkit-calendar-picker-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n cursor: pointer;\n opacity: 0;\n }\n \n .datepicker-input:focus {\n outline: none;\n border-color: #4299e1;\n box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);\n }\n";
|
|
2
|
+
export declare const injectDatepickerStyles: () => void;
|