@shopnex/easy-email-extensions 4.16.4
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/lib/AttributePanel/AttributePanel.d.ts +4 -0
- package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -0
- package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -0
- package/lib/AttributePanel/components/adapter/Json.adapter.d.ts +4 -0
- package/lib/AttributePanel/components/adapter/color.adapter.d.ts +4 -0
- package/lib/AttributePanel/components/adapter/image-height.adapter.d.ts +4 -0
- package/lib/AttributePanel/components/adapter/index.d.ts +5 -0
- package/lib/AttributePanel/components/adapter/pixel.adapter.d.ts +4 -0
- package/lib/AttributePanel/components/adapter/slider.adapter.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Align.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +7 -0
- package/lib/AttributePanel/components/attributes/Background.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Border.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/BorderColor.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/ClassName.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/CollapseWrapper/index.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/Color.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/Condition.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Decoration.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/Direction.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/FontFamily.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Height.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/Iteration.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Link.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/Margin.d.ts +2 -0
- package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Padding.d.ts +8 -0
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/Width.d.ts +8 -0
- package/lib/AttributePanel/components/attributes/index.d.ts +32 -0
- package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableCellBgSelector.d.ts +6 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableMenuConfig.d.ts +44 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableOperationMenu.d.ts +65 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableTool.d.ts +45 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/type.d.ts +21 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/util.d.ts +23 -0
- package/lib/AttributePanel/components/blocks/AdvancedTable/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Button/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Column/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Divider/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Group/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Hero/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Image/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +7 -0
- package/lib/AttributePanel/components/blocks/Raw/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Section/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Social/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Table/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Text/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +2 -0
- package/lib/AttributePanel/components/blocks/index.d.ts +58 -0
- package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +8 -0
- package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +8 -0
- package/lib/AttributePanel/components/provider/index.d.ts +2 -0
- package/lib/AttributePanel/hooks/useSelectionRange.d.ts +7 -0
- package/lib/AttributePanel/index.d.ts +5 -0
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +11 -0
- package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -0
- package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -0
- package/lib/AttributePanel/utils/Uploader.d.ts +35 -0
- package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -0
- package/lib/AttributePanel/utils/classnames.d.ts +1 -0
- package/lib/AttributePanel/utils/getImg.d.ts +8 -0
- package/lib/AttributePanel/utils/onDrag.d.ts +10 -0
- package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -0
- package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -0
- package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -0
- package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -0
- package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -0
- package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -0
- package/lib/BlockLayer/index.d.ts +13 -0
- package/lib/ConfigurationPanel/index.d.ts +10 -0
- package/lib/EditPanel/Blocks/index.d.ts +2 -0
- package/lib/EditPanel/ConfigurationDrawer/index.d.ts +8 -0
- package/lib/EditPanel/index.d.ts +6 -0
- package/lib/InteractivePrompt/components/FocusTooltip.d.ts +2 -0
- package/lib/InteractivePrompt/components/HoverTooltip.d.ts +2 -0
- package/lib/InteractivePrompt/components/Toolbar.d.ts +2 -0
- package/lib/InteractivePrompt/index.d.ts +2 -0
- package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -0
- package/lib/MergeTagBadgePrompt/index.d.ts +2 -0
- package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +7 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +4 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +2 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +19 -0
- package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +8 -0
- package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -0
- package/lib/ShortcutToolbar/index.d.ts +4 -0
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -0
- package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -0
- package/lib/SimpleLayout/SimpleLayout.d.ts +9 -0
- package/lib/SimpleLayout/index.d.ts +1 -0
- package/lib/SourceCodePanel/index.d.ts +5 -0
- package/lib/StandardLayout/StandardLayout.d.ts +3 -0
- package/lib/StandardLayout/index.d.ts +1 -0
- package/lib/components/AddToCollection/index.d.ts +5 -0
- package/lib/components/Form/AddFont.d.ts +2 -0
- package/lib/components/Form/AutoComplete.d.ts +13 -0
- package/lib/components/Form/CheckBoxGroup.d.ts +14 -0
- package/lib/components/Form/CodemirrorEditor/index.d.ts +9 -0
- package/lib/components/Form/ColorPicker/ColorPickerContent.d.ts +6 -0
- package/lib/components/Form/ColorPicker/index.d.ts +11 -0
- package/lib/components/Form/ColorPicker2.d.ts +10 -0
- package/lib/components/Form/ColorPickerField/index.d.ts +5 -0
- package/lib/components/Form/EditGridTab.d.ts +10 -0
- package/lib/components/Form/EditTab.d.ts +10 -0
- package/lib/components/Form/ImageUploader/index.d.ts +13 -0
- package/lib/components/Form/InlineTextField/index.d.ts +7 -0
- package/lib/components/Form/Input.d.ts +8 -0
- package/lib/components/Form/InputWithUnit.d.ts +12 -0
- package/lib/components/Form/RadioGroup.d.ts +13 -0
- package/lib/components/Form/RichTextField/index.d.ts +3 -0
- package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +4 -0
- package/lib/components/Form/RichTextToolBar/components/BasicTools.d.ts +2 -0
- package/lib/components/Form/RichTextToolBar/components/Bold/index.d.ts +7 -0
- package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +6 -0
- package/lib/components/Form/RichTextToolBar/components/FontSize/index.d.ts +6 -0
- package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +4 -0
- package/lib/components/Form/RichTextToolBar/components/Italic/index.d.ts +7 -0
- package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +14 -0
- package/lib/components/Form/RichTextToolBar/components/MergeTags/index.d.ts +6 -0
- package/lib/components/Form/RichTextToolBar/components/StrikeThrough/index.d.ts +7 -0
- package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +9 -0
- package/lib/components/Form/RichTextToolBar/components/Tools/IconBgColor/index.d.ts +6 -0
- package/lib/components/Form/RichTextToolBar/components/Tools/IconFontColor/index.d.ts +6 -0
- package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -0
- package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -0
- package/lib/components/Form/RichTextToolBar/components/Underline/index.d.ts +7 -0
- package/lib/components/Form/RichTextToolBar/components/Unlink/index.d.ts +13 -0
- package/lib/components/Form/RichTextToolBar/index.d.ts +1 -0
- package/lib/components/Form/Select.d.ts +11 -0
- package/lib/components/Form/UploadField.d.ts +9 -0
- package/lib/components/Form/enhancer.d.ts +25 -0
- package/lib/components/Form/index.d.ts +35 -0
- package/lib/components/FullHeightOverlayScrollbars/index.d.ts +6 -0
- package/lib/components/Providers/ExtensionProvider.d.ts +43 -0
- package/lib/components/RenderCount/index.d.ts +2 -0
- package/lib/components/ShadowDom/index.d.ts +2 -0
- package/lib/constants.d.ts +1 -0
- package/lib/hooks/useAddToCollection.d.ts +6 -0
- package/lib/hooks/useFontFamily.d.ts +7 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -0
- package/lib/index2.js +52440 -0
- package/lib/index2.js.map +1 -0
- package/lib/index3.js +11847 -0
- package/lib/index3.js.map +1 -0
- package/lib/style.css +12 -0
- package/lib/typings/mjml-browser.d.ts +37 -0
- package/lib/utils/MjmlToJson.d.ts +5 -0
- package/lib/utils/awaitForElement.d.ts +4 -0
- package/lib/utils/classnames.d.ts +1 -0
- package/lib/utils/getBlockTitle.d.ts +2 -0
- package/lib/utils/getContextMergeTags.d.ts +7 -0
- package/lib/utils/getIconNameByBlockType.d.ts +2 -0
- package/lib/utils/getPreviewClassName.d.ts +1 -0
- package/lib/utils/parseXMLtoBlock.d.ts +2 -0
- package/package.json +108 -0
- package/readme.md +116 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { InputWithUnitProps } from '../../../components/Form/InputWithUnit';
|
3
|
+
import { UseFieldConfig } from 'react-final-form';
|
4
|
+
export declare function Width({ inline, unitOptions, config, }: {
|
5
|
+
inline?: boolean;
|
6
|
+
unitOptions?: InputWithUnitProps['unitOptions'];
|
7
|
+
config?: UseFieldConfig<any>;
|
8
|
+
}): React.JSX.Element;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
export { Align } from './Align';
|
2
|
+
export { Color } from './Color';
|
3
|
+
export { Height } from './Height';
|
4
|
+
export { TextAlign } from './TextAlign';
|
5
|
+
export { AttributesPanelWrapper } from './AttributesPanelWrapper';
|
6
|
+
export { CollapseWrapper } from './CollapseWrapper';
|
7
|
+
export { Condition } from './Condition';
|
8
|
+
export { ContainerBackgroundColor } from './ContainerBackgroundColor';
|
9
|
+
export { LetterSpacing } from './LetterSpacing';
|
10
|
+
export { TextDecoration } from './TextDecoration';
|
11
|
+
export { Background } from './Background';
|
12
|
+
export { Decoration } from './Decoration';
|
13
|
+
export { LineHeight } from './LineHeight';
|
14
|
+
export { TextTransform } from './TextTransform';
|
15
|
+
export { BackgroundColor } from './BackgroundColor';
|
16
|
+
export { Direction } from './Direction';
|
17
|
+
export { Link } from './Link';
|
18
|
+
export { VerticalAlign } from './VerticalAlign';
|
19
|
+
export { Border } from './Border';
|
20
|
+
export { FontFamily } from './FontFamily';
|
21
|
+
export { Margin } from './Margin';
|
22
|
+
export { Width } from './Width';
|
23
|
+
export { BorderColor } from './BorderColor';
|
24
|
+
export { FontSize } from './FontSize';
|
25
|
+
export { MergeTags } from './MergeTags';
|
26
|
+
export { BorderStyle } from './BorderStyle';
|
27
|
+
export { FontStyle } from './FontStyle';
|
28
|
+
export { NavbarLinkPadding } from './NavbarLinkPadding';
|
29
|
+
export { BorderWidth } from './BorderWidth';
|
30
|
+
export { FontWeight } from './FontWeight';
|
31
|
+
export { Padding } from './Padding';
|
32
|
+
export { ClassName } from './ClassName';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
interface CellBackgroundSelectorProps {
|
2
|
+
bgColorHandler: (color: string) => void;
|
3
|
+
rootDom: Element;
|
4
|
+
}
|
5
|
+
declare const getCellBackgroundSelectorRoot: (bgColorHandler: CellBackgroundSelectorProps['bgColorHandler'], rootDom: any) => HTMLDivElement;
|
6
|
+
export default getCellBackgroundSelectorRoot;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import TableOperationMenu from './tableOperationMenu';
|
2
|
+
declare const MENU_CONFIG: {
|
3
|
+
insertColumnRight: {
|
4
|
+
text: string;
|
5
|
+
icon: string;
|
6
|
+
handler(): void;
|
7
|
+
};
|
8
|
+
insertColumnLeft: {
|
9
|
+
text: string;
|
10
|
+
icon: string;
|
11
|
+
handler(): void;
|
12
|
+
};
|
13
|
+
insertRowUp: {
|
14
|
+
text: string;
|
15
|
+
icon: string;
|
16
|
+
handler(): void;
|
17
|
+
};
|
18
|
+
insertRowDown: {
|
19
|
+
text: string;
|
20
|
+
icon: string;
|
21
|
+
handler(): void;
|
22
|
+
};
|
23
|
+
mergeCells: {
|
24
|
+
text: string;
|
25
|
+
icon: string;
|
26
|
+
handler(): void;
|
27
|
+
};
|
28
|
+
deleteColumn: {
|
29
|
+
text: string;
|
30
|
+
icon: string;
|
31
|
+
handler(): void;
|
32
|
+
};
|
33
|
+
deleteRow: {
|
34
|
+
text: string;
|
35
|
+
icon: string;
|
36
|
+
handler(): void;
|
37
|
+
};
|
38
|
+
setCellBg: {
|
39
|
+
text: string;
|
40
|
+
render(tableOperationMenu: TableOperationMenu): HTMLDivElement;
|
41
|
+
handler(color: string): void;
|
42
|
+
};
|
43
|
+
};
|
44
|
+
export default MENU_CONFIG;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { IBoundingPosition, IOperationData } from './type';
|
2
|
+
export default class TableOperationMenu {
|
3
|
+
menuItems: {
|
4
|
+
insertColumnRight: {
|
5
|
+
text: string;
|
6
|
+
icon: string;
|
7
|
+
handler(): void;
|
8
|
+
};
|
9
|
+
insertColumnLeft: {
|
10
|
+
text: string;
|
11
|
+
icon: string;
|
12
|
+
handler(): void;
|
13
|
+
};
|
14
|
+
insertRowUp: {
|
15
|
+
text: string;
|
16
|
+
icon: string;
|
17
|
+
handler(): void;
|
18
|
+
};
|
19
|
+
insertRowDown: {
|
20
|
+
text: string;
|
21
|
+
icon: string;
|
22
|
+
handler(): void;
|
23
|
+
};
|
24
|
+
mergeCells: {
|
25
|
+
text: string;
|
26
|
+
icon: string;
|
27
|
+
handler(): void;
|
28
|
+
};
|
29
|
+
deleteColumn: {
|
30
|
+
text: string;
|
31
|
+
icon: string;
|
32
|
+
handler(): void;
|
33
|
+
};
|
34
|
+
deleteRow: {
|
35
|
+
text: string;
|
36
|
+
icon: string;
|
37
|
+
handler(): void;
|
38
|
+
};
|
39
|
+
setCellBg: {
|
40
|
+
text: string;
|
41
|
+
render(tableOperationMenu: TableOperationMenu): HTMLDivElement;
|
42
|
+
handler(color: string): void;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
domNode: Element | undefined;
|
46
|
+
styleDom?: HTMLStyleElement;
|
47
|
+
visible: boolean;
|
48
|
+
changeTableData?: (e: IOperationData[][]) => void;
|
49
|
+
tableData: IOperationData[][];
|
50
|
+
tableIndexBoundary: IBoundingPosition;
|
51
|
+
maxTdCount: number;
|
52
|
+
constructor();
|
53
|
+
mount(): void;
|
54
|
+
destroy(): void;
|
55
|
+
hide(): void;
|
56
|
+
addRow(insertIndex: number, colCount: number): void;
|
57
|
+
setTableData(tableData: IOperationData[][]): void;
|
58
|
+
setTableIndexBoundary(tableIndexBoundary: IBoundingPosition): void;
|
59
|
+
showMenu({ x, y }: {
|
60
|
+
x: number;
|
61
|
+
y: number;
|
62
|
+
}): void;
|
63
|
+
menuInitial(): void;
|
64
|
+
menuItemCreator({ text, icon, handler }: any): HTMLDivElement;
|
65
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import TableOperationMenu from './tableOperationMenu';
|
2
|
+
import { AdvancedTableBlock } from 'easy-email-core';
|
3
|
+
interface IBorderTool {
|
4
|
+
top: Element;
|
5
|
+
bottom: Element;
|
6
|
+
left: Element;
|
7
|
+
right: Element;
|
8
|
+
}
|
9
|
+
declare class TableColumnTool {
|
10
|
+
borderTool: IBorderTool;
|
11
|
+
dragging: boolean;
|
12
|
+
showBorderTool: boolean;
|
13
|
+
startRect: {
|
14
|
+
width: number;
|
15
|
+
height: number;
|
16
|
+
};
|
17
|
+
startTdTop: number;
|
18
|
+
startTdLeft: number;
|
19
|
+
endTdTop: number;
|
20
|
+
endTdLeft: number;
|
21
|
+
width: number;
|
22
|
+
height: number;
|
23
|
+
selectedLeftTopCell: Element | undefined;
|
24
|
+
selectedBottomRightCell: Element | undefined;
|
25
|
+
startDom: Element | undefined;
|
26
|
+
endDom: Element | undefined;
|
27
|
+
hoveringTable: ParentNode | null;
|
28
|
+
root: Element | undefined;
|
29
|
+
tableMenu?: TableOperationMenu;
|
30
|
+
changeTableData?: (e: AdvancedTableBlock['data']['value']['tableSource']) => void;
|
31
|
+
tableData: AdvancedTableBlock['data']['value']['tableSource'];
|
32
|
+
constructor(borderTool: IBorderTool, root: Element);
|
33
|
+
initTool(): void;
|
34
|
+
destroy(): void;
|
35
|
+
hideBorder: (e: any) => void;
|
36
|
+
hideBorderByKeyDown: () => void;
|
37
|
+
hideTableMenu: (e?: any) => void;
|
38
|
+
visibleBorder: (show?: boolean) => void;
|
39
|
+
renderBorder: () => void;
|
40
|
+
handleContextmenu: (event: any) => void;
|
41
|
+
handleMousedown(event: any): void;
|
42
|
+
handleDrag: (e: any) => void;
|
43
|
+
handleMouseup: (e: any) => void;
|
44
|
+
}
|
45
|
+
export default TableColumnTool;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { IAdvancedTableData } from 'easy-email-core';
|
2
|
+
export interface IOperationData extends IAdvancedTableData {
|
3
|
+
top: number;
|
4
|
+
bottom: number;
|
5
|
+
left: number;
|
6
|
+
right: number;
|
7
|
+
}
|
8
|
+
export interface IBoundaryRect {
|
9
|
+
left: number;
|
10
|
+
top: number;
|
11
|
+
right: number;
|
12
|
+
bottom: number;
|
13
|
+
width: number;
|
14
|
+
height: number;
|
15
|
+
}
|
16
|
+
export interface IBoundingPosition {
|
17
|
+
left: number;
|
18
|
+
top: number;
|
19
|
+
right: number;
|
20
|
+
bottom: number;
|
21
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { IBoundaryRect, IBoundingPosition, IOperationData } from './type';
|
2
|
+
import { AdvancedTableBlock } from 'easy-email-core';
|
3
|
+
export declare const getBoundaryRectAndElement: (el1: Element, el2: Element) => {
|
4
|
+
leftTopCell: Element;
|
5
|
+
bottomRightCell: Element;
|
6
|
+
boundary: IBoundaryRect;
|
7
|
+
} | null;
|
8
|
+
export declare function setStyle(domNode: any, rules: any): void;
|
9
|
+
export declare const getCurrentTable: (target: Element) => ParentNode | null;
|
10
|
+
export declare const getElementsBoundary: (el1: Element, el2: Element) => IBoundingPosition;
|
11
|
+
export declare const checkEventInBoundingRect: (rect: IBoundingPosition, { x, y }: {
|
12
|
+
x: number;
|
13
|
+
y: number;
|
14
|
+
}) => boolean;
|
15
|
+
export declare const getCellAttr: (el: Element, attrName: string) => number;
|
16
|
+
export declare const getTdBoundaryIndex: (leftTopCell: Element, bottomRightCell: Element) => {
|
17
|
+
left: number;
|
18
|
+
top: number;
|
19
|
+
right: number;
|
20
|
+
bottom: number;
|
21
|
+
};
|
22
|
+
export declare const getCorrectTableIndexBoundary: (tableIndexBoundary: IBoundingPosition, tableData: IOperationData[][]) => IBoundingPosition;
|
23
|
+
export declare const getMaxTdCount: (tableData: AdvancedTableBlock['data']['value']['tableSource']) => number;
|