ados-rcm 1.1.328 → 1.1.329
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.
@@ -6,7 +6,7 @@ export type TAEditorType = 'Primary' | 'ReadOnly' | 'Raw' | 'Error';
|
|
6
6
|
export interface IAEditorProps extends IABaseProps, IAWrapProps {
|
7
7
|
onEnterPress?: (value: string) => void;
|
8
8
|
type?: TAEditorType;
|
9
|
-
editorRef?: React.
|
9
|
+
editorRef?: React.MutableRefObject<ReactQuill | null> | ((instance: ReactQuill | null) => void);
|
10
10
|
useValue?: TUseValues<string>;
|
11
11
|
useError?: TUseValues<boolean>;
|
12
12
|
placeholder?: string;
|
@@ -27,29 +27,43 @@ export interface TableUIOptions {
|
|
27
27
|
maxRowCount?: number;
|
28
28
|
}
|
29
29
|
export default class JaeKanTableUI {
|
30
|
-
TOGGLE_TEMPLATE: string;
|
31
30
|
DEFAULTS: TableUIOptions;
|
32
31
|
quill: Quill;
|
33
32
|
options: any;
|
34
|
-
toggle: HTMLElement | null;
|
35
|
-
menu: HTMLElement | null;
|
36
33
|
position: any;
|
37
34
|
table: any;
|
35
|
+
selectedCell: HTMLElement | null;
|
38
36
|
menuItems: MenuItem[];
|
39
|
-
|
37
|
+
menuRoot: HTMLElement | null;
|
38
|
+
helperTextElement: HTMLElement | null;
|
40
39
|
editorChangeHandler: (type: QuillEvents, range: Range, _oldRange: Range, _source: QuillSources) => void;
|
41
40
|
contextMenuHandler: (evt: MouseEvent) => true | undefined;
|
42
|
-
|
41
|
+
copyHandler: (evt: ClipboardEvent) => void;
|
42
|
+
private readonly boundDocClickHandler;
|
43
|
+
private readonly boundEditorChangeHandler;
|
44
|
+
private readonly boundContextMenuHandler;
|
45
|
+
private readonly boundCopyHandler;
|
46
|
+
constructor(quill: Quill, options: any);
|
47
|
+
private initializeHelperText;
|
48
|
+
private createHelperIcon;
|
49
|
+
private createHelperText;
|
50
|
+
private attachEventListeners;
|
51
|
+
private removeEventListeners;
|
43
52
|
docClickHandler: () => () => void;
|
44
53
|
isTable(range?: Range | null): boolean;
|
45
54
|
getColCount(range?: Range | null): any;
|
46
55
|
showMenu(): void;
|
56
|
+
private renderMenu;
|
57
|
+
private createMenuComponent;
|
58
|
+
private setMenuPosition;
|
59
|
+
private renderMenuItems;
|
60
|
+
private createMenuItemClickHandler;
|
47
61
|
hideMenu(): void;
|
48
|
-
createMenuItem(item: MenuItem): HTMLDivElement;
|
49
62
|
detectButton(range: Range | null): void;
|
50
|
-
|
51
|
-
|
52
|
-
toggleMenu(): void;
|
63
|
+
showHelperText(): void;
|
64
|
+
removeHelperText(): void;
|
53
65
|
destroy(): void;
|
66
|
+
private cleanupUI;
|
67
|
+
private resetState;
|
54
68
|
}
|
55
69
|
export {};
|