@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,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 DeleteTable 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 kendoEditorDeleteTableButton></kendo-toolbar-button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorDeleteTableButtonDirective, _super);
|
|
25
|
-
function EditorDeleteTableButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
-
return _super.call(this, 'deleteTable', button, editor, localization, toolsService) || this;
|
|
27
|
-
}
|
|
28
|
-
EditorDeleteTableButtonDirective = tslib_1.__decorate([
|
|
29
|
-
Directive({
|
|
30
|
-
selector: 'kendo-toolbar-button[kendoEditorDeleteTableButton]'
|
|
31
|
-
}),
|
|
32
|
-
tslib_1.__param(1, Host()),
|
|
33
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
34
|
-
EditorComponent,
|
|
35
|
-
EditorLocalizationService,
|
|
36
|
-
EditorToolsService])
|
|
37
|
-
], EditorDeleteTableButtonDirective);
|
|
38
|
-
return EditorDeleteTableButtonDirective;
|
|
39
|
-
}(EditorCommandButton));
|
|
40
|
-
export { EditorDeleteTableButtonDirective };
|
|
@@ -1,202 +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 { Component, TemplateRef, ViewChild, ElementRef, forwardRef, Host, EventEmitter } from '@angular/core';
|
|
7
|
-
import { interval } from 'rxjs';
|
|
8
|
-
import { concatMap, take, takeUntil } from 'rxjs/operators';
|
|
9
|
-
import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
|
|
10
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
11
|
-
import { outerWidth } from '../../util';
|
|
12
|
-
import { EditorComponent } from '../../editor.component';
|
|
13
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
14
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
15
|
-
import { InsertTableDialogComponent } from '../../dialogs/insert-table-dialog.component';
|
|
16
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
17
|
-
var popupWrapperWidth = '190px';
|
|
18
|
-
var popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is added;
|
|
19
|
-
/**
|
|
20
|
-
* A toolbar component which allows the user to create and insert a table in the Editor's content.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts-no-run
|
|
24
|
-
* <kendo-editor-insert-table-button></kendo-editor-insert-table-button>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
|
|
28
|
-
tslib_1.__extends(EditorInsertTableButtonComponent, _super);
|
|
29
|
-
function EditorInsertTableButtonComponent(editor, localization, popupService, dialogService) {
|
|
30
|
-
var _this = _super.call(this) || this;
|
|
31
|
-
_this.editor = editor;
|
|
32
|
-
_this.localization = localization;
|
|
33
|
-
_this.popupService = popupService;
|
|
34
|
-
_this.dialogService = dialogService;
|
|
35
|
-
_this.open = false;
|
|
36
|
-
_this.buttonBlurred = new EventEmitter();
|
|
37
|
-
_this.cellClicked = new EventEmitter();
|
|
38
|
-
_this.subs = _this.editor.stateChange.subscribe(function (_a) {
|
|
39
|
-
var insertTable = _a.insertTable;
|
|
40
|
-
_this.disabled = insertTable.disabled;
|
|
41
|
-
});
|
|
42
|
-
_this.subs.add(_this.buttonBlurred.pipe(concatMap(function () { return interval(200).pipe(take(1), takeUntil(_this.cellClicked)); })).subscribe(function () {
|
|
43
|
-
_this.toggle(false);
|
|
44
|
-
}));
|
|
45
|
-
return _this;
|
|
46
|
-
}
|
|
47
|
-
EditorInsertTableButtonComponent_1 = EditorInsertTableButtonComponent;
|
|
48
|
-
EditorInsertTableButtonComponent.prototype.ngOnDestroy = function () {
|
|
49
|
-
this.destroyPopup();
|
|
50
|
-
if (this.subs) {
|
|
51
|
-
this.subs.unsubscribe();
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
Object.defineProperty(EditorInsertTableButtonComponent.prototype, "outerWidth", {
|
|
55
|
-
get: function () {
|
|
56
|
-
if (this.element) {
|
|
57
|
-
return outerWidth(this.element.nativeElement);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
enumerable: true,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(EditorInsertTableButtonComponent.prototype, "title", {
|
|
64
|
-
get: function () {
|
|
65
|
-
return this.localization.get('insertTable');
|
|
66
|
-
},
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* @hidden
|
|
72
|
-
*/
|
|
73
|
-
EditorInsertTableButtonComponent.prototype.toggle = function (open) {
|
|
74
|
-
this.open = open === undefined ? !this.open : open;
|
|
75
|
-
this.destroyPopup();
|
|
76
|
-
if (this.open) {
|
|
77
|
-
this.createPopup();
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* @hidden
|
|
82
|
-
*/
|
|
83
|
-
EditorInsertTableButtonComponent.prototype.openDialog = function () {
|
|
84
|
-
var dialogSettings = {
|
|
85
|
-
appendTo: this.editor.dialogContainer,
|
|
86
|
-
content: InsertTableDialogComponent
|
|
87
|
-
};
|
|
88
|
-
this.editor.toolbar.toggle(false);
|
|
89
|
-
var dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
90
|
-
dialogContent.setData({
|
|
91
|
-
editor: this.editor
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @hidden
|
|
96
|
-
*/
|
|
97
|
-
EditorInsertTableButtonComponent.prototype.onBlur = function () {
|
|
98
|
-
this.tabIndex = -1;
|
|
99
|
-
this.buttonBlurred.emit();
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
*/
|
|
104
|
-
EditorInsertTableButtonComponent.prototype.onCellClick = function (args) {
|
|
105
|
-
this.cellClicked.emit();
|
|
106
|
-
this.toggle(false);
|
|
107
|
-
this.editor.exec('insertTable', args);
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
*/
|
|
112
|
-
EditorInsertTableButtonComponent.prototype.canFocus = function () {
|
|
113
|
-
return !this.disabled;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* @hidden
|
|
117
|
-
*/
|
|
118
|
-
EditorInsertTableButtonComponent.prototype.focus = function () {
|
|
119
|
-
this.tabIndex = 0;
|
|
120
|
-
this.getButton().focus();
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* @hidden
|
|
124
|
-
*/
|
|
125
|
-
EditorInsertTableButtonComponent.prototype.handleKey = function (ev) {
|
|
126
|
-
if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
|
|
127
|
-
return true;
|
|
128
|
-
}
|
|
129
|
-
this.tabIndex = -1;
|
|
130
|
-
return false;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* @hidden
|
|
134
|
-
*/
|
|
135
|
-
EditorInsertTableButtonComponent.prototype.onTableWizardClick = function () {
|
|
136
|
-
// this.toggle(false);
|
|
137
|
-
// this.editor.openDialog("tableWizard");
|
|
138
|
-
};
|
|
139
|
-
EditorInsertTableButtonComponent.prototype.createPopup = function () {
|
|
140
|
-
var horizontalAlign = this.editor.direction === 'rtl' ? 'right' : 'left';
|
|
141
|
-
var anchorPosition = { horizontal: horizontalAlign, vertical: 'bottom' };
|
|
142
|
-
var popupPosition = { horizontal: horizontalAlign, vertical: 'top' };
|
|
143
|
-
this.popupRef = this.popupService.open({
|
|
144
|
-
anchor: this.element,
|
|
145
|
-
anchorAlign: anchorPosition,
|
|
146
|
-
animate: true,
|
|
147
|
-
content: this.popupGridTemplate,
|
|
148
|
-
popupAlign: popupPosition,
|
|
149
|
-
popupClass: 'k-ct-popup k-group k-reset k-state-border-up',
|
|
150
|
-
positionMode: 'absolute'
|
|
151
|
-
});
|
|
152
|
-
var popupWrapper = this.popupRef.popupElement;
|
|
153
|
-
popupWrapper.style.width = popupWrapperWidth;
|
|
154
|
-
popupWrapper.style.height = popupWrapperHeight;
|
|
155
|
-
popupWrapper.setAttribute('dir', this.editor.direction);
|
|
156
|
-
};
|
|
157
|
-
EditorInsertTableButtonComponent.prototype.destroyPopup = function () {
|
|
158
|
-
if (this.popupRef) {
|
|
159
|
-
this.popupRef.close();
|
|
160
|
-
this.popupRef = null;
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
EditorInsertTableButtonComponent.prototype.getButton = function () {
|
|
164
|
-
return (this.overflows ? this.overflowElement : this.element).nativeElement;
|
|
165
|
-
};
|
|
166
|
-
var EditorInsertTableButtonComponent_1;
|
|
167
|
-
tslib_1.__decorate([
|
|
168
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
169
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
170
|
-
], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
171
|
-
tslib_1.__decorate([
|
|
172
|
-
ViewChild('popupTemplate', { static: false }),
|
|
173
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
174
|
-
], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
|
|
175
|
-
tslib_1.__decorate([
|
|
176
|
-
ViewChild('element', { static: false }),
|
|
177
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
178
|
-
], EditorInsertTableButtonComponent.prototype, "element", void 0);
|
|
179
|
-
tslib_1.__decorate([
|
|
180
|
-
ViewChild('overflowElement', { static: false }),
|
|
181
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
182
|
-
], EditorInsertTableButtonComponent.prototype, "overflowElement", void 0);
|
|
183
|
-
tslib_1.__decorate([
|
|
184
|
-
ViewChild('popupGridTemplate', { static: true }),
|
|
185
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
186
|
-
], EditorInsertTableButtonComponent.prototype, "popupGridTemplate", void 0);
|
|
187
|
-
EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = tslib_1.__decorate([
|
|
188
|
-
Component({
|
|
189
|
-
// tslint:disable-next-line:no-forward-ref
|
|
190
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return EditorInsertTableButtonComponent_1; }) }],
|
|
191
|
-
selector: 'kendo-editor-insert-table-button',
|
|
192
|
-
template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
|
|
193
|
-
}),
|
|
194
|
-
tslib_1.__param(0, Host()),
|
|
195
|
-
tslib_1.__metadata("design:paramtypes", [EditorComponent,
|
|
196
|
-
EditorLocalizationService,
|
|
197
|
-
PopupService,
|
|
198
|
-
DialogService])
|
|
199
|
-
], EditorInsertTableButtonComponent);
|
|
200
|
-
return EditorInsertTableButtonComponent;
|
|
201
|
-
}(ToolBarToolComponent));
|
|
202
|
-
export { EditorInsertTableButtonComponent };
|
|
@@ -1,42 +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
|
-
* @hidden
|
|
14
|
-
*
|
|
15
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor MergeCells tool
|
|
16
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
17
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
18
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts-no-run
|
|
22
|
-
* <kendo-toolbar-button kendoEditorMergeCellsButton></kendo-toolbar-button>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
|
|
26
|
-
tslib_1.__extends(EditorMergeCellsButtonDirective, _super);
|
|
27
|
-
function EditorMergeCellsButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
-
return _super.call(this, 'mergeCells', button, editor, localization, toolsService) || this;
|
|
29
|
-
}
|
|
30
|
-
EditorMergeCellsButtonDirective = tslib_1.__decorate([
|
|
31
|
-
Directive({
|
|
32
|
-
selector: 'kendo-toolbar-button[kendoEditorMergeCellsButton]'
|
|
33
|
-
}),
|
|
34
|
-
tslib_1.__param(1, Host()),
|
|
35
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
36
|
-
EditorComponent,
|
|
37
|
-
EditorLocalizationService,
|
|
38
|
-
EditorToolsService])
|
|
39
|
-
], EditorMergeCellsButtonDirective);
|
|
40
|
-
return EditorMergeCellsButtonDirective;
|
|
41
|
-
}(EditorCommandButton));
|
|
42
|
-
export { EditorMergeCellsButtonDirective };
|
|
@@ -1,42 +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
|
-
* @hidden
|
|
14
|
-
*
|
|
15
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor SplitCell tool
|
|
16
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
17
|
-
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
18
|
-
* In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts-no-run
|
|
22
|
-
* <kendo-toolbar-button kendoEditorSplitCellButton></kendo-toolbar-button>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
|
|
26
|
-
tslib_1.__extends(EditorSplitCellButtonDirective, _super);
|
|
27
|
-
function EditorSplitCellButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
-
return _super.call(this, 'splitCell', button, editor, localization, toolsService) || this;
|
|
29
|
-
}
|
|
30
|
-
EditorSplitCellButtonDirective = tslib_1.__decorate([
|
|
31
|
-
Directive({
|
|
32
|
-
selector: 'kendo-toolbar-button[kendoEditorSplitCellButton]'
|
|
33
|
-
}),
|
|
34
|
-
tslib_1.__param(1, Host()),
|
|
35
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
36
|
-
EditorComponent,
|
|
37
|
-
EditorLocalizationService,
|
|
38
|
-
EditorToolsService])
|
|
39
|
-
], EditorSplitCellButtonDirective);
|
|
40
|
-
return EditorSplitCellButtonDirective;
|
|
41
|
-
}(EditorCommandButton));
|
|
42
|
-
export { EditorSplitCellButtonDirective };
|
|
@@ -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 { Component, Output, EventEmitter } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var PopupTableGridComponent = /** @class */ (function () {
|
|
11
|
-
function PopupTableGridComponent() {
|
|
12
|
-
this.cellClick = new EventEmitter();
|
|
13
|
-
this.tableWizardClick = new EventEmitter();
|
|
14
|
-
this.state = { rows: -1, cols: -1 };
|
|
15
|
-
this.rows = 6;
|
|
16
|
-
this.cols = 8;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(PopupTableGridComponent.prototype, "message", {
|
|
19
|
-
get: function () {
|
|
20
|
-
var _a = this.state, rows = _a.rows, cols = _a.cols;
|
|
21
|
-
return "Create a " + (rows > -1 ? rows + 1 : '') + " " + (cols > -1 ? 'x' : '') + " " + (cols > -1 ? cols + 1 : '') + " table";
|
|
22
|
-
},
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(PopupTableGridComponent.prototype, "cells", {
|
|
27
|
-
get: function () {
|
|
28
|
-
return Array.from(Array(this.rows * this.cols).keys());
|
|
29
|
-
},
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true
|
|
32
|
-
});
|
|
33
|
-
PopupTableGridComponent.prototype.selected = function (index) {
|
|
34
|
-
var _a = this.state, rows = _a.rows, cols = _a.cols;
|
|
35
|
-
var cellRow = Math.floor(index / this.cols);
|
|
36
|
-
var cellCol = index % this.cols;
|
|
37
|
-
return cellRow <= rows && cellCol <= cols;
|
|
38
|
-
};
|
|
39
|
-
PopupTableGridComponent.prototype.setState = function (index) {
|
|
40
|
-
var rows = Math.floor(index / this.cols);
|
|
41
|
-
var cols = index % this.cols;
|
|
42
|
-
this.state = { rows: rows, cols: cols };
|
|
43
|
-
};
|
|
44
|
-
PopupTableGridComponent.prototype.resetState = function () {
|
|
45
|
-
this.state = { rows: -1, cols: -1 };
|
|
46
|
-
};
|
|
47
|
-
PopupTableGridComponent.prototype.insertTable = function () {
|
|
48
|
-
this.cellClick.emit(this.state);
|
|
49
|
-
};
|
|
50
|
-
PopupTableGridComponent.prototype.openTableWizard = function () {
|
|
51
|
-
this.tableWizardClick.emit();
|
|
52
|
-
};
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
Output(),
|
|
55
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
56
|
-
], PopupTableGridComponent.prototype, "cellClick", void 0);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
Output(),
|
|
59
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
60
|
-
], PopupTableGridComponent.prototype, "tableWizardClick", void 0);
|
|
61
|
-
PopupTableGridComponent = tslib_1.__decorate([
|
|
62
|
-
Component({
|
|
63
|
-
selector: 'kendo-popup-table-grid',
|
|
64
|
-
template: "\n <div style=\"border-color: inherit;\" (mouseleave)=\"resetState()\" (click)=\"insertTable()\">\n <span *ngFor=\"let i of cells\"\n class=\"k-ct-cell\"\n [class.k-state-selected]=\"selected(i)\"\n [class.k-state-disabled]=\"!selected(i)\"\n (mouseenter)=\"setState(i)\">\n </span>\n </div>\n <div class=\"k-status\" unselectable=\"on\">{{ message }}</div>\n <!-- uncomment when TableWizard is completed\n <div class=\"k-editor-toolbar\" unselectable=\"on\">\n <button type=\"button\" kendoButton class=\"k-tool\" [icon]=\"'table-wizard'\" (click)=\"openTableWizard()\" title=\"Table Wizard\">Table Wizard</button>\n </div>\n -->\n "
|
|
65
|
-
})
|
|
66
|
-
], PopupTableGridComponent);
|
|
67
|
-
return PopupTableGridComponent;
|
|
68
|
-
}());
|
|
69
|
-
export { PopupTableGridComponent };
|
|
@@ -1,20 +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 { Injectable } from '@angular/core';
|
|
7
|
-
import { Subject } from 'rxjs';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var EditorToolsService = /** @class */ (function () {
|
|
12
|
-
function EditorToolsService() {
|
|
13
|
-
this.needsCheck = new Subject();
|
|
14
|
-
}
|
|
15
|
-
EditorToolsService = tslib_1.__decorate([
|
|
16
|
-
Injectable()
|
|
17
|
-
], EditorToolsService);
|
|
18
|
-
return EditorToolsService;
|
|
19
|
-
}());
|
|
20
|
-
export { EditorToolsService };
|
|
@@ -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 Bold 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 kendoEditorBoldButton></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 kendoEditorBoldButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorBoldButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorBoldButtonDirective, _super);
|
|
32
|
-
function EditorBoldButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'bold', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorBoldButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorBoldButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorBoldButtonDirective);
|
|
45
|
-
return EditorBoldButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorBoldButtonDirective };
|
|
@@ -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 Italic 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 kendoEditorItalicButton></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 kendoEditorItalicButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorItalicButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorItalicButtonDirective, _super);
|
|
32
|
-
function EditorItalicButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'italic', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorItalicButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorItalicButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorItalicButtonDirective);
|
|
45
|
-
return EditorItalicButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorItalicButtonDirective };
|
|
@@ -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 Strikethrough 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 kendoEditorStrikethroughButton></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 kendoEditorStrikethroughButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorStrikethroughButtonDirective, _super);
|
|
32
|
-
function EditorStrikethroughButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'strikethrough', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorStrikethroughButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorStrikethroughButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorStrikethroughButtonDirective);
|
|
45
|
-
return EditorStrikethroughButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorStrikethroughButtonDirective };
|
|
@@ -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 Subscript 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 kendoEditorSubscriptButton></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 kendoEditorSubscriptButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorSubscriptButtonDirective, _super);
|
|
32
|
-
function EditorSubscriptButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'subscript', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorSubscriptButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorSubscriptButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorSubscriptButtonDirective);
|
|
45
|
-
return EditorSubscriptButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorSubscriptButtonDirective };
|
|
@@ -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 Superscript 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 kendoEditorSuperscriptButton></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 kendoEditorSuperscriptButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorSuperscriptButtonDirective, _super);
|
|
32
|
-
function EditorSuperscriptButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'superscript', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorSuperscriptButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorSuperscriptButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorSuperscriptButtonDirective);
|
|
45
|
-
return EditorSuperscriptButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorSuperscriptButtonDirective };
|