@worktile/theia 15.2.0 → 15.2.1

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 (63) hide show
  1. package/esm2020/components/action/prevent-default.mjs +3 -3
  2. package/esm2020/components/column-resize/column-resize-notifier.mjs +3 -3
  3. package/esm2020/components/column-resize/column-resize.directive.mjs +3 -3
  4. package/esm2020/components/column-resize/column-resize.module.mjs +8 -8
  5. package/esm2020/components/column-resize/event-dispatcher.mjs +3 -3
  6. package/esm2020/components/column-resize/overlay-handle.component.mjs +3 -3
  7. package/esm2020/components/column-resize/resizing.store.mjs +3 -3
  8. package/esm2020/components/contextmenu/contextmenu.component.mjs +3 -3
  9. package/esm2020/components/conversion-hint/conversion-hint.component.mjs +3 -3
  10. package/esm2020/components/element/element.component.mjs +3 -3
  11. package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
  12. package/esm2020/components/listbox/listbox.mjs +9 -9
  13. package/esm2020/components/plugin-menu/plugin-menu.component.mjs +3 -3
  14. package/esm2020/components/table-select/table-select.component.mjs +3 -3
  15. package/esm2020/components/template/template.component.mjs +3 -3
  16. package/esm2020/components/text/text.component.mjs +3 -3
  17. package/esm2020/components/toolbar/toolbar.component.mjs +3 -3
  18. package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +3 -3
  19. package/esm2020/components/toolbar-group/toolbar-group.component.mjs +3 -3
  20. package/esm2020/components/toolbar-item/toolbar-item.component.mjs +3 -3
  21. package/esm2020/core/toolbar-item/base-toolbar-item.mjs +6 -6
  22. package/esm2020/editor.component.mjs +7 -7
  23. package/esm2020/editor.module.mjs +4 -4
  24. package/esm2020/interfaces/view-base.mjs +3 -3
  25. package/esm2020/pipes.mjs +6 -6
  26. package/esm2020/plugins/blockquote/blockquote.component.mjs +3 -3
  27. package/esm2020/plugins/code/code.component.mjs +3 -3
  28. package/esm2020/plugins/code/code.plugin.mjs +14 -2
  29. package/esm2020/plugins/color/toolbar-item.component.mjs +3 -3
  30. package/esm2020/plugins/hr/hr.component.mjs +3 -3
  31. package/esm2020/plugins/image/image.component.mjs +3 -3
  32. package/esm2020/plugins/inline-code/inline-code.component.mjs +3 -3
  33. package/esm2020/plugins/link/edit/link-edit.component.mjs +3 -3
  34. package/esm2020/plugins/link/hover/link-hover.component.mjs +3 -3
  35. package/esm2020/plugins/link/link.component.mjs +6 -6
  36. package/esm2020/plugins/list/components/bulleted-list.component.mjs +3 -3
  37. package/esm2020/plugins/list/components/list-item.component.mjs +3 -3
  38. package/esm2020/plugins/list/components/numbered-list.component.mjs +3 -3
  39. package/esm2020/plugins/mention/suggestion.component.mjs +3 -3
  40. package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +3 -3
  41. package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +3 -3
  42. package/esm2020/plugins/table/components/row/row.component.mjs +3 -3
  43. package/esm2020/plugins/table/components/table.component.mjs +3 -3
  44. package/esm2020/plugins/table/components/td/td.component.mjs +5 -50
  45. package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +3 -3
  46. package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +3 -3
  47. package/esm2020/plugins/table/table.pipe.mjs +6 -6
  48. package/esm2020/plugins/table/table.service.mjs +3 -3
  49. package/esm2020/plugins/table/table.store.mjs +3 -3
  50. package/esm2020/plugins/table/toolbar-item.component.mjs +3 -3
  51. package/esm2020/plugins/todo-item/todo-item.component.mjs +3 -3
  52. package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +3 -3
  53. package/esm2020/services/context.service.mjs +3 -3
  54. package/esm2020/services/table-contextmenu.service.mjs +3 -3
  55. package/esm2020/services/toolbar.service.mjs +3 -3
  56. package/fesm2015/worktile-theia.mjs +200 -254
  57. package/fesm2015/worktile-theia.mjs.map +1 -1
  58. package/fesm2020/worktile-theia.mjs +200 -254
  59. package/fesm2020/worktile-theia.mjs.map +1 -1
  60. package/package.json +1 -1
  61. package/plugins/table/components/td/td.component.d.ts +0 -3
  62. package/esm2020/plugins/table/utils/get-base-height.mjs +0 -22
  63. package/plugins/table/utils/get-base-height.d.ts +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "15.2.0",
3
+ "version": "15.2.1",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -62,11 +62,8 @@ export declare class TheTdComponent extends TheBaseElementComponent<TableCellEle
62
62
  useTablePosition(): void;
63
63
  useBackground(): void;
64
64
  useSpan(): void;
65
- calculateCellInnerMinHeight(): number;
66
- calculateCombinedRows(): number[];
67
65
  useDisplay(): void;
68
66
  useFocus(): void;
69
- useMinHeight(minHeight: number): void;
70
67
  listenCellSelectEvents(): void;
71
68
  listenCellMouseEvents(): void;
72
69
  private listenForCellHoverEvents;
@@ -1,22 +0,0 @@
1
- import { AngularEditor } from 'slate-angular';
2
- import { BASE_CELL_HEIGHT } from '../table.types';
3
- /**
4
- * 计算每一行的基础高度(不包含隐藏或者跨行的单元格)
5
- * @param editor
6
- * @param table
7
- * @returns
8
- */
9
- export function getBaseHeightForRows(editor, table) {
10
- const baseHeightForRows = table.children.map((row, index) => {
11
- const baseCells = row.children.filter(cell => !cell.hidden && (!cell.rowspan || cell.rowspan <= 1));
12
- if (baseCells.length > 0) {
13
- const cellDom = AngularEditor.toDOMNode(editor, baseCells[0]);
14
- return cellDom.offsetHeight;
15
- }
16
- else {
17
- return BASE_CELL_HEIGHT;
18
- }
19
- });
20
- return baseHeightForRows;
21
- }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWJhc2UtaGVpZ2h0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL3BsdWdpbnMvdGFibGUvdXRpbHMvZ2V0LWJhc2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BvcnQgeyBUYWJsZUVsZW1lbnQgfSBmcm9tICcuLi8uLi8uLi9jdXN0b20tdHlwZXMnO1xuaW1wb3J0IHsgQkFTRV9DRUxMX0hFSUdIVCB9IGZyb20gJy4uL3RhYmxlLnR5cGVzJztcblxuLyoqXG4gKiDorqHnrpfmr4/kuIDooYznmoTln7rnoYDpq5jluqbvvIjkuI3ljIXlkKvpmpDol4/miJbogIXot6jooYznmoTljZXlhYPmoLzvvIlcbiAqIEBwYXJhbSBlZGl0b3JcbiAqIEBwYXJhbSB0YWJsZVxuICogQHJldHVybnNcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldEJhc2VIZWlnaHRGb3JSb3dzKGVkaXRvcjogRWRpdG9yLCB0YWJsZTogVGFibGVFbGVtZW50KSB7XG4gICAgY29uc3QgYmFzZUhlaWdodEZvclJvd3MgPSB0YWJsZS5jaGlsZHJlbi5tYXAoKHJvdywgaW5kZXgpID0+IHtcbiAgICAgICAgY29uc3QgYmFzZUNlbGxzID0gcm93LmNoaWxkcmVuLmZpbHRlcihjZWxsID0+ICFjZWxsLmhpZGRlbiAmJiAoIWNlbGwucm93c3BhbiB8fCBjZWxsLnJvd3NwYW4gPD0gMSkpO1xuICAgICAgICBpZiAoYmFzZUNlbGxzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgIGNvbnN0IGNlbGxEb20gPSBBbmd1bGFyRWRpdG9yLnRvRE9NTm9kZShlZGl0b3IsIGJhc2VDZWxsc1swXSk7XG4gICAgICAgICAgICByZXR1cm4gY2VsbERvbS5vZmZzZXRIZWlnaHQ7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gQkFTRV9DRUxMX0hFSUdIVDtcbiAgICAgICAgfVxuICAgIH0pO1xuICAgIHJldHVybiBiYXNlSGVpZ2h0Rm9yUm93cztcbn1cbiJdfQ==
@@ -1,9 +0,0 @@
1
- import { Editor } from 'slate';
2
- import { TableElement } from '../../../custom-types';
3
- /**
4
- * 计算每一行的基础高度(不包含隐藏或者跨行的单元格)
5
- * @param editor
6
- * @param table
7
- * @returns
8
- */
9
- export declare function getBaseHeightForRows(editor: Editor, table: TableElement): number[];