ados-rcm 1.1.513 → 1.1.514

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/formats/container-format.d.ts +15 -0
  2. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/index.d.ts +11 -0
  3. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/overrides/block.d.ts +9 -0
  4. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/overrides/index.d.ts +2 -0
  5. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/overrides/scroll.d.ts +10 -0
  6. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-body-format.d.ts +10 -0
  7. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-caption-format.d.ts +23 -0
  8. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-cell-format.d.ts +26 -0
  9. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-cell-inner-format.d.ts +34 -0
  10. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-col-format.d.ts +22 -0
  11. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-colgroup-format.d.ts +20 -0
  12. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-main-format.d.ts +26 -0
  13. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-row-format.d.ts +25 -0
  14. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/table-wrapper-format.d.ts +14 -0
  15. package/dist/AModule/AComponents/AEditor/modules/tableUp/formats/utils.d.ts +1 -0
  16. package/dist/AModule/AComponents/AEditor/modules/tableUp/index.d.ts +7 -0
  17. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/index.d.ts +6 -0
  18. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-align.d.ts +31 -0
  19. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-clipboard.d.ts +42 -0
  20. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/constants.d.ts +12 -0
  21. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/index.d.ts +4 -0
  22. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/table-menu-common.d.ts +43 -0
  23. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/table-menu-contextmenu.d.ts +21 -0
  24. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-menu/table-menu-select.d.ts +9 -0
  25. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/index.d.ts +5 -0
  26. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-box.d.ts +56 -0
  27. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-common.d.ts +79 -0
  28. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-line.d.ts +39 -0
  29. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/table-resize-scale.d.ts +40 -0
  30. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-resize/utils.d.ts +2 -0
  31. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-scrollbar.d.ts +89 -0
  32. package/dist/AModule/AComponents/AEditor/modules/tableUp/modules/table-selection.d.ts +87 -0
  33. package/dist/AModule/AComponents/AEditor/modules/tableUp/table-up.d.ts +119 -0
  34. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/bem.d.ts +18 -0
  35. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/blot-helper.d.ts +25 -0
  36. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/color.d.ts +18 -0
  37. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/button.d.ts +6 -0
  38. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/color-picker.d.ts +6 -0
  39. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/dialog.d.ts +10 -0
  40. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/index.d.ts +6 -0
  41. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/input.d.ts +15 -0
  42. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/table/creator.d.ts +10 -0
  43. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/table/index.d.ts +2 -0
  44. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/table/select-box.d.ts +10 -0
  45. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/components/tooltip.d.ts +18 -0
  46. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/constants.d.ts +30 -0
  47. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/index.d.ts +13 -0
  48. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/is.d.ts +7 -0
  49. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/position.d.ts +14 -0
  50. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/resize-observer-helper.d.ts +4 -0
  51. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/scroll-event-handle.d.ts +6 -0
  52. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/transformer.d.ts +2 -0
  53. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/transition-event-helper.d.ts +1 -0
  54. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/types.d.ts +149 -0
  55. package/dist/AModule/AComponents/AEditor/modules/tableUp/utils/utils.d.ts +2 -0
  56. package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +1 -0
  57. package/dist/index.cjs.js +198 -209
  58. package/dist/index.es.js +25630 -21396
  59. package/package.json +6 -2
@@ -0,0 +1,149 @@
1
+ import { default as Quill } from 'quill';
2
+ import { default as BaseTheme } from 'quill/themes/base';
3
+ import { default as Picker } from 'quill/ui/picker';
4
+ import { TableCellInnerFormat } from '../formats';
5
+ import { MenuTooltipInstance } from '../modules';
6
+ import { TableUp } from '../table-up';
7
+ import { blotName, tableUpEvent, tableUpInternal, tableUpSize } from './constants';
8
+ export type QuillThemePicker = Picker & {
9
+ options: HTMLElement;
10
+ };
11
+ export interface QuillTheme extends BaseTheme {
12
+ pickers: QuillThemePicker[];
13
+ }
14
+ export interface ToolOption {
15
+ handle: (tableModule: TableUp, selectedTds: TableCellInnerFormat[], e: Event | string | null) => void;
16
+ icon: string | ((tableModule: TableUp) => HTMLElement);
17
+ isColorChoose?: boolean;
18
+ key?: string;
19
+ name: string;
20
+ tip?: string;
21
+ }
22
+ export interface ToolOptionBreak {
23
+ name: 'break';
24
+ }
25
+ export type Tool = ToolOption | ToolOptionBreak;
26
+ export interface TableMenuOptions {
27
+ defaultColorMap: string[];
28
+ localstorageKey: string;
29
+ tipText: boolean;
30
+ tools: Tool[];
31
+ }
32
+ export interface TableSelectionOptions {
33
+ selectColor: string;
34
+ tableMenu?: Constructor<InternalTableMenuModule, [TableUp, Quill, Partial<TableMenuOptions>]>;
35
+ tableMenuOptions: TableMenuOptions;
36
+ }
37
+ export interface TableResizeScaleOptions {
38
+ blockSize: number;
39
+ }
40
+ export interface TableCreatorTextOptions {
41
+ cancelText: string;
42
+ colText: string;
43
+ confirmText: string;
44
+ customBtnText: string;
45
+ fullCheckboxText: string;
46
+ notPositiveNumberError: string;
47
+ perWidthInsufficient: string;
48
+ rowText: string;
49
+ }
50
+ export type TableMenuTexts = Record<string, string>;
51
+ export interface TableTextOptions extends TableCreatorTextOptions, TableMenuTexts {
52
+ clear: string;
53
+ custom: string;
54
+ perWidthInsufficient: string;
55
+ transparent: string;
56
+ }
57
+ export interface TableUpOptions {
58
+ align?: Constructor<InternalModule, [TableUp, HTMLElement, Quill, any]>;
59
+ alignOptions: any;
60
+ customBtn: boolean;
61
+ customSelect?: (tableModule: TableUp, picker: QuillThemePicker) => Promise<HTMLElement> | HTMLElement;
62
+ full: boolean;
63
+ fullSwitch: boolean;
64
+ icon: string;
65
+ resize?: Constructor<InternalModule, [TableUp, HTMLElement, Quill, any]>;
66
+ resizeOptions: any;
67
+ resizeScale?: Constructor<InternalModule, [TableUp, HTMLElement, Quill, Partial<TableResizeScaleOptions>]>;
68
+ resizeScaleOptions: Partial<TableResizeScaleOptions>;
69
+ scrollbar?: Constructor<InternalModule, [TableUp, HTMLElement, Quill, any]>;
70
+ scrollbarOptions: any;
71
+ selection?: Constructor<InternalTableSelectionModule, [TableUp, Quill, Partial<TableSelectionOptions>]>;
72
+ selectionOptions: Partial<TableSelectionOptions>;
73
+ texts: TableTextOptions;
74
+ }
75
+ export interface TableColValue {
76
+ align?: string;
77
+ colId: string;
78
+ full?: boolean;
79
+ tableId: string;
80
+ width: number;
81
+ }
82
+ export interface TableCellValue {
83
+ colId: string;
84
+ colspan: number;
85
+ rowId: string;
86
+ rowspan: number;
87
+ style?: string;
88
+ tableId: string;
89
+ }
90
+ export interface TableRowValue {
91
+ rowId: string;
92
+ tableId: string;
93
+ }
94
+ export interface TableCaptionValue {
95
+ side: 'top' | 'bottom';
96
+ tableId: string;
97
+ }
98
+ export interface TableValue {
99
+ align?: string;
100
+ full?: boolean;
101
+ tableId: string;
102
+ }
103
+ export interface RelactiveRect {
104
+ height: number;
105
+ width: number;
106
+ x: number;
107
+ x1: number;
108
+ y: number;
109
+ y1: number;
110
+ }
111
+ export interface InternalModule {
112
+ destroy: () => void;
113
+ hide: () => void;
114
+ show: () => void;
115
+ update: () => void;
116
+ }
117
+ export type Constructor<T = any, U extends Array<any> = any[]> = new (...args: U) => T;
118
+ export interface InternalTableSelectionModule extends InternalModule {
119
+ boundary: RelactiveRect | null;
120
+ cellSelect: HTMLElement;
121
+ computeSelectedTds: (startPoint: {
122
+ x: number;
123
+ y: number;
124
+ }, endPoint: {
125
+ x: number;
126
+ y: number;
127
+ }) => TableCellInnerFormat[];
128
+ dragging: boolean;
129
+ hideDisplay: () => void;
130
+ isDisplaySelection: boolean;
131
+ selectedTds: TableCellInnerFormat[];
132
+ showDisplay: () => void;
133
+ table?: HTMLElement;
134
+ tableMenu?: InternalModule;
135
+ updateWithSelectedTds: () => void;
136
+ }
137
+ export interface InternalTableMenuModule extends InternalModule {
138
+ activeTooltip: MenuTooltipInstance | null;
139
+ isMenuDisplay: boolean;
140
+ }
141
+ export type Writable<T> = {
142
+ -readonly [P in keyof T]: T[P];
143
+ };
144
+ export interface TableConstantsData {
145
+ blotName: Partial<Record<keyof Writable<typeof blotName>, string>>;
146
+ tableUpEvent: Partial<typeof tableUpEvent>;
147
+ tableUpInternal: Partial<typeof tableUpInternal>;
148
+ tableUpSize: Partial<typeof tableUpSize>;
149
+ }
@@ -0,0 +1,2 @@
1
+ export declare const randomId: () => string;
2
+ export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): (this: any, ...args: Parameters<T>) => void;
@@ -24,6 +24,7 @@ export interface IATreeItemProps<T> {
24
24
  expanded?: TIcons | Exclude<React.ReactNode, string>;
25
25
  noChild?: TIcons | Exclude<React.ReactNode, string>;
26
26
  };
27
+ id: string;
27
28
  indents: EIndentState[];
28
29
  isDraggable?: boolean;
29
30
  isEqual: (a: T, b: T) => boolean;