@fileverse-dev/fortune-core 1.0.2-mod-116 → 1.0.3
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,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = React.PropsWithChildren<{
|
|
3
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
|
|
4
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
|
|
5
|
+
onMouseEnter?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, container: HTMLDivElement) => void;
|
|
6
|
+
}>;
|
|
7
|
+
declare const Menu: React.FC<Props>;
|
|
8
|
+
export default Menu;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
type Props = {
|
|
4
|
+
type?: "ok" | "yesno";
|
|
5
|
+
onOk?: () => void;
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
containerStyle?: React.CSSProperties;
|
|
8
|
+
contentStyle?: React.CSSProperties;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
title?: string | React.ReactNode;
|
|
11
|
+
okLabel?: string;
|
|
12
|
+
cancelLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const Dialog: React.FC<Props>;
|
|
15
|
+
export default Dialog;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./duneChartsInputModal.css";
|
|
3
|
+
interface DuneChartsInputModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSubmit: (value: string) => void;
|
|
7
|
+
submitText?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const DuneChartsInputModal: ({ isOpen, onClose, onSubmit, submitText, placeholder, }: DuneChartsInputModalProps) => React.JSX.Element | null;
|
|
11
|
+
export default DuneChartsInputModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
interface DunePreviewProps {
|
|
4
|
+
url: string;
|
|
5
|
+
position: {
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
};
|
|
9
|
+
onKeepAsLink: () => void;
|
|
10
|
+
onEmbed: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const DunePreview: React.FC<DunePreviewProps>;
|
|
13
|
+
export default DunePreview;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type ContentEditableProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
3
|
+
initialContent?: string;
|
|
4
|
+
innerRef?: (e: HTMLDivElement | null) => void;
|
|
5
|
+
onChange?: (html: string, isBlur?: boolean) => void;
|
|
6
|
+
onBlur?: (e: React.FocusEvent<HTMLDivElement, Element>) => void;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
allowEdit?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const ContentEditable: React.FC<ContentEditableProps>;
|
|
11
|
+
export default ContentEditable;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const UNFilter: ({
|
|
2
|
+
API_KEY: string;
|
|
3
|
+
LOGO: string;
|
|
4
|
+
BRAND_COLOR: string;
|
|
5
|
+
BRAND_SECONDARY_COLOR: string;
|
|
6
|
+
n: string;
|
|
7
|
+
t: number;
|
|
8
|
+
d: string;
|
|
9
|
+
a: string;
|
|
10
|
+
p: {
|
|
11
|
+
name: string;
|
|
12
|
+
detail: string;
|
|
13
|
+
example: string;
|
|
14
|
+
require: string;
|
|
15
|
+
type: string;
|
|
16
|
+
}[];
|
|
17
|
+
} | {
|
|
18
|
+
API_KEY: string;
|
|
19
|
+
LOGO: string;
|
|
20
|
+
BRAND_COLOR: string;
|
|
21
|
+
BRAND_SECONDARY_COLOR: string;
|
|
22
|
+
n: string;
|
|
23
|
+
t: number;
|
|
24
|
+
d: string;
|
|
25
|
+
a: string;
|
|
26
|
+
p: ({
|
|
27
|
+
name: string;
|
|
28
|
+
detail: string;
|
|
29
|
+
example: string;
|
|
30
|
+
require: string;
|
|
31
|
+
repeat?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
name: string;
|
|
34
|
+
detail: string;
|
|
35
|
+
example: string;
|
|
36
|
+
require: string;
|
|
37
|
+
repeat: string;
|
|
38
|
+
})[];
|
|
39
|
+
} | {
|
|
40
|
+
LOGO: string;
|
|
41
|
+
BRAND_COLOR: string;
|
|
42
|
+
BRAND_SECONDARY_COLOR: string;
|
|
43
|
+
n: string;
|
|
44
|
+
t: number;
|
|
45
|
+
d: string;
|
|
46
|
+
a: string;
|
|
47
|
+
p: ({
|
|
48
|
+
name: string;
|
|
49
|
+
detail: string;
|
|
50
|
+
example: string;
|
|
51
|
+
require: string;
|
|
52
|
+
type: string;
|
|
53
|
+
repeat?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
name: string;
|
|
56
|
+
detail: string;
|
|
57
|
+
example: string;
|
|
58
|
+
require: string;
|
|
59
|
+
repeat: string;
|
|
60
|
+
type: string;
|
|
61
|
+
})[];
|
|
62
|
+
API_KEY?: undefined;
|
|
63
|
+
})[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
tooltip: string;
|
|
4
|
+
iconId: string;
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
declare const Button: React.FC<Props>;
|
|
12
|
+
export default Button;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
tooltip: string;
|
|
4
|
+
iconId?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
showArrow?: boolean;
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
8
|
+
children: (setOpen: React.Dispatch<React.SetStateAction<boolean>>) => React.ReactNode;
|
|
9
|
+
fillColor?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const Combo: React.FC<Props>;
|
|
12
|
+
export default Combo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
tooltip?: string;
|
|
4
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
iconName?: string;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare const CustomButton: React.FC<Props>;
|
|
11
|
+
export default CustomButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
declare const Select: React.FC<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
}>;
|
|
6
|
+
type OptionProps = {
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
8
|
+
iconId?: string;
|
|
9
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
10
|
+
onMouseEnter?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Option: React.FC<React.PropsWithChildren<OptionProps>>;
|
|
13
|
+
export { Option };
|
|
14
|
+
export default Select;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
export declare const getLucideIcon: (title: string) => "" | "Search" | "MessageSquarePlus" | "ShieldCheck" | "Link" | "Filter" | "PaintbrushVertical" | "DuneChart" | "Undo" | "Redo" | "Bold" | "Italic" | "Strikethrough" | "Underline" | "AlignLeft" | "AlignCenter" | "AlignRight" | "ArrowUpFromLine" | "AlignVerticalMiddle" | "ArrowDownToLine" | "TextOverflow" | "WrapText" | "TextClip" | "Baseline" | "PaintBucket" | "Border" | "MergeHorizontal" | "DollarSign" | "Percent" | "DecimalsArrowLeft" | "DecimalsArrowRight" | "Image" | "Sigma" | "Ellipsis";
|
|
4
|
+
declare const Toolbar: React.FC<{
|
|
5
|
+
setMoreItems: React.Dispatch<React.SetStateAction<React.ReactNode>>;
|
|
6
|
+
moreItemsOpen: boolean;
|
|
7
|
+
onMoreToolbarItemsClose?: () => void;
|
|
8
|
+
moreToolbarItems?: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export default Toolbar;
|