ados-rcm 1.1.515 → 1.1.517

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.
Files changed (59) hide show
  1. package/dist/AModule/AComponents/AEditor/modules/{tableUp/modules/table-clipboard.d.ts → TableClipboard.d.ts} +3 -3
  2. package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +3 -4
  3. package/dist/index.cjs.js +191 -189
  4. package/dist/index.es.js +20545 -21673
  5. package/package.json +2 -2
  6. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/container-format.d.ts +0 -15
  7. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/index.d.ts +0 -11
  8. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/overrides/block.d.ts +0 -9
  9. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/overrides/index.d.ts +0 -2
  10. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/overrides/scroll.d.ts +0 -10
  11. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-body-format.d.ts +0 -10
  12. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-caption-format.d.ts +0 -23
  13. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-cell-format.d.ts +0 -26
  14. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-cell-inner-format.d.ts +0 -34
  15. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-col-format.d.ts +0 -22
  16. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-colgroup-format.d.ts +0 -20
  17. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-main-format.d.ts +0 -26
  18. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-row-format.d.ts +0 -25
  19. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-wrapper-format.d.ts +0 -14
  20. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/utils.d.ts +0 -1
  21. package/dist/AModule/AComponents/AEditor/modules/tableUp/index.d.ts +0 -7
  22. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/index.d.ts +0 -6
  23. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-align.d.ts +0 -31
  24. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/constants.d.ts +0 -12
  25. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/index.d.ts +0 -4
  26. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/table-menu-common.d.ts +0 -43
  27. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/table-menu-contextmenu.d.ts +0 -21
  28. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/table-menu-select.d.ts +0 -9
  29. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/index.d.ts +0 -5
  30. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-box.d.ts +0 -56
  31. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-common.d.ts +0 -79
  32. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-line.d.ts +0 -39
  33. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-scale.d.ts +0 -40
  34. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/utils.d.ts +0 -2
  35. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-scrollbar.d.ts +0 -89
  36. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-selection.d.ts +0 -87
  37. package/dist/AModule/AComponents/AEditor/modules/tableUp/table-up.d.ts +0 -119
  38. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/bem.d.ts +0 -18
  39. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/blot-helper.d.ts +0 -25
  40. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/color.d.ts +0 -18
  41. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/button.d.ts +0 -6
  42. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/color-picker.d.ts +0 -6
  43. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/dialog.d.ts +0 -10
  44. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/index.d.ts +0 -6
  45. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/input.d.ts +0 -15
  46. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/table/creator.d.ts +0 -10
  47. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/table/index.d.ts +0 -2
  48. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/table/select-box.d.ts +0 -10
  49. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/tooltip.d.ts +0 -18
  50. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/constants.d.ts +0 -30
  51. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/index.d.ts +0 -13
  52. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/is.d.ts +0 -7
  53. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/position.d.ts +0 -14
  54. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/resize-observer-helper.d.ts +0 -4
  55. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/scroll-event-handle.d.ts +0 -6
  56. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/transformer.d.ts +0 -2
  57. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/transition-event-helper.d.ts +0 -1
  58. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/types.d.ts +0 -149
  59. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/utils.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ados-rcm",
3
- "version": "1.1.515",
3
+ "version": "1.1.517",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -74,10 +74,10 @@
74
74
  "@dnd-kit/modifiers": "^9.0.0",
75
75
  "@dnd-kit/sortable": "^10.0.0",
76
76
  "@dnd-kit/utilities": "^3.2.2",
77
- "@floating-ui/dom": "^1.7.0",
78
77
  "parchment": "^3.0.0",
79
78
  "qs": "^6.14.0",
80
79
  "quill-magic-url": "^4.2.0",
80
+ "quill-table-up": "^2.2.0",
81
81
  "react-quill-new": "^3.4.6"
82
82
  }
83
83
  }
@@ -1,15 +0,0 @@
1
- import { Parchment as TypeParchment } from 'quill';
2
- declare const Container: typeof TypeParchment.ContainerBlot;
3
- export declare class ContainerFormat extends Container {
4
- static tagName: string;
5
- static blotName: string;
6
- static scope: TypeParchment.Scope;
7
- static allowedChildren?: TypeParchment.BlotConstructor[];
8
- static requiredContainer: TypeParchment.BlotConstructor;
9
- static defaultChild?: TypeParchment.BlotConstructor;
10
- static create(_value?: unknown): HTMLElement;
11
- insertAt(index: number, value: string, def?: any): void;
12
- optimize(_context: Record<string, any>): void;
13
- enforceAllowedChildren(): void;
14
- }
15
- export {};
@@ -1,11 +0,0 @@
1
- export * from './container-format';
2
- export * from './overrides';
3
- export * from './table-body-format';
4
- export * from './table-caption-format';
5
- export * from './table-cell-format';
6
- export * from './table-cell-inner-format';
7
- export * from './table-col-format';
8
- export * from './table-colgroup-format';
9
- export * from './table-main-format';
10
- export * from './table-row-format';
11
- export * from './table-wrapper-format';
@@ -1,9 +0,0 @@
1
- import { Parchment as TypeParchment } from 'quill';
2
- import { default as TypeBlock } from 'quill/blots/block';
3
- declare const Block: typeof TypeBlock;
4
- export declare class BlockOverride extends Block {
5
- replaceWith(name: string | TypeParchment.Blot, value?: any): TypeParchment.Blot;
6
- private transferBlocksToReplacement;
7
- format(name: string, value: any): void;
8
- }
9
- export {};
@@ -1,2 +0,0 @@
1
- export * from './block';
2
- export * from './scroll';
@@ -1,10 +0,0 @@
1
- import { Parchment as TypeParchment } from 'quill';
2
- import { TableCellInnerFormat } from '../table-cell-inner-format';
3
- declare const ScrollBlot: any;
4
- export declare class ScrollOverride extends ScrollBlot {
5
- static [x: string]: any;
6
- domNode: HTMLElement;
7
- enable(enabled?: boolean): void;
8
- createBlock(attributes: Record<string, any>, refBlot?: TypeParchment.Blot): TypeParchment.ParentBlot | TableCellInnerFormat;
9
- }
10
- export {};
@@ -1,10 +0,0 @@
1
- import { ContainerFormat } from './container-format';
2
- export declare class TableBodyFormat extends ContainerFormat {
3
- static blotName: "table-up-body";
4
- static tagName: string;
5
- static create(value: string): HTMLElement;
6
- get tableId(): string;
7
- insertRow(targetIndex: number): void;
8
- checkMerge(): boolean;
9
- optimize(context: Record<string, any>): void;
10
- }
@@ -1,23 +0,0 @@
1
- import { default as TypeInline } from 'quill/blots/inline';
2
- import { default as TypeScroll } from 'quill/blots/scroll';
3
- import { default as TypeText } from 'quill/blots/text';
4
- import { TableCaptionValue } from '../utils';
5
- import { BlockOverride } from './overrides';
6
- export declare class TableCaptionFormat extends BlockOverride {
7
- static blotName: "table-up-caption";
8
- static tagName: string;
9
- static className: string;
10
- static allowedChildren: (typeof TypeInline | typeof TypeText)[];
11
- static create(value: TableCaptionValue): HTMLElement;
12
- static formats(domNode: HTMLElement): TableCaptionValue;
13
- scroll: TypeScroll;
14
- uiNode: HTMLElement;
15
- constructor(scroll: TypeScroll, domNode: HTMLElement, _value: TableCaptionValue);
16
- createUI(): HTMLElement;
17
- get tableId(): string;
18
- set side(value: TableCaptionValue['side']);
19
- get side(): TableCaptionValue["side"];
20
- format(name: string, value: any): void;
21
- checkMerge(): boolean;
22
- optimize(context: Record<string, any>): void;
23
- }
@@ -1,26 +0,0 @@
1
- import { TableCellValue } from '../utils';
2
- import { ContainerFormat } from './container-format';
3
- import { TableCellInnerFormat } from './table-cell-inner-format';
4
- export declare class TableCellFormat extends ContainerFormat {
5
- static blotName: "table-up-cell";
6
- static tagName: string;
7
- static className: string;
8
- static allowDataAttrs: Set<string>;
9
- static allowAttrs: Set<string>;
10
- static allowStyle: Set<string>;
11
- static isAllowStyle(str: string): boolean;
12
- static create(value: TableCellValue): HTMLElement;
13
- static formats(domNode: HTMLElement): Record<string, any>;
14
- setFormatValue(name: string, value?: any): void;
15
- setStyleBoder(name: string, value?: any): void;
16
- getNearByCell(direction: 'left' | 'top'): TableCellFormat[];
17
- get tableId(): string;
18
- get rowId(): string;
19
- get colId(): string;
20
- get rowspan(): number;
21
- get colspan(): number;
22
- getColumnIndex(): number;
23
- getCellInner(): TableCellInnerFormat;
24
- checkMerge(): boolean;
25
- optimize(context: Record<string, any>): void;
26
- }
@@ -1,34 +0,0 @@
1
- import { Parchment as TypeParchment } from 'quill';
2
- import { default as TypeScroll } from 'quill/blots/scroll';
3
- import { TableCellValue } from '../utils';
4
- import { ContainerFormat } from './container-format';
5
- import { TableCellFormat } from './table-cell-format';
6
- export declare class TableCellInnerFormat extends ContainerFormat {
7
- static blotName: "table-up-cell-inner";
8
- static tagName: string;
9
- static className: string;
10
- static allowDataAttrs: Set<string>;
11
- static defaultChild: TypeParchment.BlotConstructor;
12
- parent: TableCellFormat;
13
- static allowStyle: Set<string>;
14
- static isAllowStyle(str: string): boolean;
15
- static create(value: TableCellValue): HTMLElement;
16
- static formats(domNode: HTMLElement): Record<string, any>;
17
- constructor(scroll: TypeScroll, domNode: HTMLElement, _value: TableCellValue);
18
- setFormatValue(name: string, value: any, isStyle?: boolean): void;
19
- get tableId(): string;
20
- get rowId(): string;
21
- set rowId(value: string);
22
- get colId(): string;
23
- set colId(value: string);
24
- get rowspan(): number;
25
- set rowspan(value: number);
26
- get colspan(): number;
27
- set colspan(value: number);
28
- getColumnIndex(): number;
29
- formatAt(index: number, length: number, name: string, value: any): void;
30
- formats(): Record<string, any>;
31
- checkMerge(): boolean;
32
- optimize(): void;
33
- insertBefore(blot: TypeParchment.Blot, ref?: TypeParchment.Blot | null): void;
34
- }
@@ -1,22 +0,0 @@
1
- import { BlockEmbed as TypeBlockEmbed } from 'quill/blots/block';
2
- import { TableColValue } from '../utils';
3
- declare const BlockEmbed: typeof TypeBlockEmbed;
4
- export declare class TableColFormat extends BlockEmbed {
5
- static blotName: "table-up-col";
6
- static tagName: string;
7
- static validWidth(width: string | number, full: boolean): string;
8
- static create(value: TableColValue): HTMLElement;
9
- static value(domNode: HTMLElement): Record<string, any>;
10
- get width(): number;
11
- set width(value: string | number);
12
- get tableId(): string;
13
- get colId(): string;
14
- get full(): boolean;
15
- set full(value: boolean);
16
- get align(): string;
17
- set align(value: string);
18
- checkMerge(): boolean;
19
- optimize(context: Record<string, any>): void;
20
- insertAt(index: number, value: string, def?: any): void;
21
- }
22
- export {};
@@ -1,20 +0,0 @@
1
- import { Parchment as TypeParchment } from 'quill';
2
- import { TableColValue, TableValue } from '../utils';
3
- import { ContainerFormat } from './container-format';
4
- import { TableColFormat } from './table-col-format';
5
- export declare class TableColgroupFormat extends ContainerFormat {
6
- static blotName: "table-up-colgroup";
7
- static tagName: string;
8
- children: TypeParchment.LinkedList<TableColFormat>;
9
- static create(value: TableValue): HTMLElement;
10
- get tableId(): string;
11
- get full(): boolean;
12
- set full(value: boolean);
13
- get align(): string;
14
- set align(value: string);
15
- findCol(index: number): TableColFormat | null;
16
- insertColByIndex(index: number, value: TableColValue): void;
17
- removeColByIndex(index: number): void;
18
- checkMerge(): boolean;
19
- optimize(context: Record<string, any>): void;
20
- }
@@ -1,26 +0,0 @@
1
- import { TableValue } from '../utils';
2
- import { ContainerFormat } from './container-format';
3
- import { TableColFormat } from './table-col-format';
4
- import { TableRowFormat } from './table-row-format';
5
- export declare class TableMainFormat extends ContainerFormat {
6
- static blotName: "table-up-main";
7
- static tagName: string;
8
- static className: string;
9
- static create(value: TableValue): HTMLElement;
10
- constructor(scroll: any, domNode: HTMLElement, _value: any);
11
- colWidthFillTable(): number | undefined;
12
- get tableId(): string;
13
- get full(): boolean;
14
- set full(value: boolean);
15
- get align(): string;
16
- set align(value: string);
17
- setFull(): void;
18
- cancelFull(): void;
19
- updateAlign(): void;
20
- getRows(): TableRowFormat[];
21
- getRowIds(): string[];
22
- getCols(): TableColFormat[];
23
- getColIds(): string[];
24
- checkMerge(): boolean;
25
- optimize(context: Record<string, any>): void;
26
- }
@@ -1,25 +0,0 @@
1
- import { Parchment as TypeParchment } from 'quill';
2
- import { TableCellValue, TableRowValue } from '../utils';
3
- import { ContainerFormat } from './container-format';
4
- import { TableCellFormat } from './table-cell-format';
5
- import { TableCellInnerFormat } from './table-cell-inner-format';
6
- export type SkipRowCount = number[] & {
7
- skipRowNum?: number;
8
- };
9
- export declare class TableRowFormat extends ContainerFormat {
10
- static blotName: "table-up-row";
11
- static tagName: string;
12
- static className: string;
13
- static create(value: TableRowValue): HTMLElement;
14
- children: TypeParchment.LinkedList<TableCellFormat>;
15
- get rowId(): string;
16
- get tableId(): string;
17
- setHeight(value: string): void;
18
- getCellByColId(colId: string, direction: 'next' | 'prev'): TableCellFormat | null;
19
- insertCell(targetIndex: number, value: TableCellValue): SkipRowCount;
20
- getCellByColumIndex(stopIndex: number): [null | TableCellFormat, number, number[]];
21
- removeCell(targetIndex: number): SkipRowCount;
22
- foreachCellInner(func: (tableCell: TableCellInnerFormat, index: number) => boolean | void): void;
23
- checkMerge(): boolean;
24
- optimize(context: Record<string, any>): void;
25
- }
@@ -1,14 +0,0 @@
1
- import { ContainerFormat } from './container-format';
2
- export declare class TableWrapperFormat extends ContainerFormat {
3
- scroll: any;
4
- static blotName: "table-up";
5
- static tagName: string;
6
- static className: string;
7
- static create(value: string): HTMLElement;
8
- constructor(scroll: any, node: Node, _value: string);
9
- get tableId(): string;
10
- checkMerge(): boolean;
11
- deleteAt(index: number, length: number): void;
12
- remove(): void;
13
- insertLineAround: () => void;
14
- }
@@ -1 +0,0 @@
1
- export declare const getValidCellspan: (value: any) => any;
@@ -1,7 +0,0 @@
1
- import { TableUp } from './table-up';
2
- export default TableUp;
3
- export * from './formats';
4
- export * from './modules';
5
- export * from './table-up';
6
- export { blotName, createColorPicker, createSelectBox, createTooltip, findParentBlot, findParentBlots, randomId, tableUpEvent, tableUpInternal, tableUpSize, } from './utils';
7
- export * from './utils/types';
@@ -1,6 +0,0 @@
1
- export * from './table-align';
2
- export * from './table-clipboard';
3
- export * from './table-menu';
4
- export * from './table-resize';
5
- export * from './table-scrollbar';
6
- export * from './table-selection';
@@ -1,31 +0,0 @@
1
- import { TableMainFormat, TableWrapperFormat } from '../formats';
2
- import { TableUp } from '../table-up';
3
- import { default as Quill } from 'quill';
4
- export declare class TableAlign {
5
- tableModule: TableUp;
6
- table: HTMLElement;
7
- quill: Quill;
8
- tableBlot: TableMainFormat;
9
- tableWrapperBlot: TableWrapperFormat;
10
- alignBox?: HTMLElement;
11
- cleanup?: () => void;
12
- bem: {
13
- b: () => string;
14
- be: (e?: string) => string;
15
- bm: (m?: string) => string;
16
- bem: (e?: string, m?: string) => string;
17
- ns: (s?: string) => string;
18
- bs: (s?: string) => string;
19
- cv: (v?: string) => string;
20
- is: (n: string) => string;
21
- };
22
- resizeObserver: ResizeObserver;
23
- constructor(tableModule: TableUp, table: HTMLElement, quill: Quill);
24
- updateWhenTextChange: () => void;
25
- buildTool(): HTMLElement;
26
- setTableAlign(tableBlot: TableMainFormat, align: string): void;
27
- show(): void;
28
- hide(): void;
29
- update(): void;
30
- destroy(): void;
31
- }
@@ -1,12 +0,0 @@
1
- import { Tool } from '../../utils';
2
- export declare const menuColorSelectClassName = "color-selector";
3
- export declare const tableMenuTools: Record<string, Tool>;
4
- export declare const maxSaveColorCount = 10;
5
- export declare const colorClassName: {
6
- selectWrapper: string;
7
- used: string;
8
- item: string;
9
- btn: string;
10
- map: string;
11
- mapRow: string;
12
- };
@@ -1,4 +0,0 @@
1
- export { tableMenuTools } from './constants';
2
- export * from './table-menu-common';
3
- export * from './table-menu-contextmenu';
4
- export * from './table-menu-select';
@@ -1,43 +0,0 @@
1
- import { default as Quill } from 'quill';
2
- import { TableUp } from '../../table-up';
3
- import { TableMenuOptions, ToolOption, TooltipInstance, ToolTipOptions } from '../../utils';
4
- export type TableMenuOptionsInput = Partial<Omit<TableMenuOptions, 'texts'>>;
5
- export interface MenuTooltipInstance extends TooltipInstance {
6
- isColorPick?: boolean;
7
- }
8
- export declare class TableMenuCommon {
9
- tableModule: TableUp;
10
- quill: Quill;
11
- usedColors: Set<string>;
12
- options: TableMenuOptions;
13
- menu: HTMLElement | null;
14
- isMenuDisplay: boolean;
15
- isColorPicking: boolean;
16
- updateUsedColor: (this: any, color?: string) => void;
17
- tooltipItem: MenuTooltipInstance[];
18
- activeTooltip: MenuTooltipInstance | null;
19
- bem: {
20
- b: () => string;
21
- be: (e?: string) => string;
22
- bm: (m?: string) => string;
23
- bem: (e?: string, m?: string) => string;
24
- ns: (s?: string) => string;
25
- bs: (s?: string) => string;
26
- cv: (v?: string) => string;
27
- is: (n: string) => string;
28
- };
29
- colorItemClass: string;
30
- colorChooseTooltipOption: ToolTipOptions;
31
- constructor(tableModule: TableUp, quill: Quill, options: TableMenuOptionsInput);
32
- updateWhenTextChange: () => void;
33
- resolveOptions(options: TableMenuOptionsInput): TableMenuOptions;
34
- buildTools(): HTMLElement;
35
- createColorChoose(item: HTMLElement, { handle, key }: ToolOption): MenuTooltipInstance;
36
- setActiveTooltip(tooltip: MenuTooltipInstance | null): void;
37
- getSelectedTds(): import('../..').TableCellInnerFormat[];
38
- createTipText(item: HTMLElement, text: string): void;
39
- show(): void;
40
- update(): void;
41
- hide(): void;
42
- destroy(): void;
43
- }
@@ -1,21 +0,0 @@
1
- import { default as Quill } from 'quill';
2
- import { TableUp } from '../../table-up';
3
- import { TableMenuOptions, ToolTipOptions } from '../../utils';
4
- import { TableMenuCommon } from './table-menu-common';
5
- type TableMenuOptionsInput = Partial<Omit<TableMenuOptions, 'texts'>>;
6
- export declare class TableMenuContextmenu extends TableMenuCommon {
7
- tableModule: TableUp;
8
- quill: Quill;
9
- colorChooseTooltipOption: ToolTipOptions;
10
- constructor(tableModule: TableUp, quill: Quill, options: TableMenuOptionsInput);
11
- listenContextmenu: (e: MouseEvent) => void;
12
- buildTools(): HTMLElement;
13
- createTipText(item: HTMLElement, text: string): void;
14
- show(): void;
15
- update(position?: {
16
- x: number;
17
- y: number;
18
- }): void;
19
- destroy(): void;
20
- }
21
- export {};
@@ -1,9 +0,0 @@
1
- import { default as Quill } from 'quill';
2
- import { TableUp } from '../../table-up';
3
- import { TableMenuOptionsInput, TableMenuCommon } from './table-menu-common';
4
- export declare class TableMenuSelect extends TableMenuCommon {
5
- tableModule: TableUp;
6
- quill: Quill;
7
- constructor(tableModule: TableUp, quill: Quill, options: TableMenuOptionsInput);
8
- update(): void;
9
- }
@@ -1,5 +0,0 @@
1
- export * from './table-resize-box';
2
- export * from './table-resize-common';
3
- export * from './table-resize-line';
4
- export * from './table-resize-scale';
5
- export * from './utils';
@@ -1,56 +0,0 @@
1
- import { Parchment as TypeParchment, default as Quill } from 'quill';
2
- import { TableColFormat, TableMainFormat, TableRowFormat } from '../../formats';
3
- import { TableUp } from '../../table-up';
4
- import { sizeChangeValue, TableResizeCommon } from './table-resize-common';
5
- export declare class TableResizeBox extends TableResizeCommon {
6
- tableModule: TableUp;
7
- table: HTMLElement;
8
- root: HTMLElement;
9
- tableMain: TableMainFormat;
10
- tableWrapper: TypeParchment.Parent;
11
- resizeObserver: ResizeObserver;
12
- tableCols: TableColFormat[];
13
- tableRows: TableRowFormat[];
14
- rowHeadWrapper: HTMLElement | null;
15
- colHeadWrapper: HTMLElement | null;
16
- corner: HTMLElement | null;
17
- scrollHandler: [HTMLElement, (e: Event) => void][];
18
- lastHeaderSelect: {
19
- index: number;
20
- isX: boolean;
21
- } | null;
22
- size: number;
23
- bem: {
24
- b: () => string;
25
- be: (e?: string) => string;
26
- bm: (m?: string) => string;
27
- bem: (e?: string, m?: string) => string;
28
- ns: (s?: string) => string;
29
- bs: (s?: string) => string;
30
- cv: (v?: string) => string;
31
- is: (n: string) => string;
32
- };
33
- constructor(tableModule: TableUp, table: HTMLElement, quill: Quill);
34
- updateWhenTextChange: () => void;
35
- handleResizerHeader(isX: boolean, index: number, e: MouseEvent): void;
36
- findCurrentColIndex(e: MouseEvent): number;
37
- colWidthChange(i: number, w: sizeChangeValue, isFull: boolean): void;
38
- handleColMouseDownFunc: (e: MouseEvent) => {
39
- height: number;
40
- left: number;
41
- top: number;
42
- } | undefined;
43
- bindColEvents(): void;
44
- findCurrentRowIndex(e: MouseEvent): number;
45
- rowHeightChange(i: number, h: number): void;
46
- handleRowMouseDownFunc: (e: MouseEvent) => {
47
- left: number;
48
- top: number;
49
- width: number;
50
- } | undefined;
51
- bindRowEvents(): void;
52
- update(): void;
53
- show(): void;
54
- hide(): void;
55
- destroy(): void;
56
- }
@@ -1,79 +0,0 @@
1
- import { default as Quill } from 'quill';
2
- import { TableUp } from '../../table-up';
3
- import { TableMainFormat } from '../../formats';
4
- export interface sizeChangeValue {
5
- pre: number;
6
- px: number;
7
- }
8
- export declare class TableResizeCommon {
9
- tableModule: TableUp;
10
- quill: Quill;
11
- colIndex: number;
12
- tableMain?: TableMainFormat;
13
- dragging: boolean;
14
- dragColBreak: HTMLElement | null;
15
- handleColMouseUpFunc: () => Promise<void>;
16
- handleColMouseMoveFunc: (e: MouseEvent) => {
17
- left: number;
18
- width: number;
19
- } | undefined;
20
- handleColMouseDownFunc: (e: MouseEvent) => {
21
- height: number;
22
- left: number;
23
- top: number;
24
- } | undefined;
25
- rowIndex: number;
26
- dragRowBreak: HTMLElement | null;
27
- handleRowMouseUpFunc: () => void;
28
- handleRowMouseMoveFunc: (e: MouseEvent) => {
29
- height: number;
30
- top: number;
31
- } | undefined;
32
- handleRowMouseDownFunc: (e: MouseEvent) => {
33
- left: number;
34
- top: number;
35
- width: number;
36
- } | undefined;
37
- dragBEM: {
38
- b: () => string;
39
- be: (e?: string) => string;
40
- bm: (m?: string) => string;
41
- bem: (e?: string, m?: string) => string;
42
- ns: (s?: string) => string;
43
- bs: (s?: string) => string;
44
- cv: (v?: string) => string;
45
- is: (n: string) => string;
46
- };
47
- constructor(tableModule: TableUp, quill: Quill);
48
- findCurrentColIndex(_e: MouseEvent): number;
49
- colWidthChange(_i: number, _w: sizeChangeValue, _isFull: boolean): void;
50
- createConfirmDialog({ message, confirm, cancel }: {
51
- cancel: string;
52
- confirm: string;
53
- message: string;
54
- }): Promise<boolean>;
55
- handleColMouseUp(): Promise<void>;
56
- handleColMouseMove(e: MouseEvent): {
57
- left: number;
58
- width: number;
59
- } | undefined;
60
- handleColMouseDown(e: MouseEvent): {
61
- height: number;
62
- left: number;
63
- top: number;
64
- } | undefined;
65
- findCurrentRowIndex(_e: MouseEvent): number;
66
- rowHeightChange(_i: number, _h: number): void;
67
- handleRowMouseUp(): void;
68
- handleRowMouseMove(e: MouseEvent): {
69
- height: number;
70
- top: number;
71
- } | undefined;
72
- handleRowMouseDown(e: MouseEvent): {
73
- left: number;
74
- top: number;
75
- width: number;
76
- } | undefined;
77
- update(): void;
78
- destroy(): void;
79
- }
@@ -1,39 +0,0 @@
1
- import { TableUp } from '../../table-up';
2
- import { default as Quill } from 'quill';
3
- import { TableCellFormat } from '../../formats';
4
- import { TableResizeCommon } from './table-resize-common';
5
- export declare class TableResizeLine extends TableResizeCommon {
6
- tableModule: TableUp;
7
- table: HTMLElement;
8
- colResizer: HTMLElement;
9
- rowResizer: HTMLElement;
10
- currentTableCell?: HTMLElement;
11
- dragging: boolean;
12
- curColIndex: number;
13
- curRowIndex: number;
14
- tableCellBlot?: TableCellFormat;
15
- bem: {
16
- b: () => string;
17
- be: (e?: string) => string;
18
- bm: (m?: string) => string;
19
- bem: (e?: string, m?: string) => string;
20
- ns: (s?: string) => string;
21
- bs: (s?: string) => string;
22
- cv: (v?: string) => string;
23
- is: (n: string) => string;
24
- };
25
- constructor(tableModule: TableUp, table: HTMLElement, quill: Quill);
26
- mousemoveHandler: (e: MouseEvent) => void;
27
- hideWhenTextChange: () => void;
28
- findTableCell(e: MouseEvent): HTMLElement | null;
29
- findCurrentColIndex(): number;
30
- handleColMouseUpFunc: () => Promise<void>;
31
- updateColResizer(): void;
32
- findCurrentRowIndex(): number;
33
- handleRowMouseUpFunc: () => void;
34
- updateRowResizer(): void;
35
- show(): void;
36
- hide(): void;
37
- update(): void;
38
- destroy(): void;
39
- }
@@ -1,40 +0,0 @@
1
- import { TableUp } from '../../table-up';
2
- import { TableResizeScaleOptions } from '../../utils';
3
- import { default as Quill } from 'quill';
4
- import { TableMainFormat, TableWrapperFormat } from '../../formats';
5
- export declare class TableResizeScale {
6
- tableModule: TableUp;
7
- table: HTMLElement;
8
- quill: Quill;
9
- scrollHandler: [HTMLElement, (e: Event) => void][];
10
- tableMainBlot: TableMainFormat | null;
11
- tableWrapperBlot: TableWrapperFormat | null;
12
- bem: {
13
- b: () => string;
14
- be: (e?: string) => string;
15
- bm: (m?: string) => string;
16
- bem: (e?: string, m?: string) => string;
17
- ns: (s?: string) => string;
18
- bs: (s?: string) => string;
19
- cv: (v?: string) => string;
20
- is: (n: string) => string;
21
- };
22
- startX: number;
23
- startY: number;
24
- offset: number;
25
- options: TableResizeScaleOptions;
26
- root?: HTMLElement;
27
- block?: HTMLElement;
28
- resizeobserver: ResizeObserver;
29
- constructor(tableModule: TableUp, table: HTMLElement, quill: Quill, options: Partial<TableResizeScaleOptions>);
30
- updateWhenTextChange: () => void;
31
- resolveOptions(options: Partial<TableResizeScaleOptions>): {
32
- blockSize: number;
33
- } & Partial<TableResizeScaleOptions>;
34
- buildResizer(): void;
35
- isTableOutofEditor(): boolean;
36
- update(): void;
37
- show(): void;
38
- hide(): void;
39
- destroy(): void;
40
- }