@worktile/theia 13.0.0-next.1 → 13.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/README.md +11 -11
- package/components/color-select/color-select.component.d.ts +32 -32
- package/components/color-select/color-select.component.scss +107 -107
- package/components/column-resize/column-resize-notifier.d.ts +35 -35
- package/components/column-resize/column-resize.directive.d.ts +26 -26
- package/components/column-resize/column-resize.module.d.ts +14 -14
- package/components/column-resize/event-dispatcher.d.ts +31 -31
- package/components/column-resize/overlay-handle.component.d.ts +33 -33
- package/components/column-resize/resize-ref.d.ts +25 -25
- package/components/column-resize/resizing.store.d.ts +28 -28
- package/components/column-resize/selectors.d.ts +3 -3
- package/components/contextmenu/contextmenu.component.d.ts +22 -22
- package/components/conversion-hint/conversion-hint.component.d.ts +18 -18
- package/components/conversion-hint/conversion-hint.component.scss +11 -11
- package/components/element/element.component.d.ts +7 -7
- package/components/inline-toolbar/inline-toolbar.component.d.ts +26 -26
- package/components/nav-split-line/nav-split-line.component.d.ts +13 -13
- package/components/table-select/table-select.component.d.ts +20 -20
- package/components/table-select/table-select.component.scss +35 -35
- package/components/template/template.component.d.ts +15 -15
- package/components/text/text.component.d.ts +14 -14
- package/components/toolbar/toolbar.component.d.ts +64 -64
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +33 -33
- package/components/toolbar-group/toolbar-group.component.d.ts +33 -33
- package/components/toolbar-group/toolbar-group.component.scss +17 -17
- package/components/toolbar-item/toolbar-item.component.d.ts +17 -17
- package/constants/auto-format-rules.d.ts +2 -2
- package/constants/code.d.ts +9 -9
- package/constants/color-select.d.ts +14 -14
- package/constants/default.d.ts +9 -9
- package/constants/error.d.ts +5 -5
- package/constants/index.d.ts +5 -5
- package/constants/node-types.d.ts +99 -99
- package/constants/selector.d.ts +2 -2
- package/constants/toolbar.d.ts +17 -17
- package/core/create-plugin.d.ts +2 -2
- package/core/create-toolbar.d.ts +5 -5
- package/core/index.d.ts +4 -4
- package/core/toolbar-item/base-toolbar-item.d.ts +29 -29
- package/core/utils/combine-plugins.d.ts +2 -2
- package/core/utils/flatten-deep-plugins.d.ts +6 -6
- package/core/utils/get-plugin-options.d.ts +2 -2
- package/core/utils/get-plugin.d.ts +2 -2
- package/core/utils/get-plugins.d.ts +2 -2
- package/core/utils/index.d.ts +10 -10
- package/core/utils/merge-array.d.ts +1 -1
- package/core/utils/merge-deep-plugins.d.ts +2 -2
- package/core/utils/merge-options.d.ts +2 -2
- package/core/utils/nested-structure-by-key.d.ts +2 -2
- package/core/utils/plugins-by-key.d.ts +2 -2
- package/core/with-theia.d.ts +4 -4
- package/custom-types.d.ts +131 -131
- package/editor.component.d.ts +92 -92
- package/editor.module.d.ts +100 -98
- package/esm2020/components/color-select/color-select.component.mjs +108 -108
- package/esm2020/components/column-resize/column-resize-notifier.mjs +31 -31
- package/esm2020/components/column-resize/column-resize.directive.mjs +98 -98
- package/esm2020/components/column-resize/column-resize.module.mjs +32 -32
- package/esm2020/components/column-resize/event-dispatcher.mjs +55 -55
- package/esm2020/components/column-resize/overlay-handle.component.mjs +139 -139
- package/esm2020/components/column-resize/resize-ref.mjs +25 -25
- package/esm2020/components/column-resize/resizing.store.mjs +154 -154
- package/esm2020/components/column-resize/selectors.mjs +4 -4
- package/esm2020/components/contextmenu/contextmenu.component.mjs +61 -61
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +54 -54
- package/esm2020/components/element/element.component.mjs +22 -22
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +125 -125
- package/esm2020/components/nav-split-line/nav-split-line.component.mjs +36 -36
- package/esm2020/components/table-select/table-select.component.mjs +49 -49
- package/esm2020/components/template/template.component.mjs +62 -62
- package/esm2020/components/text/text.component.mjs +57 -57
- package/esm2020/components/toolbar/toolbar.component.mjs +241 -241
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +128 -128
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +110 -110
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +60 -60
- package/esm2020/constants/auto-format-rules.mjs +166 -166
- package/esm2020/constants/code.mjs +88 -88
- package/esm2020/constants/color-select.mjs +61 -61
- package/esm2020/constants/default.mjs +9 -9
- package/esm2020/constants/error.mjs +7 -7
- package/esm2020/constants/index.mjs +5 -5
- package/esm2020/constants/node-types.mjs +132 -132
- package/esm2020/constants/selector.mjs +3 -3
- package/esm2020/constants/toolbar.mjs +69 -69
- package/esm2020/core/create-plugin.mjs +4 -4
- package/esm2020/core/create-toolbar.mjs +55 -55
- package/esm2020/core/index.mjs +4 -4
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +89 -89
- package/esm2020/core/utils/combine-plugins.mjs +9 -9
- package/esm2020/core/utils/flatten-deep-plugins.mjs +18 -18
- package/esm2020/core/utils/get-plugin-options.mjs +2 -2
- package/esm2020/core/utils/get-plugin.mjs +1 -1
- package/esm2020/core/utils/get-plugins.mjs +3 -3
- package/esm2020/core/utils/index.mjs +10 -10
- package/esm2020/core/utils/merge-array.mjs +17 -17
- package/esm2020/core/utils/merge-deep-plugins.mjs +13 -13
- package/esm2020/core/utils/merge-options.mjs +19 -19
- package/esm2020/core/utils/nested-structure-by-key.mjs +10 -10
- package/esm2020/core/utils/plugins-by-key.mjs +9 -9
- package/esm2020/core/with-theia.mjs +22 -22
- package/esm2020/custom-types.mjs +1 -1
- package/esm2020/editor.component.mjs +430 -430
- package/esm2020/editor.module.mjs +207 -201
- package/esm2020/interfaces/auto-format.mjs +1 -1
- package/esm2020/interfaces/editor.mjs +24 -24
- package/esm2020/interfaces/element.mjs +1 -1
- package/esm2020/interfaces/image.mjs +2 -2
- package/esm2020/interfaces/index.mjs +8 -8
- package/esm2020/interfaces/plugins/index.mjs +4 -4
- package/esm2020/interfaces/plugins/no-infer.mjs +1 -1
- package/esm2020/interfaces/plugins/plugin-key.mjs +39 -39
- package/esm2020/interfaces/plugins/plugins.mjs +1 -1
- package/esm2020/interfaces/plugins/with-override.mjs +1 -1
- package/esm2020/interfaces/reset-block-type-plugin-options.mjs +2 -2
- package/esm2020/interfaces/toolbar.mjs +11 -11
- package/esm2020/interfaces/upload.mjs +1 -1
- package/esm2020/interfaces/utility/index.mjs +3 -3
- package/esm2020/interfaces/utility/nested-structure-by-key.mjs +1 -1
- package/esm2020/interfaces/utility/override-by-key.mjs +1 -1
- package/esm2020/interfaces/utility/types.mjs +1 -1
- package/esm2020/interfaces/valid-children-types.mjs +35 -35
- package/esm2020/interfaces/view-base.mjs +21 -21
- package/esm2020/pipes.mjs +42 -42
- package/esm2020/plugins/align/align.editor.mjs +46 -46
- package/esm2020/plugins/align/align.plugin.mjs +63 -63
- package/esm2020/plugins/autoformat/autoformat.plugin.mjs +108 -108
- package/esm2020/plugins/autoformat/transforms/auto-format-block.mjs +14 -14
- package/esm2020/plugins/autoformat/transforms/auto-format-inline.mjs +77 -77
- package/esm2020/plugins/blockquote/blockquote.component.mjs +21 -21
- package/esm2020/plugins/blockquote/blockquote.editor.mjs +19 -19
- package/esm2020/plugins/blockquote/blockquote.plugin.mjs +70 -70
- package/esm2020/plugins/code/code.component.mjs +240 -240
- package/esm2020/plugins/code/code.editor.mjs +47 -47
- package/esm2020/plugins/code/code.plugin.mjs +41 -41
- package/esm2020/plugins/color/color.editor.mjs +43 -43
- package/esm2020/plugins/color/color.plugin.mjs +27 -27
- package/esm2020/plugins/color/toolbar-item.component.mjs +78 -78
- package/esm2020/plugins/common/auto-insert-data..mjs +76 -76
- package/esm2020/plugins/common/block-card.plugin.mjs +286 -286
- package/esm2020/plugins/common/get-fragment.plugin.mjs +23 -23
- package/esm2020/plugins/common/history.plugin.mjs +30 -30
- package/esm2020/plugins/common/move-selection.plugin.mjs +89 -89
- package/esm2020/plugins/common/remove-empty.plugin.mjs +59 -59
- package/esm2020/plugins/common/remove-void.plugin.mjs +56 -56
- package/esm2020/plugins/common/reset-type.plugin.mjs +34 -34
- package/esm2020/plugins/common/transforms.plugin.mjs +17 -17
- package/esm2020/plugins/deserializers/deserialize-html.plugin.mjs +38 -38
- package/esm2020/plugins/deserializers/deserialize-md.plugin.mjs +121 -121
- package/esm2020/plugins/font-size/font-size.editor.mjs +97 -97
- package/esm2020/plugins/heading/heading.editor.mjs +53 -53
- package/esm2020/plugins/heading/heading.plugin.mjs +84 -84
- package/esm2020/plugins/hr/hr.component.mjs +40 -40
- package/esm2020/plugins/hr/hr.editor.mjs +7 -7
- package/esm2020/plugins/hr/hr.plugin.mjs +41 -41
- package/esm2020/plugins/image/image.component.mjs +385 -365
- package/esm2020/plugins/image/image.editor.mjs +57 -57
- package/esm2020/plugins/image/image.plugin.mjs +56 -56
- package/esm2020/plugins/indent/indent.editor.mjs +70 -70
- package/esm2020/plugins/indent/indent.plugin.mjs +57 -57
- package/esm2020/plugins/indent/on-keydown-indent.mjs +53 -53
- package/esm2020/plugins/index.mjs +70 -70
- package/esm2020/plugins/inline-code/inline-code.component.mjs +21 -21
- package/esm2020/plugins/inline-code/inline-code.editor.mjs +47 -47
- package/esm2020/plugins/inline-code/inline-code.plugin.mjs +65 -65
- package/esm2020/plugins/link/edit/link-edit.component.mjs +105 -105
- package/esm2020/plugins/link/hover/link-hover.component.mjs +36 -36
- package/esm2020/plugins/link/link.component.mjs +162 -162
- package/esm2020/plugins/link/link.editor.mjs +66 -66
- package/esm2020/plugins/link/link.plugin.mjs +58 -58
- package/esm2020/plugins/link/link.types.mjs +12 -12
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +32 -32
- package/esm2020/plugins/list/components/list-item.component.mjs +92 -92
- package/esm2020/plugins/list/components/numbered-list.component.mjs +38 -38
- package/esm2020/plugins/list/list.editor.mjs +125 -125
- package/esm2020/plugins/list/list.plugin.mjs +285 -285
- package/esm2020/plugins/list/normalizers/get-list-normalizer.mjs +39 -39
- package/esm2020/plugins/list/normalizers/normalize-list-item.mjs +18 -18
- package/esm2020/plugins/list/normalizers/normalize-no.mjs +42 -42
- package/esm2020/plugins/list/on-key-down-list.mjs +32 -32
- package/esm2020/plugins/list/queries/get-list-item-entry.mjs +27 -27
- package/esm2020/plugins/list/queries/get-list-item-sublist.mjs +12 -12
- package/esm2020/plugins/list/queries/get-list-types.mjs +5 -5
- package/esm2020/plugins/list/queries/get-start-list-item.mjs +26 -26
- package/esm2020/plugins/list/queries/has-list-in-list-item.mjs +27 -27
- package/esm2020/plugins/list/queries/is-in-list.mjs +5 -5
- package/esm2020/plugins/list/queries/is-list-nested.mjs +10 -10
- package/esm2020/plugins/list/queries/is-list.mjs +5 -5
- package/esm2020/plugins/list/queries/is-node-type-list.mjs +4 -4
- package/esm2020/plugins/list/queries/is-selection-at-list-item-start.mjs +12 -12
- package/esm2020/plugins/list/queries/is-selection-in-same-list-item.mjs +16 -16
- package/esm2020/plugins/list/queries/is-single-list-item.mjs +9 -9
- package/esm2020/plugins/list/transforms/insert-list-data.mjs +71 -71
- package/esm2020/plugins/list/transforms/insert-list-item.mjs +72 -72
- package/esm2020/plugins/list/transforms/move-list-item-down.mjs +41 -41
- package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +42 -42
- package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +29 -29
- package/esm2020/plugins/list/transforms/move-list-item-up.mjs +77 -77
- package/esm2020/plugins/list/transforms/unwrap-list.mjs +9 -9
- package/esm2020/plugins/list/types.mjs +2 -2
- package/esm2020/plugins/mark/mark.editor.mjs +27 -27
- package/esm2020/plugins/mark/mark.plugin.mjs +104 -104
- package/esm2020/plugins/node-id/node-id.plugin.mjs +77 -77
- package/esm2020/plugins/normalizers/insert-paragraph-nodes.mjs +27 -27
- package/esm2020/plugins/normalizers/remove-empty-nodes.mjs +17 -17
- package/esm2020/plugins/normalizers/trailing-node.plugin.mjs +32 -32
- package/esm2020/plugins/paint-format/paint-format.editor.mjs +122 -122
- package/esm2020/plugins/public-api.mjs +15 -15
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +95 -95
- package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +79 -79
- package/esm2020/plugins/quick-insert/quick-insert.editor.mjs +52 -52
- package/esm2020/plugins/quick-insert/quick-insert.plugin.mjs +73 -73
- package/esm2020/plugins/soft-break/soft-break.plugin.mjs +35 -35
- package/esm2020/plugins/soft-break/soft-break.types.mjs +1 -1
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +99 -99
- package/esm2020/plugins/table/components/row/row.component.mjs +46 -46
- package/esm2020/plugins/table/components/table.component.mjs +460 -460
- package/esm2020/plugins/table/components/td/td.component.mjs +696 -696
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +70 -70
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +158 -158
- package/esm2020/plugins/table/table.editor.mjs +182 -182
- package/esm2020/plugins/table/table.plugin.mjs +426 -426
- package/esm2020/plugins/table/table.service.mjs +102 -102
- package/esm2020/plugins/table/table.store.mjs +483 -483
- package/esm2020/plugins/table/table.types.mjs +33 -33
- package/esm2020/plugins/table/toolbar-item.component.mjs +60 -60
- package/esm2020/plugins/table/transforms/clear-cell.mjs +14 -14
- package/esm2020/plugins/table/transforms/clear-table-node.mjs +27 -27
- package/esm2020/plugins/table/transforms/insert-column.mjs +57 -57
- package/esm2020/plugins/table/transforms/insert-row.mjs +42 -42
- package/esm2020/plugins/table/transforms/insert-table.mjs +14 -14
- package/esm2020/plugins/table/transforms/remove-column.mjs +51 -51
- package/esm2020/plugins/table/transforms/remove-row.mjs +50 -50
- package/esm2020/plugins/table/transforms/remove-table.mjs +49 -49
- package/esm2020/plugins/table/utils/add-columns.mjs +28 -28
- package/esm2020/plugins/table/utils/calc-anchor-position.mjs +24 -24
- package/esm2020/plugins/table/utils/calc-span.mjs +72 -72
- package/esm2020/plugins/table/utils/create-cell.mjs +19 -19
- package/esm2020/plugins/table/utils/create-row.mjs +12 -12
- package/esm2020/plugins/table/utils/create-table.mjs +13 -13
- package/esm2020/plugins/table/utils/get-base-height.mjs +22 -22
- package/esm2020/plugins/table/utils/get-select-cell-node.mjs +19 -19
- package/esm2020/plugins/table/utils/index.mjs +8 -8
- package/esm2020/plugins/table/utils/is-range-in-table.mjs +16 -16
- package/esm2020/plugins/table/utils/is-selection-in-table.mjs +11 -11
- package/esm2020/plugins/table/utils/is-virtual-key.mjs +12 -12
- package/esm2020/plugins/table/utils/merge-cell.mjs +90 -90
- package/esm2020/plugins/table/utils/next-path.mjs +5 -5
- package/esm2020/plugins/table/utils/normalize-table.mjs +30 -30
- package/esm2020/plugins/table/utils/remove-columns.mjs +23 -23
- package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +15 -15
- package/esm2020/plugins/table/utils/split-cell.mjs +31 -31
- package/esm2020/plugins/table/utils/table-position.mjs +242 -242
- package/esm2020/plugins/todo-item/todo-item.component.mjs +53 -53
- package/esm2020/plugins/todo-item/todo-item.editor.mjs +31 -31
- package/esm2020/plugins/todo-item/todo-item.plugin.mjs +78 -78
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +82 -82
- package/esm2020/plugins/vertical-align/vertical-align.editor.mjs +54 -54
- package/esm2020/public-api.mjs +23 -23
- package/esm2020/queries/anchor-block-entry.mjs +13 -13
- package/esm2020/queries/anchor-block.mjs +6 -6
- package/esm2020/queries/anchor-inline-entry.mjs +10 -10
- package/esm2020/queries/find-descendant.mjs +47 -47
- package/esm2020/queries/find-node.mjs +45 -45
- package/esm2020/queries/find-path.mjs +28 -28
- package/esm2020/queries/get-above-by-type.mjs +13 -13
- package/esm2020/queries/get-above.mjs +9 -9
- package/esm2020/queries/get-anchor-block-entry.mjs +8 -8
- package/esm2020/queries/get-block-above.mjs +10 -10
- package/esm2020/queries/get-block-card-above.mjs +10 -10
- package/esm2020/queries/get-block-card-cursor.mjs +5 -5
- package/esm2020/queries/get-container-blocks.mjs +11 -11
- package/esm2020/queries/get-directly-parent.mjs +11 -11
- package/esm2020/queries/get-insert-elements-path.mjs +43 -43
- package/esm2020/queries/get-last-child-path.mjs +9 -9
- package/esm2020/queries/get-last-node.mjs +17 -17
- package/esm2020/queries/get-next-sibling-nodes.mjs +17 -17
- package/esm2020/queries/get-node.mjs +10 -10
- package/esm2020/queries/get-nodes-by-type.mjs +15 -15
- package/esm2020/queries/get-nodes.mjs +7 -7
- package/esm2020/queries/get-parent.mjs +12 -12
- package/esm2020/queries/get-plain-text.mjs +16 -16
- package/esm2020/queries/get-plugin-by-toolbar.mjs +12 -12
- package/esm2020/queries/get-point-before.mjs +61 -61
- package/esm2020/queries/get-point-from-location.mjs +15 -15
- package/esm2020/queries/get-previous-path.mjs +9 -9
- package/esm2020/queries/get-rang-from-block-start.mjs +16 -16
- package/esm2020/queries/get-range-before.mjs +17 -17
- package/esm2020/queries/get-selection-marks.mjs +18 -18
- package/esm2020/queries/get-selection-nodes-by-type.mjs +29 -29
- package/esm2020/queries/get-text.mjs +9 -9
- package/esm2020/queries/get-toolbar-disabled.mjs +12 -12
- package/esm2020/queries/index.mjs +58 -58
- package/esm2020/queries/is-across-blocks.mjs +7 -7
- package/esm2020/queries/is-ancestor-empty.mjs +6 -6
- package/esm2020/queries/is-ancestor.mjs +3 -3
- package/esm2020/queries/is-block-above-empty.mjs +11 -11
- package/esm2020/queries/is-block-active.mjs +7 -7
- package/esm2020/queries/is-block-card-cursor.mjs +4 -4
- package/esm2020/queries/is-block-text-empty-after-selection.mjs +31 -31
- package/esm2020/queries/is-collapsed.mjs +7 -7
- package/esm2020/queries/is-contain-nested-type.mjs +28 -28
- package/esm2020/queries/is-container-type.mjs +2 -2
- package/esm2020/queries/is-descendant.mjs +3 -3
- package/esm2020/queries/is-empty-content.mjs +14 -14
- package/esm2020/queries/is-empty-paragraph-by-path.mjs +7 -7
- package/esm2020/queries/is-empty-paragraph.mjs +11 -11
- package/esm2020/queries/is-first-child.mjs +5 -5
- package/esm2020/queries/is-include-types.mjs +11 -11
- package/esm2020/queries/is-node-type-in.mjs +9 -9
- package/esm2020/queries/is-node-type.mjs +15 -15
- package/esm2020/queries/is-paragraph.mjs +9 -9
- package/esm2020/queries/is-point-at-root.mjs +2 -2
- package/esm2020/queries/is-range-across-blocks.mjs +22 -22
- package/esm2020/queries/is-range-at-root.mjs +3 -3
- package/esm2020/queries/is-start.mjs +6 -6
- package/esm2020/queries/some-node.mjs +9 -9
- package/esm2020/services/color-select.service.mjs +49 -49
- package/esm2020/services/context.service.mjs +58 -58
- package/esm2020/services/table-contextmenu.service.mjs +189 -189
- package/esm2020/services/toolbar.service.mjs +47 -47
- package/esm2020/shortcuts/index.mjs +5 -5
- package/esm2020/shortcuts/mark.mjs +24 -24
- package/esm2020/transforms/apply-deep-to-nodes.mjs +21 -21
- package/esm2020/transforms/clear-marks.mjs +23 -23
- package/esm2020/transforms/close-conversion-hint.mjs +8 -8
- package/esm2020/transforms/delete-element.mjs +11 -11
- package/esm2020/transforms/handle-continual-delete-backward.mjs +17 -17
- package/esm2020/transforms/handle-continual-insert-break.mjs +19 -19
- package/esm2020/transforms/index.mjs +18 -18
- package/esm2020/transforms/insert-elements.mjs +33 -33
- package/esm2020/transforms/insert-paragraph.mjs +6 -6
- package/esm2020/transforms/merge-deep-to-nodes.mjs +8 -8
- package/esm2020/transforms/move-children.mjs +21 -21
- package/esm2020/transforms/on-keydown-reset-block-type.mjs +22 -22
- package/esm2020/transforms/set-end-selection.mjs +10 -10
- package/esm2020/transforms/set-marks.mjs +9 -9
- package/esm2020/transforms/set-node.mjs +5 -5
- package/esm2020/transforms/split-node.mjs +31 -31
- package/esm2020/transforms/un-hang-range.mjs +11 -11
- package/esm2020/transforms/un-wrap.mjs +11 -11
- package/esm2020/transforms/unwrap-nodes-by-type.mjs +14 -14
- package/esm2020/utils/auto-focus.mjs +13 -13
- package/esm2020/utils/auto-scroll-view.mjs +24 -24
- package/esm2020/utils/cast-array.mjs +7 -7
- package/esm2020/utils/common.mjs +2 -2
- package/esm2020/utils/create-empty-paragraph.mjs +14 -14
- package/esm2020/utils/data-transform.mjs +48 -48
- package/esm2020/utils/dom.mjs +46 -46
- package/esm2020/utils/editor-uuid.mjs +8 -8
- package/esm2020/utils/fragment.mjs +65 -65
- package/esm2020/utils/get-all-nodes-by-type.mjs +5 -0
- package/esm2020/utils/get-editable-element-height.mjs +6 -6
- package/esm2020/utils/get-toolbar-class.mjs +6 -6
- package/esm2020/utils/id-creator.mjs +11 -11
- package/esm2020/utils/index.mjs +13 -13
- package/esm2020/utils/is-clean-empty-paragraph.mjs +36 -36
- package/esm2020/utils/is-inline.mjs +8 -8
- package/esm2020/utils/lodash.mjs +2 -2
- package/esm2020/utils/match.mjs +32 -32
- package/esm2020/utils/merge-element-options.mjs +19 -19
- package/esm2020/utils/weak-maps.mjs +3 -3
- package/esm2020/worktile-theia.mjs +4 -4
- package/fesm2015/worktile-theia.mjs +13131 -13097
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +13150 -13120
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/interfaces/auto-format.d.ts +64 -64
- package/interfaces/editor.d.ts +146 -146
- package/interfaces/element.d.ts +9 -9
- package/interfaces/image.d.ts +25 -25
- package/interfaces/index.d.ts +8 -8
- package/interfaces/plugins/index.d.ts +4 -4
- package/interfaces/plugins/no-infer.d.ts +1 -1
- package/interfaces/plugins/plugin-key.d.ts +48 -48
- package/interfaces/plugins/plugins.d.ts +45 -45
- package/interfaces/plugins/with-override.d.ts +7 -7
- package/interfaces/reset-block-type-plugin-options.d.ts +23 -23
- package/interfaces/toolbar.d.ts +64 -64
- package/interfaces/upload.d.ts +11 -11
- package/interfaces/utility/index.d.ts +3 -3
- package/interfaces/utility/nested-structure-by-key.d.ts +3 -3
- package/interfaces/utility/override-by-key.d.ts +3 -3
- package/interfaces/utility/types.d.ts +1 -1
- package/interfaces/valid-children-types.d.ts +9 -9
- package/interfaces/view-base.d.ts +9 -9
- package/package.json +5 -4
- package/pipes.d.ts +16 -16
- package/plugins/align/align.editor.d.ts +7 -7
- package/plugins/align/align.plugin.d.ts +2 -2
- package/plugins/autoformat/autoformat.plugin.d.ts +6 -6
- package/plugins/autoformat/transforms/auto-format-block.d.ts +5 -5
- package/plugins/autoformat/transforms/auto-format-inline.d.ts +9 -9
- package/plugins/blockquote/blockquote.component.d.ts +11 -11
- package/plugins/blockquote/blockquote.editor.d.ts +4 -4
- package/plugins/blockquote/blockquote.plugin.d.ts +2 -2
- package/plugins/code/code.component.d.ts +65 -65
- package/plugins/code/code.editor.d.ts +8 -8
- package/plugins/code/code.plugin.d.ts +2 -2
- package/plugins/color/color.editor.d.ts +8 -8
- package/plugins/color/color.plugin.d.ts +1 -1
- package/plugins/color/toolbar-item.component.d.ts +16 -16
- package/plugins/common/auto-insert-data..d.ts +2 -2
- package/plugins/common/block-card.plugin.d.ts +2 -2
- package/plugins/common/get-fragment.plugin.d.ts +6 -6
- package/plugins/common/history.plugin.d.ts +9 -9
- package/plugins/common/move-selection.plugin.d.ts +2 -2
- package/plugins/common/remove-empty.plugin.d.ts +2 -2
- package/plugins/common/remove-void.plugin.d.ts +2 -2
- package/plugins/common/reset-type.plugin.d.ts +2 -2
- package/plugins/common/transforms.plugin.d.ts +8 -8
- package/plugins/deserializers/deserialize-html.plugin.d.ts +2 -2
- package/plugins/deserializers/deserialize-md.plugin.d.ts +2 -2
- package/plugins/font-size/font-size.editor.d.ts +10 -10
- package/plugins/heading/heading.editor.d.ts +9 -9
- package/plugins/heading/heading.plugin.d.ts +7 -7
- package/plugins/hr/hr.component.d.ts +12 -12
- package/plugins/hr/hr.editor.d.ts +4 -4
- package/plugins/hr/hr.plugin.d.ts +2 -2
- package/plugins/image/image.component.d.ts +77 -74
- package/plugins/image/image.editor.d.ts +12 -12
- package/plugins/image/image.plugin.d.ts +7 -7
- package/plugins/indent/indent.editor.d.ts +10 -10
- package/plugins/indent/indent.plugin.d.ts +8 -8
- package/plugins/indent/on-keydown-indent.d.ts +3 -3
- package/plugins/index.d.ts +1 -1
- package/plugins/inline-code/inline-code.component.d.ts +9 -9
- package/plugins/inline-code/inline-code.editor.d.ts +7 -7
- package/plugins/inline-code/inline-code.plugin.d.ts +2 -2
- package/plugins/link/edit/link-edit.component.d.ts +36 -36
- package/plugins/link/hover/link-hover.component.d.ts +15 -15
- package/plugins/link/link.component.d.ts +39 -39
- package/plugins/link/link.editor.d.ts +7 -7
- package/plugins/link/link.plugin.d.ts +2 -2
- package/plugins/link/link.types.d.ts +9 -9
- package/plugins/list/components/bulleted-list.component.d.ts +15 -15
- package/plugins/list/components/list-item.component.d.ts +20 -20
- package/plugins/list/components/numbered-list.component.d.ts +16 -16
- package/plugins/list/list.editor.d.ts +12 -12
- package/plugins/list/list.plugin.d.ts +3 -3
- package/plugins/list/normalizers/get-list-normalizer.d.ts +6 -6
- package/plugins/list/normalizers/normalize-list-item.d.ts +5 -5
- package/plugins/list/normalizers/normalize-no.d.ts +2 -2
- package/plugins/list/on-key-down-list.d.ts +2 -2
- package/plugins/list/queries/get-list-item-entry.d.ts +10 -10
- package/plugins/list/queries/get-list-item-sublist.d.ts +6 -6
- package/plugins/list/queries/get-list-types.d.ts +2 -2
- package/plugins/list/queries/get-start-list-item.d.ts +8 -8
- package/plugins/list/queries/has-list-in-list-item.d.ts +15 -15
- package/plugins/list/queries/is-in-list.d.ts +2 -2
- package/plugins/list/queries/is-list-nested.d.ts +5 -5
- package/plugins/list/queries/is-list.d.ts +2 -2
- package/plugins/list/queries/is-node-type-list.d.ts +2 -2
- package/plugins/list/queries/is-selection-at-list-item-start.d.ts +5 -5
- package/plugins/list/queries/is-selection-in-same-list-item.d.ts +5 -5
- package/plugins/list/queries/is-single-list-item.d.ts +5 -5
- package/plugins/list/transforms/insert-list-data.d.ts +12 -12
- package/plugins/list/transforms/insert-list-item.d.ts +5 -5
- package/plugins/list/transforms/move-list-item-down.d.ts +6 -6
- package/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.d.ts +20 -20
- package/plugins/list/transforms/move-list-item-sublist-items-to-list.d.ts +19 -19
- package/plugins/list/transforms/move-list-item-up.d.ts +10 -10
- package/plugins/list/transforms/unwrap-list.d.ts +2 -2
- package/plugins/list/types.d.ts +7 -7
- package/plugins/mark/mark.editor.d.ts +8 -8
- package/plugins/mark/mark.plugin.d.ts +3 -3
- package/plugins/node-id/node-id.plugin.d.ts +8 -8
- package/plugins/normalizers/insert-paragraph-nodes.d.ts +7 -7
- package/plugins/normalizers/remove-empty-nodes.d.ts +7 -7
- package/plugins/normalizers/trailing-node.plugin.d.ts +9 -9
- package/plugins/paint-format/paint-format.editor.d.ts +8 -8
- package/plugins/public-api.d.ts +15 -15
- package/plugins/quick-insert/components/quick-insert.component.d.ts +28 -28
- package/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.d.ts +28 -28
- package/plugins/quick-insert/quick-insert.editor.d.ts +7 -7
- package/plugins/quick-insert/quick-insert.plugin.d.ts +10 -10
- package/plugins/soft-break/soft-break.plugin.d.ts +5 -5
- package/plugins/soft-break/soft-break.types.d.ts +8 -8
- package/plugins/table/components/insert-mark/insert-mark.component.d.ts +24 -24
- package/plugins/table/components/row/row.component.d.ts +14 -14
- package/plugins/table/components/table.component.d.ts +79 -79
- package/plugins/table/components/td/td.component.d.ts +95 -95
- package/plugins/table/components/toolbar/table-options.component.d.ts +20 -20
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +38 -38
- package/plugins/table/table.editor.d.ts +25 -25
- package/plugins/table/table.plugin.d.ts +3 -3
- package/plugins/table/table.service.d.ts +30 -30
- package/plugins/table/table.store.d.ts +71 -71
- package/plugins/table/table.types.d.ts +67 -67
- package/plugins/table/toolbar-item.component.d.ts +17 -17
- package/plugins/table/transforms/clear-cell.d.ts +6 -6
- package/plugins/table/transforms/clear-table-node.d.ts +6 -6
- package/plugins/table/transforms/insert-column.d.ts +12 -12
- package/plugins/table/transforms/insert-row.d.ts +6 -6
- package/plugins/table/transforms/insert-table.d.ts +6 -6
- package/plugins/table/transforms/remove-column.d.ts +3 -3
- package/plugins/table/transforms/remove-row.d.ts +3 -3
- package/plugins/table/transforms/remove-table.d.ts +3 -3
- package/plugins/table/utils/add-columns.d.ts +2 -2
- package/plugins/table/utils/calc-anchor-position.d.ts +6 -6
- package/plugins/table/utils/calc-span.d.ts +11 -11
- package/plugins/table/utils/create-cell.d.ts +16 -16
- package/plugins/table/utils/create-row.d.ts +7 -7
- package/plugins/table/utils/create-table.d.ts +7 -7
- package/plugins/table/utils/get-base-height.d.ts +9 -9
- package/plugins/table/utils/get-select-cell-node.d.ts +7 -7
- package/plugins/table/utils/index.d.ts +7 -7
- package/plugins/table/utils/is-range-in-table.d.ts +6 -6
- package/plugins/table/utils/is-selection-in-table.d.ts +6 -6
- package/plugins/table/utils/is-virtual-key.d.ts +1 -1
- package/plugins/table/utils/merge-cell.d.ts +21 -21
- package/plugins/table/utils/next-path.d.ts +2 -2
- package/plugins/table/utils/normalize-table.d.ts +2 -2
- package/plugins/table/utils/remove-columns.d.ts +2 -2
- package/plugins/table/utils/set-menu-cell-invisibility.d.ts +3 -3
- package/plugins/table/utils/split-cell.d.ts +4 -4
- package/plugins/table/utils/table-position.d.ts +97 -97
- package/plugins/todo-item/todo-item.component.d.ts +21 -21
- package/plugins/todo-item/todo-item.editor.d.ts +5 -5
- package/plugins/todo-item/todo-item.plugin.d.ts +5 -5
- package/plugins/vertical-align/toolbar-item.component.d.ts +25 -25
- package/plugins/vertical-align/vertical-align.editor.d.ts +7 -7
- package/public-api.d.ts +20 -20
- package/queries/anchor-block-entry.d.ts +2 -2
- package/queries/anchor-block.d.ts +2 -2
- package/queries/anchor-inline-entry.d.ts +2 -2
- package/queries/find-descendant.d.ts +10 -10
- package/queries/find-node.d.ts +15 -15
- package/queries/find-path.d.ts +6 -6
- package/queries/get-above-by-type.d.ts +6 -6
- package/queries/get-above.d.ts +6 -6
- package/queries/get-anchor-block-entry.d.ts +2 -2
- package/queries/get-block-above.d.ts +7 -7
- package/queries/get-block-card-above.d.ts +7 -7
- package/queries/get-block-card-cursor.d.ts +2 -2
- package/queries/get-container-blocks.d.ts +2 -2
- package/queries/get-directly-parent.d.ts +2 -2
- package/queries/get-insert-elements-path.d.ts +7 -7
- package/queries/get-last-child-path.d.ts +6 -6
- package/queries/get-last-node.d.ts +2 -2
- package/queries/get-next-sibling-nodes.d.ts +7 -7
- package/queries/get-node.d.ts +2 -2
- package/queries/get-nodes-by-type.d.ts +6 -6
- package/queries/get-nodes.d.ts +4 -4
- package/queries/get-parent.d.ts +7 -7
- package/queries/get-plain-text.d.ts +6 -6
- package/queries/get-plugin-by-toolbar.d.ts +3 -3
- package/queries/get-point-before.d.ts +38 -38
- package/queries/get-point-from-location.d.ts +5 -5
- package/queries/get-previous-path.d.ts +2 -2
- package/queries/get-rang-from-block-start.d.ts +9 -9
- package/queries/get-range-before.d.ts +7 -7
- package/queries/get-selection-marks.d.ts +12 -12
- package/queries/get-selection-nodes-by-type.d.ts +3 -3
- package/queries/get-text.d.ts +6 -6
- package/queries/get-toolbar-disabled.d.ts +4 -4
- package/queries/index.d.ts +58 -58
- package/queries/is-across-blocks.d.ts +2 -2
- package/queries/is-ancestor-empty.d.ts +5 -5
- package/queries/is-ancestor.d.ts +2 -2
- package/queries/is-block-above-empty.d.ts +5 -5
- package/queries/is-block-active.d.ts +3 -3
- package/queries/is-block-card-cursor.d.ts +2 -2
- package/queries/is-block-text-empty-after-selection.d.ts +7 -7
- package/queries/is-collapsed.d.ts +6 -6
- package/queries/is-contain-nested-type.d.ts +2 -2
- package/queries/is-container-type.d.ts +2 -2
- package/queries/is-descendant.d.ts +2 -2
- package/queries/is-empty-content.d.ts +2 -2
- package/queries/is-empty-paragraph-by-path.d.ts +2 -2
- package/queries/is-empty-paragraph.d.ts +2 -2
- package/queries/is-first-child.d.ts +5 -5
- package/queries/is-include-types.d.ts +3 -3
- package/queries/is-node-type-in.d.ts +6 -6
- package/queries/is-node-type.d.ts +6 -6
- package/queries/is-paragraph.d.ts +2 -2
- package/queries/is-point-at-root.d.ts +2 -2
- package/queries/is-range-across-blocks.d.ts +8 -8
- package/queries/is-range-at-root.d.ts +2 -2
- package/queries/is-start.d.ts +5 -5
- package/queries/some-node.d.ts +7 -7
- package/services/color-select.service.d.ts +20 -20
- package/services/context.service.d.ts +49 -49
- package/services/table-contextmenu.service.d.ts +25 -25
- package/services/toolbar.service.d.ts +9 -9
- package/shortcuts/index.d.ts +2 -2
- package/shortcuts/mark.d.ts +2 -2
- package/transforms/apply-deep-to-nodes.d.ts +12 -12
- package/transforms/clear-marks.d.ts +2 -2
- package/transforms/close-conversion-hint.d.ts +2 -2
- package/transforms/delete-element.d.ts +2 -2
- package/transforms/handle-continual-delete-backward.d.ts +3 -3
- package/transforms/handle-continual-insert-break.d.ts +3 -3
- package/transforms/index.d.ts +18 -18
- package/transforms/insert-elements.d.ts +2 -2
- package/transforms/insert-paragraph.d.ts +2 -2
- package/transforms/merge-deep-to-nodes.d.ts +5 -5
- package/transforms/move-children.d.ts +24 -24
- package/transforms/on-keydown-reset-block-type.d.ts +3 -3
- package/transforms/set-end-selection.d.ts +2 -2
- package/transforms/set-marks.d.ts +12 -12
- package/transforms/set-node.d.ts +2 -2
- package/transforms/split-node.d.ts +3 -3
- package/transforms/un-hang-range.d.ts +10 -10
- package/transforms/un-wrap.d.ts +3 -3
- package/transforms/unwrap-nodes-by-type.d.ts +6 -6
- package/utils/auto-focus.d.ts +2 -2
- package/utils/auto-scroll-view.d.ts +6 -6
- package/utils/cast-array.d.ts +1 -1
- package/utils/common.d.ts +2 -2
- package/utils/create-empty-paragraph.d.ts +2 -2
- package/utils/data-transform.d.ts +6 -6
- package/utils/dom.d.ts +10 -10
- package/utils/editor-uuid.d.ts +3 -3
- package/utils/fragment.d.ts +10 -10
- package/utils/get-all-nodes-by-type.d.ts +3 -0
- package/utils/get-editable-element-height.d.ts +2 -2
- package/utils/get-toolbar-class.d.ts +2 -2
- package/utils/id-creator.d.ts +1 -1
- package/utils/index.d.ts +13 -13
- package/utils/is-clean-empty-paragraph.d.ts +9 -9
- package/utils/is-inline.d.ts +2 -2
- package/utils/lodash.d.ts +2 -2
- package/utils/match.d.ts +18 -18
- package/utils/merge-element-options.d.ts +2 -2
- package/utils/weak-maps.d.ts +5 -5
- package/worktile-theia.d.ts +5 -5
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export var PluginKeys;
|
|
2
|
-
(function (PluginKeys) {
|
|
3
|
-
PluginKeys["list"] = "list";
|
|
4
|
-
PluginKeys["numberedList"] = "numbered-list";
|
|
5
|
-
PluginKeys["bulletedList"] = "bulleted-list";
|
|
6
|
-
PluginKeys["checkItem"] = "check-item";
|
|
7
|
-
PluginKeys["link"] = "link";
|
|
8
|
-
PluginKeys["blockCard"] = "block-card";
|
|
9
|
-
PluginKeys["indent"] = "indent";
|
|
10
|
-
PluginKeys["table"] = "table";
|
|
11
|
-
PluginKeys["image"] = "image";
|
|
12
|
-
PluginKeys["code"] = "code";
|
|
13
|
-
PluginKeys["heading"] = "heading";
|
|
14
|
-
PluginKeys["blockquote"] = "block-quote";
|
|
15
|
-
PluginKeys["inlineCode"] = "inline-code";
|
|
16
|
-
PluginKeys["color"] = "select-color";
|
|
17
|
-
PluginKeys["fontSize"] = "font-size";
|
|
18
|
-
PluginKeys["mark"] = "mark";
|
|
19
|
-
PluginKeys["hr"] = "hr";
|
|
20
|
-
PluginKeys["align"] = "align";
|
|
21
|
-
PluginKeys["verticalAlign"] = "vertical-align";
|
|
22
|
-
PluginKeys["softBreak"] = "soft-break";
|
|
23
|
-
PluginKeys["nodeID"] = "node-id";
|
|
24
|
-
PluginKeys["resetType"] = "reset-type";
|
|
25
|
-
PluginKeys["removeVoid"] = "remove-void";
|
|
26
|
-
PluginKeys["removeEmpty"] = "remove-empty";
|
|
27
|
-
PluginKeys["theHistory"] = "the-history";
|
|
28
|
-
PluginKeys["autoInsertData"] = "auto-insert-data";
|
|
29
|
-
PluginKeys["autoFormat"] = "auto-format";
|
|
30
|
-
PluginKeys["transforms"] = "transforms";
|
|
31
|
-
PluginKeys["moveSelection"] = "move-selection";
|
|
32
|
-
PluginKeys["trailingNode"] = "trailing-node";
|
|
33
|
-
PluginKeys["insertParagraphNodes"] = "insert-paragraph-nodes";
|
|
34
|
-
PluginKeys["getFragment"] = "get-fragment";
|
|
35
|
-
PluginKeys["deserializeHtml"] = "deserialize-html";
|
|
36
|
-
PluginKeys["deserializeMd"] = "deserialize-md";
|
|
37
|
-
PluginKeys["quickInsert"] = "quick-insert";
|
|
38
|
-
PluginKeys["paintFormat"] = "paint-format";
|
|
39
|
-
})(PluginKeys || (PluginKeys = {}));
|
|
1
|
+
export var PluginKeys;
|
|
2
|
+
(function (PluginKeys) {
|
|
3
|
+
PluginKeys["list"] = "list";
|
|
4
|
+
PluginKeys["numberedList"] = "numbered-list";
|
|
5
|
+
PluginKeys["bulletedList"] = "bulleted-list";
|
|
6
|
+
PluginKeys["checkItem"] = "check-item";
|
|
7
|
+
PluginKeys["link"] = "link";
|
|
8
|
+
PluginKeys["blockCard"] = "block-card";
|
|
9
|
+
PluginKeys["indent"] = "indent";
|
|
10
|
+
PluginKeys["table"] = "table";
|
|
11
|
+
PluginKeys["image"] = "image";
|
|
12
|
+
PluginKeys["code"] = "code";
|
|
13
|
+
PluginKeys["heading"] = "heading";
|
|
14
|
+
PluginKeys["blockquote"] = "block-quote";
|
|
15
|
+
PluginKeys["inlineCode"] = "inline-code";
|
|
16
|
+
PluginKeys["color"] = "select-color";
|
|
17
|
+
PluginKeys["fontSize"] = "font-size";
|
|
18
|
+
PluginKeys["mark"] = "mark";
|
|
19
|
+
PluginKeys["hr"] = "hr";
|
|
20
|
+
PluginKeys["align"] = "align";
|
|
21
|
+
PluginKeys["verticalAlign"] = "vertical-align";
|
|
22
|
+
PluginKeys["softBreak"] = "soft-break";
|
|
23
|
+
PluginKeys["nodeID"] = "node-id";
|
|
24
|
+
PluginKeys["resetType"] = "reset-type";
|
|
25
|
+
PluginKeys["removeVoid"] = "remove-void";
|
|
26
|
+
PluginKeys["removeEmpty"] = "remove-empty";
|
|
27
|
+
PluginKeys["theHistory"] = "the-history";
|
|
28
|
+
PluginKeys["autoInsertData"] = "auto-insert-data";
|
|
29
|
+
PluginKeys["autoFormat"] = "auto-format";
|
|
30
|
+
PluginKeys["transforms"] = "transforms";
|
|
31
|
+
PluginKeys["moveSelection"] = "move-selection";
|
|
32
|
+
PluginKeys["trailingNode"] = "trailing-node";
|
|
33
|
+
PluginKeys["insertParagraphNodes"] = "insert-paragraph-nodes";
|
|
34
|
+
PluginKeys["getFragment"] = "get-fragment";
|
|
35
|
+
PluginKeys["deserializeHtml"] = "deserialize-html";
|
|
36
|
+
PluginKeys["deserializeMd"] = "deserialize-md";
|
|
37
|
+
PluginKeys["quickInsert"] = "quick-insert";
|
|
38
|
+
PluginKeys["paintFormat"] = "paint-format";
|
|
39
|
+
})(PluginKeys || (PluginKeys = {}));
|
|
40
40
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9pbnRlcmZhY2VzL3BsdWdpbnMvcGx1Z2luLWtleS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxVQXFDWDtBQXJDRCxXQUFZLFVBQVU7SUFDbEIsMkJBQWEsQ0FBQTtJQUNiLDRDQUE4QixDQUFBO0lBQzlCLDRDQUE4QixDQUFBO0lBQzlCLHNDQUF3QixDQUFBO0lBQ3hCLDJCQUFhLENBQUE7SUFDYixzQ0FBd0IsQ0FBQTtJQUN4QiwrQkFBaUIsQ0FBQTtJQUNqQiw2QkFBZSxDQUFBO0lBQ2YsNkJBQWUsQ0FBQTtJQUNmLDJCQUFhLENBQUE7SUFDYixpQ0FBbUIsQ0FBQTtJQUNuQix3Q0FBMEIsQ0FBQTtJQUMxQix3Q0FBMEIsQ0FBQTtJQUMxQixvQ0FBc0IsQ0FBQTtJQUN0QixvQ0FBc0Is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IEVkaXRvciwgcGx1Z2luOiBXaXRoVGhlUGx1Z2luPFQsIFA+KSA9PiBFZGl0b3I7XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzZXQtYmxvY2stdHlwZS1wbHVnaW4tb3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9pbnRlcmZhY2VzL3Jlc2V0LWJsb2NrLXR5cGUtcGx1Z2luLW9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVkaXRvciB9IGZyb20gJ3NsYXRlJztcblxuZXhwb3J0IGludGVyZmFjZSBSZXNldEJsb2NrVHlwZVBsdWdpblJ1bGUge1xuICAgIC8qKlxuICAgICAqIE5vZGUgdHlwZXMgd2hlcmUgdGhlIHJ1bGUgYXBwbGllcy5cbiAgICAgKi9cbiAgICB0eXBlczogc3RyaW5nW107XG5cbiAgICBob3RrZXk/OiBzdHJpbmcgfCBzdHJpbmdbXTtcblxuICAgIC8qKlxuICAgICAqIEFkZGl0aW9uYWwgY29uZGl0aW9uIHRvIHRoZSBydWxlLlxuICAgICAqL1xuICAgIHByZWRpY2F0ZTogKGVkaXRvcjogRWRpdG9yKSA9PiBib29sZWFuO1xuXG4gICAgLyoqXG4gICAgICogU2V0IG5vZGUgdG8gdGhpcyBkZWZhdWx0IHR5cGUgd2hlbiByZXNldHRpbmcuXG4gICAgICovXG4gICAgZGVmYXVsdFR5cGU/OiBzdHJpbmc7XG5cbiAgICAvKipcbiAgICAgKiBDYWxsYmFjayBjYWxsZWQgd2hlbiByZXNldHRpbmcuXG4gICAgICovXG4gICAgb25SZXNldD86IChlZGl0b3I6IEVkaXRvcikgPT4gdm9pZDtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSZXNldEJsb2NrVHlwZVBsdWdpbk9wdGlvbnMge1xuICAgIHJ1bGVzOiBSZXNldEJsb2NrVHlwZVBsdWdpblJ1bGVbXTtcbn1cbiJdfQ==
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export var ToolbarItemType;
|
|
2
|
-
(function (ToolbarItemType) {
|
|
3
|
-
ToolbarItemType["default"] = "default";
|
|
4
|
-
ToolbarItemType["dropdown"] = "dropdown";
|
|
5
|
-
})(ToolbarItemType || (ToolbarItemType = {}));
|
|
6
|
-
export var ToolbarAlignment;
|
|
7
|
-
(function (ToolbarAlignment) {
|
|
8
|
-
ToolbarAlignment["left"] = "start";
|
|
9
|
-
ToolbarAlignment["center"] = "center";
|
|
10
|
-
ToolbarAlignment["right"] = "end";
|
|
11
|
-
})(ToolbarAlignment || (ToolbarAlignment = {}));
|
|
1
|
+
export var ToolbarItemType;
|
|
2
|
+
(function (ToolbarItemType) {
|
|
3
|
+
ToolbarItemType["default"] = "default";
|
|
4
|
+
ToolbarItemType["dropdown"] = "dropdown";
|
|
5
|
+
})(ToolbarItemType || (ToolbarItemType = {}));
|
|
6
|
+
export var ToolbarAlignment;
|
|
7
|
+
(function (ToolbarAlignment) {
|
|
8
|
+
ToolbarAlignment["left"] = "start";
|
|
9
|
+
ToolbarAlignment["center"] = "center";
|
|
10
|
+
ToolbarAlignment["right"] = "end";
|
|
11
|
+
})(ToolbarAlignment || (ToolbarAlignment = {}));
|
|
12
12
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9pbnRlcmZhY2VzL3Rvb2xiYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsTUF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2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2ludGVyZmFjZXMvdXBsb2FkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUaHlVcGxvYWRSZXNwb25zZSB9IGZyb20gJ25neC10ZXRoeXMvdXBsb2FkJztcblxuZXhwb3J0IGludGVyZmFjZSBVcGxvYWRGaWxlRW50aXR5IHtcbiAgICB0aHVtYlVybDogc3RyaW5nO1xuICAgIG9yaWdpblVybDogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEZpbGVVcGxvYWRpbmdJdGVtIHtcbiAgICBzY29wZUlkPzogc3RyaW5nO1xuICAgIGZpbGU6IEZpbGU7XG4gICAgc3RhcnRlZD86IGJvb2xlYW47XG4gICAgcmVzdWx0PzogVGh5VXBsb2FkUmVzcG9uc2U7XG59XG4iXX0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './override-by-key';
|
|
2
|
-
export * from './nested-structure-by-key';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './override-by-key';
|
|
2
|
+
export * from './nested-structure-by-key';
|
|
3
|
+
export * from './types';
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvaW50ZXJmYWNlcy91dGlsaXR5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vb3ZlcnJpZGUtYnkta2V5JztcbmV4cG9ydCAqIGZyb20gJy4vbmVzdGVkLXN0cnVjdHVyZS1ieS1rZXknO1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcyc7XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmVzdGVkLXN0cnVjdHVyZS1ieS1rZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvaW50ZXJmYWNlcy91dGlsaXR5L25lc3RlZC1zdHJ1Y3R1cmUtYnkta2V5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDdXN0b21FbGVtZW50S2luZHMgfSBmcm9tICcuLi8uLi9jdXN0b20tdHlwZXMnO1xuaW1wb3J0IHsgUGx1Z2luS2V5IH0gZnJvbSAnLi4vcGx1Z2lucyc7XG5cbmV4cG9ydCB0eXBlIE5lc3RlZFN0cnVjdHVyZUJ5S2V5ID0gUmVjb3JkPFBsdWdpbktleSwgQ3VzdG9tRWxlbWVudEtpbmRzPjtcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcnJpZGUtYnkta2V5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2ludGVyZmFjZXMvdXRpbGl0eS9vdmVycmlkZS1ieS1rZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBsdWdpbktleSB9IGZyb20gJy4uL3BsdWdpbnMvcGx1Z2luLWtleSc7XG5pbXBvcnQgeyBUaGVQbHVnaW4gfSBmcm9tICcuLi9wbHVnaW5zL3BsdWdpbnMnO1xuXG5leHBvcnQgdHlwZSBPdmVycmlkZUJ5S2V5ID0gUmVjb3JkPFBsdWdpbktleSwgVGhlUGx1Z2luPjtcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvaW50ZXJmYWNlcy91dGlsaXR5L3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBXaXRoUmVxdWlyZWQ8VCwgSyBleHRlbmRzIGtleW9mIFQ+ID0gT21pdDxULCBLPiAmIFJlcXVpcmVkPFBpY2s8VCwgSz4+O1xuIl19
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ElementKinds, HEADING_TYPES } from '../constants/node-types';
|
|
2
|
-
export const inValidTypes = [
|
|
3
|
-
ElementKinds.table,
|
|
4
|
-
ElementKinds.tableCell,
|
|
5
|
-
ElementKinds.blockquote,
|
|
6
|
-
ElementKinds.hr,
|
|
7
|
-
ElementKinds.code
|
|
8
|
-
];
|
|
9
|
-
export const DefaultElementOptions = [
|
|
10
|
-
{
|
|
11
|
-
type: ElementKinds.bulletedList,
|
|
12
|
-
inValidChildrenTypes: [...inValidTypes, ...HEADING_TYPES]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
type: ElementKinds.numberedList,
|
|
16
|
-
inValidChildrenTypes: [...inValidTypes, ...HEADING_TYPES]
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
type: ElementKinds.listItem,
|
|
20
|
-
inValidChildrenTypes: [...inValidTypes, ...HEADING_TYPES]
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
type: ElementKinds.blockquote,
|
|
24
|
-
inValidChildrenTypes: inValidTypes
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: ElementKinds.table,
|
|
28
|
-
inValidChildrenTypes: [ElementKinds.table]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: ElementKinds.tableCell,
|
|
32
|
-
isSecondaryContainer: true,
|
|
33
|
-
inValidChildrenTypes: [ElementKinds.table, ElementKinds.tableCell]
|
|
34
|
-
}
|
|
35
|
-
];
|
|
1
|
+
import { ElementKinds, HEADING_TYPES } from '../constants/node-types';
|
|
2
|
+
export const inValidTypes = [
|
|
3
|
+
ElementKinds.table,
|
|
4
|
+
ElementKinds.tableCell,
|
|
5
|
+
ElementKinds.blockquote,
|
|
6
|
+
ElementKinds.hr,
|
|
7
|
+
ElementKinds.code
|
|
8
|
+
];
|
|
9
|
+
export const DefaultElementOptions = [
|
|
10
|
+
{
|
|
11
|
+
type: ElementKinds.bulletedList,
|
|
12
|
+
inValidChildrenTypes: [...inValidTypes, ...HEADING_TYPES]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: ElementKinds.numberedList,
|
|
16
|
+
inValidChildrenTypes: [...inValidTypes, ...HEADING_TYPES]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
type: ElementKinds.listItem,
|
|
20
|
+
inValidChildrenTypes: [...inValidTypes, ...HEADING_TYPES]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: ElementKinds.blockquote,
|
|
24
|
+
inValidChildrenTypes: inValidTypes
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: ElementKinds.table,
|
|
28
|
+
inValidChildrenTypes: [ElementKinds.table]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: ElementKinds.tableCell,
|
|
32
|
+
isSecondaryContainer: true,
|
|
33
|
+
inValidChildrenTypes: [ElementKinds.table, ElementKinds.tableCell]
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
36
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWQtY2hpbGRyZW4tdHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvaW50ZXJmYWNlcy92YWxpZC1jaGlsZHJlbi10eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLGFBQWEsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBU3RFLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBeUI7SUFDOUMsWUFBWSxDQUFDLEtBQUs7SUFDbEIsWUFBWSxDQUFDLFNBQVM7SUFDdEIsWUFBWSxDQUFDLFVBQVU7SUFDdkIsWUFBWSxDQUFDLEVBQUU7SUFDZixZQUFZLENBQUMsSUFBSTtDQUNwQixDQUFDO0FBRUYsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQXlCO0lBQ3ZEO1FBQ0ksSUFBSSxFQUFFLFlBQVksQ0FBQyxZQUFZO1FBQy9CLG9CQUFvQixFQUFFLENBQUMsR0FBRyxZQUFZLEVBQUUsR0FBRyxhQUFhLENBQUM7S0FDNUQ7SUFDRDtRQUNJLElBQUksRUFBRSxZQUFZLENBQUMsWUFBWTtRQUMvQixvQkFBb0IsRUFBRSxDQUFDLEdBQUcsWUFBWSxFQUFFLEdBQUcsYUFBYSxDQUFDO0tBQzVEO0lBQ0Q7UUFDSSxJQUFJLEVBQUUsWUFBWSxDQUFDLFFBQVE7UUFDM0Isb0JBQW9CLEVBQUUsQ0FBQyxHQUFHLFlBQVksRUFBRSxHQUFHLGFBQWEs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
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { BaseElementComponent } from 'slate-angular';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TheBaseElementComponent extends BaseElementComponent {
|
|
5
|
-
ngOnInit() {
|
|
6
|
-
this.context.attributes['data-slate-key'] = this.context.element.key;
|
|
7
|
-
super.ngOnInit();
|
|
8
|
-
const blockClass = this.editor.isInline(this.element) ? 'slate-inline-block' : 'slate-block';
|
|
9
|
-
this.nativeElement.classList.add(`slate-element-${this.element.type}`, blockClass);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
TheBaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: TheBaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
TheBaseElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: TheBaseElementComponent, selector: "TheBaseElementComponent", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: TheBaseElementComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{
|
|
17
|
-
selector: 'TheBaseElementComponent',
|
|
18
|
-
template: ''
|
|
19
|
-
}]
|
|
20
|
-
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { BaseElementComponent } from 'slate-angular';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class TheBaseElementComponent extends BaseElementComponent {
|
|
5
|
+
ngOnInit() {
|
|
6
|
+
this.context.attributes['data-slate-key'] = this.context.element.key;
|
|
7
|
+
super.ngOnInit();
|
|
8
|
+
const blockClass = this.editor.isInline(this.element) ? 'slate-inline-block' : 'slate-block';
|
|
9
|
+
this.nativeElement.classList.add(`slate-element-${this.element.type}`, blockClass);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
TheBaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: TheBaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
TheBaseElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: TheBaseElementComponent, selector: "TheBaseElementComponent", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: TheBaseElementComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: 'TheBaseElementComponent',
|
|
18
|
+
template: ''
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy1iYXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2ludGVyZmFjZXMvdmlldy1iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFpQixvQkFBb0IsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPcEUsTUFBTSxPQUFPLHVCQUNULFNBQVEsb0JBQTBCO0lBR2xDLFFBQVE7UUFDSixJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxnQkFBZ0IsQ0FBQyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLEdBQWEsQ0FBQztRQUMvRSxLQUFLLENBQUMsUUFBUSxFQUFFLENBQUM7UUFDakIsTUFBTSxVQUFVLEdBQUcsSUF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4dC5hdHRyaWJ1dGVzWydkYXRhLXNsYXRlLWtleSddID0gdGhpcy5jb250ZXh0LmVsZW1lbnQua2V5IGFzIHN0cmluZztcbiAgICAgICAgc3VwZXIubmdPbkluaXQoKTtcbiAgICAgICAgY29uc3QgYmxvY2tDbGFzcyA9IHRoaXMuZWRpdG9yLmlzSW5saW5lKHRoaXMuZWxlbWVudCkgPyAnc2xhdGUtaW5saW5lLWJsb2NrJyA6ICdzbGF0ZS1ibG9jayc7XG4gICAgICAgIHRoaXMubmF0aXZlRWxlbWVudC5jbGFzc0xpc3QuYWRkKGBzbGF0ZS1lbGVtZW50LSR7dGhpcy5lbGVtZW50LnR5cGV9YCwgYmxvY2tDbGFzcyk7XG4gICAgfVxufVxuIl19
|
package/esm2020/pipes.mjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { Alignment } from './constants/node-types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class ElementStylePipe {
|
|
5
|
-
transform(element, align) {
|
|
6
|
-
const style = {};
|
|
7
|
-
if (element.align || align) {
|
|
8
|
-
style.textAlign = element.align || align || Alignment.left;
|
|
9
|
-
}
|
|
10
|
-
if (element.textIndent) {
|
|
11
|
-
style.textIndent = element.textIndent + 'em';
|
|
12
|
-
}
|
|
13
|
-
return style;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
ElementStylePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementStylePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
-
ElementStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementStylePipe, name: "elementStyle" });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementStylePipe, decorators: [{
|
|
19
|
-
type: Pipe,
|
|
20
|
-
args: [{
|
|
21
|
-
name: 'elementStyle'
|
|
22
|
-
}]
|
|
23
|
-
}] });
|
|
24
|
-
export class ElementClassPipe {
|
|
25
|
-
transform(element) {
|
|
26
|
-
let classStr = '';
|
|
27
|
-
const prefix = 'indent';
|
|
28
|
-
if (element.textIndent) {
|
|
29
|
-
classStr += `${prefix}-${element.textIndent}`;
|
|
30
|
-
}
|
|
31
|
-
return classStr;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
ElementClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
35
|
-
ElementClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementClassPipe, name: "elementClass" });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementClassPipe, decorators: [{
|
|
37
|
-
type: Pipe,
|
|
38
|
-
args: [{
|
|
39
|
-
name: 'elementClass'
|
|
40
|
-
}]
|
|
41
|
-
}] });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { Alignment } from './constants/node-types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ElementStylePipe {
|
|
5
|
+
transform(element, align) {
|
|
6
|
+
const style = {};
|
|
7
|
+
if (element.align || align) {
|
|
8
|
+
style.textAlign = element.align || align || Alignment.left;
|
|
9
|
+
}
|
|
10
|
+
if (element.textIndent) {
|
|
11
|
+
style.textIndent = element.textIndent + 'em';
|
|
12
|
+
}
|
|
13
|
+
return style;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
ElementStylePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementStylePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
+
ElementStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementStylePipe, name: "elementStyle" });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementStylePipe, decorators: [{
|
|
19
|
+
type: Pipe,
|
|
20
|
+
args: [{
|
|
21
|
+
name: 'elementStyle'
|
|
22
|
+
}]
|
|
23
|
+
}] });
|
|
24
|
+
export class ElementClassPipe {
|
|
25
|
+
transform(element) {
|
|
26
|
+
let classStr = '';
|
|
27
|
+
const prefix = 'indent';
|
|
28
|
+
if (element.textIndent) {
|
|
29
|
+
classStr += `${prefix}-${element.textIndent}`;
|
|
30
|
+
}
|
|
31
|
+
return classStr;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
ElementClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
35
|
+
ElementClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementClassPipe, name: "elementClass" });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ElementClassPipe, decorators: [{
|
|
37
|
+
type: Pipe,
|
|
38
|
+
args: [{
|
|
39
|
+
name: 'elementClass'
|
|
40
|
+
}]
|
|
41
|
+
}] });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wYWNrYWdlcy9zcmMvcGlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQU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GxldCBjbGFzc1N0ciA9ICcnO1xuICAgICAgICBjb25zdCBwcmVmaXggPSAnaW5kZW50JztcbiAgICAgICAgaWYgKGVsZW1lbnQudGV4dEluZGVudCkge1xuICAgICAgICAgICAgY2xhc3NTdHIgKz0gYCR7cHJlZml4fS0ke2VsZW1lbnQudGV4dEluZGVudH1gO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjbGFzc1N0cjtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { Transforms } from 'slate';
|
|
2
|
-
import { Alignment, ALIGN_BLOCK_TYPES, ElementKinds } from '../../constants';
|
|
3
|
-
import { TableEditor } from '../table/table.editor';
|
|
4
|
-
import { TheContextService } from '../../services/context.service';
|
|
5
|
-
import * as TheQueries from '../../queries';
|
|
6
|
-
import { PluginKeys } from '../../interfaces';
|
|
7
|
-
export const AlignEditor = {
|
|
8
|
-
isActive(editor, alignment) {
|
|
9
|
-
if (!editor?.selection) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const tableCellAlign = TableEditor.isAlignActive(editor, alignment);
|
|
13
|
-
if (tableCellAlign !== null) {
|
|
14
|
-
return tableCellAlign;
|
|
15
|
-
}
|
|
16
|
-
const blockElement = TheQueries.anchorBlock(editor);
|
|
17
|
-
if (blockElement) {
|
|
18
|
-
const { align } = blockElement;
|
|
19
|
-
if (!align && alignment === Alignment.left) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
return align === alignment;
|
|
23
|
-
}
|
|
24
|
-
if (alignment === Alignment.left) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
return false;
|
|
28
|
-
},
|
|
29
|
-
isDisabled(editor) {
|
|
30
|
-
const contextService = editor?.injector?.get(TheContextService);
|
|
31
|
-
const { theOptions: { richMedia } } = contextService.getOptions();
|
|
32
|
-
return TheQueries.getToolbarItemDisabled(editor, PluginKeys.align, richMedia ? [ElementKinds.image] : []);
|
|
33
|
-
},
|
|
34
|
-
setAlign(editor, alignment) {
|
|
35
|
-
if (TableEditor.setAlign(editor, alignment)) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const props = {
|
|
39
|
-
align: alignment !== Alignment.left ? alignment : null
|
|
40
|
-
};
|
|
41
|
-
Transforms.setNodes(editor, props, {
|
|
42
|
-
at: editor.selection,
|
|
43
|
-
match: (n) => ALIGN_BLOCK_TYPES.includes(n.type)
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
1
|
+
import { Transforms } from 'slate';
|
|
2
|
+
import { Alignment, ALIGN_BLOCK_TYPES, ElementKinds } from '../../constants';
|
|
3
|
+
import { TableEditor } from '../table/table.editor';
|
|
4
|
+
import { TheContextService } from '../../services/context.service';
|
|
5
|
+
import * as TheQueries from '../../queries';
|
|
6
|
+
import { PluginKeys } from '../../interfaces';
|
|
7
|
+
export const AlignEditor = {
|
|
8
|
+
isActive(editor, alignment) {
|
|
9
|
+
if (!editor?.selection) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const tableCellAlign = TableEditor.isAlignActive(editor, alignment);
|
|
13
|
+
if (tableCellAlign !== null) {
|
|
14
|
+
return tableCellAlign;
|
|
15
|
+
}
|
|
16
|
+
const blockElement = TheQueries.anchorBlock(editor);
|
|
17
|
+
if (blockElement) {
|
|
18
|
+
const { align } = blockElement;
|
|
19
|
+
if (!align && alignment === Alignment.left) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
return align === alignment;
|
|
23
|
+
}
|
|
24
|
+
if (alignment === Alignment.left) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
},
|
|
29
|
+
isDisabled(editor) {
|
|
30
|
+
const contextService = editor?.injector?.get(TheContextService);
|
|
31
|
+
const { theOptions: { richMedia } } = contextService.getOptions();
|
|
32
|
+
return TheQueries.getToolbarItemDisabled(editor, PluginKeys.align, richMedia ? [ElementKinds.image] : []);
|
|
33
|
+
},
|
|
34
|
+
setAlign(editor, alignment) {
|
|
35
|
+
if (TableEditor.setAlign(editor, alignment)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const props = {
|
|
39
|
+
align: alignment !== Alignment.left ? alignment : null
|
|
40
|
+
};
|
|
41
|
+
Transforms.setNodes(editor, props, {
|
|
42
|
+
at: editor.selection,
|
|
43
|
+
match: (n) => ALIGN_BLOCK_TYPES.includes(n.type)
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
47
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxpZ24uZWRpdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL3BsdWdpbnMvYWxpZ24vYWxpZ24uZWRpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBVSxVQUFVLEVBQVcsTUFBTSxPQUFPLENBQUM7QUFDcEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM3RSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDbkUsT0FBTyxLQUFLLFVBQVUsTUFBTSxlQUFlLENBQUM7QUFDNUMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRTlDLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRztJQUN2QixRQUFRLENBQUMsTUFBYyxFQUFFLFNBQW9CO1FBQ3pDLElBQUksQ0FBQyxNQUFNLEVBQUUsU0FBUyxFQUFFO1lBQ3BCLE9BQU87U0FDVjtRQUNELE1BQU0sY0FB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