@worktile/theia 15.3.3 → 16.0.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.
- package/components/contextmenu/contextmenu.component.d.ts +1 -1
- package/components/conversion-hint/conversion-hint.component.d.ts +3 -3
- package/components/inline-toolbar/inline-toolbar.component.d.ts +3 -4
- package/components/listbox/listbox.d.ts +3 -3
- package/components/plugin-menu/plugin-menu.component.d.ts +4 -3
- package/components/table-select/table-select.component.d.ts +1 -1
- package/components/template/template.component.d.ts +2 -2
- package/components/toolbar/toolbar.component.d.ts +4 -4
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +2 -2
- package/components/toolbar-group/toolbar-group.component.d.ts +5 -6
- package/core/toolbar-item/base-toolbar-item.d.ts +6 -7
- package/core/utils/plugin-menu.d.ts +2 -2
- package/editor.component.d.ts +1 -1
- package/editor.module.d.ts +1 -1
- package/{esm2020 → esm2022}/components/action/prevent-default.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/column-resize-notifier.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/column-resize.directive.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/column-resize.module.mjs +9 -9
- package/{esm2020 → esm2022}/components/column-resize/event-dispatcher.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/overlay-handle.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/column-resize/resizing.store.mjs +4 -4
- package/{esm2020 → esm2022}/components/contextmenu/contextmenu.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/element/element.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/inline-toolbar/inline-toolbar.component.mjs +6 -6
- package/esm2022/components/listbox/listbox.mjs +375 -0
- package/esm2022/components/plugin-menu/plugin-menu.component.mjs +191 -0
- package/{esm2020 → esm2022}/components/table-select/table-select.component.mjs +4 -4
- package/esm2022/components/template/template.component.mjs +62 -0
- package/{esm2020 → esm2022}/components/text/text.component.mjs +4 -4
- package/esm2022/components/toolbar/toolbar.component.mjs +266 -0
- package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +144 -0
- package/esm2022/components/toolbar-group/toolbar-group.component.mjs +122 -0
- package/{esm2020 → esm2022}/components/toolbar-item/toolbar-item.component.mjs +6 -6
- package/esm2022/constants/auto-format-rules.mjs +167 -0
- package/esm2022/constants/plugin-menu.mjs +328 -0
- package/esm2022/core/toolbar-item/base-toolbar-item.mjs +87 -0
- package/{esm2020 → esm2022}/core/utils/combine-plugins.mjs +1 -1
- package/esm2022/core/utils/plugin-menu.mjs +33 -0
- package/esm2022/custom-types.mjs +2 -0
- package/{esm2020 → esm2022}/editor.component.mjs +11 -11
- package/esm2022/editor.module.mjs +254 -0
- package/esm2022/interfaces/auto-format.mjs +2 -0
- package/esm2022/interfaces/editor.mjs +25 -0
- package/esm2022/interfaces/plugins/plugin-menu.mjs +19 -0
- package/esm2022/interfaces/plugins/with-override.mjs +2 -0
- package/esm2022/interfaces/reset-block-type-plugin-options.mjs +2 -0
- package/esm2022/interfaces/toolbar.mjs +12 -0
- package/{esm2020 → esm2022}/interfaces/view-base.mjs +4 -4
- package/esm2022/pipes.mjs +42 -0
- package/esm2022/plugins/align/align.editor.mjs +43 -0
- package/esm2022/plugins/align/align.plugin.mjs +64 -0
- package/{esm2020 → esm2022}/plugins/autoformat/autoformat.plugin.mjs +1 -1
- package/esm2022/plugins/autoformat/transforms/auto-format-block.mjs +14 -0
- package/esm2022/plugins/autoformat/transforms/auto-format-inline.mjs +78 -0
- package/esm2022/plugins/blockquote/blockquote.component.mjs +21 -0
- package/esm2022/plugins/blockquote/blockquote.editor.mjs +17 -0
- package/esm2022/plugins/blockquote/blockquote.plugin.mjs +85 -0
- package/{esm2020 → esm2022}/plugins/code/code.component.mjs +4 -4
- package/esm2022/plugins/code/code.editor.mjs +48 -0
- package/{esm2020 → esm2022}/plugins/code/code.plugin.mjs +1 -1
- package/esm2022/plugins/color/color.editor.mjs +27 -0
- package/{esm2020 → esm2022}/plugins/color/toolbar-item.component.mjs +4 -4
- package/{esm2020 → esm2022}/plugins/common/block-card.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/common.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/get-fragment.plugin.mjs +1 -1
- package/esm2022/plugins/common/history.plugin.mjs +31 -0
- package/{esm2020 → esm2022}/plugins/common/insert-data-by-invalid-type.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/move-selection.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/remove-empty.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/remove-void.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/common/reset-type.plugin.mjs +1 -1
- package/esm2022/plugins/common/transforms.plugin.mjs +18 -0
- package/esm2022/plugins/deserialize/deserialize-html.plugin.mjs +53 -0
- package/esm2022/plugins/deserialize/deserialize-md.plugin.mjs +130 -0
- package/esm2022/plugins/font-size/font-size.editor.mjs +98 -0
- package/esm2022/plugins/heading/heading.editor.mjs +54 -0
- package/esm2022/plugins/heading/heading.plugin.mjs +136 -0
- package/{esm2020 → esm2022}/plugins/hr/hr.component.mjs +6 -6
- package/esm2022/plugins/hr/hr.editor.mjs +16 -0
- package/esm2022/plugins/hr/hr.plugin.mjs +56 -0
- package/esm2022/plugins/image/image.component.mjs +420 -0
- package/esm2022/plugins/image/image.editor.mjs +81 -0
- package/esm2022/plugins/indent/indent.editor.mjs +78 -0
- package/{esm2020 → esm2022}/plugins/indent/indent.plugin.mjs +1 -1
- package/esm2022/plugins/indent/on-keydown-indent.mjs +59 -0
- package/esm2022/plugins/inline-code/inline-code.component.mjs +26 -0
- package/esm2022/plugins/inline-code/inline-code.editor.mjs +48 -0
- package/esm2022/plugins/inline-code/inline-code.plugin.mjs +66 -0
- package/esm2022/plugins/link/edit/link-edit.component.mjs +103 -0
- package/{esm2020 → esm2022}/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2022/plugins/link/link.component.mjs +167 -0
- package/esm2022/plugins/link/link.editor.mjs +66 -0
- package/{esm2020 → esm2022}/plugins/link/link.plugin.mjs +1 -1
- package/esm2022/plugins/list/components/bulleted-list.component.mjs +33 -0
- package/esm2022/plugins/list/components/list-item.component.mjs +93 -0
- package/esm2022/plugins/list/components/numbered-list.component.mjs +39 -0
- package/esm2022/plugins/list/list.editor.mjs +126 -0
- package/esm2022/plugins/list/list.plugin.mjs +312 -0
- package/esm2022/plugins/list/normalizers/get-list-normalizer.mjs +39 -0
- package/esm2022/plugins/list/normalizers/normalize-list-item.mjs +18 -0
- package/esm2022/plugins/list/normalizers/normalize-no.mjs +43 -0
- package/esm2022/plugins/list/on-key-down-list.mjs +33 -0
- package/esm2022/plugins/list/queries/get-list-item-entry.mjs +28 -0
- package/esm2022/plugins/list/queries/get-start-list-item.mjs +27 -0
- package/esm2022/plugins/list/queries/has-list-in-list-item.mjs +27 -0
- package/esm2022/plugins/list/queries/is-in-list.mjs +6 -0
- package/esm2022/plugins/list/queries/is-list-nested.mjs +10 -0
- package/esm2022/plugins/list/queries/is-list.mjs +5 -0
- package/{esm2020 → esm2022}/plugins/list/queries/is-node-type-list.mjs +1 -1
- package/esm2022/plugins/list/queries/is-selection-at-list-item-start.mjs +13 -0
- package/esm2022/plugins/list/queries/is-selection-in-same-list-item.mjs +17 -0
- package/{esm2020 → esm2022}/plugins/list/queries/is-single-list-item.mjs +1 -1
- package/esm2022/plugins/list/transforms/insert-list-data.mjs +72 -0
- package/esm2022/plugins/list/transforms/insert-list-item.mjs +72 -0
- package/esm2022/plugins/list/transforms/move-list-item-down.mjs +41 -0
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +43 -0
- package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +30 -0
- package/esm2022/plugins/list/transforms/move-list-item-up.mjs +78 -0
- package/esm2022/plugins/list/transforms/unwrap-list.mjs +10 -0
- package/esm2022/plugins/mark/mark.editor.mjs +28 -0
- package/{esm2020 → esm2022}/plugins/mark/mark.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/mention/mention.editor.mjs +1 -1
- package/esm2022/plugins/mention/mention.plugin.mjs +91 -0
- package/{esm2020 → esm2022}/plugins/mention/suggestion.component.mjs +4 -4
- package/{esm2020 → esm2022}/plugins/node-id/node-id.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/normalizers/insert-paragraph-nodes.mjs +1 -1
- package/esm2022/plugins/normalizers/remove-empty-nodes.mjs +18 -0
- package/{esm2020 → esm2022}/plugins/normalizers/trailing-node.plugin.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/paint-format/paint-format.editor.mjs +1 -1
- package/{esm2020 → esm2022}/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +68 -0
- package/esm2022/plugins/quick-insert/quick-insert.plugin.mjs +104 -0
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +104 -0
- package/{esm2020 → esm2022}/plugins/table/components/row/row.component.mjs +6 -6
- package/{esm2020 → esm2022}/plugins/table/components/table.component.mjs +16 -16
- package/{esm2020 → esm2022}/plugins/table/components/td/td.component.mjs +4 -4
- package/{esm2020 → esm2022}/plugins/table/components/toolbar/table-options.component.mjs +6 -6
- package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +189 -0
- package/esm2022/plugins/table/table.editor.mjs +209 -0
- package/{esm2020 → esm2022}/plugins/table/table.pipe.mjs +7 -7
- package/esm2022/plugins/table/table.plugin.mjs +544 -0
- package/{esm2020 → esm2022}/plugins/table/table.service.mjs +4 -4
- package/esm2022/plugins/table/table.store.mjs +426 -0
- package/esm2022/plugins/table/table.types.mjs +60 -0
- package/{esm2020 → esm2022}/plugins/table/toolbar-item.component.mjs +6 -6
- package/esm2022/plugins/table/transforms/clear-cell.mjs +14 -0
- package/esm2022/plugins/table/transforms/clear-table-node.mjs +27 -0
- package/esm2022/plugins/table/transforms/insert-column.mjs +69 -0
- package/esm2022/plugins/table/transforms/insert-row.mjs +50 -0
- package/esm2022/plugins/table/transforms/insert-table.mjs +15 -0
- package/esm2022/plugins/table/transforms/remove-column.mjs +51 -0
- package/esm2022/plugins/table/transforms/remove-row.mjs +48 -0
- package/esm2022/plugins/table/transforms/remove-table.mjs +49 -0
- package/esm2022/plugins/table/utils/calc-anchor-position.mjs +25 -0
- package/esm2022/plugins/table/utils/cell-position.mjs +60 -0
- package/esm2022/plugins/table/utils/create-table-position.mjs +10 -0
- package/esm2022/plugins/table/utils/get-min-max-cell-index.mjs +69 -0
- package/esm2022/plugins/table/utils/get-select-cell-node.mjs +23 -0
- package/esm2022/plugins/table/utils/handle-cell.mjs +25 -0
- package/esm2022/plugins/table/utils/is-range-in-table.mjs +16 -0
- package/esm2022/plugins/table/utils/is-selection-in-table.mjs +51 -0
- package/esm2022/plugins/table/utils/merge-cell.mjs +108 -0
- package/esm2022/plugins/table/utils/set-menu-cell-invisibility.mjs +45 -0
- package/esm2022/plugins/table/utils/split-cell.mjs +29 -0
- package/esm2022/plugins/table/utils/table-entry.mjs +21 -0
- package/{esm2020 → esm2022}/plugins/todo-item/todo-item.component.mjs +7 -7
- package/esm2022/plugins/todo-item/todo-item.editor.mjs +32 -0
- package/esm2022/plugins/todo-item/todo-item.plugin.mjs +93 -0
- package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +83 -0
- package/esm2022/queries/anchor-block-entry.mjs +13 -0
- package/esm2022/queries/anchor-block.mjs +6 -0
- package/esm2022/queries/anchor-inline-entry.mjs +10 -0
- package/{esm2020 → esm2022}/queries/find-descendant.mjs +1 -1
- package/esm2022/queries/find-node.mjs +45 -0
- package/esm2022/queries/get-above-by-type.mjs +14 -0
- package/esm2022/queries/get-above.mjs +9 -0
- package/esm2022/queries/get-anchor-block-entry.mjs +8 -0
- package/esm2022/queries/get-block-above.mjs +10 -0
- package/esm2022/queries/get-block-card-above.mjs +10 -0
- package/esm2022/queries/get-block-card-cursor.mjs +5 -0
- package/esm2022/queries/get-container-blocks.mjs +12 -0
- package/esm2022/queries/get-insert-elements-path.mjs +44 -0
- package/{esm2020 → esm2022}/queries/get-last-node.mjs +1 -1
- package/esm2022/queries/get-node.mjs +10 -0
- package/esm2022/queries/get-nodes-by-type.mjs +15 -0
- package/esm2022/queries/get-nodes.mjs +7 -0
- package/esm2022/queries/get-parent.mjs +12 -0
- package/esm2022/queries/get-plain-text.mjs +16 -0
- package/esm2022/queries/get-plugin-by-toolbar.mjs +13 -0
- package/{esm2020 → esm2022}/queries/get-point-before.mjs +1 -1
- package/esm2022/queries/get-point-from-location.mjs +15 -0
- package/esm2022/queries/get-rang-from-block-start.mjs +16 -0
- package/esm2022/queries/get-range-before.mjs +17 -0
- package/{esm2020 → esm2022}/queries/get-selection-marks.mjs +1 -1
- package/esm2022/queries/get-selection-nodes-by-type.mjs +30 -0
- package/esm2022/queries/get-text.mjs +9 -0
- package/esm2022/queries/get-toolbar-disabled.mjs +13 -0
- package/esm2022/queries/is-across-blocks.mjs +7 -0
- package/esm2022/queries/is-ancestor-empty.mjs +6 -0
- package/esm2022/queries/is-block-above-empty.mjs +11 -0
- package/esm2022/queries/is-block-active.mjs +8 -0
- package/esm2022/queries/is-block-card-cursor.mjs +4 -0
- package/{esm2020 → esm2022}/queries/is-block-text-empty-after-selection.mjs +1 -1
- package/esm2022/queries/is-contain-nested-type.mjs +29 -0
- package/esm2022/queries/is-container-type.mjs +3 -0
- package/esm2022/queries/is-empty-content-filter.mjs +23 -0
- package/{esm2020 → esm2022}/queries/is-empty-content.mjs +1 -1
- package/esm2022/queries/is-empty-paragraph-by-path.mjs +7 -0
- package/esm2022/queries/is-empty-paragraph.mjs +28 -0
- package/esm2022/queries/is-global-collapsed.mjs +5 -0
- package/esm2022/queries/is-include-types.mjs +12 -0
- package/esm2022/queries/is-node-type-in.mjs +9 -0
- package/esm2022/queries/is-node-type.mjs +15 -0
- package/esm2022/queries/is-paragraph.mjs +9 -0
- package/esm2022/queries/is-range-across-blocks.mjs +22 -0
- package/esm2022/queries/is-start.mjs +6 -0
- package/esm2022/queries/some-node.mjs +9 -0
- package/{esm2020 → esm2022}/services/context.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/table-contextmenu.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/toolbar.service.mjs +4 -4
- package/{esm2020 → esm2022}/shortcuts/index.mjs +1 -1
- package/esm2022/shortcuts/mark.mjs +25 -0
- package/esm2022/test/utils/with-editor.mjs +8 -0
- package/esm2022/test/utils/with-plugin.mjs +8 -0
- package/{esm2020 → esm2022}/transforms/clear-marks.mjs +1 -1
- package/esm2022/transforms/close-conversion-hint.mjs +8 -0
- package/{esm2020 → esm2022}/transforms/delete-element.mjs +1 -1
- package/esm2022/transforms/handle-continual-delete-backward.mjs +18 -0
- package/esm2022/transforms/handle-continual-insert-break.mjs +20 -0
- package/esm2022/transforms/insert-elements.mjs +38 -0
- package/esm2022/transforms/insert-paragraph.mjs +6 -0
- package/esm2022/transforms/move-children.mjs +22 -0
- package/esm2022/transforms/on-keydown-reset-block-type.mjs +22 -0
- package/{esm2020 → esm2022}/transforms/set-end-selection.mjs +1 -1
- package/esm2022/transforms/set-marks.mjs +9 -0
- package/esm2022/transforms/set-node.mjs +6 -0
- package/esm2022/transforms/un-hang-range.mjs +11 -0
- package/esm2022/transforms/un-wrap.mjs +12 -0
- package/esm2022/transforms/unwrap-nodes-by-type.mjs +14 -0
- package/{esm2020 → esm2022}/utils/auto-focus.mjs +1 -1
- package/esm2022/utils/copy-node.mjs +32 -0
- package/esm2022/utils/create-empty-paragraph.mjs +5 -0
- package/esm2022/utils/create-paragraph.mjs +14 -0
- package/{esm2020 → esm2022}/utils/dom.mjs +1 -1
- package/esm2022/utils/editor-uuid.mjs +8 -0
- package/esm2022/utils/fragment.mjs +74 -0
- package/esm2022/utils/get-editable-element-height.mjs +6 -0
- package/esm2022/utils/get-toolbar-class.mjs +6 -0
- package/esm2022/utils/index.mjs +20 -0
- package/esm2022/utils/insert-data-by-invalid-type.mjs +62 -0
- package/esm2022/utils/is-clean-empty-paragraph.mjs +37 -0
- package/esm2022/utils/is-inline.mjs +9 -0
- package/{esm2020 → esm2022}/utils/match.mjs +1 -1
- package/esm2022/utils/merge-element-options.mjs +19 -0
- package/esm2022/utils/scroll-into-view.mjs +38 -0
- package/{fesm2020 → fesm2022}/worktile-theia.mjs +397 -388
- package/fesm2022/worktile-theia.mjs.map +1 -0
- package/interfaces/auto-format.d.ts +5 -5
- package/interfaces/editor.d.ts +8 -6
- package/interfaces/plugins/plugin-menu.d.ts +5 -5
- package/interfaces/plugins/with-override.d.ts +2 -2
- package/interfaces/reset-block-type-plugin-options.d.ts +3 -3
- package/interfaces/toolbar.d.ts +5 -5
- package/interfaces/view-base.d.ts +3 -2
- package/package.json +11 -17
- package/pipes.d.ts +3 -3
- package/plugins/align/align.editor.d.ts +4 -4
- package/plugins/align/align.plugin.d.ts +2 -1
- package/plugins/autoformat/autoformat.plugin.d.ts +2 -1
- package/plugins/autoformat/transforms/auto-format-block.d.ts +5 -4
- package/plugins/autoformat/transforms/auto-format-inline.d.ts +2 -2
- package/plugins/blockquote/blockquote.component.d.ts +3 -3
- package/plugins/blockquote/blockquote.editor.d.ts +2 -2
- package/plugins/blockquote/blockquote.plugin.d.ts +2 -1
- package/plugins/code/code.component.d.ts +2 -3
- package/plugins/code/code.editor.d.ts +3 -3
- package/plugins/code/code.plugin.d.ts +2 -1
- package/plugins/color/color.editor.d.ts +3 -3
- package/plugins/common/block-card.plugin.d.ts +2 -1
- package/plugins/common/common.plugin.d.ts +2 -1
- package/plugins/common/get-fragment.plugin.d.ts +2 -1
- package/plugins/common/history.plugin.d.ts +6 -6
- package/plugins/common/insert-data-by-invalid-type.d.ts +2 -1
- package/plugins/common/move-selection.plugin.d.ts +2 -1
- package/plugins/common/remove-empty.plugin.d.ts +2 -1
- package/plugins/common/remove-void.plugin.d.ts +2 -1
- package/plugins/common/reset-type.plugin.d.ts +2 -1
- package/plugins/common/transforms.plugin.d.ts +2 -1
- package/plugins/deserialize/deserialize-html.plugin.d.ts +2 -1
- package/plugins/deserialize/deserialize-md.plugin.d.ts +2 -1
- package/plugins/font-size/font-size.editor.d.ts +3 -4
- package/plugins/heading/heading.editor.d.ts +3 -4
- package/plugins/heading/heading.plugin.d.ts +2 -2
- package/plugins/hr/hr.component.d.ts +3 -3
- package/plugins/hr/hr.editor.d.ts +3 -3
- package/plugins/hr/hr.plugin.d.ts +2 -1
- package/plugins/image/image.component.d.ts +2 -3
- package/plugins/image/image.editor.d.ts +8 -7
- package/plugins/indent/indent.editor.d.ts +3 -4
- package/plugins/indent/indent.plugin.d.ts +2 -1
- package/plugins/indent/on-keydown-indent.d.ts +2 -2
- package/plugins/inline-code/inline-code.component.d.ts +2 -3
- package/plugins/inline-code/inline-code.editor.d.ts +6 -5
- package/plugins/inline-code/inline-code.plugin.d.ts +2 -1
- package/plugins/link/edit/link-edit.component.d.ts +4 -3
- package/plugins/link/hover/link-hover.component.d.ts +1 -1
- package/plugins/link/link.component.d.ts +2 -3
- package/plugins/link/link.editor.d.ts +5 -5
- package/plugins/link/link.plugin.d.ts +2 -1
- package/plugins/list/components/bulleted-list.component.d.ts +2 -3
- package/plugins/list/components/list-item.component.d.ts +3 -3
- package/plugins/list/components/numbered-list.component.d.ts +2 -3
- package/plugins/list/list.editor.d.ts +11 -9
- package/plugins/list/list.plugin.d.ts +2 -1
- package/plugins/list/normalizers/get-list-normalizer.d.ts +3 -2
- package/plugins/list/normalizers/normalize-list-item.d.ts +3 -2
- package/plugins/list/normalizers/normalize-no.d.ts +3 -2
- package/plugins/list/on-key-down-list.d.ts +2 -2
- package/plugins/list/queries/get-list-item-entry.d.ts +3 -2
- package/plugins/list/queries/get-start-list-item.d.ts +2 -2
- package/plugins/list/queries/has-list-in-list-item.d.ts +5 -4
- package/plugins/list/queries/is-in-list.d.ts +3 -2
- package/plugins/list/queries/is-list-nested.d.ts +3 -2
- package/plugins/list/queries/is-list.d.ts +2 -2
- package/plugins/list/queries/is-node-type-list.d.ts +2 -1
- package/plugins/list/queries/is-selection-at-list-item-start.d.ts +2 -2
- package/plugins/list/queries/is-selection-in-same-list-item.d.ts +2 -2
- package/plugins/list/transforms/insert-list-data.d.ts +5 -3
- package/plugins/list/transforms/insert-list-item.d.ts +2 -2
- package/plugins/list/transforms/move-list-item-down.d.ts +3 -2
- package/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.d.ts +3 -2
- package/plugins/list/transforms/move-list-item-sublist-items-to-list.d.ts +3 -2
- package/plugins/list/transforms/move-list-item-up.d.ts +3 -2
- package/plugins/list/transforms/unwrap-list.d.ts +2 -2
- package/plugins/mark/mark.editor.d.ts +3 -2
- package/plugins/mark/mark.plugin.d.ts +2 -1
- package/plugins/mention/mention.plugin.d.ts +2 -1
- package/plugins/mention/suggestion.component.d.ts +1 -1
- package/plugins/node-id/node-id.plugin.d.ts +2 -2
- package/plugins/normalizers/insert-paragraph-nodes.d.ts +2 -1
- package/plugins/normalizers/trailing-node.plugin.d.ts +2 -2
- package/plugins/quick-insert/components/quick-insert.component.d.ts +3 -3
- package/plugins/quick-insert/quick-insert.editor.d.ts +6 -6
- package/plugins/quick-insert/quick-insert.plugin.d.ts +3 -3
- package/plugins/table/components/insert-mark/insert-mark.component.d.ts +3 -3
- package/plugins/table/components/table.component.d.ts +2 -3
- package/plugins/table/components/td/td.component.d.ts +2 -2
- package/plugins/table/components/toolbar/table-options.component.d.ts +3 -3
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +3 -3
- package/plugins/table/table.editor.d.ts +11 -11
- package/plugins/table/table.store.d.ts +12 -12
- package/plugins/table/table.types.d.ts +4 -3
- package/plugins/table/transforms/clear-cell.d.ts +3 -2
- package/plugins/table/transforms/clear-table-node.d.ts +2 -2
- package/plugins/table/transforms/insert-column.d.ts +5 -4
- package/plugins/table/transforms/insert-row.d.ts +2 -2
- package/plugins/table/transforms/insert-table.d.ts +3 -2
- package/plugins/table/transforms/remove-column.d.ts +2 -2
- package/plugins/table/transforms/remove-row.d.ts +2 -2
- package/plugins/table/transforms/remove-table.d.ts +2 -2
- package/plugins/table/utils/calc-anchor-position.d.ts +2 -2
- package/plugins/table/utils/cell-position.d.ts +3 -3
- package/plugins/table/utils/create-table-position.d.ts +3 -2
- package/plugins/table/utils/get-min-max-cell-index.d.ts +2 -2
- package/plugins/table/utils/get-select-cell-node.d.ts +3 -3
- package/plugins/table/utils/handle-cell.d.ts +3 -2
- package/plugins/table/utils/is-range-in-table.d.ts +3 -2
- package/plugins/table/utils/is-selection-in-table.d.ts +3 -3
- package/plugins/table/utils/merge-cell.d.ts +6 -5
- package/plugins/table/utils/set-menu-cell-invisibility.d.ts +2 -2
- package/plugins/table/utils/split-cell.d.ts +3 -3
- package/plugins/table/utils/table-entry.d.ts +5 -5
- package/plugins/todo-item/todo-item.component.d.ts +2 -3
- package/plugins/todo-item/todo-item.editor.d.ts +3 -3
- package/plugins/todo-item/todo-item.plugin.d.ts +2 -1
- package/plugins/vertical-align/toolbar-item.component.d.ts +2 -3
- package/queries/anchor-block-entry.d.ts +4 -2
- package/queries/anchor-block.d.ts +3 -2
- package/queries/anchor-inline-entry.d.ts +3 -2
- package/queries/find-descendant.d.ts +3 -2
- package/queries/find-node.d.ts +3 -3
- package/queries/get-above-by-type.d.ts +2 -3
- package/queries/get-above.d.ts +3 -3
- package/queries/get-anchor-block-entry.d.ts +4 -2
- package/queries/get-block-above.d.ts +3 -3
- package/queries/get-block-card-above.d.ts +3 -3
- package/queries/get-block-card-cursor.d.ts +2 -2
- package/queries/get-container-blocks.d.ts +2 -2
- package/queries/get-last-node.d.ts +3 -2
- package/queries/get-node.d.ts +3 -2
- package/queries/get-nodes-by-type.d.ts +2 -3
- package/queries/get-nodes.d.ts +2 -3
- package/queries/get-parent.d.ts +3 -3
- package/queries/get-plain-text.d.ts +2 -2
- package/queries/get-plugin-by-toolbar.d.ts +2 -3
- package/queries/get-point-before.d.ts +3 -2
- package/queries/get-point-from-location.d.ts +3 -2
- package/queries/get-rang-from-block-start.d.ts +2 -3
- package/queries/get-range-before.d.ts +3 -2
- package/queries/get-selection-marks.d.ts +2 -2
- package/queries/get-selection-nodes-by-type.d.ts +3 -2
- package/queries/get-text.d.ts +3 -2
- package/queries/get-toolbar-disabled.d.ts +2 -3
- package/queries/is-across-blocks.d.ts +3 -2
- package/queries/is-ancestor-empty.d.ts +3 -2
- package/queries/is-block-above-empty.d.ts +2 -2
- package/queries/is-block-active.d.ts +2 -2
- package/queries/is-block-card-cursor.d.ts +2 -2
- package/queries/is-block-text-empty-after-selection.d.ts +2 -2
- package/queries/is-contain-nested-type.d.ts +2 -2
- package/queries/is-container-type.d.ts +3 -2
- package/queries/is-empty-content-filter.d.ts +2 -2
- package/queries/is-empty-paragraph-by-path.d.ts +3 -2
- package/queries/is-empty-paragraph.d.ts +6 -4
- package/queries/is-global-collapsed.d.ts +2 -2
- package/queries/is-include-types.d.ts +2 -2
- package/queries/is-node-type-in.d.ts +2 -3
- package/queries/is-paragraph.d.ts +2 -2
- package/queries/is-range-across-blocks.d.ts +3 -3
- package/queries/is-start.d.ts +3 -2
- package/queries/some-node.d.ts +3 -2
- package/shortcuts/index.d.ts +2 -2
- package/shortcuts/mark.d.ts +2 -2
- package/test/utils/with-editor.d.ts +2 -0
- package/transforms/clear-marks.d.ts +2 -2
- package/transforms/close-conversion-hint.d.ts +2 -2
- package/transforms/delete-element.d.ts +3 -2
- package/transforms/handle-continual-delete-backward.d.ts +4 -3
- package/transforms/handle-continual-insert-break.d.ts +3 -3
- package/transforms/insert-elements.d.ts +3 -2
- package/transforms/insert-paragraph.d.ts +3 -2
- package/transforms/move-children.d.ts +3 -2
- package/transforms/on-keydown-reset-block-type.d.ts +2 -2
- package/transforms/set-end-selection.d.ts +2 -2
- package/transforms/set-marks.d.ts +3 -2
- package/transforms/set-node.d.ts +3 -2
- package/transforms/un-hang-range.d.ts +3 -2
- package/transforms/un-wrap.d.ts +2 -2
- package/transforms/unwrap-nodes-by-type.d.ts +2 -3
- package/utils/auto-focus.d.ts +2 -2
- package/utils/copy-node.d.ts +5 -3
- package/utils/create-paragraph.d.ts +2 -0
- package/utils/dom.d.ts +2 -2
- package/utils/editor-uuid.d.ts +3 -3
- package/utils/fragment.d.ts +7 -5
- package/utils/get-editable-element-height.d.ts +2 -2
- package/utils/get-toolbar-class.d.ts +2 -2
- package/utils/index.d.ts +1 -0
- package/utils/is-clean-empty-paragraph.d.ts +4 -3
- package/utils/is-inline.d.ts +3 -2
- package/utils/match.d.ts +2 -2
- package/utils/merge-element-options.d.ts +1 -1
- package/utils/scroll-into-view.d.ts +2 -2
- package/esm2020/components/listbox/listbox.mjs +0 -375
- package/esm2020/components/plugin-menu/plugin-menu.component.mjs +0 -191
- package/esm2020/components/template/template.component.mjs +0 -62
- package/esm2020/components/toolbar/toolbar.component.mjs +0 -266
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +0 -144
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +0 -122
- package/esm2020/constants/auto-format-rules.mjs +0 -167
- package/esm2020/constants/plugin-menu.mjs +0 -325
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +0 -87
- package/esm2020/core/utils/plugin-menu.mjs +0 -33
- package/esm2020/custom-types.mjs +0 -2
- package/esm2020/editor.module.mjs +0 -254
- package/esm2020/interfaces/auto-format.mjs +0 -2
- package/esm2020/interfaces/editor.mjs +0 -25
- package/esm2020/interfaces/plugins/plugin-menu.mjs +0 -19
- package/esm2020/interfaces/plugins/with-override.mjs +0 -2
- package/esm2020/interfaces/reset-block-type-plugin-options.mjs +0 -2
- package/esm2020/interfaces/toolbar.mjs +0 -12
- package/esm2020/pipes.mjs +0 -42
- package/esm2020/plugins/align/align.editor.mjs +0 -43
- package/esm2020/plugins/align/align.plugin.mjs +0 -64
- package/esm2020/plugins/autoformat/transforms/auto-format-block.mjs +0 -14
- package/esm2020/plugins/autoformat/transforms/auto-format-inline.mjs +0 -78
- package/esm2020/plugins/blockquote/blockquote.component.mjs +0 -21
- package/esm2020/plugins/blockquote/blockquote.editor.mjs +0 -20
- package/esm2020/plugins/blockquote/blockquote.plugin.mjs +0 -85
- package/esm2020/plugins/code/code.editor.mjs +0 -48
- package/esm2020/plugins/color/color.editor.mjs +0 -27
- package/esm2020/plugins/common/history.plugin.mjs +0 -31
- package/esm2020/plugins/common/transforms.plugin.mjs +0 -18
- package/esm2020/plugins/deserialize/deserialize-html.plugin.mjs +0 -53
- package/esm2020/plugins/deserialize/deserialize-md.plugin.mjs +0 -130
- package/esm2020/plugins/font-size/font-size.editor.mjs +0 -98
- package/esm2020/plugins/heading/heading.editor.mjs +0 -54
- package/esm2020/plugins/heading/heading.plugin.mjs +0 -136
- package/esm2020/plugins/hr/hr.editor.mjs +0 -16
- package/esm2020/plugins/hr/hr.plugin.mjs +0 -56
- package/esm2020/plugins/image/image.component.mjs +0 -420
- package/esm2020/plugins/image/image.editor.mjs +0 -81
- package/esm2020/plugins/indent/indent.editor.mjs +0 -78
- package/esm2020/plugins/indent/on-keydown-indent.mjs +0 -59
- package/esm2020/plugins/inline-code/inline-code.component.mjs +0 -26
- package/esm2020/plugins/inline-code/inline-code.editor.mjs +0 -48
- package/esm2020/plugins/inline-code/inline-code.plugin.mjs +0 -66
- package/esm2020/plugins/link/edit/link-edit.component.mjs +0 -103
- package/esm2020/plugins/link/link.component.mjs +0 -167
- package/esm2020/plugins/link/link.editor.mjs +0 -66
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +0 -33
- package/esm2020/plugins/list/components/list-item.component.mjs +0 -93
- package/esm2020/plugins/list/components/numbered-list.component.mjs +0 -39
- package/esm2020/plugins/list/list.editor.mjs +0 -126
- package/esm2020/plugins/list/list.plugin.mjs +0 -312
- package/esm2020/plugins/list/normalizers/get-list-normalizer.mjs +0 -39
- package/esm2020/plugins/list/normalizers/normalize-list-item.mjs +0 -18
- package/esm2020/plugins/list/normalizers/normalize-no.mjs +0 -43
- package/esm2020/plugins/list/on-key-down-list.mjs +0 -33
- package/esm2020/plugins/list/queries/get-list-item-entry.mjs +0 -28
- package/esm2020/plugins/list/queries/get-start-list-item.mjs +0 -27
- package/esm2020/plugins/list/queries/has-list-in-list-item.mjs +0 -27
- package/esm2020/plugins/list/queries/is-in-list.mjs +0 -6
- package/esm2020/plugins/list/queries/is-list-nested.mjs +0 -10
- package/esm2020/plugins/list/queries/is-list.mjs +0 -5
- package/esm2020/plugins/list/queries/is-selection-at-list-item-start.mjs +0 -13
- package/esm2020/plugins/list/queries/is-selection-in-same-list-item.mjs +0 -17
- package/esm2020/plugins/list/transforms/insert-list-data.mjs +0 -72
- package/esm2020/plugins/list/transforms/insert-list-item.mjs +0 -73
- package/esm2020/plugins/list/transforms/move-list-item-down.mjs +0 -41
- package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +0 -43
- package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +0 -30
- package/esm2020/plugins/list/transforms/move-list-item-up.mjs +0 -78
- package/esm2020/plugins/list/transforms/unwrap-list.mjs +0 -10
- package/esm2020/plugins/mark/mark.editor.mjs +0 -28
- package/esm2020/plugins/mention/mention.plugin.mjs +0 -91
- package/esm2020/plugins/normalizers/remove-empty-nodes.mjs +0 -18
- package/esm2020/plugins/quick-insert/quick-insert.editor.mjs +0 -68
- package/esm2020/plugins/quick-insert/quick-insert.plugin.mjs +0 -104
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +0 -104
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +0 -189
- package/esm2020/plugins/table/table.editor.mjs +0 -209
- package/esm2020/plugins/table/table.plugin.mjs +0 -544
- package/esm2020/plugins/table/table.store.mjs +0 -426
- package/esm2020/plugins/table/table.types.mjs +0 -60
- package/esm2020/plugins/table/transforms/clear-cell.mjs +0 -14
- package/esm2020/plugins/table/transforms/clear-table-node.mjs +0 -27
- package/esm2020/plugins/table/transforms/insert-column.mjs +0 -69
- package/esm2020/plugins/table/transforms/insert-row.mjs +0 -50
- package/esm2020/plugins/table/transforms/insert-table.mjs +0 -15
- package/esm2020/plugins/table/transforms/remove-column.mjs +0 -51
- package/esm2020/plugins/table/transforms/remove-row.mjs +0 -48
- package/esm2020/plugins/table/transforms/remove-table.mjs +0 -49
- package/esm2020/plugins/table/utils/calc-anchor-position.mjs +0 -25
- package/esm2020/plugins/table/utils/cell-position.mjs +0 -60
- package/esm2020/plugins/table/utils/create-table-position.mjs +0 -10
- package/esm2020/plugins/table/utils/get-min-max-cell-index.mjs +0 -69
- package/esm2020/plugins/table/utils/get-select-cell-node.mjs +0 -23
- package/esm2020/plugins/table/utils/handle-cell.mjs +0 -25
- package/esm2020/plugins/table/utils/is-range-in-table.mjs +0 -16
- package/esm2020/plugins/table/utils/is-selection-in-table.mjs +0 -51
- package/esm2020/plugins/table/utils/merge-cell.mjs +0 -108
- package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +0 -45
- package/esm2020/plugins/table/utils/split-cell.mjs +0 -29
- package/esm2020/plugins/table/utils/table-entry.mjs +0 -21
- package/esm2020/plugins/todo-item/todo-item.editor.mjs +0 -32
- package/esm2020/plugins/todo-item/todo-item.plugin.mjs +0 -93
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +0 -83
- package/esm2020/queries/anchor-block-entry.mjs +0 -13
- package/esm2020/queries/anchor-block.mjs +0 -6
- package/esm2020/queries/anchor-inline-entry.mjs +0 -10
- package/esm2020/queries/find-node.mjs +0 -45
- package/esm2020/queries/get-above-by-type.mjs +0 -14
- package/esm2020/queries/get-above.mjs +0 -9
- package/esm2020/queries/get-anchor-block-entry.mjs +0 -8
- package/esm2020/queries/get-block-above.mjs +0 -10
- package/esm2020/queries/get-block-card-above.mjs +0 -10
- package/esm2020/queries/get-block-card-cursor.mjs +0 -5
- package/esm2020/queries/get-container-blocks.mjs +0 -12
- package/esm2020/queries/get-insert-elements-path.mjs +0 -44
- package/esm2020/queries/get-node.mjs +0 -10
- package/esm2020/queries/get-nodes-by-type.mjs +0 -15
- package/esm2020/queries/get-nodes.mjs +0 -7
- package/esm2020/queries/get-parent.mjs +0 -12
- package/esm2020/queries/get-plain-text.mjs +0 -16
- package/esm2020/queries/get-plugin-by-toolbar.mjs +0 -13
- package/esm2020/queries/get-point-from-location.mjs +0 -15
- package/esm2020/queries/get-rang-from-block-start.mjs +0 -16
- package/esm2020/queries/get-range-before.mjs +0 -17
- package/esm2020/queries/get-selection-nodes-by-type.mjs +0 -30
- package/esm2020/queries/get-text.mjs +0 -9
- package/esm2020/queries/get-toolbar-disabled.mjs +0 -13
- package/esm2020/queries/is-across-blocks.mjs +0 -7
- package/esm2020/queries/is-ancestor-empty.mjs +0 -6
- package/esm2020/queries/is-block-above-empty.mjs +0 -11
- package/esm2020/queries/is-block-active.mjs +0 -8
- package/esm2020/queries/is-block-card-cursor.mjs +0 -4
- package/esm2020/queries/is-contain-nested-type.mjs +0 -29
- package/esm2020/queries/is-container-type.mjs +0 -3
- package/esm2020/queries/is-empty-content-filter.mjs +0 -23
- package/esm2020/queries/is-empty-paragraph-by-path.mjs +0 -7
- package/esm2020/queries/is-empty-paragraph.mjs +0 -28
- package/esm2020/queries/is-global-collapsed.mjs +0 -5
- package/esm2020/queries/is-include-types.mjs +0 -12
- package/esm2020/queries/is-node-type-in.mjs +0 -9
- package/esm2020/queries/is-node-type.mjs +0 -15
- package/esm2020/queries/is-paragraph.mjs +0 -9
- package/esm2020/queries/is-range-across-blocks.mjs +0 -22
- package/esm2020/queries/is-start.mjs +0 -6
- package/esm2020/queries/some-node.mjs +0 -9
- package/esm2020/shortcuts/mark.mjs +0 -25
- package/esm2020/test/utils/with-plugin.mjs +0 -11
- package/esm2020/transforms/close-conversion-hint.mjs +0 -8
- package/esm2020/transforms/handle-continual-delete-backward.mjs +0 -18
- package/esm2020/transforms/handle-continual-insert-break.mjs +0 -20
- package/esm2020/transforms/insert-elements.mjs +0 -38
- package/esm2020/transforms/insert-paragraph.mjs +0 -6
- package/esm2020/transforms/move-children.mjs +0 -22
- package/esm2020/transforms/on-keydown-reset-block-type.mjs +0 -23
- package/esm2020/transforms/set-marks.mjs +0 -9
- package/esm2020/transforms/set-node.mjs +0 -6
- package/esm2020/transforms/un-hang-range.mjs +0 -11
- package/esm2020/transforms/un-wrap.mjs +0 -12
- package/esm2020/transforms/unwrap-nodes-by-type.mjs +0 -14
- package/esm2020/utils/copy-node.mjs +0 -32
- package/esm2020/utils/create-empty-paragraph.mjs +0 -14
- package/esm2020/utils/editor-uuid.mjs +0 -8
- package/esm2020/utils/fragment.mjs +0 -74
- package/esm2020/utils/get-editable-element-height.mjs +0 -6
- package/esm2020/utils/get-toolbar-class.mjs +0 -6
- package/esm2020/utils/index.mjs +0 -19
- package/esm2020/utils/insert-data-by-invalid-type.mjs +0 -62
- package/esm2020/utils/is-clean-empty-paragraph.mjs +0 -37
- package/esm2020/utils/is-inline.mjs +0 -9
- package/esm2020/utils/merge-element-options.mjs +0 -19
- package/esm2020/utils/scroll-into-view.mjs +0 -38
- package/fesm2015/worktile-theia.mjs +0 -16674
- package/fesm2015/worktile-theia.mjs.map +0 -1
- package/fesm2020/worktile-theia.mjs.map +0 -1
- /package/{esm2020 → esm2022}/components/column-resize/resize-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/components/column-resize/selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/listbox/listbox.type.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/code.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/color-select.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/default.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/error.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/node-types.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/selector.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/core/create-plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/core/create-toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/core/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/flatten-deep-plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/get-plugin-options.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/get-plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/get-plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/merge-array.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/merge-deep-plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/merge-options.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/nested-structure-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/plugins-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/core/with-theia.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/element.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/image.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/no-infer.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/plugin-key.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/plugins/plugins.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/upload.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/nested-structure-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/override-by-key.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/utility/types.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/valid-children-types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/color/color.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/image/image.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/link/link.types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/list/queries/get-list-item-sublist.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/list/queries/get-list-types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/list/types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/mention/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/mention/mention.type.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/soft-break/soft-break.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/soft-break/soft-break.types.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/transforms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/add-columns.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/calc-span.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/calculate-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/create-cell.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/create-row.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/create-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/get-grid-columns.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/is-header-row.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/is-legal-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/is-virtual-key.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/next-path.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/normalize-table.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/remove-columns.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/remove-row-column.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/set-cells-background-color.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/set-node-options.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/table/utils/table-position.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/vertical-align/vertical-align.editor.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/find-path.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-directly-parent.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-last-child-path.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-next-sibling-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/get-previous-path.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/index.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-ancestor.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-collapsed.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-descendant.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-first-child.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-point-at-root.mjs +0 -0
- /package/{esm2020 → esm2022}/queries/is-range-at-root.mjs +0 -0
- /package/{esm2020 → esm2022}/test/index.mjs +0 -0
- /package/{esm2020 → esm2022}/transforms/apply-deep-to-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/transforms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/transforms/merge-deep-to-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/blob.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/cast-array.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/color-picker.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/common.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/data-transform.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/id-creator.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/lodash.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/refocus.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/weak-maps.mjs +0 -0
- /package/{esm2020 → esm2022}/worktile-theia.mjs +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, ChangeDetectorRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { TheEditor } from '../../../../interfaces';
|
|
3
3
|
import { TableStore } from '../../table.store';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -15,7 +15,7 @@ export declare class TheInsertMarkComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
destroy$: Subject<void>;
|
|
16
16
|
tooltipContent: string;
|
|
17
17
|
disabled: boolean;
|
|
18
|
-
get editor():
|
|
18
|
+
get editor(): TheEditor;
|
|
19
19
|
constructor(cdr: ChangeDetectorRef, renderer2: Renderer2);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
@@ -24,5 +24,5 @@ export declare class TheInsertMarkComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
onMouseLeave(event: MouseEvent): void;
|
|
25
25
|
getLength(): string;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheInsertMarkComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheInsertMarkComponent, "the-table-insert-mark", never, { "type": "type"; "at": "at"; "tableStore": "tableStore"; "parentElement": "parentElement"; }, {}, never, never, false, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheInsertMarkComponent, "the-table-insert-mark", never, { "type": { "alias": "type"; "required": false; }; "at": { "alias": "at"; "required": false; }; "tableStore": { "alias": "tableStore"; "required": false; }; "parentElement": { "alias": "parentElement"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
28
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef, NgZone, AfterViewInit, Renderer2, QueryList } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
import { TheBaseElementComponent, ThePluginOption, TheModeConfig } from '../../../interfaces';
|
|
3
|
+
import { TheEditor, TheBaseElementComponent, ThePluginOption, TheModeConfig } from '../../../interfaces';
|
|
5
4
|
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
6
5
|
import { ColumnResizeNotifierSource, TableCellEventDispatcher } from '../../../components';
|
|
7
6
|
import { TheTableContextMenuService } from '../../../services/table-contextmenu.service';
|
|
@@ -11,7 +10,7 @@ import { TableService } from '../table.service';
|
|
|
11
10
|
import { ThePluginTableOption, TheTableColumn } from '../table.types';
|
|
12
11
|
import { TableFreezeColumnPipe, TableFreezeRowPipe } from '../table.pipe';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
|
-
export declare class TheTableComponent extends TheBaseElementComponent<TableElement,
|
|
13
|
+
export declare class TheTableComponent extends TheBaseElementComponent<TableElement, TheEditor> implements OnInit, AfterViewInit, OnDestroy {
|
|
15
14
|
eventDispatcher: TableCellEventDispatcher;
|
|
16
15
|
resizeNotifier: ColumnResizeNotifierSource;
|
|
17
16
|
tableStore: TableStore;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef, NgZone, Renderer2, ViewContainerRef, AfterViewInit, Injector } from '@angular/core';
|
|
2
|
-
import { Editor } from 'slate';
|
|
3
2
|
import { Subject } from 'rxjs';
|
|
4
3
|
import { ConnectedPosition, Overlay, OverlayRef, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
5
4
|
import { ColumnResizingStore } from '../../../../components/column-resize/resizing.store';
|
|
@@ -7,6 +6,7 @@ import { Position, TableCellEventDispatcher } from '../../../../components/colum
|
|
|
7
6
|
import { ColumnResizeNotifierSource } from '../../../../components/column-resize/column-resize-notifier';
|
|
8
7
|
import { ResizeRef } from '../../../../components/column-resize/resize-ref';
|
|
9
8
|
import { TheBaseElementComponent } from '../../../../interfaces/view-base';
|
|
9
|
+
import { TheEditor } from '../../../../interfaces/editor';
|
|
10
10
|
import { TableCellElement } from '../../../../custom-types';
|
|
11
11
|
import { TableOptions } from '../../table.types';
|
|
12
12
|
import { TableFreezeColumnPipe } from '../../table.pipe';
|
|
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
export declare const POSITION_MAP: {
|
|
17
17
|
[key: string]: ConnectedPosition;
|
|
18
18
|
};
|
|
19
|
-
export declare class TheTdComponent extends TheBaseElementComponent<TableCellElement,
|
|
19
|
+
export declare class TheTdComponent extends TheBaseElementComponent<TableCellElement, TheEditor> implements OnInit, AfterViewInit, OnDestroy {
|
|
20
20
|
elementRef: ElementRef;
|
|
21
21
|
cdr: ChangeDetectorRef;
|
|
22
22
|
private renderer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
-
import { Editor } from 'slate';
|
|
4
3
|
import { TableDropdownOption } from '../../table.types';
|
|
4
|
+
import { TheEditor } from '../../../../interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class TheTableOptionsComponent implements OnInit {
|
|
7
7
|
private popoverRef;
|
|
8
|
-
editor:
|
|
8
|
+
editor: TheEditor;
|
|
9
9
|
tableDropdownList: TableDropdownOption[];
|
|
10
10
|
constructor(popoverRef: ThyPopoverRef<TheTableOptionsComponent>);
|
|
11
11
|
ngOnInit(): void;
|
|
@@ -13,5 +13,5 @@ export declare class TheTableOptionsComponent implements OnInit {
|
|
|
13
13
|
setColumnOptions(): void;
|
|
14
14
|
setTableOptions(event: MouseEvent, option: TableDropdownOption): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheTableOptionsComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableOptionsComponent, "the-table-options", never, { "editor": "editor"; }, {}, never, never, false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableOptionsComponent, "the-table-options", never, { "editor": { "alias": "editor"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
-
import { Editor } from 'slate';
|
|
4
3
|
import { TableStore } from '../../table.store';
|
|
5
4
|
import { MenuEntity } from '../../table.types';
|
|
5
|
+
import { TheEditor } from '../../../../interfaces';
|
|
6
6
|
import { TableElement } from '../../../..//custom-types';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
8
|
import { ThyNotifyService } from 'ngx-tethys/notify';
|
|
@@ -19,7 +19,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
|
|
|
19
19
|
tableChangeSubscriber: Subscription;
|
|
20
20
|
tableStore: TableStore;
|
|
21
21
|
tableElement: TableElement;
|
|
22
|
-
get editor():
|
|
22
|
+
get editor(): TheEditor;
|
|
23
23
|
cellMenuList: MenuEntity[];
|
|
24
24
|
get hasDivider(): boolean;
|
|
25
25
|
get tableOptions(): import("../../../../interfaces").ThePluginOption<{}>;
|
|
@@ -38,7 +38,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
|
|
|
38
38
|
setEquallyColumnHandle(event: MouseEvent): void;
|
|
39
39
|
openTableOptionMenu(event: Event): void;
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheTableToolbarComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "tableElement": "tableElement"; }, {}, never, never, false, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": { "alias": "tableStore"; "required": false; }; "tableElement": { "alias": "tableElement"; "required": false; }; }, {}, never, never, false, never>;
|
|
42
42
|
}
|
|
43
43
|
export declare enum DeleteIcon {
|
|
44
44
|
'table-delete-rows' = "table-delete-rows",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeEntry, Path, Range, Location } from 'slate';
|
|
2
2
|
import { TableOptions } from './table.types';
|
|
3
3
|
import { Alignment, Indents, VerticalAlignment } from '../../constants';
|
|
4
4
|
import { TheEditor } from '../../interfaces';
|
|
5
5
|
import { CustomElement, TableElement } from '../../custom-types';
|
|
6
6
|
export declare const TableEditor: {
|
|
7
|
-
insertTable(editor:
|
|
8
|
-
insertColumn(editor:
|
|
9
|
-
insertRow(editor:
|
|
10
|
-
removeTable(editor:
|
|
11
|
-
removeRow(editor:
|
|
12
|
-
removeColumn(editor:
|
|
13
|
-
clearCell(editor:
|
|
14
|
-
isActive(editor:
|
|
15
|
-
getSelectedCells(editor:
|
|
16
|
-
setAlign(editor:
|
|
7
|
+
insertTable(editor: TheEditor, optionsParam?: TableOptions): void;
|
|
8
|
+
insertColumn(editor: TheEditor, count?: number, at?: number, optionsParam?: TableOptions): void;
|
|
9
|
+
insertRow(editor: TheEditor, count?: number, at?: number, optionsParam?: TableOptions): void;
|
|
10
|
+
removeTable(editor: TheEditor, optionsParam?: TableOptions): void;
|
|
11
|
+
removeRow(editor: TheEditor, rowIndex?: number, optionsParam?: TableOptions): void;
|
|
12
|
+
removeColumn(editor: TheEditor, colIndex?: number, optionsParam?: TableOptions): void;
|
|
13
|
+
clearCell(editor: TheEditor, nodeEntry?: NodeEntry<CustomElement>, optionsParam?: TableOptions): void;
|
|
14
|
+
isActive(editor: TheEditor): boolean;
|
|
15
|
+
getSelectedCells(editor: TheEditor): import("./table.types").CellPosition[];
|
|
16
|
+
setAlign(editor: TheEditor, alignment: Alignment): boolean;
|
|
17
17
|
setVerticalAlign(editor: TheEditor, alignment: VerticalAlignment): boolean;
|
|
18
18
|
isVerticalAlignActive(editor: TheEditor, alignment: VerticalAlignment): boolean;
|
|
19
19
|
toggleMark(editor: TheEditor, isActive: boolean, format: string | string[], value?: string | number | boolean): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { TheEditor } from '../../interfaces';
|
|
3
3
|
import { TablePosition } from './utils';
|
|
4
4
|
import { ColorType } from '../../constants/color-select';
|
|
5
5
|
import { CellPosition } from './table.types';
|
|
@@ -15,7 +15,7 @@ export declare class TableStore {
|
|
|
15
15
|
dangerousColumnsIndex: number[];
|
|
16
16
|
dangerousRowsIndex: number[];
|
|
17
17
|
isSelectedTable: boolean;
|
|
18
|
-
editor:
|
|
18
|
+
editor: TheEditor;
|
|
19
19
|
isFullscreen: boolean;
|
|
20
20
|
anchorCellPath: number[];
|
|
21
21
|
focusCellPath: number[];
|
|
@@ -31,19 +31,19 @@ export declare class TableStore {
|
|
|
31
31
|
maxCol: number;
|
|
32
32
|
get dangerousCells(): CellPosition[];
|
|
33
33
|
constructor();
|
|
34
|
-
initEditor(editor:
|
|
34
|
+
initEditor(editor: TheEditor): void;
|
|
35
35
|
getSelectedCellPositions(): CellPosition[];
|
|
36
36
|
publishDangerousCells(value: CellPosition[]): void;
|
|
37
37
|
setSelectedColumnsAndRowIndex(): void;
|
|
38
38
|
setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
|
|
39
|
-
selectRow(editor:
|
|
40
|
-
selectColumn(editor:
|
|
41
|
-
selectTable(editor:
|
|
42
|
-
selectCellStart(cell: HTMLTableCellElement, editor:
|
|
43
|
-
selectCells(editor:
|
|
39
|
+
selectRow(editor: TheEditor, index: number): void;
|
|
40
|
+
selectColumn(editor: TheEditor, index: number): void;
|
|
41
|
+
selectTable(editor: TheEditor): void;
|
|
42
|
+
selectCellStart(cell: HTMLTableCellElement, editor: TheEditor): void;
|
|
43
|
+
selectCells(editor: TheEditor): void;
|
|
44
44
|
selectFirstCell(): void;
|
|
45
|
-
selectCell(cell: HTMLTableCellElement, editor:
|
|
46
|
-
selectCellOngoing(cell: HTMLTableCellElement, editor:
|
|
45
|
+
selectCell(cell: HTMLTableCellElement, editor: TheEditor): void;
|
|
46
|
+
selectCellOngoing(cell: HTMLTableCellElement, editor: TheEditor): void;
|
|
47
47
|
clearSelectedCells(): void;
|
|
48
48
|
clearLastFocusPath(): void;
|
|
49
49
|
selectedCellsChange(): Observable<TableCellElement[]>;
|
|
@@ -51,7 +51,7 @@ export declare class TableStore {
|
|
|
51
51
|
changeCells(): void;
|
|
52
52
|
emitTableChange(): void;
|
|
53
53
|
tableChange(): Observable<void>;
|
|
54
|
-
selectCellEnd(editor:
|
|
54
|
+
selectCellEnd(editor: TheEditor): void;
|
|
55
55
|
dangerousCellsChange(): Observable<CellPosition[]>;
|
|
56
56
|
setDangerousCells(): void;
|
|
57
57
|
clearDangerousCells(): void;
|
|
@@ -70,7 +70,7 @@ export declare class TableStore {
|
|
|
70
70
|
* @param editor 编辑器对象
|
|
71
71
|
* @param cell 单元格元素
|
|
72
72
|
*/
|
|
73
|
-
areaSelectionStart(cell: HTMLTableCellElement, editor:
|
|
73
|
+
areaSelectionStart(cell: HTMLTableCellElement, editor: TheEditor): void;
|
|
74
74
|
/**
|
|
75
75
|
* 设置区域选择的单元格
|
|
76
76
|
* @param cellElement 单元格元素
|
|
@@ -3,7 +3,8 @@ import { ComponentType } from 'slate-angular';
|
|
|
3
3
|
import { TheBaseElementComponent } from '../../interfaces/view-base';
|
|
4
4
|
import { ElementKinds } from '../../constants/node-types';
|
|
5
5
|
import type { TheTableComponent } from './components/table.component';
|
|
6
|
-
import {
|
|
6
|
+
import { Element } from 'slate';
|
|
7
|
+
import { TheEditor } from '../../interfaces';
|
|
7
8
|
import { Observable } from 'rxjs';
|
|
8
9
|
export declare const THE_TABLE_COMPONENT_TOKEN: InjectionToken<ComponentType<TheTableComponent>>;
|
|
9
10
|
export declare const HEADER_CELL_CLASS = "the-header-cell";
|
|
@@ -59,8 +60,8 @@ export interface ThePluginTableOption {
|
|
|
59
60
|
freezeColumnHeader?: boolean;
|
|
60
61
|
freezeRowHeader?: boolean;
|
|
61
62
|
showFullscreen?: boolean;
|
|
62
|
-
setFullscreen?: (editor:
|
|
63
|
-
fullscreenAction?: (editor:
|
|
63
|
+
setFullscreen?: (editor: TheEditor, event: MouseEvent, element: Element) => void;
|
|
64
|
+
fullscreenAction?: (editor: TheEditor) => Observable<{
|
|
64
65
|
element: Element | undefined;
|
|
65
66
|
state: FullscreenState;
|
|
66
67
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { NodeEntry,
|
|
1
|
+
import { NodeEntry, Element } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { TableOptions } from '../table.types';
|
|
3
4
|
/**
|
|
4
5
|
* Clear the content of the given cell
|
|
5
6
|
*/
|
|
6
|
-
export declare function clearCell(opts: TableOptions, editor:
|
|
7
|
+
export declare function clearCell(opts: TableOptions, editor: TheEditor, cellEntry: NodeEntry<Element>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Clear the content of the given node
|
|
5
5
|
*/
|
|
6
|
-
export declare function clearTableNode(opts: TableOptions, editor:
|
|
6
|
+
export declare function clearTableNode(opts: TableOptions, editor: TheEditor, isTopToBot?: boolean): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { NodeEntry } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
3
|
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
4
|
+
import { TableOptions } from '../table.types';
|
|
4
5
|
/**
|
|
5
6
|
* Insert a new column in current table
|
|
6
7
|
*/
|
|
7
|
-
export declare function insertColumn(opts: TableOptions, editor:
|
|
8
|
+
export declare function insertColumn(opts: TableOptions, editor: TheEditor, count?: number, at?: number, // Column index
|
|
8
9
|
getCell?: (column: number, row: number) => TableCellElement): void;
|
|
9
10
|
/**
|
|
10
11
|
* Insert new column in the row
|
|
11
12
|
*/
|
|
12
|
-
export declare function insertColumnAtRow(opts: TableOptions, editor:
|
|
13
|
+
export declare function insertColumnAtRow(opts: TableOptions, editor: TheEditor, count: number, tableEntry: NodeEntry<TableElement>, rowIndex: number, columnIndex: number, getCell?: (column: number, row: number) => TableCellElement): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Insert a new row in current table
|
|
5
5
|
*/
|
|
6
|
-
export declare function insertRow(opts: TableOptions, editor:
|
|
6
|
+
export declare function insertRow(opts: TableOptions, editor: TheEditor, count?: number, at?: number): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Node } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { TableOptions } from '../table.types';
|
|
3
4
|
/**
|
|
4
5
|
* Insert a new table
|
|
5
6
|
*/
|
|
6
|
-
export declare function insertTable(opts: TableOptions, editor:
|
|
7
|
+
export declare function insertTable(opts: TableOptions, editor: TheEditor, rows?: number, columns?: number, getCellContent?: (column: number, row: number) => Node[]): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
|
-
export declare function removeColumn(opts: TableOptions, editor:
|
|
3
|
+
export declare function removeColumn(opts: TableOptions, editor: TheEditor, selectColIndex?: number): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
|
-
export declare function removeRow(opts: TableOptions, editor:
|
|
3
|
+
export declare function removeRow(opts: TableOptions, editor: TheEditor, selectRowIndex?: number): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableOptions } from '../table.types';
|
|
3
|
-
export declare function removeTable(opts: TableOptions, editor:
|
|
3
|
+
export declare function removeTable(opts: TableOptions, editor: TheEditor): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function calculateAnchorPositionInCell(editor:
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
|
+
export declare function calculateAnchorPositionInCell(editor: TheEditor): {
|
|
3
3
|
isFirstLine: boolean;
|
|
4
4
|
isLastLine: boolean;
|
|
5
5
|
anchorBlockPath: import("slate").Path;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableCellElement } from '../../../custom-types';
|
|
3
3
|
import { CellPosition } from '../table.types';
|
|
4
4
|
/**
|
|
@@ -7,14 +7,14 @@ import { CellPosition } from '../table.types';
|
|
|
7
7
|
* @param selectedCellPositions 选中的单元格位置数组
|
|
8
8
|
* @returns 是否选中了所有的单元格
|
|
9
9
|
*/
|
|
10
|
-
export declare const isSelectedAllCell: (editor:
|
|
10
|
+
export declare const isSelectedAllCell: (editor: TheEditor, selectedCellPositions: CellPosition[]) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* 获取选中的单元格位置数组
|
|
13
13
|
* @param editor 编辑器对象
|
|
14
14
|
* @param selectedCells 选中的单元格
|
|
15
15
|
* @returns 选中的单元格位置
|
|
16
16
|
*/
|
|
17
|
-
export declare const getSelectedCellPositions: (editor:
|
|
17
|
+
export declare const getSelectedCellPositions: (editor: TheEditor, selectedCells: TableCellElement[]) => {
|
|
18
18
|
row: number;
|
|
19
19
|
col: number;
|
|
20
20
|
}[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Path } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { TablePosition } from './table-position';
|
|
3
|
-
export declare const createTablePosition: (editor:
|
|
4
|
+
export declare const createTablePosition: (editor: TheEditor, path?: Path) => TablePosition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableElement } from '../../../custom-types';
|
|
3
3
|
import { CellPosition } from '../table.types';
|
|
4
|
-
export declare const getMinAndMaxCellIndex: (editor:
|
|
4
|
+
export declare const getMinAndMaxCellIndex: (editor: TheEditor, selectedCellPositions: CellPosition[], maxRow: number, maxCol: number, minRow: number, minCol: number, table: TableElement) => {
|
|
5
5
|
minRow: number;
|
|
6
6
|
maxRow: number;
|
|
7
7
|
minCol: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { CellPosition } from '../table.types';
|
|
3
|
-
export declare function getSelectCellNode(editor:
|
|
3
|
+
export declare function getSelectCellNode(editor: TheEditor, selectedCells: CellPosition[]): {
|
|
4
4
|
node: import("@worktile/theia").TableCellElement;
|
|
5
5
|
row: number;
|
|
6
6
|
col: number;
|
|
7
7
|
}[];
|
|
8
|
-
export declare function focusCell(editor:
|
|
8
|
+
export declare function focusCell(editor: TheEditor, path: number[]): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CellPosition } from '../table.types';
|
|
2
|
-
import {
|
|
2
|
+
import { Path } from 'slate';
|
|
3
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
4
|
import { Indents } from '../../../constants';
|
|
4
5
|
import { CustomElement } from '../../../custom-types';
|
|
5
6
|
export declare function sortCell(cells: CellPosition[]): void;
|
|
6
|
-
export declare function setCellIndent(editor:
|
|
7
|
+
export declare function setCellIndent(editor: TheEditor, indentType: Indents, child: CustomElement, at: Path): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Range } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { TableOptions } from '../table.types';
|
|
3
4
|
/**
|
|
4
5
|
* True if the given range is inside one table
|
|
5
6
|
*/
|
|
6
|
-
export declare function isRangeInTable(opts: TableOptions, editor:
|
|
7
|
+
export declare function isRangeInTable(opts: TableOptions, editor: TheEditor, range: Range): boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { CellPosition, TableOptions } from '../table.types';
|
|
3
3
|
/**
|
|
4
4
|
* Is the selection in a table
|
|
5
5
|
*/
|
|
6
|
-
export declare function isSelectionInTable(opts: TableOptions, editor:
|
|
6
|
+
export declare function isSelectionInTable(opts: TableOptions, editor: TheEditor): boolean;
|
|
7
7
|
/**
|
|
8
8
|
* Whether the cells passed in can form a rectangle
|
|
9
9
|
* @param editor
|
|
10
10
|
* @param cells
|
|
11
11
|
* @returns boolean
|
|
12
12
|
*/
|
|
13
|
-
export declare function isRectangularInTableCells(editor:
|
|
13
|
+
export declare function isRectangularInTableCells(editor: TheEditor, cells: CellPosition[]): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Path
|
|
1
|
+
import { Path } from 'slate';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
3
|
import { TableCellElement } from '../../../custom-types';
|
|
3
4
|
import { CellPosition } from '../table.types';
|
|
4
5
|
export interface SelectedCellInfo {
|
|
@@ -7,7 +8,7 @@ export interface SelectedCellInfo {
|
|
|
7
8
|
node: TableCellElement;
|
|
8
9
|
maxRowSpan?: number;
|
|
9
10
|
}
|
|
10
|
-
export declare function isSelectedCellMerged(editor:
|
|
11
|
+
export declare function isSelectedCellMerged(editor: TheEditor): boolean;
|
|
11
12
|
export declare function getLeftCellDict(selectCellNodes: SelectedCellInfo[]): {
|
|
12
13
|
[key: string]: SelectedCellInfo;
|
|
13
14
|
};
|
|
@@ -17,6 +18,6 @@ export declare function calculateCellSpan(selectCellNodes: SelectedCellInfo[], l
|
|
|
17
18
|
rowspan: number;
|
|
18
19
|
colspan: number;
|
|
19
20
|
};
|
|
20
|
-
export declare function mergeCell(editor:
|
|
21
|
-
export declare function mergeCellContent(editor:
|
|
22
|
-
export declare function getCellPositionsBeforeMerge(editor:
|
|
21
|
+
export declare function mergeCell(editor: TheEditor, selectedCells: CellPosition[]): void;
|
|
22
|
+
export declare function mergeCellContent(editor: TheEditor, leftTopCellPath: Path, cellPath: Path): void;
|
|
23
|
+
export declare function getCellPositionsBeforeMerge(editor: TheEditor, { row, col }: CellPosition): CellPosition[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { MenuEntity, CellPosition } from '../table.types';
|
|
3
|
-
export declare function setCellMenuVisibility(editor:
|
|
3
|
+
export declare function setCellMenuVisibility(editor: TheEditor, menuList: MenuEntity[], tableInfo: {
|
|
4
4
|
selectedCellPositions: CellPosition[];
|
|
5
5
|
isFullscreen?: boolean;
|
|
6
6
|
isSelectedTable?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
2
|
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
3
|
-
export declare function splitCell(editor:
|
|
4
|
-
export declare function resetTableCell(editor:
|
|
3
|
+
export declare function splitCell(editor: TheEditor): TheEditor;
|
|
4
|
+
export declare function resetTableCell(editor: TheEditor, table: TableElement, cell: TableCellElement, cellRow: number, cellCol: number): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getTableEntry: (editor:
|
|
3
|
-
export declare const getTablePath: (editor:
|
|
4
|
-
export declare const getTable: (editor:
|
|
5
|
-
export declare const getSelectedCell: (editor:
|
|
1
|
+
import { TheEditor } from '../../../interfaces';
|
|
2
|
+
export declare const getTableEntry: (editor: TheEditor) => import("slate").NodeEntry<import("@worktile/theia").TableElement>;
|
|
3
|
+
export declare const getTablePath: (editor: TheEditor) => import("slate").Path;
|
|
4
|
+
export declare const getTable: (editor: TheEditor) => import("@worktile/theia").TableElement;
|
|
5
|
+
export declare const getSelectedCell: (editor: TheEditor) => import("@worktile/theia").TableCellElement;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ElementRef, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { TheBaseElementComponent } from '../../interfaces';
|
|
2
|
+
import { TheBaseElementComponent, TheEditor } from '../../interfaces';
|
|
4
3
|
import { TodoItemElement } from '../../custom-types';
|
|
5
4
|
import { TheContextService } from '../../services/context.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoItemElement,
|
|
6
|
+
export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoItemElement, TheEditor> implements OnInit {
|
|
8
7
|
elementRef: ElementRef;
|
|
9
8
|
cdr: ChangeDetectorRef;
|
|
10
9
|
private ctxService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
2
2
|
export declare const TodoItemEditor: {
|
|
3
|
-
isActive(editor:
|
|
4
|
-
insertTodoItem(editor:
|
|
3
|
+
isActive(editor: TheEditor): boolean;
|
|
4
|
+
insertTodoItem(editor: TheEditor): void;
|
|
5
5
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { TheEditor } from '../../interfaces';
|
|
1
2
|
export interface TodoItemPluginOptions {
|
|
2
3
|
editableWithReadonly?: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare const withTodoItem: <T extends
|
|
5
|
+
export declare const withTodoItem: <T extends TheEditor>(editor: T) => T;
|
|
5
6
|
export declare const createTodoItemPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ElementRef, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
|
-
import {
|
|
3
|
+
import { TheEditor, ToolbarItem } from '../../interfaces';
|
|
4
4
|
import { TheBaseToolbarDropdown } from '../../core/toolbar-item/base-toolbar-item';
|
|
5
|
-
import { ToolbarItem } from '../../interfaces';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class TheVerticalToolbarItemComponent extends TheBaseToolbarDropdown implements OnInit {
|
|
8
7
|
elementRef: ElementRef;
|
|
@@ -15,7 +14,7 @@ export declare class TheVerticalToolbarItemComponent extends TheBaseToolbarDropd
|
|
|
15
14
|
handleDocumentMouseDown(event: MouseEvent): void;
|
|
16
15
|
constructor(elementRef: ElementRef, thyPopover: ThyPopover, viewContainerRef: ViewContainerRef);
|
|
17
16
|
ngOnInit(): void;
|
|
18
|
-
menusActive(editor:
|
|
17
|
+
menusActive(editor: TheEditor): ToolbarItem;
|
|
19
18
|
execute(event: MouseEvent): void;
|
|
20
19
|
itemMousedown(event: MouseEvent, item: ToolbarItem): void;
|
|
21
20
|
openPopover(): void;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { NodeEntry, Path, Point } from 'slate';
|
|
2
|
+
import { TheEditor } from '../interfaces';
|
|
3
|
+
import { CustomElement } from '../custom-types';
|
|
4
|
+
export declare const anchorBlockEntry: (editor: TheEditor, at?: Path | Point) => NodeEntry<CustomElement> | undefined;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { TheEditor } from '../interfaces';
|
|
2
|
+
import { CustomElement } from '../custom-types';
|
|
3
|
+
export declare const anchorBlock: (editor: TheEditor) => CustomElement;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { TheEditor } from '../interfaces';
|
|
2
|
+
import { CustomElement } from '../custom-types';
|
|
3
|
+
export declare const anchorInlineEntry: (editor: TheEditor) => import("slate").NodeEntry<CustomElement>;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Iterate through all of the nodes in the editor and return the first match. If
|
|
3
3
|
* no match is found, return undefined.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { Node, NodeEntry } from 'slate';
|
|
6
|
+
import { TheEditor } from '../interfaces';
|
|
6
7
|
import { FindNodeOptions } from './find-node';
|
|
7
8
|
/**
|
|
8
9
|
* Get the first descendant node matching the condition.
|
|
9
10
|
*/
|
|
10
|
-
export declare const findDescendant: <T extends Node = Node>(editor:
|
|
11
|
+
export declare const findDescendant: <T extends Node = Node>(editor: TheEditor, options: FindNodeOptions<T>) => NodeEntry<T>;
|
package/queries/find-node.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Iterate through all of the nodes in the editor and return the first match. If
|
|
3
3
|
* no match is found, return undefined.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { MatchOptions } from '../interfaces';
|
|
5
|
+
import { Location, Node, NodeEntry, Span } from 'slate';
|
|
6
|
+
import { MatchOptions, TheEditor } from '../interfaces';
|
|
7
7
|
export type FindNodeOptions<T extends Node = Node> = {
|
|
8
8
|
at?: Location | Span;
|
|
9
9
|
reverse?: boolean;
|
|
@@ -12,4 +12,4 @@ export type FindNodeOptions<T extends Node = Node> = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Find node matching the condition.
|
|
14
14
|
*/
|
|
15
|
-
export declare const findNode: <T extends Node = Node>(editor:
|
|
15
|
+
export declare const findNode: <T extends Node = Node>(editor: TheEditor, options: FindNodeOptions<T>) => NodeEntry<T>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EditorAboveOptions } from '../interfaces';
|
|
1
|
+
import { EditorAboveOptions, TheEditor } from '../interfaces';
|
|
3
2
|
/**
|
|
4
3
|
* Get the block above a location (default: selection) by type.
|
|
5
4
|
*/
|
|
6
|
-
export declare const getAboveByType: (editor:
|
|
5
|
+
export declare const getAboveByType: (editor: TheEditor, types: string[] | string, options?: Omit<EditorAboveOptions, 'match'>) => import("slate").NodeEntry<import("slate").Ancestor>;
|
package/queries/get-above.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ancestor
|
|
2
|
-
import { EditorAboveOptions } from '../interfaces';
|
|
1
|
+
import { Ancestor } from 'slate';
|
|
2
|
+
import { EditorAboveOptions, TheEditor } from '../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Get node above a location (default: selection).
|
|
5
5
|
*/
|
|
6
|
-
export declare const getAbove: <T = Ancestor>(editor:
|
|
6
|
+
export declare const getAbove: <T = Ancestor>(editor: TheEditor, options?: EditorAboveOptions<T>) => import("slate").NodeEntry<Ancestor>;
|