@opentiny/fluent-editor 3.25.4 → 4.0.0-alpha.0

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 (200) hide show
  1. package/es/attributors/font-style.es.js +1 -1
  2. package/es/attributors/font-style.es.js.map +1 -1
  3. package/es/attributors/line-height.es.js +1 -1
  4. package/es/attributors/line-height.es.js.map +1 -1
  5. package/es/config/editor.utils.es.js +0 -9
  6. package/es/config/editor.utils.es.js.map +1 -1
  7. package/es/config/i18n/en-us.es.js +33 -4
  8. package/es/config/i18n/en-us.es.js.map +1 -1
  9. package/es/config/i18n/zh-cn.es.js +33 -4
  10. package/es/config/i18n/zh-cn.es.js.map +1 -1
  11. package/es/config/index.es.js +1 -2
  12. package/es/core/fluent-editor.es.js +3 -0
  13. package/es/core/fluent-editor.es.js.map +1 -1
  14. package/es/fluent-editor.es.js +12 -9
  15. package/es/fluent-editor.es.js.map +1 -1
  16. package/es/index.es.js +5 -2
  17. package/es/index.es.js.map +1 -1
  18. package/es/modules/custom-clipboard.es.js +1 -57
  19. package/es/modules/custom-clipboard.es.js.map +1 -1
  20. package/es/modules/i18n.es.js +4 -3
  21. package/es/modules/i18n.es.js.map +1 -1
  22. package/es/modules/link/index.es.js +0 -17
  23. package/es/modules/link/index.es.js.map +1 -1
  24. package/es/modules/shortcut-key/index.es.js +213 -0
  25. package/es/modules/shortcut-key/index.es.js.map +1 -0
  26. package/es/modules/table-up/index.es.js +61 -0
  27. package/es/modules/table-up/index.es.js.map +1 -0
  28. package/es/modules/toolbar/better-picker.es.js +21 -269
  29. package/es/modules/toolbar/better-picker.es.js.map +1 -1
  30. package/es/modules/toolbar/index.es.js +0 -1
  31. package/es/modules/toolbar/index.es.js.map +1 -1
  32. package/es/modules/toolbar/toolbar-tip.es.js +38 -8
  33. package/es/modules/toolbar/toolbar-tip.es.js.map +1 -1
  34. package/es/themes/snow.es.js +185 -46
  35. package/es/themes/snow.es.js.map +1 -1
  36. package/es/ui/icons.config.es.js +6 -5
  37. package/es/ui/icons.config.es.js.map +1 -1
  38. package/es/ui/icons.es.js +3 -12
  39. package/es/ui/icons.es.js.map +1 -1
  40. package/lib/attributors/font-style.cjs.js +1 -1
  41. package/lib/attributors/font-style.cjs.js.map +1 -1
  42. package/lib/attributors/line-height.cjs.js +1 -1
  43. package/lib/attributors/line-height.cjs.js.map +1 -1
  44. package/lib/config/editor.utils.cjs.js +0 -9
  45. package/lib/config/editor.utils.cjs.js.map +1 -1
  46. package/lib/config/i18n/en-us.cjs.js +33 -4
  47. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  48. package/lib/config/i18n/zh-cn.cjs.js +33 -4
  49. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  50. package/lib/config/index.cjs.js +0 -1
  51. package/lib/config/index.cjs.js.map +1 -1
  52. package/lib/core/fluent-editor.cjs.js +3 -0
  53. package/lib/core/fluent-editor.cjs.js.map +1 -1
  54. package/lib/fluent-editor.cjs.js +12 -9
  55. package/lib/fluent-editor.cjs.js.map +1 -1
  56. package/lib/index.cjs.js +7 -1
  57. package/lib/index.cjs.js.map +1 -1
  58. package/lib/modules/custom-clipboard.cjs.js +0 -56
  59. package/lib/modules/custom-clipboard.cjs.js.map +1 -1
  60. package/lib/modules/i18n.cjs.js +4 -3
  61. package/lib/modules/i18n.cjs.js.map +1 -1
  62. package/lib/modules/link/index.cjs.js +0 -17
  63. package/lib/modules/link/index.cjs.js.map +1 -1
  64. package/lib/modules/shortcut-key/index.cjs.js +213 -0
  65. package/lib/modules/shortcut-key/index.cjs.js.map +1 -0
  66. package/lib/modules/table-up/index.cjs.js +61 -0
  67. package/lib/modules/table-up/index.cjs.js.map +1 -0
  68. package/lib/modules/toolbar/better-picker.cjs.js +21 -270
  69. package/lib/modules/toolbar/better-picker.cjs.js.map +1 -1
  70. package/lib/modules/toolbar/index.cjs.js +0 -1
  71. package/lib/modules/toolbar/index.cjs.js.map +1 -1
  72. package/lib/modules/toolbar/toolbar-tip.cjs.js +38 -8
  73. package/lib/modules/toolbar/toolbar-tip.cjs.js.map +1 -1
  74. package/lib/themes/snow.cjs.js +187 -48
  75. package/lib/themes/snow.cjs.js.map +1 -1
  76. package/lib/ui/icons.cjs.js +2 -11
  77. package/lib/ui/icons.cjs.js.map +1 -1
  78. package/lib/ui/icons.config.cjs.js +6 -5
  79. package/lib/ui/icons.config.cjs.js.map +1 -1
  80. package/package.json +4 -2
  81. package/style.css +315 -2135
  82. package/types/attributors/font-style.d.ts +1 -1
  83. package/types/config/editor.config.d.ts +62 -6
  84. package/types/config/editor.utils.d.ts +0 -1
  85. package/types/config/i18n/en-us.d.ts +31 -3
  86. package/types/config/i18n/zh-cn.d.ts +31 -3
  87. package/types/config/types/toolbar-item.interface.d.ts +11 -11
  88. package/types/core/fluent-editor.d.ts +1 -0
  89. package/types/index.d.ts +2 -0
  90. package/types/modules/i18n.d.ts +1 -1
  91. package/types/modules/shortcut-key/index.d.ts +97 -0
  92. package/types/modules/table-up/index.d.ts +66 -0
  93. package/types/modules/toolbar/better-picker.d.ts +15 -0
  94. package/types/themes/snow.d.ts +10 -2
  95. package/types/ui/icons.config.d.ts +2 -2
  96. package/es/modules/global-link/constants.es.js +0 -9
  97. package/es/modules/global-link/constants.es.js.map +0 -1
  98. package/es/modules/global-link/formats/customer-widget-link.es.js +0 -28
  99. package/es/modules/global-link/formats/customer-widget-link.es.js.map +0 -1
  100. package/es/modules/global-link/formats/doc-link.es.js +0 -42
  101. package/es/modules/global-link/formats/doc-link.es.js.map +0 -1
  102. package/es/modules/global-link/formats/wiki-link.es.js +0 -34
  103. package/es/modules/global-link/formats/wiki-link.es.js.map +0 -1
  104. package/es/modules/global-link/formats/work-item-link.es.js +0 -36
  105. package/es/modules/global-link/formats/work-item-link.es.js.map +0 -1
  106. package/es/modules/global-link/global-link-panel.es.js +0 -2
  107. package/es/modules/global-link/global-link-panel.es.js.map +0 -1
  108. package/es/modules/global-link/index.es.js +0 -139
  109. package/es/modules/global-link/index.es.js.map +0 -1
  110. package/es/modules/global-link/utils/createTable.es.js +0 -50
  111. package/es/modules/global-link/utils/createTable.es.js.map +0 -1
  112. package/es/modules/quick-menu.es.js +0 -82
  113. package/es/modules/quick-menu.es.js.map +0 -1
  114. package/es/modules/table/better-table.es.js +0 -485
  115. package/es/modules/table/better-table.es.js.map +0 -1
  116. package/es/modules/table/formats/header.es.js +0 -94
  117. package/es/modules/table/formats/header.es.js.map +0 -1
  118. package/es/modules/table/formats/list.es.js +0 -163
  119. package/es/modules/table/formats/list.es.js.map +0 -1
  120. package/es/modules/table/formats/table.es.js +0 -969
  121. package/es/modules/table/formats/table.es.js.map +0 -1
  122. package/es/modules/table/modules/table-column-tool.es.js +0 -400
  123. package/es/modules/table/modules/table-column-tool.es.js.map +0 -1
  124. package/es/modules/table/modules/table-operation-menu.es.js +0 -475
  125. package/es/modules/table/modules/table-operation-menu.es.js.map +0 -1
  126. package/es/modules/table/modules/table-scroll-bar.es.js +0 -190
  127. package/es/modules/table/modules/table-scroll-bar.es.js.map +0 -1
  128. package/es/modules/table/modules/table-selection.es.js +0 -305
  129. package/es/modules/table/modules/table-selection.es.js.map +0 -1
  130. package/es/modules/table/modules/table-selector.es.js +0 -158
  131. package/es/modules/table/modules/table-selector.es.js.map +0 -1
  132. package/es/modules/table/table-config.es.js +0 -74
  133. package/es/modules/table/table-config.es.js.map +0 -1
  134. package/es/modules/table/utils/index.es.js +0 -54
  135. package/es/modules/table/utils/index.es.js.map +0 -1
  136. package/es/modules/table/utils/node-matchers.es.js +0 -292
  137. package/es/modules/table/utils/node-matchers.es.js.map +0 -1
  138. package/lib/modules/global-link/constants.cjs.js +0 -9
  139. package/lib/modules/global-link/constants.cjs.js.map +0 -1
  140. package/lib/modules/global-link/formats/customer-widget-link.cjs.js +0 -28
  141. package/lib/modules/global-link/formats/customer-widget-link.cjs.js.map +0 -1
  142. package/lib/modules/global-link/formats/doc-link.cjs.js +0 -42
  143. package/lib/modules/global-link/formats/doc-link.cjs.js.map +0 -1
  144. package/lib/modules/global-link/formats/wiki-link.cjs.js +0 -34
  145. package/lib/modules/global-link/formats/wiki-link.cjs.js.map +0 -1
  146. package/lib/modules/global-link/formats/work-item-link.cjs.js +0 -36
  147. package/lib/modules/global-link/formats/work-item-link.cjs.js.map +0 -1
  148. package/lib/modules/global-link/global-link-panel.cjs.js +0 -2
  149. package/lib/modules/global-link/global-link-panel.cjs.js.map +0 -1
  150. package/lib/modules/global-link/index.cjs.js +0 -139
  151. package/lib/modules/global-link/index.cjs.js.map +0 -1
  152. package/lib/modules/global-link/utils/createTable.cjs.js +0 -50
  153. package/lib/modules/global-link/utils/createTable.cjs.js.map +0 -1
  154. package/lib/modules/quick-menu.cjs.js +0 -82
  155. package/lib/modules/quick-menu.cjs.js.map +0 -1
  156. package/lib/modules/table/better-table.cjs.js +0 -485
  157. package/lib/modules/table/better-table.cjs.js.map +0 -1
  158. package/lib/modules/table/formats/header.cjs.js +0 -94
  159. package/lib/modules/table/formats/header.cjs.js.map +0 -1
  160. package/lib/modules/table/formats/list.cjs.js +0 -163
  161. package/lib/modules/table/formats/list.cjs.js.map +0 -1
  162. package/lib/modules/table/formats/table.cjs.js +0 -969
  163. package/lib/modules/table/formats/table.cjs.js.map +0 -1
  164. package/lib/modules/table/modules/table-column-tool.cjs.js +0 -400
  165. package/lib/modules/table/modules/table-column-tool.cjs.js.map +0 -1
  166. package/lib/modules/table/modules/table-operation-menu.cjs.js +0 -475
  167. package/lib/modules/table/modules/table-operation-menu.cjs.js.map +0 -1
  168. package/lib/modules/table/modules/table-scroll-bar.cjs.js +0 -190
  169. package/lib/modules/table/modules/table-scroll-bar.cjs.js.map +0 -1
  170. package/lib/modules/table/modules/table-selection.cjs.js +0 -305
  171. package/lib/modules/table/modules/table-selection.cjs.js.map +0 -1
  172. package/lib/modules/table/modules/table-selector.cjs.js +0 -158
  173. package/lib/modules/table/modules/table-selector.cjs.js.map +0 -1
  174. package/lib/modules/table/table-config.cjs.js +0 -74
  175. package/lib/modules/table/table-config.cjs.js.map +0 -1
  176. package/lib/modules/table/utils/index.cjs.js +0 -54
  177. package/lib/modules/table/utils/index.cjs.js.map +0 -1
  178. package/lib/modules/table/utils/node-matchers.cjs.js +0 -292
  179. package/lib/modules/table/utils/node-matchers.cjs.js.map +0 -1
  180. package/types/modules/global-link/constants.d.ts +0 -3
  181. package/types/modules/global-link/formats/customer-widget-link.d.ts +0 -14
  182. package/types/modules/global-link/formats/doc-link.d.ts +0 -17
  183. package/types/modules/global-link/formats/wiki-link.d.ts +0 -16
  184. package/types/modules/global-link/formats/work-item-link.d.ts +0 -16
  185. package/types/modules/global-link/global-link-panel.d.ts +0 -19
  186. package/types/modules/global-link/index.d.ts +0 -18
  187. package/types/modules/global-link/utils/createTable.d.ts +0 -1
  188. package/types/modules/quick-menu.d.ts +0 -22
  189. package/types/modules/table/better-table.d.ts +0 -35
  190. package/types/modules/table/formats/header.d.ts +0 -23
  191. package/types/modules/table/formats/list.d.ts +0 -34
  192. package/types/modules/table/formats/table.d.ts +0 -147
  193. package/types/modules/table/modules/table-column-tool.d.ts +0 -23
  194. package/types/modules/table/modules/table-operation-menu.d.ts +0 -38
  195. package/types/modules/table/modules/table-scroll-bar.d.ts +0 -33
  196. package/types/modules/table/modules/table-selection.d.ts +0 -37
  197. package/types/modules/table/modules/table-selector.d.ts +0 -22
  198. package/types/modules/table/table-config.d.ts +0 -38
  199. package/types/modules/table/utils/index.d.ts +0 -17
  200. package/types/modules/table/utils/node-matchers.d.ts +0 -9
@@ -1,3 +0,0 @@
1
- export declare const ON_WIKI_LINK_REMOVE = "wiki-link/remove";
2
- export declare const ON_DOC_LINK_REMOVE = "doc-link/remove";
3
- export declare const ON_WORK_ITEM_LINK_REMOVE = "work-item-link/remove";
@@ -1,14 +0,0 @@
1
- declare const BlockEmbed: unknown;
2
- declare class CustomerWidgetLink extends BlockEmbed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- static create(value: any): any;
7
- static value(domNode: any): {
8
- type: any;
9
- id: any;
10
- value: any;
11
- };
12
- constructor(scroll: any, domNode: any, data: any);
13
- }
14
- export default CustomerWidgetLink;
@@ -1,17 +0,0 @@
1
- declare const Embed: unknown;
2
- declare class DocumentLink extends Embed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- docData: any;
7
- scroll: any;
8
- static create(value: any): any;
9
- static value(domNode: any): {
10
- link: any;
11
- icon: any;
12
- text: any;
13
- };
14
- constructor(scroll: any, domNode: any, data: any);
15
- remove(): any;
16
- }
17
- export default DocumentLink;
@@ -1,16 +0,0 @@
1
- declare const Embed: unknown;
2
- declare class WikiLink extends Embed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- wikiData: any;
7
- scroll: any;
8
- static create(value: any): any;
9
- static value(domNode: any): {
10
- link: any;
11
- text: any;
12
- };
13
- constructor(scroll: any, domNode: any, data: any);
14
- remove(): any;
15
- }
16
- export default WikiLink;
@@ -1,16 +0,0 @@
1
- declare const BlockEmbed: unknown;
2
- declare class WorkItemLink extends BlockEmbed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- workItemData: any;
7
- scroll: any;
8
- static create(value: any): any;
9
- static value(domNode: any): {
10
- link: any;
11
- data: any;
12
- };
13
- constructor(scroll: any, domNode: any, data: any);
14
- remove(): any;
15
- }
16
- export default WorkItemLink;
@@ -1,19 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
-
3
- interface WikiLink {
4
- link: string;
5
- text: string;
6
- }
7
- interface DocLink {
8
- link: string;
9
- text: string;
10
- icon: string;
11
- }
12
- export interface GlobalLinkPanel {
13
- wikiLink: EventEmitter<WikiLink[]>;
14
- docLink: EventEmitter<DocLink[]>;
15
- workItemLink: EventEmitter<any>;
16
- close?: EventEmitter<any>;
17
- autoClose?: boolean;
18
- }
19
- export {};
@@ -1,18 +0,0 @@
1
- declare const Module: unknown;
2
- declare class GlobalLink extends Module {
3
- open: boolean;
4
- wrap: any;
5
- panel: any;
6
- quill: any;
7
- static register(): void;
8
- constructor(quill: any, options: any);
9
- onEditorClick(evt: any): void;
10
- handleLinkClick(linkNode: any): void;
11
- handleGlobalLinkButtonClick(_value: any): void;
12
- triggerPanel(): void;
13
- addWikiLink(wikiData: any): void;
14
- addDocLink(docData: any): void;
15
- addWorkItemLink(workItemData: any): void;
16
- closePanel(): void;
17
- }
18
- export default GlobalLink;
@@ -1 +0,0 @@
1
- export declare function createTable(data: any[]): HTMLTableElement;
@@ -1,22 +0,0 @@
1
- import { default as Quill } from 'quill';
2
-
3
- interface QuickMenuOptions {
4
- container: string;
5
- component: any;
6
- }
7
- declare class QuickMenu {
8
- private quill;
9
- private options;
10
- private container;
11
- private hostElement;
12
- private quickMenu;
13
- private quickMenuContainer;
14
- constructor(quill: Quill, options: QuickMenuOptions);
15
- handleSlashKeyDown: (_range: any, context: any) => void;
16
- private isOpen;
17
- hideQuickMenu: (event: any) => void;
18
- handleArrowUpKey: (_range: any, _context: any) => boolean;
19
- handleArrowDownKey: (_range: any, _context: any) => boolean;
20
- handleEnterKey: (_range: any, _context: any) => boolean;
21
- }
22
- export default QuickMenu;
@@ -1,35 +0,0 @@
1
- import { default as TableColumnTool } from './modules/table-column-tool';
2
- import { default as TableScrollBar } from './modules/table-scroll-bar';
3
- import { default as TableSelector } from './modules/table-selector';
4
-
5
- declare const Module: unknown;
6
- declare class BetterTable extends Module {
7
- static keyboardBindings: any;
8
- isComposition: boolean;
9
- quill: any;
10
- table: any;
11
- modulesContainer: any;
12
- tableSelection: any;
13
- subscriber: any;
14
- tableOperationMenu: any;
15
- columnTool: TableColumnTool;
16
- tableScrollBar: TableScrollBar;
17
- tableSelector: TableSelector;
18
- isTableSelectorVisible: boolean;
19
- tableSelectorWrapper: HTMLDivElement;
20
- static register(): void;
21
- constructor(quill: any, options: any);
22
- initTableSelector(): void;
23
- tableSelectorWrapperCreator(): HTMLDivElement;
24
- handleMouseDown(evt: any, quill: any): void;
25
- handleKeyDown(evt: any, quill: any): void;
26
- handleCompositionstart(quill: any): void;
27
- handleCompositionend(quill: any): void;
28
- handleTableSelectorHover(): void;
29
- handleTableSelectorMouseOut(): void;
30
- getTable(range?: any): any[];
31
- insertTable(rows: any, columns: any): void;
32
- showTableTools(table: any, quill: any): void;
33
- hideTableTools(): void;
34
- }
35
- export default BetterTable;
@@ -1,23 +0,0 @@
1
- import { default as TypeHeader } from 'quill/formats/header';
2
-
3
- declare const OriginHeader: typeof TypeHeader;
4
- declare class Header extends OriginHeader {
5
- static tagName: any;
6
- static blotName: string;
7
- domNode: any;
8
- replaceWith: any;
9
- parent: any;
10
- wrap: any;
11
- enforceAllowedChildren: any;
12
- uiNode: any;
13
- children: any;
14
- appendChild: any;
15
- remove: any;
16
- cache: Record<string, any>;
17
- scroll: any;
18
- static create(value: any): HTMLElement;
19
- static formats(domNode: any): any;
20
- format(name: any, value: any): void;
21
- optimize(_context: any): void;
22
- }
23
- export default Header;
@@ -1,34 +0,0 @@
1
- declare const Block: unknown;
2
- declare const Container: unknown;
3
- declare class ListContainer extends Container {
4
- static allowedChildren: any;
5
- static blotName: string;
6
- static tagName: string;
7
- replaceWith: any;
8
- domNode: any;
9
- parent: any;
10
- statics: any;
11
- wrap: any;
12
- format(name: any, value: any): void;
13
- }
14
- declare class ListItem extends Block {
15
- static blotName: string;
16
- static tagName: string;
17
- static requiredContainer: typeof ListContainer;
18
- statics: any;
19
- attachUI: any;
20
- domNode: any;
21
- replaceWith: any;
22
- parent: any;
23
- wrap: any;
24
- children: any;
25
- prev: any;
26
- remove: () => void;
27
- static create(value: any): any;
28
- static formats(domNode: any): any;
29
- static register(): void;
30
- constructor(scroll: any, domNode: any);
31
- format(name: any, value: any): void;
32
- optimize(context: any): void;
33
- }
34
- export { ListItem as default, ListContainer };
@@ -1,147 +0,0 @@
1
- import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
2
-
3
- declare const Block: unknown;
4
- declare const Container: unknown;
5
- declare class TableCellLine extends Block {
6
- static requiredContainer: any;
7
- static tagName: string;
8
- static className: string;
9
- static blotName: any;
10
- domNode: any;
11
- statics: any;
12
- wrap: any;
13
- parent: any;
14
- static create(value: any): any;
15
- static formats(domNode: any): Record<string, any>;
16
- toggleAttribute(name: any, value: any): void;
17
- formatChildren(name: any, value: any): void;
18
- format(name: any, value: any): void;
19
- optimize(context: any): void;
20
- tableCell(): any;
21
- }
22
- declare class TableCell extends Container {
23
- static allowedChildren: any;
24
- static blotName: any;
25
- static requiredContainer: any;
26
- static tagName: string;
27
- next: any;
28
- children: any;
29
- parent: any;
30
- domNode: any;
31
- statics: any;
32
- wrap: any;
33
- splitAfter: any;
34
- prev: any;
35
- scroll: any;
36
- static create(value?: {
37
- row: string;
38
- }): any;
39
- static formats(domNode: any): {
40
- height: any;
41
- row: any;
42
- };
43
- checkMerge(): boolean;
44
- cellOffset(): any;
45
- formats(): {};
46
- toggleAttribute(name: any, value: any): void;
47
- formatChildren(name: any, value: any): void;
48
- /**
49
- * this method is for TableCellLine to change cell background color
50
- * if use `format('cell-bg', value)` will loop trigger
51
- * TableCellLine.optimize -> TableCell.format -> TableCellLine.optimize ...
52
- */
53
- setCellBg(value?: string): void;
54
- format(name: any, value: any): void;
55
- optimize(context: any): void;
56
- getFormat(domNode: any): Record<string, any>;
57
- row(): any;
58
- rowOffset(): any;
59
- table(): any;
60
- }
61
- declare class TableRow extends Container {
62
- static requiredContainer: any;
63
- static allowedChildren: any;
64
- static blotName: string;
65
- static tagName: string;
66
- next: any;
67
- children: any;
68
- domNode: any;
69
- statics: any;
70
- wrap: any;
71
- splitAfter: any;
72
- enforceAllowedChildren: any;
73
- uiNode: any;
74
- parent: any;
75
- prev: any;
76
- static create(value: any): any;
77
- checkMerge(): boolean;
78
- formats(): {};
79
- format(key: any, value: any): void;
80
- optimize(context: any): void;
81
- rowOffset(): any;
82
- table(): any;
83
- }
84
- declare class TableBody extends Container {
85
- static requiredContainer: any;
86
- static allowedChildren: any;
87
- static blotName: string;
88
- static tagName: string;
89
- }
90
- declare class TableCol extends Block {
91
- static requiredContainer: any;
92
- static blotName: string;
93
- static tagName: string;
94
- domNode: any;
95
- static create(value: any): any;
96
- static formats(domNode: any): {};
97
- format(name: any, value: any): void;
98
- html(): any;
99
- }
100
- declare class TableColGroup extends Container {
101
- static requiredContainer: any;
102
- static allowedChildren: any;
103
- static blotName: string;
104
- static tagName: string;
105
- parent: any;
106
- statics: any;
107
- optimize(context: any): void;
108
- findTdColspanInTbody(tbody: any, trId: any): number;
109
- }
110
- declare class TableContainer extends Container {
111
- static blotName: string;
112
- static className: string;
113
- static tagName: string;
114
- static requiredContainer: any;
115
- static allowedChildren: any;
116
- domNode: any;
117
- parent: any;
118
- children: any;
119
- descendants: any;
120
- scroll: any;
121
- remove: any;
122
- static create(): any;
123
- constructor(scroll: any, domNode: any);
124
- updateTableWidth(): void;
125
- cells(column: any): any;
126
- colGroup(): any;
127
- deleteColumns(compareRect: any, delIndexes: any[], editorWrapper: any): boolean;
128
- deleteRow(compareRect: any, editorWrapper: any): void;
129
- tableDestroy(): void;
130
- insertCell(tableRow: any, ref: any, bg?: string): void;
131
- insertColumn(compareRect: any, colIndex: any, isRight: boolean, editorWrapper: any): any[];
132
- insertRow(compareRect: any, isDown: any, editorWrapper: any): any[];
133
- mergeCells(_compareRect: any, mergingCells: any, rowspan: any, colspan: any, _editorWrapper: any): any;
134
- unmergeCells(unmergingCells: any, editorWrapper: any): void;
135
- emptyCells(selectedTds: any): void;
136
- rows(): any;
137
- }
138
- declare class TableViewWrapper extends Container {
139
- static blotName: string;
140
- static tagName: string;
141
- static className: string;
142
- static allowedChildren: any;
143
- constructor(scroll: any, domNode: any);
144
- }
145
- declare function rowId(): string;
146
- declare function cellId(): string;
147
- export { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS, cellId, rowId, TableBody, TableCell, TableCellLine, TableCol, TableColGroup, TableContainer, TableRow, TableViewWrapper, };
@@ -1,23 +0,0 @@
1
- export default class TableColumnTool {
2
- table: any;
3
- quill: any;
4
- modulesContainer: any;
5
- domNode: any;
6
- columnCtrlPanel: HTMLDivElement;
7
- leftMask: HTMLDivElement;
8
- rowCtrlPanel: HTMLDivElement;
9
- activeToolCell: HTMLElement;
10
- oldRootScrollTop: any;
11
- constructor(table: any, quill: any, dom: any);
12
- handleQuillRootScroll(): void;
13
- initColTool(): void;
14
- createToolCell(isRow: any): HTMLDivElement;
15
- updateColToolCells(): void;
16
- updateRowToolCells(): void;
17
- destroy(): any;
18
- addRowCellSelectHandler(cell: any): void;
19
- addRowCellHolderHandler(cell: any): void;
20
- addColCellSelectHandler(cell: any): void;
21
- addColCellHolderHandler(cell: any): void;
22
- colToolCells(): unknown[];
23
- }
@@ -1,38 +0,0 @@
1
- export default class TableOperationMenu {
2
- tableSelection: any;
3
- table: any;
4
- quill: any;
5
- options: any;
6
- menuItems: any;
7
- tableColumnTool: any;
8
- tableScrollBar: any;
9
- boundary: any;
10
- selectedTds: any;
11
- destroyHandler: any;
12
- columnToolCells: any;
13
- colorSubTitle: any;
14
- cellColors: any;
15
- domNode: any;
16
- DEFAULT_COLOR_SUBTITLE: string;
17
- DEFAULT_MENU: Record<string, {
18
- text: string;
19
- handler: () => void;
20
- }>;
21
- constructor(params: any, quill: any, options: any);
22
- setDefaultMenu(): void;
23
- mount(): void;
24
- destroy(): any;
25
- menuInitial({ cell, left, top }: {
26
- cell: any;
27
- left: any;
28
- top: any;
29
- }): void;
30
- colorsItemCreator(colors: any): HTMLDivElement;
31
- menuItemCreator({ text }: {
32
- text: any;
33
- }): HTMLDivElement;
34
- onCopy(operation: any): Promise<void>;
35
- createVirtualTable(selectedTds: any, _operation: any): any;
36
- setCopyRange(selectedNodes: any): void;
37
- groupTableCell(selectedTds: any): any[];
38
- }
@@ -1,33 +0,0 @@
1
- export default class TableScrollBar {
2
- table: any;
3
- quill: any;
4
- modulesContainer: any;
5
- domNode: any;
6
- oldRootScrollTop: any;
7
- prev: number;
8
- columnToolDomNode: any;
9
- columnCtrlPanel: any;
10
- leftMask: any;
11
- tableViewRect: any;
12
- tableRect: any;
13
- containerRect: any;
14
- subscriber: any;
15
- tableMoveDistance: number;
16
- maxBarLeft: number;
17
- scrollBar: Element;
18
- isTableOverflow: boolean;
19
- constructor(table: any, quill: any, dom: any);
20
- handleQuillRootScroll(): void;
21
- setScrollBarToBottom(): void;
22
- resetTableHeight(table: any): void;
23
- setScrollBarMove(pos: any, isMouse: any): void;
24
- handleScrollBarMouseDown(mouseDownEvent: any): void;
25
- handleScrollBarMouseup(event: any): void;
26
- handleWheel(event: any): void;
27
- showMask(distance: any): void;
28
- getLimitedDistance(distance: any): any;
29
- updateScrollBar(): void;
30
- createScrollBar(): void;
31
- destroyScrollBar(): void;
32
- destroy(): void;
33
- }
@@ -1,37 +0,0 @@
1
- export default class TableSelection {
2
- table: any;
3
- quill: any;
4
- modulesContainer: any;
5
- parent: any;
6
- boundary: any;
7
- selectedTds: any[];
8
- dragging: boolean;
9
- preSelectedTable: any;
10
- oldRootScrollTop: any;
11
- selectingHandler: any;
12
- tdEditHandler: any;
13
- tdResizeHandler: any;
14
- endTd: any;
15
- startTd: any;
16
- editTd: any;
17
- left: any;
18
- bottom: any;
19
- top: any;
20
- right: any;
21
- constructor(table: any, quill: any, dom: any);
22
- handleQuillRootScroll(): void;
23
- isEditorHasScrollBar(): void;
24
- helpLinesInitial(): void;
25
- mouseDownHandler(e: any): void;
26
- drawSelection(self: any, end: any): void;
27
- setTdEditable(e: any): void;
28
- resizeTd(): void;
29
- resetTd(e: any): void;
30
- correctBoundary(): void;
31
- computeSelectedTds(): any;
32
- repositionHelpLines(): void;
33
- refreshHelpLinesPosition(): void;
34
- destroy(): any;
35
- setSelection(startRect: any, endRect: any): void;
36
- clearSelection(): void;
37
- }
@@ -1,22 +0,0 @@
1
- declare class TableSelector {
2
- private onSelect;
3
- container: HTMLDivElement;
4
- private grid;
5
- private label;
6
- private rows;
7
- private cols;
8
- private removeListenersArray;
9
- constructor({ onSelect }: {
10
- onSelect: (rows: number, cols: number) => void;
11
- });
12
- private initContainer;
13
- private initGrid;
14
- private initLabel;
15
- private handleMouseOver;
16
- private handleClick;
17
- updateGrid(): void;
18
- show(x: number, y: number): void;
19
- hide(): void;
20
- destroy(): any;
21
- }
22
- export default TableSelector;
@@ -1,38 +0,0 @@
1
- export declare const TABLE_CELL_LINE_CLASS = "qlrte__better-table-cell-line";
2
- export declare const ROW_TOOL_CLASS = "qlrte__row-tool";
3
- export declare const ROW_TOOL_CELL_CLASS = "qlrte__row-tool-cell";
4
- export declare const ROW_TOOL_CELL_HOLDER_CLASS = "qlrte__row-tool-cell-holder";
5
- export declare const COL_TOOL_CLASS = "qlrte__col-tool";
6
- export declare const COL_TOOL_CELL_CLASS = "qlrte__col-tool-cell";
7
- export declare const COL_TOOL_CELL_HOLDER_CLASS = "qlrte__col-tool-cell-holder";
8
- export declare const SELECT_LINE_CLASS = "qlrte__selection-line";
9
- export declare const OPERATE_MENU_CLASS = "qlrte__op-menu";
10
- export declare const OPERATE_MENU_ITEM_CLASS = "qlrte__op-menu-item";
11
- export declare const OPERATE_MENU_ICON_CLASS = "qlrte__op-menu-icon";
12
- export declare const OPERATE_MENU_ICON_PREFIX_CLASS = "qlrte__op-menu-icon-prefix";
13
- export declare const OPERATE_MENU_TEXT_CLASS = "qlrte__op-menu-text";
14
- export declare const OPERATE_MENU_DIVIDING_CLASS = "qlrte__op-menu-dividing";
15
- export declare const OPERATE_MENU_SUBTITLE_CLASS = "qlrte__op-menu-subtitle";
16
- export declare const OPERATE_MENU_COLORPICKER_CLASS = "qlrte__op-menu-color-picker";
17
- export declare const OPERATE_MENU_COLORPICKER_ITEM_CLASS = "qlrte__op-menu-color-picker-item";
18
- export declare const COL_ATTRIBUTES: string[];
19
- export declare const COL_DEFAULT: {
20
- width: number;
21
- };
22
- export declare const CELL_IDENTITY_KEYS: string[];
23
- export declare const CELL_ATTRIBUTES: string[];
24
- export declare const CELL_DEFAULT: {
25
- rowspan: number;
26
- colspan: number;
27
- };
28
- export declare const ERROR_LIMIT = 5;
29
- export declare const SCROLL_BAR_PANEL_HEIGHT = 32;
30
- export declare const ROW_TOOL_WIDTH = 16;
31
- export declare const COL_TOOL_HEIGHT = 16;
32
- export declare const CELL_MIN_WIDTH = 50;
33
- export declare const CELL_MIN_HEIGHT = 29;
34
- export declare const PRIMARY_COLOR: string[];
35
- export declare const MENU_ITEM_HEIGHT = 40;
36
- export declare const MENU_MIN_HEIGHT = 150;
37
- export declare const MENU_WIDTH = 205;
38
- export declare const LINE_POSITIONS: string[];
@@ -1,17 +0,0 @@
1
- export declare function css(domNode: any, rules: any): void;
2
- /**
3
- * getRelativeRect
4
- * @param targetRect rect data for target element {Object}
5
- * @param container container element {Element}
6
- * @return an object with rect data {Object}
7
- */
8
- export declare function getRelativeRect(targetRect: any, container: any): {
9
- x: number;
10
- y: number;
11
- x1: any;
12
- y1: any;
13
- width: any;
14
- height: any;
15
- };
16
- export declare const elementRemove: (node: any) => void;
17
- export declare const arrayFrom: (arrayLike: any, mapFn?: any, thisArg?: any) => any[];
@@ -1,9 +0,0 @@
1
- export declare function matchTableCell(node: any, delta: any): any;
2
- export declare function matchTableHeader(node: any, delta: any, _scroll: any): any;
3
- export declare function matchTable(node: any, delta: any, scroll: any): any;
4
- export declare function matchTableRow(_node: any, delta: any): any;
5
- export declare function matchHeader(node: any, delta: any): any;
6
- export declare function matchList(node: any, delta: any): any;
7
- export declare function matchInline(node: any, delta: any, scroll: any): any;
8
- export declare function matchWordShapeImage(node: any, delta: any): any;
9
- export declare function matchMentionLink(node: any, delta: any, scroll: any): any;