@worktile/theia 3.0.8 → 3.0.9
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/bundles/worktile-theia.umd.js +14357 -14343
- package/bundles/worktile-theia.umd.js.map +1 -1
- 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 +65 -65
- package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +33 -33
- package/components/toolbar-dropdown/toolbar-dropdown.component.scss +0 -1
- 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 +18 -18
- 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 +98 -98
- package/esm2015/components/color-select/color-select.component.js +112 -112
- package/esm2015/components/column-resize/column-resize-notifier.js +31 -31
- package/esm2015/components/column-resize/column-resize.directive.js +98 -98
- package/esm2015/components/column-resize/column-resize.module.js +34 -34
- package/esm2015/components/column-resize/event-dispatcher.js +55 -55
- package/esm2015/components/column-resize/overlay-handle.component.js +139 -139
- package/esm2015/components/column-resize/resize-ref.js +25 -25
- package/esm2015/components/column-resize/resizing.store.js +154 -154
- package/esm2015/components/column-resize/selectors.js +4 -4
- package/esm2015/components/contextmenu/contextmenu.component.js +64 -64
- package/esm2015/components/conversion-hint/conversion-hint.component.js +59 -59
- package/esm2015/components/element/element.component.js +23 -23
- package/esm2015/components/inline-toolbar/inline-toolbar.component.js +126 -126
- package/esm2015/components/nav-split-line/nav-split-line.component.js +36 -36
- package/esm2015/components/table-select/table-select.component.js +53 -53
- package/esm2015/components/template/template.component.js +66 -66
- package/esm2015/components/text/text.component.js +57 -57
- package/esm2015/components/toolbar/toolbar.component.js +250 -250
- package/esm2015/components/toolbar-dropdown/toolbar-dropdown.component.js +132 -132
- package/esm2015/components/toolbar-group/toolbar-group.component.js +116 -116
- package/esm2015/components/toolbar-item/toolbar-item.component.js +64 -64
- package/esm2015/constants/auto-format-rules.js +166 -166
- package/esm2015/constants/code.js +88 -88
- package/esm2015/constants/color-select.js +61 -61
- package/esm2015/constants/default.js +9 -9
- package/esm2015/constants/error.js +7 -7
- package/esm2015/constants/index.js +5 -5
- package/esm2015/constants/node-types.js +132 -132
- package/esm2015/constants/selector.js +3 -3
- package/esm2015/constants/toolbar.js +69 -69
- package/esm2015/core/create-plugin.js +4 -4
- package/esm2015/core/create-toolbar.js +56 -56
- package/esm2015/core/index.js +4 -4
- package/esm2015/core/toolbar-item/base-toolbar-item.js +91 -91
- package/esm2015/core/utils/combine-plugins.js +9 -9
- package/esm2015/core/utils/flatten-deep-plugins.js +18 -18
- package/esm2015/core/utils/get-plugin-options.js +2 -2
- package/esm2015/core/utils/get-plugin.js +1 -1
- package/esm2015/core/utils/get-plugins.js +4 -4
- package/esm2015/core/utils/index.js +10 -10
- package/esm2015/core/utils/merge-array.js +17 -17
- package/esm2015/core/utils/merge-deep-plugins.js +13 -13
- package/esm2015/core/utils/merge-options.js +19 -19
- package/esm2015/core/utils/nested-structure-by-key.js +10 -10
- package/esm2015/core/utils/plugins-by-key.js +9 -9
- package/esm2015/core/with-theia.js +22 -22
- package/esm2015/custom-types.js +1 -1
- package/esm2015/editor.component.js +439 -439
- package/esm2015/editor.module.js +201 -201
- package/esm2015/interfaces/auto-format.js +1 -1
- package/esm2015/interfaces/editor.js +22 -22
- package/esm2015/interfaces/element.js +1 -1
- package/esm2015/interfaces/image.js +2 -2
- package/esm2015/interfaces/index.js +8 -8
- package/esm2015/interfaces/plugins/index.js +4 -4
- package/esm2015/interfaces/plugins/no-infer.js +1 -1
- package/esm2015/interfaces/plugins/plugin-key.js +39 -39
- package/esm2015/interfaces/plugins/plugins.js +1 -1
- package/esm2015/interfaces/plugins/with-override.js +1 -1
- package/esm2015/interfaces/reset-block-type-plugin-options.js +2 -2
- package/esm2015/interfaces/toolbar.js +11 -11
- package/esm2015/interfaces/upload.js +2 -2
- package/esm2015/interfaces/utility/index.js +3 -3
- package/esm2015/interfaces/utility/nested-structure-by-key.js +1 -1
- package/esm2015/interfaces/utility/override-by-key.js +1 -1
- package/esm2015/interfaces/utility/types.js +1 -1
- package/esm2015/interfaces/valid-children-types.js +35 -35
- package/esm2015/interfaces/view-base.js +21 -21
- package/esm2015/pipes.js +42 -42
- package/esm2015/plugins/align/align.editor.js +47 -47
- package/esm2015/plugins/align/align.plugin.js +63 -63
- package/esm2015/plugins/autoformat/autoformat.plugin.js +109 -109
- package/esm2015/plugins/autoformat/transforms/auto-format-block.js +14 -14
- package/esm2015/plugins/autoformat/transforms/auto-format-inline.js +77 -77
- package/esm2015/plugins/blockquote/blockquote.component.js +21 -21
- package/esm2015/plugins/blockquote/blockquote.editor.js +20 -20
- package/esm2015/plugins/blockquote/blockquote.plugin.js +70 -70
- package/esm2015/plugins/code/code.component.js +244 -244
- package/esm2015/plugins/code/code.editor.js +47 -47
- package/esm2015/plugins/code/code.plugin.js +41 -41
- package/esm2015/plugins/color/color.editor.js +44 -44
- package/esm2015/plugins/color/color.plugin.js +27 -27
- package/esm2015/plugins/color/toolbar-item.component.js +79 -79
- package/esm2015/plugins/common/auto-insert-data..js +77 -77
- package/esm2015/plugins/common/block-card.plugin.js +286 -286
- package/esm2015/plugins/common/get-fragment.plugin.js +24 -24
- package/esm2015/plugins/common/history.plugin.js +30 -30
- package/esm2015/plugins/common/move-selection.plugin.js +89 -89
- package/esm2015/plugins/common/remove-empty.plugin.js +59 -59
- package/esm2015/plugins/common/remove-void.plugin.js +56 -56
- package/esm2015/plugins/common/reset-type.plugin.js +34 -34
- package/esm2015/plugins/common/transforms.plugin.js +17 -17
- package/esm2015/plugins/deserializers/deserialize-html.plugin.js +38 -38
- package/esm2015/plugins/deserializers/deserialize-md.plugin.js +121 -121
- package/esm2015/plugins/font-size/font-size.editor.js +97 -97
- package/esm2015/plugins/heading/heading.editor.js +53 -53
- package/esm2015/plugins/heading/heading.plugin.js +84 -84
- package/esm2015/plugins/hr/hr.component.js +40 -40
- package/esm2015/plugins/hr/hr.editor.js +7 -7
- package/esm2015/plugins/hr/hr.plugin.js +41 -41
- package/esm2015/plugins/image/image.component.js +369 -369
- package/esm2015/plugins/image/image.editor.js +57 -57
- package/esm2015/plugins/image/image.plugin.js +57 -57
- package/esm2015/plugins/indent/indent.editor.js +72 -72
- package/esm2015/plugins/indent/indent.plugin.js +59 -59
- package/esm2015/plugins/indent/on-keydown-indent.js +53 -53
- package/esm2015/plugins/index.js +70 -70
- package/esm2015/plugins/inline-code/inline-code.component.js +21 -21
- package/esm2015/plugins/inline-code/inline-code.editor.js +48 -48
- package/esm2015/plugins/inline-code/inline-code.plugin.js +65 -65
- package/esm2015/plugins/link/edit/link-edit.component.js +108 -108
- package/esm2015/plugins/link/hover/link-hover.component.js +39 -39
- package/esm2015/plugins/link/link.component.js +162 -162
- package/esm2015/plugins/link/link.editor.js +66 -66
- package/esm2015/plugins/link/link.plugin.js +58 -58
- package/esm2015/plugins/link/link.types.js +12 -12
- package/esm2015/plugins/list/components/bulleted-list.component.js +33 -33
- package/esm2015/plugins/list/components/list-item.component.js +94 -94
- package/esm2015/plugins/list/components/numbered-list.component.js +39 -39
- package/esm2015/plugins/list/list.editor.js +125 -125
- package/esm2015/plugins/list/list.plugin.js +280 -280
- package/esm2015/plugins/list/normalizers/get-list-normalizer.js +39 -39
- package/esm2015/plugins/list/normalizers/normalize-list-item.js +19 -19
- package/esm2015/plugins/list/normalizers/normalize-no.js +42 -42
- package/esm2015/plugins/list/on-key-down-list.js +32 -32
- package/esm2015/plugins/list/queries/get-list-item-entry.js +27 -27
- package/esm2015/plugins/list/queries/get-list-item-sublist.js +12 -12
- package/esm2015/plugins/list/queries/get-list-types.js +5 -5
- package/esm2015/plugins/list/queries/get-start-list-item.js +26 -26
- package/esm2015/plugins/list/queries/has-list-in-list-item.js +27 -27
- package/esm2015/plugins/list/queries/is-in-list.js +5 -5
- package/esm2015/plugins/list/queries/is-list-nested.js +10 -10
- package/esm2015/plugins/list/queries/is-list.js +5 -5
- package/esm2015/plugins/list/queries/is-node-type-list.js +4 -4
- package/esm2015/plugins/list/queries/is-selection-at-list-item-start.js +12 -12
- package/esm2015/plugins/list/queries/is-selection-in-same-list-item.js +16 -16
- package/esm2015/plugins/list/queries/is-single-list-item.js +9 -9
- package/esm2015/plugins/list/transforms/insert-list-data.js +71 -71
- package/esm2015/plugins/list/transforms/insert-list-item.js +72 -72
- package/esm2015/plugins/list/transforms/move-list-item-down.js +41 -41
- package/esm2015/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.js +42 -42
- package/esm2015/plugins/list/transforms/move-list-item-sublist-items-to-list.js +29 -29
- package/esm2015/plugins/list/transforms/move-list-item-up.js +77 -77
- package/esm2015/plugins/list/transforms/unwrap-list.js +9 -9
- package/esm2015/plugins/list/types.js +2 -2
- package/esm2015/plugins/mark/mark.editor.js +28 -28
- package/esm2015/plugins/mark/mark.plugin.js +101 -101
- package/esm2015/plugins/node-id/node-id.plugin.js +68 -68
- package/esm2015/plugins/normalizers/insert-paragraph-nodes.js +28 -28
- package/esm2015/plugins/normalizers/remove-empty-nodes.js +17 -17
- package/esm2015/plugins/normalizers/trailing-node.plugin.js +33 -33
- package/esm2015/plugins/paint-format/paint-format.editor.js +122 -122
- package/esm2015/plugins/public-api.js +15 -15
- package/esm2015/plugins/quick-insert/components/quick-insert.component.js +101 -101
- package/esm2015/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.js +83 -83
- package/esm2015/plugins/quick-insert/quick-insert.editor.js +52 -52
- package/esm2015/plugins/quick-insert/quick-insert.plugin.js +74 -74
- package/esm2015/plugins/soft-break/soft-break.plugin.js +36 -36
- package/esm2015/plugins/soft-break/soft-break.types.js +1 -1
- package/esm2015/plugins/table/components/insert-mark/insert-mark.component.js +102 -102
- package/esm2015/plugins/table/components/row/row.component.js +46 -46
- package/esm2015/plugins/table/components/table.component.js +469 -469
- package/esm2015/plugins/table/components/td/td.component.js +698 -698
- package/esm2015/plugins/table/components/toolbar/table-options.component.js +67 -67
- package/esm2015/plugins/table/components/toolbar/table-toolbar.component.js +161 -161
- package/esm2015/plugins/table/table.editor.js +182 -182
- package/esm2015/plugins/table/table.plugin.js +423 -423
- package/esm2015/plugins/table/table.service.js +102 -102
- package/esm2015/plugins/table/table.store.js +479 -479
- package/esm2015/plugins/table/table.types.js +33 -33
- package/esm2015/plugins/table/toolbar-item.component.js +61 -61
- package/esm2015/plugins/table/transforms/clear-cell.js +11 -11
- package/esm2015/plugins/table/transforms/clear-table-node.js +27 -27
- package/esm2015/plugins/table/transforms/insert-column.js +57 -57
- package/esm2015/plugins/table/transforms/insert-row.js +42 -42
- package/esm2015/plugins/table/transforms/insert-table.js +14 -14
- package/esm2015/plugins/table/transforms/remove-column.js +51 -51
- package/esm2015/plugins/table/transforms/remove-row.js +50 -50
- package/esm2015/plugins/table/transforms/remove-table.js +49 -49
- package/esm2015/plugins/table/utils/add-columns.js +28 -28
- package/esm2015/plugins/table/utils/calc-anchor-position.js +24 -24
- package/esm2015/plugins/table/utils/calc-span.js +72 -72
- package/esm2015/plugins/table/utils/create-cell.js +19 -19
- package/esm2015/plugins/table/utils/create-row.js +12 -12
- package/esm2015/plugins/table/utils/create-table.js +13 -13
- package/esm2015/plugins/table/utils/get-base-height.js +22 -22
- package/esm2015/plugins/table/utils/get-select-cell-node.js +16 -16
- package/esm2015/plugins/table/utils/index.js +8 -8
- package/esm2015/plugins/table/utils/is-range-in-table.js +16 -16
- package/esm2015/plugins/table/utils/is-selection-in-table.js +11 -11
- package/esm2015/plugins/table/utils/is-virtual-key.js +13 -13
- package/esm2015/plugins/table/utils/merge-cell.js +90 -90
- package/esm2015/plugins/table/utils/next-path.js +5 -5
- package/esm2015/plugins/table/utils/normalize-table.js +30 -30
- package/esm2015/plugins/table/utils/remove-columns.js +23 -23
- package/esm2015/plugins/table/utils/set-menu-cell-invisibility.js +15 -15
- package/esm2015/plugins/table/utils/split-cell.js +31 -31
- package/esm2015/plugins/table/utils/table-position.js +242 -242
- package/esm2015/plugins/todo-item/todo-item.component.js +55 -55
- package/esm2015/plugins/todo-item/todo-item.editor.js +31 -31
- package/esm2015/plugins/todo-item/todo-item.plugin.js +78 -78
- package/esm2015/plugins/vertical-align/toolbar-item.component.js +89 -89
- package/esm2015/plugins/vertical-align/vertical-align.editor.js +54 -54
- package/esm2015/public-api.js +23 -23
- package/esm2015/queries/anchor-block-entry.js +13 -13
- package/esm2015/queries/anchor-block.js +6 -6
- package/esm2015/queries/anchor-inline-entry.js +10 -10
- package/esm2015/queries/find-descendant.js +47 -47
- package/esm2015/queries/find-node.js +45 -45
- package/esm2015/queries/find-path.js +28 -28
- package/esm2015/queries/get-above-by-type.js +10 -10
- package/esm2015/queries/get-above.js +9 -9
- package/esm2015/queries/get-anchor-block-entry.js +8 -8
- package/esm2015/queries/get-block-above.js +7 -7
- package/esm2015/queries/get-block-card-above.js +7 -7
- package/esm2015/queries/get-block-card-cursor.js +5 -5
- package/esm2015/queries/get-container-blocks.js +11 -11
- package/esm2015/queries/get-directly-parent.js +11 -11
- package/esm2015/queries/get-insert-elements-path.js +43 -43
- package/esm2015/queries/get-last-child-path.js +9 -9
- package/esm2015/queries/get-last-node.js +17 -17
- package/esm2015/queries/get-next-sibling-nodes.js +17 -17
- package/esm2015/queries/get-node.js +10 -10
- package/esm2015/queries/get-nodes-by-type.js +12 -12
- package/esm2015/queries/get-nodes.js +7 -7
- package/esm2015/queries/get-parent.js +12 -12
- package/esm2015/queries/get-plain-text.js +16 -16
- package/esm2015/queries/get-plugin-by-toolbar.js +12 -12
- package/esm2015/queries/get-point-before.js +62 -62
- package/esm2015/queries/get-point-from-location.js +15 -15
- package/esm2015/queries/get-previous-path.js +9 -9
- package/esm2015/queries/get-rang-from-block-start.js +16 -16
- package/esm2015/queries/get-range-before.js +17 -17
- package/esm2015/queries/get-selection-marks.js +19 -19
- package/esm2015/queries/get-selection-nodes-by-type.js +29 -29
- package/esm2015/queries/get-text.js +9 -9
- package/esm2015/queries/get-toolbar-disabled.js +13 -13
- package/esm2015/queries/index.js +59 -58
- package/esm2015/queries/is-across-blocks.js +7 -7
- package/esm2015/queries/is-ancestor-empty.js +6 -6
- package/esm2015/queries/is-ancestor.js +3 -3
- package/esm2015/queries/is-block-above-empty.js +11 -11
- package/esm2015/queries/is-block-active.js +7 -7
- package/esm2015/queries/is-block-card-cursor.js +4 -4
- package/esm2015/queries/is-block-text-empty-after-selection.js +31 -31
- package/esm2015/queries/is-collapsed.js +7 -7
- package/esm2015/queries/is-contain-nested-type.js +28 -28
- package/esm2015/queries/is-container-type.js +2 -2
- package/esm2015/queries/is-descendant.js +3 -3
- package/esm2015/queries/is-empty-content.js +15 -0
- package/esm2015/queries/is-empty-paragraph-by-path.js +7 -7
- package/esm2015/queries/is-empty-paragraph.js +11 -11
- package/esm2015/queries/is-first-child.js +5 -5
- package/esm2015/queries/is-include-types.js +11 -11
- package/esm2015/queries/is-node-type-in.js +9 -9
- package/esm2015/queries/is-node-type.js +15 -15
- package/esm2015/queries/is-paragraph.js +9 -9
- package/esm2015/queries/is-point-at-root.js +2 -2
- package/esm2015/queries/is-range-across-blocks.js +18 -18
- package/esm2015/queries/is-range-at-root.js +3 -3
- package/esm2015/queries/is-start.js +6 -6
- package/esm2015/queries/some-node.js +9 -9
- package/esm2015/services/color-select.service.js +49 -49
- package/esm2015/services/context.service.js +59 -59
- package/esm2015/services/table-contextmenu.service.js +189 -189
- package/esm2015/services/toolbar.service.js +47 -47
- package/esm2015/shortcuts/index.js +5 -5
- package/esm2015/shortcuts/mark.js +24 -24
- package/esm2015/transforms/apply-deep-to-nodes.js +21 -21
- package/esm2015/transforms/clear-marks.js +23 -23
- package/esm2015/transforms/close-conversion-hint.js +8 -8
- package/esm2015/transforms/delete-element.js +11 -11
- package/esm2015/transforms/handle-continual-delete-backward.js +17 -17
- package/esm2015/transforms/handle-continual-insert-break.js +19 -19
- package/esm2015/transforms/index.js +18 -18
- package/esm2015/transforms/insert-elements.js +34 -34
- package/esm2015/transforms/insert-paragraph.js +6 -6
- package/esm2015/transforms/merge-deep-to-nodes.js +8 -8
- package/esm2015/transforms/move-children.js +21 -21
- package/esm2015/transforms/on-keydown-reset-block-type.js +22 -22
- package/esm2015/transforms/set-end-selection.js +10 -10
- package/esm2015/transforms/set-marks.js +9 -9
- package/esm2015/transforms/set-node.js +5 -5
- package/esm2015/transforms/split-node.js +31 -31
- package/esm2015/transforms/un-hang-range.js +11 -11
- package/esm2015/transforms/un-wrap.js +11 -11
- package/esm2015/transforms/unwrap-nodes-by-type.js +11 -11
- package/esm2015/utils/auto-focus.js +13 -13
- package/esm2015/utils/auto-scroll-view.js +24 -24
- package/esm2015/utils/cast-array.js +7 -7
- package/esm2015/utils/common.js +2 -2
- package/esm2015/utils/create-empty-paragraph.js +14 -14
- package/esm2015/utils/data-transform.js +48 -48
- package/esm2015/utils/dom.js +46 -46
- package/esm2015/utils/editor-uuid.js +8 -8
- package/esm2015/utils/fragment.js +65 -65
- package/esm2015/utils/get-editable-element-height.js +6 -6
- package/esm2015/utils/get-toolbar-class.js +6 -6
- package/esm2015/utils/id-creator.js +11 -11
- package/esm2015/utils/index.js +13 -13
- package/esm2015/utils/is-clean-empty-paragraph.js +36 -36
- package/esm2015/utils/is-inline.js +9 -9
- package/esm2015/utils/lodash.js +3 -3
- package/esm2015/utils/match.js +29 -29
- package/esm2015/utils/merge-element-options.js +19 -19
- package/esm2015/utils/weak-maps.js +3 -3
- package/esm2015/worktile-theia.js +4 -4
- package/fesm2015/worktile-theia.js +13156 -13142
- package/fesm2015/worktile-theia.js.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 +1 -1
- 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 +74 -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 -57
- 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 -0
- 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-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 +1 -1
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9pbnRlcmZhY2VzL3BsdWdpbnMvcGx1Z2luLWtleS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWS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lcmZhY2VzL3BsdWdpbnMvd2l0aC1vdmVycmlkZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRWRpdG9yIH0gZnJvbSAnc2xhdGUnO1xuaW1wb3J0IHsgV2l0aFRoZVBsdWdpbiB9IGZyb20gJy4vcGx1Z2lucyc7XG5cbi8qKlxuICogdGhlaWEg5o+S5Lu26KaG55uW5LqGIGBlZGl0b3JgIOaWueazleOAglxuICog5ZG95ZCN57qm5a6a5pivIGB3aXRoKmDjgIJcbiAqL1xuZXhwb3J0IHR5cGUgV2l0aE92ZXJyaWRlPFQgPSB7fSwgUCA9IHt9PiA9IChlZGl0b3I6IEVkaXRvciwgcGx1Z2luOiBXaXRoVGhlUGx1Z2luPFQsIFA+KSA9PiBFZGl0b3I7XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzZXQtYmxvY2stdHlwZS1wbHVnaW4tb3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9pbnRlcmZhY2VzL3Jlc2V0LWJsb2NrLXR5cGUtcGx1Z2luLW9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVkaXRvciB9IGZyb20gJ3NsYXRlJztcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgUmVzZXRCbG9ja1R5cGVQbHVnaW5SdWxlIHtcclxuICAgIC8qKlxyXG4gICAgICogTm9kZSB0eXBlcyB3aGVyZSB0aGUgcnVsZSBhcHBsaWVzLlxyXG4gICAgICovXHJcbiAgICB0eXBlczogc3RyaW5nW107XHJcblxyXG4gICAgaG90a2V5Pzogc3RyaW5nIHwgc3RyaW5nW107XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBBZGRpdGlvbmFsIGNvbmRpdGlvbiB0byB0aGUgcnVsZS5cclxuICAgICAqL1xyXG4gICAgcHJlZGljYXRlOiAoZWRpdG9yOiBFZGl0b3IpID0+IGJvb2xlYW47XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBTZXQgbm9kZSB0byB0aGlzIGRlZmF1bHQgdHlwZSB3aGVuIHJlc2V0dGluZy5cclxuICAgICAqL1xyXG4gICAgZGVmYXVsdFR5cGU/OiBzdHJpbmc7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDYWxsYmFjayBjYWxsZWQgd2hlbiByZXNldHRpbmcuXHJcbiAgICAgKi9cclxuICAgIG9uUmVzZXQ/OiAoZWRpdG9yOiBFZGl0b3IpID0+IHZvaWQ7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgUmVzZXRCbG9ja1R5cGVQbHVnaW5PcHRpb25zIHtcclxuICAgIHJ1bGVzOiBSZXNldEJsb2NrVHlwZVBsdWdpblJ1bGVbXTtcclxufVxyXG4iXX0=
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3NyYy9pbnRlcmZhY2VzL3Rvb2xiYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsTUFBTSxDQUFOLElBQVksZUFHWDtBQUhELFdBQVksZUFBZTtJQUN2QixzQ0FBbUIsQ0FBQTtJQUNuQix3Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSFcsZUFBZSxLQUFmLGVBQWUsUUFHMUI7QUFFRCxNQUFNLENBQU4sSUFBWSxnQkFJWDtBQUpELFdBQVksZ0JBQWdCO0lBQ3hCLGtDQUFjLENBQUE7SUFDZCxxQ0FBaUIsQ0FBQTtJQUNqQixpQ0FBYSxDQUFBO0FBQ2pCLENBQUMsRUFKVyxnQkFBZ0IsS0FBaEIsZ0JBQWdCLFFBSTNCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50VHlwZSB9IGZyb20gJ0Bhbmd1bGFyL2Nkay9wb3J0YWwnO1xuaW1wb3J0IHsgRWRpdG9yIH0gZnJvbSAnc2xhdGUnO1xuaW1wb3J0IHsgRWxlbWVudEtpbmRzLCBNYXJrVHlwZXMsIERyb3Bkb3duTW9kZSB9IGZyb20gJy4uL2NvbnN0YW50cyc7XG5pbXBvcnQgeyBQb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pbml0aW9uOiBUb29sYmFyRGVmaW5pdGlvbjtcbiAgICB0b29sYmFyRW50aXR5OiBUb29sYmFyRW50aXR5O1xuICAgIHRvb2xiYXJPcGVyYXRpb25zOiBNYXA8c3RyaW5nLCBUb29sYmFySXRlbT47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVG9vbGJhck9wdGlvbiBleHRlbmRzIFRvb2xiYXJEZWZpbml0aW9uIHtcbiAgICBhbGlnbj86IFRvb2xiYXJBbGlnbm1lbnQ7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVG9vbGJhckl0ZW1zQ29tcG9zZVJldHVybiB7XG4gICAgaXRlbXM6IFRvb2xiYXJJdGVtW107XG4gICAgZ3JvdXA6IFRvb2xiYXJJdGVtW107XG59XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2ludGVyZmFjZXMvdXBsb2FkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUaHlVcGxvYWRSZXNwb25zZSB9IGZyb20gJ25neC10ZXRoeXMvdXBsb2FkZXInO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBVcGxvYWRGaWxlRW50aXR5IHtcclxuICAgIHRodW1iVXJsOiBzdHJpbmc7XHJcbiAgICBvcmlnaW5Vcmw6IHN0cmluZztcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBGaWxlVXBsb2FkaW5nSXRlbSB7XHJcbiAgICBzY29wZUlkPzogc3RyaW5nO1xyXG4gICAgZmlsZTogRmlsZTtcclxuICAgIHN0YXJ0ZWQ/OiBib29sZWFuO1xyXG4gICAgcmVzdWx0PzogVGh5VXBsb2FkUmVzcG9uc2U7XHJcbn1cclxuIl19
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWQtY2hpbGRyZW4tdHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvaW50ZXJmYWNlcy92YWxpZC1jaGlsZHJlbi10eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLGFBQWEsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBU3RFLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBeUI7SUFDOUMsWUFBWSxDQUFDLEtBQUs7SUF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wZXMsIC4uLkhFQURJTkdfVFlQRVNdXG4gICAgfSxcbiAgICB7XG4gICAgICAgIHR5cGU6IEVsZW1lbnRLaW5kcy5ibG9ja3F1b3RlLFxuICAgICAgICBpblZhbGlkQ2hpbGRyZW5UeXBlczogaW5WYWxpZFR5cGVzXG4gICAgfSxcbiAgICB7XG4gICAgICAgIHR5cGU6IEVsZW1lbnRLaW5kcy50YWJsZSxcbiAgICAgICAgaW5WYWxpZENoaWxkcmVuVHlwZXM6IFtFbGVtZW50S2luZHMudGFibGVdXG4gICAgfSxcbiAgICB7XG4gICAgICAgIHR5cGU6IEVsZW1lbnRLaW5kcy50YWJsZUNlbGwsXG4gICAgICAgIGlzU2Vjb25kYXJ5Q29udGFpbmVyOiB0cnVlLFxuICAgICAgICBpblZhbGlkQ2hpbGRyZW5UeXBlczogW0VsZW1lbnRLaW5kcy50YWJsZSwgRWxlbWVudEtpbmRzLnRhYmxlQ2VsbF1cbiAgICB9XG5dO1xuIl19
|
|
@@ -1,21 +1,21 @@
|
|
|
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: "12.2.15", ngImport: i0, type: TheBaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
TheBaseElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheBaseElementComponent, selector: "TheBaseElementComponent", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", 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: "12.2.15", ngImport: i0, type: TheBaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
TheBaseElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheBaseElementComponent, selector: "TheBaseElementComponent", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TheBaseElementComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: 'TheBaseElementComponent',
|
|
18
|
+
template: ''
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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
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: "12.2.15", ngImport: i0, type: ElementStylePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
-
ElementStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ElementStylePipe, name: "elementStyle" });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", 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: "12.2.15", ngImport: i0, type: ElementClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
35
|
-
ElementClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ElementClassPipe, name: "elementClass" });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", 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: "12.2.15", ngImport: i0, type: ElementStylePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
+
ElementStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ElementStylePipe, name: "elementStyle" });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", 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: "12.2.15", ngImport: i0, type: ElementClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
35
|
+
ElementClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ElementClassPipe, name: "elementClass" });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ElementClassPipe, decorators: [{
|
|
37
|
+
type: Pipe,
|
|
38
|
+
args: [{
|
|
39
|
+
name: 'elementClass'
|
|
40
|
+
}]
|
|
41
|
+
}] });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wYWNrYWdlcy9zcmMvcGlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7QUFFcEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLHdCQUF3QixDQUFDOztBQUtuRCxNQUFNLE9BQU8sZ0JBQWdCO0lBQ3pCLFNBQVMsQ0FBQyxPQUFnQixFQUFFLEtBQWlCO1FBQ3pDLE1BQU0sS0FBSyxHQUE4QixFQUFFLENBQUM7UUFDNUMsSUFBSSxPQUFPLENBQUMsS0FBSyxJQUFJLEtBQUssRUFBRTtZQUN4QixLQUFLLENBQUMsU0FBUyxHQUFJLE9BQU8sQ0FBQyxLQUFnQixJQUFJLEtBQUssSUFBSSxTQUFTLENBQUMsSUFBSSxDQUFDO1NBQzFFO1FBQ0QsSUFBSSxPQUFPLENBQUMsVUFBVSxFQUFFO1lBQ3BCLEtBQUssQ0FBQyxVQUFV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RWxlbWVudCwgYWxpZ24/OiBBbGlnbm1lbnQpIHtcclxuICAgICAgICBjb25zdCBzdHlsZTogeyBba2V5OiBzdHJpbmddOiBzdHJpbmcgfSA9IHt9O1xyXG4gICAgICAgIGlmIChlbGVtZW50LmFsaWduIHx8IGFsaWduKSB7XHJcbiAgICAgICAgICAgIHN0eWxlLnRleHRBbGlnbiA9IChlbGVtZW50LmFsaWduIGFzIHN0cmluZykgfHwgYWxpZ24gfHwgQWxpZ25tZW50LmxlZnQ7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmIChlbGVtZW50LnRleHRJbmRlbnQpIHtcclxuICAgICAgICAgICAgc3R5bGUudGV4dEluZGVudCA9IGVsZW1lbnQudGV4dEluZGVudCArICdlbSc7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBzdHlsZTtcclxuICAgIH1cclxufVxyXG5cclxuQFBpcGUoe1xyXG4gICAgbmFtZTogJ2VsZW1lbnRDbGFzcydcclxufSlcclxuZXhwb3J0IGNsYXNzIEVsZW1lbnRDbGFzc1BpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcclxuICAgIHRyYW5zZm9ybShlbGVtZW50OiBFbGVtZW50KSB7XHJcbiAgICAgICAgbGV0IGNsYXNzU3RyID0gJyc7XHJcbiAgICAgICAgY29uc3QgcHJlZml4ID0gJ2luZGVudCc7XHJcbiAgICAgICAgaWYgKGVsZW1lbnQudGV4dEluZGVudCkge1xyXG4gICAgICAgICAgICBjbGFzc1N0ciArPSBgJHtwcmVmaXh9LSR7ZWxlbWVudC50ZXh0SW5kZW50fWA7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBjbGFzc1N0cjtcclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,48 +1,48 @@
|
|
|
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 === null || editor === void 0 ? void 0 : 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
|
-
var _a;
|
|
31
|
-
const contextService = (_a = editor === null || editor === void 0 ? void 0 : editor.injector) === null || _a === void 0 ? void 0 : _a.get(TheContextService);
|
|
32
|
-
const { theOptions: { richMedia } } = contextService.getOptions();
|
|
33
|
-
return TheQueries.getToolbarItemDisabled(editor, PluginKeys.align, richMedia ? [ElementKinds.image] : []);
|
|
34
|
-
},
|
|
35
|
-
setAlign(editor, alignment) {
|
|
36
|
-
if (TableEditor.setAlign(editor, alignment)) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const props = {
|
|
40
|
-
align: alignment !== Alignment.left ? alignment : null
|
|
41
|
-
};
|
|
42
|
-
Transforms.setNodes(editor, props, {
|
|
43
|
-
at: editor.selection,
|
|
44
|
-
match: (n) => ALIGN_BLOCK_TYPES.includes(n.type)
|
|
45
|
-
});
|
|
46
|
-
}
|
|
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 === null || editor === void 0 ? void 0 : 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
|
+
var _a;
|
|
31
|
+
const contextService = (_a = editor === null || editor === void 0 ? void 0 : editor.injector) === null || _a === void 0 ? void 0 : _a.get(TheContextService);
|
|
32
|
+
const { theOptions: { richMedia } } = contextService.getOptions();
|
|
33
|
+
return TheQueries.getToolbarItemDisabled(editor, PluginKeys.align, richMedia ? [ElementKinds.image] : []);
|
|
34
|
+
},
|
|
35
|
+
setAlign(editor, alignment) {
|
|
36
|
+
if (TableEditor.setAlign(editor, alignment)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const props = {
|
|
40
|
+
align: alignment !== Alignment.left ? alignment : null
|
|
41
|
+
};
|
|
42
|
+
Transforms.setNodes(editor, props, {
|
|
43
|
+
at: editor.selection,
|
|
44
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iAgICAgICAgY29uc3QgdGFibGVDZWxsQWxpZ24gPSBUYWJsZUVkaXRvci5pc0FsaWduQWN0aXZlKGVkaXRvciwgYWxpZ25tZW50KTtcbiAgICAgICAgaWYgKHRhYmxlQ2VsbEFsaWduICE9PSBudWxsKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFibGVDZWxsQWxpZ247XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBibG9ja0VsZW1lbnQgPSBUaGVRdWVyaWVzLmFuY2hvckJsb2NrKGVkaXRvcik7XG4gICAgICAgIGlmIChibG9ja0VsZW1lbnQpIHtcbiAgICAgICAgICAgIGNvbnN0IHsgYWxpZ24gfSA9IGJsb2NrRWxlbWVudDtcbiAgICAgICAgICAgIGlmICghYWxpZ24gJiYgYWxpZ25tZW50ID09PSBBbGlnbm1lbnQubGVmdCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGFsaWduID09PSBhbGlnbm1lbnQ7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGFsaWdubWVudCA9PT0gQWxpZ25tZW50LmxlZnQpIHtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9LFxuICAgIGlzRGlzYWJsZWQoZWRpdG9yOiBFZGl0b3IpOiBib29sZWFuIHtcbiAgICAgICAgY29uc3QgY29udGV4dFNlcnZpY2UgPSBlZGl0b3I/LmluamVjdG9yPy5nZXQoVGhlQ29udGV4dFNlcnZpY2UpO1xuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICB0aGVPcHRpb25zOiB7IHJpY2hNZWRpYSB9XG4gICAgICAgIH0gPSBjb250ZXh0U2VydmljZS5nZXRPcHRpb25zKCk7XG4gICAgICAgIHJldHVybiBUaGVRdWVyaWVzLmdldFRvb2xiYXJJdGVtRGlzYWJsZWQoZWRpdG9yLCBQbHVnaW5LZXlzLmFsaWduLCByaWNoTWVkaWEgPyBbRWxlbWVudEtpbmRzLmltYWdlXSA6IFtdKTtcbiAgICB9LFxuICAgIHNldEFsaWduKGVkaXRvcjogRWRpdG9yLCBhbGlnbm1lbnQ6IEFsaWdubWVudCkge1xuICAgICAgICBpZiAoVGFibGVFZGl0b3Iuc2V0QWxpZ24oZWRpdG9yLCBhbGlnbm1lbnQpKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgcHJvcHMgPSB7XG4gICAgICAgICAgICBhbGlnbjogYWxpZ25tZW50ICE9PSBBbGlnbm1lbnQubGVmdCA/IGFsaWdubWVudCA6IG51bGxcbiAgICAgICAgfTtcbiAgICAgICAgVHJhbnNmb3Jtcy5zZXROb2RlcyhlZGl0b3IsIHByb3BzLCB7XG4gICAgICAgICAgICBhdDogZWRpdG9yLnNlbGVjdGlvbixcbiAgICAgICAgICAgIG1hdGNoOiAobjogRWxlbWVudCkgPT4gQUxJR05fQkxPQ0tfVFlQRVMuaW5jbHVkZXMobi50eXBlKVxuICAgICAgICB9KTtcbiAgICB9XG59O1xuIl19
|