quill-table-up 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +23 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/unit/utils.ts +1 -1
- package/src/index.ts +19 -5
- package/src/modules/table-menu/table-menu-common.ts +2 -2
- package/src/modules/table-resize/table-resize-box.ts +5 -4
- package/src/modules/table-resize/table-resize-common.ts +17 -6
- package/src/modules/table-selection.ts +45 -36
- package/src/svg/copy.svg +1 -1
- package/src/svg/cut.svg +1 -1
- package/src/utils/color.ts +2 -2
- package/src/utils/components/button.ts +1 -1
- package/src/utils/components/color-picker.ts +1 -1
- package/src/utils/components/input.ts +1 -1
- package/src/utils/components/tooltip.ts +1 -1
- package/src/utils/types.ts +7 -7
- package/src/utils/utils.ts +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -487,6 +487,10 @@ declare class TableMenuSelect extends TableMenuCommon {
|
|
|
487
487
|
update(): void;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
+
interface sizeChangeValue {
|
|
491
|
+
px: number;
|
|
492
|
+
pre: number;
|
|
493
|
+
}
|
|
490
494
|
declare class TableResizeCommon {
|
|
491
495
|
tableModule: TableUp;
|
|
492
496
|
quill: Quill;
|
|
@@ -528,7 +532,7 @@ declare class TableResizeCommon {
|
|
|
528
532
|
};
|
|
529
533
|
constructor(tableModule: TableUp, quill: Quill);
|
|
530
534
|
findCurrentColIndex(_e: MouseEvent): number;
|
|
531
|
-
colWidthChange(_i: number, _w:
|
|
535
|
+
colWidthChange(_i: number, _w: sizeChangeValue, _isFull: boolean): void;
|
|
532
536
|
createConfirmDialog({ message, confirm, cancel }: {
|
|
533
537
|
message: string;
|
|
534
538
|
confirm: string;
|
|
@@ -592,7 +596,7 @@ declare class TableResizeBox extends TableResizeCommon {
|
|
|
592
596
|
constructor(tableModule: TableUp, table: HTMLElement, quill: Quill);
|
|
593
597
|
handleResizerHeader(isX: boolean, e: MouseEvent): void;
|
|
594
598
|
findCurrentColIndex(e: MouseEvent): number;
|
|
595
|
-
colWidthChange(i: number, w:
|
|
599
|
+
colWidthChange(i: number, w: sizeChangeValue, isFull: boolean): void;
|
|
596
600
|
handleColMouseDownFunc: (e: MouseEvent) => {
|
|
597
601
|
top: number;
|
|
598
602
|
left: number;
|
|
@@ -814,6 +818,9 @@ declare class TableSelection {
|
|
|
814
818
|
getFirstTextNode(dom: HTMLElement | Node): Node;
|
|
815
819
|
getLastTextNode(dom: HTMLElement | Node): Node;
|
|
816
820
|
getNodeTailOffset(node: Node): number;
|
|
821
|
+
quillSelectionChangeHandler: (range: Range | null) => void;
|
|
822
|
+
keyupHandler: (event: KeyboardEvent) => void;
|
|
823
|
+
keydownHandler: (event: KeyboardEvent) => void;
|
|
817
824
|
setSelectionData(selection: Selection, selectionData: SelectionData): void;
|
|
818
825
|
selectionDirectionUp(selection: SelectionData): boolean;
|
|
819
826
|
findWrapSelection(points: {
|
|
@@ -914,6 +921,19 @@ declare class TableUp {
|
|
|
914
921
|
clear: string;
|
|
915
922
|
transparent: string;
|
|
916
923
|
perWidthInsufficient: string;
|
|
924
|
+
CopyCell: string;
|
|
925
|
+
CutCell: string;
|
|
926
|
+
InsertTop: string;
|
|
927
|
+
InsertRight: string;
|
|
928
|
+
InsertBottom: string;
|
|
929
|
+
InsertLeft: string;
|
|
930
|
+
MergeCell: string;
|
|
931
|
+
SplitCell: string;
|
|
932
|
+
DeleteRow: string;
|
|
933
|
+
DeleteColumn: string;
|
|
934
|
+
DeleteTable: string;
|
|
935
|
+
BackgroundColor: string;
|
|
936
|
+
BorderColor: string;
|
|
917
937
|
} & Partial<TableTextOptions>;
|
|
918
938
|
pasteTableHandler(): void;
|
|
919
939
|
showTableTools(table: HTMLElement): void;
|
|
@@ -942,4 +962,4 @@ declare class TableUp {
|
|
|
942
962
|
declare function updateTableConstants(data: Partial<TableConstantsData>): void;
|
|
943
963
|
declare function defaultCustomSelect(tableModule: TableUp, picker: QuillThemePicker): HTMLDivElement;
|
|
944
964
|
|
|
945
|
-
export { BlockOverride, BlockquoteOverride, CodeBlockOverride, type Constructor, ContainerFormat, HeaderOverride, type InternalModule, type InternalTableSelectionModule, ListItemOverride, type QuillTheme, type QuillThemePicker, type RelactiveRect, ScrollOverride, Scrollbar, type SkipRowCount, TableAlign, TableBodyFormat, TableCellFormat, TableCellInnerFormat, type TableCellValue, TableColFormat, type TableColValue, TableColgroupFormat, type TableConstantsData, type TableCreatorTextOptions, TableMainFormat, TableMenuCommon, TableMenuContextmenu, type TableMenuOptions, type TableMenuOptionsInput$1 as TableMenuOptionsInput, TableMenuSelect, type TableMenuTexts, TableResizeBox, TableResizeCommon, TableResizeLine, TableResizeScale, type TableResizeScaleOptions, TableRowFormat, type TableRowValue, TableSelection, type TableSelectionOptions, type TableTextOptions, TableUp, type TableUpOptions, type TableValue, TableVirtualScrollbar, TableWrapperFormat, type Tool, type ToolOption, type ToolOptionBreak, blotName, createColorPicker, createSelectBox, createTooltip, TableUp as default, defaultCustomSelect, findParentBlot, findParentBlots, isTableAlignRight, randomId, tableCantInsert, tableUpEvent, tableUpSize, updateTableConstants };
|
|
965
|
+
export { BlockOverride, BlockquoteOverride, CodeBlockOverride, type Constructor, ContainerFormat, HeaderOverride, type InternalModule, type InternalTableSelectionModule, ListItemOverride, type QuillTheme, type QuillThemePicker, type RelactiveRect, ScrollOverride, Scrollbar, type SkipRowCount, TableAlign, TableBodyFormat, TableCellFormat, TableCellInnerFormat, type TableCellValue, TableColFormat, type TableColValue, TableColgroupFormat, type TableConstantsData, type TableCreatorTextOptions, TableMainFormat, TableMenuCommon, TableMenuContextmenu, type TableMenuOptions, type TableMenuOptionsInput$1 as TableMenuOptionsInput, TableMenuSelect, type TableMenuTexts, TableResizeBox, TableResizeCommon, TableResizeLine, TableResizeScale, type TableResizeScaleOptions, TableRowFormat, type TableRowValue, TableSelection, type TableSelectionOptions, type TableTextOptions, TableUp, type TableUpOptions, type TableValue, TableVirtualScrollbar, TableWrapperFormat, type Tool, type ToolOption, type ToolOptionBreak, blotName, createColorPicker, createSelectBox, createTooltip, TableUp as default, defaultCustomSelect, findParentBlot, findParentBlots, isTableAlignRight, randomId, type sizeChangeValue, tableCantInsert, tableUpEvent, tableUpSize, updateTableConstants };
|