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 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: number, _isFull: boolean): void;
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: number, _isFull: boolean): void;
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 };