@progress/kendo-angular-editor 3.1.2 → 4.0.0-dev.202204140850
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/bundles/kendo-angular-editor.umd.js +5 -0
- package/{dist/es2015/common → common}/active-marks.d.ts +0 -0
- package/{dist/es2015/common → common}/apply-to-word-options.d.ts +0 -0
- package/{dist/es2015/common → common}/commands.d.ts +0 -0
- package/{dist/es2015/common → common}/direction.d.ts +0 -0
- package/{dist/es2015/common → common}/error-messages.d.ts +0 -0
- package/{dist/es2015/common → common}/font-family-item.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/font-size-item.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/format-item.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/image-data.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/link-data.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/paste-cleanup-settings.d.ts +0 -0
- package/{dist/es2015/common → common}/plugins-function.d.ts +0 -1
- package/{dist/es2015/common → common}/predicate.d.ts +0 -0
- package/common/provider.service.d.ts +14 -0
- package/{dist/es2015/common → common}/resizable-options.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/styles.d.ts +0 -0
- package/{dist/es2015/common → common}/table-data.interface.d.ts +0 -0
- package/{dist/es2015/config → config}/command-icons.d.ts +0 -0
- package/{dist/es2015/config → config}/commands.d.ts +0 -0
- package/{dist/es2015/config → config}/schema.d.ts +0 -0
- package/{dist/es2015/config → config}/semantic-nodes.d.ts +0 -0
- package/{dist/es2015/config → config}/table-commands.d.ts +0 -0
- package/{dist/es2015/config → config}/utils.d.ts +8 -8
- package/{dist/es2015/dialogs → dialogs}/colorpicker-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/file-link-dialog.component.d.ts +4 -1
- package/{dist/es2015/dialogs → dialogs}/font-family-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/font-size-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/format-dialog.component.d.ts +4 -1
- package/{dist/es2015/dialogs → dialogs}/image-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/insert-table-dialog.component.d.ts +5 -4
- package/{dist/es2015/dialogs → dialogs}/source-dialog.component.d.ts +3 -0
- package/{dist/es2015/editor-toolbar-state.d.ts → editor-toolbar-state.d.ts} +1 -1
- package/{dist/es2015/editor.component.d.ts → editor.component.d.ts} +32 -20
- package/editor.module.d.ts +113 -0
- package/{dist/es2015 → esm2015}/common/active-marks.js +1 -0
- package/{dist/es2015 → esm2015}/common/apply-to-word-options.js +1 -0
- package/{dist/es → esm2015}/common/commands.js +1 -0
- package/{dist/es2015 → esm2015}/common/direction.js +1 -0
- package/{dist/es2015 → esm2015}/common/error-messages.js +2 -5
- package/{dist/es → esm2015}/common/font-family-item.interface.js +1 -0
- package/{dist/es → esm2015}/common/font-size-item.interface.js +1 -0
- package/{dist/es → esm2015}/common/format-item.interface.js +1 -0
- package/{dist/es → esm2015}/common/image-data.interface.js +1 -0
- package/{dist/es → esm2015}/common/link-data.interface.js +1 -0
- package/{dist/es → esm2015}/common/paste-cleanup-settings.js +1 -0
- package/{dist/es → esm2015}/common/plugins-function.js +1 -0
- package/{dist/es → esm2015}/common/predicate.js +1 -0
- package/esm2015/common/provider.service.js +16 -0
- package/{dist/es → esm2015}/common/resizable-options.interface.js +1 -0
- package/{dist/es2015 → esm2015}/common/styles.js +0 -0
- package/{dist/es → esm2015}/common/table-data.interface.js +1 -0
- package/{dist/es2015 → esm2015}/config/command-icons.js +0 -0
- package/esm2015/config/commands.js +62 -0
- package/{dist/es2015 → esm2015}/config/schema.js +0 -0
- package/{dist/es2015 → esm2015}/config/semantic-nodes.js +1 -4
- package/{dist/es2015 → esm2015}/config/table-commands.js +0 -0
- package/{dist/es2015 → esm2015}/config/utils.js +1 -1
- package/esm2015/dialogs/colorpicker-dialog.component.js +117 -0
- package/esm2015/dialogs/file-link-dialog.component.js +209 -0
- package/esm2015/dialogs/font-family-dialog.component.js +106 -0
- package/esm2015/dialogs/font-size-dialog.component.js +106 -0
- package/esm2015/dialogs/format-dialog.component.js +106 -0
- package/{dist/es2015 → esm2015}/dialogs/image-dialog.component.js +60 -21
- package/esm2015/dialogs/insert-table-dialog.component.js +74 -0
- package/esm2015/dialogs/source-dialog.component.js +89 -0
- package/{dist/es2015 → esm2015}/editor-toolbar-state.js +0 -0
- package/{dist/es2015 → esm2015}/editor.component.js +331 -200
- package/{dist/es2015 → esm2015}/editor.module.js +205 -31
- package/{dist/es/common/active-marks.js → esm2015/kendo-angular-editor.js} +4 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/esm2015/localization/editor-localization.service.js +31 -0
- package/esm2015/localization/localized-messages.directive.js +32 -0
- package/esm2015/localization/messages.js +126 -0
- package/{dist/es2015/index.js → esm2015/main.js} +37 -47
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/preventable-events/paste-event-data.js +1 -0
- package/{dist/es2015 → esm2015}/preventable-events/paste-event.js +1 -1
- package/esm2015/preventable-events/preventable-event.js +27 -0
- package/esm2015/tools/alignment/editor-align-center-button.directive.js +42 -0
- package/esm2015/tools/alignment/editor-align-justify-button.directive.js +42 -0
- package/esm2015/tools/alignment/editor-align-left-button.directive.js +42 -0
- package/esm2015/tools/alignment/editor-align-right-button.directive.js +42 -0
- package/esm2015/tools/blockquote/editor-blockquote-button.directive.js +41 -0
- package/esm2015/tools/colorpicker/editor-back-color.directive.js +28 -0
- package/esm2015/tools/colorpicker/editor-colorpicker.component.js +262 -0
- package/esm2015/tools/colorpicker/editor-fore-color.directive.js +28 -0
- package/esm2015/tools/editor-clean-formatting-button.directive.js +41 -0
- package/esm2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +104 -0
- package/{dist/es2015 → esm2015}/tools/fontfamily/editor-fontfamily.component.js +73 -57
- package/esm2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +93 -0
- package/{dist/es2015 → esm2015}/tools/fontsize/editor-fontsize.component.js +72 -54
- package/esm2015/tools/format/editor-format-dropdownlist.component.js +160 -0
- package/{dist/es2015 → esm2015}/tools/format/editor-format.component.js +69 -51
- package/esm2015/tools/history/editor-redo-button.directive.js +42 -0
- package/esm2015/tools/history/editor-undo-button.directive.js +42 -0
- package/esm2015/tools/image/editor-insert-image-button.directive.js +41 -0
- package/esm2015/tools/indentation/editor-indent-button.directive.js +42 -0
- package/esm2015/tools/indentation/editor-outdent-button.directive.js +42 -0
- package/esm2015/tools/link/editor-create-link-button.directive.js +42 -0
- package/esm2015/tools/link/editor-insert-file-button.directive.js +34 -0
- package/esm2015/tools/link/editor-unlink-button.directive.js +42 -0
- package/esm2015/tools/list/editor-insert-ordered-list-button.directive.js +42 -0
- package/esm2015/tools/list/editor-insert-unordered-list-button.directive.js +42 -0
- package/{dist/es2015 → esm2015}/tools/print/editor-print-button.directive.js +18 -22
- package/esm2015/tools/select-all/select-all-button.directive.js +45 -0
- package/{dist/es2015 → esm2015}/tools/shared/dropdown-tool.directive.js +10 -10
- package/esm2015/tools/shared/editor-command-base.js +64 -0
- package/{dist/es2015 → esm2015}/tools/shared/editor-command-button.js +5 -5
- package/{dist/es2015 → esm2015}/tools/shared/editor-command-dialog.js +4 -5
- package/esm2015/tools/source/editor-view-source-button.directive.js +41 -0
- package/esm2015/tools/tables/editor-add-column-after-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-add-column-before-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-add-row-after-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-add-row-before-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-delete-column-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-delete-row-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-delete-table-button.directive.js +35 -0
- package/{dist/es2015 → esm2015}/tools/tables/editor-insert-table-button.component.js +66 -45
- package/esm2015/tools/tables/editor-merge-cells-button.directive.js +37 -0
- package/esm2015/tools/tables/editor-split-cell-button.directive.js +37 -0
- package/{dist/es2015 → esm2015}/tools/tables/popup-table-grid.component.js +32 -21
- package/esm2015/tools/tools.service.js +20 -0
- package/esm2015/tools/typographical-emphasis/editor-bold-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-italic-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-subscript-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-superscript-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-underline-button.directive.js +42 -0
- package/{dist/es2015 → esm2015}/util.js +8 -0
- package/fesm2015/kendo-angular-editor.js +6396 -0
- package/kendo-angular-editor.d.ts +9 -0
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +6 -3
- package/{dist/es2015/localization → localization}/editor-localization.service.d.ts +3 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +5 -2
- package/{dist/es2015/localization → localization}/messages.d.ts +4 -1
- package/{dist/es/index.js → main.d.ts} +39 -47
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -121
- package/{dist/es2015/preventable-events → preventable-events}/paste-event-data.d.ts +0 -0
- package/{dist/es2015/preventable-events → preventable-events}/paste-event.d.ts +1 -1
- package/preventable-events/preventable-event.d.ts +21 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/tools → tools}/alignment/editor-align-center-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/alignment/editor-align-justify-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/alignment/editor-align-left-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/alignment/editor-align-right-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/blockquote/editor-blockquote-button.directive.d.ts +5 -3
- package/{dist/es2015/tools → tools}/colorpicker/editor-back-color.directive.d.ts +3 -0
- package/{dist/es2015/tools → tools}/colorpicker/editor-colorpicker.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/colorpicker/editor-fore-color.directive.d.ts +3 -0
- package/{dist/es2015/tools → tools}/editor-clean-formatting-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily-dropdownlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/fontsize/editor-fontsize-dropdownlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/fontsize/editor-fontsize.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/format/editor-format-dropdownlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/format/editor-format.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/history/editor-redo-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/history/editor-undo-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/image/editor-insert-image-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/indentation/editor-indent-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/indentation/editor-outdent-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/link/editor-create-link-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/link/editor-insert-file-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/link/editor-unlink-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/list/editor-insert-ordered-list-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/list/editor-insert-unordered-list-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/print/editor-print-button.directive.d.ts +5 -3
- package/{dist/es2015/tools → tools}/select-all/select-all-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/shared/dropdown-tool.directive.d.ts +4 -1
- package/{dist/es2015/tools → tools}/shared/editor-command-base.d.ts +8 -4
- package/{dist/es2015/tools → tools}/shared/editor-command-button.d.ts +5 -5
- package/{dist/es2015/tools → tools}/shared/editor-command-dialog.d.ts +4 -5
- package/{dist/es2015/tools → tools}/source/editor-view-source-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-column-after-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-column-before-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-row-after-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-row-before-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-delete-column-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-delete-row-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-delete-table-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-insert-table-button.component.d.ts +10 -9
- package/{dist/es2015/tools → tools}/tables/editor-merge-cells-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-split-cell-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/popup-table-grid.component.d.ts +7 -6
- package/{dist/es2015/tools → tools}/tools.service.d.ts +3 -0
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-bold-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-italic-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-strikethrough-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-subscript-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-superscript-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-underline-button.directive.d.ts +5 -2
- package/{dist/es2015/util.d.ts → util.d.ts} +7 -0
- package/dist/cdn/js/kendo-angular-editor.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/apply-to-word-options.js +0 -4
- package/dist/es/common/direction.js +0 -4
- package/dist/es/common/error-messages.js +0 -19
- package/dist/es/common/styles.js +0 -16
- package/dist/es/config/command-icons.js +0 -48
- package/dist/es/config/commands.js +0 -71
- package/dist/es/config/schema.js +0 -22
- package/dist/es/config/semantic-nodes.js +0 -32
- package/dist/es/config/table-commands.js +0 -14
- package/dist/es/config/utils.js +0 -102
- package/dist/es/dialogs/colorpicker-dialog.component.js +0 -70
- package/dist/es/dialogs/file-link-dialog.component.js +0 -126
- package/dist/es/dialogs/font-family-dialog.component.js +0 -65
- package/dist/es/dialogs/font-size-dialog.component.js +0 -65
- package/dist/es/dialogs/format-dialog.component.js +0 -65
- package/dist/es/dialogs/image-dialog.component.js +0 -102
- package/dist/es/dialogs/insert-table-dialog.component.js +0 -49
- package/dist/es/dialogs/source-dialog.component.js +0 -72
- package/dist/es/editor-toolbar-state.js +0 -280
- package/dist/es/editor.component.js +0 -1039
- package/dist/es/editor.module.js +0 -241
- package/dist/es/localization/custom-messages.component.js +0 -45
- package/dist/es/localization/editor-localization.service.js +0 -24
- package/dist/es/localization/localized-messages.directive.js +0 -36
- package/dist/es/localization/messages.js +0 -230
- package/dist/es/main.js +0 -9
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-events/paste-event.js +0 -25
- package/dist/es/tools/alignment/editor-align-center-button.directive.js +0 -47
- package/dist/es/tools/alignment/editor-align-justify-button.directive.js +0 -47
- package/dist/es/tools/alignment/editor-align-left-button.directive.js +0 -47
- package/dist/es/tools/alignment/editor-align-right-button.directive.js +0 -47
- package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +0 -48
- package/dist/es/tools/colorpicker/editor-back-color.directive.js +0 -28
- package/dist/es/tools/colorpicker/editor-colorpicker.component.js +0 -233
- package/dist/es/tools/colorpicker/editor-fore-color.directive.js +0 -28
- package/dist/es/tools/editor-clean-formatting-button.directive.js +0 -46
- package/dist/es/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -71
- package/dist/es/tools/fontfamily/editor-fontfamily.component.js +0 -211
- package/dist/es/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -71
- package/dist/es/tools/fontsize/editor-fontsize.component.js +0 -206
- package/dist/es/tools/format/editor-format-dropdownlist.component.js +0 -71
- package/dist/es/tools/format/editor-format.component.js +0 -202
- package/dist/es/tools/history/editor-redo-button.directive.js +0 -47
- package/dist/es/tools/history/editor-undo-button.directive.js +0 -47
- package/dist/es/tools/image/editor-insert-image-button.directive.js +0 -46
- package/dist/es/tools/indentation/editor-indent-button.directive.js +0 -47
- package/dist/es/tools/indentation/editor-outdent-button.directive.js +0 -47
- package/dist/es/tools/link/editor-create-link-button.directive.js +0 -47
- package/dist/es/tools/link/editor-insert-file-button.directive.js +0 -39
- package/dist/es/tools/link/editor-unlink-button.directive.js +0 -47
- package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +0 -47
- package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +0 -47
- package/dist/es/tools/print/editor-print-button.directive.js +0 -69
- package/dist/es/tools/select-all/select-all-button.directive.js +0 -50
- package/dist/es/tools/shared/dropdown-tool.directive.js +0 -41
- package/dist/es/tools/shared/editor-command-base.js +0 -49
- package/dist/es/tools/shared/editor-command-button.js +0 -34
- package/dist/es/tools/shared/editor-command-dialog.js +0 -30
- package/dist/es/tools/source/editor-view-source-button.directive.js +0 -46
- package/dist/es/tools/tables/editor-add-column-after-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-add-column-before-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-add-row-after-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-add-row-before-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-delete-column-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-delete-row-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-delete-table-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-insert-table-button.component.js +0 -202
- package/dist/es/tools/tables/editor-merge-cells-button.directive.js +0 -42
- package/dist/es/tools/tables/editor-split-cell-button.directive.js +0 -42
- package/dist/es/tools/tables/popup-table-grid.component.js +0 -69
- package/dist/es/tools/tools.service.js +0 -20
- package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +0 -47
- package/dist/es/util.js +0 -127
- package/dist/es2015/common/commands.js +0 -4
- package/dist/es2015/common/font-family-item.interface.js +0 -4
- package/dist/es2015/common/font-size-item.interface.js +0 -4
- package/dist/es2015/common/format-item.interface.js +0 -4
- package/dist/es2015/common/image-data.interface.js +0 -4
- package/dist/es2015/common/link-data.interface.js +0 -4
- package/dist/es2015/common/paste-cleanup-settings.js +0 -4
- package/dist/es2015/common/plugins-function.js +0 -4
- package/dist/es2015/common/predicate.js +0 -4
- package/dist/es2015/common/resizable-options.interface.js +0 -4
- package/dist/es2015/common/table-data.interface.js +0 -4
- package/dist/es2015/config/commands.js +0 -67
- package/dist/es2015/dialogs/colorpicker-dialog.component.js +0 -92
- package/dist/es2015/dialogs/file-link-dialog.component.js +0 -163
- package/dist/es2015/dialogs/font-family-dialog.component.js +0 -84
- package/dist/es2015/dialogs/font-size-dialog.component.js +0 -84
- package/dist/es2015/dialogs/format-dialog.component.js +0 -84
- package/dist/es2015/dialogs/insert-table-dialog.component.js +0 -60
- package/dist/es2015/dialogs/source-dialog.component.js +0 -81
- package/dist/es2015/editor.module.d.ts +0 -45
- package/dist/es2015/index.d.ts +0 -72
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -37
- package/dist/es2015/localization/editor-localization.service.js +0 -22
- package/dist/es2015/localization/localized-messages.directive.js +0 -32
- package/dist/es2015/localization/messages.js +0 -224
- package/dist/es2015/main.d.ts +0 -13
- package/dist/es2015/main.js +0 -9
- package/dist/es2015/preventable-events/paste-event-data.js +0 -4
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +0 -45
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +0 -45
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +0 -45
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +0 -45
- package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +0 -45
- package/dist/es2015/tools/colorpicker/editor-back-color.directive.js +0 -27
- package/dist/es2015/tools/colorpicker/editor-colorpicker.component.js +0 -249
- package/dist/es2015/tools/colorpicker/editor-fore-color.directive.js +0 -27
- package/dist/es2015/tools/editor-clean-formatting-button.directive.js +0 -44
- package/dist/es2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -99
- package/dist/es2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -94
- package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -127
- package/dist/es2015/tools/history/editor-redo-button.directive.js +0 -45
- package/dist/es2015/tools/history/editor-undo-button.directive.js +0 -45
- package/dist/es2015/tools/image/editor-insert-image-button.directive.js +0 -44
- package/dist/es2015/tools/indentation/editor-indent-button.directive.js +0 -45
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +0 -45
- package/dist/es2015/tools/link/editor-create-link-button.directive.js +0 -45
- package/dist/es2015/tools/link/editor-insert-file-button.directive.js +0 -37
- package/dist/es2015/tools/link/editor-unlink-button.directive.js +0 -45
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +0 -45
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +0 -45
- package/dist/es2015/tools/select-all/select-all-button.directive.js +0 -48
- package/dist/es2015/tools/shared/editor-command-base.js +0 -46
- package/dist/es2015/tools/source/editor-view-source-button.directive.js +0 -44
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +0 -40
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +0 -40
- package/dist/es2015/tools/tools.service.js +0 -22
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +0 -45
- package/dist/fesm2015/index.js +0 -5842
- package/dist/fesm5/index.js +0 -5300
- package/dist/npm/common/active-marks.js +0 -6
- package/dist/npm/common/apply-to-word-options.js +0 -6
- package/dist/npm/common/commands.js +0 -6
- package/dist/npm/common/direction.js +0 -6
- package/dist/npm/common/error-messages.js +0 -22
- package/dist/npm/common/font-family-item.interface.js +0 -6
- package/dist/npm/common/font-size-item.interface.js +0 -6
- package/dist/npm/common/format-item.interface.js +0 -6
- package/dist/npm/common/image-data.interface.js +0 -6
- package/dist/npm/common/link-data.interface.js +0 -6
- package/dist/npm/common/paste-cleanup-settings.js +0 -6
- package/dist/npm/common/plugins-function.js +0 -6
- package/dist/npm/common/predicate.js +0 -6
- package/dist/npm/common/resizable-options.interface.js +0 -6
- package/dist/npm/common/styles.js +0 -18
- package/dist/npm/common/table-data.interface.js +0 -6
- package/dist/npm/config/command-icons.js +0 -50
- package/dist/npm/config/commands.js +0 -112
- package/dist/npm/config/schema.js +0 -21
- package/dist/npm/config/semantic-nodes.js +0 -35
- package/dist/npm/config/table-commands.js +0 -16
- package/dist/npm/config/utils.js +0 -104
- package/dist/npm/dialogs/colorpicker-dialog.component.js +0 -72
- package/dist/npm/dialogs/file-link-dialog.component.js +0 -128
- package/dist/npm/dialogs/font-family-dialog.component.js +0 -67
- package/dist/npm/dialogs/font-size-dialog.component.js +0 -67
- package/dist/npm/dialogs/format-dialog.component.js +0 -67
- package/dist/npm/dialogs/image-dialog.component.js +0 -104
- package/dist/npm/dialogs/insert-table-dialog.component.js +0 -51
- package/dist/npm/dialogs/source-dialog.component.js +0 -74
- package/dist/npm/editor-toolbar-state.js +0 -282
- package/dist/npm/editor.component.js +0 -1041
- package/dist/npm/editor.module.js +0 -243
- package/dist/npm/index.js +0 -138
- package/dist/npm/localization/custom-messages.component.js +0 -47
- package/dist/npm/localization/editor-localization.service.js +0 -26
- package/dist/npm/localization/localized-messages.directive.js +0 -38
- package/dist/npm/localization/messages.js +0 -232
- package/dist/npm/main.js +0 -38
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-events/paste-event-data.js +0 -6
- package/dist/npm/preventable-events/paste-event.js +0 -27
- package/dist/npm/tools/alignment/editor-align-center-button.directive.js +0 -49
- package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +0 -49
- package/dist/npm/tools/alignment/editor-align-left-button.directive.js +0 -49
- package/dist/npm/tools/alignment/editor-align-right-button.directive.js +0 -49
- package/dist/npm/tools/blockquote/editor-blockquote-button.directive.js +0 -50
- package/dist/npm/tools/colorpicker/editor-back-color.directive.js +0 -30
- package/dist/npm/tools/colorpicker/editor-colorpicker.component.js +0 -235
- package/dist/npm/tools/colorpicker/editor-fore-color.directive.js +0 -30
- package/dist/npm/tools/editor-clean-formatting-button.directive.js +0 -48
- package/dist/npm/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -73
- package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +0 -213
- package/dist/npm/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -73
- package/dist/npm/tools/fontsize/editor-fontsize.component.js +0 -208
- package/dist/npm/tools/format/editor-format-dropdownlist.component.js +0 -73
- package/dist/npm/tools/format/editor-format.component.js +0 -204
- package/dist/npm/tools/history/editor-redo-button.directive.js +0 -49
- package/dist/npm/tools/history/editor-undo-button.directive.js +0 -49
- package/dist/npm/tools/image/editor-insert-image-button.directive.js +0 -48
- package/dist/npm/tools/indentation/editor-indent-button.directive.js +0 -49
- package/dist/npm/tools/indentation/editor-outdent-button.directive.js +0 -49
- package/dist/npm/tools/link/editor-create-link-button.directive.js +0 -49
- package/dist/npm/tools/link/editor-insert-file-button.directive.js +0 -41
- package/dist/npm/tools/link/editor-unlink-button.directive.js +0 -49
- package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +0 -49
- package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +0 -49
- package/dist/npm/tools/print/editor-print-button.directive.js +0 -71
- package/dist/npm/tools/select-all/select-all-button.directive.js +0 -52
- package/dist/npm/tools/shared/dropdown-tool.directive.js +0 -43
- package/dist/npm/tools/shared/editor-command-base.js +0 -51
- package/dist/npm/tools/shared/editor-command-button.js +0 -36
- package/dist/npm/tools/shared/editor-command-dialog.js +0 -32
- package/dist/npm/tools/source/editor-view-source-button.directive.js +0 -48
- package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-delete-column-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-delete-row-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-delete-table-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-insert-table-button.component.js +0 -204
- package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +0 -44
- package/dist/npm/tools/tables/editor-split-cell-button.directive.js +0 -44
- package/dist/npm/tools/tables/popup-table-grid.component.js +0 -71
- package/dist/npm/tools/tools.service.js +0 -22
- package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +0 -49
- package/dist/npm/util.js +0 -130
- package/dist/systemjs/kendo-angular-editor.js +0 -5
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertUnorderedList tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts-no-run
|
|
27
|
-
* <kendo-toolbar-button kendoEditorInsertUnorderedListButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorInsertUnorderedListButtonDirective, _super);
|
|
32
|
-
function EditorInsertUnorderedListButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'insertUnorderedList', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorInsertUnorderedListButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorInsertUnorderedListButtonDirective);
|
|
45
|
-
return EditorInsertUnorderedListButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorInsertUnorderedListButtonDirective };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host, isDevMode } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorErrorMessages } from '../../common/error-messages';
|
|
12
|
-
import { EditorToolsService } from '../tools.service';
|
|
13
|
-
/**
|
|
14
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
|
|
15
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
16
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
17
|
-
*
|
|
18
|
-
* > The Editor Print tool is supported in the default [`iframe`](https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorComponent/#toc-iframe) mode only.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts-no-run
|
|
22
|
-
* <kendo-toolbar-button kendoEditorPrintButton></kendo-toolbar-button>
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts-no-run
|
|
29
|
-
* <kendo-toolbar-button kendoEditorPrintButton icon="blogger"></kendo-toolbar-button>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
var EditorPrintDirective = /** @class */ (function (_super) {
|
|
33
|
-
tslib_1.__extends(EditorPrintDirective, _super);
|
|
34
|
-
function EditorPrintDirective(button, editor, localization, toolsService) {
|
|
35
|
-
var _this = _super.call(this, 'print', button, editor, localization, toolsService) || this;
|
|
36
|
-
_this.editor = editor;
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
EditorPrintDirective.prototype.ngAfterViewInit = function () {
|
|
40
|
-
if (isDevMode) {
|
|
41
|
-
if (!this.editor.iframe) {
|
|
42
|
-
throw new Error(EditorErrorMessages.printTool);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
EditorPrintDirective.prototype.clickHandler = function () {
|
|
47
|
-
if (this.editor.iframe) {
|
|
48
|
-
var view = this.editor.view;
|
|
49
|
-
var dom = view && view.dom;
|
|
50
|
-
var doc = dom && dom.ownerDocument;
|
|
51
|
-
var editorWindow = doc && doc.defaultView;
|
|
52
|
-
if (editorWindow) {
|
|
53
|
-
editorWindow.print();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
EditorPrintDirective = tslib_1.__decorate([
|
|
58
|
-
Directive({
|
|
59
|
-
selector: 'kendo-toolbar-button[kendoEditorPrintButton]'
|
|
60
|
-
}),
|
|
61
|
-
tslib_1.__param(1, Host()),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
63
|
-
EditorComponent,
|
|
64
|
-
EditorLocalizationService,
|
|
65
|
-
EditorToolsService])
|
|
66
|
-
], EditorPrintDirective);
|
|
67
|
-
return EditorPrintDirective;
|
|
68
|
-
}(EditorCommandButton));
|
|
69
|
-
export { EditorPrintDirective };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts-no-run
|
|
19
|
-
* <kendo-toolbar-button kendoEditorSelectAllButton></kendo-toolbar-button>
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts-no-run
|
|
26
|
-
* <kendo-toolbar-button kendoEditorSelectAllButton icon="blogger"></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
|
|
30
|
-
tslib_1.__extends(EditorSelectAllButtonDirective, _super);
|
|
31
|
-
function EditorSelectAllButtonDirective(button, editor, localization, toolsService) {
|
|
32
|
-
return _super.call(this, 'selectAll', button, editor, localization, toolsService) || this;
|
|
33
|
-
}
|
|
34
|
-
EditorSelectAllButtonDirective.prototype.clickHandler = function () {
|
|
35
|
-
this.editor.shouldEmitFocus = true;
|
|
36
|
-
_super.prototype.clickHandler.call(this);
|
|
37
|
-
};
|
|
38
|
-
EditorSelectAllButtonDirective = tslib_1.__decorate([
|
|
39
|
-
Directive({
|
|
40
|
-
selector: 'kendo-toolbar-button[kendoEditorSelectAllButton]'
|
|
41
|
-
}),
|
|
42
|
-
tslib_1.__param(1, Host()),
|
|
43
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
44
|
-
EditorComponent,
|
|
45
|
-
EditorLocalizationService,
|
|
46
|
-
EditorToolsService])
|
|
47
|
-
], EditorSelectAllButtonDirective);
|
|
48
|
-
return EditorSelectAllButtonDirective;
|
|
49
|
-
}(EditorCommandButton));
|
|
50
|
-
export { EditorSelectAllButtonDirective };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ElementRef, NgZone } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var DropDownToolDirective = /** @class */ (function () {
|
|
11
|
-
function DropDownToolDirective(hostEl, zone) {
|
|
12
|
-
this.hostEl = hostEl;
|
|
13
|
-
this.zone = zone;
|
|
14
|
-
this.preventDefault = function (event) {
|
|
15
|
-
event.preventDefault();
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(DropDownToolDirective.prototype, "hostElement", {
|
|
19
|
-
get: function () {
|
|
20
|
-
return this.hostEl.nativeElement;
|
|
21
|
-
},
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true
|
|
24
|
-
});
|
|
25
|
-
DropDownToolDirective.prototype.ngAfterViewInit = function () {
|
|
26
|
-
var _this = this;
|
|
27
|
-
this.zone.runOutsideAngular(function () {
|
|
28
|
-
_this.hostElement.addEventListener('pointerdown', _this.preventDefault);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
DropDownToolDirective.prototype.ngOnDestroy = function () {
|
|
32
|
-
this.hostElement.removeEventListener('pointerdown', this.preventDefault);
|
|
33
|
-
};
|
|
34
|
-
DropDownToolDirective = tslib_1.__decorate([
|
|
35
|
-
Directive({ selector: '[kendoEditorDropDownTool]' }),
|
|
36
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
37
|
-
NgZone])
|
|
38
|
-
], DropDownToolDirective);
|
|
39
|
-
return DropDownToolDirective;
|
|
40
|
-
}());
|
|
41
|
-
export { DropDownToolDirective };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { commandIcons } from '../../config/command-icons';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
var EditorCommandBase = /** @class */ (function () {
|
|
10
|
-
function EditorCommandBase(command, button, editor, localization, toolsService) {
|
|
11
|
-
var _this = this;
|
|
12
|
-
this.command = command;
|
|
13
|
-
this.button = button;
|
|
14
|
-
this.editor = editor;
|
|
15
|
-
this.localization = localization;
|
|
16
|
-
this.toolsService = toolsService;
|
|
17
|
-
setTimeout(function () {
|
|
18
|
-
var text = _this.localization.get(_this.command);
|
|
19
|
-
if (text) {
|
|
20
|
-
_this.button.showText = 'overflow';
|
|
21
|
-
_this.button.showIcon = 'both';
|
|
22
|
-
_this.button.text = text;
|
|
23
|
-
}
|
|
24
|
-
if (!_this.button.toolbarOptions.icon) {
|
|
25
|
-
_this.button.icon = commandIcons[_this.command];
|
|
26
|
-
}
|
|
27
|
-
_this.button.title = text;
|
|
28
|
-
_this.toolsService.needsCheck.next();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
EditorCommandBase.prototype.ngOnInit = function () {
|
|
32
|
-
this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
|
|
33
|
-
this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
|
|
34
|
-
this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
|
|
35
|
-
};
|
|
36
|
-
EditorCommandBase.prototype.ngOnDestroy = function () {
|
|
37
|
-
if (this.subs) {
|
|
38
|
-
this.subs.unsubscribe();
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
// tslint:disable-next-line
|
|
42
|
-
EditorCommandBase.prototype.clickHandler = function () { };
|
|
43
|
-
// tslint:disable-next-line
|
|
44
|
-
EditorCommandBase.prototype.pointerdownHandler = function (_event) { };
|
|
45
|
-
// tslint:disable-next-line
|
|
46
|
-
EditorCommandBase.prototype.onStateChange = function (_toolBarState) { };
|
|
47
|
-
return EditorCommandBase;
|
|
48
|
-
}());
|
|
49
|
-
export { EditorCommandBase };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { EditorCommandBase } from './editor-command-base';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var EditorCommandButton = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(EditorCommandButton, _super);
|
|
12
|
-
function EditorCommandButton(command, button, editor, localization, toolsService) {
|
|
13
|
-
var _this = _super.call(this, command, button, editor, localization, toolsService) || this;
|
|
14
|
-
_this.command = command;
|
|
15
|
-
_this.button = button;
|
|
16
|
-
_this.editor = editor;
|
|
17
|
-
_this.localization = localization;
|
|
18
|
-
_this.toolsService = toolsService;
|
|
19
|
-
return _this;
|
|
20
|
-
}
|
|
21
|
-
EditorCommandButton.prototype.clickHandler = function () {
|
|
22
|
-
this.editor.exec(this.command, this.editor.applyToWord);
|
|
23
|
-
this.editor.focus();
|
|
24
|
-
};
|
|
25
|
-
EditorCommandButton.prototype.pointerdownHandler = function (e) {
|
|
26
|
-
e.preventDefault();
|
|
27
|
-
};
|
|
28
|
-
EditorCommandButton.prototype.onStateChange = function (toolBarState) {
|
|
29
|
-
this.button.selected = toolBarState[this.command].selected;
|
|
30
|
-
this.button.disabled = toolBarState[this.command].disabled;
|
|
31
|
-
};
|
|
32
|
-
return EditorCommandButton;
|
|
33
|
-
}(EditorCommandBase));
|
|
34
|
-
export { EditorCommandButton };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { EditorCommandBase } from './editor-command-base';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var EditorCommandDialog = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(EditorCommandDialog, _super);
|
|
12
|
-
function EditorCommandDialog(dialog, button, editor, localization, toolsService) {
|
|
13
|
-
var _this = _super.call(this, dialog, button, editor, localization, toolsService) || this;
|
|
14
|
-
_this.dialog = dialog;
|
|
15
|
-
_this.button = button;
|
|
16
|
-
_this.editor = editor;
|
|
17
|
-
_this.localization = localization;
|
|
18
|
-
_this.toolsService = toolsService;
|
|
19
|
-
return _this;
|
|
20
|
-
}
|
|
21
|
-
EditorCommandDialog.prototype.clickHandler = function () {
|
|
22
|
-
this.editor.openDialog(this.dialog);
|
|
23
|
-
};
|
|
24
|
-
EditorCommandDialog.prototype.onStateChange = function (toolBarState) {
|
|
25
|
-
this.button.selected = toolBarState[this.command].selected;
|
|
26
|
-
this.button.disabled = toolBarState[this.command].disabled;
|
|
27
|
-
};
|
|
28
|
-
return EditorCommandDialog;
|
|
29
|
-
}(EditorCommandBase));
|
|
30
|
-
export { EditorCommandDialog };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor ViewSource tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts-no-run
|
|
19
|
-
* <kendo-toolbar-button kendoEditorViewSourceButton></kendo-toolbar-button>
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts-no-run
|
|
26
|
-
* <kendo-toolbar-button kendoEditorViewSourceButton icon="blogger"></kendo-toolbar-button>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
|
|
30
|
-
tslib_1.__extends(EditorViewSourceButtonDirective, _super);
|
|
31
|
-
function EditorViewSourceButtonDirective(button, editor, localization, toolsService) {
|
|
32
|
-
return _super.call(this, 'viewSource', button, editor, localization, toolsService) || this;
|
|
33
|
-
}
|
|
34
|
-
EditorViewSourceButtonDirective = tslib_1.__decorate([
|
|
35
|
-
Directive({
|
|
36
|
-
selector: 'kendo-toolbar-button[kendoEditorViewSourceButton]'
|
|
37
|
-
}),
|
|
38
|
-
tslib_1.__param(1, Host()),
|
|
39
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
40
|
-
EditorComponent,
|
|
41
|
-
EditorLocalizationService,
|
|
42
|
-
EditorToolsService])
|
|
43
|
-
], EditorViewSourceButtonDirective);
|
|
44
|
-
return EditorViewSourceButtonDirective;
|
|
45
|
-
}(EditorCommandDialog));
|
|
46
|
-
export { EditorViewSourceButtonDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnAfter tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorAddColumnAfterButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorAddColumnAfterButtonDirective, _super);
|
|
25
|
-
function EditorAddColumnAfterButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'addColumnAfter', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorAddColumnAfterButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorAddColumnAfterButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorAddColumnAfterButtonDirective);
|
|
38
|
-
return EditorAddColumnAfterButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorAddColumnAfterButtonDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnBefore tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorAddColumnBeforeButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorAddColumnBeforeButtonDirective, _super);
|
|
25
|
-
function EditorAddColumnBeforeButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'addColumnBefore', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorAddColumnBeforeButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorAddColumnBeforeButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorAddColumnBeforeButtonDirective);
|
|
38
|
-
return EditorAddColumnBeforeButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorAddColumnBeforeButtonDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowAfter tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorAddRowAfterButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorAddRowAfterButtonDirective, _super);
|
|
25
|
-
function EditorAddRowAfterButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'addRowAfter', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorAddRowAfterButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorAddRowAfterButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorAddRowAfterButtonDirective);
|
|
38
|
-
return EditorAddRowAfterButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorAddRowAfterButtonDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowBefore tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorAddRowBeforeButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorAddRowBeforeButtonDirective, _super);
|
|
25
|
-
function EditorAddRowBeforeButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'addRowBefore', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorAddRowBeforeButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorAddRowBeforeButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorAddRowBeforeButtonDirective);
|
|
38
|
-
return EditorAddRowBeforeButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorAddRowBeforeButtonDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteColumn tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorDeleteColumnButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorDeleteColumnButtonDirective, _super);
|
|
25
|
-
function EditorDeleteColumnButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'deleteColumn', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorDeleteColumnButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorDeleteColumnButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorDeleteColumnButtonDirective);
|
|
38
|
-
return EditorDeleteColumnButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorDeleteColumnButtonDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteRow tool
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* <kendo-toolbar-button kendoEditorDeleteRowButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorDeleteRowButtonDirective, _super);
|
|
25
|
-
function EditorDeleteRowButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'deleteRow', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorDeleteRowButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorDeleteRowButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorDeleteRowButtonDirective);
|
|
38
|
-
return EditorDeleteRowButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorDeleteRowButtonDirective };
|